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

void script_add_search_dir(void *closurev,char *option,size_t length)

{
  uint uVar1;
  uint uVar2;
  undefined8 uVar3;
  long *plVar4;
  char *format;
  Parser_closure *closure;
  string s;
  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_38;
  
  if (*(long *)((long)closurev + 0x20) == 0) {
    uVar1 = *(uint *)((long)closurev + 0x44);
    uVar2 = *(uint *)((long)closurev + 0x40);
                    /* WARNING: Load size is inaccurate */
    uVar3 = *closurev;
    format = (char *)gettext(
                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"
                            );
    gold::gold_warning(format,uVar3,(ulong)uVar2,(ulong)uVar1);
    return;
  }
  if (*(char *)(*(long *)((long)closurev + 0x20) + 0x3f91) == '\0') {
    local_38._M_dataplus._M_p = (pointer)&local_38.field_2;
    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
    _M_construct<char_const*>(&local_38,option,option + length);
                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */
    plVar4 = (long *)std::string::_M_replace((string *)&local_38,0,0,"-L",2);
    s._M_dataplus._M_p = (pointer)&s.field_2;
    if ((long *)*plVar4 == plVar4 + 2) {
      s.field_2._M_allocated_capacity = plVar4[2];
      s.field_2._8_8_ = plVar4[3];
    }
    else {
      s.field_2._M_allocated_capacity = plVar4[2];
      s._M_dataplus._M_p = (pointer)*plVar4;
    }
    s._M_string_length = plVar4[1];
    *(undefined1 *)(plVar4 + 2) = 0;
    *plVar4 = (long)(plVar4 + 2);
    plVar4[1] = 0;
    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
         *)local_38._M_dataplus._M_p != &local_38.field_2) {
      operator_delete(local_38._M_dataplus._M_p);
    }
                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */
    script_parse_option(closurev,s._M_dataplus._M_p,s._M_string_length);
    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
         *)s._M_dataplus._M_p != &s.field_2) {
      operator_delete(s._M_dataplus._M_p);
      return;
    }
  }
  return;
}



void FUN_002662d0(undefined8 *param_1,long param_2,long param_3)

{
  undefined4 uVar1;
  undefined4 uVar2;
  long lVar3;
  undefined8 uVar4;
  long *plVar5;
  undefined8 uVar6;
  long *local_58;
  long local_48;
  long lStack_40;
  undefined1 *local_38 [2];
  undefined1 local_28 [16];
  
  if (param_1[4] == 0) {
    uVar1 = *(undefined4 *)((long)param_1 + 0x44);
    uVar2 = *(undefined4 *)(param_1 + 8);
    uVar4 = *param_1;
    uVar6 = gettext(
                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"
                   );
    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);
    return;
  }
  if (*(char *)(param_1[4] + 0x3f91) == '\0') {
    local_38[0] = local_28;
    FUN_001665c0(local_38,param_2,param_3 + param_2);
                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */
    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);
    local_58 = &local_48;
    if ((long *)*plVar5 == plVar5 + 2) {
      local_48 = plVar5[2];
      lStack_40 = plVar5[3];
    }
    else {
      local_48 = plVar5[2];
      local_58 = (long *)*plVar5;
    }
    lVar3 = plVar5[1];
    *(undefined1 *)(plVar5 + 2) = 0;
    *plVar5 = (long)(plVar5 + 2);
    plVar5[1] = 0;
    if (local_38[0] != local_28) {
      FUN_002dac60();
    }
                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */
    FUN_00265460(param_1,local_58,lVar3);
    if (local_58 != &local_48) {
      FUN_002dac60();
      return;
    }
  }
  return;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x40
