
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original name: write_symbol<32, true>
   DWARF original prototype: void write_symbol<32,_true>(Binary_to_elf * this, string * name,
   Stringpool * strtab, section_size_type value, Elf_WXword st_size, uint shndx, uchar * * ppout) */

void __thiscall
gold::Binary_to_elf::write_symbol<32,_true>
          (Binary_to_elf *this,string *name,Stringpool *strtab,section_size_type value,
          Elf_WXword st_size,uint shndx,uchar **ppout)

{
}



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

void FUN_003699e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,
                 uint param_5,ushort param_6,undefined4 *param_7)

{
  uint *puVar1;
  int iVar2;
  uint uVar3;
  uint *puVar4;
  
  uVar3 = param_2[1];
  puVar1 = (uint *)*param_7;
  puVar4 = puVar1;
  if (uVar3 != 0) {
    uVar3 = FUN_003495e0(param_3,*param_2);
    puVar4 = (uint *)*param_7;
    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;
  }
  *puVar1 = uVar3;
  puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |
              param_4 << 0x18;
  puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |
              param_5 << 0x18;
  iVar2 = param_2[1];
  *(undefined1 *)((int)puVar1 + 0xd) = 0;
  *(char *)(puVar1 + 3) = (iVar2 != 0) << 4;
  *(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;
  *param_7 = puVar4 + 4;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x280617
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x24]
MOV EDI,dword ptr [ESP + 0x38]
MOV EAX,dword ptr [EBP + 0x4]
MOV ESI,dword ptr [EDI]
MOV EDX,ESI
TEST EAX,EAX
JNZ 0x00369a48
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESP + 0x2c]
BSWAP EAX
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x30]
BSWAP EAX
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EBP + 0x4]
MOV byte ptr [ESI + 0xd],0x0
TEST EAX,EAX
SETNZ AL
ADD EDX,0x10
SHL EAX,0x4
MOV byte ptr [ESI + 0xc],AL
MOVZX EAX,word ptr [ESP + 0x34]
ROL AX,0x8
MOV word ptr [ESI + 0xe],AX
MOV dword ptr [EDI],EDX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH dword ptr [EBP]
PUSH dword ptr [ESP + 0x34]
CALL 0x003495e0
MOV EDX,dword ptr [EDI]
ADD ESP,0x10
BSWAP EAX
JMP 0x00369a05
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_003699e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,\n                 uint param_5,ushort param_6,undefined4 *param_7)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  uVar3 = param_2[1];\n  puVar1 = (uint *)*param_7;\n  puVar4 = puVar1;\n  if (uVar3 != 0) {\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }\n  *puVar1 = uVar3;\n  puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18;\n  puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18;\n  iVar2 = param_2[1];\n  *(undefined1 *)((int)puVar1 + 0xd) = 0;\n  *(char *)(puVar1 + 3) = (iVar2 != 0) << 4;\n  *(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;\n  *param_7 = puVar4 + 4;\n  return;\n}\n\n" comment (function_definition "void FUN_003699e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,\n                 uint param_5,ushort param_6,undefined4 *param_7)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  uVar3 = param_2[1];\n  puVar1 = (uint *)*param_7;\n  puVar4 = puVar1;\n  if (uVar3 != 0) {\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }\n  *puVar1 = uVar3;\n  puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18;\n  puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18;\n  iVar2 = param_2[1];\n  *(undefined1 *)((int)puVar1 + 0xd) = 0;\n  *(char *)(puVar1 + 3) = (iVar2 != 0) << 4;\n  *(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;\n  *param_7 = puVar4 + 4;\n  return;\n}" primitive_type (function_declarator "FUN_003699e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,\n                 uint param_5,ushort param_6,undefined4 *param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,\n                 uint param_5,ushort param_6,undefined4 *param_7)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "ushort param_6" type_identifier identifier) , (parameter_declaration "undefined4 *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  uVar3 = param_2[1];\n  puVar1 = (uint *)*param_7;\n  puVar4 = puVar1;\n  if (uVar3 != 0) {\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }\n  *puVar1 = uVar3;\n  puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18;\n  puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18;\n  iVar2 = param_2[1];\n  *(undefined1 *)((int)puVar1 + 0xd) = 0;\n  *(char *)(puVar1 + 3) = (iVar2 != 0) << 4;\n  *(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;\n  *param_7 = puVar4 + 4;\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "uVar3 = param_2[1];" (assignment_expression "uVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = (uint *)*param_7;" (assignment_expression "puVar1 = (uint *)*param_7" identifier = (cast_expression "(uint *)*param_7" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_7" * identifier))) ;) (expression_statement "puVar4 = puVar1;" (assignment_expression "puVar4 = puVar1" identifier = identifier) ;) (if_statement "if (uVar3 != 0) {\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }" { (expression_statement "uVar3 = FUN_003495e0(param_3,*param_2);" (assignment_expression "uVar3 = FUN_003495e0(param_3,*param_2)" identifier = (call_expression "FUN_003495e0(param_3,*param_2)" identifier (argument_list "(param_3,*param_2)" ( identifier , (pointer_expression "*param_2" * identifier) )))) ;) (expression_statement "puVar4 = (uint *)*param_7;" (assignment_expression "puVar4 = (uint *)*param_7" identifier = (cast_expression "(uint *)*param_7" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_7" * identifier))) ;) (expression_statement "uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;" (assignment_expression "uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18" identifier = (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18" (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8" (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8" (binary_expression "uVar3 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar3 & 0xff0000) >> 8" (parenthesized_expression "(uVar3 & 0xff0000)" ( (binary_expression "uVar3 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar3 & 0xff00) << 8" (parenthesized_expression "(uVar3 & 0xff00)" ( (binary_expression "uVar3 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar3 << 0x18" identifier << number_literal))) ;) })) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18;" (assignment_expression "puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8" (binary_expression "param_4 >> 0x18" identifier >> number_literal) | (binary_expression "(param_4 & 0xff0000) >> 8" (parenthesized_expression "(param_4 & 0xff0000)" ( (binary_expression "param_4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_4 & 0xff00) << 8" (parenthesized_expression "(param_4 & 0xff00)" ( (binary_expression "param_4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_4 << 0x18" identifier << number_literal))) ;) (expression_statement "puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18;" (assignment_expression "puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (binary_expression "param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18" (binary_expression "param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8" (binary_expression "param_5 >> 0x18 | (param_5 & 0xff0000) >> 8" (binary_expression "param_5 >> 0x18" identifier >> number_literal) | (binary_expression "(param_5 & 0xff0000) >> 8" (parenthesized_expression "(param_5 & 0xff0000)" ( (binary_expression "param_5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_5 & 0xff00) << 8" (parenthesized_expression "(param_5 & 0xff00)" ( (binary_expression "param_5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_5 << 0x18" identifier << number_literal))) ;) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)((int)puVar1 + 0xd) = 0;" (assignment_expression "*(undefined1 *)((int)puVar1 + 0xd) = 0" (pointer_expression "*(undefined1 *)((int)puVar1 + 0xd)" * (cast_expression "(undefined1 *)((int)puVar1 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 0xd)" ( (binary_expression "(int)puVar1 + 0xd" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(char *)(puVar1 + 3) = (iVar2 != 0) << 4;" (assignment_expression "*(char *)(puVar1 + 3) = (iVar2 != 0) << 4" (pointer_expression "*(char *)(puVar1 + 3)" * (cast_expression "(char *)(puVar1 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 3)" ( (binary_expression "puVar1 + 3" identifier + number_literal) )))) = (binary_expression "(iVar2 != 0) << 4" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) << number_literal)) ;) (expression_statement "*(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;" (assignment_expression "*(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8" (pointer_expression "*(ushort *)((int)puVar1 + 0xe)" * (cast_expression "(ushort *)((int)puVar1 + 0xe)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 0xe)" ( (binary_expression "(int)puVar1 + 0xe" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "param_6 << 8 | param_6 >> 8" (binary_expression "param_6 << 8" identifier << number_literal) | (binary_expression "param_6 >> 8" identifier >> number_literal))) ;) (expression_statement "*param_7 = puVar4 + 4;" (assignment_expression "*param_7 = puVar4 + 4" (pointer_expression "*param_7" * identifier) = (binary_expression "puVar4 + 4" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original name: write_symbol<32, true>\n   DWARF original prototype: void write_symbol<32,_true>(Binary_to_elf * this, string * name,\n   Stringpool * strtab, section_size_type value, Elf_WXword st_size, uint shndx, uchar * * ppout) */\n\nvoid __thiscall\ngold::Binary_to_elf::write_symbol<32,_true>\n          (Binary_to_elf *this,string *name,Stringpool *strtab,section_size_type value,\n          Elf_WXword st_size,uint shndx,uchar **ppout)\n\n{\n}\n\n" comment comment (ERROR "void __thiscall\ngold::Binary_to_elf::write_symbol<32,_true>\n          (Binary_to_elf *this,string *name,Stringpool *strtab,section_size_type value,\n          Elf_WXword st_size,uint shndx,uchar **ppout)" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Binary_to_elf::" identifier : : identifier : :) identifier (ERROR "<32" < number_literal) , (function_declarator "_true>\n          (Binary_to_elf *this,string *name,Stringpool *strtab,section_size_type value,\n          Elf_WXword st_size,uint shndx,uchar **ppout)" identifier (ERROR ">" >) (parameter_list "(Binary_to_elf *this,string *name,Stringpool *strtab,section_size_type value,\n          Elf_WXword st_size,uint shndx,uchar **ppout)" ( (parameter_declaration "Binary_to_elf *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "string *name" type_identifier (pointer_declarator "*name" * identifier)) , (parameter_declaration "Stringpool *strtab" type_identifier (pointer_declarator "*strtab" * identifier)) , (parameter_declaration "section_size_type value" type_identifier identifier) , (parameter_declaration "Elf_WXword st_size" type_identifier identifier) , (parameter_declaration "uint shndx" type_identifier identifier) , (parameter_declaration "uchar **ppout" type_identifier (pointer_declarator "**ppout" * (pointer_declarator "*ppout" * identifier))) )))) (compound_statement "{\n}" { }))
(translation_unit "void FUN_003699e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,\n                 uint param_5,ushort param_6,undefined4 *param_7)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  uVar3 = param_2[1];\n  puVar1 = (uint *)*param_7;\n  puVar4 = puVar1;\n  if (uVar3 != 0) {\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }\n  *puVar1 = uVar3;\n  puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18;\n  puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18;\n  iVar2 = param_2[1];\n  *(undefined1 *)((int)puVar1 + 0xd) = 0;\n  *(char *)(puVar1 + 3) = (iVar2 != 0) << 4;\n  *(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;\n  *param_7 = puVar4 + 4;\n  return;\n}\n\n" (function_definition "void FUN_003699e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,\n                 uint param_5,ushort param_6,undefined4 *param_7)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  uVar3 = param_2[1];\n  puVar1 = (uint *)*param_7;\n  puVar4 = puVar1;\n  if (uVar3 != 0) {\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }\n  *puVar1 = uVar3;\n  puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18;\n  puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18;\n  iVar2 = param_2[1];\n  *(undefined1 *)((int)puVar1 + 0xd) = 0;\n  *(char *)(puVar1 + 3) = (iVar2 != 0) << 4;\n  *(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;\n  *param_7 = puVar4 + 4;\n  return;\n}" primitive_type (function_declarator "FUN_003699e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,\n                 uint param_5,ushort param_6,undefined4 *param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,\n                 uint param_5,ushort param_6,undefined4 *param_7)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "ushort param_6" type_identifier identifier) , (parameter_declaration "undefined4 *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  uVar3 = param_2[1];\n  puVar1 = (uint *)*param_7;\n  puVar4 = puVar1;\n  if (uVar3 != 0) {\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }\n  *puVar1 = uVar3;\n  puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18;\n  puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18;\n  iVar2 = param_2[1];\n  *(undefined1 *)((int)puVar1 + 0xd) = 0;\n  *(char *)(puVar1 + 3) = (iVar2 != 0) << 4;\n  *(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;\n  *param_7 = puVar4 + 4;\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "uVar3 = param_2[1];" (assignment_expression "uVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = (uint *)*param_7;" (assignment_expression "puVar1 = (uint *)*param_7" identifier = (cast_expression "(uint *)*param_7" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_7" * identifier))) ;) (expression_statement "puVar4 = puVar1;" (assignment_expression "puVar4 = puVar1" identifier = identifier) ;) (if_statement "if (uVar3 != 0) {\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }" { (expression_statement "uVar3 = FUN_003495e0(param_3,*param_2);" (assignment_expression "uVar3 = FUN_003495e0(param_3,*param_2)" identifier = (call_expression "FUN_003495e0(param_3,*param_2)" identifier (argument_list "(param_3,*param_2)" ( identifier , (pointer_expression "*param_2" * identifier) )))) ;) (expression_statement "puVar4 = (uint *)*param_7;" (assignment_expression "puVar4 = (uint *)*param_7" identifier = (cast_expression "(uint *)*param_7" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_7" * identifier))) ;) (expression_statement "uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;" (assignment_expression "uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18" identifier = (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18" (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8" (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8" (binary_expression "uVar3 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar3 & 0xff0000) >> 8" (parenthesized_expression "(uVar3 & 0xff0000)" ( (binary_expression "uVar3 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar3 & 0xff00) << 8" (parenthesized_expression "(uVar3 & 0xff00)" ( (binary_expression "uVar3 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar3 << 0x18" identifier << number_literal))) ;) })) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18;" (assignment_expression "puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8" (binary_expression "param_4 >> 0x18" identifier >> number_literal) | (binary_expression "(param_4 & 0xff0000) >> 8" (parenthesized_expression "(param_4 & 0xff0000)" ( (binary_expression "param_4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_4 & 0xff00) << 8" (parenthesized_expression "(param_4 & 0xff00)" ( (binary_expression "param_4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_4 << 0x18" identifier << number_literal))) ;) (expression_statement "puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18;" (assignment_expression "puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (binary_expression "param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18" (binary_expression "param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8" (binary_expression "param_5 >> 0x18 | (param_5 & 0xff0000) >> 8" (binary_expression "param_5 >> 0x18" identifier >> number_literal) | (binary_expression "(param_5 & 0xff0000) >> 8" (parenthesized_expression "(param_5 & 0xff0000)" ( (binary_expression "param_5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_5 & 0xff00) << 8" (parenthesized_expression "(param_5 & 0xff00)" ( (binary_expression "param_5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_5 << 0x18" identifier << number_literal))) ;) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)((int)puVar1 + 0xd) = 0;" (assignment_expression "*(undefined1 *)((int)puVar1 + 0xd) = 0" (pointer_expression "*(undefined1 *)((int)puVar1 + 0xd)" * (cast_expression "(undefined1 *)((int)puVar1 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 0xd)" ( (binary_expression "(int)puVar1 + 0xd" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(char *)(puVar1 + 3) = (iVar2 != 0) << 4;" (assignment_expression "*(char *)(puVar1 + 3) = (iVar2 != 0) << 4" (pointer_expression "*(char *)(puVar1 + 3)" * (cast_expression "(char *)(puVar1 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 3)" ( (binary_expression "puVar1 + 3" identifier + number_literal) )))) = (binary_expression "(iVar2 != 0) << 4" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) << number_literal)) ;) (expression_statement "*(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;" (assignment_expression "*(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8" (pointer_expression "*(ushort *)((int)puVar1 + 0xe)" * (cast_expression "(ushort *)((int)puVar1 + 0xe)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 0xe)" ( (binary_expression "(int)puVar1 + 0xe" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "param_6 << 8 | param_6 >> 8" (binary_expression "param_6 << 8" identifier << number_literal) | (binary_expression "param_6 >> 8" identifier >> number_literal))) ;) (expression_statement "*param_7 = puVar4 + 4;" (assignment_expression "*param_7 = puVar4 + 4" (pointer_expression "*param_7" * identifier) = (binary_expression "puVar4 + 4" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) << LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (binary_expression IDENT << LIT) | (binary_expression IDENT >> LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_003699e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,\n                 uint param_5,ushort param_6,undefined4 *param_7)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  uVar3 = param_2[1];\n  puVar1 = (uint *)*param_7;\n  puVar4 = puVar1;\n  if (uVar3 != 0) {\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }\n  *puVar1 = uVar3;\n  puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18;\n  puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18;\n  iVar2 = param_2[1];\n  *(undefined1 *)((int)puVar1 + 0xd) = 0;\n  *(char *)(puVar1 + 3) = (iVar2 != 0) << 4;\n  *(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;\n  *param_7 = puVar4 + 4;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003699e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,\n                 uint param_5,ushort param_6,undefined4 *param_7)" (identifier "FUN_003699e0") (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,\n                 uint param_5,ushort param_6,undefined4 *param_7)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) (, ",") (parameter_declaration "ushort param_6" (type_identifier "ushort") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 *param_7" (type_identifier "undefined4") (pointer_declarator "*param_7" (* "*") (identifier "param_7"))) () ")"))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  uVar3 = param_2[1];\n  puVar1 = (uint *)*param_7;\n  puVar4 = puVar1;\n  if (uVar3 != 0) {\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }\n  *puVar1 = uVar3;\n  puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18;\n  puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18;\n  iVar2 = param_2[1];\n  *(undefined1 *)((int)puVar1 + 0xd) = 0;\n  *(char *)(puVar1 + 3) = (iVar2 != 0) << 4;\n  *(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;\n  *param_7 = puVar4 + 4;\n  return;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "uVar3 = param_2[1];" (assignment_expression "uVar3 = param_2[1]" (identifier "uVar3") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar1 = (uint *)*param_7;" (assignment_expression "puVar1 = (uint *)*param_7" (identifier "puVar1") (= "=") (cast_expression "(uint *)*param_7" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_7" (* "*") (identifier "param_7")))) (; ";")) (expression_statement "puVar4 = puVar1;" (assignment_expression "puVar4 = puVar1" (identifier "puVar4") (= "=") (identifier "puVar1")) (; ";")) (if_statement "if (uVar3 != 0) {\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = FUN_003495e0(param_3,*param_2);\n    puVar4 = (uint *)*param_7;\n    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n  }" ({ "{") (expression_statement "uVar3 = FUN_003495e0(param_3,*param_2);" (assignment_expression "uVar3 = FUN_003495e0(param_3,*param_2)" (identifier "uVar3") (= "=") (call_expression "FUN_003495e0(param_3,*param_2)" (identifier "FUN_003495e0") (argument_list "(param_3,*param_2)" (( "(") (identifier "param_3") (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "puVar4 = (uint *)*param_7;" (assignment_expression "puVar4 = (uint *)*param_7" (identifier "puVar4") (= "=") (cast_expression "(uint *)*param_7" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_7" (* "*") (identifier "param_7")))) (; ";")) (expression_statement "uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;" (assignment_expression "uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18" (identifier "uVar3") (= "=") (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18" (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8" (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8" (binary_expression "uVar3 >> 0x18" (identifier "uVar3") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar3 & 0xff0000) >> 8" (parenthesized_expression "(uVar3 & 0xff0000)" (( "(") (binary_expression "uVar3 & 0xff0000" (identifier "uVar3") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar3 & 0xff00) << 8" (parenthesized_expression "(uVar3 & 0xff00)" (( "(") (binary_expression "uVar3 & 0xff00" (identifier "uVar3") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar3 << 0x18" (identifier "uVar3") (<< "<<") (number_literal "0x18")))) (; ";")) (} "}"))) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18;" (assignment_expression "puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n              param_4 << 0x18" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8" (binary_expression "param_4 >> 0x18" (identifier "param_4") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(param_4 & 0xff0000) >> 8" (parenthesized_expression "(param_4 & 0xff0000)" (( "(") (binary_expression "param_4 & 0xff0000" (identifier "param_4") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(param_4 & 0xff00) << 8" (parenthesized_expression "(param_4 & 0xff00)" (( "(") (binary_expression "param_4 & 0xff00" (identifier "param_4") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "param_4 << 0x18" (identifier "param_4") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18;" (assignment_expression "puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |\n              param_5 << 0x18" (binary_expression "param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8" (binary_expression "param_5 >> 0x18 | (param_5 & 0xff0000) >> 8" (binary_expression "param_5 >> 0x18" (identifier "param_5") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(param_5 & 0xff0000) >> 8" (parenthesized_expression "(param_5 & 0xff0000)" (( "(") (binary_expression "param_5 & 0xff0000" (identifier "param_5") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(param_5 & 0xff00) << 8" (parenthesized_expression "(param_5 & 0xff00)" (( "(") (binary_expression "param_5 & 0xff00" (identifier "param_5") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "param_5 << 0x18" (identifier "param_5") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" (identifier "iVar2") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined1 *)((int)puVar1 + 0xd) = 0;" (assignment_expression "*(undefined1 *)((int)puVar1 + 0xd) = 0" (pointer_expression "*(undefined1 *)((int)puVar1 + 0xd)" (* "*") (cast_expression "(undefined1 *)((int)puVar1 + 0xd)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 0xd)" (( "(") (binary_expression "(int)puVar1 + 0xd" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "0xd")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(char *)(puVar1 + 3) = (iVar2 != 0) << 4;" (assignment_expression "*(char *)(puVar1 + 3) = (iVar2 != 0) << 4" (pointer_expression "*(char *)(puVar1 + 3)" (* "*") (cast_expression "(char *)(puVar1 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 3)" (( "(") (binary_expression "puVar1 + 3" (identifier "puVar1") (+ "+") (number_literal "3")) () ")")))) (= "=") (binary_expression "(iVar2 != 0) << 4" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (<< "<<") (number_literal "4"))) (; ";")) (expression_statement "*(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;" (assignment_expression "*(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8" (pointer_expression "*(ushort *)((int)puVar1 + 0xe)" (* "*") (cast_expression "(ushort *)((int)puVar1 + 0xe)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 0xe)" (( "(") (binary_expression "(int)puVar1 + 0xe" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "0xe")) () ")")))) (= "=") (binary_expression "param_6 << 8 | param_6 >> 8" (binary_expression "param_6 << 8" (identifier "param_6") (<< "<<") (number_literal "8")) (| "|") (binary_expression "param_6 >> 8" (identifier "param_6") (>> ">>") (number_literal "8")))) (; ";")) (expression_statement "*param_7 = puVar4 + 4;" (assignment_expression "*param_7 = puVar4 + 4" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (binary_expression "puVar4 + 4" (identifier "puVar4") (+ "+") (number_literal "4"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original name: write_symbol<32, true>
   DWARF original prototype: void write_symbol<32,_true>(Binary_to_elf * this, string * name,
   Stringpool * strtab, section_size_type value, Elf_WXword st_size, uint shndx, uchar * * ppout) */

void __thiscall
gold::Binary_to_elf::write_symbol<32,_true>
          (Binary_to_elf *this,string *name,Stringpool *strtab,section_size_type value,
          Elf_WXword st_size,uint shndx,uchar **ppout)

{
}


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

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

void MASKED(undefined4 param_1,undefined4 *param_2,undefined4 param_3,uint param_4,
                 uint param_5,ushort param_6,undefined4 *param_7)

{
  uint *puVar1;
  int iVar2;
  uint uVar3;
  uint *puVar4;
  
  uVar3 = param_2[1];
  puVar1 = (uint *)*param_7;
  puVar4 = puVar1;
  if (uVar3 != 0) {
    uVar3 = FUN_003495e0(param_3,*param_2);
    puVar4 = (uint *)*param_7;
    uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;
  }
  *puVar1 = uVar3;
  puVar1[1] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |
              param_4 << 0x18;
  puVar1[2] = param_5 >> 0x18 | (param_5 & 0xff0000) >> 8 | (param_5 & 0xff00) << 8 |
              param_5 << 0x18;
  iVar2 = param_2[1];
  *(undefined1 *)((int)puVar1 + 0xd) = 0;
  *(char *)(puVar1 + 3) = (iVar2 != 0) << 4;
  *(ushort *)((int)puVar1 + 0xe) = param_6 << 8 | param_6 >> 8;
  *param_7 = puVar4 + 4;
  return;
}

