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

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int *piVar4;
  char *format;
  int unaff_EDI;
  string s;
  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;
  
  __x86_get_pc_thunk_di();
  if (*(int *)((int)closurev + 0x1c) == 0) {
    uVar1 = *(undefined4 *)((int)closurev + 0x2c);
    uVar2 = *(undefined4 *)((int)closurev + 0x30);
                    /* WARNING: Load size is inaccurate */
    uVar3 = *closurev;
    format = (char *)gettext(unaff_EDI + 0x12d77b);
    gold::gold_warning(format,uVar3,uVar1,uVar2);
    return;
  }
  if (*(char *)(*(int *)((int)closurev + 0x1c) + 0x272d) == '\0') {
    local_34._M_dataplus._M_p = (pointer)&local_34.field_2;
    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
    _M_construct<char_const*>(&local_34,option,option + length,0);
                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */
    piVar4 = (int *)std::string::_M_replace
                              ((string *)&local_34,0,0,(char *)(unaff_EDI + 0x12c5ef),2);
    if ((int *)*piVar4 == piVar4 + 2) {
      s.field_2._M_allocated_capacity = piVar4[2];
      s.field_2._4_4_ = piVar4[3];
      s.field_2._8_4_ = piVar4[4];
      s.field_2._12_4_ = piVar4[5];
      s._M_dataplus._M_p = (pointer)&s.field_2;
    }
    else {
      s.field_2._M_allocated_capacity = piVar4[2];
      s._M_dataplus._M_p = (pointer)*piVar4;
    }
    s._M_string_length = piVar4[1];
    *(undefined1 *)(piVar4 + 2) = 0;
    *piVar4 = (int)(piVar4 + 2);
    piVar4[1] = 0;
    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
         *)local_34._M_dataplus._M_p != &local_34.field_2) {
      operator_delete(local_34._M_dataplus._M_p);
    }
                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */
    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_0016bc80(undefined4 *param_1,int param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int *piVar5;
  undefined4 uVar6;
  int unaff_EDI;
  int *local_4c;
  int local_44;
  int local_40;
  int local_3c;
  int local_38;
  undefined1 *local_34 [2];
  undefined1 local_2c [28];
  
  FUN_000559ee();
  if (param_1[7] == 0) {
    uVar2 = param_1[0xb];
    uVar3 = param_1[0xc];
    uVar4 = *param_1;
    uVar6 = gettext(unaff_EDI + 0x12d77b);
    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);
    return;
  }
  if (*(char *)(param_1[7] + 0x272d) == '\0') {
    local_34[0] = local_2c;
    FUN_00050e40(local_34,param_2,param_2 + param_3,0);
                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */
    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);
    if ((int *)*piVar5 == piVar5 + 2) {
      local_44 = piVar5[2];
      local_40 = piVar5[3];
      local_3c = piVar5[4];
      local_38 = piVar5[5];
      local_4c = &local_44;
    }
    else {
      local_44 = piVar5[2];
      local_4c = (int *)*piVar5;
    }
    iVar1 = piVar5[1];
    *(undefined1 *)(piVar5 + 2) = 0;
    *piVar5 = (int)(piVar5 + 2);
    piVar5[1] = 0;
    if (local_34[0] != local_2c) {
      FUN_001e6db0(local_34[0]);
    }
                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */
    FUN_0016aca0(param_1,local_4c,iVar1);
    if (local_4c != &local_44) {
      FUN_001e6db0(local_4c);
      return;
    }
  }
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000559ee
ADD EDI,0x223377
PUSH ESI
PUSH EBX
SUB ESP,0x4c
MOV ESI,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [ESI + 0x1c]
TEST EAX,EAX
JZ 0x0016bd70
CMP byte ptr [EAX + 0x272d],0x0
JZ 0x0016bcb8
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBP + -0x28]
LEA EBX,[EBP + -0x30]
PUSH 0x0
MOV dword ptr [EBP + -0x4c],EAX
MOV dword ptr [EBP + -0x30],EAX
MOV EAX,dword ptr [EBP + 0xc]
ADD EAX,dword ptr [EBP + 0x10]
PUSH EAX
PUSH dword ptr [EBP + 0xc]
PUSH EBX
CALL 0x00050e40
LEA EAX,[EDI + 0xfff09278]
MOV dword ptr [ESP],0x2
PUSH EAX
PUSH 0x0
PUSH 0x0
PUSH EBX
MOV EBX,EDI
CALL 0x001ef9f0
LEA EDX,[EBP + -0x40]
ADD ESP,0x20
MOV dword ptr [EBP + -0x48],EDX
MOV ECX,dword ptr [EAX]
MOV dword ptr [EBP + -0x50],EDX
LEA EDX,[EAX + 0x8]
CMP ECX,EDX
JZ 0x0016bdb0
MOV dword ptr [EBP + -0x48],ECX
MOV ECX,dword ptr [EAX + 0x8]
MOV dword ptr [EBP + -0x40],ECX
MOV ECX,dword ptr [EAX + 0x4]
MOV byte ptr [EAX + 0x8],0x0
MOV dword ptr [EBP + -0x44],ECX
MOV dword ptr [EAX],EDX
MOV dword ptr [EAX + 0x4],0x0
MOV EAX,dword ptr [EBP + -0x30]
CMP EAX,dword ptr [EBP + -0x4c]
JZ 0x0016bd3b
SUB ESP,0xc
MOV EBX,EDI
PUSH EAX
CALL 0x001e6db0
ADD ESP,0x10
SUB ESP,0x4
PUSH dword ptr [EBP + -0x44]
PUSH dword ptr [EBP + -0x48]
PUSH ESI
CALL 0x0016aca0
ADD ESP,0x10
MOV EAX,dword ptr [EBP + -0x48]
CMP EAX,dword ptr [EBP + -0x50]
JZ 0x0016bcab
SUB ESP,0xc
MOV EBX,EDI
PUSH EAX
CALL 0x001e6db0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x2c]
SUB ESP,0xc
MOV EDX,dword ptr [ESI + 0x30]
MOV EBX,EDI
MOV ESI,dword ptr [ESI]
MOV dword ptr [EBP + -0x4c],EAX
LEA EAX,[EDI + 0xfff0a404]
PUSH EAX
MOV dword ptr [EBP + -0x50],EDX
CALL 0x000293b0
MOV EDX,dword ptr [EBP + -0x50]
ADD ESP,0x10
PUSH EDX
PUSH dword ptr [EBP + -0x4c]
PUSH ESI
PUSH EAX
CALL 0x000654e0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [EAX + 0x8]
MOV dword ptr [EBP + -0x40],ECX
MOV ECX,dword ptr [EAX + 0xc]
MOV dword ptr [EBP + -0x3c],ECX
MOV ECX,dword ptr [EAX + 0x10]
MOV dword ptr [EBP + -0x38],ECX
MOV ECX,dword ptr [EAX + 0x14]
MOV dword ptr [EBP + -0x34],ECX
JMP 0x0016bd12
(translation_unit "void FUN_0016bc80(undefined4 *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int unaff_EDI;\n  int *local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  FUN_000559ee();\n  if (param_1[7] == 0) {\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }\n  if (*(char *)(param_1[7] + 0x272d) == '\0') {\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */\n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */\n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0016bc80(undefined4 *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int unaff_EDI;\n  int *local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  FUN_000559ee();\n  if (param_1[7] == 0) {\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }\n  if (*(char *)(param_1[7] + 0x272d) == '\0') {\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */\n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */\n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0016bc80(undefined4 *param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int unaff_EDI;\n  int *local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  FUN_000559ee();\n  if (param_1[7] == 0) {\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }\n  if (*(char *)(param_1[7] + 0x272d) == '\0') {\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */\n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */\n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int *local_4c;" primitive_type (pointer_declarator "*local_4c" * identifier) ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined1 *local_34 [2];" type_identifier (pointer_declarator "*local_34 [2]" * (array_declarator "local_34 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_1[7] == 0) {\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }" if (parenthesized_expression "(param_1[7] == 0)" ( (binary_expression "param_1[7] == 0" (subscript_expression "param_1[7]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }" { (expression_statement "uVar2 = param_1[0xb];" (assignment_expression "uVar2 = param_1[0xb]" identifier = (subscript_expression "param_1[0xb]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = param_1[0xc];" (assignment_expression "uVar3 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar6 = gettext(unaff_EDI + 0x12d77b);" (assignment_expression "uVar6 = gettext(unaff_EDI + 0x12d77b)" identifier = (call_expression "gettext(unaff_EDI + 0x12d77b)" identifier (argument_list "(unaff_EDI + 0x12d77b)" ( (binary_expression "unaff_EDI + 0x12d77b" identifier + number_literal) )))) ;) (expression_statement "FUN_000654e0(uVar6,uVar4,uVar2,uVar3);" (call_expression "FUN_000654e0(uVar6,uVar4,uVar2,uVar3)" identifier (argument_list "(uVar6,uVar4,uVar2,uVar3)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(char *)(param_1[7] + 0x272d) == '\0') {\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */\n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */\n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }" if (parenthesized_expression "(*(char *)(param_1[7] + 0x272d) == '\0')" ( (binary_expression "*(char *)(param_1[7] + 0x272d) == '\0'" (pointer_expression "*(char *)(param_1[7] + 0x272d)" * (cast_expression "(char *)(param_1[7] + 0x272d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[7] + 0x272d)" ( (binary_expression "param_1[7] + 0x272d" (subscript_expression "param_1[7]" identifier [ number_literal ]) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */\n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */\n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }" { (expression_statement "local_34[0] = local_2c;" (assignment_expression "local_34[0] = local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00050e40(local_34,param_2,param_2 + param_3,0);" (call_expression "FUN_00050e40(local_34,param_2,param_2 + param_3,0)" identifier (argument_list "(local_34,param_2,param_2 + param_3,0)" ( identifier , identifier , (binary_expression "param_2 + param_3" identifier + identifier) , number_literal ))) ;) comment (expression_statement "piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);" (assignment_expression "piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2)" identifier = (cast_expression "(int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2)" identifier (argument_list "(local_34,0,0,unaff_EDI + 0x12c5ef,2)" ( identifier , number_literal , number_literal , (binary_expression "unaff_EDI + 0x12c5ef" identifier + number_literal) , number_literal ))))) ;) (if_statement "if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }" if (parenthesized_expression "((int *)*piVar5 == piVar5 + 2)" ( (binary_expression "(int *)*piVar5 == piVar5 + 2" (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier)) == (binary_expression "piVar5 + 2" identifier + number_literal)) )) (compound_statement "{\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }" { (expression_statement "local_44 = piVar5[2];" (assignment_expression "local_44 = piVar5[2]" identifier = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) (expression_statement "local_40 = piVar5[3];" (assignment_expression "local_40 = piVar5[3]" identifier = (subscript_expression "piVar5[3]" identifier [ number_literal ])) ;) (expression_statement "local_3c = piVar5[4];" (assignment_expression "local_3c = piVar5[4]" identifier = (subscript_expression "piVar5[4]" identifier [ number_literal ])) ;) (expression_statement "local_38 = piVar5[5];" (assignment_expression "local_38 = piVar5[5]" identifier = (subscript_expression "piVar5[5]" identifier [ number_literal ])) ;) (expression_statement "local_4c = &local_44;" (assignment_expression "local_4c = &local_44" identifier = (pointer_expression "&local_44" & identifier)) ;) }) (else_clause "else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }" else (compound_statement "{\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }" { (expression_statement "local_44 = piVar5[2];" (assignment_expression "local_44 = piVar5[2]" identifier = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) (expression_statement "local_4c = (int *)*piVar5;" (assignment_expression "local_4c = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) }))) (expression_statement "iVar1 = piVar5[1];" (assignment_expression "iVar1 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(piVar5 + 2) = 0;" (assignment_expression "*(undefined1 *)(piVar5 + 2) = 0" (pointer_expression "*(undefined1 *)(piVar5 + 2)" * (cast_expression "(undefined1 *)(piVar5 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*piVar5 = (int)(piVar5 + 2);" (assignment_expression "*piVar5 = (int)(piVar5 + 2)" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)(piVar5 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) )))) ;) (expression_statement "piVar5[1] = 0;" (assignment_expression "piVar5[1] = 0" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }" if (parenthesized_expression "(local_34[0] != local_2c)" ( (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n      FUN_001e6db0(local_34[0]);\n    }" { (expression_statement "FUN_001e6db0(local_34[0]);" (call_expression "FUN_001e6db0(local_34[0])" identifier (argument_list "(local_34[0])" ( (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) })) comment (expression_statement "FUN_0016aca0(param_1,local_4c,iVar1);" (call_expression "FUN_0016aca0(param_1,local_4c,iVar1)" identifier (argument_list "(param_1,local_4c,iVar1)" ( identifier , identifier , identifier ))) ;) (if_statement "if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }" if (parenthesized_expression "(local_4c != &local_44)" ( (binary_expression "local_4c != &local_44" identifier != (pointer_expression "&local_44" & identifier)) )) (compound_statement "{\n      FUN_001e6db0(local_4c);\n      return;\n    }" { (expression_statement "FUN_001e6db0(local_4c);" (call_expression "FUN_001e6db0(local_4c)" identifier (argument_list "(local_4c)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void script_add_search_dir(void *closurev,char *option,size_t length)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  char *format;\n  int unaff_EDI;\n  string s;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  __x86_get_pc_thunk_di();\n  if (*(int *)((int)closurev + 0x1c) == 0) {\n    uVar1 = *(undefined4 *)((int)closurev + 0x2c);\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n    format = (char *)gettext(unaff_EDI + 0x12d77b);\n    gold::gold_warning(format,uVar3,uVar1,uVar2);\n    return;\n  }\n  if (*(char *)(*(int *)((int)closurev + 0x1c) + 0x272d) == '\0') {\n    local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>(&local_34,option,option + length,0);\n                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */\n    piVar4 = (int *)std::string::_M_replace\n                              ((string *)&local_34,0,0,(char *)(unaff_EDI + 0x12c5ef),2);\n    if ((int *)*piVar4 == piVar4 + 2) {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s.field_2._4_4_ = piVar4[3];\n      s.field_2._8_4_ = piVar4[4];\n      s.field_2._12_4_ = piVar4[5];\n      s._M_dataplus._M_p = (pointer)&s.field_2;\n    }\n    else {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s._M_dataplus._M_p = (pointer)*piVar4;\n    }\n    s._M_string_length = piVar4[1];\n    *(undefined1 *)(piVar4 + 2) = 0;\n    *piVar4 = (int)(piVar4 + 2);\n    piVar4[1] = 0;\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_34._M_dataplus._M_p != &local_34.field_2) {\n      operator_delete(local_34._M_dataplus._M_p);\n    }\n                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */\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" (function_definition "void script_add_search_dir(void *closurev,char *option,size_t length)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  char *format;\n  int unaff_EDI;\n  string s;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  __x86_get_pc_thunk_di();\n  if (*(int *)((int)closurev + 0x1c) == 0) {\n    uVar1 = *(undefined4 *)((int)closurev + 0x2c);\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n    format = (char *)gettext(unaff_EDI + 0x12d77b);\n    gold::gold_warning(format,uVar3,uVar1,uVar2);\n    return;\n  }\n  if (*(char *)(*(int *)((int)closurev + 0x1c) + 0x272d) == '\0') {\n    local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>(&local_34,option,option + length,0);\n                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */\n    piVar4 = (int *)std::string::_M_replace\n                              ((string *)&local_34,0,0,(char *)(unaff_EDI + 0x12c5ef),2);\n    if ((int *)*piVar4 == piVar4 + 2) {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s.field_2._4_4_ = piVar4[3];\n      s.field_2._8_4_ = piVar4[4];\n      s.field_2._12_4_ = piVar4[5];\n      s._M_dataplus._M_p = (pointer)&s.field_2;\n    }\n    else {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s._M_dataplus._M_p = (pointer)*piVar4;\n    }\n    s._M_string_length = piVar4[1];\n    *(undefined1 *)(piVar4 + 2) = 0;\n    *piVar4 = (int)(piVar4 + 2);\n    piVar4[1] = 0;\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_34._M_dataplus._M_p != &local_34.field_2) {\n      operator_delete(local_34._M_dataplus._M_p);\n    }\n                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */\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  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  char *format;\n  int unaff_EDI;\n  string s;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  __x86_get_pc_thunk_di();\n  if (*(int *)((int)closurev + 0x1c) == 0) {\n    uVar1 = *(undefined4 *)((int)closurev + 0x2c);\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n    format = (char *)gettext(unaff_EDI + 0x12d77b);\n    gold::gold_warning(format,uVar3,uVar1,uVar2);\n    return;\n  }\n  if (*(char *)(*(int *)((int)closurev + 0x1c) + 0x272d) == '\0') {\n    local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>(&local_34,option,option + length,0);\n                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */\n    piVar4 = (int *)std::string::_M_replace\n                              ((string *)&local_34,0,0,(char *)(unaff_EDI + 0x12c5ef),2);\n    if ((int *)*piVar4 == piVar4 + 2) {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s.field_2._4_4_ = piVar4[3];\n      s.field_2._8_4_ = piVar4[4];\n      s.field_2._12_4_ = piVar4[5];\n      s._M_dataplus._M_p = (pointer)&s.field_2;\n    }\n    else {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s._M_dataplus._M_p = (pointer)*piVar4;\n    }\n    s._M_string_length = piVar4[1];\n    *(undefined1 *)(piVar4 + 2) = 0;\n    *piVar4 = (int)(piVar4 + 2);\n    piVar4[1] = 0;\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_34._M_dataplus._M_p != &local_34.field_2) {\n      operator_delete(local_34._M_dataplus._M_p);\n    }\n                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */\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 "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "int unaff_EDI;" primitive_type 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_34;" (binary_expression "allocator<char>_> local_34" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > identifier) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)((int)closurev + 0x1c) == 0) {\n    uVar1 = *(undefined4 *)((int)closurev + 0x2c);\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n    format = (char *)gettext(unaff_EDI + 0x12d77b);\n    gold::gold_warning(format,uVar3,uVar1,uVar2);\n    return;\n  }" if (parenthesized_expression "(*(int *)((int)closurev + 0x1c) == 0)" ( (binary_expression "*(int *)((int)closurev + 0x1c) == 0" (pointer_expression "*(int *)((int)closurev + 0x1c)" * (cast_expression "(int *)((int)closurev + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)closurev + 0x1c)" ( (binary_expression "(int)closurev + 0x1c" (cast_expression "(int)closurev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar1 = *(undefined4 *)((int)closurev + 0x2c);\n    uVar2 = *(undefined4 *)((int)closurev + 0x30);\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = *closurev;\n    format = (char *)gettext(unaff_EDI + 0x12d77b);\n    gold::gold_warning(format,uVar3,uVar1,uVar2);\n    return;\n  }" { (expression_statement "uVar1 = *(undefined4 *)((int)closurev + 0x2c);" (assignment_expression "uVar1 = *(undefined4 *)((int)closurev + 0x2c)" identifier = (pointer_expression "*(undefined4 *)((int)closurev + 0x2c)" * (cast_expression "(undefined4 *)((int)closurev + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)closurev + 0x2c)" ( (binary_expression "(int)closurev + 0x2c" (cast_expression "(int)closurev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)((int)closurev + 0x30);" (assignment_expression "uVar2 = *(undefined4 *)((int)closurev + 0x30)" identifier = (pointer_expression "*(undefined4 *)((int)closurev + 0x30)" * (cast_expression "(undefined4 *)((int)closurev + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)closurev + 0x30)" ( (binary_expression "(int)closurev + 0x30" (cast_expression "(int)closurev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) comment (expression_statement "uVar3 = *closurev;" (assignment_expression "uVar3 = *closurev" identifier = (pointer_expression "*closurev" * identifier)) ;) (expression_statement "format = (char *)gettext(unaff_EDI + 0x12d77b);" (assignment_expression "format = (char *)gettext(unaff_EDI + 0x12d77b)" identifier = (cast_expression "(char *)gettext(unaff_EDI + 0x12d77b)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext(unaff_EDI + 0x12d77b)" identifier (argument_list "(unaff_EDI + 0x12d77b)" ( (binary_expression "unaff_EDI + 0x12d77b" identifier + number_literal) ))))) ;) (labeled_statement "gold::gold_warning(format,uVar3,uVar1,uVar2);" statement_identifier : (ERROR ":" :) (expression_statement "gold_warning(format,uVar3,uVar1,uVar2);" (call_expression "gold_warning(format,uVar3,uVar1,uVar2)" identifier (argument_list "(format,uVar3,uVar1,uVar2)" ( identifier , identifier , identifier , identifier ))) ;)) (return_statement "return;" return ;) })) (if_statement "if (*(char *)(*(int *)((int)closurev + 0x1c) + 0x272d) == '\0') {\n    local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>(&local_34,option,option + length,0);\n                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */\n    piVar4 = (int *)std::string::_M_replace\n                              ((string *)&local_34,0,0,(char *)(unaff_EDI + 0x12c5ef),2);\n    if ((int *)*piVar4 == piVar4 + 2) {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s.field_2._4_4_ = piVar4[3];\n      s.field_2._8_4_ = piVar4[4];\n      s.field_2._12_4_ = piVar4[5];\n      s._M_dataplus._M_p = (pointer)&s.field_2;\n    }\n    else {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s._M_dataplus._M_p = (pointer)*piVar4;\n    }\n    s._M_string_length = piVar4[1];\n    *(undefined1 *)(piVar4 + 2) = 0;\n    *piVar4 = (int)(piVar4 + 2);\n    piVar4[1] = 0;\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_34._M_dataplus._M_p != &local_34.field_2) {\n      operator_delete(local_34._M_dataplus._M_p);\n    }\n                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */\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 *)(*(int *)((int)closurev + 0x1c) + 0x272d) == '\0')" ( (binary_expression "*(char *)(*(int *)((int)closurev + 0x1c) + 0x272d) == '\0'" (pointer_expression "*(char *)(*(int *)((int)closurev + 0x1c) + 0x272d)" * (cast_expression "(char *)(*(int *)((int)closurev + 0x1c) + 0x272d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)closurev + 0x1c) + 0x272d)" ( (binary_expression "*(int *)((int)closurev + 0x1c) + 0x272d" (pointer_expression "*(int *)((int)closurev + 0x1c)" * (cast_expression "(int *)((int)closurev + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)closurev + 0x1c)" ( (binary_expression "(int)closurev + 0x1c" (cast_expression "(int)closurev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n    std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>(&local_34,option,option + length,0);\n                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */\n    piVar4 = (int *)std::string::_M_replace\n                              ((string *)&local_34,0,0,(char *)(unaff_EDI + 0x12c5ef),2);\n    if ((int *)*piVar4 == piVar4 + 2) {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s.field_2._4_4_ = piVar4[3];\n      s.field_2._8_4_ = piVar4[4];\n      s.field_2._12_4_ = piVar4[5];\n      s._M_dataplus._M_p = (pointer)&s.field_2;\n    }\n    else {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s._M_dataplus._M_p = (pointer)*piVar4;\n    }\n    s._M_string_length = piVar4[1];\n    *(undefined1 *)(piVar4 + 2) = 0;\n    *piVar4 = (int)(piVar4 + 2);\n    piVar4[1] = 0;\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_34._M_dataplus._M_p != &local_34.field_2) {\n      operator_delete(local_34._M_dataplus._M_p);\n    }\n                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */\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_34._M_dataplus._M_p = (pointer)&local_34.field_2;" (assignment_expression "local_34._M_dataplus._M_p = (pointer)&local_34.field_2" (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier) = (binary_expression "(pointer)&local_34.field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "local_34.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_34,option,option + length,0);" 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_34,option,option + length,0);" (binary_expression "_M_construct<char_const*>(&local_34,option,option + length,0)" (binary_expression "_M_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(&local_34,option,option + length,0)" ( (comma_expression "&local_34,option,option + length,0" (pointer_expression "&local_34" & identifier) , (comma_expression "option,option + length,0" identifier , (comma_expression "option + length,0" (binary_expression "option + length" identifier + identifier) , number_literal))) ))) ;)) comment (ERROR "piVar4 = (int *)std::" (assignment_expression "piVar4 = (int *)std" identifier = (cast_expression "(int *)std" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "string::_M_replace\n                              ((string *)&local_34,0,0,(char *)(unaff_EDI + 0x12c5ef),2);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace\n                              ((string *)&local_34,0,0,(char *)(unaff_EDI + 0x12c5ef),2);" (call_expression "_M_replace\n                              ((string *)&local_34,0,0,(char *)(unaff_EDI + 0x12c5ef),2)" identifier (argument_list "((string *)&local_34,0,0,(char *)(unaff_EDI + 0x12c5ef),2)" ( (cast_expression "(string *)&local_34" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_34" & identifier)) , number_literal , number_literal , (cast_expression "(char *)(unaff_EDI + 0x12c5ef)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x12c5ef)" ( (binary_expression "unaff_EDI + 0x12c5ef" identifier + number_literal) ))) , number_literal ))) ;)) (if_statement "if ((int *)*piVar4 == piVar4 + 2) {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s.field_2._4_4_ = piVar4[3];\n      s.field_2._8_4_ = piVar4[4];\n      s.field_2._12_4_ = piVar4[5];\n      s._M_dataplus._M_p = (pointer)&s.field_2;\n    }\n    else {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s._M_dataplus._M_p = (pointer)*piVar4;\n    }" if (parenthesized_expression "((int *)*piVar4 == piVar4 + 2)" ( (binary_expression "(int *)*piVar4 == piVar4 + 2" (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier)) == (binary_expression "piVar4 + 2" identifier + number_literal)) )) (compound_statement "{\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s.field_2._4_4_ = piVar4[3];\n      s.field_2._8_4_ = piVar4[4];\n      s.field_2._12_4_ = piVar4[5];\n      s._M_dataplus._M_p = (pointer)&s.field_2;\n    }" { (expression_statement "s.field_2._M_allocated_capacity = piVar4[2];" (assignment_expression "s.field_2._M_allocated_capacity = piVar4[2]" (field_expression "s.field_2._M_allocated_capacity" (field_expression "s.field_2" identifier . field_identifier) . field_identifier) = (subscript_expression "piVar4[2]" identifier [ number_literal ])) ;) (expression_statement "s.field_2._4_4_ = piVar4[3];" (assignment_expression "s.field_2._4_4_ = piVar4[3]" (field_expression "s.field_2._4_4_" (field_expression "s.field_2" identifier . field_identifier) . field_identifier) = (subscript_expression "piVar4[3]" identifier [ number_literal ])) ;) (expression_statement "s.field_2._8_4_ = piVar4[4];" (assignment_expression "s.field_2._8_4_ = piVar4[4]" (field_expression "s.field_2._8_4_" (field_expression "s.field_2" identifier . field_identifier) . field_identifier) = (subscript_expression "piVar4[4]" identifier [ number_literal ])) ;) (expression_statement "s.field_2._12_4_ = piVar4[5];" (assignment_expression "s.field_2._12_4_ = piVar4[5]" (field_expression "s.field_2._12_4_" (field_expression "s.field_2" identifier . field_identifier) . field_identifier) = (subscript_expression "piVar4[5]" identifier [ 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))) ;) }) (else_clause "else {\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s._M_dataplus._M_p = (pointer)*piVar4;\n    }" else (compound_statement "{\n      s.field_2._M_allocated_capacity = piVar4[2];\n      s._M_dataplus._M_p = (pointer)*piVar4;\n    }" { (expression_statement "s.field_2._M_allocated_capacity = piVar4[2];" (assignment_expression "s.field_2._M_allocated_capacity = piVar4[2]" (field_expression "s.field_2._M_allocated_capacity" (field_expression "s.field_2" identifier . field_identifier) . field_identifier) = (subscript_expression "piVar4[2]" identifier [ number_literal ])) ;) (expression_statement "s._M_dataplus._M_p = (pointer)*piVar4;" (assignment_expression "s._M_dataplus._M_p = (pointer)*piVar4" (field_expression "s._M_dataplus._M_p" (field_expression "s._M_dataplus" identifier . field_identifier) . field_identifier) = (binary_expression "(pointer)*piVar4" (parenthesized_expression "(pointer)" ( identifier )) * identifier)) ;) }))) (expression_statement "s._M_string_length = piVar4[1];" (assignment_expression "s._M_string_length = piVar4[1]" (field_expression "s._M_string_length" identifier . field_identifier) = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(piVar4 + 2) = 0;" (assignment_expression "*(undefined1 *)(piVar4 + 2) = 0" (pointer_expression "*(undefined1 *)(piVar4 + 2)" * (cast_expression "(undefined1 *)(piVar4 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + 2)" ( (binary_expression "piVar4 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*piVar4 = (int)(piVar4 + 2);" (assignment_expression "*piVar4 = (int)(piVar4 + 2)" (pointer_expression "*piVar4" * identifier) = (cast_expression "(int)(piVar4 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar4 + 2)" ( (binary_expression "piVar4 + 2" identifier + number_literal) )))) ;) (expression_statement "piVar4[1] = 0;" (assignment_expression "piVar4[1] = 0" (subscript_expression "piVar4[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_34._M_dataplus._M_p != &local_34.field_2) {\n      operator_delete(local_34._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_34._M_dataplus._M_p != &local_34.field_2)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)local_34._M_dataplus._M_p != &local_34.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_34._M_dataplus._M_p != &local_34.field_2" (binary_expression "allocator<char>_>_9\n         *)local_34._M_dataplus._M_p" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n         *)local_34._M_dataplus._M_p" identifier * (ERROR ")" )) (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier))) != (pointer_expression "&local_34.field_2" & (field_expression "local_34.field_2" identifier . field_identifier))) )) )) (compound_statement "{\n      operator_delete(local_34._M_dataplus._M_p);\n    }" { (expression_statement "operator_delete(local_34._M_dataplus._M_p);" (call_expression "operator_delete(local_34._M_dataplus._M_p)" identifier (argument_list "(local_34._M_dataplus._M_p)" ( (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._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_0016bc80(undefined4 *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int unaff_EDI;\n  int *local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  FUN_000559ee();\n  if (param_1[7] == 0) {\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }\n  if (*(char *)(param_1[7] + 0x272d) == '\0') {\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    \n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    \n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0016bc80(undefined4 *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int unaff_EDI;\n  int *local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  FUN_000559ee();\n  if (param_1[7] == 0) {\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }\n  if (*(char *)(param_1[7] + 0x272d) == '\0') {\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    \n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    \n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0016bc80(undefined4 *param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int unaff_EDI;\n  int *local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  FUN_000559ee();\n  if (param_1[7] == 0) {\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }\n  if (*(char *)(param_1[7] + 0x272d) == '\0') {\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    \n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    \n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int *local_4c;" primitive_type (pointer_declarator "*local_4c" * identifier) ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined1 *local_34 [2];" type_identifier (pointer_declarator "*local_34 [2]" * (array_declarator "local_34 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_1[7] == 0) {\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }" if (parenthesized_expression "(param_1[7] == 0)" ( (binary_expression "param_1[7] == 0" (subscript_expression "param_1[7]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }" { (expression_statement "uVar2 = param_1[0xb];" (assignment_expression "uVar2 = param_1[0xb]" identifier = (subscript_expression "param_1[0xb]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = param_1[0xc];" (assignment_expression "uVar3 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar6 = gettext(unaff_EDI + 0x12d77b);" (assignment_expression "uVar6 = gettext(unaff_EDI + 0x12d77b)" identifier = (call_expression "gettext(unaff_EDI + 0x12d77b)" identifier (argument_list "(unaff_EDI + 0x12d77b)" ( (binary_expression "unaff_EDI + 0x12d77b" identifier + number_literal) )))) ;) (expression_statement "FUN_000654e0(uVar6,uVar4,uVar2,uVar3);" (call_expression "FUN_000654e0(uVar6,uVar4,uVar2,uVar3)" identifier (argument_list "(uVar6,uVar4,uVar2,uVar3)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(char *)(param_1[7] + 0x272d) == '\0') {\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    \n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    \n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }" if (parenthesized_expression "(*(char *)(param_1[7] + 0x272d) == '\0')" ( (binary_expression "*(char *)(param_1[7] + 0x272d) == '\0'" (pointer_expression "*(char *)(param_1[7] + 0x272d)" * (cast_expression "(char *)(param_1[7] + 0x272d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[7] + 0x272d)" ( (binary_expression "param_1[7] + 0x272d" (subscript_expression "param_1[7]" identifier [ number_literal ]) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    \n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    \n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }" { (expression_statement "local_34[0] = local_2c;" (assignment_expression "local_34[0] = local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00050e40(local_34,param_2,param_2 + param_3,0);" (call_expression "FUN_00050e40(local_34,param_2,param_2 + param_3,0)" identifier (argument_list "(local_34,param_2,param_2 + param_3,0)" ( identifier , identifier , (binary_expression "param_2 + param_3" identifier + identifier) , number_literal ))) ;) (expression_statement "piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);" (assignment_expression "piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2)" identifier = (cast_expression "(int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2)" identifier (argument_list "(local_34,0,0,unaff_EDI + 0x12c5ef,2)" ( identifier , number_literal , number_literal , (binary_expression "unaff_EDI + 0x12c5ef" identifier + number_literal) , number_literal ))))) ;) (if_statement "if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }" if (parenthesized_expression "((int *)*piVar5 == piVar5 + 2)" ( (binary_expression "(int *)*piVar5 == piVar5 + 2" (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier)) == (binary_expression "piVar5 + 2" identifier + number_literal)) )) (compound_statement "{\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }" { (expression_statement "local_44 = piVar5[2];" (assignment_expression "local_44 = piVar5[2]" identifier = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) (expression_statement "local_40 = piVar5[3];" (assignment_expression "local_40 = piVar5[3]" identifier = (subscript_expression "piVar5[3]" identifier [ number_literal ])) ;) (expression_statement "local_3c = piVar5[4];" (assignment_expression "local_3c = piVar5[4]" identifier = (subscript_expression "piVar5[4]" identifier [ number_literal ])) ;) (expression_statement "local_38 = piVar5[5];" (assignment_expression "local_38 = piVar5[5]" identifier = (subscript_expression "piVar5[5]" identifier [ number_literal ])) ;) (expression_statement "local_4c = &local_44;" (assignment_expression "local_4c = &local_44" identifier = (pointer_expression "&local_44" & identifier)) ;) }) (else_clause "else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }" else (compound_statement "{\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }" { (expression_statement "local_44 = piVar5[2];" (assignment_expression "local_44 = piVar5[2]" identifier = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) (expression_statement "local_4c = (int *)*piVar5;" (assignment_expression "local_4c = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) }))) (expression_statement "iVar1 = piVar5[1];" (assignment_expression "iVar1 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(piVar5 + 2) = 0;" (assignment_expression "*(undefined1 *)(piVar5 + 2) = 0" (pointer_expression "*(undefined1 *)(piVar5 + 2)" * (cast_expression "(undefined1 *)(piVar5 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*piVar5 = (int)(piVar5 + 2);" (assignment_expression "*piVar5 = (int)(piVar5 + 2)" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)(piVar5 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) )))) ;) (expression_statement "piVar5[1] = 0;" (assignment_expression "piVar5[1] = 0" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }" if (parenthesized_expression "(local_34[0] != local_2c)" ( (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n      FUN_001e6db0(local_34[0]);\n    }" { (expression_statement "FUN_001e6db0(local_34[0]);" (call_expression "FUN_001e6db0(local_34[0])" identifier (argument_list "(local_34[0])" ( (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_0016aca0(param_1,local_4c,iVar1);" (call_expression "FUN_0016aca0(param_1,local_4c,iVar1)" identifier (argument_list "(param_1,local_4c,iVar1)" ( identifier , identifier , identifier ))) ;) (if_statement "if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }" if (parenthesized_expression "(local_4c != &local_44)" ( (binary_expression "local_4c != &local_44" identifier != (pointer_expression "&local_44" & identifier)) )) (compound_statement "{\n      FUN_001e6db0(local_4c);\n      return;\n    }" { (expression_statement "FUN_001e6db0(local_4c);" (call_expression "FUN_001e6db0(local_4c)" identifier (argument_list "(local_4c)" ( identifier ))) ;) (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 TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (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) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (binary_expression IDENT + LIT) , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (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 ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (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 TYPE) ) (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 ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (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 ( IDENT ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_0016bc80(undefined4 *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int unaff_EDI;\n  int *local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  FUN_000559ee();\n  if (param_1[7] == 0) {\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }\n  if (*(char *)(param_1[7] + 0x272d) == '\0') {\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    \n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    \n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0016bc80(undefined4 *param_1,int param_2,int param_3)" (identifier "FUN_0016bc80") (parameter_list "(undefined4 *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int unaff_EDI;\n  int *local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  FUN_000559ee();\n  if (param_1[7] == 0) {\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }\n  if (*(char *)(param_1[7] + 0x272d) == '\0') {\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    \n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    \n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "int *local_4c;" (primitive_type "int") (pointer_declarator "*local_4c" (* "*") (identifier "local_4c")) (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "undefined1 *local_34 [2];" (type_identifier "undefined1") (pointer_declarator "*local_34 [2]" (* "*") (array_declarator "local_34 [2]" (identifier "local_34") ([ "[") (number_literal "2") (] "]"))) (; ";")) (declaration "undefined1 local_2c [28];" (type_identifier "undefined1") (array_declarator "local_2c [28]" (identifier "local_2c") ([ "[") (number_literal "28") (] "]")) (; ";")) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" (identifier "FUN_000559ee") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (param_1[7] == 0) {\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1[7] == 0)" (( "(") (binary_expression "param_1[7] == 0" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = param_1[0xb];\n    uVar3 = param_1[0xc];\n    uVar4 = *param_1;\n    uVar6 = gettext(unaff_EDI + 0x12d77b);\n    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);\n    return;\n  }" ({ "{") (expression_statement "uVar2 = param_1[0xb];" (assignment_expression "uVar2 = param_1[0xb]" (identifier "uVar2") (= "=") (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]"))) (; ";")) (expression_statement "uVar3 = param_1[0xc];" (assignment_expression "uVar3 = param_1[0xc]" (identifier "uVar3") (= "=") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (expression_statement "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" (identifier "uVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar6 = gettext(unaff_EDI + 0x12d77b);" (assignment_expression "uVar6 = gettext(unaff_EDI + 0x12d77b)" (identifier "uVar6") (= "=") (call_expression "gettext(unaff_EDI + 0x12d77b)" (identifier "gettext") (argument_list "(unaff_EDI + 0x12d77b)" (( "(") (binary_expression "unaff_EDI + 0x12d77b" (identifier "unaff_EDI") (+ "+") (number_literal "0x12d77b")) () ")")))) (; ";")) (expression_statement "FUN_000654e0(uVar6,uVar4,uVar2,uVar3);" (call_expression "FUN_000654e0(uVar6,uVar4,uVar2,uVar3)" (identifier "FUN_000654e0") (argument_list "(uVar6,uVar4,uVar2,uVar3)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar4") (, ",") (identifier "uVar2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*(char *)(param_1[7] + 0x272d) == '\0') {\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    \n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    \n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1[7] + 0x272d) == '\0')" (( "(") (binary_expression "*(char *)(param_1[7] + 0x272d) == '\0'" (pointer_expression "*(char *)(param_1[7] + 0x272d)" (* "*") (cast_expression "(char *)(param_1[7] + 0x272d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[7] + 0x272d)" (( "(") (binary_expression "param_1[7] + 0x272d" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (+ "+") (number_literal "0x272d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_34[0] = local_2c;\n    FUN_00050e40(local_34,param_2,param_2 + param_3,0);\n                    \n    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);\n    if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }\n    iVar1 = piVar5[1];\n    *(undefined1 *)(piVar5 + 2) = 0;\n    *piVar5 = (int)(piVar5 + 2);\n    piVar5[1] = 0;\n    if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }\n                    \n    FUN_0016aca0(param_1,local_4c,iVar1);\n    if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }\n  }" ({ "{") (expression_statement "local_34[0] = local_2c;" (assignment_expression "local_34[0] = local_2c" (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "local_2c")) (; ";")) (expression_statement "FUN_00050e40(local_34,param_2,param_2 + param_3,0);" (call_expression "FUN_00050e40(local_34,param_2,param_2 + param_3,0)" (identifier "FUN_00050e40") (argument_list "(local_34,param_2,param_2 + param_3,0)" (( "(") (identifier "local_34") (, ",") (identifier "param_2") (, ",") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);" (assignment_expression "piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2)" (identifier "piVar5") (= "=") (cast_expression "(int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2)" (identifier "FUN_001ef9f0") (argument_list "(local_34,0,0,unaff_EDI + 0x12c5ef,2)" (( "(") (identifier "local_34") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (binary_expression "unaff_EDI + 0x12c5ef" (identifier "unaff_EDI") (+ "+") (number_literal "0x12c5ef")) (, ",") (number_literal "2") () ")"))))) (; ";")) (if_statement "if ((int *)*piVar5 == piVar5 + 2) {\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }\n    else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }" (if "if") (parenthesized_expression "((int *)*piVar5 == piVar5 + 2)" (( "(") (binary_expression "(int *)*piVar5 == piVar5 + 2" (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (== "==") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n      local_44 = piVar5[2];\n      local_40 = piVar5[3];\n      local_3c = piVar5[4];\n      local_38 = piVar5[5];\n      local_4c = &local_44;\n    }" ({ "{") (expression_statement "local_44 = piVar5[2];" (assignment_expression "local_44 = piVar5[2]" (identifier "local_44") (= "=") (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "local_40 = piVar5[3];" (assignment_expression "local_40 = piVar5[3]" (identifier "local_40") (= "=") (subscript_expression "piVar5[3]" (identifier "piVar5") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "local_3c = piVar5[4];" (assignment_expression "local_3c = piVar5[4]" (identifier "local_3c") (= "=") (subscript_expression "piVar5[4]" (identifier "piVar5") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "local_38 = piVar5[5];" (assignment_expression "local_38 = piVar5[5]" (identifier "local_38") (= "=") (subscript_expression "piVar5[5]" (identifier "piVar5") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "local_4c = &local_44;" (assignment_expression "local_4c = &local_44" (identifier "local_4c") (= "=") (pointer_expression "&local_44" (& "&") (identifier "local_44"))) (; ";")) (} "}")) (else_clause "else {\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }" (else "else") (compound_statement "{\n      local_44 = piVar5[2];\n      local_4c = (int *)*piVar5;\n    }" ({ "{") (expression_statement "local_44 = piVar5[2];" (assignment_expression "local_44 = piVar5[2]" (identifier "local_44") (= "=") (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "local_4c = (int *)*piVar5;" (assignment_expression "local_4c = (int *)*piVar5" (identifier "local_4c") (= "=") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")))) (; ";")) (} "}")))) (expression_statement "iVar1 = piVar5[1];" (assignment_expression "iVar1 = piVar5[1]" (identifier "iVar1") (= "=") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined1 *)(piVar5 + 2) = 0;" (assignment_expression "*(undefined1 *)(piVar5 + 2) = 0" (pointer_expression "*(undefined1 *)(piVar5 + 2)" (* "*") (cast_expression "(undefined1 *)(piVar5 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar5 + 2)" (( "(") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar5 = (int)(piVar5 + 2);" (assignment_expression "*piVar5 = (int)(piVar5 + 2)" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (cast_expression "(int)(piVar5 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar5 + 2)" (( "(") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "piVar5[1] = 0;" (assignment_expression "piVar5[1] = 0" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_34[0] != local_2c) {\n      FUN_001e6db0(local_34[0]);\n    }" (if "if") (parenthesized_expression "(local_34[0] != local_2c)" (( "(") (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) (!= "!=") (identifier "local_2c")) () ")")) (compound_statement "{\n      FUN_001e6db0(local_34[0]);\n    }" ({ "{") (expression_statement "FUN_001e6db0(local_34[0]);" (call_expression "FUN_001e6db0(local_34[0])" (identifier "FUN_001e6db0") (argument_list "(local_34[0])" (( "(") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0016aca0(param_1,local_4c,iVar1);" (call_expression "FUN_0016aca0(param_1,local_4c,iVar1)" (identifier "FUN_0016aca0") (argument_list "(param_1,local_4c,iVar1)" (( "(") (identifier "param_1") (, ",") (identifier "local_4c") (, ",") (identifier "iVar1") () ")"))) (; ";")) (if_statement "if (local_4c != &local_44) {\n      FUN_001e6db0(local_4c);\n      return;\n    }" (if "if") (parenthesized_expression "(local_4c != &local_44)" (( "(") (binary_expression "local_4c != &local_44" (identifier "local_4c") (!= "!=") (pointer_expression "&local_44" (& "&") (identifier "local_44"))) () ")")) (compound_statement "{\n      FUN_001e6db0(local_4c);\n      return;\n    }" ({ "{") (expression_statement "FUN_001e6db0(local_4c);" (call_expression "FUN_001e6db0(local_4c)" (identifier "FUN_001e6db0") (argument_list "(local_4c)" (( "(") (identifier "local_4c") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(void *closurev,char *var_11,size_t var_12)

{
  type_1 uVar1;
  type_1 uVar2;
  type_1 uVar3;
  int *var_14;
  char *format;
  int var_7;
  type_2 s;
  basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3> var_4;
  
  var_5();
  if (*(int *)((int)closurev + 0x1c) == 0) {
    uVar1 = *(type_1 *)((int)closurev + 0x2c);
    uVar2 = *(type_1 *)((int)closurev + 0x30);
                    /* WARNING: Load size is inaccurate */
    uVar3 = *closurev;
    format = (char *)var_6(var_7 + 0x12d77b);
    gold::var_8(format,uVar3,uVar1,uVar2);
    return;
  }
  if (*(char *)(*(int *)((int)closurev + 0x1c) + 0x272d) == '\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_9<var_10*>(&var_4,var_11,var_11 + var_12,0);
                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */
    var_14 = (int *)std::string::var_13
                              ((type_2 *)&var_4,0,0,(char *)(var_7 + 0x12c5ef),2);
    if ((int *)*var_14 == var_14 + 2) {
      s.field_2._M_allocated_capacity = var_14[2];
      s.field_2._4_4_ = var_14[3];
      s.field_2._8_4_ = var_14[4];
      s.field_2._12_4_ = var_14[5];
      s._M_dataplus._M_p = (pointer)&s.field_2;
    }
    else {
      s.field_2._M_allocated_capacity = var_14[2];
      s._M_dataplus._M_p = (pointer)*var_14;
    }
    s._M_string_length = var_14[1];
    *(type_3 *)(var_14 + 2) = 0;
    *var_14 = (int)(var_14 + 2);
    var_14[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_15
         *)var_4._M_dataplus._M_p != &var_4.field_2) {
      var_16(var_4._M_dataplus._M_p);
    }
                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */
    var_17(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_15
         *)s._M_dataplus._M_p != &s.field_2) {
      var_16(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (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)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) 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)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) 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: (primitive_type) 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: (primitive_type)) 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 (subscript_expression argument: (identifier) index: (number_literal))))))) (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 (identifier)))) (return_statement))))) (return_statement))))

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

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int *piVar5;
  undefined4 uVar6;
  int unaff_EDI;
  int *local_4c;
  int local_44;
  int local_40;
  int local_3c;
  int local_38;
  undefined1 *local_34 [2];
  undefined1 local_2c [28];
  
  FUN_000559ee();
  if (param_1[7] == 0) {
    uVar2 = param_1[0xb];
    uVar3 = param_1[0xc];
    uVar4 = *param_1;
    uVar6 = gettext(unaff_EDI + 0x12d77b);
    FUN_000654e0(uVar6,uVar4,uVar2,uVar3);
    return;
  }
  if (*(char *)(param_1[7] + 0x272d) == '\0') {
    local_34[0] = local_2c;
    FUN_00050e40(local_34,param_2,param_2 + param_3,0);
                    /* try { // try from 0016bceb to 0016bcef has its CatchHandler @ 0016bdd4 */
    piVar5 = (int *)FUN_001ef9f0(local_34,0,0,unaff_EDI + 0x12c5ef,2);
    if ((int *)*piVar5 == piVar5 + 2) {
      local_44 = piVar5[2];
      local_40 = piVar5[3];
      local_3c = piVar5[4];
      local_38 = piVar5[5];
      local_4c = &local_44;
    }
    else {
      local_44 = piVar5[2];
      local_4c = (int *)*piVar5;
    }
    iVar1 = piVar5[1];
    *(undefined1 *)(piVar5 + 2) = 0;
    *piVar5 = (int)(piVar5 + 2);
    piVar5[1] = 0;
    if (local_34[0] != local_2c) {
      FUN_001e6db0(local_34[0]);
    }
                    /* try { // try from 0016bd45 to 0016bd49 has its CatchHandler @ 0016bdcd */
    FUN_0016aca0(param_1,local_4c,iVar1);
    if (local_4c != &local_44) {
      FUN_001e6db0(local_4c);
      return;
    }
  }
  return;
}