MOV RAX,qword ptr [RDI + 0x20]
TEST RAX,RAX
JZ 0x002663c8
CMP byte ptr [RAX + 0x3f91],0x0
JZ 0x00266300
ADD RSP,0x40
POP RBX
POP RBP
POP R12
RET
LEA RBP,[RSP + 0x20]
ADD RDX,RSI
LEA RAX,[RBP + 0x10]
MOV RDI,RBP
MOV qword ptr [RSP + 0x20],RAX
CALL 0x001665c0
MOV R8D,0x2
XOR EDX,EDX
XOR ESI,ESI
LEA RCX,[0x385368]
MOV RDI,RBP
CALL 0x002e2590
MOV R12,RSP
LEA RDX,[R12 + 0x10]
MOV qword ptr [RSP],RDX
MOV RCX,qword ptr [RAX]
LEA RDX,[RAX + 0x10]
CMP RCX,RDX
JZ 0x002663b8
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RCX
MOV RCX,qword ptr [RAX + 0x8]
ADD RBP,0x10
MOV byte ptr [RAX + 0x10],0x0
MOV qword ptr [RSP + 0x8],RCX
MOV qword ptr [RAX],RDX
MOV RDI,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x8],0x0
CMP RDI,RBP
JZ 0x00266382
CALL 0x002dac60
MOV RDX,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP]
MOV RDI,RBX
CALL 0x00265460
MOV RDI,qword ptr [RSP]
ADD R12,0x10
CMP RDI,R12
JZ 0x002662f1
CALL 0x002dac60
ADD RSP,0x40
POP RBX
POP RBP
POP R12
RET
MOVDQU XMM0,xmmword ptr [RAX + 0x10]
MOVAPS xmmword ptr [RSP + 0x10],XMM0
JMP 0x00266357
MOV R12D,dword ptr [RDI + 0x44]
MOV EBP,dword ptr [RDI + 0x40]
MOV RBX,qword ptr [RDI]
LEA RDI,[0x386228]
CALL 0x00147320
MOV ECX,R12D
MOV EDX,EBP
MOV RSI,RBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001783d0
ADD RSP,0x40
POP RBX
POP RBP
POP R12
RET
(translation_unit "void FUN_002662d0(undefined8 *param_1,long param_2,long param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long *plVar5;\n  undefined8 uVar6;\n  long *local_58;\n  long local_48;\n  long lStack_40;\n  undefined1 *local_38 [2];\n  undefined1 local_28 [16];\n  \n  if (param_1[4] == 0) {\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }\n  if (*(char *)(param_1[4] + 0x3f91) == '\0') {\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */\n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */\n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_002662d0(undefined8 *param_1,long param_2,long param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long *plVar5;\n  undefined8 uVar6;\n  long *local_58;\n  long local_48;\n  long lStack_40;\n  undefined1 *local_38 [2];\n  undefined1 local_28 [16];\n  \n  if (param_1[4] == 0) {\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }\n  if (*(char *)(param_1[4] + 0x3f91) == '\0') {\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */\n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */\n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002662d0(undefined8 *param_1,long param_2,long param_3)" identifier (parameter_list "(undefined8 *param_1,long param_2,long param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long *plVar5;\n  undefined8 uVar6;\n  long *local_58;\n  long local_48;\n  long lStack_40;\n  undefined1 *local_38 [2];\n  undefined1 local_28 [16];\n  \n  if (param_1[4] == 0) {\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }\n  if (*(char *)(param_1[4] + 0x3f91) == '\0') {\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */\n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */\n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long *plVar5;" (sized_type_specifier "long" long) (pointer_declarator "*plVar5" * identifier) ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "long *local_58;" (sized_type_specifier "long" long) (pointer_declarator "*local_58" * identifier) ;) (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "long lStack_40;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *local_38 [2];" type_identifier (pointer_declarator "*local_38 [2]" * (array_declarator "local_38 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 local_28 [16];" type_identifier (array_declarator "local_28 [16]" identifier [ number_literal ]) ;) (if_statement "if (param_1[4] == 0) {\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }" { (expression_statement "uVar1 = *(undefined4 *)((long)param_1 + 0x44);" (assignment_expression "uVar1 = *(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 "uVar2 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar2 = *(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 "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );" (assignment_expression "uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   )" identifier = (call_expression "gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   )" identifier (argument_list "(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   )" ( (string_literal ""%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"" " string_content ") )))) ;) (expression_statement "FUN_001783d0(uVar6,uVar4,uVar2,uVar1);" (call_expression "FUN_001783d0(uVar6,uVar4,uVar2,uVar1)" identifier (argument_list "(uVar6,uVar4,uVar2,uVar1)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(char *)(param_1[4] + 0x3f91) == '\0') {\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */\n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */\n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }" if (parenthesized_expression "(*(char *)(param_1[4] + 0x3f91) == '\0')" ( (binary_expression "*(char *)(param_1[4] + 0x3f91) == '\0'" (pointer_expression "*(char *)(param_1[4] + 0x3f91)" * (cast_expression "(char *)(param_1[4] + 0x3f91)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[4] + 0x3f91)" ( (binary_expression "param_1[4] + 0x3f91" (subscript_expression "param_1[4]" identifier [ number_literal ]) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */\n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */\n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }" { (expression_statement "local_38[0] = local_28;" (assignment_expression "local_38[0] = local_28" (subscript_expression "local_38[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_001665c0(local_38,param_2,param_3 + param_2);" (call_expression "FUN_001665c0(local_38,param_2,param_3 + param_2)" identifier (argument_list "(local_38,param_2,param_3 + param_2)" ( identifier , identifier , (binary_expression "param_3 + param_2" identifier + identifier) ))) ;) comment (expression_statement "plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);" (assignment_expression "plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2)" identifier = (cast_expression "(long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002e2590(local_38,0,0,&DAT_00385368,2)" identifier (argument_list "(local_38,0,0,&DAT_00385368,2)" ( identifier , number_literal , number_literal , (pointer_expression "&DAT_00385368" & identifier) , number_literal ))))) ;) (expression_statement "local_58 = &local_48;" (assignment_expression "local_58 = &local_48" identifier = (pointer_expression "&local_48" & identifier)) ;) (if_statement "if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }" if (parenthesized_expression "((long *)*plVar5 == plVar5 + 2)" ( (binary_expression "(long *)*plVar5 == plVar5 + 2" (cast_expression "(long *)*plVar5" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar5" * identifier)) == (binary_expression "plVar5 + 2" identifier + number_literal)) )) (compound_statement "{\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }" { (expression_statement "local_48 = plVar5[2];" (assignment_expression "local_48 = plVar5[2]" identifier = (subscript_expression "plVar5[2]" identifier [ number_literal ])) ;) (expression_statement "lStack_40 = plVar5[3];" (assignment_expression "lStack_40 = plVar5[3]" identifier = (subscript_expression "plVar5[3]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }" else (compound_statement "{\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }" { (expression_statement "local_48 = plVar5[2];" (assignment_expression "local_48 = plVar5[2]" identifier = (subscript_expression "plVar5[2]" identifier [ number_literal ])) ;) (expression_statement "local_58 = (long *)*plVar5;" (assignment_expression "local_58 = (long *)*plVar5" identifier = (cast_expression "(long *)*plVar5" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar5" * identifier))) ;) }))) (expression_statement "lVar3 = plVar5[1];" (assignment_expression "lVar3 = plVar5[1]" identifier = (subscript_expression "plVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(plVar5 + 2) = 0;" (assignment_expression "*(undefined1 *)(plVar5 + 2) = 0" (pointer_expression "*(undefined1 *)(plVar5 + 2)" * (cast_expression "(undefined1 *)(plVar5 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar5 + 2)" ( (binary_expression "plVar5 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*plVar5 = (long)(plVar5 + 2);" (assignment_expression "*plVar5 = (long)(plVar5 + 2)" (pointer_expression "*plVar5" * identifier) = (cast_expression "(long)(plVar5 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(plVar5 + 2)" ( (binary_expression "plVar5 + 2" identifier + number_literal) )))) ;) (expression_statement "plVar5[1] = 0;" (assignment_expression "plVar5[1] = 0" (subscript_expression "plVar5[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }" if (parenthesized_expression "(local_38[0] != local_28)" ( (binary_expression "local_38[0] != local_28" (subscript_expression "local_38[0]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n      FUN_002dac60();\n    }" { (expression_statement "FUN_002dac60();" (call_expression "FUN_002dac60()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "FUN_00265460(param_1,local_58,lVar3);" (call_expression "FUN_00265460(param_1,local_58,lVar3)" identifier (argument_list "(param_1,local_58,lVar3)" ( identifier , identifier , identifier ))) ;) (if_statement "if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }" if (parenthesized_expression "(local_58 != &local_48)" ( (binary_expression "local_58 != &local_48" identifier != (pointer_expression "&local_48" & identifier)) )) (compound_statement "{\n      FUN_002dac60();\n      return;\n    }" { (expression_statement "FUN_002dac60();" (call_expression "FUN_002dac60()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n\nvoid script_add_search_dir(void *closurev,char *option,size_t length)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  char *format;\n  Parser_closure *closure;\n  string s;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_38;\n  \n  if (*(long *)((long)closurev + 0x20) == 0) {\n    uVar1 = *(uint *)((long)closurev + 0x44);\n    uVar2 = *(uint *)((long)closurev + 0x40);\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n    format = (char *)gettext(\n                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                            );\n    gold::gold_warning(format,uVar3,(ulong)uVar2,(ulong)uVar1);\n    return;\n  }\n  if (*(char *)(*(long *)((long)closurev + 0x20) + 0x3f91) == '\0') {\n    local_38._M_dataplus._M_p = (pointer)&local_38.field_2;\n    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>(&local_38,option,option + length);\n                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */\n    plVar4 = (long *)std::string::_M_replace((string *)&local_38,0,0,"-L",2);\n    s._M_dataplus._M_p = (pointer)&s.field_2;\n    if ((long *)*plVar4 == plVar4 + 2) {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s.field_2._8_8_ = plVar4[3];\n    }\n    else {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s._M_dataplus._M_p = (pointer)*plVar4;\n    }\n    s._M_string_length = plVar4[1];\n    *(undefined1 *)(plVar4 + 2) = 0;\n    *plVar4 = (long)(plVar4 + 2);\n    plVar4[1] = 0;\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_38._M_dataplus._M_p != &local_38.field_2) {\n      operator_delete(local_38._M_dataplus._M_p);\n    }\n                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */\n    script_parse_option(closurev,s._M_dataplus._M_p,s._M_string_length);\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)s._M_dataplus._M_p != &s.field_2) {\n      operator_delete(s._M_dataplus._M_p);\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void script_add_search_dir(void *closurev,char *option,size_t length)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  char *format;\n  Parser_closure *closure;\n  string s;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_38;\n  \n  if (*(long *)((long)closurev + 0x20) == 0) {\n    uVar1 = *(uint *)((long)closurev + 0x44);\n    uVar2 = *(uint *)((long)closurev + 0x40);\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n    format = (char *)gettext(\n                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                            );\n    gold::gold_warning(format,uVar3,(ulong)uVar2,(ulong)uVar1);\n    return;\n  }\n  if (*(char *)(*(long *)((long)closurev + 0x20) + 0x3f91) == '\0') {\n    local_38._M_dataplus._M_p = (pointer)&local_38.field_2;\n    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>(&local_38,option,option + length);\n                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */\n    plVar4 = (long *)std::string::_M_replace((string *)&local_38,0,0,"-L",2);\n    s._M_dataplus._M_p = (pointer)&s.field_2;\n    if ((long *)*plVar4 == plVar4 + 2) {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s.field_2._8_8_ = plVar4[3];\n    }\n    else {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s._M_dataplus._M_p = (pointer)*plVar4;\n    }\n    s._M_string_length = plVar4[1];\n    *(undefined1 *)(plVar4 + 2) = 0;\n    *plVar4 = (long)(plVar4 + 2);\n    plVar4[1] = 0;\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_38._M_dataplus._M_p != &local_38.field_2) {\n      operator_delete(local_38._M_dataplus._M_p);\n    }\n                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */\n    script_parse_option(closurev,s._M_dataplus._M_p,s._M_string_length);\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)s._M_dataplus._M_p != &s.field_2) {\n      operator_delete(s._M_dataplus._M_p);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "script_add_search_dir(void *closurev,char *option,size_t length)" identifier (parameter_list "(void *closurev,char *option,size_t length)" ( (parameter_declaration "void *closurev" primitive_type (pointer_declarator "*closurev" * identifier)) , (parameter_declaration "char *option" primitive_type (pointer_declarator "*option" * identifier)) , (parameter_declaration "size_t length" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  char *format;\n  Parser_closure *closure;\n  string s;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_38;\n  \n  if (*(long *)((long)closurev + 0x20) == 0) {\n    uVar1 = *(uint *)((long)closurev + 0x44);\n    uVar2 = *(uint *)((long)closurev + 0x40);\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n    format = (char *)gettext(\n                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                            );\n    gold::gold_warning(format,uVar3,(ulong)uVar2,(ulong)uVar1);\n    return;\n  }\n  if (*(char *)(*(long *)((long)closurev + 0x20) + 0x3f91) == '\0') {\n    local_38._M_dataplus._M_p = (pointer)&local_38.field_2;\n    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>(&local_38,option,option + length);\n                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */\n    plVar4 = (long *)std::string::_M_replace((string *)&local_38,0,0,"-L",2);\n    s._M_dataplus._M_p = (pointer)&s.field_2;\n    if ((long *)*plVar4 == plVar4 + 2) {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s.field_2._8_8_ = plVar4[3];\n    }\n    else {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s._M_dataplus._M_p = (pointer)*plVar4;\n    }\n    s._M_string_length = plVar4[1];\n    *(undefined1 *)(plVar4 + 2) = 0;\n    *plVar4 = (long)(plVar4 + 2);\n    plVar4[1] = 0;\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_38._M_dataplus._M_p != &local_38.field_2) {\n      operator_delete(local_38._M_dataplus._M_p);\n    }\n                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */\n    script_parse_option(closurev,s._M_dataplus._M_p,s._M_string_length);\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)s._M_dataplus._M_p != &s.field_2) {\n      operator_delete(s._M_dataplus._M_p);\n      return;\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "Parser_closure *closure;" type_identifier (pointer_declarator "*closure" * identifier) ;) (declaration "string s;" type_identifier identifier ;) (ERROR "basic_string<char,_std::char_traits<char>,_std::" (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (expression_statement "allocator<char>_> local_38;" (binary_expression "allocator<char>_> local_38" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > identifier) ;) (if_statement "if (*(long *)((long)closurev + 0x20) == 0) {\n    uVar1 = *(uint *)((long)closurev + 0x44);\n    uVar2 = *(uint *)((long)closurev + 0x40);\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n    format = (char *)gettext(\n                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                            );\n    gold::gold_warning(format,uVar3,(ulong)uVar2,(ulong)uVar1);\n    return;\n  }" if (parenthesized_expression "(*(long *)((long)closurev + 0x20) == 0)" ( (binary_expression "*(long *)((long)closurev + 0x20) == 0" (pointer_expression "*(long *)((long)closurev + 0x20)" * (cast_expression "(long *)((long)closurev + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)closurev + 0x20)" ( (binary_expression "(long)closurev + 0x20" (cast_expression "(long)closurev" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar1 = *(uint *)((long)closurev + 0x44);\n    uVar2 = *(uint *)((long)closurev + 0x40);\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n    format = (char *)gettext(\n                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                            );\n    gold::gold_warning(format,uVar3,(ulong)uVar2,(ulong)uVar1);\n    return;\n  }" { (expression_statement "uVar1 = *(uint *)((long)closurev + 0x44);" (assignment_expression "uVar1 = *(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 "uVar2 = *(uint *)((long)closurev + 0x40);" (assignment_expression "uVar2 = *(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) ))))) ;) comment (expression_statement "uVar3 = *closurev;" (assignment_expression "uVar3 = *closurev" identifier = (pointer_expression "*closurev" * identifier)) ;) (expression_statement "format = (char *)gettext(\n                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                            );" (assignment_expression "format = (char *)gettext(\n                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                            )" identifier = (cast_expression "(char *)gettext(\n                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                            )" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext(\n                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                            )" identifier (argument_list "(\n                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                            )" ( (string_literal ""%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"" " string_content ") ))))) ;) (labeled_statement "gold::gold_warning(format,uVar3,(ulong)uVar2,(ulong)uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "gold_warning(format,uVar3,(ulong)uVar2,(ulong)uVar1);" (call_expression "gold_warning(format,uVar3,(ulong)uVar2,(ulong)uVar1)" identifier (argument_list "(format,uVar3,(ulong)uVar2,(ulong)uVar1)" ( identifier , identifier , (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) , (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;)) (return_statement "return;" return ;) })) (if_statement "if (*(char *)(*(long *)((long)closurev + 0x20) + 0x3f91) == '\0') {\n    local_38._M_dataplus._M_p = (pointer)&local_38.field_2;\n    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>(&local_38,option,option + length);\n                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */\n    plVar4 = (long *)std::string::_M_replace((string *)&local_38,0,0,"-L",2);\n    s._M_dataplus._M_p = (pointer)&s.field_2;\n    if ((long *)*plVar4 == plVar4 + 2) {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s.field_2._8_8_ = plVar4[3];\n    }\n    else {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s._M_dataplus._M_p = (pointer)*plVar4;\n    }\n    s._M_string_length = plVar4[1];\n    *(undefined1 *)(plVar4 + 2) = 0;\n    *plVar4 = (long)(plVar4 + 2);\n    plVar4[1] = 0;\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_38._M_dataplus._M_p != &local_38.field_2) {\n      operator_delete(local_38._M_dataplus._M_p);\n    }\n                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */\n    script_parse_option(closurev,s._M_dataplus._M_p,s._M_string_length);\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)s._M_dataplus._M_p != &s.field_2) {\n      operator_delete(s._M_dataplus._M_p);\n      return;\n    }\n  }" if (parenthesized_expression "(*(char *)(*(long *)((long)closurev + 0x20) + 0x3f91) == '\0')" ( (binary_expression "*(char *)(*(long *)((long)closurev + 0x20) + 0x3f91) == '\0'" (pointer_expression "*(char *)(*(long *)((long)closurev + 0x20) + 0x3f91)" * (cast_expression "(char *)(*(long *)((long)closurev + 0x20) + 0x3f91)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)((long)closurev + 0x20) + 0x3f91)" ( (binary_expression "*(long *)((long)closurev + 0x20) + 0x3f91" (pointer_expression "*(long *)((long)closurev + 0x20)" * (cast_expression "(long *)((long)closurev + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)closurev + 0x20)" ( (binary_expression "(long)closurev + 0x20" (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    local_38._M_dataplus._M_p = (pointer)&local_38.field_2;\n    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>(&local_38,option,option + length);\n                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */\n    plVar4 = (long *)std::string::_M_replace((string *)&local_38,0,0,"-L",2);\n    s._M_dataplus._M_p = (pointer)&s.field_2;\n    if ((long *)*plVar4 == plVar4 + 2) {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s.field_2._8_8_ = plVar4[3];\n    }\n    else {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s._M_dataplus._M_p = (pointer)*plVar4;\n    }\n    s._M_string_length = plVar4[1];\n    *(undefined1 *)(plVar4 + 2) = 0;\n    *plVar4 = (long)(plVar4 + 2);\n    plVar4[1] = 0;\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_38._M_dataplus._M_p != &local_38.field_2) {\n      operator_delete(local_38._M_dataplus._M_p);\n    }\n                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */\n    script_parse_option(closurev,s._M_dataplus._M_p,s._M_string_length);\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)s._M_dataplus._M_p != &s.field_2) {\n      operator_delete(s._M_dataplus._M_p);\n      return;\n    }\n  }" { (expression_statement "local_38._M_dataplus._M_p = (pointer)&local_38.field_2;" (assignment_expression "local_38._M_dataplus._M_p = (pointer)&local_38.field_2" (field_expression "local_38._M_dataplus._M_p" (field_expression "local_38._M_dataplus" identifier . field_identifier) . field_identifier) = (binary_expression "(pointer)&local_38.field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "local_38.field_2" identifier . field_identifier))) ;) (labeled_statement "std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>(&local_38,option,option + length);" statement_identifier (ERROR "::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>:" : : (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : : (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > :) : (expression_statement "_M_construct<char_const*>(&local_38,option,option + length);" (binary_expression "_M_construct<char_const*>(&local_38,option,option + length)" (binary_expression "_M_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(&local_38,option,option + length)" ( (comma_expression "&local_38,option,option + length" (pointer_expression "&local_38" & identifier) , (comma_expression "option,option + length" identifier , (binary_expression "option + length" identifier + identifier))) ))) ;)) comment (ERROR "plVar4 = (long *)std::" (assignment_expression "plVar4 = (long *)std" identifier = (cast_expression "(long *)std" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "string::_M_replace((string *)&local_38,0,0,"-L",2);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace((string *)&local_38,0,0,"-L",2);" (call_expression "_M_replace((string *)&local_38,0,0,"-L",2)" identifier (argument_list "((string *)&local_38,0,0,"-L",2)" ( (cast_expression "(string *)&local_38" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_38" & identifier)) , number_literal , number_literal , (string_literal ""-L"" " string_content ") , number_literal ))) ;)) (expression_statement "s._M_dataplus._M_p = (pointer)&s.field_2;" (assignment_expression "s._M_dataplus._M_p = (pointer)&s.field_2" (field_expression "s._M_dataplus._M_p" (field_expression "s._M_dataplus" identifier . field_identifier) . field_identifier) = (binary_expression "(pointer)&s.field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "s.field_2" identifier . field_identifier))) ;) (if_statement "if ((long *)*plVar4 == plVar4 + 2) {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s.field_2._8_8_ = plVar4[3];\n    }\n    else {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s._M_dataplus._M_p = (pointer)*plVar4;\n    }" if (parenthesized_expression "((long *)*plVar4 == plVar4 + 2)" ( (binary_expression "(long *)*plVar4 == plVar4 + 2" (cast_expression "(long *)*plVar4" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar4" * identifier)) == (binary_expression "plVar4 + 2" identifier + number_literal)) )) (compound_statement "{\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s.field_2._8_8_ = plVar4[3];\n    }" { (expression_statement "s.field_2._M_allocated_capacity = plVar4[2];" (assignment_expression "s.field_2._M_allocated_capacity = plVar4[2]" (field_expression "s.field_2._M_allocated_capacity" (field_expression "s.field_2" identifier . field_identifier) . field_identifier) = (subscript_expression "plVar4[2]" identifier [ number_literal ])) ;) (expression_statement "s.field_2._8_8_ = plVar4[3];" (assignment_expression "s.field_2._8_8_ = plVar4[3]" (field_expression "s.field_2._8_8_" (field_expression "s.field_2" identifier . field_identifier) . field_identifier) = (subscript_expression "plVar4[3]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s._M_dataplus._M_p = (pointer)*plVar4;\n    }" else (compound_statement "{\n      s.field_2._M_allocated_capacity = plVar4[2];\n      s._M_dataplus._M_p = (pointer)*plVar4;\n    }" { (expression_statement "s.field_2._M_allocated_capacity = plVar4[2];" (assignment_expression "s.field_2._M_allocated_capacity = plVar4[2]" (field_expression "s.field_2._M_allocated_capacity" (field_expression "s.field_2" identifier . field_identifier) . field_identifier) = (subscript_expression "plVar4[2]" identifier [ number_literal ])) ;) (expression_statement "s._M_dataplus._M_p = (pointer)*plVar4;" (assignment_expression "s._M_dataplus._M_p = (pointer)*plVar4" (field_expression "s._M_dataplus._M_p" (field_expression "s._M_dataplus" identifier . field_identifier) . field_identifier) = (binary_expression "(pointer)*plVar4" (parenthesized_expression "(pointer)" ( identifier )) * identifier)) ;) }))) (expression_statement "s._M_string_length = plVar4[1];" (assignment_expression "s._M_string_length = plVar4[1]" (field_expression "s._M_string_length" identifier . field_identifier) = (subscript_expression "plVar4[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(plVar4 + 2) = 0;" (assignment_expression "*(undefined1 *)(plVar4 + 2) = 0" (pointer_expression "*(undefined1 *)(plVar4 + 2)" * (cast_expression "(undefined1 *)(plVar4 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*plVar4 = (long)(plVar4 + 2);" (assignment_expression "*plVar4 = (long)(plVar4 + 2)" (pointer_expression "*plVar4" * identifier) = (cast_expression "(long)(plVar4 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) ;) (expression_statement "plVar4[1] = 0;" (assignment_expression "plVar4[1] = 0" (subscript_expression "plVar4[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_38._M_dataplus._M_p != &local_38.field_2) {\n      operator_delete(local_38._M_dataplus._M_p);\n    }" if (parenthesized_expression "((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_38._M_dataplus._M_p != &local_38.field_2)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_38._M_dataplus._M_p != &local_38.field_2)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9\n         *)local_38._M_dataplus._M_p != &local_38.field_2" (binary_expression "allocator<char>_>_9\n         *)local_38._M_dataplus._M_p" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n         *)local_38._M_dataplus._M_p" identifier * (ERROR ")" )) (field_expression "local_38._M_dataplus._M_p" (field_expression "local_38._M_dataplus" identifier . field_identifier) . field_identifier))) != (pointer_expression "&local_38.field_2" & (field_expression "local_38.field_2" identifier . field_identifier))) )) )) (compound_statement "{\n      operator_delete(local_38._M_dataplus._M_p);\n    }" { (expression_statement "operator_delete(local_38._M_dataplus._M_p);" (call_expression "operator_delete(local_38._M_dataplus._M_p)" identifier (argument_list "(local_38._M_dataplus._M_p)" ( (field_expression "local_38._M_dataplus._M_p" (field_expression "local_38._M_dataplus" identifier . field_identifier) . field_identifier) ))) ;) })) comment (expression_statement "script_parse_option(closurev,s._M_dataplus._M_p,s._M_string_length);" (call_expression "script_parse_option(closurev,s._M_dataplus._M_p,s._M_string_length)" identifier (argument_list "(closurev,s._M_dataplus._M_p,s._M_string_length)" ( identifier , (field_expression "s._M_dataplus._M_p" (field_expression "s._M_dataplus" identifier . field_identifier) . field_identifier) , (field_expression "s._M_string_length" identifier . field_identifier) ))) ;) (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)s._M_dataplus._M_p != &s.field_2) {\n      operator_delete(s._M_dataplus._M_p);\n      return;\n    }" if (parenthesized_expression "((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)s._M_dataplus._M_p != &s.field_2)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)s._M_dataplus._M_p != &s.field_2)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9\n         *)s._M_dataplus._M_p != &s.field_2" (binary_expression "allocator<char>_>_9\n         *)s._M_dataplus._M_p" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n         *)s._M_dataplus._M_p" identifier * (ERROR ")" )) (field_expression "s._M_dataplus._M_p" (field_expression "s._M_dataplus" identifier . field_identifier) . field_identifier))) != (pointer_expression "&s.field_2" & (field_expression "s.field_2" identifier . field_identifier))) )) )) (compound_statement "{\n      operator_delete(s._M_dataplus._M_p);\n      return;\n    }" { (expression_statement "operator_delete(s._M_dataplus._M_p);" (call_expression "operator_delete(s._M_dataplus._M_p)" identifier (argument_list "(s._M_dataplus._M_p)" ( (field_expression "s._M_dataplus._M_p" (field_expression "s._M_dataplus" identifier . field_identifier) . field_identifier) ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002662d0(undefined8 *param_1,long param_2,long param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long *plVar5;\n  undefined8 uVar6;\n  long *local_58;\n  long local_48;\n  long lStack_40;\n  undefined1 *local_38 [2];\n  undefined1 local_28 [16];\n  \n  if (param_1[4] == 0) {\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }\n  if (*(char *)(param_1[4] + 0x3f91) == '\0') {\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    \n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    \n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_002662d0(undefined8 *param_1,long param_2,long param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long *plVar5;\n  undefined8 uVar6;\n  long *local_58;\n  long local_48;\n  long lStack_40;\n  undefined1 *local_38 [2];\n  undefined1 local_28 [16];\n  \n  if (param_1[4] == 0) {\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }\n  if (*(char *)(param_1[4] + 0x3f91) == '\0') {\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    \n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    \n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002662d0(undefined8 *param_1,long param_2,long param_3)" identifier (parameter_list "(undefined8 *param_1,long param_2,long param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long *plVar5;\n  undefined8 uVar6;\n  long *local_58;\n  long local_48;\n  long lStack_40;\n  undefined1 *local_38 [2];\n  undefined1 local_28 [16];\n  \n  if (param_1[4] == 0) {\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }\n  if (*(char *)(param_1[4] + 0x3f91) == '\0') {\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    \n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    \n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long *plVar5;" (sized_type_specifier "long" long) (pointer_declarator "*plVar5" * identifier) ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "long *local_58;" (sized_type_specifier "long" long) (pointer_declarator "*local_58" * identifier) ;) (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "long lStack_40;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *local_38 [2];" type_identifier (pointer_declarator "*local_38 [2]" * (array_declarator "local_38 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 local_28 [16];" type_identifier (array_declarator "local_28 [16]" identifier [ number_literal ]) ;) (if_statement "if (param_1[4] == 0) {\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }" { (expression_statement "uVar1 = *(undefined4 *)((long)param_1 + 0x44);" (assignment_expression "uVar1 = *(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 "uVar2 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar2 = *(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 "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );" (assignment_expression "uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   )" identifier = (call_expression "gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   )" identifier (argument_list "(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   )" ( (string_literal ""%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"" " string_content ") )))) ;) (expression_statement "FUN_001783d0(uVar6,uVar4,uVar2,uVar1);" (call_expression "FUN_001783d0(uVar6,uVar4,uVar2,uVar1)" identifier (argument_list "(uVar6,uVar4,uVar2,uVar1)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(char *)(param_1[4] + 0x3f91) == '\0') {\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    \n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    \n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }" if (parenthesized_expression "(*(char *)(param_1[4] + 0x3f91) == '\0')" ( (binary_expression "*(char *)(param_1[4] + 0x3f91) == '\0'" (pointer_expression "*(char *)(param_1[4] + 0x3f91)" * (cast_expression "(char *)(param_1[4] + 0x3f91)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[4] + 0x3f91)" ( (binary_expression "param_1[4] + 0x3f91" (subscript_expression "param_1[4]" identifier [ number_literal ]) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    \n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    \n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }" { (expression_statement "local_38[0] = local_28;" (assignment_expression "local_38[0] = local_28" (subscript_expression "local_38[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_001665c0(local_38,param_2,param_3 + param_2);" (call_expression "FUN_001665c0(local_38,param_2,param_3 + param_2)" identifier (argument_list "(local_38,param_2,param_3 + param_2)" ( identifier , identifier , (binary_expression "param_3 + param_2" identifier + identifier) ))) ;) (expression_statement "plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);" (assignment_expression "plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2)" identifier = (cast_expression "(long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002e2590(local_38,0,0,&DAT_00385368,2)" identifier (argument_list "(local_38,0,0,&DAT_00385368,2)" ( identifier , number_literal , number_literal , (pointer_expression "&DAT_00385368" & identifier) , number_literal ))))) ;) (expression_statement "local_58 = &local_48;" (assignment_expression "local_58 = &local_48" identifier = (pointer_expression "&local_48" & identifier)) ;) (if_statement "if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }" if (parenthesized_expression "((long *)*plVar5 == plVar5 + 2)" ( (binary_expression "(long *)*plVar5 == plVar5 + 2" (cast_expression "(long *)*plVar5" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar5" * identifier)) == (binary_expression "plVar5 + 2" identifier + number_literal)) )) (compound_statement "{\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }" { (expression_statement "local_48 = plVar5[2];" (assignment_expression "local_48 = plVar5[2]" identifier = (subscript_expression "plVar5[2]" identifier [ number_literal ])) ;) (expression_statement "lStack_40 = plVar5[3];" (assignment_expression "lStack_40 = plVar5[3]" identifier = (subscript_expression "plVar5[3]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }" else (compound_statement "{\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }" { (expression_statement "local_48 = plVar5[2];" (assignment_expression "local_48 = plVar5[2]" identifier = (subscript_expression "plVar5[2]" identifier [ number_literal ])) ;) (expression_statement "local_58 = (long *)*plVar5;" (assignment_expression "local_58 = (long *)*plVar5" identifier = (cast_expression "(long *)*plVar5" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar5" * identifier))) ;) }))) (expression_statement "lVar3 = plVar5[1];" (assignment_expression "lVar3 = plVar5[1]" identifier = (subscript_expression "plVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(plVar5 + 2) = 0;" (assignment_expression "*(undefined1 *)(plVar5 + 2) = 0" (pointer_expression "*(undefined1 *)(plVar5 + 2)" * (cast_expression "(undefined1 *)(plVar5 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar5 + 2)" ( (binary_expression "plVar5 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*plVar5 = (long)(plVar5 + 2);" (assignment_expression "*plVar5 = (long)(plVar5 + 2)" (pointer_expression "*plVar5" * identifier) = (cast_expression "(long)(plVar5 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(plVar5 + 2)" ( (binary_expression "plVar5 + 2" identifier + number_literal) )))) ;) (expression_statement "plVar5[1] = 0;" (assignment_expression "plVar5[1] = 0" (subscript_expression "plVar5[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }" if (parenthesized_expression "(local_38[0] != local_28)" ( (binary_expression "local_38[0] != local_28" (subscript_expression "local_38[0]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n      FUN_002dac60();\n    }" { (expression_statement "FUN_002dac60();" (call_expression "FUN_002dac60()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00265460(param_1,local_58,lVar3);" (call_expression "FUN_00265460(param_1,local_58,lVar3)" identifier (argument_list "(param_1,local_58,lVar3)" ( identifier , identifier , identifier ))) ;) (if_statement "if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }" if (parenthesized_expression "(local_58 != &local_48)" ( (binary_expression "local_58 != &local_48" identifier != (pointer_expression "&local_48" & identifier)) )) (compound_statement "{\n      FUN_002dac60();\n      return;\n    }" { (expression_statement "FUN_002dac60();" (call_expression "FUN_002dac60()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (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 = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_002662d0(undefined8 *param_1,long param_2,long param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long *plVar5;\n  undefined8 uVar6;\n  long *local_58;\n  long local_48;\n  long lStack_40;\n  undefined1 *local_38 [2];\n  undefined1 local_28 [16];\n  \n  if (param_1[4] == 0) {\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }\n  if (*(char *)(param_1[4] + 0x3f91) == '\0') {\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    \n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    \n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002662d0(undefined8 *param_1,long param_2,long param_3)" (identifier "FUN_002662d0") (parameter_list "(undefined8 *param_1,long param_2,long param_3)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long *plVar5;\n  undefined8 uVar6;\n  long *local_58;\n  long local_48;\n  long lStack_40;\n  undefined1 *local_38 [2];\n  undefined1 local_28 [16];\n  \n  if (param_1[4] == 0) {\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }\n  if (*(char *)(param_1[4] + 0x3f91) == '\0') {\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    \n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    \n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "long *plVar5;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar5" (* "*") (identifier "plVar5")) (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (declaration "long *local_58;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*local_58" (* "*") (identifier "local_58")) (; ";")) (declaration "long local_48;" (sized_type_specifier "long" (long "long")) (identifier "local_48") (; ";")) (declaration "long lStack_40;" (sized_type_specifier "long" (long "long")) (identifier "lStack_40") (; ";")) (declaration "undefined1 *local_38 [2];" (type_identifier "undefined1") (pointer_declarator "*local_38 [2]" (* "*") (array_declarator "local_38 [2]" (identifier "local_38") ([ "[") (number_literal "2") (] "]"))) (; ";")) (declaration "undefined1 local_28 [16];" (type_identifier "undefined1") (array_declarator "local_28 [16]" (identifier "local_28") ([ "[") (number_literal "16") (] "]")) (; ";")) (if_statement "if (param_1[4] == 0) {\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1[4] == 0)" (( "(") (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = *(undefined4 *)((long)param_1 + 0x44);\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    uVar4 = *param_1;\n    uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );\n    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);\n    return;\n  }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)((long)param_1 + 0x44);" (assignment_expression "uVar1 = *(undefined4 *)((long)param_1 + 0x44)" (identifier "uVar1") (= "=") (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 "uVar2 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 8)" (identifier "uVar2") (= "=") (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 "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" (identifier "uVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   );" (assignment_expression "uVar6 = gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   )" (identifier "uVar6") (= "=") (call_expression "gettext(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   )" (identifier "gettext") (argument_list "(\n                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"\n                   )" (( "(") (string_literal ""%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"" (" """) (string_content "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script") (" """)) () ")")))) (; ";")) (expression_statement "FUN_001783d0(uVar6,uVar4,uVar2,uVar1);" (call_expression "FUN_001783d0(uVar6,uVar4,uVar2,uVar1)" (identifier "FUN_001783d0") (argument_list "(uVar6,uVar4,uVar2,uVar1)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar4") (, ",") (identifier "uVar2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*(char *)(param_1[4] + 0x3f91) == '\0') {\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    \n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    \n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1[4] + 0x3f91) == '\0')" (( "(") (binary_expression "*(char *)(param_1[4] + 0x3f91) == '\0'" (pointer_expression "*(char *)(param_1[4] + 0x3f91)" (* "*") (cast_expression "(char *)(param_1[4] + 0x3f91)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[4] + 0x3f91)" (( "(") (binary_expression "param_1[4] + 0x3f91" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "0x3f91")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_38[0] = local_28;\n    FUN_001665c0(local_38,param_2,param_3 + param_2);\n                    \n    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);\n    local_58 = &local_48;\n    if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }\n    lVar3 = plVar5[1];\n    *(undefined1 *)(plVar5 + 2) = 0;\n    *plVar5 = (long)(plVar5 + 2);\n    plVar5[1] = 0;\n    if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }\n                    \n    FUN_00265460(param_1,local_58,lVar3);\n    if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }\n  }" ({ "{") (expression_statement "local_38[0] = local_28;" (assignment_expression "local_38[0] = local_28" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "local_28")) (; ";")) (expression_statement "FUN_001665c0(local_38,param_2,param_3 + param_2);" (call_expression "FUN_001665c0(local_38,param_2,param_3 + param_2)" (identifier "FUN_001665c0") (argument_list "(local_38,param_2,param_3 + param_2)" (( "(") (identifier "local_38") (, ",") (identifier "param_2") (, ",") (binary_expression "param_3 + param_2" (identifier "param_3") (+ "+") (identifier "param_2")) () ")"))) (; ";")) (expression_statement "plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);" (assignment_expression "plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2)" (identifier "plVar5") (= "=") (cast_expression "(long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002e2590(local_38,0,0,&DAT_00385368,2)" (identifier "FUN_002e2590") (argument_list "(local_38,0,0,&DAT_00385368,2)" (( "(") (identifier "local_38") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (pointer_expression "&DAT_00385368" (& "&") (identifier "DAT_00385368")) (, ",") (number_literal "2") () ")"))))) (; ";")) (expression_statement "local_58 = &local_48;" (assignment_expression "local_58 = &local_48" (identifier "local_58") (= "=") (pointer_expression "&local_48" (& "&") (identifier "local_48"))) (; ";")) (if_statement "if ((long *)*plVar5 == plVar5 + 2) {\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }\n    else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }" (if "if") (parenthesized_expression "((long *)*plVar5 == plVar5 + 2)" (( "(") (binary_expression "(long *)*plVar5 == plVar5 + 2" (cast_expression "(long *)*plVar5" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar5" (* "*") (identifier "plVar5"))) (== "==") (binary_expression "plVar5 + 2" (identifier "plVar5") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n      local_48 = plVar5[2];\n      lStack_40 = plVar5[3];\n    }" ({ "{") (expression_statement "local_48 = plVar5[2];" (assignment_expression "local_48 = plVar5[2]" (identifier "local_48") (= "=") (subscript_expression "plVar5[2]" (identifier "plVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "lStack_40 = plVar5[3];" (assignment_expression "lStack_40 = plVar5[3]" (identifier "lStack_40") (= "=") (subscript_expression "plVar5[3]" (identifier "plVar5") ([ "[") (number_literal "3") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }" (else "else") (compound_statement "{\n      local_48 = plVar5[2];\n      local_58 = (long *)*plVar5;\n    }" ({ "{") (expression_statement "local_48 = plVar5[2];" (assignment_expression "local_48 = plVar5[2]" (identifier "local_48") (= "=") (subscript_expression "plVar5[2]" (identifier "plVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "local_58 = (long *)*plVar5;" (assignment_expression "local_58 = (long *)*plVar5" (identifier "local_58") (= "=") (cast_expression "(long *)*plVar5" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar5" (* "*") (identifier "plVar5")))) (; ";")) (} "}")))) (expression_statement "lVar3 = plVar5[1];" (assignment_expression "lVar3 = plVar5[1]" (identifier "lVar3") (= "=") (subscript_expression "plVar5[1]" (identifier "plVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined1 *)(plVar5 + 2) = 0;" (assignment_expression "*(undefined1 *)(plVar5 + 2) = 0" (pointer_expression "*(undefined1 *)(plVar5 + 2)" (* "*") (cast_expression "(undefined1 *)(plVar5 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar5 + 2)" (( "(") (binary_expression "plVar5 + 2" (identifier "plVar5") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*plVar5 = (long)(plVar5 + 2);" (assignment_expression "*plVar5 = (long)(plVar5 + 2)" (pointer_expression "*plVar5" (* "*") (identifier "plVar5")) (= "=") (cast_expression "(long)(plVar5 + 2)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(plVar5 + 2)" (( "(") (binary_expression "plVar5 + 2" (identifier "plVar5") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "plVar5[1] = 0;" (assignment_expression "plVar5[1] = 0" (subscript_expression "plVar5[1]" (identifier "plVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_38[0] != local_28) {\n      FUN_002dac60();\n    }" (if "if") (parenthesized_expression "(local_38[0] != local_28)" (( "(") (binary_expression "local_38[0] != local_28" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (!= "!=") (identifier "local_28")) () ")")) (compound_statement "{\n      FUN_002dac60();\n    }" ({ "{") (expression_statement "FUN_002dac60();" (call_expression "FUN_002dac60()" (identifier "FUN_002dac60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00265460(param_1,local_58,lVar3);" (call_expression "FUN_00265460(param_1,local_58,lVar3)" (identifier "FUN_00265460") (argument_list "(param_1,local_58,lVar3)" (( "(") (identifier "param_1") (, ",") (identifier "local_58") (, ",") (identifier "lVar3") () ")"))) (; ";")) (if_statement "if (local_58 != &local_48) {\n      FUN_002dac60();\n      return;\n    }" (if "if") (parenthesized_expression "(local_58 != &local_48)" (( "(") (binary_expression "local_58 != &local_48" (identifier "local_58") (!= "!=") (pointer_expression "&local_48" (& "&") (identifier "local_48"))) () ")")) (compound_statement "{\n      FUN_002dac60();\n      return;\n    }" ({ "{") (expression_statement "FUN_002dac60();" (call_expression "FUN_002dac60()" (identifier "FUN_002dac60") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void *closurev,char *var_9,size_t var_10)

{
  type_1 uVar1;
  type_1 uVar2;
  type_2 uVar3;
  long *var_12;
  char *format;
  type_3 *closure;
  type_4 s;
  basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3> var_4;
  
  if (*(long *)((long)closurev + 0x20) == 0) {
    uVar1 = *(type_1 *)((long)closurev + 0x44);
    uVar2 = *(type_1 *)((long)closurev + 0x40);
                    /* WARNING: Load size is inaccurate */
    uVar3 = *closurev;
    format = (char *)var_5(
                            "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"
                            );
    gold::var_6(format,uVar3,(type_5)uVar2,(type_5)uVar1);
    return;
  }
  if (*(char *)(*(long *)((long)closurev + 0x20) + 0x3f91) == '\0') {
    var_4._M_dataplus._M_p = (pointer)&var_4.field_2;
    std::__cxx11::basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>::
    var_7<var_8*>(&var_4,var_9,var_9 + var_10);
                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */
    var_12 = (long *)std::string::var_11((type_4 *)&var_4,0,0,"-L",2);
    s._M_dataplus._M_p = (pointer)&s.field_2;
    if ((long *)*var_12 == var_12 + 2) {
      s.field_2._M_allocated_capacity = var_12[2];
      s.field_2._8_8_ = var_12[3];
    }
    else {
      s.field_2._M_allocated_capacity = var_12[2];
      s._M_dataplus._M_p = (pointer)*var_12;
    }
    s._M_string_length = var_12[1];
    *(type_6 *)(var_12 + 2) = 0;
    *var_12 = (long)(var_12 + 2);
    var_12[1] = 0;
    if ((anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_13
         *)var_4._M_dataplus._M_p != &var_4.field_2) {
      var_14(var_4._M_dataplus._M_p);
    }
                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */
    var_15(closurev,s._M_dataplus._M_p,s._M_string_length);
    if ((anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_13
         *)s._M_dataplus._M_p != &s.field_2) {
      var_14(s._M_dataplus._M_p);
      return;
    }
  }
  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: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (array_declarator declarator: (identifier) size: (number_literal)))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) 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: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (return_statement))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (pointer_expression argument: (identifier)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))) 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))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))) (return_statement))))

void MASKED(undefined8 *param_1,long param_2,long param_3)

{
  undefined4 uVar1;
  undefined4 uVar2;
  long lVar3;
  undefined8 uVar4;
  long *plVar5;
  undefined8 uVar6;
  long *local_58;
  long local_48;
  long lStack_40;
  undefined1 *local_38 [2];
  undefined1 local_28 [16];
  
  if (param_1[4] == 0) {
    uVar1 = *(undefined4 *)((long)param_1 + 0x44);
    uVar2 = *(undefined4 *)(param_1 + 8);
    uVar4 = *param_1;
    uVar6 = gettext(
                   "%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script"
                   );
    FUN_001783d0(uVar6,uVar4,uVar2,uVar1);
    return;
  }
  if (*(char *)(param_1[4] + 0x3f91) == '\0') {
    local_38[0] = local_28;
    FUN_001665c0(local_38,param_2,param_3 + param_2);
                    /* try { // try from 0026632d to 00266331 has its CatchHandler @ 00266401 */
    plVar5 = (long *)FUN_002e2590(local_38,0,0,&DAT_00385368,2);
    local_58 = &local_48;
    if ((long *)*plVar5 == plVar5 + 2) {
      local_48 = plVar5[2];
      lStack_40 = plVar5[3];
    }
    else {
      local_48 = plVar5[2];
      local_58 = (long *)*plVar5;
    }
    lVar3 = plVar5[1];
    *(undefined1 *)(plVar5 + 2) = 0;
    *plVar5 = (long)(plVar5 + 2);
    plVar5[1] = 0;
    if (local_38[0] != local_28) {
      FUN_002dac60();
    }
                    /* try { // try from 0026638e to 00266392 has its CatchHandler @ 002663f9 */
    FUN_00265460(param_1,local_58,lVar3);
    if (local_58 != &local_48) {
      FUN_002dac60();
      return;
    }
  }
  return;
}

