
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void script_set_section_region(void *closurev,char *name,size_t namelen,int set_vma)

{
  Script_sections *this;
  Memory_region *mr;
  char *pcVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  if (*(char *)(*(int *)((int)closurev + 0x20) + 0xac) == '\0') {
    uVar2 = *(undefined4 *)((int)closurev + 0x30);
    uVar4 = *(undefined4 *)((int)closurev + 0x2c);
    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";
                    /* WARNING: Load size is inaccurate */
    uVar3 = *closurev;
  }
  else {
    this = (Script_sections *)(*(int *)((int)closurev + 0x20) + 0xac);
    mr = gold::Script_sections::find_memory_region(this,name,namelen);
    if (mr != (Memory_region *)0x0) {
      gold::Script_sections::set_memory_region(this,mr,set_vma != 0);
      return;
    }
    uVar2 = *(undefined4 *)((int)closurev + 0x30);
    uVar4 = *(undefined4 *)((int)closurev + 0x2c);
    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";
                    /* WARNING: Load size is inaccurate */
    uVar3 = *closurev;
  }
  pcVar1 = (char *)gettext(pcVar1);
  gold::gold_error(pcVar1,uVar3,uVar4,uVar2,namelen,name);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_00116a10(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  
  if (*(char *)(param_1[8] + 0xac) == '\0') {
    uVar5 = param_1[0xc];
    uVar7 = param_1[0xb];
    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";
    uVar6 = *param_1;
  }
  else {
    iVar1 = param_1[8] + 0xac;
    iVar2 = FUN_00107970(iVar1,param_2,param_3);
    if (iVar2 != 0) {
      FUN_00107a50(iVar1,iVar2,param_4 != 0);
      return;
    }
    uVar5 = param_1[0xc];
    uVar7 = param_1[0xb];
    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";
    uVar6 = *param_1;
  }
  uVar4 = gettext(pcVar3);
  FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x1eb5e7
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESI + 0x20]
CMP byte ptr [EAX + 0xac],0x0
JZ 0x00116a78
SUB ESP,0x4
LEA EDI,[EAX + 0xac]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH EDI
CALL 0x00107970
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00116ab0
SUB ESP,0x4
XOR ECX,ECX
MOV EDX,dword ptr [ESP + 0x30]
TEST EDX,EDX
SETNZ CL
PUSH ECX
PUSH EAX
PUSH EDI
CALL 0x00107a50
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [ESI + 0x30]
MOV EDI,dword ptr [ESI + 0x2c]
SUB ESP,0xc
LEA EAX,[EBX + 0xfff2e260]
MOV ESI,dword ptr [ESI]
PUSH EAX
CALL 0x000263b0
POP ECX
POP EDX
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x34]
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EAX
CALL 0x0005ad00
ADD ESP,0x20
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [ESI + 0x30]
MOV EDI,dword ptr [ESI + 0x2c]
SUB ESP,0xc
LEA EAX,[EBX + 0xfff2e2a8]
MOV ESI,dword ptr [ESI]
JMP 0x00116a89
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00116a10(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[8] + 0xac) == '\0') {\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }\n  else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }\n  uVar4 = gettext(pcVar3);\n  FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);\n  return;\n}\n\n" comment (function_definition "void FUN_00116a10(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[8] + 0xac) == '\0') {\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }\n  else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }\n  uVar4 = gettext(pcVar3);\n  FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00116a10(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[8] + 0xac) == '\0') {\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }\n  else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }\n  uVar4 = gettext(pcVar3);\n  FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1[8] + 0xac) == '\0') {\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }\n  else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }" if (parenthesized_expression "(*(char *)(param_1[8] + 0xac) == '\0')" ( (binary_expression "*(char *)(param_1[8] + 0xac) == '\0'" (pointer_expression "*(char *)(param_1[8] + 0xac)" * (cast_expression "(char *)(param_1[8] + 0xac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[8] + 0xac)" ( (binary_expression "param_1[8] + 0xac" (subscript_expression "param_1[8]" identifier [ number_literal ]) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }" { (expression_statement "uVar5 = param_1[0xc];" (assignment_expression "uVar5 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = param_1[0xb];" (assignment_expression "uVar7 = param_1[0xb]" identifier = (subscript_expression "param_1[0xb]" identifier [ number_literal ])) ;) (expression_statement "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";" (assignment_expression "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause"" identifier = (string_literal ""%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) (expression_statement "uVar6 = *param_1;" (assignment_expression "uVar6 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }" else (compound_statement "{\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }" { (expression_statement "iVar1 = param_1[8] + 0xac;" (assignment_expression "iVar1 = param_1[8] + 0xac" identifier = (binary_expression "param_1[8] + 0xac" (subscript_expression "param_1[8]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar2 = FUN_00107970(iVar1,param_2,param_3);" (assignment_expression "iVar2 = FUN_00107970(iVar1,param_2,param_3)" identifier = (call_expression "FUN_00107970(iVar1,param_2,param_3)" identifier (argument_list "(iVar1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }" { (expression_statement "FUN_00107a50(iVar1,iVar2,param_4 != 0);" (call_expression "FUN_00107a50(iVar1,iVar2,param_4 != 0)" identifier (argument_list "(iVar1,iVar2,param_4 != 0)" ( identifier , identifier , (binary_expression "param_4 != 0" identifier != number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar5 = param_1[0xc];" (assignment_expression "uVar5 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = param_1[0xb];" (assignment_expression "uVar7 = param_1[0xb]" identifier = (subscript_expression "param_1[0xb]" identifier [ number_literal ])) ;) (expression_statement "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";" (assignment_expression "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared"" identifier = (string_literal ""%s:%d:%d: MEMORY region \'%.*s\' not declared"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) (expression_statement "uVar6 = *param_1;" (assignment_expression "uVar6 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }))) (expression_statement "uVar4 = gettext(pcVar3);" (assignment_expression "uVar4 = gettext(pcVar3)" identifier = (call_expression "gettext(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);" (call_expression "FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2)" identifier (argument_list "(uVar4,uVar6,uVar7,uVar5,param_3,param_2)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid script_set_section_region(void *closurev,char *name,size_t namelen,int set_vma)\n\n{\n  Script_sections *this;\n  Memory_region *mr;\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  if (*(char *)(*(int *)((int)closurev + 0x20) + 0xac) == '\0') {\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n    uVar4 = *(undefined4 *)((int)closurev + 0x2c);\n    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n  }\n  else {\n    this = (Script_sections *)(*(int *)((int)closurev + 0x20) + 0xac);\n    mr = gold::Script_sections::find_memory_region(this,name,namelen);\n    if (mr != (Memory_region *)0x0) {\n      gold::Script_sections::set_memory_region(this,mr,set_vma != 0);\n      return;\n    }\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n    uVar4 = *(undefined4 *)((int)closurev + 0x2c);\n    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n  }\n  pcVar1 = (char *)gettext(pcVar1);\n  gold::gold_error(pcVar1,uVar3,uVar4,uVar2,namelen,name);\n  return;\n}\n\n" comment comment (function_definition "void script_set_section_region(void *closurev,char *name,size_t namelen,int set_vma)\n\n{\n  Script_sections *this;\n  Memory_region *mr;\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  if (*(char *)(*(int *)((int)closurev + 0x20) + 0xac) == '\0') {\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n    uVar4 = *(undefined4 *)((int)closurev + 0x2c);\n    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n  }\n  else {\n    this = (Script_sections *)(*(int *)((int)closurev + 0x20) + 0xac);\n    mr = gold::Script_sections::find_memory_region(this,name,namelen);\n    if (mr != (Memory_region *)0x0) {\n      gold::Script_sections::set_memory_region(this,mr,set_vma != 0);\n      return;\n    }\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n    uVar4 = *(undefined4 *)((int)closurev + 0x2c);\n    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n  }\n  pcVar1 = (char *)gettext(pcVar1);\n  gold::gold_error(pcVar1,uVar3,uVar4,uVar2,namelen,name);\n  return;\n}" primitive_type (function_declarator "script_set_section_region(void *closurev,char *name,size_t namelen,int set_vma)" identifier (parameter_list "(void *closurev,char *name,size_t namelen,int set_vma)" ( (parameter_declaration "void *closurev" primitive_type (pointer_declarator "*closurev" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "size_t namelen" primitive_type identifier) , (parameter_declaration "int set_vma" primitive_type identifier) ))) (compound_statement "{\n  Script_sections *this;\n  Memory_region *mr;\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  if (*(char *)(*(int *)((int)closurev + 0x20) + 0xac) == '\0') {\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n    uVar4 = *(undefined4 *)((int)closurev + 0x2c);\n    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n  }\n  else {\n    this = (Script_sections *)(*(int *)((int)closurev + 0x20) + 0xac);\n    mr = gold::Script_sections::find_memory_region(this,name,namelen);\n    if (mr != (Memory_region *)0x0) {\n      gold::Script_sections::set_memory_region(this,mr,set_vma != 0);\n      return;\n    }\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n    uVar4 = *(undefined4 *)((int)closurev + 0x2c);\n    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n  }\n  pcVar1 = (char *)gettext(pcVar1);\n  gold::gold_error(pcVar1,uVar3,uVar4,uVar2,namelen,name);\n  return;\n}" { (declaration "Script_sections *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "Memory_region *mr;" type_identifier (pointer_declarator "*mr" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (*(char *)(*(int *)((int)closurev + 0x20) + 0xac) == '\0') {\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n    uVar4 = *(undefined4 *)((int)closurev + 0x2c);\n    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n  }\n  else {\n    this = (Script_sections *)(*(int *)((int)closurev + 0x20) + 0xac);\n    mr = gold::Script_sections::find_memory_region(this,name,namelen);\n    if (mr != (Memory_region *)0x0) {\n      gold::Script_sections::set_memory_region(this,mr,set_vma != 0);\n      return;\n    }\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n    uVar4 = *(undefined4 *)((int)closurev + 0x2c);\n    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n  }" if (parenthesized_expression "(*(char *)(*(int *)((int)closurev + 0x20) + 0xac) == '\0')" ( (binary_expression "*(char *)(*(int *)((int)closurev + 0x20) + 0xac) == '\0'" (pointer_expression "*(char *)(*(int *)((int)closurev + 0x20) + 0xac)" * (cast_expression "(char *)(*(int *)((int)closurev + 0x20) + 0xac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)closurev + 0x20) + 0xac)" ( (binary_expression "*(int *)((int)closurev + 0x20) + 0xac" (pointer_expression "*(int *)((int)closurev + 0x20)" * (cast_expression "(int *)((int)closurev + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)closurev + 0x20)" ( (binary_expression "(int)closurev + 0x20" (cast_expression "(int)closurev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n    uVar4 = *(undefined4 *)((int)closurev + 0x2c);\n    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n  }" { (expression_statement "uVar2 = *(undefined4 *)((int)closurev + 0x30);" (assignment_expression "uVar2 = *(undefined4 *)((int)closurev + 0x30)" identifier = (pointer_expression "*(undefined4 *)((int)closurev + 0x30)" * (cast_expression "(undefined4 *)((int)closurev + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)closurev + 0x30)" ( (binary_expression "(int)closurev + 0x30" (cast_expression "(int)closurev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)((int)closurev + 0x2c);" (assignment_expression "uVar4 = *(undefined4 *)((int)closurev + 0x2c)" identifier = (pointer_expression "*(undefined4 *)((int)closurev + 0x2c)" * (cast_expression "(undefined4 *)((int)closurev + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)closurev + 0x2c)" ( (binary_expression "(int)closurev + 0x2c" (cast_expression "(int)closurev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";" (assignment_expression "pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause"" identifier = (string_literal ""%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) comment (expression_statement "uVar3 = *closurev;" (assignment_expression "uVar3 = *closurev" identifier = (pointer_expression "*closurev" * identifier)) ;) }) (else_clause "else {\n    this = (Script_sections *)(*(int *)((int)closurev + 0x20) + 0xac);\n    mr = gold::Script_sections::find_memory_region(this,name,namelen);\n    if (mr != (Memory_region *)0x0) {\n      gold::Script_sections::set_memory_region(this,mr,set_vma != 0);\n      return;\n    }\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n    uVar4 = *(undefined4 *)((int)closurev + 0x2c);\n    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n  }" else (compound_statement "{\n    this = (Script_sections *)(*(int *)((int)closurev + 0x20) + 0xac);\n    mr = gold::Script_sections::find_memory_region(this,name,namelen);\n    if (mr != (Memory_region *)0x0) {\n      gold::Script_sections::set_memory_region(this,mr,set_vma != 0);\n      return;\n    }\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n    uVar4 = *(undefined4 *)((int)closurev + 0x2c);\n    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n  }" { (expression_statement "this = (Script_sections *)(*(int *)((int)closurev + 0x20) + 0xac);" (assignment_expression "this = (Script_sections *)(*(int *)((int)closurev + 0x20) + 0xac)" identifier = (cast_expression "(Script_sections *)(*(int *)((int)closurev + 0x20) + 0xac)" ( (type_descriptor "Script_sections *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)closurev + 0x20) + 0xac)" ( (binary_expression "*(int *)((int)closurev + 0x20) + 0xac" (pointer_expression "*(int *)((int)closurev + 0x20)" * (cast_expression "(int *)((int)closurev + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)closurev + 0x20)" ( (binary_expression "(int)closurev + 0x20" (cast_expression "(int)closurev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) ;) (ERROR "mr = gold::" (assignment_expression "mr = gold" identifier = identifier) : :) (labeled_statement "Script_sections::find_memory_region(this,name,namelen);" statement_identifier : (ERROR ":" :) (expression_statement "find_memory_region(this,name,namelen);" (call_expression "find_memory_region(this,name,namelen)" identifier (argument_list "(this,name,namelen)" ( identifier , identifier , identifier ))) ;)) (if_statement "if (mr != (Memory_region *)0x0) {\n      gold::Script_sections::set_memory_region(this,mr,set_vma != 0);\n      return;\n    }" if (parenthesized_expression "(mr != (Memory_region *)0x0)" ( (binary_expression "mr != (Memory_region *)0x0" identifier != (cast_expression "(Memory_region *)0x0" ( (type_descriptor "Memory_region *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      gold::Script_sections::set_memory_region(this,mr,set_vma != 0);\n      return;\n    }" { (labeled_statement "gold::Script_sections::set_memory_region(this,mr,set_vma != 0);" statement_identifier : (ERROR ":" :) (labeled_statement "Script_sections::set_memory_region(this,mr,set_vma != 0);" statement_identifier : (ERROR ":" :) (expression_statement "set_memory_region(this,mr,set_vma != 0);" (call_expression "set_memory_region(this,mr,set_vma != 0)" identifier (argument_list "(this,mr,set_vma != 0)" ( identifier , identifier , (binary_expression "set_vma != 0" identifier != number_literal) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "uVar2 = *(undefined4 *)((int)closurev + 0x30);" (assignment_expression "uVar2 = *(undefined4 *)((int)closurev + 0x30)" identifier = (pointer_expression "*(undefined4 *)((int)closurev + 0x30)" * (cast_expression "(undefined4 *)((int)closurev + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)closurev + 0x30)" ( (binary_expression "(int)closurev + 0x30" (cast_expression "(int)closurev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)((int)closurev + 0x2c);" (assignment_expression "uVar4 = *(undefined4 *)((int)closurev + 0x2c)" identifier = (pointer_expression "*(undefined4 *)((int)closurev + 0x2c)" * (cast_expression "(undefined4 *)((int)closurev + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)closurev + 0x2c)" ( (binary_expression "(int)closurev + 0x2c" (cast_expression "(int)closurev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";" (assignment_expression "pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' not declared"" identifier = (string_literal ""%s:%d:%d: MEMORY region \'%.*s\' not declared"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) comment (expression_statement "uVar3 = *closurev;" (assignment_expression "uVar3 = *closurev" identifier = (pointer_expression "*closurev" * identifier)) ;) }))) (expression_statement "pcVar1 = (char *)gettext(pcVar1);" (assignment_expression "pcVar1 = (char *)gettext(pcVar1)" identifier = (cast_expression "(char *)gettext(pcVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))))) ;) (labeled_statement "gold::gold_error(pcVar1,uVar3,uVar4,uVar2,namelen,name);" statement_identifier : (ERROR ":" :) (expression_statement "gold_error(pcVar1,uVar3,uVar4,uVar2,namelen,name);" (call_expression "gold_error(pcVar1,uVar3,uVar4,uVar2,namelen,name)" identifier (argument_list "(pcVar1,uVar3,uVar4,uVar2,namelen,name)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00116a10(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[8] + 0xac) == '\0') {\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }\n  else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }\n  uVar4 = gettext(pcVar3);\n  FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);\n  return;\n}\n\n" (function_definition "void FUN_00116a10(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[8] + 0xac) == '\0') {\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }\n  else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }\n  uVar4 = gettext(pcVar3);\n  FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00116a10(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[8] + 0xac) == '\0') {\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }\n  else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }\n  uVar4 = gettext(pcVar3);\n  FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1[8] + 0xac) == '\0') {\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }\n  else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }" if (parenthesized_expression "(*(char *)(param_1[8] + 0xac) == '\0')" ( (binary_expression "*(char *)(param_1[8] + 0xac) == '\0'" (pointer_expression "*(char *)(param_1[8] + 0xac)" * (cast_expression "(char *)(param_1[8] + 0xac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[8] + 0xac)" ( (binary_expression "param_1[8] + 0xac" (subscript_expression "param_1[8]" identifier [ number_literal ]) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }" { (expression_statement "uVar5 = param_1[0xc];" (assignment_expression "uVar5 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = param_1[0xb];" (assignment_expression "uVar7 = param_1[0xb]" identifier = (subscript_expression "param_1[0xb]" identifier [ number_literal ])) ;) (expression_statement "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";" (assignment_expression "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause"" identifier = (string_literal ""%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) (expression_statement "uVar6 = *param_1;" (assignment_expression "uVar6 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }" else (compound_statement "{\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }" { (expression_statement "iVar1 = param_1[8] + 0xac;" (assignment_expression "iVar1 = param_1[8] + 0xac" identifier = (binary_expression "param_1[8] + 0xac" (subscript_expression "param_1[8]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar2 = FUN_00107970(iVar1,param_2,param_3);" (assignment_expression "iVar2 = FUN_00107970(iVar1,param_2,param_3)" identifier = (call_expression "FUN_00107970(iVar1,param_2,param_3)" identifier (argument_list "(iVar1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }" { (expression_statement "FUN_00107a50(iVar1,iVar2,param_4 != 0);" (call_expression "FUN_00107a50(iVar1,iVar2,param_4 != 0)" identifier (argument_list "(iVar1,iVar2,param_4 != 0)" ( identifier , identifier , (binary_expression "param_4 != 0" identifier != number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar5 = param_1[0xc];" (assignment_expression "uVar5 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = param_1[0xb];" (assignment_expression "uVar7 = param_1[0xb]" identifier = (subscript_expression "param_1[0xb]" identifier [ number_literal ])) ;) (expression_statement "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";" (assignment_expression "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared"" identifier = (string_literal ""%s:%d:%d: MEMORY region \'%.*s\' not declared"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) (expression_statement "uVar6 = *param_1;" (assignment_expression "uVar6 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }))) (expression_statement "uVar4 = gettext(pcVar3);" (assignment_expression "uVar4 = gettext(pcVar3)" identifier = (call_expression "gettext(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);" (call_expression "FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2)" identifier (argument_list "(uVar4,uVar6,uVar7,uVar5,param_3,param_2)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content escape_sequence string_content ")) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (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 (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT != LIT) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content escape_sequence string_content ")) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00116a10(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[8] + 0xac) == '\0') {\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }\n  else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }\n  uVar4 = gettext(pcVar3);\n  FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00116a10(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "FUN_00116a10") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (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")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[8] + 0xac) == '\0') {\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }\n  else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }\n  uVar4 = gettext(pcVar3);\n  FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (if_statement "if (*(char *)(param_1[8] + 0xac) == '\0') {\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }\n  else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1[8] + 0xac) == '\0')" (( "(") (binary_expression "*(char *)(param_1[8] + 0xac) == '\0'" (pointer_expression "*(char *)(param_1[8] + 0xac)" (* "*") (cast_expression "(char *)(param_1[8] + 0xac)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[8] + 0xac)" (( "(") (binary_expression "param_1[8] + 0xac" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (+ "+") (number_literal "0xac")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar6 = *param_1;\n  }" ({ "{") (expression_statement "uVar5 = param_1[0xc];" (assignment_expression "uVar5 = param_1[0xc]" (identifier "uVar5") (= "=") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (expression_statement "uVar7 = param_1[0xb];" (assignment_expression "uVar7 = param_1[0xb]" (identifier "uVar7") (= "=") (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]"))) (; ";")) (expression_statement "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";" (assignment_expression "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause"" (identifier "pcVar3") (= "=") (string_literal ""%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause"" (" """) (string_content "%s:%d:%d: MEMORY region ") (escape_sequence "\'") (string_content "%.*s") (escape_sequence "\'") (string_content " referred to outside of SECTIONS clause") (" """))) (; ";")) (expression_statement "uVar6 = *param_1;" (assignment_expression "uVar6 = *param_1" (identifier "uVar6") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }" (else "else") (compound_statement "{\n    iVar1 = param_1[8] + 0xac;\n    iVar2 = FUN_00107970(iVar1,param_2,param_3);\n    if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }\n    uVar5 = param_1[0xc];\n    uVar7 = param_1[0xb];\n    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar6 = *param_1;\n  }" ({ "{") (expression_statement "iVar1 = param_1[8] + 0xac;" (assignment_expression "iVar1 = param_1[8] + 0xac" (identifier "iVar1") (= "=") (binary_expression "param_1[8] + 0xac" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (+ "+") (number_literal "0xac"))) (; ";")) (expression_statement "iVar2 = FUN_00107970(iVar1,param_2,param_3);" (assignment_expression "iVar2 = FUN_00107970(iVar1,param_2,param_3)" (identifier "iVar2") (= "=") (call_expression "FUN_00107970(iVar1,param_2,param_3)" (identifier "FUN_00107970") (argument_list "(iVar1,param_2,param_3)" (( "(") (identifier "iVar1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00107a50(iVar1,iVar2,param_4 != 0);\n      return;\n    }" ({ "{") (expression_statement "FUN_00107a50(iVar1,iVar2,param_4 != 0);" (call_expression "FUN_00107a50(iVar1,iVar2,param_4 != 0)" (identifier "FUN_00107a50") (argument_list "(iVar1,iVar2,param_4 != 0)" (( "(") (identifier "iVar1") (, ",") (identifier "iVar2") (, ",") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar5 = param_1[0xc];" (assignment_expression "uVar5 = param_1[0xc]" (identifier "uVar5") (= "=") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (expression_statement "uVar7 = param_1[0xb];" (assignment_expression "uVar7 = param_1[0xb]" (identifier "uVar7") (= "=") (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]"))) (; ";")) (expression_statement "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";" (assignment_expression "pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared"" (identifier "pcVar3") (= "=") (string_literal ""%s:%d:%d: MEMORY region \'%.*s\' not declared"" (" """) (string_content "%s:%d:%d: MEMORY region ") (escape_sequence "\'") (string_content "%.*s") (escape_sequence "\'") (string_content " not declared") (" """))) (; ";")) (expression_statement "uVar6 = *param_1;" (assignment_expression "uVar6 = *param_1" (identifier "uVar6") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")))) (expression_statement "uVar4 = gettext(pcVar3);" (assignment_expression "uVar4 = gettext(pcVar3)" (identifier "uVar4") (= "=") (call_expression "gettext(pcVar3)" (identifier "gettext") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")")))) (; ";")) (expression_statement "FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);" (call_expression "FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2)" (identifier "FUN_0005ad00") (argument_list "(uVar4,uVar6,uVar7,uVar5,param_3,param_2)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar6") (, ",") (identifier "uVar7") (, ",") (identifier "uVar5") (, ",") (identifier "param_3") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(void *closurev,char *name,size_t namelen,int var_4)

{
  type_1 *this;
  type_2 *var_2;
  char *pcVar1;
  type_3 uVar2;
  type_3 uVar3;
  type_3 uVar4;
  
  if (*(char *)(*(int *)((int)closurev + 0x20) + 0xac) == '\0') {
    uVar2 = *(type_3 *)((int)closurev + 0x30);
    uVar4 = *(type_3 *)((int)closurev + 0x2c);
    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";
                    /* WARNING: Load size is inaccurate */
    uVar3 = *closurev;
  }
  else {
    this = (type_1 *)(*(int *)((int)closurev + 0x20) + 0xac);
    var_2 = gold::Script_sections::var_1(this,name,namelen);
    if (var_2 != (type_2 *)0x0) {
      gold::Script_sections::var_3(this,var_2,var_4 != 0);
      return;
    }
    uVar2 = *(type_3 *)((int)closurev + 0x30);
    uVar4 = *(type_3 *)((int)closurev + 0x2c);
    pcVar1 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";
                    /* WARNING: Load size is inaccurate */
    uVar3 = *closurev;
  }
  pcVar1 = (char *)var_5(pcVar1);
  gold::var_6(pcVar1,uVar3,uVar4,uVar2,namelen,name);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(undefined4 *param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  
  if (*(char *)(param_1[8] + 0xac) == '\0') {
    uVar5 = param_1[0xc];
    uVar7 = param_1[0xb];
    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";
    uVar6 = *param_1;
  }
  else {
    iVar1 = param_1[8] + 0xac;
    iVar2 = FUN_00107970(iVar1,param_2,param_3);
    if (iVar2 != 0) {
      FUN_00107a50(iVar1,iVar2,param_4 != 0);
      return;
    }
    uVar5 = param_1[0xc];
    uVar7 = param_1[0xb];
    pcVar3 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";
    uVar6 = *param_1;
  }
  uVar4 = gettext(pcVar3);
  FUN_0005ad00(uVar4,uVar6,uVar7,uVar5,param_3,param_2);
  return;
}

