
/* DWARF original prototype: void write(Output_reloc<9,_true,_64,_false> * this, uchar * pov) */

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

{
  uint uVar1;
  uint uVar2;
  Elf_Addr EVar3;
  
  EVar3 = get_address(this);
  *(Elf_Addr *)__fd = EVar3;
  uVar1 = get_symbol_index(this);
  uVar2 = *(uint *)&this->field_0x14 & 0xfffffff;
  *(uint *)(__fd + 8) = uVar2;
  *(uint *)(__fd + 0xc) = uVar1;
  return uVar2;
}



void FUN_0012b280(int param_1,undefined8 *param_2)

{
  undefined4 uVar1;
  undefined8 uVar2;
  
  uVar2 = FUN_0012b080(param_1);
  *param_2 = uVar2;
  uVar1 = FUN_001004c0(param_1);
  *(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;
  *(undefined4 *)((int)param_2 + 0xc) = uVar1;
  return;
}


PUSH EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
PUSH EBX
SUB ESP,0x18
MOV ESI,dword ptr [ESP + 0x2c]
MOV EBX,dword ptr [ESP + 0x30]
PUSH ESI
CALL 0x0012b080
MOV dword ptr [EBX + 0x4],EDX
MOV dword ptr [EBX],EAX
MOV dword ptr [ESP],ESI
CALL 0x001004c0
MOV ESI,dword ptr [ESI + 0x14]
MOV EDX,EAX
XOR EAX,EAX
AND ESI,0xfffffff
ADD EAX,ESI
ADC EDX,EDI
MOV dword ptr [EBX + 0x8],EAX
MOV dword ptr [EBX + 0xc],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void FUN_0012b280(int param_1,undefined8 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_0012b080(param_1);\n  *param_2 = uVar2;\n  uVar1 = FUN_001004c0(param_1);\n  *(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;\n  *(undefined4 *)((int)param_2 + 0xc) = uVar1;\n  return;\n}\n\n" (function_definition "void FUN_0012b280(int param_1,undefined8 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_0012b080(param_1);\n  *param_2 = uVar2;\n  uVar1 = FUN_001004c0(param_1);\n  *(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;\n  *(undefined4 *)((int)param_2 + 0xc) = uVar1;\n  return;\n}" primitive_type (function_declarator "FUN_0012b280(int param_1,undefined8 *param_2)" identifier (parameter_list "(int param_1,undefined8 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_0012b080(param_1);\n  *param_2 = uVar2;\n  uVar1 = FUN_001004c0(param_1);\n  *(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;\n  *(undefined4 *)((int)param_2 + 0xc) = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = FUN_0012b080(param_1);" (assignment_expression "uVar2 = FUN_0012b080(param_1)" identifier = (call_expression "FUN_0012b080(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*param_2 = uVar2;" (assignment_expression "*param_2 = uVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "uVar1 = FUN_001004c0(param_1);" (assignment_expression "uVar1 = FUN_001004c0(param_1)" identifier = (call_expression "FUN_001004c0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;" (assignment_expression "*(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff" (pointer_expression "*(uint *)(param_2 + 1)" * (cast_expression "(uint *)(param_2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x14) & 0xfffffff" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(undefined4 *)((int)param_2 + 0xc) = uVar1;" (assignment_expression "*(undefined4 *)((int)param_2 + 0xc) = uVar1" (pointer_expression "*(undefined4 *)((int)param_2 + 0xc)" * (cast_expression "(undefined4 *)((int)param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0xc)" ( (binary_expression "(int)param_2 + 0xc" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void write(Output_reloc<9,_true,_64,_false> * this, uchar * pov) */\n\nssize_t __thiscall\ngold::Output_reloc<9,_true,_64,_false>::write\n          (Output_reloc<9,_true,_64,_false> *this,int __fd,void *__buf,size_t __n)\n\n{\n  uint uVar1;\n  uint uVar2;\n  Elf_Addr EVar3;\n  \n  EVar3 = get_address(this);\n  *(Elf_Addr *)__fd = EVar3;\n  uVar1 = get_symbol_index(this);\n  uVar2 = *(uint *)&this->field_0x14 & 0xfffffff;\n  *(uint *)(__fd + 8) = uVar2;\n  *(uint *)(__fd + 0xc) = uVar1;\n  return uVar2;\n}\n\n" comment (declaration "ssize_t __thiscall\ngold::Output_reloc<9,_true,_64,_false>::write\n          (Output_reloc<9,_true,_64,_false> *this,int __fd,void *__buf,size_t __n)\n\n{\n  uint uVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<9" < number_literal) , identifier , identifier , (ERROR "_false>::write\n          (Output_reloc<9,_true,_64,_false> *this,int __fd,void *__buf,size_t __n)\n\n{\n  uint" (function_declarator "_false>::write\n          (Output_reloc<9,_true,_64,_false> *this,int __fd,void *__buf,size_t __n)" identifier (ERROR ">::write" > : : identifier) (parameter_list "(Output_reloc<9,_true,_64,_false> *this,int __fd,void *__buf,size_t __n)" ( (parameter_declaration "Output_reloc" type_identifier) (ERROR "<9" < number_literal) , (parameter_declaration "_true" type_identifier) , (parameter_declaration "_64" 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 "Elf_Addr EVar3;" type_identifier identifier ;) (expression_statement "EVar3 = get_address(this);" (assignment_expression "EVar3 = get_address(this)" identifier = (call_expression "get_address(this)" identifier (argument_list "(this)" ( identifier )))) ;) (expression_statement "*(Elf_Addr *)__fd = EVar3;" (assignment_expression "*(Elf_Addr *)__fd = EVar3" (pointer_expression "*(Elf_Addr *)__fd" * (cast_expression "(Elf_Addr *)__fd" ( (type_descriptor "Elf_Addr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "uVar1 = get_symbol_index(this);" (assignment_expression "uVar1 = get_symbol_index(this)" identifier = (call_expression "get_symbol_index(this)" identifier (argument_list "(this)" ( identifier )))) ;) (expression_statement "uVar2 = *(uint *)&this->field_0x14 & 0xfffffff;" (assignment_expression "uVar2 = *(uint *)&this->field_0x14 & 0xfffffff" identifier = (binary_expression "*(uint *)&this->field_0x14 & 0xfffffff" (pointer_expression "*(uint *)&this->field_0x14" * (cast_expression "(uint *)&this->field_0x14" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->field_0x14" & (field_expression "this->field_0x14" identifier -> field_identifier)))) & number_literal)) ;) (expression_statement "*(uint *)(__fd + 8) = uVar2;" (assignment_expression "*(uint *)(__fd + 8) = uVar2" (pointer_expression "*(uint *)(__fd + 8)" * (cast_expression "(uint *)(__fd + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__fd + 8)" ( (binary_expression "__fd + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(__fd + 0xc) = uVar1;" (assignment_expression "*(uint *)(__fd + 0xc) = uVar1" (pointer_expression "*(uint *)(__fd + 0xc)" * (cast_expression "(uint *)(__fd + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__fd + 0xc)" ( (binary_expression "__fd + 0xc" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar2;" return identifier ;) (ERROR "}" }))
(translation_unit "void FUN_0012b280(int param_1,undefined8 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_0012b080(param_1);\n  *param_2 = uVar2;\n  uVar1 = FUN_001004c0(param_1);\n  *(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;\n  *(undefined4 *)((int)param_2 + 0xc) = uVar1;\n  return;\n}\n\n" (function_definition "void FUN_0012b280(int param_1,undefined8 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_0012b080(param_1);\n  *param_2 = uVar2;\n  uVar1 = FUN_001004c0(param_1);\n  *(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;\n  *(undefined4 *)((int)param_2 + 0xc) = uVar1;\n  return;\n}" primitive_type (function_declarator "FUN_0012b280(int param_1,undefined8 *param_2)" identifier (parameter_list "(int param_1,undefined8 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_0012b080(param_1);\n  *param_2 = uVar2;\n  uVar1 = FUN_001004c0(param_1);\n  *(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;\n  *(undefined4 *)((int)param_2 + 0xc) = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = FUN_0012b080(param_1);" (assignment_expression "uVar2 = FUN_0012b080(param_1)" identifier = (call_expression "FUN_0012b080(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*param_2 = uVar2;" (assignment_expression "*param_2 = uVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "uVar1 = FUN_001004c0(param_1);" (assignment_expression "uVar1 = FUN_001004c0(param_1)" identifier = (call_expression "FUN_001004c0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;" (assignment_expression "*(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff" (pointer_expression "*(uint *)(param_2 + 1)" * (cast_expression "(uint *)(param_2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x14) & 0xfffffff" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(undefined4 *)((int)param_2 + 0xc) = uVar1;" (assignment_expression "*(undefined4 *)((int)param_2 + 0xc) = uVar1" (pointer_expression "*(undefined4 *)((int)param_2 + 0xc)" * (cast_expression "(undefined4 *)((int)param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0xc)" ( (binary_expression "(int)param_2 + 0xc" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0012b280(int param_1,undefined8 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_0012b080(param_1);\n  *param_2 = uVar2;\n  uVar1 = FUN_001004c0(param_1);\n  *(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;\n  *(undefined4 *)((int)param_2 + 0xc) = uVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0012b280(int param_1,undefined8 *param_2)" (identifier "FUN_0012b280") (parameter_list "(int param_1,undefined8 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_0012b080(param_1);\n  *param_2 = uVar2;\n  uVar1 = FUN_001004c0(param_1);\n  *(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;\n  *(undefined4 *)((int)param_2 + 0xc) = uVar1;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = FUN_0012b080(param_1);" (assignment_expression "uVar2 = FUN_0012b080(param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_0012b080(param_1)" (identifier "FUN_0012b080") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*param_2 = uVar2;" (assignment_expression "*param_2 = uVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar1 = FUN_001004c0(param_1);" (assignment_expression "uVar1 = FUN_001004c0(param_1)" (identifier "uVar1") (= "=") (call_expression "FUN_001004c0(param_1)" (identifier "FUN_001004c0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;" (assignment_expression "*(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff" (pointer_expression "*(uint *)(param_2 + 1)" (* "*") (cast_expression "(uint *)(param_2 + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x14) & 0xfffffff" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0xfffffff"))) (; ";")) (expression_statement "*(undefined4 *)((int)param_2 + 0xc) = uVar1;" (assignment_expression "*(undefined4 *)((int)param_2 + 0xc) = uVar1" (pointer_expression "*(undefined4 *)((int)param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)((int)param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0xc)" (( "(") (binary_expression "(int)param_2 + 0xc" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void write(Output_reloc<9,_true,_64,_false> * this, uchar * pov) */

ssize_t __thiscall
gold::Output_reloc<9,_true,_64,_false>::write
          (Output_reloc<9,_true,_64,_false> *this,int var_3,void *__buf,size_t __n)

{
  type_1 uVar1;
  type_1 uVar2;
  type_2 EVar3;
  
  EVar3 = var_1(this);
  *(type_2 *)var_3 = EVar3;
  uVar1 = var_2(this);
  uVar2 = *(type_1 *)&this->field_0x14 & 0xfffffff;
  *(type_1 *)(var_3 + 8) = uVar2;
  *(type_1 *)(var_3 + 0xc) = uVar1;
  return uVar2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (identifier))) (return_statement))))

void MASKED(int param_1,undefined8 *param_2)

{
  undefined4 uVar1;
  undefined8 uVar2;
  
  uVar2 = FUN_0012b080(param_1);
  *param_2 = uVar2;
  uVar1 = FUN_001004c0(param_1);
  *(uint *)(param_2 + 1) = *(uint *)(param_1 + 0x14) & 0xfffffff;
  *(undefined4 *)((int)param_2 + 0xc) = uVar1;
  return;
}

