
/* DWARF original prototype: Expression * find_memory_region_length(Script_sections * this, char *
   name, size_t namelen) */

Expression * __thiscall
gold::Script_sections::find_memory_region_length(Script_sections *this,char *name,size_t namelen)

{
  Memory_region *pMVar1;
  
  pMVar1 = find_memory_region(this,name,namelen);
  if (pMVar1 != (Memory_region *)0x0) {
    pMVar1 = (Memory_region *)pMVar1->length_;
  }
  return (Expression *)pMVar1;
}



int FUN_0015c270(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = FUN_0015c1c0(param_1,param_2,param_3);
  if (iVar1 != 0) {
    iVar1 = *(int *)(iVar1 + 0x20);
  }
  return iVar1;
}


SUB ESP,0x10
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
CALL 0x0015c1c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0015c28e
MOV EAX,dword ptr [EAX + 0x20]
ADD ESP,0xc
RET
(translation_unit "int FUN_0015c270(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0015c1c0(param_1,param_2,param_3);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0015c270(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0015c1c0(param_1,param_2,param_3);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0015c270(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0015c1c0(param_1,param_2,param_3);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0015c1c0(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_0015c1c0(param_1,param_2,param_3)" identifier = (call_expression "FUN_0015c1c0(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 0x20);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x20)" identifier = (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: Expression * find_memory_region_length(Script_sections * this, char *\n   name, size_t namelen) */\n\nExpression * __thiscall\ngold::Script_sections::find_memory_region_length(Script_sections *this,char *name,size_t namelen)\n\n{\n  Memory_region *pMVar1;\n  \n  pMVar1 = find_memory_region(this,name,namelen);\n  if (pMVar1 != (Memory_region *)0x0) {\n    pMVar1 = (Memory_region *)pMVar1->length_;\n  }\n  return (Expression *)pMVar1;\n}\n\n" comment (ERROR "Expression * __thiscall\ngold::Script_sections::find_memory_region_length(Script_sections *this,char *name,size_t namelen)" (binary_expression "Expression * __thiscall\ngold::Script_sections::find_memory_region_length(Script_sections *this" (binary_expression "Expression * __thiscall" identifier * identifier) (ERROR "gold::Script_sections::find_memory_region_length(Script_sections" identifier : : identifier : : identifier ( identifier) * identifier) , primitive_type (pointer_declarator "*name" * identifier) , identifier identifier )) (compound_statement "{\n  Memory_region *pMVar1;\n  \n  pMVar1 = find_memory_region(this,name,namelen);\n  if (pMVar1 != (Memory_region *)0x0) {\n    pMVar1 = (Memory_region *)pMVar1->length_;\n  }\n  return (Expression *)pMVar1;\n}" { (declaration "Memory_region *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (expression_statement "pMVar1 = find_memory_region(this,name,namelen);" (assignment_expression "pMVar1 = find_memory_region(this,name,namelen)" identifier = (call_expression "find_memory_region(this,name,namelen)" identifier (argument_list "(this,name,namelen)" ( identifier , identifier , identifier )))) ;) (if_statement "if (pMVar1 != (Memory_region *)0x0) {\n    pMVar1 = (Memory_region *)pMVar1->length_;\n  }" if (parenthesized_expression "(pMVar1 != (Memory_region *)0x0)" ( (binary_expression "pMVar1 != (Memory_region *)0x0" identifier != (cast_expression "(Memory_region *)0x0" ( (type_descriptor "Memory_region *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pMVar1 = (Memory_region *)pMVar1->length_;\n  }" { (expression_statement "pMVar1 = (Memory_region *)pMVar1->length_;" (assignment_expression "pMVar1 = (Memory_region *)pMVar1->length_" identifier = (cast_expression "(Memory_region *)pMVar1->length_" ( (type_descriptor "Memory_region *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pMVar1->length_" identifier -> field_identifier))) ;) })) (return_statement "return (Expression *)pMVar1;" return (cast_expression "(Expression *)pMVar1" ( (type_descriptor "Expression *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) }))
(translation_unit "int FUN_0015c270(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0015c1c0(param_1,param_2,param_3);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0015c270(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0015c1c0(param_1,param_2,param_3);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0015c270(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0015c1c0(param_1,param_2,param_3);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0015c1c0(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_0015c1c0(param_1,param_2,param_3)" identifier = (call_expression "FUN_0015c1c0(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 0x20);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x20)" identifier = (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0015c270(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0015c1c0(param_1,param_2,param_3);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0015c270(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0015c270") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0015c1c0(param_1,param_2,param_3);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_0015c1c0(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_0015c1c0(param_1,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_0015c1c0(param_1,param_2,param_3)" (identifier "FUN_0015c1c0") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0x20);\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar1 + 0x20);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x20)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 0x20)" (* "*") (cast_expression "(int *)(iVar1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* DWARF original prototype: Expression * find_memory_region_length(Script_sections * this, char *
   name, size_t namelen) */

type_2 * __thiscall
gold::Script_sections::find_memory_region_length(Script_sections *this,char *name,size_t namelen)

{
  type_1 *var_2;
  
  var_2 = var_1(this,name,namelen);
  if (var_2 != (type_1 *)0x0) {
    var_2 = (type_1 *)var_2->length_;
  }
  return (type_2 *)var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = FUN_0015c1c0(param_1,param_2,param_3);
  if (iVar1 != 0) {
    iVar1 = *(int *)(iVar1 + 0x20);
  }
  return iVar1;
}

