
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void add_gnu_property(Layout * this, uint note_type, uint pr_type,
   size_t pr_datasz, uchar * pr_data) */

void __thiscall
gold::Layout::add_gnu_property
          (Layout *this,uint note_type,uint pr_type,size_t pr_datasz,uchar *pr_data)

{
  _Base_ptr *pp_Var1;
  _Base_ptr p_Var2;
  size_t __n;
  _Base_ptr __dest;
  _Base_ptr p_Var3;
  _Base_ptr p_Var4;
  const_iterator __pos;
  bool bVar5;
  _Base_ptr local_30;
  tuple<> local_21;
  _Head_base<0,_unsigned_int_const&,_false> local_20 [3];
  undefined4 uStack_14;
  
  __n = pr_datasz;
  uStack_14 = 0x83669;
  if (note_type != 5) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/layout.cc",0x973,"add_gnu_property");
  }
  __dest = (_Base_ptr)operator_new__(pr_datasz);
  memcpy(__dest,pr_data,__n);
  __pos._M_node = &(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header;
  p_Var2 = (this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;
  p_Var3 = __pos._M_node;
  if (p_Var2 != (_Base_ptr)0x0) {
    do {
      while (p_Var4 = p_Var2, pr_type <= p_Var4[1]._M_color) {
        p_Var2 = p_Var4->_M_left;
        p_Var3 = p_Var4;
        if (p_Var4->_M_left == (_Base_ptr)0x0) goto LAB_000836d5;
      }
      pp_Var1 = &p_Var4->_M_right;
      p_Var2 = *pp_Var1;
      p_Var4 = p_Var3;
    } while (*pp_Var1 != (_Base_ptr)0x0);
LAB_000836d5:
    bVar5 = __pos._M_node != p_Var4;
    __pos._M_node = p_Var4;
    if ((bVar5) && (p_Var4[1]._M_color <= pr_type)) goto LAB_00083716;
  }
  local_20[0]._M_head_impl = &pr_type;
  std::
  _Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Layout::Gnu_property>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>_>
  ::
  _M_emplace_hint_unique<const_std::piecewise_construct_t&,_std::tuple<unsigned_int_const&>,_std::tuple<>_>
            (&(this->gnu_properties_)._M_t,__pos,(piecewise_construct_t *)&std::piecewise_construct,
             (tuple<unsigned_int_const&> *)local_20,&local_21);
  p_Var4 = local_30;
LAB_00083716:
  p_Var4[1]._M_parent = (_Base_ptr)__n;
  p_Var4[1]._M_left = __dest;
  return;
}



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

void __regparm1
FUN_00083660(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)

{
  int *piVar1;
  size_t __n;
  int iVar2;
  void *__dest;
  int iVar3;
  int iVar4;
  int iVar5;
  bool bVar6;
  int local_34;
  undefined1 local_30 [15];
  undefined1 local_21;
  undefined4 *local_20 [3];
  undefined4 uStack_14;
  
  __n = param_5;
  uStack_14 = 0x83669;
  if (param_3 != 5) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);
  }
  __dest = (void *)FUN_0017eb70(param_5);
  memcpy(__dest,param_6,__n);
  iVar5 = param_2 + 0x270;
  iVar2 = *(int *)(param_2 + 0x274);
  iVar3 = iVar5;
  if (*(int *)(param_2 + 0x274) != 0) {
    do {
      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {
        iVar2 = *(int *)(iVar4 + 8);
        iVar3 = iVar4;
        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;
      }
      piVar1 = (int *)(iVar4 + 0xc);
      iVar2 = *piVar1;
      iVar4 = iVar3;
    } while (*piVar1 != 0);
LAB_000836d5:
    bVar6 = iVar5 != iVar4;
    iVar5 = iVar4;
    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;
  }
  local_20[0] = &param_4;
  FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);
  iVar4 = local_34;
LAB_00083716:
  *(size_t *)(iVar4 + 0x14) = __n;
  *(void **)(iVar4 + 0x18) = __dest;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x27e997
