
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void write(Object_attribute * this, int tag,
   vector<unsigned_char,_std::allocator<unsigned_char>_> * buffer) */

ssize_t __thiscall
gold::Object_attribute::write(Object_attribute *this,int __fd,void *__buf,size_t __n)

{
}



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

void FUN_000b9ee0(uint *param_1,int param_2,int param_3)

{
  uint uVar1;
  undefined4 uVar2;
  
  uVar2 = 0xb9eec;
  uVar1 = *param_1;
  if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||
     ((uVar1 & 4) != 0)) {
    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);
    uVar1 = *param_1;
    if ((uVar1 & 1) != 0) {
      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);
      uVar1 = *param_1;
    }
    if ((uVar1 & 2) != 0) {
      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);
      return;
    }
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x0003a210
ADD EBX,0x35a114
MOV EDI,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESI]
TEST AL,0x1
JZ 0x000b9f03
MOV ECX,dword ptr [ESI + 0x4]
TEST ECX,ECX
JNZ 0x000b9f20
TEST AL,0x2
JZ 0x000b9f0e
MOV EDX,dword ptr [ESI + 0xc]
TEST EDX,EDX
JNZ 0x000b9f20
TEST AL,0x4
JNZ 0x000b9f20
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x18]
CDQ
PUSH EDX
PUSH EAX
PUSH EDI
CALL 0x00106610
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
TEST AL,0x1
JNZ 0x000b9f60
TEST AL,0x2
JZ 0x000b9f12
MOV EAX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [ESI + 0xc]
SUB ESP,0xc
PUSH 0x0
LEA EDX,[EAX + EDX*0x1 + 0x1]
PUSH EDX
PUSH EAX
PUSH dword ptr [EDI + 0x4]
PUSH EDI
CALL 0x000baed0
ADD ESP,0x20
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [ESI + 0x4]
SUB ESP,0x4
CDQ
PUSH EDX
PUSH EAX
PUSH EDI
CALL 0x00106610
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
TEST AL,0x2
JZ 0x000b9f12
JMP 0x000b9f3d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000b9ee0(uint *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0xb9eec;\n  uVar1 = *param_1;\n  if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)) {\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000b9ee0(uint *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0xb9eec;\n  uVar1 = *param_1;\n  if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)) {\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000b9ee0(uint *param_1,int param_2,int param_3)" identifier (parameter_list "(uint *param_1,int param_2,int param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0xb9eec;\n  uVar1 = *param_1;\n  if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)) {\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0xb9eec;" (assignment_expression "uVar2 = 0xb9eec" identifier = number_literal) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)) {\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }" if (parenthesized_expression "(((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0))" ( (binary_expression "((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)" (parenthesized_expression "((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0))))" ( (binary_expression "(((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))" (parenthesized_expression "(((uVar1 & 1) != 0) && (param_1[1] != 0))" ( (binary_expression "((uVar1 & 1) != 0) && (param_1[1] != 0)" (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) ))) )) || (parenthesized_expression "(((uVar1 & 2) != 0 && (param_1[3] != 0)))" ( (parenthesized_expression "((uVar1 & 2) != 0 && (param_1[3] != 0))" ( (binary_expression "(uVar1 & 2) != 0 && (param_1[3] != 0)" (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) && (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) ))) )) ))) )) || (parenthesized_expression "((uVar1 & 4) != 0)" ( (binary_expression "(uVar1 & 4) != 0" (parenthesized_expression "(uVar1 & 4)" ( (binary_expression "uVar1 & 4" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }" { (expression_statement "FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);" (call_expression "FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec)" identifier (argument_list "(param_3,param_2,param_2 >> 0x1f,0xb9eec)" ( identifier , identifier , (binary_expression "param_2 >> 0x1f" identifier >> number_literal) , number_literal ))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }" { (expression_statement "FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);" (call_expression "FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2)" identifier (argument_list "(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2)" ( identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) , (binary_expression "(int)param_1[1] >> 0x1f" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) >> number_literal) , identifier ))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (if_statement "if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }" if (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }" { (expression_statement "FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);" (call_expression "FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0)" identifier (argument_list "(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0)" ( identifier , (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) , (subscript_expression "param_1[2]" identifier [ number_literal ]) , (binary_expression "param_1[2] + 1 + param_1[3]" (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) + (subscript_expression "param_1[3]" identifier [ number_literal ])) , number_literal ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void write(Object_attribute * this, int tag,\n   vector<unsigned_char,_std::allocator<unsigned_char>_> * buffer) */\n\nssize_t __thiscall\ngold::Object_attribute::write(Object_attribute *this,int __fd,void *__buf,size_t __n)\n\n{\n}\n\n" comment comment (function_definition "ssize_t __thiscall\ngold::Object_attribute::write(Object_attribute *this,int __fd,void *__buf,size_t __n)\n\n{\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Object_attribute::" identifier : : identifier : :) (function_declarator "write(Object_attribute *this,int __fd,void *__buf,size_t __n)" identifier (parameter_list "(Object_attribute *this,int __fd,void *__buf,size_t __n)" ( (parameter_declaration "Object_attribute *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "int __fd" primitive_type identifier) , (parameter_declaration "void *__buf" primitive_type (pointer_declarator "*__buf" * identifier)) , (parameter_declaration "size_t __n" primitive_type identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_000b9ee0(uint *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0xb9eec;\n  uVar1 = *param_1;\n  if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)) {\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000b9ee0(uint *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0xb9eec;\n  uVar1 = *param_1;\n  if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)) {\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000b9ee0(uint *param_1,int param_2,int param_3)" identifier (parameter_list "(uint *param_1,int param_2,int param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0xb9eec;\n  uVar1 = *param_1;\n  if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)) {\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0xb9eec;" (assignment_expression "uVar2 = 0xb9eec" identifier = number_literal) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)) {\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }" if (parenthesized_expression "(((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0))" ( (binary_expression "((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)" (parenthesized_expression "((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0))))" ( (binary_expression "(((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))" (parenthesized_expression "(((uVar1 & 1) != 0) && (param_1[1] != 0))" ( (binary_expression "((uVar1 & 1) != 0) && (param_1[1] != 0)" (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) ))) )) || (parenthesized_expression "(((uVar1 & 2) != 0 && (param_1[3] != 0)))" ( (parenthesized_expression "((uVar1 & 2) != 0 && (param_1[3] != 0))" ( (binary_expression "(uVar1 & 2) != 0 && (param_1[3] != 0)" (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) && (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) ))) )) ))) )) || (parenthesized_expression "((uVar1 & 4) != 0)" ( (binary_expression "(uVar1 & 4) != 0" (parenthesized_expression "(uVar1 & 4)" ( (binary_expression "uVar1 & 4" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }" { (expression_statement "FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);" (call_expression "FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec)" identifier (argument_list "(param_3,param_2,param_2 >> 0x1f,0xb9eec)" ( identifier , identifier , (binary_expression "param_2 >> 0x1f" identifier >> number_literal) , number_literal ))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }" { (expression_statement "FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);" (call_expression "FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2)" identifier (argument_list "(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2)" ( identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) , (binary_expression "(int)param_1[1] >> 0x1f" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) >> number_literal) , identifier ))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (if_statement "if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }" if (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }" { (expression_statement "FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);" (call_expression "FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0)" identifier (argument_list "(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0)" ( identifier , (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) , (subscript_expression "param_1[2]" identifier [ number_literal ]) , (binary_expression "param_1[2] + 1 + param_1[3]" (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) + (subscript_expression "param_1[3]" identifier [ number_literal ])) , number_literal ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) ))) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT >> LIT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) >> LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (subscript_expression IDENT [ LIT ]) , (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + (subscript_expression IDENT [ LIT ])) , LIT ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_000b9ee0(uint *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0xb9eec;\n  uVar1 = *param_1;\n  if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)) {\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000b9ee0(uint *param_1,int param_2,int param_3)" (identifier "FUN_000b9ee0") (parameter_list "(uint *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0xb9eec;\n  uVar1 = *param_1;\n  if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)) {\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = 0xb9eec;" (assignment_expression "uVar2 = 0xb9eec" (identifier "uVar2") (= "=") (number_literal "0xb9eec")) (; ";")) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)) {\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0))" (( "(") (binary_expression "((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||\n     ((uVar1 & 4) != 0)" (parenthesized_expression "((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0))))" (( "(") (binary_expression "(((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))" (parenthesized_expression "(((uVar1 & 1) != 0) && (param_1[1] != 0))" (( "(") (binary_expression "((uVar1 & 1) != 0) && (param_1[1] != 0)" (parenthesized_expression "((uVar1 & 1) != 0)" (( "(") (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" (( "(") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(((uVar1 & 2) != 0 && (param_1[3] != 0)))" (( "(") (parenthesized_expression "((uVar1 & 2) != 0 && (param_1[3] != 0))" (( "(") (binary_expression "(uVar1 & 2) != 0 && (param_1[3] != 0)" (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" (( "(") (binary_expression "uVar1 & 2" (identifier "uVar1") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(param_1[3] != 0)" (( "(") (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (|| "||") (parenthesized_expression "((uVar1 & 4) != 0)" (( "(") (binary_expression "(uVar1 & 4) != 0" (parenthesized_expression "(uVar1 & 4)" (( "(") (binary_expression "uVar1 & 4" (identifier "uVar1") (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);\n    uVar1 = *param_1;\n    if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }\n    if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }\n  }" ({ "{") (expression_statement "FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);" (call_expression "FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec)" (identifier "FUN_00106610") (argument_list "(param_3,param_2,param_2 >> 0x1f,0xb9eec)" (( "(") (identifier "param_3") (, ",") (identifier "param_2") (, ",") (binary_expression "param_2 >> 0x1f" (identifier "param_2") (>> ">>") (number_literal "0x1f")) (, ",") (number_literal "0xb9eec") () ")"))) (; ";")) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if ((uVar1 & 1) != 0) {\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }" (if "if") (parenthesized_expression "((uVar1 & 1) != 0)" (( "(") (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" (( "(") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);\n      uVar1 = *param_1;\n    }" ({ "{") (expression_statement "FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);" (call_expression "FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2)" (identifier "FUN_00106610") (argument_list "(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2)" (( "(") (identifier "param_3") (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (binary_expression "(int)param_1[1] >> 0x1f" (cast_expression "(int)param_1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (>> ">>") (number_literal "0x1f")) (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (if_statement "if ((uVar1 & 2) != 0) {\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }" (if "if") (parenthesized_expression "((uVar1 & 2) != 0)" (( "(") (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" (( "(") (binary_expression "uVar1 & 2" (identifier "uVar1") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);\n      return;\n    }" ({ "{") (expression_statement "FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);" (call_expression "FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0)" (identifier "FUN_000baed0") (argument_list "(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0)" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_3 + 4)" (* "*") (cast_expression "(undefined4 *)(param_3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (, ",") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (binary_expression "param_1[2] + 1 + param_1[3]" (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "1")) (+ "+") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void write(Object_attribute * this, int tag,
   vector<unsigned_char,_std::allocator<unsigned_char>_> * buffer) */

ssize_t __thiscall
gold::type_1::function_1(type_1 *this,int __fd,void *__buf,size_t __n)

{
}


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

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

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

{
  uint uVar1;
  undefined4 uVar2;
  
  uVar2 = 0xb9eec;
  uVar1 = *param_1;
  if (((((uVar1 & 1) != 0) && (param_1[1] != 0)) || (((uVar1 & 2) != 0 && (param_1[3] != 0)))) ||
     ((uVar1 & 4) != 0)) {
    FUN_00106610(param_3,param_2,param_2 >> 0x1f,0xb9eec);
    uVar1 = *param_1;
    if ((uVar1 & 1) != 0) {
      FUN_00106610(param_3,param_1[1],(int)param_1[1] >> 0x1f,uVar2);
      uVar1 = *param_1;
    }
    if ((uVar1 & 2) != 0) {
      FUN_000baed0(param_3,*(undefined4 *)(param_3 + 4),param_1[2],param_1[2] + 1 + param_1[3],0);
      return;
    }
  }
  return;
}

