
/* WARNING: Enum "DT": Some values do not have unique names */

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

{
  Script_sections *this;
  Memory_region *mr;
  undefined8 uVar1;
  Parser_closure *closure;
  char *pcVar2;
  uint uVar3;
  uint uVar4;
  
  if (*(char *)(*(long *)((long)closurev + 0x28) + 0x148) == '\0') {
    uVar4 = *(uint *)((long)closurev + 0x44);
    uVar3 = *(uint *)((long)closurev + 0x40);
    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";
                    /* WARNING: Load size is inaccurate */
    uVar1 = *closurev;
  }
  else {
    this = (Script_sections *)(*(long *)((long)closurev + 0x28) + 0x148);
    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;
    }
    uVar4 = *(uint *)((long)closurev + 0x44);
    uVar3 = *(uint *)((long)closurev + 0x40);
    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";
                    /* WARNING: Load size is inaccurate */
    uVar1 = *closurev;
  }
  pcVar2 = (char *)gettext(pcVar2);
  gold::gold_error(pcVar2,uVar1,(ulong)uVar3,(ulong)uVar4,namelen & 0xffffffff,name);
  return;
}



void FUN_0023f410(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)

{
  long lVar1;
  long lVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  char *pcVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  
  if (*(char *)(param_1[5] + 0x148) == '\0') {
    uVar7 = *(undefined4 *)((long)param_1 + 0x44);
    uVar6 = *(undefined4 *)(param_1 + 8);
    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";
    uVar4 = *param_1;
  }
  else {
    lVar1 = param_1[5] + 0x148;
    lVar2 = FUN_00231670(lVar1);
    if (lVar2 != 0) {
      FUN_00231730(lVar1,lVar2,param_4 != 0);
      return;
    }
    uVar7 = *(undefined4 *)((long)param_1 + 0x44);
    uVar6 = *(undefined4 *)(param_1 + 8);
    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";
    uVar4 = *param_1;
  }
  uVar3 = gettext(pcVar5);
  FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);
  return;
}


