
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original name: _M_insert_unique<gold::Cie* const&>
   DWARF original prototype: pair<std::_Rb_tree_iterator<gold::Cie*>,_bool>
   _M_insert_unique<gold::Cie*_const&>(_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>
   * this, Cie * * __v) */

pair<std::_Rb_tree_iterator<gold::Cie*>,_bool> __thiscall
std::
_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>
::_M_insert_unique<gold::Cie*_const&>
          (_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>
           *this,Cie **__v)

{
}



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

int * FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)

{
  char cVar1;
  undefined1 uVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  
  if (*(int *)(param_2 + 8) == 0) {
    iVar6 = param_2 + 4;
LAB_0021b643:
    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;
    iVar3 = FUN_00249860(iVar6);
    uVar5 = *(undefined4 *)(iVar3 + 0x10);
    uVar4 = *param_3;
  }
  else {
    uVar4 = *param_3;
    iVar3 = *(int *)(param_2 + 8);
    do {
      iVar6 = iVar3;
      uVar5 = *(undefined4 *)(iVar6 + 0x10);
      cVar1 = FUN_0021a6e0(uVar4,uVar5);
      if (cVar1 == '\0') {
        iVar3 = *(int *)(iVar6 + 0xc);
      }
      else {
        iVar3 = *(int *)(iVar6 + 8);
      }
    } while (iVar3 != 0);
    iVar3 = iVar6;
    if (cVar1 != '\0') goto LAB_0021b643;
  }
  cVar1 = FUN_0021a6e0(uVar5,uVar4);
  if (cVar1 != '\0') {
    if (iVar6 != 0) {
joined_r0x0021b5d2:
      uVar2 = 1;
      if (param_2 + 4 != iVar6) {
        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));
      }
      iVar3 = FUN_00246670(0x14);
      *(undefined4 *)(iVar3 + 0x10) = *param_3;
      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);
      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;
      *param_1 = iVar3;
      *(undefined1 *)(param_1 + 1) = 1;
      return param_1;
    }
    iVar3 = 0;
  }
  *param_1 = iVar3;
  *(undefined1 *)(param_1 + 1) = 0;
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0003a210
ADD EBX,0x1f8ab7
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [EDI + 0x8]
LEA EAX,[EDI + 0x4]
MOV dword ptr [ESP + 0x8],EAX
TEST ESI,ESI
JZ 0x0021b640
MOV EAX,dword ptr [ESP + 0x38]
MOV ECX,dword ptr [EAX]
MOV EDI,ECX
JMP 0x0021b581
MOV EBP,dword ptr [ESI + 0x8]
TEST EBP,EBP
JZ 0x0021b5a4
MOV ESI,EBP
MOV EDX,dword ptr [ESI + 0x10]
SUB ESP,0x8
PUSH EDX
MOV dword ptr [ESP + 0x18],EDX
PUSH EDI
CALL 0x0021a6e0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST AL,AL
JNZ 0x0021b578
MOV EBP,dword ptr [ESI + 0xc]
TEST EBP,EBP
JNZ 0x0021b57f
MOV ECX,EDI
MOV EBP,ESI
MOV EDI,dword ptr [ESP + 0x34]
TEST AL,AL
JNZ 0x0021b643
SUB ESP,0x8
PUSH ECX
PUSH EDX
CALL 0x0021a6e0
ADD ESP,0x10
TEST AL,AL
JZ 0x0021b622
TEST EBP,EBP
JZ 0x0021b620
MOV ESI,0x1
CMP dword ptr [ESP + 0x8],EBP
JNZ 0x0021b681
SUB ESP,0xc
PUSH 0x14
CALL 0x00246670
MOV ECX,dword ptr [ESP + 0x48]
MOV EDX,dword ptr [ECX]
MOV dword ptr [EAX + 0x10],EDX
PUSH dword ptr [ESP + 0x18]
PUSH EBP
PUSH EAX
MOV dword ptr [ESP + 0x24],EAX
PUSH ESI
CALL 0x00249940
MOV EBX,dword ptr [ESP + 0x50]
MOV EAX,dword ptr [ESP + 0x28]
ADD ESP,0x20
ADD dword ptr [EDI + 0x14],0x1
MOV dword ptr [EBX],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV byte ptr [EBX + 0x4],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
XOR ESI,ESI
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],ESI
MOV byte ptr [EAX + 0x4],0x0
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
LEA ESI,[EDI + 0x4]
CMP dword ptr [EDI + 0xc],ESI
JZ 0x0021b670
SUB ESP,0xc
MOV EBP,ESI
PUSH ESI
CALL 0x00249860
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [EAX + 0x10]
MOV ESI,EAX
MOV ECX,dword ptr [ECX]
JMP 0x0021b5b4
MOV EBP,ESI
MOV ESI,0x1
CMP dword ptr [ESP + 0x8],EBP
JZ 0x0021b5d8
SUB ESP,0x8
PUSH dword ptr [EBP + 0x10]
MOV EAX,dword ptr [ESP + 0x44]
PUSH dword ptr [EAX]
CALL 0x0021a6e0
ADD ESP,0x10
MOVZX ESI,AL
JMP 0x0021b5d8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)\n\n{\n  char cVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }\n  else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }\n  cVar1 = FUN_0021a6e0(uVar5,uVar4);\n  if (cVar1 != '\0') {\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }\n  *param_1 = iVar3;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)\n\n{\n  char cVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }\n  else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }\n  cVar1 = FUN_0021a6e0(uVar5,uVar4);\n  if (cVar1 != '\0') {\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }\n  *param_1 = iVar3;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)" * (function_declarator "FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(int *param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }\n  else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }\n  cVar1 = FUN_0021a6e0(uVar5,uVar4);\n  if (cVar1 != '\0') {\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }\n  *param_1 = iVar3;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }\n  else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" ( (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }" { (expression_statement "iVar6 = param_2 + 4;" (assignment_expression "iVar6 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (labeled_statement "LAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;" statement_identifier : (if_statement "if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;" if (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar6)" ( (binary_expression "*(int *)(param_2 + 0xc) == iVar6" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) == identifier) )) (goto_statement "goto joined_r0x0021b5d2;" goto statement_identifier ;))) (expression_statement "iVar3 = FUN_00249860(iVar6);" (assignment_expression "iVar3 = FUN_00249860(iVar6)" identifier = (call_expression "FUN_00249860(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar3 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(iVar3 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) }) (else_clause "else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }" else (compound_statement "{\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }" { (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar3 = *(int *)(param_2 + 8);" (assignment_expression "iVar3 = *(int *)(param_2 + 8)" identifier = (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);" do (compound_statement "{\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    }" { (expression_statement "iVar6 = iVar3;" (assignment_expression "iVar6 = iVar3" identifier = identifier) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar6 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(iVar6 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = FUN_0021a6e0(uVar4,uVar5);" (assignment_expression "cVar1 = FUN_0021a6e0(uVar4,uVar5)" identifier = (call_expression "FUN_0021a6e0(uVar4,uVar5)" identifier (argument_list "(uVar4,uVar5)" ( identifier , identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }" { (expression_statement "iVar3 = *(int *)(iVar6 + 0xc);" (assignment_expression "iVar3 = *(int *)(iVar6 + 0xc)" identifier = (pointer_expression "*(int *)(iVar6 + 0xc)" * (cast_expression "(int *)(iVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }" else (compound_statement "{\n        iVar3 = *(int *)(iVar6 + 8);\n      }" { (expression_statement "iVar3 = *(int *)(iVar6 + 8);" (assignment_expression "iVar3 = *(int *)(iVar6 + 8)" identifier = (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) ))))) ;) }))) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (expression_statement "iVar3 = iVar6;" (assignment_expression "iVar3 = iVar6" identifier = identifier) ;) (if_statement "if (cVar1 != '\0') goto LAB_0021b643;" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0021b643;" goto statement_identifier ;)) }))) (expression_statement "cVar1 = FUN_0021a6e0(uVar5,uVar4);" (assignment_expression "cVar1 = FUN_0021a6e0(uVar5,uVar4)" identifier = (call_expression "FUN_0021a6e0(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }" { (if_statement "if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" { (labeled_statement "joined_r0x0021b5d2:\n      uVar2 = 1;" statement_identifier : (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;)) (if_statement "if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }" if (parenthesized_expression "(param_2 + 4 != iVar6)" ( (binary_expression "param_2 + 4 != iVar6" (binary_expression "param_2 + 4" identifier + number_literal) != identifier) )) (compound_statement "{\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }" { (expression_statement "uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));" (assignment_expression "uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10))" identifier = (call_expression "FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10))" identifier (argument_list "(*param_3,*(undefined4 *)(iVar6 + 0x10))" ( (pointer_expression "*param_3" * identifier) , (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) )))) ;) })) (expression_statement "iVar3 = FUN_00246670(0x14);" (assignment_expression "iVar3 = FUN_00246670(0x14)" identifier = (call_expression "FUN_00246670(0x14)" identifier (argument_list "(0x14)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = *param_3;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = *param_3" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);" (call_expression "FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4)" identifier (argument_list "(uVar2,iVar3,iVar6,param_2 + 4)" ( identifier , identifier , identifier , (binary_expression "param_2 + 4" identifier + number_literal) ))) ;) (expression_statement "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;" (assignment_expression "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 1" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original name: _M_insert_unique<gold::Cie* const&>\n   DWARF original prototype: pair<std::_Rb_tree_iterator<gold::Cie*>,_bool>\n   _M_insert_unique<gold::Cie*_const&>(_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>\n   * this, Cie * * __v) */\n\npair<std::_Rb_tree_iterator<gold::Cie*>,_bool> __thiscall\nstd::\n_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>\n::_M_insert_unique<gold::Cie*_const&>\n          (_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>\n           *this,Cie **__v)\n\n{\n}\n\n" comment comment (ERROR "pair<std::_Rb_tree_iterator<gold::Cie*>,_bool> __thiscall\nstd::\n_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>\n::_M_insert_unique<gold::Cie*_const&>\n          (_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>\n           *this,Cie **__v)" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_iterator<gold" identifier < identifier) : : (binary_expression "Cie*>,_bool> __thiscall\nstd::\n_Rb_tree<gold" (binary_expression "Cie*>,_bool> __thiscall" (binary_expression "Cie*>,_bool" identifier * (ERROR ">," > ,) identifier) > identifier) (ERROR "std::\n_Rb_tree" identifier : : identifier) < identifier) : : (binary_expression "Cie*,_gold" identifier * (ERROR "," ,) identifier) : : (binary_expression "Cie*,_std" identifier * (ERROR "," ,) identifier) : : (binary_expression "_Identity<gold" identifier < identifier) : : (binary_expression "Cie*>,_gold" identifier * (ERROR ">," > ,) identifier) : : (binary_expression "Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>\n::_M_insert_unique<gold" (binary_expression "Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>\n::_M_insert_unique" (binary_expression "Eh_frame::Cie_less,_std::allocator<gold::Cie*>_" identifier (ERROR "::Cie_less,_std::allocator<gold::Cie*" : : (comma_expression "Cie_less,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : identifier *) > identifier) > (ERROR "::" : :) identifier) < identifier) : : (binary_expression "Cie*_const&>\n          (_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>\n           *this,Cie **__v)" (binary_expression "Cie*_const" identifier * identifier) (ERROR "&" &) > (parenthesized_expression "(_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>\n           *this,Cie **__v)" ( (ERROR "_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::" (comma_expression "_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold" (binary_expression "_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold" (binary_expression "_Rb_tree<gold::Cie*,_gold::Cie*,_std" (binary_expression "_Rb_tree<gold::Cie*,_gold" (binary_expression "_Rb_tree<gold" identifier < identifier) (ERROR "::Cie" : : identifier) * (ERROR "," ,) identifier) (ERROR "::Cie" : : identifier) * (ERROR "," ,) identifier) (ERROR "::_Identity" : : identifier) < identifier) (ERROR "::Cie*>" : : identifier * >) , identifier) : : identifier : : (comma_expression "Cie_less,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (comma_expression "Cie*>_>\n           *this,Cie **__v" (binary_expression "Cie*>_>\n           *this" (binary_expression "Cie*>_" identifier * (ERROR ">" >) identifier) > (pointer_expression "*this" * identifier)) , (binary_expression "Cie **__v" identifier * (pointer_expression "*__v" * identifier))) )))) (compound_statement "{\n}" { }))
(translation_unit "int * FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)\n\n{\n  char cVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }\n  else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }\n  cVar1 = FUN_0021a6e0(uVar5,uVar4);\n  if (cVar1 != '\0') {\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }\n  *param_1 = iVar3;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}\n\n" (function_definition "int * FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)\n\n{\n  char cVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }\n  else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }\n  cVar1 = FUN_0021a6e0(uVar5,uVar4);\n  if (cVar1 != '\0') {\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }\n  *param_1 = iVar3;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)" * (function_declarator "FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(int *param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }\n  else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }\n  cVar1 = FUN_0021a6e0(uVar5,uVar4);\n  if (cVar1 != '\0') {\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }\n  *param_1 = iVar3;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }\n  else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" ( (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }" { (expression_statement "iVar6 = param_2 + 4;" (assignment_expression "iVar6 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (labeled_statement "LAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;" statement_identifier : (if_statement "if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;" if (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar6)" ( (binary_expression "*(int *)(param_2 + 0xc) == iVar6" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) == identifier) )) (goto_statement "goto joined_r0x0021b5d2;" goto statement_identifier ;))) (expression_statement "iVar3 = FUN_00249860(iVar6);" (assignment_expression "iVar3 = FUN_00249860(iVar6)" identifier = (call_expression "FUN_00249860(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar3 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(iVar3 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) }) (else_clause "else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }" else (compound_statement "{\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }" { (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar3 = *(int *)(param_2 + 8);" (assignment_expression "iVar3 = *(int *)(param_2 + 8)" identifier = (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);" do (compound_statement "{\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    }" { (expression_statement "iVar6 = iVar3;" (assignment_expression "iVar6 = iVar3" identifier = identifier) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar6 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(iVar6 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = FUN_0021a6e0(uVar4,uVar5);" (assignment_expression "cVar1 = FUN_0021a6e0(uVar4,uVar5)" identifier = (call_expression "FUN_0021a6e0(uVar4,uVar5)" identifier (argument_list "(uVar4,uVar5)" ( identifier , identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }" { (expression_statement "iVar3 = *(int *)(iVar6 + 0xc);" (assignment_expression "iVar3 = *(int *)(iVar6 + 0xc)" identifier = (pointer_expression "*(int *)(iVar6 + 0xc)" * (cast_expression "(int *)(iVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }" else (compound_statement "{\n        iVar3 = *(int *)(iVar6 + 8);\n      }" { (expression_statement "iVar3 = *(int *)(iVar6 + 8);" (assignment_expression "iVar3 = *(int *)(iVar6 + 8)" identifier = (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) ))))) ;) }))) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (expression_statement "iVar3 = iVar6;" (assignment_expression "iVar3 = iVar6" identifier = identifier) ;) (if_statement "if (cVar1 != '\0') goto LAB_0021b643;" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0021b643;" goto statement_identifier ;)) }))) (expression_statement "cVar1 = FUN_0021a6e0(uVar5,uVar4);" (assignment_expression "cVar1 = FUN_0021a6e0(uVar5,uVar4)" identifier = (call_expression "FUN_0021a6e0(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }" { (if_statement "if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" { (labeled_statement "joined_r0x0021b5d2:\n      uVar2 = 1;" statement_identifier : (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;)) (if_statement "if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }" if (parenthesized_expression "(param_2 + 4 != iVar6)" ( (binary_expression "param_2 + 4 != iVar6" (binary_expression "param_2 + 4" identifier + number_literal) != identifier) )) (compound_statement "{\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }" { (expression_statement "uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));" (assignment_expression "uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10))" identifier = (call_expression "FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10))" identifier (argument_list "(*param_3,*(undefined4 *)(iVar6 + 0x10))" ( (pointer_expression "*param_3" * identifier) , (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) )))) ;) })) (expression_statement "iVar3 = FUN_00246670(0x14);" (assignment_expression "iVar3 = FUN_00246670(0x14)" identifier = (call_expression "FUN_00246670(0x14)" identifier (argument_list "(0x14)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = *param_3;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = *param_3" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);" (call_expression "FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4)" identifier (argument_list "(uVar2,iVar3,iVar6,param_2 + 4)" ( identifier , identifier , identifier , (binary_expression "param_2 + 4" identifier + number_literal) ))) ;) (expression_statement "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;" (assignment_expression "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 1" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_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) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)\n\n{\n  char cVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }\n  else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }\n  cVar1 = FUN_0021a6e0(uVar5,uVar4);\n  if (cVar1 != '\0') {\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }\n  *param_1 = iVar3;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)" (* "*") (function_declarator "FUN_0021b540(int *param_1,int param_2,undefined4 *param_3)" (identifier "FUN_0021b540") (parameter_list "(int *param_1,int param_2,undefined4 *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  char cVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }\n  else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }\n  cVar1 = FUN_0021a6e0(uVar5,uVar4);\n  if (cVar1 != '\0') {\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }\n  *param_1 = iVar3;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined1 uVar2;" (type_identifier "undefined1") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }\n  else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar6 = param_2 + 4;\nLAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;\n    iVar3 = FUN_00249860(iVar6);\n    uVar5 = *(undefined4 *)(iVar3 + 0x10);\n    uVar4 = *param_3;\n  }" ({ "{") (expression_statement "iVar6 = param_2 + 4;" (assignment_expression "iVar6 = param_2 + 4" (identifier "iVar6") (= "=") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) (; ";")) (labeled_statement "LAB_0021b643:\n    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;" (statement_identifier "LAB_0021b643") (: ":") (if_statement "if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar6)" (( "(") (binary_expression "*(int *)(param_2 + 0xc) == iVar6" (pointer_expression "*(int *)(param_2 + 0xc)" (* "*") (cast_expression "(int *)(param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (identifier "iVar6")) () ")")) (goto_statement "goto joined_r0x0021b5d2;" (goto "goto") (statement_identifier "joined_r0x0021b5d2") (; ";")))) (expression_statement "iVar3 = FUN_00249860(iVar6);" (assignment_expression "iVar3 = FUN_00249860(iVar6)" (identifier "iVar3") (= "=") (call_expression "FUN_00249860(iVar6)" (identifier "FUN_00249860") (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")")))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(iVar3 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(iVar3 + 0x10)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" (identifier "uVar4") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }" (else "else") (compound_statement "{\n    uVar4 = *param_3;\n    iVar3 = *(int *)(param_2 + 8);\n    do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);\n    iVar3 = iVar6;\n    if (cVar1 != '\0') goto LAB_0021b643;\n  }" ({ "{") (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" (identifier "uVar4") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_2 + 8);" (assignment_expression "iVar3 = *(int *)(param_2 + 8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (do_statement "do {\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    } while (iVar3 != 0);" (do "do") (compound_statement "{\n      iVar6 = iVar3;\n      uVar5 = *(undefined4 *)(iVar6 + 0x10);\n      cVar1 = FUN_0021a6e0(uVar4,uVar5);\n      if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }\n    }" ({ "{") (expression_statement "iVar6 = iVar3;" (assignment_expression "iVar6 = iVar3" (identifier "iVar6") (= "=") (identifier "iVar3")) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(iVar6 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(iVar6 + 0x10)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "cVar1 = FUN_0021a6e0(uVar4,uVar5);" (assignment_expression "cVar1 = FUN_0021a6e0(uVar4,uVar5)" (identifier "cVar1") (= "=") (call_expression "FUN_0021a6e0(uVar4,uVar5)" (identifier "FUN_0021a6e0") (argument_list "(uVar4,uVar5)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar5") () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') {\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }\n      else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar3 = *(int *)(iVar6 + 0xc);\n      }" ({ "{") (expression_statement "iVar3 = *(int *)(iVar6 + 0xc);" (assignment_expression "iVar3 = *(int *)(iVar6 + 0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar6 + 0xc)" (* "*") (cast_expression "(int *)(iVar6 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        iVar3 = *(int *)(iVar6 + 8);\n      }" (else "else") (compound_statement "{\n        iVar3 = *(int *)(iVar6 + 8);\n      }" ({ "{") (expression_statement "iVar3 = *(int *)(iVar6 + 8);" (assignment_expression "iVar3 = *(int *)(iVar6 + 8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar6 + 8)" (* "*") (cast_expression "(int *)(iVar6 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar3 = iVar6;" (assignment_expression "iVar3 = iVar6" (identifier "iVar3") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (cVar1 != '\0') goto LAB_0021b643;" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0021b643;" (goto "goto") (statement_identifier "LAB_0021b643") (; ";"))) (} "}")))) (expression_statement "cVar1 = FUN_0021a6e0(uVar5,uVar4);" (assignment_expression "cVar1 = FUN_0021a6e0(uVar5,uVar4)" (identifier "cVar1") (= "=") (call_expression "FUN_0021a6e0(uVar5,uVar4)" (identifier "FUN_0021a6e0") (argument_list "(uVar5,uVar4)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar4") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar3 = 0;\n  }" ({ "{") (if_statement "if (iVar6 != 0) {\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\njoined_r0x0021b5d2:\n      uVar2 = 1;\n      if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }\n      iVar3 = FUN_00246670(0x14);\n      *(undefined4 *)(iVar3 + 0x10) = *param_3;\n      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar3;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" ({ "{") (labeled_statement "joined_r0x0021b5d2:\n      uVar2 = 1;" (statement_identifier "joined_r0x0021b5d2") (: ":") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";"))) (if_statement "if (param_2 + 4 != iVar6) {\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }" (if "if") (parenthesized_expression "(param_2 + 4 != iVar6)" (( "(") (binary_expression "param_2 + 4 != iVar6" (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) (!= "!=") (identifier "iVar6")) () ")")) (compound_statement "{\n        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));\n      }" ({ "{") (expression_statement "uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));" (assignment_expression "uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10))" (identifier "uVar2") (= "=") (call_expression "FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10))" (identifier "FUN_0021a6e0") (argument_list "(*param_3,*(undefined4 *)(iVar6 + 0x10))" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_00246670(0x14);" (assignment_expression "iVar3 = FUN_00246670(0x14)" (identifier "iVar3") (= "=") (call_expression "FUN_00246670(0x14)" (identifier "FUN_00246670") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = *param_3;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = *param_3" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);" (call_expression "FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4)" (identifier "FUN_00249940") (argument_list "(uVar2,iVar3,iVar6,param_2 + 4)" (( "(") (identifier "uVar2") (, ",") (identifier "iVar3") (, ",") (identifier "iVar6") (, ",") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))) (; ";")) (expression_statement "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;" (assignment_expression "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 1) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 1" (pointer_expression "*(undefined1 *)(param_1 + 1)" (* "*") (cast_expression "(undefined1 *)(param_1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(param_1 + 1)" (* "*") (cast_expression "(undefined1 *)(param_1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original name: _M_insert_unique<gold::Cie* const&>
   DWARF original prototype: pair<std::_Rb_tree_iterator<gold::Cie*>,_bool>
   _M_insert_unique<gold::Cie*_const&>(_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>
   * this, Cie * * __v) */

pair<std::_Rb_tree_iterator<gold::Cie*>,_bool> __thiscall
std::
_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>
::_M_insert_unique<gold::Cie*_const&>
          (_Rb_tree<gold::Cie*,_gold::Cie*,_std::_Identity<gold::Cie*>,_gold::Eh_frame::Cie_less,_std::allocator<gold::Cie*>_>
           *this,Cie **__v)

{
}


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

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

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

{
  char cVar1;
  undefined1 uVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  
  if (*(int *)(param_2 + 8) == 0) {
    iVar6 = param_2 + 4;
LAB_0021b643:
    if (*(int *)(param_2 + 0xc) == iVar6) goto joined_r0x0021b5d2;
    iVar3 = FUN_00249860(iVar6);
    uVar5 = *(undefined4 *)(iVar3 + 0x10);
    uVar4 = *param_3;
  }
  else {
    uVar4 = *param_3;
    iVar3 = *(int *)(param_2 + 8);
    do {
      iVar6 = iVar3;
      uVar5 = *(undefined4 *)(iVar6 + 0x10);
      cVar1 = FUN_0021a6e0(uVar4,uVar5);
      if (cVar1 == '\0') {
        iVar3 = *(int *)(iVar6 + 0xc);
      }
      else {
        iVar3 = *(int *)(iVar6 + 8);
      }
    } while (iVar3 != 0);
    iVar3 = iVar6;
    if (cVar1 != '\0') goto LAB_0021b643;
  }
  cVar1 = FUN_0021a6e0(uVar5,uVar4);
  if (cVar1 != '\0') {
    if (iVar6 != 0) {
joined_r0x0021b5d2:
      uVar2 = 1;
      if (param_2 + 4 != iVar6) {
        uVar2 = FUN_0021a6e0(*param_3,*(undefined4 *)(iVar6 + 0x10));
      }
      iVar3 = FUN_00246670(0x14);
      *(undefined4 *)(iVar3 + 0x10) = *param_3;
      FUN_00249940(uVar2,iVar3,iVar6,param_2 + 4);
      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;
      *param_1 = iVar3;
      *(undefined1 *)(param_1 + 1) = 1;
      return param_1;
    }
    iVar3 = 0;
  }
  *param_1 = iVar3;
  *(undefined1 *)(param_1 + 1) = 0;
  return param_1;
}