SUB ESP,0x2c
CMP dword ptr [ESP + 0x44],0x5
MOV ESI,dword ptr [ESP + 0x4c]
JNZ 0x0008372c
SUB ESP,0xc
PUSH ESI
CALL 0x0017eb70
ADD ESP,0xc
PUSH ESI
MOV EDI,EAX
PUSH dword ptr [ESP + 0x58]
PUSH EAX
CALL 0x000265c0
MOV EAX,dword ptr [ESP + 0x50]
ADD ESP,0x10
LEA ECX,[EAX + 0x270]
MOV EAX,dword ptr [EAX + 0x274]
TEST EAX,EAX
JZ 0x00083728
MOV EBP,dword ptr [ESP + 0x48]
MOV EDX,ECX
JMP 0x000836c9
MOV EDX,EAX
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x000836d5
CMP dword ptr [EAX + 0x10],EBP
JNC 0x000836c0
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JNZ 0x000836c9
CMP ECX,EDX
JZ 0x000836de
CMP EBP,dword ptr [EDX + 0x10]
JNC 0x00083716
LEA EAX,[ESP + 0x48]
LEA ECX,[ESP + 0xc]
SUB ESP,0x8
MOV dword ptr [ESP + 0x24],EAX
LEA EAX,[ESP + 0x23]
PUSH EAX
LEA EAX,[ESP + 0x28]
PUSH EAX
LEA EAX,[EBX + 0xfff22414]
PUSH EAX
PUSH EDX
MOV EAX,dword ptr [ESP + 0x58]
ADD EAX,0x26c
PUSH EAX
PUSH ECX
CALL 0x0008c270
MOV EDX,dword ptr [ESP + 0x28]
ADD ESP,0x1c
MOV dword ptr [EDX + 0x14],ESI
MOV dword ptr [EDX + 0x18],EDI
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,ECX
JMP 0x000836de
PUSH EAX
LEA EAX,[EBX + 0xfff222b8]
PUSH EAX
LEA EAX,[EBX + 0xfff20ef8]
PUSH 0x973
PUSH EAX
CALL 0x0005f0b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm1\nFUN_00083660(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)\n\n{\n  int *piVar1;\n  size_t __n;\n  int iVar2;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  int local_34;\n  undefined1 local_30 [15];\n  undefined1 local_21;\n  undefined4 *local_20 [3];\n  undefined4 uStack_14;\n  \n  __n = param_5;\n  uStack_14 = 0x83669;\n  if (param_3 != 5) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }\n  __dest = (void *)FUN_0017eb70(param_5);\n  memcpy(__dest,param_6,__n);\n  iVar5 = param_2 + 0x270;\n  iVar2 = *(int *)(param_2 + 0x274);\n  iVar3 = iVar5;\n  if (*(int *)(param_2 + 0x274) != 0) {\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }\n  local_20[0] = &param_4;\n  FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);\n  iVar4 = local_34;\nLAB_00083716:\n  *(size_t *)(iVar4 + 0x14) = __n;\n  *(void **)(iVar4 + 0x18) = __dest;\n  return;\n}\n\n" comment (function_definition "void __regparm1\nFUN_00083660(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)\n\n{\n  int *piVar1;\n  size_t __n;\n  int iVar2;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  int local_34;\n  undefined1 local_30 [15];\n  undefined1 local_21;\n  undefined4 *local_20 [3];\n  undefined4 uStack_14;\n  \n  __n = param_5;\n  uStack_14 = 0x83669;\n  if (param_3 != 5) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }\n  __dest = (void *)FUN_0017eb70(param_5);\n  memcpy(__dest,param_6,__n);\n  iVar5 = param_2 + 0x270;\n  iVar2 = *(int *)(param_2 + 0x274);\n  iVar3 = iVar5;\n  if (*(int *)(param_2 + 0x274) != 0) {\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }\n  local_20[0] = &param_4;\n  FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);\n  iVar4 = local_34;\nLAB_00083716:\n  *(size_t *)(iVar4 + 0x14) = __n;\n  *(void **)(iVar4 + 0x18) = __dest;\n  return;\n}" primitive_type (ERROR "__regparm1" identifier) (function_declarator "FUN_00083660(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "size_t param_5" primitive_type identifier) , (parameter_declaration "void *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  size_t __n;\n  int iVar2;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  int local_34;\n  undefined1 local_30 [15];\n  undefined1 local_21;\n  undefined4 *local_20 [3];\n  undefined4 uStack_14;\n  \n  __n = param_5;\n  uStack_14 = 0x83669;\n  if (param_3 != 5) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }\n  __dest = (void *)FUN_0017eb70(param_5);\n  memcpy(__dest,param_6,__n);\n  iVar5 = param_2 + 0x270;\n  iVar2 = *(int *)(param_2 + 0x274);\n  iVar3 = iVar5;\n  if (*(int *)(param_2 + 0x274) != 0) {\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }\n  local_20[0] = &param_4;\n  FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);\n  iVar4 = local_34;\nLAB_00083716:\n  *(size_t *)(iVar4 + 0x14) = __n;\n  *(void **)(iVar4 + 0x18) = __dest;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "undefined1 local_30 [15];" type_identifier (array_declarator "local_30 [15]" identifier [ number_literal ]) ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "undefined4 *local_20 [3];" type_identifier (pointer_declarator "*local_20 [3]" * (array_declarator "local_20 [3]" identifier [ number_literal ])) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "__n = param_5;" (assignment_expression "__n = param_5" identifier = identifier) ;) (expression_statement "uStack_14 = 0x83669;" (assignment_expression "uStack_14 = 0x83669" identifier = number_literal) ;) (if_statement "if (param_3 != 5) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }" if (parenthesized_expression "(param_3 != 5)" ( (binary_expression "param_3 != 5" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }" { comment (expression_statement "FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);" (call_expression "FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1)" identifier (argument_list "("../../gold/layout.cc",0x973,"add_gnu_property",param_1)" ( (string_literal ""../../gold/layout.cc"" " string_content ") , number_literal , (string_literal ""add_gnu_property"" " string_content ") , identifier ))) ;) })) (expression_statement "__dest = (void *)FUN_0017eb70(param_5);" (assignment_expression "__dest = (void *)FUN_0017eb70(param_5)" identifier = (cast_expression "(void *)FUN_0017eb70(param_5)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0017eb70(param_5)" identifier (argument_list "(param_5)" ( identifier ))))) ;) (expression_statement "memcpy(__dest,param_6,__n);" (call_expression "memcpy(__dest,param_6,__n)" identifier (argument_list "(__dest,param_6,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar5 = param_2 + 0x270;" (assignment_expression "iVar5 = param_2 + 0x270" identifier = (binary_expression "param_2 + 0x270" identifier + number_literal)) ;) (expression_statement "iVar2 = *(int *)(param_2 + 0x274);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x274)" identifier = (pointer_expression "*(int *)(param_2 + 0x274)" * (cast_expression "(int *)(param_2 + 0x274)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x274)" ( (binary_expression "param_2 + 0x274" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (if_statement "if (*(int *)(param_2 + 0x274) != 0) {\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x274) != 0)" ( (binary_expression "*(int *)(param_2 + 0x274) != 0" (pointer_expression "*(int *)(param_2 + 0x274)" * (cast_expression "(int *)(param_2 + 0x274)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x274)" ( (binary_expression "param_2 + 0x274" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }" { (do_statement "do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);" do (compound_statement "{\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    }" { (while_statement "while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }" while (parenthesized_expression "(iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10))" ( (comma_expression "iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)" (assignment_expression "iVar4 = iVar2" identifier = identifier) , (binary_expression "param_4 <= *(uint *)(iVar4 + 0x10)" identifier <= (pointer_expression "*(uint *)(iVar4 + 0x10)" * (cast_expression "(uint *)(iVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))))) )) (compound_statement "{\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }" { (expression_statement "iVar2 = *(int *)(iVar4 + 8);" (assignment_expression "iVar2 = *(int *)(iVar4 + 8)" identifier = (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (if_statement "if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;" if (parenthesized_expression "(*(int *)(iVar4 + 8) == 0)" ( (binary_expression "*(int *)(iVar4 + 8) == 0" (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000836d5;" goto statement_identifier ;)) })) (expression_statement "piVar1 = (int *)(iVar4 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar4 + 0xc)" identifier = (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) (labeled_statement "LAB_000836d5:\n    bVar6 = iVar5 != iVar4;" statement_identifier : (expression_statement "bVar6 = iVar5 != iVar4;" (assignment_expression "bVar6 = iVar5 != iVar4" identifier = (binary_expression "iVar5 != iVar4" identifier != identifier)) ;)) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;" if (parenthesized_expression "((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4))" ( (binary_expression "(bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)" (parenthesized_expression "(bVar6)" ( identifier )) && (parenthesized_expression "(*(uint *)(iVar4 + 0x10) <= param_4)" ( (binary_expression "*(uint *)(iVar4 + 0x10) <= param_4" (pointer_expression "*(uint *)(iVar4 + 0x10)" * (cast_expression "(uint *)(iVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) <= identifier) ))) )) (goto_statement "goto LAB_00083716;" goto statement_identifier ;)) })) (expression_statement "local_20[0] = &param_4;" (assignment_expression "local_20[0] = &param_4" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (pointer_expression "&param_4" & identifier)) ;) (expression_statement "FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);" (call_expression "FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21)" identifier (argument_list "(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21)" ( identifier , (binary_expression "param_2 + 0x26c" identifier + number_literal) , identifier , (pointer_expression "&DAT_00224414" & identifier) , identifier , (pointer_expression "&local_21" & identifier) ))) ;) (expression_statement "iVar4 = local_34;" (assignment_expression "iVar4 = local_34" identifier = identifier) ;) (labeled_statement "LAB_00083716:\n  *(size_t *)(iVar4 + 0x14) = __n;" statement_identifier : (expression_statement "*(size_t *)(iVar4 + 0x14) = __n;" (assignment_expression "*(size_t *)(iVar4 + 0x14) = __n" (pointer_expression "*(size_t *)(iVar4 + 0x14)" * (cast_expression "(size_t *)(iVar4 + 0x14)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(void **)(iVar4 + 0x18) = __dest;" (assignment_expression "*(void **)(iVar4 + 0x18) = __dest" (pointer_expression "*(void **)(iVar4 + 0x18)" * (cast_expression "(void **)(iVar4 + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Type propagation algorithm not settling */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void add_gnu_property(Layout * this, uint note_type, uint pr_type,\n   size_t pr_datasz, uchar * pr_data) */\n\nvoid __thiscall\ngold::Layout::add_gnu_property\n          (Layout *this,uint note_type,uint pr_type,size_t pr_datasz,uchar *pr_data)\n\n{\n  _Base_ptr *pp_Var1;\n  _Base_ptr p_Var2;\n  size_t __n;\n  _Base_ptr __dest;\n  _Base_ptr p_Var3;\n  _Base_ptr p_Var4;\n  const_iterator __pos;\n  bool bVar5;\n  _Base_ptr local_30;\n  tuple<> local_21;\n  _Head_base<0,_unsigned_int_const&,_false> local_20 [3];\n  undefined4 uStack_14;\n  \n  __n = pr_datasz;\n  uStack_14 = 0x83669;\n  if (note_type != 5) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/layout.cc",0x973,"add_gnu_property");\n  }\n  __dest = (_Base_ptr)operator_new__(pr_datasz);\n  memcpy(__dest,pr_data,__n);\n  __pos._M_node = &(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header;\n  p_Var2 = (this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;\n  p_Var3 = __pos._M_node;\n  if (p_Var2 != (_Base_ptr)0x0) {\n    do {\n      while (p_Var4 = p_Var2, pr_type <= p_Var4[1]._M_color) {\n        p_Var2 = p_Var4->_M_left;\n        p_Var3 = p_Var4;\n        if (p_Var4->_M_left == (_Base_ptr)0x0) goto LAB_000836d5;\n      }\n      pp_Var1 = &p_Var4->_M_right;\n      p_Var2 = *pp_Var1;\n      p_Var4 = p_Var3;\n    } while (*pp_Var1 != (_Base_ptr)0x0);\nLAB_000836d5:\n    bVar5 = __pos._M_node != p_Var4;\n    __pos._M_node = p_Var4;\n    if ((bVar5) && (p_Var4[1]._M_color <= pr_type)) goto LAB_00083716;\n  }\n  local_20[0]._M_head_impl = &pr_type;\n  std::\n  _Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Layout::Gnu_property>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>_>\n  ::\n  _M_emplace_hint_unique<const_std::piecewise_construct_t&,_std::tuple<unsigned_int_const&>,_std::tuple<>_>\n            (&(this->gnu_properties_)._M_t,__pos,(piecewise_construct_t *)&std::piecewise_construct,\n             (tuple<unsigned_int_const&> *)local_20,&local_21);\n  p_Var4 = local_30;\nLAB_00083716:\n  p_Var4[1]._M_parent = (_Base_ptr)__n;\n  p_Var4[1]._M_left = __dest;\n  return;\n}\n\n" comment comment comment comment (function_definition "void __thiscall\ngold::Layout::add_gnu_property\n          (Layout *this,uint note_type,uint pr_type,size_t pr_datasz,uchar *pr_data)\n\n{\n  _Base_ptr *pp_Var1;\n  _Base_ptr p_Var2;\n  size_t __n;\n  _Base_ptr __dest;\n  _Base_ptr p_Var3;\n  _Base_ptr p_Var4;\n  const_iterator __pos;\n  bool bVar5;\n  _Base_ptr local_30;\n  tuple<> local_21;\n  _Head_base<0,_unsigned_int_const&,_false> local_20 [3];\n  undefined4 uStack_14;\n  \n  __n = pr_datasz;\n  uStack_14 = 0x83669;\n  if (note_type != 5) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/layout.cc",0x973,"add_gnu_property");\n  }\n  __dest = (_Base_ptr)operator_new__(pr_datasz);\n  memcpy(__dest,pr_data,__n);\n  __pos._M_node = &(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header;\n  p_Var2 = (this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;\n  p_Var3 = __pos._M_node;\n  if (p_Var2 != (_Base_ptr)0x0) {\n    do {\n      while (p_Var4 = p_Var2, pr_type <= p_Var4[1]._M_color) {\n        p_Var2 = p_Var4->_M_left;\n        p_Var3 = p_Var4;\n        if (p_Var4->_M_left == (_Base_ptr)0x0) goto LAB_000836d5;\n      }\n      pp_Var1 = &p_Var4->_M_right;\n      p_Var2 = *pp_Var1;\n      p_Var4 = p_Var3;\n    } while (*pp_Var1 != (_Base_ptr)0x0);\nLAB_000836d5:\n    bVar5 = __pos._M_node != p_Var4;\n    __pos._M_node = p_Var4;\n    if ((bVar5) && (p_Var4[1]._M_color <= pr_type)) goto LAB_00083716;\n  }\n  local_20[0]._M_head_impl = &pr_type;\n  std::\n  _Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Layout::Gnu_property>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>_>\n  ::\n  _M_emplace_hint_unique<const_std::piecewise_construct_t&,_std::tuple<unsigned_int_const&>,_std::tuple<>_>\n            (&(this->gnu_properties_)._M_t,__pos,(piecewise_construct_t *)&std::piecewise_construct,\n             (tuple<unsigned_int_const&> *)local_20,&local_21);\n  p_Var4 = local_30;\nLAB_00083716:\n  p_Var4[1]._M_parent = (_Base_ptr)__n;\n  p_Var4[1]._M_left = __dest;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "add_gnu_property\n          (Layout *this,uint note_type,uint pr_type,size_t pr_datasz,uchar *pr_data)" identifier (parameter_list "(Layout *this,uint note_type,uint pr_type,size_t pr_datasz,uchar *pr_data)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint note_type" type_identifier identifier) , (parameter_declaration "uint pr_type" type_identifier identifier) , (parameter_declaration "size_t pr_datasz" primitive_type identifier) , (parameter_declaration "uchar *pr_data" type_identifier (pointer_declarator "*pr_data" * identifier)) ))) (compound_statement "{\n  _Base_ptr *pp_Var1;\n  _Base_ptr p_Var2;\n  size_t __n;\n  _Base_ptr __dest;\n  _Base_ptr p_Var3;\n  _Base_ptr p_Var4;\n  const_iterator __pos;\n  bool bVar5;\n  _Base_ptr local_30;\n  tuple<> local_21;\n  _Head_base<0,_unsigned_int_const&,_false> local_20 [3];\n  undefined4 uStack_14;\n  \n  __n = pr_datasz;\n  uStack_14 = 0x83669;\n  if (note_type != 5) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/layout.cc",0x973,"add_gnu_property");\n  }\n  __dest = (_Base_ptr)operator_new__(pr_datasz);\n  memcpy(__dest,pr_data,__n);\n  __pos._M_node = &(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header;\n  p_Var2 = (this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;\n  p_Var3 = __pos._M_node;\n  if (p_Var2 != (_Base_ptr)0x0) {\n    do {\n      while (p_Var4 = p_Var2, pr_type <= p_Var4[1]._M_color) {\n        p_Var2 = p_Var4->_M_left;\n        p_Var3 = p_Var4;\n        if (p_Var4->_M_left == (_Base_ptr)0x0) goto LAB_000836d5;\n      }\n      pp_Var1 = &p_Var4->_M_right;\n      p_Var2 = *pp_Var1;\n      p_Var4 = p_Var3;\n    } while (*pp_Var1 != (_Base_ptr)0x0);\nLAB_000836d5:\n    bVar5 = __pos._M_node != p_Var4;\n    __pos._M_node = p_Var4;\n    if ((bVar5) && (p_Var4[1]._M_color <= pr_type)) goto LAB_00083716;\n  }\n  local_20[0]._M_head_impl = &pr_type;\n  std::\n  _Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Layout::Gnu_property>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>_>\n  ::\n  _M_emplace_hint_unique<const_std::piecewise_construct_t&,_std::tuple<unsigned_int_const&>,_std::tuple<>_>\n            (&(this->gnu_properties_)._M_t,__pos,(piecewise_construct_t *)&std::piecewise_construct,\n             (tuple<unsigned_int_const&> *)local_20,&local_21);\n  p_Var4 = local_30;\nLAB_00083716:\n  p_Var4[1]._M_parent = (_Base_ptr)__n;\n  p_Var4[1]._M_left = __dest;\n  return;\n}" { (declaration "_Base_ptr *pp_Var1;" type_identifier (pointer_declarator "*pp_Var1" * identifier) ;) (declaration "_Base_ptr p_Var2;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "_Base_ptr __dest;" type_identifier identifier ;) (declaration "_Base_ptr p_Var3;" type_identifier identifier ;) (declaration "_Base_ptr p_Var4;" type_identifier identifier ;) (declaration "const_iterator __pos;" type_identifier identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "_Base_ptr local_30;" type_identifier identifier ;) (expression_statement "tuple<> local_21;" (binary_expression "tuple<> local_21" identifier < (ERROR ">" >) identifier) ;) (expression_statement "_Head_base<0,_unsigned_int_const&,_false> local_20 [3];" (comma_expression "_Head_base<0,_unsigned_int_const&,_false> local_20 [3]" (binary_expression "_Head_base<0" identifier < number_literal) , (binary_expression "_unsigned_int_const&,_false> local_20 [3]" identifier & (ERROR "," ,) (binary_expression "_false> local_20 [3]" identifier > (subscript_expression "local_20 [3]" identifier [ number_literal ])))) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "__n = pr_datasz;" (assignment_expression "__n = pr_datasz" identifier = identifier) ;) (expression_statement "uStack_14 = 0x83669;" (assignment_expression "uStack_14 = 0x83669" identifier = number_literal) ;) (if_statement "if (note_type != 5) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/layout.cc",0x973,"add_gnu_property");\n  }" if (parenthesized_expression "(note_type != 5)" ( (binary_expression "note_type != 5" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/layout.cc",0x973,"add_gnu_property");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/layout.cc",0x973,"add_gnu_property");" (call_expression "do_gold_unreachable("../../gold/layout.cc",0x973,"add_gnu_property")" identifier (argument_list "("../../gold/layout.cc",0x973,"add_gnu_property")" ( (string_literal ""../../gold/layout.cc"" " string_content ") , number_literal , (string_literal ""add_gnu_property"" " string_content ") ))) ;) })) (expression_statement "__dest = (_Base_ptr)operator_new__(pr_datasz);" (assignment_expression "__dest = (_Base_ptr)operator_new__(pr_datasz)" identifier = (cast_expression "(_Base_ptr)operator_new__(pr_datasz)" ( (type_descriptor "_Base_ptr" type_identifier) ) (call_expression "operator_new__(pr_datasz)" identifier (argument_list "(pr_datasz)" ( identifier ))))) ;) (expression_statement "memcpy(__dest,pr_data,__n);" (call_expression "memcpy(__dest,pr_data,__n)" identifier (argument_list "(__dest,pr_data,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__pos._M_node = &(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header;" (assignment_expression "__pos._M_node = &(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header" (field_expression "__pos._M_node" identifier . field_identifier) = (pointer_expression "&(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header" & (field_expression "(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header" (field_expression "(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header" (field_expression "(this->gnu_properties_)._M_t._M_impl" (field_expression "(this->gnu_properties_)._M_t" (parenthesized_expression "(this->gnu_properties_)" ( (field_expression "this->gnu_properties_" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) . field_identifier))) ;) (expression_statement "p_Var2 = (this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;" (assignment_expression "p_Var2 = (this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent" identifier = (field_expression "(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent" (field_expression "(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header" (field_expression "(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header" (field_expression "(this->gnu_properties_)._M_t._M_impl" (field_expression "(this->gnu_properties_)._M_t" (parenthesized_expression "(this->gnu_properties_)" ( (field_expression "this->gnu_properties_" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) . field_identifier) . field_identifier)) ;) (expression_statement "p_Var3 = __pos._M_node;" (assignment_expression "p_Var3 = __pos._M_node" identifier = (field_expression "__pos._M_node" identifier . field_identifier)) ;) (if_statement "if (p_Var2 != (_Base_ptr)0x0) {\n    do {\n      while (p_Var4 = p_Var2, pr_type <= p_Var4[1]._M_color) {\n        p_Var2 = p_Var4->_M_left;\n        p_Var3 = p_Var4;\n        if (p_Var4->_M_left == (_Base_ptr)0x0) goto LAB_000836d5;\n      }\n      pp_Var1 = &p_Var4->_M_right;\n      p_Var2 = *pp_Var1;\n      p_Var4 = p_Var3;\n    } while (*pp_Var1 != (_Base_ptr)0x0);\nLAB_000836d5:\n    bVar5 = __pos._M_node != p_Var4;\n    __pos._M_node = p_Var4;\n    if ((bVar5) && (p_Var4[1]._M_color <= pr_type)) goto LAB_00083716;\n  }" if (parenthesized_expression "(p_Var2 != (_Base_ptr)0x0)" ( (binary_expression "p_Var2 != (_Base_ptr)0x0" identifier != (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) )) (compound_statement "{\n    do {\n      while (p_Var4 = p_Var2, pr_type <= p_Var4[1]._M_color) {\n        p_Var2 = p_Var4->_M_left;\n        p_Var3 = p_Var4;\n        if (p_Var4->_M_left == (_Base_ptr)0x0) goto LAB_000836d5;\n      }\n      pp_Var1 = &p_Var4->_M_right;\n      p_Var2 = *pp_Var1;\n      p_Var4 = p_Var3;\n    } while (*pp_Var1 != (_Base_ptr)0x0);\nLAB_000836d5:\n    bVar5 = __pos._M_node != p_Var4;\n    __pos._M_node = p_Var4;\n    if ((bVar5) && (p_Var4[1]._M_color <= pr_type)) goto LAB_00083716;\n  }" { (do_statement "do {\n      while (p_Var4 = p_Var2, pr_type <= p_Var4[1]._M_color) {\n        p_Var2 = p_Var4->_M_left;\n        p_Var3 = p_Var4;\n        if (p_Var4->_M_left == (_Base_ptr)0x0) goto LAB_000836d5;\n      }\n      pp_Var1 = &p_Var4->_M_right;\n      p_Var2 = *pp_Var1;\n      p_Var4 = p_Var3;\n    } while (*pp_Var1 != (_Base_ptr)0x0);" do (compound_statement "{\n      while (p_Var4 = p_Var2, pr_type <= p_Var4[1]._M_color) {\n        p_Var2 = p_Var4->_M_left;\n        p_Var3 = p_Var4;\n        if (p_Var4->_M_left == (_Base_ptr)0x0) goto LAB_000836d5;\n      }\n      pp_Var1 = &p_Var4->_M_right;\n      p_Var2 = *pp_Var1;\n      p_Var4 = p_Var3;\n    }" { (while_statement "while (p_Var4 = p_Var2, pr_type <= p_Var4[1]._M_color) {\n        p_Var2 = p_Var4->_M_left;\n        p_Var3 = p_Var4;\n        if (p_Var4->_M_left == (_Base_ptr)0x0) goto LAB_000836d5;\n      }" while (parenthesized_expression "(p_Var4 = p_Var2, pr_type <= p_Var4[1]._M_color)" ( (comma_expression "p_Var4 = p_Var2, pr_type <= p_Var4[1]._M_color" (assignment_expression "p_Var4 = p_Var2" identifier = identifier) , (binary_expression "pr_type <= p_Var4[1]._M_color" identifier <= (field_expression "p_Var4[1]._M_color" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier))) )) (compound_statement "{\n        p_Var2 = p_Var4->_M_left;\n        p_Var3 = p_Var4;\n        if (p_Var4->_M_left == (_Base_ptr)0x0) goto LAB_000836d5;\n      }" { (expression_statement "p_Var2 = p_Var4->_M_left;" (assignment_expression "p_Var2 = p_Var4->_M_left" identifier = (field_expression "p_Var4->_M_left" identifier -> field_identifier)) ;) (expression_statement "p_Var3 = p_Var4;" (assignment_expression "p_Var3 = p_Var4" identifier = identifier) ;) (if_statement "if (p_Var4->_M_left == (_Base_ptr)0x0) goto LAB_000836d5;" if (parenthesized_expression "(p_Var4->_M_left == (_Base_ptr)0x0)" ( (binary_expression "p_Var4->_M_left == (_Base_ptr)0x0" (field_expression "p_Var4->_M_left" identifier -> field_identifier) == (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_000836d5;" goto statement_identifier ;)) })) (expression_statement "pp_Var1 = &p_Var4->_M_right;" (assignment_expression "pp_Var1 = &p_Var4->_M_right" identifier = (pointer_expression "&p_Var4->_M_right" & (field_expression "p_Var4->_M_right" identifier -> field_identifier))) ;) (expression_statement "p_Var2 = *pp_Var1;" (assignment_expression "p_Var2 = *pp_Var1" identifier = (pointer_expression "*pp_Var1" * identifier)) ;) (expression_statement "p_Var4 = p_Var3;" (assignment_expression "p_Var4 = p_Var3" identifier = identifier) ;) }) while (parenthesized_expression "(*pp_Var1 != (_Base_ptr)0x0)" ( (binary_expression "*pp_Var1 != (_Base_ptr)0x0" (pointer_expression "*pp_Var1" * identifier) != (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) )) ;) (labeled_statement "LAB_000836d5:\n    bVar5 = __pos._M_node != p_Var4;" statement_identifier : (expression_statement "bVar5 = __pos._M_node != p_Var4;" (assignment_expression "bVar5 = __pos._M_node != p_Var4" identifier = (binary_expression "__pos._M_node != p_Var4" (field_expression "__pos._M_node" identifier . field_identifier) != identifier)) ;)) (expression_statement "__pos._M_node = p_Var4;" (assignment_expression "__pos._M_node = p_Var4" (field_expression "__pos._M_node" identifier . field_identifier) = identifier) ;) (if_statement "if ((bVar5) && (p_Var4[1]._M_color <= pr_type)) goto LAB_00083716;" if (parenthesized_expression "((bVar5) && (p_Var4[1]._M_color <= pr_type))" ( (binary_expression "(bVar5) && (p_Var4[1]._M_color <= pr_type)" (parenthesized_expression "(bVar5)" ( identifier )) && (parenthesized_expression "(p_Var4[1]._M_color <= pr_type)" ( (binary_expression "p_Var4[1]._M_color <= pr_type" (field_expression "p_Var4[1]._M_color" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier) <= identifier) ))) )) (goto_statement "goto LAB_00083716;" goto statement_identifier ;)) })) (expression_statement "local_20[0]._M_head_impl = &pr_type;" (assignment_expression "local_20[0]._M_head_impl = &pr_type" (field_expression "local_20[0]._M_head_impl" (subscript_expression "local_20[0]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "&pr_type" & identifier)) ;) (ERROR "std::\n  _Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Layout::Gnu_property>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>_>\n  ::\n  _M_emplace_hint_unique<const_std::piecewise_construct_t&,_std::tuple<unsigned_int_const&>,_std::" (comma_expression "std::\n  _Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Layout::Gnu_property>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>,_std::less<unsigned_int>,_std" identifier (ERROR "::\n  _Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Layout::Gnu_property>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Layout::Gnu_property>_>,_std::less<unsigned_int>" : : (comma_expression "_Rb_tree<unsigned_int,_std" (binary_expression "_Rb_tree<unsigned_int" identifier < identifier) , identifier) : : (comma_expression "pair<unsigned_int_const,_gold" (binary_expression "pair<unsigned_int_const" identifier < identifier) , identifier) : : (comma_expression "Layout::Gnu_property>,_std" identifier (ERROR "::Gnu_property>" : : identifier >) , identifier) : : (binary_expression "_Select1st<std" identifier < identifier) : : (comma_expression "pair<unsigned_int_const,_gold" (binary_expression "pair<unsigned_int_const" identifier < identifier) , identifier) : : (comma_expression "Layout::Gnu_property>_>,_std" identifier (ERROR "::Gnu_property>_>" : : (binary_expression "Gnu_property>_" identifier > identifier) >) , identifier) : : (binary_expression "less<unsigned_int" identifier < identifier) >) , identifier) : : identifier < identifier : : (comma_expression "pair<unsigned_int_const,_gold" (binary_expression "pair<unsigned_int_const" identifier < identifier) , identifier) : : (comma_expression "Layout::Gnu_property>_>_>\n  ::\n  _M_emplace_hint_unique<const_std::piecewise_construct_t&,_std" identifier (ERROR "::Gnu_property>_>_>\n  ::\n  _M_emplace_hint_unique<const_std::piecewise_construct_t&" : : (binary_expression "Gnu_property>_>_" (binary_expression "Gnu_property>_" identifier > identifier) > identifier) > : : (binary_expression "_M_emplace_hint_unique<const_std" identifier < identifier) : : identifier &) , identifier) : : (comma_expression "tuple<unsigned_int_const&>,_std" (binary_expression "tuple<unsigned_int_const" identifier < identifier) (ERROR "&>" & >) , identifier) : :) (expression_statement "tuple<>_>\n            (&(this->gnu_properties_)._M_t,__pos,(piecewise_construct_t *)&std::piecewise_construct,\n             (tuple<unsigned_int_const&> *)local_20,&local_21);" (binary_expression "tuple<>_>\n            (&(this->gnu_properties_)._M_t,__pos,(piecewise_construct_t *)&std::piecewise_construct,\n             (tuple<unsigned_int_const&> *)local_20,&local_21)" (binary_expression "tuple<>_" identifier < (ERROR ">" >) identifier) > (parenthesized_expression "(&(this->gnu_properties_)._M_t,__pos,(piecewise_construct_t *)&std::piecewise_construct,\n             (tuple<unsigned_int_const&> *)local_20,&local_21)" ( (ERROR "&(this->gnu_properties_)._M_t,__pos,(piecewise_construct_t *)&std::" (comma_expression "&(this->gnu_properties_)._M_t,__pos,(piecewise_construct_t *)&std" (pointer_expression "&(this->gnu_properties_)._M_t" & (field_expression "(this->gnu_properties_)._M_t" (parenthesized_expression "(this->gnu_properties_)" ( (field_expression "this->gnu_properties_" identifier -> field_identifier) )) . field_identifier)) , (comma_expression "__pos,(piecewise_construct_t *)&std" identifier , (cast_expression "(piecewise_construct_t *)&std" ( (type_descriptor "piecewise_construct_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&std" & identifier)))) : :) (comma_expression "piecewise_construct,\n             (tuple<unsigned_int_const&> *)local_20,&local_21)" identifier , (parenthesized_expression "(tuple<unsigned_int_const&> *)local_20,&local_21)" ( (comma_expression "tuple<unsigned_int_const&> *)local_20,&local_21" (binary_expression "tuple<unsigned_int_const&> *)local_20" (binary_expression "tuple<unsigned_int_const" identifier < identifier) (ERROR "&" &) > (pointer_expression "*)local_20" * (ERROR ")" )) identifier)) , (pointer_expression "&local_21" & identifier)) ))) ))) ;) (expression_statement "p_Var4 = local_30;" (assignment_expression "p_Var4 = local_30" identifier = identifier) ;) (labeled_statement "LAB_00083716:\n  p_Var4[1]._M_parent = (_Base_ptr)__n;" statement_identifier : (expression_statement "p_Var4[1]._M_parent = (_Base_ptr)__n;" (assignment_expression "p_Var4[1]._M_parent = (_Base_ptr)__n" (field_expression "p_Var4[1]._M_parent" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(_Base_ptr)__n" ( (type_descriptor "_Base_ptr" type_identifier) ) identifier)) ;)) (expression_statement "p_Var4[1]._M_left = __dest;" (assignment_expression "p_Var4[1]._M_left = __dest" (field_expression "p_Var4[1]._M_left" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm1\nFUN_00083660(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)\n\n{\n  int *piVar1;\n  size_t __n;\n  int iVar2;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  int local_34;\n  undefined1 local_30 [15];\n  undefined1 local_21;\n  undefined4 *local_20 [3];\n  undefined4 uStack_14;\n  \n  __n = param_5;\n  uStack_14 = 0x83669;\n  if (param_3 != 5) {\n                    \n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }\n  __dest = (void *)FUN_0017eb70(param_5);\n  memcpy(__dest,param_6,__n);\n  iVar5 = param_2 + 0x270;\n  iVar2 = *(int *)(param_2 + 0x274);\n  iVar3 = iVar5;\n  if (*(int *)(param_2 + 0x274) != 0) {\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }\n  local_20[0] = &param_4;\n  FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);\n  iVar4 = local_34;\nLAB_00083716:\n  *(size_t *)(iVar4 + 0x14) = __n;\n  *(void **)(iVar4 + 0x18) = __dest;\n  return;\n}\n\n" (function_definition "void __regparm1\nFUN_00083660(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)\n\n{\n  int *piVar1;\n  size_t __n;\n  int iVar2;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  int local_34;\n  undefined1 local_30 [15];\n  undefined1 local_21;\n  undefined4 *local_20 [3];\n  undefined4 uStack_14;\n  \n  __n = param_5;\n  uStack_14 = 0x83669;\n  if (param_3 != 5) {\n                    \n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }\n  __dest = (void *)FUN_0017eb70(param_5);\n  memcpy(__dest,param_6,__n);\n  iVar5 = param_2 + 0x270;\n  iVar2 = *(int *)(param_2 + 0x274);\n  iVar3 = iVar5;\n  if (*(int *)(param_2 + 0x274) != 0) {\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }\n  local_20[0] = &param_4;\n  FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);\n  iVar4 = local_34;\nLAB_00083716:\n  *(size_t *)(iVar4 + 0x14) = __n;\n  *(void **)(iVar4 + 0x18) = __dest;\n  return;\n}" primitive_type (ERROR "__regparm1" identifier) (function_declarator "FUN_00083660(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "size_t param_5" primitive_type identifier) , (parameter_declaration "void *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  size_t __n;\n  int iVar2;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  int local_34;\n  undefined1 local_30 [15];\n  undefined1 local_21;\n  undefined4 *local_20 [3];\n  undefined4 uStack_14;\n  \n  __n = param_5;\n  uStack_14 = 0x83669;\n  if (param_3 != 5) {\n                    \n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }\n  __dest = (void *)FUN_0017eb70(param_5);\n  memcpy(__dest,param_6,__n);\n  iVar5 = param_2 + 0x270;\n  iVar2 = *(int *)(param_2 + 0x274);\n  iVar3 = iVar5;\n  if (*(int *)(param_2 + 0x274) != 0) {\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }\n  local_20[0] = &param_4;\n  FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);\n  iVar4 = local_34;\nLAB_00083716:\n  *(size_t *)(iVar4 + 0x14) = __n;\n  *(void **)(iVar4 + 0x18) = __dest;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "undefined1 local_30 [15];" type_identifier (array_declarator "local_30 [15]" identifier [ number_literal ]) ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "undefined4 *local_20 [3];" type_identifier (pointer_declarator "*local_20 [3]" * (array_declarator "local_20 [3]" identifier [ number_literal ])) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "__n = param_5;" (assignment_expression "__n = param_5" identifier = identifier) ;) (expression_statement "uStack_14 = 0x83669;" (assignment_expression "uStack_14 = 0x83669" identifier = number_literal) ;) (if_statement "if (param_3 != 5) {\n                    \n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }" if (parenthesized_expression "(param_3 != 5)" ( (binary_expression "param_3 != 5" identifier != number_literal) )) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }" { (expression_statement "FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);" (call_expression "FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1)" identifier (argument_list "("../../gold/layout.cc",0x973,"add_gnu_property",param_1)" ( (string_literal ""../../gold/layout.cc"" " string_content ") , number_literal , (string_literal ""add_gnu_property"" " string_content ") , identifier ))) ;) })) (expression_statement "__dest = (void *)FUN_0017eb70(param_5);" (assignment_expression "__dest = (void *)FUN_0017eb70(param_5)" identifier = (cast_expression "(void *)FUN_0017eb70(param_5)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0017eb70(param_5)" identifier (argument_list "(param_5)" ( identifier ))))) ;) (expression_statement "memcpy(__dest,param_6,__n);" (call_expression "memcpy(__dest,param_6,__n)" identifier (argument_list "(__dest,param_6,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar5 = param_2 + 0x270;" (assignment_expression "iVar5 = param_2 + 0x270" identifier = (binary_expression "param_2 + 0x270" identifier + number_literal)) ;) (expression_statement "iVar2 = *(int *)(param_2 + 0x274);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x274)" identifier = (pointer_expression "*(int *)(param_2 + 0x274)" * (cast_expression "(int *)(param_2 + 0x274)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x274)" ( (binary_expression "param_2 + 0x274" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (if_statement "if (*(int *)(param_2 + 0x274) != 0) {\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x274) != 0)" ( (binary_expression "*(int *)(param_2 + 0x274) != 0" (pointer_expression "*(int *)(param_2 + 0x274)" * (cast_expression "(int *)(param_2 + 0x274)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x274)" ( (binary_expression "param_2 + 0x274" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }" { (do_statement "do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);" do (compound_statement "{\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    }" { (while_statement "while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }" while (parenthesized_expression "(iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10))" ( (comma_expression "iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)" (assignment_expression "iVar4 = iVar2" identifier = identifier) , (binary_expression "param_4 <= *(uint *)(iVar4 + 0x10)" identifier <= (pointer_expression "*(uint *)(iVar4 + 0x10)" * (cast_expression "(uint *)(iVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))))) )) (compound_statement "{\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }" { (expression_statement "iVar2 = *(int *)(iVar4 + 8);" (assignment_expression "iVar2 = *(int *)(iVar4 + 8)" identifier = (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (if_statement "if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;" if (parenthesized_expression "(*(int *)(iVar4 + 8) == 0)" ( (binary_expression "*(int *)(iVar4 + 8) == 0" (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000836d5;" goto statement_identifier ;)) })) (expression_statement "piVar1 = (int *)(iVar4 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar4 + 0xc)" identifier = (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) (labeled_statement "LAB_000836d5:\n    bVar6 = iVar5 != iVar4;" statement_identifier : (expression_statement "bVar6 = iVar5 != iVar4;" (assignment_expression "bVar6 = iVar5 != iVar4" identifier = (binary_expression "iVar5 != iVar4" identifier != identifier)) ;)) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;" if (parenthesized_expression "((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4))" ( (binary_expression "(bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)" (parenthesized_expression "(bVar6)" ( identifier )) && (parenthesized_expression "(*(uint *)(iVar4 + 0x10) <= param_4)" ( (binary_expression "*(uint *)(iVar4 + 0x10) <= param_4" (pointer_expression "*(uint *)(iVar4 + 0x10)" * (cast_expression "(uint *)(iVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) <= identifier) ))) )) (goto_statement "goto LAB_00083716;" goto statement_identifier ;)) })) (expression_statement "local_20[0] = &param_4;" (assignment_expression "local_20[0] = &param_4" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (pointer_expression "&param_4" & identifier)) ;) (expression_statement "FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);" (call_expression "FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21)" identifier (argument_list "(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21)" ( identifier , (binary_expression "param_2 + 0x26c" identifier + number_literal) , identifier , (pointer_expression "&DAT_00224414" & identifier) , identifier , (pointer_expression "&local_21" & identifier) ))) ;) (expression_statement "iVar4 = local_34;" (assignment_expression "iVar4 = local_34" identifier = identifier) ;) (labeled_statement "LAB_00083716:\n  *(size_t *)(iVar4 + 0x14) = __n;" statement_identifier : (expression_statement "*(size_t *)(iVar4 + 0x14) = __n;" (assignment_expression "*(size_t *)(iVar4 + 0x14) = __n" (pointer_expression "*(size_t *)(iVar4 + 0x14)" * (cast_expression "(size_t *)(iVar4 + 0x14)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(void **)(iVar4 + 0x18) = __dest;" (assignment_expression "*(void **)(iVar4 + 0x18) = __dest" (pointer_expression "*(void **)(iVar4 + 0x18)" * (cast_expression "(void **)(iVar4 + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (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 IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = 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 { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (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 = 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) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT != IDENT)) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( IDENT )) && (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 (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , (pointer_expression & IDENT) , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm1\nFUN_00083660(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)\n\n{\n  int *piVar1;\n  size_t __n;\n  int iVar2;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  int local_34;\n  undefined1 local_30 [15];\n  undefined1 local_21;\n  undefined4 *local_20 [3];\n  undefined4 uStack_14;\n  \n  __n = param_5;\n  uStack_14 = 0x83669;\n  if (param_3 != 5) {\n                    \n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }\n  __dest = (void *)FUN_0017eb70(param_5);\n  memcpy(__dest,param_6,__n);\n  iVar5 = param_2 + 0x270;\n  iVar2 = *(int *)(param_2 + 0x274);\n  iVar3 = iVar5;\n  if (*(int *)(param_2 + 0x274) != 0) {\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }\n  local_20[0] = &param_4;\n  FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);\n  iVar4 = local_34;\nLAB_00083716:\n  *(size_t *)(iVar4 + 0x14) = __n;\n  *(void **)(iVar4 + 0x18) = __dest;\n  return;\n}" (primitive_type "void") (ERROR "__regparm1" (identifier "__regparm1")) (function_declarator "FUN_00083660(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)" (identifier "FUN_00083660") (parameter_list "(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (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")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "size_t param_5" (primitive_type "size_t") (identifier "param_5")) (, ",") (parameter_declaration "void *param_6" (primitive_type "void") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  size_t __n;\n  int iVar2;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  int local_34;\n  undefined1 local_30 [15];\n  undefined1 local_21;\n  undefined4 *local_20 [3];\n  undefined4 uStack_14;\n  \n  __n = param_5;\n  uStack_14 = 0x83669;\n  if (param_3 != 5) {\n                    \n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }\n  __dest = (void *)FUN_0017eb70(param_5);\n  memcpy(__dest,param_6,__n);\n  iVar5 = param_2 + 0x270;\n  iVar2 = *(int *)(param_2 + 0x274);\n  iVar3 = iVar5;\n  if (*(int *)(param_2 + 0x274) != 0) {\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }\n  local_20[0] = &param_4;\n  FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);\n  iVar4 = local_34;\nLAB_00083716:\n  *(size_t *)(iVar4 + 0x14) = __n;\n  *(void **)(iVar4 + 0x18) = __dest;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "undefined1 local_30 [15];" (type_identifier "undefined1") (array_declarator "local_30 [15]" (identifier "local_30") ([ "[") (number_literal "15") (] "]")) (; ";")) (declaration "undefined1 local_21;" (type_identifier "undefined1") (identifier "local_21") (; ";")) (declaration "undefined4 *local_20 [3];" (type_identifier "undefined4") (pointer_declarator "*local_20 [3]" (* "*") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]"))) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "__n = param_5;" (assignment_expression "__n = param_5" (identifier "__n") (= "=") (identifier "param_5")) (; ";")) (expression_statement "uStack_14 = 0x83669;" (assignment_expression "uStack_14 = 0x83669" (identifier "uStack_14") (= "=") (number_literal "0x83669")) (; ";")) (if_statement "if (param_3 != 5) {\n                    \n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }" (if "if") (parenthesized_expression "(param_3 != 5)" (( "(") (binary_expression "param_3 != 5" (identifier "param_3") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);\n  }" ({ "{") (expression_statement "FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);" (call_expression "FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/layout.cc",0x973,"add_gnu_property",param_1)" (( "(") (string_literal ""../../gold/layout.cc"" (" """) (string_content "../../gold/layout.cc") (" """)) (, ",") (number_literal "0x973") (, ",") (string_literal ""add_gnu_property"" (" """) (string_content "add_gnu_property") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "__dest = (void *)FUN_0017eb70(param_5);" (assignment_expression "__dest = (void *)FUN_0017eb70(param_5)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_0017eb70(param_5)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0017eb70(param_5)" (identifier "FUN_0017eb70") (argument_list "(param_5)" (( "(") (identifier "param_5") () ")"))))) (; ";")) (expression_statement "memcpy(__dest,param_6,__n);" (call_expression "memcpy(__dest,param_6,__n)" (identifier "memcpy") (argument_list "(__dest,param_6,__n)" (( "(") (identifier "__dest") (, ",") (identifier "param_6") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "iVar5 = param_2 + 0x270;" (assignment_expression "iVar5 = param_2 + 0x270" (identifier "iVar5") (= "=") (binary_expression "param_2 + 0x270" (identifier "param_2") (+ "+") (number_literal "0x270"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_2 + 0x274);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x274)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_2 + 0x274)" (* "*") (cast_expression "(int *)(param_2 + 0x274)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x274)" (( "(") (binary_expression "param_2 + 0x274" (identifier "param_2") (+ "+") (number_literal "0x274")) () ")"))))) (; ";")) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" (identifier "iVar3") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (*(int *)(param_2 + 0x274) != 0) {\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x274) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x274) != 0" (pointer_expression "*(int *)(param_2 + 0x274)" (* "*") (cast_expression "(int *)(param_2 + 0x274)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x274)" (( "(") (binary_expression "param_2 + 0x274" (identifier "param_2") (+ "+") (number_literal "0x274")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);\nLAB_000836d5:\n    bVar6 = iVar5 != iVar4;\n    iVar5 = iVar4;\n    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;\n  }" ({ "{") (do_statement "do {\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    } while (*piVar1 != 0);" (do "do") (compound_statement "{\n      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }\n      piVar1 = (int *)(iVar4 + 0xc);\n      iVar2 = *piVar1;\n      iVar4 = iVar3;\n    }" ({ "{") (while_statement "while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }" (while "while") (parenthesized_expression "(iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10))" (( "(") (comma_expression "iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)" (assignment_expression "iVar4 = iVar2" (identifier "iVar4") (= "=") (identifier "iVar2")) (, ",") (binary_expression "param_4 <= *(uint *)(iVar4 + 0x10)" (identifier "param_4") (<= "<=") (pointer_expression "*(uint *)(iVar4 + 0x10)" (* "*") (cast_expression "(uint *)(iVar4 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")")))))) () ")")) (compound_statement "{\n        iVar2 = *(int *)(iVar4 + 8);\n        iVar3 = iVar4;\n        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;\n      }" ({ "{") (expression_statement "iVar2 = *(int *)(iVar4 + 8);" (assignment_expression "iVar2 = *(int *)(iVar4 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar4 + 8)" (* "*") (cast_expression "(int *)(iVar4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" (identifier "iVar3") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;" (if "if") (parenthesized_expression "(*(int *)(iVar4 + 8) == 0)" (( "(") (binary_expression "*(int *)(iVar4 + 8) == 0" (pointer_expression "*(int *)(iVar4 + 8)" (* "*") (cast_expression "(int *)(iVar4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000836d5;" (goto "goto") (statement_identifier "LAB_000836d5") (; ";"))) (} "}"))) (expression_statement "piVar1 = (int *)(iVar4 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar4 + 0xc)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (labeled_statement "LAB_000836d5:\n    bVar6 = iVar5 != iVar4;" (statement_identifier "LAB_000836d5") (: ":") (expression_statement "bVar6 = iVar5 != iVar4;" (assignment_expression "bVar6 = iVar5 != iVar4" (identifier "bVar6") (= "=") (binary_expression "iVar5 != iVar4" (identifier "iVar5") (!= "!=") (identifier "iVar4"))) (; ";"))) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;" (if "if") (parenthesized_expression "((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4))" (( "(") (binary_expression "(bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)" (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (&& "&&") (parenthesized_expression "(*(uint *)(iVar4 + 0x10) <= param_4)" (( "(") (binary_expression "*(uint *)(iVar4 + 0x10) <= param_4" (pointer_expression "*(uint *)(iVar4 + 0x10)" (* "*") (cast_expression "(uint *)(iVar4 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")")))) (<= "<=") (identifier "param_4")) () ")"))) () ")")) (goto_statement "goto LAB_00083716;" (goto "goto") (statement_identifier "LAB_00083716") (; ";"))) (} "}"))) (expression_statement "local_20[0] = &param_4;" (assignment_expression "local_20[0] = &param_4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "&param_4" (& "&") (identifier "param_4"))) (; ";")) (expression_statement "FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);" (call_expression "FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21)" (identifier "FUN_0008c270") (argument_list "(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21)" (( "(") (identifier "local_30") (, ",") (binary_expression "param_2 + 0x26c" (identifier "param_2") (+ "+") (number_literal "0x26c")) (, ",") (identifier "iVar5") (, ",") (pointer_expression "&DAT_00224414" (& "&") (identifier "DAT_00224414")) (, ",") (identifier "local_20") (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) () ")"))) (; ";")) (expression_statement "iVar4 = local_34;" (assignment_expression "iVar4 = local_34" (identifier "iVar4") (= "=") (identifier "local_34")) (; ";")) (labeled_statement "LAB_00083716:\n  *(size_t *)(iVar4 + 0x14) = __n;" (statement_identifier "LAB_00083716") (: ":") (expression_statement "*(size_t *)(iVar4 + 0x14) = __n;" (assignment_expression "*(size_t *)(iVar4 + 0x14) = __n" (pointer_expression "*(size_t *)(iVar4 + 0x14)" (* "*") (cast_expression "(size_t *)(iVar4 + 0x14)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "__n")) (; ";"))) (expression_statement "*(void **)(iVar4 + 0x18) = __dest;" (assignment_expression "*(void **)(iVar4 + 0x18) = __dest" (pointer_expression "*(void **)(iVar4 + 0x18)" (* "*") (cast_expression "(void **)(iVar4 + 0x18)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x18)" (( "(") (binary_expression "iVar4 + 0x18" (identifier "iVar4") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "__dest")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void add_gnu_property(Layout * this, uint note_type, uint pr_type,
   size_t pr_datasz, uchar * pr_data) */

void __thiscall
gold::type_1::function_1
          (type_1 *this,type_2 var_6,type_2 var_11,size_t pr_datasz,type_3 *pr_data)

{
  type_4 *pp_Var1;
  type_4 var_10;
  size_t __n;
  type_4 __dest;
  type_4 p_Var3;
  type_4 var_12;
  type_5 __pos;
  bool bVar5;
  type_4 local_30;
  var_1<> var_2;
  var_3<0,var_4&,var_5> local_20 [3];
  type_6 uStack_14;
  
  __n = pr_datasz;
  uStack_14 = 0x83669;
  if (var_6 != 5) {
                    /* WARNING: Subroutine does not return */
    var_7("../../gold/layout.cc",0x973,"add_gnu_property");
  }
  __dest = (type_4)var_8(pr_datasz);
  var_9(__dest,pr_data,__n);
  __pos._M_node = &(this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header;
  var_10 = (this->gnu_properties_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;
  p_Var3 = __pos._M_node;
  if (var_10 != (type_4)0x0) {
    do {
      while (var_12 = var_10, var_11 <= var_12[1]._M_color) {
        var_10 = var_12->_M_left;
        p_Var3 = var_12;
        if (var_12->_M_left == (type_4)0x0) goto LAB_000836d5;
      }
      pp_Var1 = &var_12->_M_right;
      var_10 = *pp_Var1;
      var_12 = p_Var3;
    } while (*pp_Var1 != (type_4)0x0);
LAB_000836d5:
    bVar5 = __pos._M_node != var_12;
    __pos._M_node = var_12;
    if ((bVar5) && (var_12[1]._M_color <= var_11)) goto LAB_00083716;
  }
  local_20[0]._M_head_impl = &var_11;
  std::
  _Rb_tree<unsigned_int,_std::pair<var_14,_gold::type_1::Gnu_property>,_std::_Select1st<std::pair<var_14,_gold::type_1::Gnu_property>var_13>,_std::less<unsigned_int>,_std::allocator<std::pair<var_14,_gold::type_1::Gnu_property>var_13>var_13>
  ::
  _M_emplace_hint_unique<const_std::piecewise_construct_t&,_std::var_1<var_14&>,_std::var_1<>var_13>
            (&(this->gnu_properties_)._M_t,__pos,(piecewise_construct_t *)&std::piecewise_construct,
             (var_1<var_14&> *)local_20,&var_2);
  var_12 = local_30;
LAB_00083716:
  var_12[1]._M_parent = (type_4)__n;
  var_12[1]._M_left = __dest;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (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: (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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (array_declarator declarator: (identifier) size: (number_literal)))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))) (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)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (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 (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_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)))))))) body: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (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: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (identifier)) right: (parenthesized_expression (binary_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: (identifier))))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (pointer_expression argument: (identifier)) (identifier) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (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: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement))))

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

void __regparm1
MASKED(undefined4 param_1,int param_2,int param_3,uint param_4,size_t param_5,void *param_6)

{
  int *piVar1;
  size_t __n;
  int iVar2;
  void *__dest;
  int iVar3;
  int iVar4;
  int iVar5;
  bool bVar6;
  int local_34;
  undefined1 local_30 [15];
  undefined1 local_21;
  undefined4 *local_20 [3];
  undefined4 uStack_14;
  
  __n = param_5;
  uStack_14 = 0x83669;
  if (param_3 != 5) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/layout.cc",0x973,"add_gnu_property",param_1);
  }
  __dest = (void *)FUN_0017eb70(param_5);
  memcpy(__dest,param_6,__n);
  iVar5 = param_2 + 0x270;
  iVar2 = *(int *)(param_2 + 0x274);
  iVar3 = iVar5;
  if (*(int *)(param_2 + 0x274) != 0) {
    do {
      while (iVar4 = iVar2, param_4 <= *(uint *)(iVar4 + 0x10)) {
        iVar2 = *(int *)(iVar4 + 8);
        iVar3 = iVar4;
        if (*(int *)(iVar4 + 8) == 0) goto LAB_000836d5;
      }
      piVar1 = (int *)(iVar4 + 0xc);
      iVar2 = *piVar1;
      iVar4 = iVar3;
    } while (*piVar1 != 0);
LAB_000836d5:
    bVar6 = iVar5 != iVar4;
    iVar5 = iVar4;
    if ((bVar6) && (*(uint *)(iVar4 + 0x10) <= param_4)) goto LAB_00083716;
  }
  local_20[0] = &param_4;
  FUN_0008c270(local_30,param_2 + 0x26c,iVar5,&DAT_00224414,local_20,&local_21);
  iVar4 = local_34;
LAB_00083716:
  *(size_t *)(iVar4 + 0x14) = __n;
  *(void **)(iVar4 + 0x18) = __dest;
  return;
}