PUSH R15
PUSH R14
PUSH R13
MOV R13,RSI
PUSH R12
MOV R12,RDX
PUSH RBP
MOV RBP,RDI
PUSH RBX
SUB RSP,0x8
MOV RDI,qword ptr [RDI + 0x28]
CMP byte ptr [RDI + 0x148],0x0
JZ 0x0023f470
LEA RBX,[RDI + 0x148]
MOV R14D,ECX
MOV RDI,RBX
CALL 0x00231670
TEST RAX,RAX
JZ 0x0023f4b0
XOR EDX,EDX
TEST R14D,R14D
MOV RDI,RBX
MOV RSI,RAX
SETNZ DL
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
JMP 0x00231730
MOV R15D,dword ptr [RBP + 0x44]
MOV R14D,dword ptr [RBP + 0x40]
LEA RDI,[0x3504a0]
MOV RBX,qword ptr [RBP]
CALL 0x00144320
ADD RSP,0x8
MOV R9,R13
MOV R8D,R12D
MOV ECX,R15D
MOV EDX,R14D
MOV RSI,RBX
MOV RDI,RAX
POP RBX
XOR EAX,EAX
POP RBP
POP R12
POP R13
POP R14
POP R15
JMP 0x00191870
MOV R15D,dword ptr [RBP + 0x44]
MOV R14D,dword ptr [RBP + 0x40]
LEA RDI,[0x3504e8]
MOV RBX,qword ptr [RBP]
JMP 0x0023f483
(translation_unit "void FUN_0023f410(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[5] + 0x148) == '\0') {\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }\n  else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }\n  uVar3 = gettext(pcVar5);\n  FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);\n  return;\n}\n\n" (function_definition "void FUN_0023f410(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[5] + 0x148) == '\0') {\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }\n  else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }\n  uVar3 = gettext(pcVar5);\n  FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0023f410(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[5] + 0x148) == '\0') {\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }\n  else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }\n  uVar3 = gettext(pcVar5);\n  FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1[5] + 0x148) == '\0') {\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }\n  else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }" if (parenthesized_expression "(*(char *)(param_1[5] + 0x148) == '\0')" ( (binary_expression "*(char *)(param_1[5] + 0x148) == '\0'" (pointer_expression "*(char *)(param_1[5] + 0x148)" * (cast_expression "(char *)(param_1[5] + 0x148)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0x148)" ( (binary_expression "param_1[5] + 0x148" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }" { (expression_statement "uVar7 = *(undefined4 *)((long)param_1 + 0x44);" (assignment_expression "uVar7 = *(undefined4 *)((long)param_1 + 0x44)" identifier = (pointer_expression "*(undefined4 *)((long)param_1 + 0x44)" * (cast_expression "(undefined4 *)((long)param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x44)" ( (binary_expression "(long)param_1 + 0x44" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";" (assignment_expression "pcVar5 = "%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 "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }" else (compound_statement "{\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }" { (expression_statement "lVar1 = param_1[5] + 0x148;" (assignment_expression "lVar1 = param_1[5] + 0x148" identifier = (binary_expression "param_1[5] + 0x148" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "lVar2 = FUN_00231670(lVar1);" (assignment_expression "lVar2 = FUN_00231670(lVar1)" identifier = (call_expression "FUN_00231670(lVar1)" identifier (argument_list "(lVar1)" ( identifier )))) ;) (if_statement "if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }" { (expression_statement "FUN_00231730(lVar1,lVar2,param_4 != 0);" (call_expression "FUN_00231730(lVar1,lVar2,param_4 != 0)" identifier (argument_list "(lVar1,lVar2,param_4 != 0)" ( identifier , identifier , (binary_expression "param_4 != 0" identifier != number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar7 = *(undefined4 *)((long)param_1 + 0x44);" (assignment_expression "uVar7 = *(undefined4 *)((long)param_1 + 0x44)" identifier = (pointer_expression "*(undefined4 *)((long)param_1 + 0x44)" * (cast_expression "(undefined4 *)((long)param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x44)" ( (binary_expression "(long)param_1 + 0x44" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";" (assignment_expression "pcVar5 = "%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 "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }))) (expression_statement "uVar3 = gettext(pcVar5);" (assignment_expression "uVar3 = gettext(pcVar5)" identifier = (call_expression "gettext(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);" (call_expression "FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2)" identifier (argument_list "(uVar3,uVar4,uVar6,uVar7,param_3,param_2)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\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  undefined8 uVar1;\n  Parser_closure *closure;\n  char *pcVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (*(char *)(*(long *)((long)closurev + 0x28) + 0x148) == '\0') {\n    uVar4 = *(uint *)((long)closurev + 0x44);\n    uVar3 = *(uint *)((long)closurev + 0x40);\n    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n                    /* WARNING: Load size is inaccurate */\n    uVar1 = *closurev;\n  }\n  else {\n    this = (Script_sections *)(*(long *)((long)closurev + 0x28) + 0x148);\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    uVar4 = *(uint *)((long)closurev + 0x44);\n    uVar3 = *(uint *)((long)closurev + 0x40);\n    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar1 = *closurev;\n  }\n  pcVar2 = (char *)gettext(pcVar2);\n  gold::gold_error(pcVar2,uVar1,(ulong)uVar3,(ulong)uVar4,namelen & 0xffffffff,name);\n  return;\n}\n\n" 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  undefined8 uVar1;\n  Parser_closure *closure;\n  char *pcVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (*(char *)(*(long *)((long)closurev + 0x28) + 0x148) == '\0') {\n    uVar4 = *(uint *)((long)closurev + 0x44);\n    uVar3 = *(uint *)((long)closurev + 0x40);\n    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n                    /* WARNING: Load size is inaccurate */\n    uVar1 = *closurev;\n  }\n  else {\n    this = (Script_sections *)(*(long *)((long)closurev + 0x28) + 0x148);\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    uVar4 = *(uint *)((long)closurev + 0x44);\n    uVar3 = *(uint *)((long)closurev + 0x40);\n    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar1 = *closurev;\n  }\n  pcVar2 = (char *)gettext(pcVar2);\n  gold::gold_error(pcVar2,uVar1,(ulong)uVar3,(ulong)uVar4,namelen & 0xffffffff,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  undefined8 uVar1;\n  Parser_closure *closure;\n  char *pcVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (*(char *)(*(long *)((long)closurev + 0x28) + 0x148) == '\0') {\n    uVar4 = *(uint *)((long)closurev + 0x44);\n    uVar3 = *(uint *)((long)closurev + 0x40);\n    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n                    /* WARNING: Load size is inaccurate */\n    uVar1 = *closurev;\n  }\n  else {\n    this = (Script_sections *)(*(long *)((long)closurev + 0x28) + 0x148);\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    uVar4 = *(uint *)((long)closurev + 0x44);\n    uVar3 = *(uint *)((long)closurev + 0x40);\n    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar1 = *closurev;\n  }\n  pcVar2 = (char *)gettext(pcVar2);\n  gold::gold_error(pcVar2,uVar1,(ulong)uVar3,(ulong)uVar4,namelen & 0xffffffff,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 "undefined8 uVar1;" type_identifier identifier ;) (declaration "Parser_closure *closure;" type_identifier (pointer_declarator "*closure" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (*(char *)(*(long *)((long)closurev + 0x28) + 0x148) == '\0') {\n    uVar4 = *(uint *)((long)closurev + 0x44);\n    uVar3 = *(uint *)((long)closurev + 0x40);\n    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n                    /* WARNING: Load size is inaccurate */\n    uVar1 = *closurev;\n  }\n  else {\n    this = (Script_sections *)(*(long *)((long)closurev + 0x28) + 0x148);\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    uVar4 = *(uint *)((long)closurev + 0x44);\n    uVar3 = *(uint *)((long)closurev + 0x40);\n    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar1 = *closurev;\n  }" if (parenthesized_expression "(*(char *)(*(long *)((long)closurev + 0x28) + 0x148) == '\0')" ( (binary_expression "*(char *)(*(long *)((long)closurev + 0x28) + 0x148) == '\0'" (pointer_expression "*(char *)(*(long *)((long)closurev + 0x28) + 0x148)" * (cast_expression "(char *)(*(long *)((long)closurev + 0x28) + 0x148)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)((long)closurev + 0x28) + 0x148)" ( (binary_expression "*(long *)((long)closurev + 0x28) + 0x148" (pointer_expression "*(long *)((long)closurev + 0x28)" * (cast_expression "(long *)((long)closurev + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)closurev + 0x28)" ( (binary_expression "(long)closurev + 0x28" (cast_expression "(long)closurev" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar4 = *(uint *)((long)closurev + 0x44);\n    uVar3 = *(uint *)((long)closurev + 0x40);\n    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n                    /* WARNING: Load size is inaccurate */\n    uVar1 = *closurev;\n  }" { (expression_statement "uVar4 = *(uint *)((long)closurev + 0x44);" (assignment_expression "uVar4 = *(uint *)((long)closurev + 0x44)" identifier = (pointer_expression "*(uint *)((long)closurev + 0x44)" * (cast_expression "(uint *)((long)closurev + 0x44)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)closurev + 0x44)" ( (binary_expression "(long)closurev + 0x44" (cast_expression "(long)closurev" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)((long)closurev + 0x40);" (assignment_expression "uVar3 = *(uint *)((long)closurev + 0x40)" identifier = (pointer_expression "*(uint *)((long)closurev + 0x40)" * (cast_expression "(uint *)((long)closurev + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)closurev + 0x40)" ( (binary_expression "(long)closurev + 0x40" (cast_expression "(long)closurev" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";" (assignment_expression "pcVar2 = "%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 "uVar1 = *closurev;" (assignment_expression "uVar1 = *closurev" identifier = (pointer_expression "*closurev" * identifier)) ;) }) (else_clause "else {\n    this = (Script_sections *)(*(long *)((long)closurev + 0x28) + 0x148);\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    uVar4 = *(uint *)((long)closurev + 0x44);\n    uVar3 = *(uint *)((long)closurev + 0x40);\n    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar1 = *closurev;\n  }" else (compound_statement "{\n    this = (Script_sections *)(*(long *)((long)closurev + 0x28) + 0x148);\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    uVar4 = *(uint *)((long)closurev + 0x44);\n    uVar3 = *(uint *)((long)closurev + 0x40);\n    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n                    /* WARNING: Load size is inaccurate */\n    uVar1 = *closurev;\n  }" { (expression_statement "this = (Script_sections *)(*(long *)((long)closurev + 0x28) + 0x148);" (assignment_expression "this = (Script_sections *)(*(long *)((long)closurev + 0x28) + 0x148)" identifier = (cast_expression "(Script_sections *)(*(long *)((long)closurev + 0x28) + 0x148)" ( (type_descriptor "Script_sections *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)((long)closurev + 0x28) + 0x148)" ( (binary_expression "*(long *)((long)closurev + 0x28) + 0x148" (pointer_expression "*(long *)((long)closurev + 0x28)" * (cast_expression "(long *)((long)closurev + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)closurev + 0x28)" ( (binary_expression "(long)closurev + 0x28" (cast_expression "(long)closurev" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) 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 "uVar4 = *(uint *)((long)closurev + 0x44);" (assignment_expression "uVar4 = *(uint *)((long)closurev + 0x44)" identifier = (pointer_expression "*(uint *)((long)closurev + 0x44)" * (cast_expression "(uint *)((long)closurev + 0x44)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)closurev + 0x44)" ( (binary_expression "(long)closurev + 0x44" (cast_expression "(long)closurev" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)((long)closurev + 0x40);" (assignment_expression "uVar3 = *(uint *)((long)closurev + 0x40)" identifier = (pointer_expression "*(uint *)((long)closurev + 0x40)" * (cast_expression "(uint *)((long)closurev + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)closurev + 0x40)" ( (binary_expression "(long)closurev + 0x40" (cast_expression "(long)closurev" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";" (assignment_expression "pcVar2 = "%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 "uVar1 = *closurev;" (assignment_expression "uVar1 = *closurev" identifier = (pointer_expression "*closurev" * identifier)) ;) }))) (expression_statement "pcVar2 = (char *)gettext(pcVar2);" (assignment_expression "pcVar2 = (char *)gettext(pcVar2)" identifier = (cast_expression "(char *)gettext(pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))))) ;) (labeled_statement "gold::gold_error(pcVar2,uVar1,(ulong)uVar3,(ulong)uVar4,namelen & 0xffffffff,name);" statement_identifier : (ERROR ":" :) (expression_statement "gold_error(pcVar2,uVar1,(ulong)uVar3,(ulong)uVar4,namelen & 0xffffffff,name);" (call_expression "gold_error(pcVar2,uVar1,(ulong)uVar3,(ulong)uVar4,namelen & 0xffffffff,name)" identifier (argument_list "(pcVar2,uVar1,(ulong)uVar3,(ulong)uVar4,namelen & 0xffffffff,name)" ( identifier , identifier , (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier) , (cast_expression "(ulong)uVar4" ( (type_descriptor "ulong" type_identifier) ) identifier) , (binary_expression "namelen & 0xffffffff" identifier & number_literal) , identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0023f410(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[5] + 0x148) == '\0') {\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }\n  else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }\n  uVar3 = gettext(pcVar5);\n  FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);\n  return;\n}\n\n" (function_definition "void FUN_0023f410(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[5] + 0x148) == '\0') {\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }\n  else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }\n  uVar3 = gettext(pcVar5);\n  FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0023f410(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[5] + 0x148) == '\0') {\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }\n  else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }\n  uVar3 = gettext(pcVar5);\n  FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1[5] + 0x148) == '\0') {\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }\n  else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }" if (parenthesized_expression "(*(char *)(param_1[5] + 0x148) == '\0')" ( (binary_expression "*(char *)(param_1[5] + 0x148) == '\0'" (pointer_expression "*(char *)(param_1[5] + 0x148)" * (cast_expression "(char *)(param_1[5] + 0x148)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0x148)" ( (binary_expression "param_1[5] + 0x148" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }" { (expression_statement "uVar7 = *(undefined4 *)((long)param_1 + 0x44);" (assignment_expression "uVar7 = *(undefined4 *)((long)param_1 + 0x44)" identifier = (pointer_expression "*(undefined4 *)((long)param_1 + 0x44)" * (cast_expression "(undefined4 *)((long)param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x44)" ( (binary_expression "(long)param_1 + 0x44" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";" (assignment_expression "pcVar5 = "%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 "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }" else (compound_statement "{\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }" { (expression_statement "lVar1 = param_1[5] + 0x148;" (assignment_expression "lVar1 = param_1[5] + 0x148" identifier = (binary_expression "param_1[5] + 0x148" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "lVar2 = FUN_00231670(lVar1);" (assignment_expression "lVar2 = FUN_00231670(lVar1)" identifier = (call_expression "FUN_00231670(lVar1)" identifier (argument_list "(lVar1)" ( identifier )))) ;) (if_statement "if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }" { (expression_statement "FUN_00231730(lVar1,lVar2,param_4 != 0);" (call_expression "FUN_00231730(lVar1,lVar2,param_4 != 0)" identifier (argument_list "(lVar1,lVar2,param_4 != 0)" ( identifier , identifier , (binary_expression "param_4 != 0" identifier != number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar7 = *(undefined4 *)((long)param_1 + 0x44);" (assignment_expression "uVar7 = *(undefined4 *)((long)param_1 + 0x44)" identifier = (pointer_expression "*(undefined4 *)((long)param_1 + 0x44)" * (cast_expression "(undefined4 *)((long)param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x44)" ( (binary_expression "(long)param_1 + 0x44" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";" (assignment_expression "pcVar5 = "%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 "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }))) (expression_statement "uVar3 = gettext(pcVar5);" (assignment_expression "uVar3 = gettext(pcVar5)" identifier = (call_expression "gettext(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);" (call_expression "FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2)" identifier (argument_list "(uVar3,uVar4,uVar6,uVar7,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 (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 )))) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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_0023f410(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[5] + 0x148) == '\0') {\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }\n  else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }\n  uVar3 = gettext(pcVar5);\n  FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0023f410(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)" (identifier "FUN_0023f410") (parameter_list "(undefined8 *param_1,undefined8 param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (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  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  if (*(char *)(param_1[5] + 0x148) == '\0') {\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }\n  else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }\n  uVar3 = gettext(pcVar5);\n  FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (if_statement "if (*(char *)(param_1[5] + 0x148) == '\0') {\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }\n  else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1[5] + 0x148) == '\0')" (( "(") (binary_expression "*(char *)(param_1[5] + 0x148) == '\0'" (pointer_expression "*(char *)(param_1[5] + 0x148)" (* "*") (cast_expression "(char *)(param_1[5] + 0x148)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[5] + 0x148)" (( "(") (binary_expression "param_1[5] + 0x148" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "0x148")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";\n    uVar4 = *param_1;\n  }" ({ "{") (expression_statement "uVar7 = *(undefined4 *)((long)param_1 + 0x44);" (assignment_expression "uVar7 = *(undefined4 *)((long)param_1 + 0x44)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)((long)param_1 + 0x44)" (* "*") (cast_expression "(undefined4 *)((long)param_1 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x44)" (( "(") (binary_expression "(long)param_1 + 0x44" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x44")) () ")"))))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 8)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";" (assignment_expression "pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause"" (identifier "pcVar5") (= "=") (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 "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" (identifier "uVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (else_clause "else {\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }" (else "else") (compound_statement "{\n    lVar1 = param_1[5] + 0x148;\n    lVar2 = FUN_00231670(lVar1);\n    if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }\n    uVar7 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar6 = *(undefined4 *)(param_1 + 8);\n    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";\n    uVar4 = *param_1;\n  }" ({ "{") (expression_statement "lVar1 = param_1[5] + 0x148;" (assignment_expression "lVar1 = param_1[5] + 0x148" (identifier "lVar1") (= "=") (binary_expression "param_1[5] + 0x148" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "0x148"))) (; ";")) (expression_statement "lVar2 = FUN_00231670(lVar1);" (assignment_expression "lVar2 = FUN_00231670(lVar1)" (identifier "lVar2") (= "=") (call_expression "FUN_00231670(lVar1)" (identifier "FUN_00231670") (argument_list "(lVar1)" (( "(") (identifier "lVar1") () ")")))) (; ";")) (if_statement "if (lVar2 != 0) {\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00231730(lVar1,lVar2,param_4 != 0);\n      return;\n    }" ({ "{") (expression_statement "FUN_00231730(lVar1,lVar2,param_4 != 0);" (call_expression "FUN_00231730(lVar1,lVar2,param_4 != 0)" (identifier "FUN_00231730") (argument_list "(lVar1,lVar2,param_4 != 0)" (( "(") (identifier "lVar1") (, ",") (identifier "lVar2") (, ",") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar7 = *(undefined4 *)((long)param_1 + 0x44);" (assignment_expression "uVar7 = *(undefined4 *)((long)param_1 + 0x44)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)((long)param_1 + 0x44)" (* "*") (cast_expression "(undefined4 *)((long)param_1 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x44)" (( "(") (binary_expression "(long)param_1 + 0x44" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x44")) () ")"))))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 8)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";" (assignment_expression "pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared"" (identifier "pcVar5") (= "=") (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 "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" (identifier "uVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")))) (expression_statement "uVar3 = gettext(pcVar5);" (assignment_expression "uVar3 = gettext(pcVar5)" (identifier "uVar3") (= "=") (call_expression "gettext(pcVar5)" (identifier "gettext") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")")))) (; ";")) (expression_statement "FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);" (call_expression "FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2)" (identifier "FUN_00191870") (argument_list "(uVar3,uVar4,uVar6,uVar7,param_3,param_2)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (identifier "uVar6") (, ",") (identifier "uVar7") (, ",") (identifier "param_3") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */

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

{
  type_1 *this;
  type_2 *var_2;
  type_3 uVar1;
  type_4 *closure;
  char *pcVar2;
  type_5 uVar3;
  type_5 uVar4;
  
  if (*(char *)(*(long *)((long)closurev + 0x28) + 0x148) == '\0') {
    uVar4 = *(type_5 *)((long)closurev + 0x44);
    uVar3 = *(type_5 *)((long)closurev + 0x40);
    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";
                    /* WARNING: Load size is inaccurate */
    uVar1 = *closurev;
  }
  else {
    this = (type_1 *)(*(long *)((long)closurev + 0x28) + 0x148);
    var_2 = gold::Script_sections::var_1(this,name,var_7);
    if (var_2 != (type_2 *)0x0) {
      gold::Script_sections::var_3(this,var_2,var_4 != 0);
      return;
    }
    uVar4 = *(type_5 *)((long)closurev + 0x44);
    uVar3 = *(type_5 *)((long)closurev + 0x40);
    pcVar2 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";
                    /* WARNING: Load size is inaccurate */
    uVar1 = *closurev;
  }
  pcVar2 = (char *)var_5(pcVar2);
  gold::var_6(pcVar2,uVar1,(type_6)uVar3,(type_6)uVar4,var_7 & 0xffffffff,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: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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))))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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))))

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

{
  long lVar1;
  long lVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  char *pcVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  
  if (*(char *)(param_1[5] + 0x148) == '\0') {
    uVar7 = *(undefined4 *)((long)param_1 + 0x44);
    uVar6 = *(undefined4 *)(param_1 + 8);
    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' referred to outside of SECTIONS clause";
    uVar4 = *param_1;
  }
  else {
    lVar1 = param_1[5] + 0x148;
    lVar2 = FUN_00231670(lVar1);
    if (lVar2 != 0) {
      FUN_00231730(lVar1,lVar2,param_4 != 0);
      return;
    }
    uVar7 = *(undefined4 *)((long)param_1 + 0x44);
    uVar6 = *(undefined4 *)(param_1 + 8);
    pcVar5 = "%s:%d:%d: MEMORY region \'%.*s\' not declared";
    uVar4 = *param_1;
  }
  uVar3 = gettext(pcVar5);
  FUN_00191870(uVar3,uVar4,uVar6,uVar7,param_3,param_2);
  return;
}

