
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void write(Output_reloc<4,_false,_32,_false> * this, uchar * pov) */

ssize_t __thiscall
gold::Output_reloc<4,_false,_32,_false>::write
          (Output_reloc<4,_false,_32,_false> *this,int __fd,void *__buf,size_t __n)

{
  byte bVar1;
  uint uVar2;
  uint uVar3;
  Target *pTVar4;
  Elf_Addr EVar5;
  uint uVar6;
  ulong uVar7;
  undefined4 extraout_var;
  undefined4 extraout_var_00;
  ssize_t sVar8;
  undefined4 in_register_00000034;
  Elf_Addr *pEVar9;
  
  pEVar9 = (Elf_Addr *)CONCAT44(in_register_00000034,__fd);
  EVar5 = Output_reloc<9,_false,_32,_false>::get_address(&this->rel_);
  *pEVar9 = EVar5;
  uVar6 = Output_reloc<9,_false,_32,_false>::get_symbol_index(&this->rel_);
  uVar2 = *(uint *)&(this->rel_).field_0x18;
  uVar3 = (this->rel_).local_sym_index_;
  pEVar9[1] = uVar6 * 0x100 + (uVar2 & 0xff);
  uVar6 = this->addend_;
  uVar7 = (ulong)uVar6;
  if (uVar3 == 0xfffffffd) {
    pTVar4 = parameters->target_;
    if (pTVar4 != (Target *)0x0) {
      sVar8 = (**(code **)(*(long *)pTVar4 + 0x60))
                        (pTVar4,(this->rel_).u1_.relobj,uVar2 & 0xfffffff,uVar7);
      pEVar9[2] = (Elf_Addr)sVar8;
      return sVar8;
    }
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x69,"target");
  }
  bVar1 = (this->rel_).field_0x1b;
  if ((bVar1 & 0x20) == 0) {
    if (((uVar3 < 0xfffffffe) && (uVar3 != 0xfffffffc)) && ((bVar1 & 0x40) != 0)) {
      EVar5 = Output_reloc<9,_false,_32,_false>::local_section_offset(&this->rel_,uVar6);
      pEVar9[2] = EVar5;
      return CONCAT44(extraout_var,EVar5);
    }
  }
  else {
    EVar5 = Output_reloc<9,_false,_32,_false>::symbol_value(&this->rel_,uVar6);
    uVar7 = CONCAT44(extraout_var_00,EVar5);
  }
  pEVar9[2] = (Elf_Addr)uVar7;
  return uVar7;
}



void FUN_00229110(undefined8 *param_1,undefined4 *param_2)

{
  uint uVar1;
  uint uVar2;
  long *plVar3;
  undefined4 uVar4;
  int iVar5;
  
  uVar4 = FUN_00228d30();
  *param_2 = uVar4;
  iVar5 = FUN_002005f0(param_1);
  uVar1 = *(uint *)(param_1 + 3);
  uVar2 = *(uint *)((long)param_1 + 0x14);
  param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);
  uVar4 = *(undefined4 *)(param_1 + 4);
  if (uVar2 == 0xfffffffd) {
    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);
    if (plVar3 != (long *)0x0) {
      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);
      param_2[2] = uVar4;
      return;
    }
                    /* WARNING: Subroutine does not return */
    FUN_0017c650("../../gold/parameters.h",0x69,"target");
  }
  if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {
    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&
       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {
      uVar4 = FUN_00228ba0(param_1,uVar4);
      param_2[2] = uVar4;
      return;
    }
  }
  else {
    uVar4 = FUN_00200320(param_1,uVar4);
  }
  param_2[2] = uVar4;
  return;
}


PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
CALL 0x00228d30
MOV RDI,RBX
MOV dword ptr [RBP],EAX
CALL 0x002005f0
MOV EDX,dword ptr [RBX + 0x18]
SHL EAX,0x8
AND EDX,0xfffffff
MOVZX ECX,DL
ADD EAX,ECX
MOV ECX,dword ptr [RBX + 0x14]
MOV dword ptr [RBP + 0x4],EAX
MOV EAX,dword ptr [RBX + 0x20]
CMP ECX,-0x3
JZ 0x00229198
MOVZX EDX,byte ptr [RBX + 0x1b]
TEST DL,0x20
JNZ 0x00229180
CMP ECX,-0x2
JNC 0x0022918a
CMP ECX,-0x4
JZ 0x0022918a
AND EDX,0x40
JZ 0x0022918a
MOV RDI,RBX
MOV ESI,EAX
CALL 0x00228ba0
MOV dword ptr [RBP + 0x8],EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV ESI,EAX
MOV RDI,RBX
CALL 0x00200320
MOV dword ptr [RBP + 0x8],EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV RCX,qword ptr [0x0043e6b0]
MOV RDI,qword ptr [RCX + 0x18]
TEST RDI,RDI
JZ 0x002291bd
MOV ECX,EAX
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RBX]
CALL qword ptr [RAX + 0x60]
MOV dword ptr [RBP + 0x8],EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
LEA RDX,[0x380e1b]
MOV ESI,0x69
LEA RDI,[0x3726d0]
CALL 0x0017c650
(translation_unit "void FUN_00229110(undefined8 *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  long *plVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar4 = FUN_00228d30();\n  *param_2 = uVar4;\n  iVar5 = FUN_002005f0(param_1);\n  uVar1 = *(uint *)(param_1 + 3);\n  uVar2 = *(uint *)((long)param_1 + 0x14);\n  param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);\n  uVar4 = *(undefined4 *)(param_1 + 4);\n  if (uVar2 == 0xfffffffd) {\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }\n  if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }\n  else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }\n  param_2[2] = uVar4;\n  return;\n}\n\n" (function_definition "void FUN_00229110(undefined8 *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  long *plVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar4 = FUN_00228d30();\n  *param_2 = uVar4;\n  iVar5 = FUN_002005f0(param_1);\n  uVar1 = *(uint *)(param_1 + 3);\n  uVar2 = *(uint *)((long)param_1 + 0x14);\n  param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);\n  uVar4 = *(undefined4 *)(param_1 + 4);\n  if (uVar2 == 0xfffffffd) {\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }\n  if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }\n  else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }\n  param_2[2] = uVar4;\n  return;\n}" primitive_type (function_declarator "FUN_00229110(undefined8 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  long *plVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar4 = FUN_00228d30();\n  *param_2 = uVar4;\n  iVar5 = FUN_002005f0(param_1);\n  uVar1 = *(uint *)(param_1 + 3);\n  uVar2 = *(uint *)((long)param_1 + 0x14);\n  param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);\n  uVar4 = *(undefined4 *)(param_1 + 4);\n  if (uVar2 == 0xfffffffd) {\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }\n  if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }\n  else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }\n  param_2[2] = uVar4;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "uVar4 = FUN_00228d30();" (assignment_expression "uVar4 = FUN_00228d30()" identifier = (call_expression "FUN_00228d30()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar5 = FUN_002005f0(param_1);" (assignment_expression "iVar5 = FUN_002005f0(param_1)" identifier = (call_expression "FUN_002005f0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 3);" (assignment_expression "uVar1 = *(uint *)(param_1 + 3)" identifier = (pointer_expression "*(uint *)(param_1 + 3)" * (cast_expression "(uint *)(param_1 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)((long)param_1 + 0x14);" (assignment_expression "uVar2 = *(uint *)((long)param_1 + 0x14)" identifier = (pointer_expression "*(uint *)((long)param_1 + 0x14)" * (cast_expression "(uint *)((long)param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);" (assignment_expression "param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff)" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "iVar5 * 0x100 + (uVar1 & 0xff)" (binary_expression "iVar5 * 0x100" identifier * number_literal) + (parenthesized_expression "(uVar1 & 0xff)" ( (binary_expression "uVar1 & 0xff" identifier & number_literal) )))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 == 0xfffffffd) {\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }" if (parenthesized_expression "(uVar2 == 0xfffffffd)" ( (binary_expression "uVar2 == 0xfffffffd" identifier == number_literal) )) (compound_statement "{\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }" { (expression_statement "plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);" (assignment_expression "plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18)" identifier = (pointer_expression "*(long **)(PTR_DAT_0043e6b0 + 0x18)" * (cast_expression "(long **)(PTR_DAT_0043e6b0 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0043e6b0 + 0x18)" ( (binary_expression "PTR_DAT_0043e6b0 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" if (parenthesized_expression "(plVar3 != (long *)0x0)" ( (binary_expression "plVar3 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" { (expression_statement "uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);" (assignment_expression "uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4)" identifier = (call_expression "(**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4)" (parenthesized_expression "(**(code **)(*plVar3 + 0x60))" ( (pointer_expression "**(code **)(*plVar3 + 0x60)" * (pointer_expression "*(code **)(*plVar3 + 0x60)" * (cast_expression "(code **)(*plVar3 + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar3 + 0x60)" ( (binary_expression "*plVar3 + 0x60" (pointer_expression "*plVar3" * identifier) + number_literal) ))))) )) (argument_list "(plVar3,*param_1,uVar1 & 0xfffffff,uVar4)" ( identifier , (pointer_expression "*param_1" * identifier) , (binary_expression "uVar1 & 0xfffffff" identifier & number_literal) , identifier )))) ;) (expression_statement "param_2[2] = uVar4;" (assignment_expression "param_2[2] = uVar4" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0017c650("../../gold/parameters.h",0x69,"target");" (call_expression "FUN_0017c650("../../gold/parameters.h",0x69,"target")" identifier (argument_list "("../../gold/parameters.h",0x69,"target")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") ))) ;) })) (if_statement "if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }\n  else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }" if (parenthesized_expression "((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0)" ( (binary_expression "(*(byte *)((long)param_1 + 0x1b) & 0x20) == 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x1b) & 0x20)" ( (binary_expression "*(byte *)((long)param_1 + 0x1b) & 0x20" (pointer_expression "*(byte *)((long)param_1 + 0x1b)" * (cast_expression "(byte *)((long)param_1 + 0x1b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1b)" ( (binary_expression "(long)param_1 + 0x1b" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }" { (if_statement "if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" if (parenthesized_expression "(((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0))" ( (binary_expression "((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)" (parenthesized_expression "((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc))" ( (binary_expression "(uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)" (parenthesized_expression "(uVar2 < 0xfffffffe)" ( (binary_expression "uVar2 < 0xfffffffe" identifier < number_literal) )) && (parenthesized_expression "(uVar2 != 0xfffffffc)" ( (binary_expression "uVar2 != 0xfffffffc" identifier != number_literal) ))) )) && (parenthesized_expression "((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)" ( (binary_expression "(*(byte *)((long)param_1 + 0x1b) & 0x40) != 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x1b) & 0x40)" ( (binary_expression "*(byte *)((long)param_1 + 0x1b) & 0x40" (pointer_expression "*(byte *)((long)param_1 + 0x1b)" * (cast_expression "(byte *)((long)param_1 + 0x1b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1b)" ( (binary_expression "(long)param_1 + 0x1b" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" { (expression_statement "uVar4 = FUN_00228ba0(param_1,uVar4);" (assignment_expression "uVar4 = FUN_00228ba0(param_1,uVar4)" identifier = (call_expression "FUN_00228ba0(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier )))) ;) (expression_statement "param_2[2] = uVar4;" (assignment_expression "param_2[2] = uVar4" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }" else (compound_statement "{\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }" { (expression_statement "uVar4 = FUN_00200320(param_1,uVar4);" (assignment_expression "uVar4 = FUN_00200320(param_1,uVar4)" identifier = (call_expression "FUN_00200320(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier )))) ;) }))) (expression_statement "param_2[2] = uVar4;" (assignment_expression "param_2[2] = uVar4" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void write(Output_reloc<4,_false,_32,_false> * this, uchar * pov) */\n\nssize_t __thiscall\ngold::Output_reloc<4,_false,_32,_false>::write\n          (Output_reloc<4,_false,_32,_false> *this,int __fd,void *__buf,size_t __n)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  Target *pTVar4;\n  Elf_Addr EVar5;\n  uint uVar6;\n  ulong uVar7;\n  undefined4 extraout_var;\n  undefined4 extraout_var_00;\n  ssize_t sVar8;\n  undefined4 in_register_00000034;\n  Elf_Addr *pEVar9;\n  \n  pEVar9 = (Elf_Addr *)CONCAT44(in_register_00000034,__fd);\n  EVar5 = Output_reloc<9,_false,_32,_false>::get_address(&this->rel_);\n  *pEVar9 = EVar5;\n  uVar6 = Output_reloc<9,_false,_32,_false>::get_symbol_index(&this->rel_);\n  uVar2 = *(uint *)&(this->rel_).field_0x18;\n  uVar3 = (this->rel_).local_sym_index_;\n  pEVar9[1] = uVar6 * 0x100 + (uVar2 & 0xff);\n  uVar6 = this->addend_;\n  uVar7 = (ulong)uVar6;\n  if (uVar3 == 0xfffffffd) {\n    pTVar4 = parameters->target_;\n    if (pTVar4 != (Target *)0x0) {\n      sVar8 = (**(code **)(*(long *)pTVar4 + 0x60))\n                        (pTVar4,(this->rel_).u1_.relobj,uVar2 & 0xfffffff,uVar7);\n      pEVar9[2] = (Elf_Addr)sVar8;\n      return sVar8;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }\n  bVar1 = (this->rel_).field_0x1b;\n  if ((bVar1 & 0x20) == 0) {\n    if (((uVar3 < 0xfffffffe) && (uVar3 != 0xfffffffc)) && ((bVar1 & 0x40) != 0)) {\n      EVar5 = Output_reloc<9,_false,_32,_false>::local_section_offset(&this->rel_,uVar6);\n      pEVar9[2] = EVar5;\n      return CONCAT44(extraout_var,EVar5);\n    }\n  }\n  else {\n    EVar5 = Output_reloc<9,_false,_32,_false>::symbol_value(&this->rel_,uVar6);\n    uVar7 = CONCAT44(extraout_var_00,EVar5);\n  }\n  pEVar9[2] = (Elf_Addr)uVar7;\n  return uVar7;\n}\n\n" comment comment (declaration "ssize_t __thiscall\ngold::Output_reloc<4,_false,_32,_false>::write\n          (Output_reloc<4,_false,_32,_false> *this,int __fd,void *__buf,size_t __n)\n\n{\n  byte bVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<4" < number_literal) , identifier , identifier , (ERROR "_false>::write\n          (Output_reloc<4,_false,_32,_false> *this,int __fd,void *__buf,size_t __n)\n\n{\n  byte" (function_declarator "_false>::write\n          (Output_reloc<4,_false,_32,_false> *this,int __fd,void *__buf,size_t __n)" identifier (ERROR ">::write" > : : identifier) (parameter_list "(Output_reloc<4,_false,_32,_false> *this,int __fd,void *__buf,size_t __n)" ( (parameter_declaration "Output_reloc" type_identifier) (ERROR "<4" < number_literal) , (parameter_declaration "_false" type_identifier) , (parameter_declaration "_32" type_identifier) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (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) ))) { identifier) identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "Target *pTVar4;" type_identifier (pointer_declarator "*pTVar4" * identifier) ;) (declaration "Elf_Addr EVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "undefined4 extraout_var;" type_identifier identifier ;) (declaration "undefined4 extraout_var_00;" type_identifier identifier ;) (declaration "ssize_t sVar8;" primitive_type identifier ;) (declaration "undefined4 in_register_00000034;" type_identifier identifier ;) (declaration "Elf_Addr *pEVar9;" type_identifier (pointer_declarator "*pEVar9" * identifier) ;) (expression_statement "pEVar9 = (Elf_Addr *)CONCAT44(in_register_00000034,__fd);" (assignment_expression "pEVar9 = (Elf_Addr *)CONCAT44(in_register_00000034,__fd)" identifier = (cast_expression "(Elf_Addr *)CONCAT44(in_register_00000034,__fd)" ( (type_descriptor "Elf_Addr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "CONCAT44(in_register_00000034,__fd)" identifier (argument_list "(in_register_00000034,__fd)" ( identifier , identifier ))))) ;) (expression_statement "EVar5 = Output_reloc<9,_false,_32,_false>::get_address(&this->rel_);" (update_expression "EVar5 = Output_reloc<9,_false,_32,_false>::get_address(&this->rel_)" (binary_expression "EVar5 = Output_reloc<9,_false,_32,_false>::get_address(&this->rel_)" (assignment_expression "EVar5 = Output_reloc<9" identifier = (binary_expression "Output_reloc<9" identifier < number_literal)) (ERROR ",_false,_32,_false" , identifier , identifier , identifier) > (ERROR "::" : :) (call_expression "get_address(&this->rel_)" identifier (argument_list "(&this->rel_)" ( (pointer_expression "&this->rel_" & (field_expression "this->rel_" identifier -> field_identifier)) )))) --) ;) (expression_statement "*pEVar9 = EVar5;" (assignment_expression "*pEVar9 = EVar5" (pointer_expression "*pEVar9" * identifier) = identifier) ;) (expression_statement "uVar6 = Output_reloc<9,_false,_32,_false>::get_symbol_index(&this->rel_);" (update_expression "uVar6 = Output_reloc<9,_false,_32,_false>::get_symbol_index(&this->rel_)" (binary_expression "uVar6 = Output_reloc<9,_false,_32,_false>::get_symbol_index(&this->rel_)" (assignment_expression "uVar6 = Output_reloc<9" identifier = (binary_expression "Output_reloc<9" identifier < number_literal)) (ERROR ",_false,_32,_false" , identifier , identifier , identifier) > (ERROR "::" : :) (call_expression "get_symbol_index(&this->rel_)" identifier (argument_list "(&this->rel_)" ( (pointer_expression "&this->rel_" & (field_expression "this->rel_" identifier -> field_identifier)) )))) --) ;) (expression_statement "uVar2 = *(uint *)&(this->rel_).field_0x18;" (assignment_expression "uVar2 = *(uint *)&(this->rel_).field_0x18" identifier = (pointer_expression "*(uint *)&(this->rel_).field_0x18" * (cast_expression "(uint *)&(this->rel_).field_0x18" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(this->rel_).field_0x18" & (field_expression "(this->rel_).field_0x18" (parenthesized_expression "(this->rel_)" ( (field_expression "this->rel_" identifier -> field_identifier) )) . field_identifier))))) ;) (expression_statement "uVar3 = (this->rel_).local_sym_index_;" (assignment_expression "uVar3 = (this->rel_).local_sym_index_" identifier = (field_expression "(this->rel_).local_sym_index_" (parenthesized_expression "(this->rel_)" ( (field_expression "this->rel_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pEVar9[1] = uVar6 * 0x100 + (uVar2 & 0xff);" (assignment_expression "pEVar9[1] = uVar6 * 0x100 + (uVar2 & 0xff)" (subscript_expression "pEVar9[1]" identifier [ number_literal ]) = (binary_expression "uVar6 * 0x100 + (uVar2 & 0xff)" (binary_expression "uVar6 * 0x100" identifier * number_literal) + (parenthesized_expression "(uVar2 & 0xff)" ( (binary_expression "uVar2 & 0xff" identifier & number_literal) )))) ;) (expression_statement "uVar6 = this->addend_;" (assignment_expression "uVar6 = this->addend_" identifier = (field_expression "this->addend_" identifier -> field_identifier)) ;) (expression_statement "uVar7 = (ulong)uVar6;" (assignment_expression "uVar7 = (ulong)uVar6" identifier = (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (uVar3 == 0xfffffffd) {\n    pTVar4 = parameters->target_;\n    if (pTVar4 != (Target *)0x0) {\n      sVar8 = (**(code **)(*(long *)pTVar4 + 0x60))\n                        (pTVar4,(this->rel_).u1_.relobj,uVar2 & 0xfffffff,uVar7);\n      pEVar9[2] = (Elf_Addr)sVar8;\n      return sVar8;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }" if (parenthesized_expression "(uVar3 == 0xfffffffd)" ( (binary_expression "uVar3 == 0xfffffffd" identifier == number_literal) )) (compound_statement "{\n    pTVar4 = parameters->target_;\n    if (pTVar4 != (Target *)0x0) {\n      sVar8 = (**(code **)(*(long *)pTVar4 + 0x60))\n                        (pTVar4,(this->rel_).u1_.relobj,uVar2 & 0xfffffff,uVar7);\n      pEVar9[2] = (Elf_Addr)sVar8;\n      return sVar8;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }" { (expression_statement "pTVar4 = parameters->target_;" (assignment_expression "pTVar4 = parameters->target_" identifier = (field_expression "parameters->target_" identifier -> field_identifier)) ;) (if_statement "if (pTVar4 != (Target *)0x0) {\n      sVar8 = (**(code **)(*(long *)pTVar4 + 0x60))\n                        (pTVar4,(this->rel_).u1_.relobj,uVar2 & 0xfffffff,uVar7);\n      pEVar9[2] = (Elf_Addr)sVar8;\n      return sVar8;\n    }" if (parenthesized_expression "(pTVar4 != (Target *)0x0)" ( (binary_expression "pTVar4 != (Target *)0x0" identifier != (cast_expression "(Target *)0x0" ( (type_descriptor "Target *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar8 = (**(code **)(*(long *)pTVar4 + 0x60))\n                        (pTVar4,(this->rel_).u1_.relobj,uVar2 & 0xfffffff,uVar7);\n      pEVar9[2] = (Elf_Addr)sVar8;\n      return sVar8;\n    }" { (expression_statement "sVar8 = (**(code **)(*(long *)pTVar4 + 0x60))\n                        (pTVar4,(this->rel_).u1_.relobj,uVar2 & 0xfffffff,uVar7);" (assignment_expression "sVar8 = (**(code **)(*(long *)pTVar4 + 0x60))\n                        (pTVar4,(this->rel_).u1_.relobj,uVar2 & 0xfffffff,uVar7)" identifier = (call_expression "(**(code **)(*(long *)pTVar4 + 0x60))\n                        (pTVar4,(this->rel_).u1_.relobj,uVar2 & 0xfffffff,uVar7)" (parenthesized_expression "(**(code **)(*(long *)pTVar4 + 0x60))" ( (pointer_expression "**(code **)(*(long *)pTVar4 + 0x60)" * (pointer_expression "*(code **)(*(long *)pTVar4 + 0x60)" * (cast_expression "(code **)(*(long *)pTVar4 + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)pTVar4 + 0x60)" ( (binary_expression "*(long *)pTVar4 + 0x60" (pointer_expression "*(long *)pTVar4" * (cast_expression "(long *)pTVar4" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pTVar4,(this->rel_).u1_.relobj,uVar2 & 0xfffffff,uVar7)" ( identifier , (field_expression "(this->rel_).u1_.relobj" (field_expression "(this->rel_).u1_" (parenthesized_expression "(this->rel_)" ( (field_expression "this->rel_" identifier -> field_identifier) )) . field_identifier) . field_identifier) , (binary_expression "uVar2 & 0xfffffff" identifier & number_literal) , identifier )))) ;) (expression_statement "pEVar9[2] = (Elf_Addr)sVar8;" (assignment_expression "pEVar9[2] = (Elf_Addr)sVar8" (subscript_expression "pEVar9[2]" identifier [ number_literal ]) = (cast_expression "(Elf_Addr)sVar8" ( (type_descriptor "Elf_Addr" type_identifier) ) identifier)) ;) (return_statement "return sVar8;" return identifier ;) })) comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x69,"target");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x69,"target")" identifier (argument_list "("../../gold/parameters.h",0x69,"target")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") ))) ;) })) (expression_statement "bVar1 = (this->rel_).field_0x1b;" (assignment_expression "bVar1 = (this->rel_).field_0x1b" identifier = (field_expression "(this->rel_).field_0x1b" (parenthesized_expression "(this->rel_)" ( (field_expression "this->rel_" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((bVar1 & 0x20) == 0) {\n    if (((uVar3 < 0xfffffffe) && (uVar3 != 0xfffffffc)) && ((bVar1 & 0x40) != 0)) {\n      EVar5 = Output_reloc<9,_false,_32,_false>::local_section_offset(&this->rel_,uVar6);\n      pEVar9[2] = EVar5;\n      return CONCAT44(extraout_var,EVar5);\n    }\n  }\n  else {\n    EVar5 = Output_reloc<9,_false,_32,_false>::symbol_value(&this->rel_,uVar6);\n    uVar7 = CONCAT44(extraout_var_00,EVar5);\n  }" if (parenthesized_expression "((bVar1 & 0x20) == 0)" ( (binary_expression "(bVar1 & 0x20) == 0" (parenthesized_expression "(bVar1 & 0x20)" ( (binary_expression "bVar1 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uVar3 < 0xfffffffe) && (uVar3 != 0xfffffffc)) && ((bVar1 & 0x40) != 0)) {\n      EVar5 = Output_reloc<9,_false,_32,_false>::local_section_offset(&this->rel_,uVar6);\n      pEVar9[2] = EVar5;\n      return CONCAT44(extraout_var,EVar5);\n    }\n  }" { (if_statement "if (((uVar3 < 0xfffffffe) && (uVar3 != 0xfffffffc)) && ((bVar1 & 0x40) != 0)) {\n      EVar5 = Output_reloc<9,_false,_32,_false>::local_section_offset(&this->rel_,uVar6);\n      pEVar9[2] = EVar5;\n      return CONCAT44(extraout_var,EVar5);\n    }" if (parenthesized_expression "(((uVar3 < 0xfffffffe) && (uVar3 != 0xfffffffc)) && ((bVar1 & 0x40) != 0))" ( (binary_expression "((uVar3 < 0xfffffffe) && (uVar3 != 0xfffffffc)) && ((bVar1 & 0x40) != 0)" (parenthesized_expression "((uVar3 < 0xfffffffe) && (uVar3 != 0xfffffffc))" ( (binary_expression "(uVar3 < 0xfffffffe) && (uVar3 != 0xfffffffc)" (parenthesized_expression "(uVar3 < 0xfffffffe)" ( (binary_expression "uVar3 < 0xfffffffe" identifier < number_literal) )) && (parenthesized_expression "(uVar3 != 0xfffffffc)" ( (binary_expression "uVar3 != 0xfffffffc" identifier != number_literal) ))) )) && (parenthesized_expression "((bVar1 & 0x40) != 0)" ( (binary_expression "(bVar1 & 0x40) != 0" (parenthesized_expression "(bVar1 & 0x40)" ( (binary_expression "bVar1 & 0x40" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      EVar5 = Output_reloc<9,_false,_32,_false>::local_section_offset(&this->rel_,uVar6);\n      pEVar9[2] = EVar5;\n      return CONCAT44(extraout_var,EVar5);\n    }" { (expression_statement "EVar5 = Output_reloc<9,_false,_32,_false>::local_section_offset(&this->rel_,uVar6);" (comma_expression "EVar5 = Output_reloc<9,_false,_32,_false>::local_section_offset(&this->rel_,uVar6)" (assignment_expression "EVar5 = Output_reloc<9" identifier = (binary_expression "Output_reloc<9" identifier < number_literal)) , (comma_expression "_false,_32,_false>::local_section_offset(&this->rel_,uVar6)" identifier , (comma_expression "_32,_false>::local_section_offset(&this->rel_,uVar6)" identifier , (binary_expression "_false>::local_section_offset(&this->rel_,uVar6)" identifier > (ERROR "::" : :) (call_expression "local_section_offset(&this->rel_,uVar6)" identifier (argument_list "(&this->rel_,uVar6)" ( (pointer_expression "&this->rel_" & (field_expression "this->rel_" identifier -> field_identifier)) , identifier ))))))) ;) (expression_statement "pEVar9[2] = EVar5;" (assignment_expression "pEVar9[2] = EVar5" (subscript_expression "pEVar9[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return CONCAT44(extraout_var,EVar5);" return (call_expression "CONCAT44(extraout_var,EVar5)" identifier (argument_list "(extraout_var,EVar5)" ( identifier , identifier ))) ;) })) }) (else_clause "else {\n    EVar5 = Output_reloc<9,_false,_32,_false>::symbol_value(&this->rel_,uVar6);\n    uVar7 = CONCAT44(extraout_var_00,EVar5);\n  }" else (compound_statement "{\n    EVar5 = Output_reloc<9,_false,_32,_false>::symbol_value(&this->rel_,uVar6);\n    uVar7 = CONCAT44(extraout_var_00,EVar5);\n  }" { (expression_statement "EVar5 = Output_reloc<9,_false,_32,_false>::symbol_value(&this->rel_,uVar6);" (comma_expression "EVar5 = Output_reloc<9,_false,_32,_false>::symbol_value(&this->rel_,uVar6)" (assignment_expression "EVar5 = Output_reloc<9" identifier = (binary_expression "Output_reloc<9" identifier < number_literal)) , (comma_expression "_false,_32,_false>::symbol_value(&this->rel_,uVar6)" identifier , (comma_expression "_32,_false>::symbol_value(&this->rel_,uVar6)" identifier , (binary_expression "_false>::symbol_value(&this->rel_,uVar6)" identifier > (ERROR "::" : :) (call_expression "symbol_value(&this->rel_,uVar6)" identifier (argument_list "(&this->rel_,uVar6)" ( (pointer_expression "&this->rel_" & (field_expression "this->rel_" identifier -> field_identifier)) , identifier ))))))) ;) (expression_statement "uVar7 = CONCAT44(extraout_var_00,EVar5);" (assignment_expression "uVar7 = CONCAT44(extraout_var_00,EVar5)" identifier = (call_expression "CONCAT44(extraout_var_00,EVar5)" identifier (argument_list "(extraout_var_00,EVar5)" ( identifier , identifier )))) ;) }))) (expression_statement "pEVar9[2] = (Elf_Addr)uVar7;" (assignment_expression "pEVar9[2] = (Elf_Addr)uVar7" (subscript_expression "pEVar9[2]" identifier [ number_literal ]) = (cast_expression "(Elf_Addr)uVar7" ( (type_descriptor "Elf_Addr" type_identifier) ) identifier)) ;) (return_statement "return uVar7;" return identifier ;) (ERROR "}" }))
(translation_unit "void FUN_00229110(undefined8 *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  long *plVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar4 = FUN_00228d30();\n  *param_2 = uVar4;\n  iVar5 = FUN_002005f0(param_1);\n  uVar1 = *(uint *)(param_1 + 3);\n  uVar2 = *(uint *)((long)param_1 + 0x14);\n  param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);\n  uVar4 = *(undefined4 *)(param_1 + 4);\n  if (uVar2 == 0xfffffffd) {\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    \n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }\n  if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }\n  else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }\n  param_2[2] = uVar4;\n  return;\n}\n\n" (function_definition "void FUN_00229110(undefined8 *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  long *plVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar4 = FUN_00228d30();\n  *param_2 = uVar4;\n  iVar5 = FUN_002005f0(param_1);\n  uVar1 = *(uint *)(param_1 + 3);\n  uVar2 = *(uint *)((long)param_1 + 0x14);\n  param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);\n  uVar4 = *(undefined4 *)(param_1 + 4);\n  if (uVar2 == 0xfffffffd) {\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    \n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }\n  if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }\n  else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }\n  param_2[2] = uVar4;\n  return;\n}" primitive_type (function_declarator "FUN_00229110(undefined8 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  long *plVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar4 = FUN_00228d30();\n  *param_2 = uVar4;\n  iVar5 = FUN_002005f0(param_1);\n  uVar1 = *(uint *)(param_1 + 3);\n  uVar2 = *(uint *)((long)param_1 + 0x14);\n  param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);\n  uVar4 = *(undefined4 *)(param_1 + 4);\n  if (uVar2 == 0xfffffffd) {\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    \n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }\n  if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }\n  else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }\n  param_2[2] = uVar4;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "uVar4 = FUN_00228d30();" (assignment_expression "uVar4 = FUN_00228d30()" identifier = (call_expression "FUN_00228d30()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar5 = FUN_002005f0(param_1);" (assignment_expression "iVar5 = FUN_002005f0(param_1)" identifier = (call_expression "FUN_002005f0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 3);" (assignment_expression "uVar1 = *(uint *)(param_1 + 3)" identifier = (pointer_expression "*(uint *)(param_1 + 3)" * (cast_expression "(uint *)(param_1 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)((long)param_1 + 0x14);" (assignment_expression "uVar2 = *(uint *)((long)param_1 + 0x14)" identifier = (pointer_expression "*(uint *)((long)param_1 + 0x14)" * (cast_expression "(uint *)((long)param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);" (assignment_expression "param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff)" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "iVar5 * 0x100 + (uVar1 & 0xff)" (binary_expression "iVar5 * 0x100" identifier * number_literal) + (parenthesized_expression "(uVar1 & 0xff)" ( (binary_expression "uVar1 & 0xff" identifier & number_literal) )))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 == 0xfffffffd) {\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    \n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }" if (parenthesized_expression "(uVar2 == 0xfffffffd)" ( (binary_expression "uVar2 == 0xfffffffd" identifier == number_literal) )) (compound_statement "{\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    \n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }" { (expression_statement "plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);" (assignment_expression "plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18)" identifier = (pointer_expression "*(long **)(PTR_DAT_0043e6b0 + 0x18)" * (cast_expression "(long **)(PTR_DAT_0043e6b0 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0043e6b0 + 0x18)" ( (binary_expression "PTR_DAT_0043e6b0 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" if (parenthesized_expression "(plVar3 != (long *)0x0)" ( (binary_expression "plVar3 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" { (expression_statement "uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);" (assignment_expression "uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4)" identifier = (call_expression "(**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4)" (parenthesized_expression "(**(code **)(*plVar3 + 0x60))" ( (pointer_expression "**(code **)(*plVar3 + 0x60)" * (pointer_expression "*(code **)(*plVar3 + 0x60)" * (cast_expression "(code **)(*plVar3 + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar3 + 0x60)" ( (binary_expression "*plVar3 + 0x60" (pointer_expression "*plVar3" * identifier) + number_literal) ))))) )) (argument_list "(plVar3,*param_1,uVar1 & 0xfffffff,uVar4)" ( identifier , (pointer_expression "*param_1" * identifier) , (binary_expression "uVar1 & 0xfffffff" identifier & number_literal) , identifier )))) ;) (expression_statement "param_2[2] = uVar4;" (assignment_expression "param_2[2] = uVar4" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0017c650("../../gold/parameters.h",0x69,"target");" (call_expression "FUN_0017c650("../../gold/parameters.h",0x69,"target")" identifier (argument_list "("../../gold/parameters.h",0x69,"target")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") ))) ;) })) (if_statement "if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }\n  else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }" if (parenthesized_expression "((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0)" ( (binary_expression "(*(byte *)((long)param_1 + 0x1b) & 0x20) == 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x1b) & 0x20)" ( (binary_expression "*(byte *)((long)param_1 + 0x1b) & 0x20" (pointer_expression "*(byte *)((long)param_1 + 0x1b)" * (cast_expression "(byte *)((long)param_1 + 0x1b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1b)" ( (binary_expression "(long)param_1 + 0x1b" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }" { (if_statement "if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" if (parenthesized_expression "(((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0))" ( (binary_expression "((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)" (parenthesized_expression "((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc))" ( (binary_expression "(uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)" (parenthesized_expression "(uVar2 < 0xfffffffe)" ( (binary_expression "uVar2 < 0xfffffffe" identifier < number_literal) )) && (parenthesized_expression "(uVar2 != 0xfffffffc)" ( (binary_expression "uVar2 != 0xfffffffc" identifier != number_literal) ))) )) && (parenthesized_expression "((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)" ( (binary_expression "(*(byte *)((long)param_1 + 0x1b) & 0x40) != 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x1b) & 0x40)" ( (binary_expression "*(byte *)((long)param_1 + 0x1b) & 0x40" (pointer_expression "*(byte *)((long)param_1 + 0x1b)" * (cast_expression "(byte *)((long)param_1 + 0x1b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1b)" ( (binary_expression "(long)param_1 + 0x1b" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" { (expression_statement "uVar4 = FUN_00228ba0(param_1,uVar4);" (assignment_expression "uVar4 = FUN_00228ba0(param_1,uVar4)" identifier = (call_expression "FUN_00228ba0(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier )))) ;) (expression_statement "param_2[2] = uVar4;" (assignment_expression "param_2[2] = uVar4" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }" else (compound_statement "{\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }" { (expression_statement "uVar4 = FUN_00200320(param_1,uVar4);" (assignment_expression "uVar4 = FUN_00200320(param_1,uVar4)" identifier = (call_expression "FUN_00200320(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier )))) ;) }))) (expression_statement "param_2[2] = uVar4;" (assignment_expression "param_2[2] = uVar4" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression IDENT * LIT) + (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , (pointer_expression * IDENT) , (binary_expression IDENT & LIT) , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00229110(undefined8 *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  long *plVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar4 = FUN_00228d30();\n  *param_2 = uVar4;\n  iVar5 = FUN_002005f0(param_1);\n  uVar1 = *(uint *)(param_1 + 3);\n  uVar2 = *(uint *)((long)param_1 + 0x14);\n  param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);\n  uVar4 = *(undefined4 *)(param_1 + 4);\n  if (uVar2 == 0xfffffffd) {\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    \n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }\n  if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }\n  else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }\n  param_2[2] = uVar4;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00229110(undefined8 *param_1,undefined4 *param_2)" (identifier "FUN_00229110") (parameter_list "(undefined8 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  long *plVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar4 = FUN_00228d30();\n  *param_2 = uVar4;\n  iVar5 = FUN_002005f0(param_1);\n  uVar1 = *(uint *)(param_1 + 3);\n  uVar2 = *(uint *)((long)param_1 + 0x14);\n  param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);\n  uVar4 = *(undefined4 *)(param_1 + 4);\n  if (uVar2 == 0xfffffffd) {\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    \n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }\n  if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }\n  else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }\n  param_2[2] = uVar4;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "long *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "uVar4 = FUN_00228d30();" (assignment_expression "uVar4 = FUN_00228d30()" (identifier "uVar4") (= "=") (call_expression "FUN_00228d30()" (identifier "FUN_00228d30") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "iVar5 = FUN_002005f0(param_1);" (assignment_expression "iVar5 = FUN_002005f0(param_1)" (identifier "iVar5") (= "=") (call_expression "FUN_002005f0(param_1)" (identifier "FUN_002005f0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 3);" (assignment_expression "uVar1 = *(uint *)(param_1 + 3)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 3)" (* "*") (cast_expression "(uint *)(param_1 + 3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(uint *)((long)param_1 + 0x14);" (assignment_expression "uVar2 = *(uint *)((long)param_1 + 0x14)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)((long)param_1 + 0x14)" (* "*") (cast_expression "(uint *)((long)param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x14)" (( "(") (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);" (assignment_expression "param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff)" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar5 * 0x100 + (uVar1 & 0xff)" (binary_expression "iVar5 * 0x100" (identifier "iVar5") (* "*") (number_literal "0x100")) (+ "+") (parenthesized_expression "(uVar1 & 0xff)" (( "(") (binary_expression "uVar1 & 0xff" (identifier "uVar1") (& "&") (number_literal "0xff")) () ")")))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 4)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (uVar2 == 0xfffffffd) {\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    \n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }" (if "if") (parenthesized_expression "(uVar2 == 0xfffffffd)" (( "(") (binary_expression "uVar2 == 0xfffffffd" (identifier "uVar2") (== "==") (number_literal "0xfffffffd")) () ")")) (compound_statement "{\n    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);\n    if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n                    \n    FUN_0017c650("../../gold/parameters.h",0x69,"target");\n  }" ({ "{") (expression_statement "plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);" (assignment_expression "plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18)" (identifier "plVar3") (= "=") (pointer_expression "*(long **)(PTR_DAT_0043e6b0 + 0x18)" (* "*") (cast_expression "(long **)(PTR_DAT_0043e6b0 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_0043e6b0 + 0x18)" (( "(") (binary_expression "PTR_DAT_0043e6b0 + 0x18" (identifier "PTR_DAT_0043e6b0") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (plVar3 != (long *)0x0) {\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" (if "if") (parenthesized_expression "(plVar3 != (long *)0x0)" (( "(") (binary_expression "plVar3 != (long *)0x0" (identifier "plVar3") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" ({ "{") (expression_statement "uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);" (assignment_expression "uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4)" (identifier "uVar4") (= "=") (call_expression "(**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4)" (parenthesized_expression "(**(code **)(*plVar3 + 0x60))" (( "(") (pointer_expression "**(code **)(*plVar3 + 0x60)" (* "*") (pointer_expression "*(code **)(*plVar3 + 0x60)" (* "*") (cast_expression "(code **)(*plVar3 + 0x60)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar3 + 0x60)" (( "(") (binary_expression "*plVar3 + 0x60" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (+ "+") (number_literal "0x60")) () ")"))))) () ")")) (argument_list "(plVar3,*param_1,uVar1 & 0xfffffff,uVar4)" (( "(") (identifier "plVar3") (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (binary_expression "uVar1 & 0xfffffff" (identifier "uVar1") (& "&") (number_literal "0xfffffff")) (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "param_2[2] = uVar4;" (assignment_expression "param_2[2] = uVar4" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0017c650("../../gold/parameters.h",0x69,"target");" (call_expression "FUN_0017c650("../../gold/parameters.h",0x69,"target")" (identifier "FUN_0017c650") (argument_list "("../../gold/parameters.h",0x69,"target")" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x69") (, ",") (string_literal ""target"" (" """) (string_content "target") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }\n  else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }" (if "if") (parenthesized_expression "((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)((long)param_1 + 0x1b) & 0x20) == 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x1b) & 0x20)" (( "(") (binary_expression "*(byte *)((long)param_1 + 0x1b) & 0x20" (pointer_expression "*(byte *)((long)param_1 + 0x1b)" (* "*") (cast_expression "(byte *)((long)param_1 + 0x1b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x1b)" (( "(") (binary_expression "(long)param_1 + 0x1b" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1b")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }\n  }" ({ "{") (if_statement "if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" (if "if") (parenthesized_expression "(((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0))" (( "(") (binary_expression "((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&\n       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)" (parenthesized_expression "((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc))" (( "(") (binary_expression "(uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)" (parenthesized_expression "(uVar2 < 0xfffffffe)" (( "(") (binary_expression "uVar2 < 0xfffffffe" (identifier "uVar2") (< "<") (number_literal "0xfffffffe")) () ")")) (&& "&&") (parenthesized_expression "(uVar2 != 0xfffffffc)" (( "(") (binary_expression "uVar2 != 0xfffffffc" (identifier "uVar2") (!= "!=") (number_literal "0xfffffffc")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)" (( "(") (binary_expression "(*(byte *)((long)param_1 + 0x1b) & 0x40) != 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x1b) & 0x40)" (( "(") (binary_expression "*(byte *)((long)param_1 + 0x1b) & 0x40" (pointer_expression "*(byte *)((long)param_1 + 0x1b)" (* "*") (cast_expression "(byte *)((long)param_1 + 0x1b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x1b)" (( "(") (binary_expression "(long)param_1 + 0x1b" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1b")) () ")")))) (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar4 = FUN_00228ba0(param_1,uVar4);\n      param_2[2] = uVar4;\n      return;\n    }" ({ "{") (expression_statement "uVar4 = FUN_00228ba0(param_1,uVar4);" (assignment_expression "uVar4 = FUN_00228ba0(param_1,uVar4)" (identifier "uVar4") (= "=") (call_expression "FUN_00228ba0(param_1,uVar4)" (identifier "FUN_00228ba0") (argument_list "(param_1,uVar4)" (( "(") (identifier "param_1") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "param_2[2] = uVar4;" (assignment_expression "param_2[2] = uVar4" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }" (else "else") (compound_statement "{\n    uVar4 = FUN_00200320(param_1,uVar4);\n  }" ({ "{") (expression_statement "uVar4 = FUN_00200320(param_1,uVar4);" (assignment_expression "uVar4 = FUN_00200320(param_1,uVar4)" (identifier "uVar4") (= "=") (call_expression "FUN_00200320(param_1,uVar4)" (identifier "FUN_00200320") (argument_list "(param_1,uVar4)" (( "(") (identifier "param_1") (, ",") (identifier "uVar4") () ")")))) (; ";")) (} "}")))) (expression_statement "param_2[2] = uVar4;" (assignment_expression "param_2[2] = uVar4" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void write(Output_reloc<4,_false,_32,_false> * this, uchar * pov) */

ssize_t __thiscall
gold::var_2<4,var_11,_32,var_11>::write
          (var_2<4,var_11,_32,var_11> *this,int __fd,void *__buf,size_t __n)

{
  byte var_10;
  type_1 var_6;
  type_1 var_7;
  type_2 *var_8;
  type_3 EVar5;
  type_1 var_5;
  type_4 uVar7;
  type_5 extraout_var;
  type_5 extraout_var_00;
  ssize_t sVar8;
  type_5 in_register_00000034;
  type_3 *pEVar9;
  
  pEVar9 = (type_3 *)var_1(in_register_00000034,__fd);
  EVar5 = var_2<9,var_11,_32,var_11>::var_3(&this->rel_);
  *pEVar9 = EVar5;
  var_5 = var_2<9,var_11,_32,var_11>::var_4(&this->rel_);
  var_6 = *(type_1 *)&(this->rel_).field_0x18;
  var_7 = (this->rel_).local_sym_index_;
  pEVar9[1] = var_5 * 0x100 + (var_6 & 0xff);
  var_5 = this->addend_;
  uVar7 = (type_4)var_5;
  if (var_7 == 0xfffffffd) {
    var_8 = parameters->target_;
    if (var_8 != (type_2 *)0x0) {
      sVar8 = (**(type_6 **)(*(long *)var_8 + 0x60))
                        (var_8,(this->rel_).u1_.relobj,var_6 & 0xfffffff,uVar7);
      pEVar9[2] = (type_3)sVar8;
      return sVar8;
    }
                    /* WARNING: Subroutine does not return */
    var_9("../../gold/parameters.h",0x69,"target");
  }
  var_10 = (this->rel_).field_0x1b;
  if ((var_10 & 0x20) == 0) {
    if (((var_7 < 0xfffffffe) && (var_7 != 0xfffffffc)) && ((var_10 & 0x40) != 0)) {
      EVar5 = var_2<9,var_11,_32,var_11>::var_12(&this->rel_,var_5);
      pEVar9[2] = EVar5;
      return var_1(extraout_var,EVar5);
    }
  }
  else {
    EVar5 = var_2<9,var_11,_32,var_11>::var_13(&this->rel_,var_5);
    uVar7 = var_1(extraout_var_00,EVar5);
  }
  pEVar9[2] = (type_3)uVar7;
  return uVar7;
}


(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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))))

void MASKED(undefined8 *param_1,undefined4 *param_2)

{
  uint uVar1;
  uint uVar2;
  long *plVar3;
  undefined4 uVar4;
  int iVar5;
  
  uVar4 = FUN_00228d30();
  *param_2 = uVar4;
  iVar5 = FUN_002005f0(param_1);
  uVar1 = *(uint *)(param_1 + 3);
  uVar2 = *(uint *)((long)param_1 + 0x14);
  param_2[1] = iVar5 * 0x100 + (uVar1 & 0xff);
  uVar4 = *(undefined4 *)(param_1 + 4);
  if (uVar2 == 0xfffffffd) {
    plVar3 = *(long **)(PTR_DAT_0043e6b0 + 0x18);
    if (plVar3 != (long *)0x0) {
      uVar4 = (**(code **)(*plVar3 + 0x60))(plVar3,*param_1,uVar1 & 0xfffffff,uVar4);
      param_2[2] = uVar4;
      return;
    }
                    /* WARNING: Subroutine does not return */
    FUN_0017c650("../../gold/parameters.h",0x69,"target");
  }
  if ((*(byte *)((long)param_1 + 0x1b) & 0x20) == 0) {
    if (((uVar2 < 0xfffffffe) && (uVar2 != 0xfffffffc)) &&
       ((*(byte *)((long)param_1 + 0x1b) & 0x40) != 0)) {
      uVar4 = FUN_00228ba0(param_1,uVar4);
      param_2[2] = uVar4;
      return;
    }
  }
  else {
    uVar4 = FUN_00200320(param_1,uVar4);
  }
  param_2[2] = uVar4;
  return;
}

