
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: section_offset_type set_output_offset(Cie * this, section_offset_type
   output_offset, uint addralign, Output_section_data * output_data) */

section_offset_type __thiscall
gold::Cie::set_output_offset
          (Cie *this,section_offset_type output_offset,uint addralign,
          Output_section_data *output_data)

{
  Fde *pFVar1;
  section_size_type length;
  pointer ppFVar2;
  section_size_type length_00;
  
  length_00 = (this->contents_)._M_string_length + 8;
  if (this->object_ != (Relobj *)0x0) {
    Relobj::add_merge_mapping
              (this->object_,output_data,this->shndx_,this->input_offset_,length_00,output_offset);
  }
  if (addralign != 0) {
    length_00 = length_00 + (addralign - 1) & -addralign;
  }
  ppFVar2 = (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.
            _M_start;
  if (ppFVar2 !=
      (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl._M_finish) {
    do {
      pFVar1 = *ppFVar2;
      length = (pFVar1->contents_)._M_string_length + 8;
      if (pFVar1->object_ != (Relobj *)0x0) {
        Relobj::add_merge_mapping
                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,
                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);
        length = ((*ppFVar2)->contents_)._M_string_length + 8;
      }
      if (addralign != 0) {
        length = -addralign & length + (addralign - 1);
      }
      length_00 = length_00 + length;
      ppFVar2 = ppFVar2 + 1;
    } while ((this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.
             _M_finish != ppFVar2);
  }
  return output_offset + length_00;
}



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

int FUN_001b0820(int *param_1,int param_2,int param_3,undefined4 param_4)

{
  int *piVar1;
  uint uVar2;
  int *piVar3;
  uint uVar4;
  
  uVar4 = param_1[0xe] + 8;
  if (*param_1 != 0) {
    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);
  }
  if (param_3 != 0) {
    uVar4 = uVar4 + param_3 + -1 & -param_3;
  }
  piVar3 = (int *)param_1[10];
  if (piVar3 != (int *)param_1[0xb]) {
    do {
      piVar1 = (int *)*piVar3;
      uVar2 = piVar1[4] + 8;
      if (*piVar1 != 0) {
        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);
        uVar2 = *(int *)(*piVar3 + 0x10) + 8;
      }
      if (param_3 != 0) {
        uVar2 = -param_3 & uVar2 + param_3 + -1;
      }
      uVar4 = uVar4 + uVar2;
      piVar3 = piVar3 + 1;
    } while ((int *)param_1[0xb] != piVar3);
  }
  return param_2 + uVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1de7d7
SUB ESP,0x2c
MOV EBP,dword ptr [ESP + 0x40]
MOV ESI,dword ptr [ESP + 0x48]
MOV EAX,dword ptr [EBP + 0x38]
MOV dword ptr [ESP + 0x14],EBX
LEA EDI,[EAX + 0x8]
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JZ 0x001b0866
SUB ESP,0x8
PUSH dword ptr [ESP + 0x4c]
PUSH EDI
PUSH dword ptr [EBP + 0x8]
PUSH dword ptr [EBP + 0x4]
PUSH dword ptr [ESP + 0x64]
PUSH EAX
CALL 0x000b1a30
ADD ESP,0x20
XOR EBX,EBX
MOV ECX,ESI
MOV dword ptr [ESP + 0x8],ESI
MOV EAX,EDI
MOV dword ptr [ESP + 0xc],EBX
TEST ESI,ESI
JZ 0x001b0883
ADD ECX,-0x1
ADD EAX,ECX
NEG ESI
MOV EDI,EAX
AND EDI,ESI
MOV ESI,dword ptr [EBP + 0x28]
CMP ESI,dword ptr [EBP + 0x2c]
JZ 0x001b0908
MOV EBX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,EBX
OR EDX,ECX
ADD ECX,-0x1
ADC EBX,-0x1
MOV dword ptr [ESP + 0x10],EDX
MOV dword ptr [ESP + 0x18],ECX
MOV dword ptr [ESP + 0x1c],EBX
LEA ESI,[ESI]
MOV EDX,dword ptr [ESI]
MOV EAX,dword ptr [EDX + 0x10]
MOV ECX,dword ptr [EDX]
ADD EAX,0x8
TEST ECX,ECX
JZ 0x001b08e8
SUB ESP,0x8
MOV EBX,dword ptr [ESP + 0x4c]
ADD EBX,EDI
PUSH EBX
PUSH EAX
PUSH dword ptr [EDX + 0x8]
PUSH dword ptr [EDX + 0x4]
PUSH dword ptr [ESP + 0x64]
PUSH ECX
MOV EBX,dword ptr [ESP + 0x34]
CALL 0x000b1a30
MOV EAX,dword ptr [ESI]
ADD ESP,0x20
MOV EAX,dword ptr [EAX + 0x10]
ADD EAX,0x8
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,EAX
TEST EDX,EDX
JZ 0x001b08fe
MOV EAX,dword ptr [ESP + 0x8]
ADD ECX,dword ptr [ESP + 0x18]
NEG EAX
AND EAX,ECX
ADD EDI,EAX
ADD ESI,0x4
CMP dword ptr [EBP + 0x2c],ESI
JNZ 0x001b08b0
MOV EAX,dword ptr [ESP + 0x44]
ADD ESP,0x2c
POP EBX
POP ESI
ADD EAX,EDI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_001b0820(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = param_1[0xe] + 8;\n  if (*param_1 != 0) {\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }\n  if (param_3 != 0) {\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }\n  piVar3 = (int *)param_1[10];\n  if (piVar3 != (int *)param_1[0xb]) {\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }\n  return param_2 + uVar4;\n}\n\n" comment (function_definition "int FUN_001b0820(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = param_1[0xe] + 8;\n  if (*param_1 != 0) {\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }\n  if (param_3 != 0) {\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }\n  piVar3 = (int *)param_1[10];\n  if (piVar3 != (int *)param_1[0xb]) {\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }\n  return param_2 + uVar4;\n}" primitive_type (function_declarator "FUN_001b0820(int *param_1,int param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = param_1[0xe] + 8;\n  if (*param_1 != 0) {\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }\n  if (param_3 != 0) {\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }\n  piVar3 = (int *)param_1[10];\n  if (piVar3 != (int *)param_1[0xb]) {\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }\n  return param_2 + uVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar4 = param_1[0xe] + 8;" (assignment_expression "uVar4 = param_1[0xe] + 8" identifier = (binary_expression "param_1[0xe] + 8" (subscript_expression "param_1[0xe]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (*param_1 != 0) {\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }" { (expression_statement "FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);" (call_expression "FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2)" identifier (argument_list "(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2)" ( (pointer_expression "*param_1" * identifier) , identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) , (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , identifier ))) ;) })) (if_statement "if (param_3 != 0) {\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }" { (expression_statement "uVar4 = uVar4 + param_3 + -1 & -param_3;" (assignment_expression "uVar4 = uVar4 + param_3 + -1 & -param_3" identifier = (binary_expression "uVar4 + param_3 + -1 & -param_3" (binary_expression "uVar4 + param_3 + -1" (binary_expression "uVar4 + param_3" identifier + identifier) + number_literal) & (unary_expression "-param_3" - identifier))) ;) })) (expression_statement "piVar3 = (int *)param_1[10];" (assignment_expression "piVar3 = (int *)param_1[10]" identifier = (cast_expression "(int *)param_1[10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[10]" identifier [ number_literal ]))) ;) (if_statement "if (piVar3 != (int *)param_1[0xb]) {\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }" if (parenthesized_expression "(piVar3 != (int *)param_1[0xb])" ( (binary_expression "piVar3 != (int *)param_1[0xb]" identifier != (cast_expression "(int *)param_1[0xb]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xb]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }" { (do_statement "do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);" do (compound_statement "{\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    }" { (expression_statement "piVar1 = (int *)*piVar3;" (assignment_expression "piVar1 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (expression_statement "uVar2 = piVar1[4] + 8;" (assignment_expression "uVar2 = piVar1[4] + 8" identifier = (binary_expression "piVar1[4] + 8" (subscript_expression "piVar1[4]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }" { (expression_statement "FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);" (call_expression "FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4)" identifier (argument_list "(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4)" ( (pointer_expression "*piVar1" * identifier) , identifier , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (subscript_expression "piVar1[2]" identifier [ number_literal ]) , identifier , (binary_expression "param_2 + uVar4" identifier + identifier) ))) ;) (expression_statement "uVar2 = *(int *)(*piVar3 + 0x10) + 8;" (assignment_expression "uVar2 = *(int *)(*piVar3 + 0x10) + 8" identifier = (binary_expression "*(int *)(*piVar3 + 0x10) + 8" (pointer_expression "*(int *)(*piVar3 + 0x10)" * (cast_expression "(int *)(*piVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 0x10)" ( (binary_expression "*piVar3 + 0x10" (pointer_expression "*piVar3" * identifier) + number_literal) )))) + number_literal)) ;) })) (if_statement "if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }" { (expression_statement "uVar2 = -param_3 & uVar2 + param_3 + -1;" (assignment_expression "uVar2 = -param_3 & uVar2 + param_3 + -1" identifier = (binary_expression "-param_3 & uVar2 + param_3 + -1" (unary_expression "-param_3" - identifier) & (binary_expression "uVar2 + param_3 + -1" (binary_expression "uVar2 + param_3" identifier + identifier) + number_literal))) ;) })) (expression_statement "uVar4 = uVar4 + uVar2;" (assignment_expression "uVar4 = uVar4 + uVar2" identifier = (binary_expression "uVar4 + uVar2" identifier + identifier)) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int *)param_1[0xb] != piVar3)" ( (binary_expression "(int *)param_1[0xb] != piVar3" (cast_expression "(int *)param_1[0xb]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xb]" identifier [ number_literal ])) != identifier) )) ;) })) (return_statement "return param_2 + uVar4;" return (binary_expression "param_2 + uVar4" identifier + identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: section_offset_type set_output_offset(Cie * this, section_offset_type\n   output_offset, uint addralign, Output_section_data * output_data) */\n\nsection_offset_type __thiscall\ngold::Cie::set_output_offset\n          (Cie *this,section_offset_type output_offset,uint addralign,\n          Output_section_data *output_data)\n\n{\n  Fde *pFVar1;\n  section_size_type length;\n  pointer ppFVar2;\n  section_size_type length_00;\n  \n  length_00 = (this->contents_)._M_string_length + 8;\n  if (this->object_ != (Relobj *)0x0) {\n    Relobj::add_merge_mapping\n              (this->object_,output_data,this->shndx_,this->input_offset_,length_00,output_offset);\n  }\n  if (addralign != 0) {\n    length_00 = length_00 + (addralign - 1) & -addralign;\n  }\n  ppFVar2 = (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n            _M_start;\n  if (ppFVar2 !=\n      (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl._M_finish) {\n    do {\n      pFVar1 = *ppFVar2;\n      length = (pFVar1->contents_)._M_string_length + 8;\n      if (pFVar1->object_ != (Relobj *)0x0) {\n        Relobj::add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);\n        length = ((*ppFVar2)->contents_)._M_string_length + 8;\n      }\n      if (addralign != 0) {\n        length = -addralign & length + (addralign - 1);\n      }\n      length_00 = length_00 + length;\n      ppFVar2 = ppFVar2 + 1;\n    } while ((this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n             _M_finish != ppFVar2);\n  }\n  return output_offset + length_00;\n}\n\n" comment comment (function_definition "section_offset_type __thiscall\ngold::Cie::set_output_offset\n          (Cie *this,section_offset_type output_offset,uint addralign,\n          Output_section_data *output_data)\n\n{\n  Fde *pFVar1;\n  section_size_type length;\n  pointer ppFVar2;\n  section_size_type length_00;\n  \n  length_00 = (this->contents_)._M_string_length + 8;\n  if (this->object_ != (Relobj *)0x0) {\n    Relobj::add_merge_mapping\n              (this->object_,output_data,this->shndx_,this->input_offset_,length_00,output_offset);\n  }\n  if (addralign != 0) {\n    length_00 = length_00 + (addralign - 1) & -addralign;\n  }\n  ppFVar2 = (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n            _M_start;\n  if (ppFVar2 !=\n      (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl._M_finish) {\n    do {\n      pFVar1 = *ppFVar2;\n      length = (pFVar1->contents_)._M_string_length + 8;\n      if (pFVar1->object_ != (Relobj *)0x0) {\n        Relobj::add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);\n        length = ((*ppFVar2)->contents_)._M_string_length + 8;\n      }\n      if (addralign != 0) {\n        length = -addralign & length + (addralign - 1);\n      }\n      length_00 = length_00 + length;\n      ppFVar2 = ppFVar2 + 1;\n    } while ((this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n             _M_finish != ppFVar2);\n  }\n  return output_offset + length_00;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Cie::" identifier : : identifier : :) (function_declarator "set_output_offset\n          (Cie *this,section_offset_type output_offset,uint addralign,\n          Output_section_data *output_data)" identifier (parameter_list "(Cie *this,section_offset_type output_offset,uint addralign,\n          Output_section_data *output_data)" ( (parameter_declaration "Cie *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "section_offset_type output_offset" type_identifier identifier) , (parameter_declaration "uint addralign" type_identifier identifier) , (parameter_declaration "Output_section_data *output_data" type_identifier (pointer_declarator "*output_data" * identifier)) ))) (compound_statement "{\n  Fde *pFVar1;\n  section_size_type length;\n  pointer ppFVar2;\n  section_size_type length_00;\n  \n  length_00 = (this->contents_)._M_string_length + 8;\n  if (this->object_ != (Relobj *)0x0) {\n    Relobj::add_merge_mapping\n              (this->object_,output_data,this->shndx_,this->input_offset_,length_00,output_offset);\n  }\n  if (addralign != 0) {\n    length_00 = length_00 + (addralign - 1) & -addralign;\n  }\n  ppFVar2 = (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n            _M_start;\n  if (ppFVar2 !=\n      (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl._M_finish) {\n    do {\n      pFVar1 = *ppFVar2;\n      length = (pFVar1->contents_)._M_string_length + 8;\n      if (pFVar1->object_ != (Relobj *)0x0) {\n        Relobj::add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);\n        length = ((*ppFVar2)->contents_)._M_string_length + 8;\n      }\n      if (addralign != 0) {\n        length = -addralign & length + (addralign - 1);\n      }\n      length_00 = length_00 + length;\n      ppFVar2 = ppFVar2 + 1;\n    } while ((this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n             _M_finish != ppFVar2);\n  }\n  return output_offset + length_00;\n}" { (declaration "Fde *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (declaration "section_size_type length;" type_identifier identifier ;) (declaration "pointer ppFVar2;" type_identifier identifier ;) (declaration "section_size_type length_00;" type_identifier identifier ;) (expression_statement "length_00 = (this->contents_)._M_string_length + 8;" (assignment_expression "length_00 = (this->contents_)._M_string_length + 8" identifier = (binary_expression "(this->contents_)._M_string_length + 8" (field_expression "(this->contents_)._M_string_length" (parenthesized_expression "(this->contents_)" ( (field_expression "this->contents_" identifier -> field_identifier) )) . field_identifier) + number_literal)) ;) (if_statement "if (this->object_ != (Relobj *)0x0) {\n    Relobj::add_merge_mapping\n              (this->object_,output_data,this->shndx_,this->input_offset_,length_00,output_offset);\n  }" if (parenthesized_expression "(this->object_ != (Relobj *)0x0)" ( (binary_expression "this->object_ != (Relobj *)0x0" (field_expression "this->object_" identifier -> field_identifier) != (cast_expression "(Relobj *)0x0" ( (type_descriptor "Relobj *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    Relobj::add_merge_mapping\n              (this->object_,output_data,this->shndx_,this->input_offset_,length_00,output_offset);\n  }" { (labeled_statement "Relobj::add_merge_mapping\n              (this->object_,output_data,this->shndx_,this->input_offset_,length_00,output_offset);" statement_identifier : (ERROR ":" :) (expression_statement "add_merge_mapping\n              (this->object_,output_data,this->shndx_,this->input_offset_,length_00,output_offset);" (call_expression "add_merge_mapping\n              (this->object_,output_data,this->shndx_,this->input_offset_,length_00,output_offset)" identifier (argument_list "(this->object_,output_data,this->shndx_,this->input_offset_,length_00,output_offset)" ( (field_expression "this->object_" identifier -> field_identifier) , identifier , (field_expression "this->shndx_" identifier -> field_identifier) , (field_expression "this->input_offset_" identifier -> field_identifier) , identifier , identifier ))) ;)) })) (if_statement "if (addralign != 0) {\n    length_00 = length_00 + (addralign - 1) & -addralign;\n  }" if (parenthesized_expression "(addralign != 0)" ( (binary_expression "addralign != 0" identifier != number_literal) )) (compound_statement "{\n    length_00 = length_00 + (addralign - 1) & -addralign;\n  }" { (expression_statement "length_00 = length_00 + (addralign - 1) & -addralign;" (assignment_expression "length_00 = length_00 + (addralign - 1) & -addralign" identifier = (binary_expression "length_00 + (addralign - 1) & -addralign" (binary_expression "length_00 + (addralign - 1)" identifier + (parenthesized_expression "(addralign - 1)" ( (binary_expression "addralign - 1" identifier - number_literal) ))) & (unary_expression "-addralign" - identifier))) ;) })) (expression_statement "ppFVar2 = (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n            _M_start;" (field_expression "ppFVar2 = (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n            _M_start" (field_expression "ppFVar2 = (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl" (binary_expression "ppFVar2 = (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_" (binary_expression "ppFVar2 = (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold" (binary_expression "ppFVar2 = (this->fdes_).super__Vector_base<gold::Fde*,_std" (assignment_expression "ppFVar2 = (this->fdes_).super__Vector_base<gold" identifier = (binary_expression "(this->fdes_).super__Vector_base<gold" (field_expression "(this->fdes_).super__Vector_base" (parenthesized_expression "(this->fdes_)" ( (field_expression "this->fdes_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Fde" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Fde" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if (ppFVar2 !=\n      (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl._M_finish) {\n    do {\n      pFVar1 = *ppFVar2;\n      length = (pFVar1->contents_)._M_string_length + 8;\n      if (pFVar1->object_ != (Relobj *)0x0) {\n        Relobj::add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);\n        length = ((*ppFVar2)->contents_)._M_string_length + 8;\n      }\n      if (addralign != 0) {\n        length = -addralign & length + (addralign - 1);\n      }\n      length_00 = length_00 + length;\n      ppFVar2 = ppFVar2 + 1;\n    } while ((this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n             _M_finish != ppFVar2);\n  }" if (parenthesized_expression "(ppFVar2 !=\n      (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl._M_finish)" ( (field_expression "ppFVar2 !=\n      (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl._M_finish" (field_expression "ppFVar2 !=\n      (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl" (binary_expression "ppFVar2 !=\n      (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_" (binary_expression "ppFVar2 !=\n      (this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold" (binary_expression "ppFVar2 !=\n      (this->fdes_).super__Vector_base<gold::Fde*,_std" (binary_expression "ppFVar2 !=\n      (this->fdes_).super__Vector_base<gold" identifier != (binary_expression "(this->fdes_).super__Vector_base<gold" (field_expression "(this->fdes_).super__Vector_base" (parenthesized_expression "(this->fdes_)" ( (field_expression "this->fdes_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Fde" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Fde" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) )) (compound_statement "{\n    do {\n      pFVar1 = *ppFVar2;\n      length = (pFVar1->contents_)._M_string_length + 8;\n      if (pFVar1->object_ != (Relobj *)0x0) {\n        Relobj::add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);\n        length = ((*ppFVar2)->contents_)._M_string_length + 8;\n      }\n      if (addralign != 0) {\n        length = -addralign & length + (addralign - 1);\n      }\n      length_00 = length_00 + length;\n      ppFVar2 = ppFVar2 + 1;\n    } while ((this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n             _M_finish != ppFVar2);\n  }" { (do_statement "do {\n      pFVar1 = *ppFVar2;\n      length = (pFVar1->contents_)._M_string_length + 8;\n      if (pFVar1->object_ != (Relobj *)0x0) {\n        Relobj::add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);\n        length = ((*ppFVar2)->contents_)._M_string_length + 8;\n      }\n      if (addralign != 0) {\n        length = -addralign & length + (addralign - 1);\n      }\n      length_00 = length_00 + length;\n      ppFVar2 = ppFVar2 + 1;\n    } while ((this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n             _M_finish != ppFVar2);" do (compound_statement "{\n      pFVar1 = *ppFVar2;\n      length = (pFVar1->contents_)._M_string_length + 8;\n      if (pFVar1->object_ != (Relobj *)0x0) {\n        Relobj::add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);\n        length = ((*ppFVar2)->contents_)._M_string_length + 8;\n      }\n      if (addralign != 0) {\n        length = -addralign & length + (addralign - 1);\n      }\n      length_00 = length_00 + length;\n      ppFVar2 = ppFVar2 + 1;\n    }" { (expression_statement "pFVar1 = *ppFVar2;" (assignment_expression "pFVar1 = *ppFVar2" identifier = (pointer_expression "*ppFVar2" * identifier)) ;) (expression_statement "length = (pFVar1->contents_)._M_string_length + 8;" (assignment_expression "length = (pFVar1->contents_)._M_string_length + 8" identifier = (binary_expression "(pFVar1->contents_)._M_string_length + 8" (field_expression "(pFVar1->contents_)._M_string_length" (parenthesized_expression "(pFVar1->contents_)" ( (field_expression "pFVar1->contents_" identifier -> field_identifier) )) . field_identifier) + number_literal)) ;) (if_statement "if (pFVar1->object_ != (Relobj *)0x0) {\n        Relobj::add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);\n        length = ((*ppFVar2)->contents_)._M_string_length + 8;\n      }" if (parenthesized_expression "(pFVar1->object_ != (Relobj *)0x0)" ( (binary_expression "pFVar1->object_ != (Relobj *)0x0" (field_expression "pFVar1->object_" identifier -> field_identifier) != (cast_expression "(Relobj *)0x0" ( (type_descriptor "Relobj *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        Relobj::add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);\n        length = ((*ppFVar2)->contents_)._M_string_length + 8;\n      }" { (labeled_statement "Relobj::add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);" statement_identifier : (ERROR ":" :) (expression_statement "add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00);" (call_expression "add_merge_mapping\n                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00)" identifier (argument_list "(pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,\n                   (pFVar1->u_).from_object.input_offset,length,output_offset + length_00)" ( (field_expression "pFVar1->object_" identifier -> field_identifier) , identifier , (field_expression "(pFVar1->u_).from_object.shndx" (field_expression "(pFVar1->u_).from_object" (parenthesized_expression "(pFVar1->u_)" ( (field_expression "pFVar1->u_" identifier -> field_identifier) )) . field_identifier) . field_identifier) , (field_expression "(pFVar1->u_).from_object.input_offset" (field_expression "(pFVar1->u_).from_object" (parenthesized_expression "(pFVar1->u_)" ( (field_expression "pFVar1->u_" identifier -> field_identifier) )) . field_identifier) . field_identifier) , identifier , (binary_expression "output_offset + length_00" identifier + identifier) ))) ;)) (expression_statement "length = ((*ppFVar2)->contents_)._M_string_length + 8;" (assignment_expression "length = ((*ppFVar2)->contents_)._M_string_length + 8" identifier = (binary_expression "((*ppFVar2)->contents_)._M_string_length + 8" (field_expression "((*ppFVar2)->contents_)._M_string_length" (parenthesized_expression "((*ppFVar2)->contents_)" ( (field_expression "(*ppFVar2)->contents_" (parenthesized_expression "(*ppFVar2)" ( (pointer_expression "*ppFVar2" * identifier) )) -> field_identifier) )) . field_identifier) + number_literal)) ;) })) (if_statement "if (addralign != 0) {\n        length = -addralign & length + (addralign - 1);\n      }" if (parenthesized_expression "(addralign != 0)" ( (binary_expression "addralign != 0" identifier != number_literal) )) (compound_statement "{\n        length = -addralign & length + (addralign - 1);\n      }" { (expression_statement "length = -addralign & length + (addralign - 1);" (assignment_expression "length = -addralign & length + (addralign - 1)" identifier = (binary_expression "-addralign & length + (addralign - 1)" (unary_expression "-addralign" - identifier) & (binary_expression "length + (addralign - 1)" identifier + (parenthesized_expression "(addralign - 1)" ( (binary_expression "addralign - 1" identifier - number_literal) ))))) ;) })) (expression_statement "length_00 = length_00 + length;" (assignment_expression "length_00 = length_00 + length" identifier = (binary_expression "length_00 + length" identifier + identifier)) ;) (expression_statement "ppFVar2 = ppFVar2 + 1;" (assignment_expression "ppFVar2 = ppFVar2 + 1" identifier = (binary_expression "ppFVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n             _M_finish != ppFVar2)" ( (binary_expression "(this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n             _M_finish != ppFVar2" (field_expression "(this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl.\n             _M_finish" (field_expression "(this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_>._M_impl" (binary_expression "(this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold::Fde*>_" (binary_expression "(this->fdes_).super__Vector_base<gold::Fde*,_std::allocator<gold" (binary_expression "(this->fdes_).super__Vector_base<gold::Fde*,_std" (binary_expression "(this->fdes_).super__Vector_base<gold" (field_expression "(this->fdes_).super__Vector_base" (parenthesized_expression "(this->fdes_)" ( (field_expression "this->fdes_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Fde" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Fde" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) != identifier) )) ;) })) (return_statement "return output_offset + length_00;" return (binary_expression "output_offset + length_00" identifier + identifier) ;) })))
(translation_unit "int FUN_001b0820(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = param_1[0xe] + 8;\n  if (*param_1 != 0) {\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }\n  if (param_3 != 0) {\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }\n  piVar3 = (int *)param_1[10];\n  if (piVar3 != (int *)param_1[0xb]) {\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }\n  return param_2 + uVar4;\n}\n\n" (function_definition "int FUN_001b0820(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = param_1[0xe] + 8;\n  if (*param_1 != 0) {\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }\n  if (param_3 != 0) {\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }\n  piVar3 = (int *)param_1[10];\n  if (piVar3 != (int *)param_1[0xb]) {\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }\n  return param_2 + uVar4;\n}" primitive_type (function_declarator "FUN_001b0820(int *param_1,int param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = param_1[0xe] + 8;\n  if (*param_1 != 0) {\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }\n  if (param_3 != 0) {\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }\n  piVar3 = (int *)param_1[10];\n  if (piVar3 != (int *)param_1[0xb]) {\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }\n  return param_2 + uVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar4 = param_1[0xe] + 8;" (assignment_expression "uVar4 = param_1[0xe] + 8" identifier = (binary_expression "param_1[0xe] + 8" (subscript_expression "param_1[0xe]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (*param_1 != 0) {\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }" { (expression_statement "FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);" (call_expression "FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2)" identifier (argument_list "(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2)" ( (pointer_expression "*param_1" * identifier) , identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) , (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , identifier ))) ;) })) (if_statement "if (param_3 != 0) {\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }" { (expression_statement "uVar4 = uVar4 + param_3 + -1 & -param_3;" (assignment_expression "uVar4 = uVar4 + param_3 + -1 & -param_3" identifier = (binary_expression "uVar4 + param_3 + -1 & -param_3" (binary_expression "uVar4 + param_3 + -1" (binary_expression "uVar4 + param_3" identifier + identifier) + number_literal) & (unary_expression "-param_3" - identifier))) ;) })) (expression_statement "piVar3 = (int *)param_1[10];" (assignment_expression "piVar3 = (int *)param_1[10]" identifier = (cast_expression "(int *)param_1[10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[10]" identifier [ number_literal ]))) ;) (if_statement "if (piVar3 != (int *)param_1[0xb]) {\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }" if (parenthesized_expression "(piVar3 != (int *)param_1[0xb])" ( (binary_expression "piVar3 != (int *)param_1[0xb]" identifier != (cast_expression "(int *)param_1[0xb]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xb]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }" { (do_statement "do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);" do (compound_statement "{\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    }" { (expression_statement "piVar1 = (int *)*piVar3;" (assignment_expression "piVar1 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (expression_statement "uVar2 = piVar1[4] + 8;" (assignment_expression "uVar2 = piVar1[4] + 8" identifier = (binary_expression "piVar1[4] + 8" (subscript_expression "piVar1[4]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }" { (expression_statement "FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);" (call_expression "FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4)" identifier (argument_list "(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4)" ( (pointer_expression "*piVar1" * identifier) , identifier , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (subscript_expression "piVar1[2]" identifier [ number_literal ]) , identifier , (binary_expression "param_2 + uVar4" identifier + identifier) ))) ;) (expression_statement "uVar2 = *(int *)(*piVar3 + 0x10) + 8;" (assignment_expression "uVar2 = *(int *)(*piVar3 + 0x10) + 8" identifier = (binary_expression "*(int *)(*piVar3 + 0x10) + 8" (pointer_expression "*(int *)(*piVar3 + 0x10)" * (cast_expression "(int *)(*piVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 0x10)" ( (binary_expression "*piVar3 + 0x10" (pointer_expression "*piVar3" * identifier) + number_literal) )))) + number_literal)) ;) })) (if_statement "if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }" { (expression_statement "uVar2 = -param_3 & uVar2 + param_3 + -1;" (assignment_expression "uVar2 = -param_3 & uVar2 + param_3 + -1" identifier = (binary_expression "-param_3 & uVar2 + param_3 + -1" (unary_expression "-param_3" - identifier) & (binary_expression "uVar2 + param_3 + -1" (binary_expression "uVar2 + param_3" identifier + identifier) + number_literal))) ;) })) (expression_statement "uVar4 = uVar4 + uVar2;" (assignment_expression "uVar4 = uVar4 + uVar2" identifier = (binary_expression "uVar4 + uVar2" identifier + identifier)) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int *)param_1[0xb] != piVar3)" ( (binary_expression "(int *)param_1[0xb] != piVar3" (cast_expression "(int *)param_1[0xb]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xb]" identifier [ number_literal ])) != identifier) )) ;) })) (return_statement "return param_2 + uVar4;" return (binary_expression "param_2 + uVar4" identifier + identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression IDENT + IDENT) + LIT) & (unary_expression - IDENT))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , IDENT , (binary_expression IDENT + IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression - IDENT) & (binary_expression (binary_expression IDENT + IDENT) + LIT))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != IDENT) )) ;) })) (return_statement return (binary_expression IDENT + IDENT) ;) })))
(function_definition "int FUN_001b0820(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = param_1[0xe] + 8;\n  if (*param_1 != 0) {\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }\n  if (param_3 != 0) {\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }\n  piVar3 = (int *)param_1[10];\n  if (piVar3 != (int *)param_1[0xb]) {\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }\n  return param_2 + uVar4;\n}" (primitive_type "int") (function_declarator "FUN_001b0820(int *param_1,int param_2,int param_3,undefined4 param_4)" (identifier "FUN_001b0820") (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = param_1[0xe] + 8;\n  if (*param_1 != 0) {\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }\n  if (param_3 != 0) {\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }\n  piVar3 = (int *)param_1[10];\n  if (piVar3 != (int *)param_1[0xb]) {\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }\n  return param_2 + uVar4;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "uVar4 = param_1[0xe] + 8;" (assignment_expression "uVar4 = param_1[0xe] + 8" (identifier "uVar4") (= "=") (binary_expression "param_1[0xe] + 8" (subscript_expression "param_1[0xe]" (identifier "param_1") ([ "[") (number_literal "0xe") (] "]")) (+ "+") (number_literal "8"))) (; ";")) (if_statement "if (*param_1 != 0) {\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);\n  }" ({ "{") (expression_statement "FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);" (call_expression "FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2)" (identifier "FUN_000b1a30") (argument_list "(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "param_4") (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "uVar4") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 != 0) {\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = uVar4 + param_3 + -1 & -param_3;\n  }" ({ "{") (expression_statement "uVar4 = uVar4 + param_3 + -1 & -param_3;" (assignment_expression "uVar4 = uVar4 + param_3 + -1 & -param_3" (identifier "uVar4") (= "=") (binary_expression "uVar4 + param_3 + -1 & -param_3" (binary_expression "uVar4 + param_3 + -1" (binary_expression "uVar4 + param_3" (identifier "uVar4") (+ "+") (identifier "param_3")) (+ "+") (number_literal "-1")) (& "&") (unary_expression "-param_3" (- "-") (identifier "param_3")))) (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)param_1[10];" (assignment_expression "piVar3 = (int *)param_1[10]" (identifier "piVar3") (= "=") (cast_expression "(int *)param_1[10]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")))) (; ";")) (if_statement "if (piVar3 != (int *)param_1[0xb]) {\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }" (if "if") (parenthesized_expression "(piVar3 != (int *)param_1[0xb])" (( "(") (binary_expression "piVar3 != (int *)param_1[0xb]" (identifier "piVar3") (!= "!=") (cast_expression "(int *)param_1[0xb]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]")))) () ")")) (compound_statement "{\n    do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);\n  }" ({ "{") (do_statement "do {\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    } while ((int *)param_1[0xb] != piVar3);" (do "do") (compound_statement "{\n      piVar1 = (int *)*piVar3;\n      uVar2 = piVar1[4] + 8;\n      if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }\n      if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }\n      uVar4 = uVar4 + uVar2;\n      piVar3 = piVar3 + 1;\n    }" ({ "{") (expression_statement "piVar1 = (int *)*piVar3;" (assignment_expression "piVar1 = (int *)*piVar3" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (expression_statement "uVar2 = piVar1[4] + 8;" (assignment_expression "uVar2 = piVar1[4] + 8" (identifier "uVar2") (= "=") (binary_expression "piVar1[4] + 8" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "8"))) (; ";")) (if_statement "if (*piVar1 != 0) {\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }" (if "if") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);\n        uVar2 = *(int *)(*piVar3 + 0x10) + 8;\n      }" ({ "{") (expression_statement "FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);" (call_expression "FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4)" (identifier "FUN_000b1a30") (argument_list "(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (, ",") (identifier "param_4") (, ",") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "uVar2") (, ",") (binary_expression "param_2 + uVar4" (identifier "param_2") (+ "+") (identifier "uVar4")) () ")"))) (; ";")) (expression_statement "uVar2 = *(int *)(*piVar3 + 0x10) + 8;" (assignment_expression "uVar2 = *(int *)(*piVar3 + 0x10) + 8" (identifier "uVar2") (= "=") (binary_expression "*(int *)(*piVar3 + 0x10) + 8" (pointer_expression "*(int *)(*piVar3 + 0x10)" (* "*") (cast_expression "(int *)(*piVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + 0x10)" (( "(") (binary_expression "*piVar3 + 0x10" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "8"))) (; ";")) (} "}"))) (if_statement "if (param_3 != 0) {\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = -param_3 & uVar2 + param_3 + -1;\n      }" ({ "{") (expression_statement "uVar2 = -param_3 & uVar2 + param_3 + -1;" (assignment_expression "uVar2 = -param_3 & uVar2 + param_3 + -1" (identifier "uVar2") (= "=") (binary_expression "-param_3 & uVar2 + param_3 + -1" (unary_expression "-param_3" (- "-") (identifier "param_3")) (& "&") (binary_expression "uVar2 + param_3 + -1" (binary_expression "uVar2 + param_3" (identifier "uVar2") (+ "+") (identifier "param_3")) (+ "+") (number_literal "-1")))) (; ";")) (} "}"))) (expression_statement "uVar4 = uVar4 + uVar2;" (assignment_expression "uVar4 = uVar4 + uVar2" (identifier "uVar4") (= "=") (binary_expression "uVar4 + uVar2" (identifier "uVar4") (+ "+") (identifier "uVar2"))) (; ";")) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int *)param_1[0xb] != piVar3)" (( "(") (binary_expression "(int *)param_1[0xb] != piVar3" (cast_expression "(int *)param_1[0xb]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]"))) (!= "!=") (identifier "piVar3")) () ")")) (; ";")) (} "}"))) (return_statement "return param_2 + uVar4;" (return "return") (binary_expression "param_2 + uVar4" (identifier "param_2") (+ "+") (identifier "uVar4")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: section_offset_type set_output_offset(Cie * this, section_offset_type
   output_offset, uint addralign, Output_section_data * output_data) */

type_1 __thiscall
var_4::type_2::function_1
          (type_2 *this,type_1 var_8,type_3 var_2,
          type_4 *output_data)

{
  type_5 *pFVar1;
  type_6 var_9;
  type_7 var_7;
  type_6 var_3;
  
  var_3 = (this->contents_)._M_string_length + 8;
  if (this->object_ != (type_8 *)0x0) {
    Relobj::var_1
              (this->object_,output_data,this->shndx_,this->input_offset_,var_3,var_8);
  }
  if (var_2 != 0) {
    var_3 = var_3 + (var_2 - 1) & -var_2;
  }
  var_7 = (this->fdes_).super__Vector_base<var_4::type_5*,var_5::allocator<var_4::type_5*>var_6>._M_impl.
            _M_start;
  if (var_7 !=
      (this->fdes_).super__Vector_base<var_4::type_5*,var_5::allocator<var_4::type_5*>var_6>._M_impl._M_finish) {
    do {
      pFVar1 = *var_7;
      var_9 = (pFVar1->contents_)._M_string_length + 8;
      if (pFVar1->object_ != (type_8 *)0x0) {
        Relobj::var_1
                  (pFVar1->object_,output_data,(pFVar1->u_).from_object.shndx,
                   (pFVar1->u_).from_object.input_offset,var_9,var_8 + var_3);
        var_9 = ((*var_7)->contents_)._M_string_length + 8;
      }
      if (var_2 != 0) {
        var_9 = -var_2 & var_9 + (var_2 - 1);
      }
      var_3 = var_3 + var_9;
      var_7 = var_7 + 1;
    } while ((this->fdes_).super__Vector_base<var_4::type_5*,var_5::allocator<var_4::type_5*>var_6>._M_impl.
             _M_finish != var_7);
  }
  return var_8 + var_3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)) right: (unary_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (unary_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier)))))) (return_statement (binary_expression left: (identifier) right: (identifier))))))

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

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

{
  int *piVar1;
  uint uVar2;
  int *piVar3;
  uint uVar4;
  
  uVar4 = param_1[0xe] + 8;
  if (*param_1 != 0) {
    FUN_000b1a30(*param_1,param_4,param_1[1],param_1[2],uVar4,param_2);
  }
  if (param_3 != 0) {
    uVar4 = uVar4 + param_3 + -1 & -param_3;
  }
  piVar3 = (int *)param_1[10];
  if (piVar3 != (int *)param_1[0xb]) {
    do {
      piVar1 = (int *)*piVar3;
      uVar2 = piVar1[4] + 8;
      if (*piVar1 != 0) {
        FUN_000b1a30(*piVar1,param_4,piVar1[1],piVar1[2],uVar2,param_2 + uVar4);
        uVar2 = *(int *)(*piVar3 + 0x10) + 8;
      }
      if (param_3 != 0) {
        uVar2 = -param_3 & uVar2 + param_3 + -1;
      }
      uVar4 = uVar4 + uVar2;
      piVar3 = piVar3 + 1;
    } while ((int *)param_1[0xb] != piVar3);
  }
  return param_2 + uVar4;
}

