
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void save_states(Output_section * this) */

void __thiscall gold::Output_section::save_states(Output_section *this)

{
  byte bVar1;
  undefined4 uVar2;
  pointer pIVar3;
  pointer pIVar4;
  uint64_t uVar5;
  Elf_Xword EVar6;
  off_t oVar7;
  Checkpoint_output_section *pCVar8;
  
  if (this->checkpoint_ != (Checkpoint_output_section *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/output.cc",0xf80,"save_states");
  }
  pCVar8 = (Checkpoint_output_section *)operator_new(0x34);
  uVar5 = this->addralign_;
  uVar2 = *(undefined4 *)((int)&this->addralign_ + 4);
  bVar1 = this->field_0x91;
  (pCVar8->input_sections_copy_).
  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>
  ._M_impl._M_start = (pointer)0x0;
  pCVar8->_vptr_Checkpoint_output_section =
       (_func_int_varargs **)&PTR__Checkpoint_output_section_00383aec;
  pCVar8->input_sections_ = &this->input_sections_;
  pIVar3 = (this->input_sections_).
           super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>
           ._M_impl._M_finish;
  pIVar4 = (this->input_sections_).
           super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>
           ._M_impl._M_start;
  *(int *)&pCVar8->addralign_ = (int)uVar5;
  *(undefined4 *)((int)&pCVar8->addralign_ + 4) = uVar2;
  EVar6 = this->flags_;
  uVar2 = *(undefined4 *)((int)&this->flags_ + 4);
  pCVar8->attached_input_sections_are_sorted_ = (bool)(bVar1 >> 4 & 1);
  *(int *)&pCVar8->flags_ = (int)EVar6;
  oVar7 = this->first_input_offset_;
  *(undefined4 *)((int)&pCVar8->flags_ + 4) = uVar2;
  uVar2 = *(undefined4 *)((int)&this->first_input_offset_ + 4);
  pCVar8->input_sections_size_ = ((int)pIVar3 - (int)pIVar4 >> 3) * -0x55555555;
  (pCVar8->input_sections_copy_).
  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>
  ._M_impl._M_finish = (pointer)0x0;
  (pCVar8->input_sections_copy_).
  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>
  ._M_impl._M_end_of_storage = (pointer)0x0;
  *(int *)&pCVar8->first_input_offset_ = (int)oVar7;
  *(undefined4 *)((int)&pCVar8->first_input_offset_ + 4) = uVar2;
  this->checkpoint_ = pCVar8;
  if ((this->fills_).
      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.
      _M_impl._M_finish ==
      (this->fills_).
      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.
      _M_impl._M_start) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/output.cc",0xf87,"save_states");
}



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

void __regparm2 FUN_000ef680(undefined4 param_1,undefined4 param_2,int param_3)

{
  byte bVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  
  if (*(int *)(param_3 + 0xac) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);
  }
  puVar6 = (undefined4 *)FUN_001e5200(0x34);
  uVar2 = *(undefined4 *)(param_3 + 0x24);
  uVar3 = *(undefined4 *)(param_3 + 0x28);
  bVar1 = *(byte *)(param_3 + 0x91);
  puVar6[7] = 0;
  *puVar6 = &PTR_FUN_00383aec;
  puVar6[5] = param_3 + 0x6c;
  iVar4 = *(int *)(param_3 + 0x70);
  iVar5 = *(int *)(param_3 + 0x6c);
  puVar6[1] = uVar2;
  puVar6[2] = uVar3;
  uVar2 = *(undefined4 *)(param_3 + 0x54);
  uVar3 = *(undefined4 *)(param_3 + 0x58);
  *(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;
  puVar6[3] = uVar2;
  uVar2 = *(undefined4 *)(param_3 + 0x78);
  puVar6[4] = uVar3;
  uVar3 = *(undefined4 *)(param_3 + 0x7c);
  puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;
  puVar6[8] = 0;
  puVar6[9] = 0;
  puVar6[10] = uVar2;
  puVar6[0xb] = uVar3;
  *(undefined4 **)(param_3 + 0xac) = puVar6;
  if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x29f977
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [ESI + 0xac]
TEST ECX,ECX
JNZ 0x000ef736
SUB ESP,0xc
PUSH 0x34
CALL 0x001e5200
MOV EDI,dword ptr [ESI + 0x24]
MOV EBP,dword ptr [ESI + 0x28]
ADD ESP,0x10
LEA ECX,[EBX + 0xffff4aec]
MOVZX EDX,byte ptr [ESI + 0x91]
MOV dword ptr [EAX + 0x1c],0x0
MOV dword ptr [EAX],ECX
LEA ECX,[ESI + 0x6c]
MOV dword ptr [EAX + 0x14],ECX
MOV ECX,dword ptr [ESI + 0x70]
SHR DL,0x4
SUB ECX,dword ptr [ESI + 0x6c]
MOV dword ptr [EAX + 0x4],EDI
AND EDX,0x1
MOV dword ptr [EAX + 0x8],EBP
MOV EDI,dword ptr [ESI + 0x54]
SAR ECX,0x3
MOV EBP,dword ptr [ESI + 0x58]
IMUL ECX,ECX,-0x55555555
MOV byte ptr [EAX + 0x30],DL
MOV dword ptr [EAX + 0xc],EDI
MOV EDI,dword ptr [ESI + 0x78]
MOV dword ptr [EAX + 0x10],EBP
MOV EBP,dword ptr [ESI + 0x7c]
MOV dword ptr [EAX + 0x18],ECX
MOV dword ptr [EAX + 0x20],0x0
MOV dword ptr [EAX + 0x24],0x0
MOV dword ptr [EAX + 0x28],EDI
MOV dword ptr [EAX + 0x2c],EBP
MOV dword ptr [ESI + 0xac],EAX
MOV EAX,dword ptr [ESI + 0x80]
CMP dword ptr [ESI + 0x84],EAX
JNZ 0x000ef74f
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfff04afc]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xfff0336b]
PUSH 0xf80
PUSH EAX
CALL 0x00069d00
PUSH EAX
LEA EAX,[EBX + 0xfff04afc]
PUSH EAX
LEA EAX,[EBX + 0xfff0336b]
PUSH 0xf87
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm2 FUN_000ef680(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (*(int *)(param_3 + 0xac) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }\n  puVar6 = (undefined4 *)FUN_001e5200(0x34);\n  uVar2 = *(undefined4 *)(param_3 + 0x24);\n  uVar3 = *(undefined4 *)(param_3 + 0x28);\n  bVar1 = *(byte *)(param_3 + 0x91);\n  puVar6[7] = 0;\n  *puVar6 = &PTR_FUN_00383aec;\n  puVar6[5] = param_3 + 0x6c;\n  iVar4 = *(int *)(param_3 + 0x70);\n  iVar5 = *(int *)(param_3 + 0x6c);\n  puVar6[1] = uVar2;\n  puVar6[2] = uVar3;\n  uVar2 = *(undefined4 *)(param_3 + 0x54);\n  uVar3 = *(undefined4 *)(param_3 + 0x58);\n  *(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;\n  puVar6[3] = uVar2;\n  uVar2 = *(undefined4 *)(param_3 + 0x78);\n  puVar6[4] = uVar3;\n  uVar3 = *(undefined4 *)(param_3 + 0x7c);\n  puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;\n  puVar6[8] = 0;\n  puVar6[9] = 0;\n  puVar6[10] = uVar2;\n  puVar6[0xb] = uVar3;\n  *(undefined4 **)(param_3 + 0xac) = puVar6;\n  if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));\n}\n\n" comment (function_definition "void __regparm2 FUN_000ef680(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (*(int *)(param_3 + 0xac) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }\n  puVar6 = (undefined4 *)FUN_001e5200(0x34);\n  uVar2 = *(undefined4 *)(param_3 + 0x24);\n  uVar3 = *(undefined4 *)(param_3 + 0x28);\n  bVar1 = *(byte *)(param_3 + 0x91);\n  puVar6[7] = 0;\n  *puVar6 = &PTR_FUN_00383aec;\n  puVar6[5] = param_3 + 0x6c;\n  iVar4 = *(int *)(param_3 + 0x70);\n  iVar5 = *(int *)(param_3 + 0x6c);\n  puVar6[1] = uVar2;\n  puVar6[2] = uVar3;\n  uVar2 = *(undefined4 *)(param_3 + 0x54);\n  uVar3 = *(undefined4 *)(param_3 + 0x58);\n  *(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;\n  puVar6[3] = uVar2;\n  uVar2 = *(undefined4 *)(param_3 + 0x78);\n  puVar6[4] = uVar3;\n  uVar3 = *(undefined4 *)(param_3 + 0x7c);\n  puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;\n  puVar6[8] = 0;\n  puVar6[9] = 0;\n  puVar6[10] = uVar2;\n  puVar6[0xb] = uVar3;\n  *(undefined4 **)(param_3 + 0xac) = puVar6;\n  if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_000ef680(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (*(int *)(param_3 + 0xac) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }\n  puVar6 = (undefined4 *)FUN_001e5200(0x34);\n  uVar2 = *(undefined4 *)(param_3 + 0x24);\n  uVar3 = *(undefined4 *)(param_3 + 0x28);\n  bVar1 = *(byte *)(param_3 + 0x91);\n  puVar6[7] = 0;\n  *puVar6 = &PTR_FUN_00383aec;\n  puVar6[5] = param_3 + 0x6c;\n  iVar4 = *(int *)(param_3 + 0x70);\n  iVar5 = *(int *)(param_3 + 0x6c);\n  puVar6[1] = uVar2;\n  puVar6[2] = uVar3;\n  uVar2 = *(undefined4 *)(param_3 + 0x54);\n  uVar3 = *(undefined4 *)(param_3 + 0x58);\n  *(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;\n  puVar6[3] = uVar2;\n  uVar2 = *(undefined4 *)(param_3 + 0x78);\n  puVar6[4] = uVar3;\n  uVar3 = *(undefined4 *)(param_3 + 0x7c);\n  puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;\n  puVar6[8] = 0;\n  puVar6[9] = 0;\n  puVar6[10] = uVar2;\n  puVar6[0xb] = uVar3;\n  *(undefined4 **)(param_3 + 0xac) = puVar6;\n  if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (if_statement "if (*(int *)(param_3 + 0xac) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0xac) != 0)" ( (binary_expression "*(int *)(param_3 + 0xac) != 0" (pointer_expression "*(int *)(param_3 + 0xac)" * (cast_expression "(int *)(param_3 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xac)" ( (binary_expression "param_3 + 0xac" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }" { comment (expression_statement "FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);" (call_expression "FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2)" identifier (argument_list "("../../gold/output.cc",0xf80,"save_states",param_2)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""save_states"" " string_content ") , identifier ))) ;) })) (expression_statement "puVar6 = (undefined4 *)FUN_001e5200(0x34);" (assignment_expression "puVar6 = (undefined4 *)FUN_001e5200(0x34)" identifier = (cast_expression "(undefined4 *)FUN_001e5200(0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(0x34)" identifier (argument_list "(0x34)" ( number_literal ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x24);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x24)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x24)" * (cast_expression "(undefined4 *)(param_3 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x28);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x28)" * (cast_expression "(undefined4 *)(param_3 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = *(byte *)(param_3 + 0x91);" (assignment_expression "bVar1 = *(byte *)(param_3 + 0x91)" identifier = (pointer_expression "*(byte *)(param_3 + 0x91)" * (cast_expression "(byte *)(param_3 + 0x91)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x91)" ( (binary_expression "param_3 + 0x91" identifier + number_literal) ))))) ;) (expression_statement "puVar6[7] = 0;" (assignment_expression "puVar6[7] = 0" (subscript_expression "puVar6[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar6 = &PTR_FUN_00383aec;" (assignment_expression "*puVar6 = &PTR_FUN_00383aec" (pointer_expression "*puVar6" * identifier) = (pointer_expression "&PTR_FUN_00383aec" & identifier)) ;) (expression_statement "puVar6[5] = param_3 + 0x6c;" (assignment_expression "puVar6[5] = param_3 + 0x6c" (subscript_expression "puVar6[5]" identifier [ number_literal ]) = (binary_expression "param_3 + 0x6c" identifier + number_literal)) ;) (expression_statement "iVar4 = *(int *)(param_3 + 0x70);" (assignment_expression "iVar4 = *(int *)(param_3 + 0x70)" identifier = (pointer_expression "*(int *)(param_3 + 0x70)" * (cast_expression "(int *)(param_3 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x70)" ( (binary_expression "param_3 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_3 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_3 + 0x6c)" identifier = (pointer_expression "*(int *)(param_3 + 0x6c)" * (cast_expression "(int *)(param_3 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x6c)" ( (binary_expression "param_3 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "puVar6[1] = uVar2;" (assignment_expression "puVar6[1] = uVar2" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[2] = uVar3;" (assignment_expression "puVar6[2] = uVar3" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x54);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x54)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x54)" * (cast_expression "(undefined4 *)(param_3 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x54)" ( (binary_expression "param_3 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x58);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x58)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x58)" * (cast_expression "(undefined4 *)(param_3 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x58)" ( (binary_expression "param_3 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "*(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;" (assignment_expression "*(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1" (pointer_expression "*(byte *)(puVar6 + 0xc)" * (cast_expression "(byte *)(puVar6 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xc)" ( (binary_expression "puVar6 + 0xc" identifier + number_literal) )))) = (binary_expression "bVar1 >> 4 & 1" (binary_expression "bVar1 >> 4" identifier >> number_literal) & number_literal)) ;) (expression_statement "puVar6[3] = uVar2;" (assignment_expression "puVar6[3] = uVar2" (subscript_expression "puVar6[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x78);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x78)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x78)" * (cast_expression "(undefined4 *)(param_3 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x78)" ( (binary_expression "param_3 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "puVar6[4] = uVar3;" (assignment_expression "puVar6[4] = uVar3" (subscript_expression "puVar6[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x7c);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x7c)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x7c)" * (cast_expression "(undefined4 *)(param_3 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x7c)" ( (binary_expression "param_3 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;" (assignment_expression "puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555" (subscript_expression "puVar6[6]" identifier [ number_literal ]) = (binary_expression "(iVar4 - iVar5 >> 3) * -0x55555555" (parenthesized_expression "(iVar4 - iVar5 >> 3)" ( (binary_expression "iVar4 - iVar5 >> 3" (binary_expression "iVar4 - iVar5" identifier - identifier) >> number_literal) )) * number_literal)) ;) (expression_statement "puVar6[8] = 0;" (assignment_expression "puVar6[8] = 0" (subscript_expression "puVar6[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6[9] = 0;" (assignment_expression "puVar6[9] = 0" (subscript_expression "puVar6[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6[10] = uVar2;" (assignment_expression "puVar6[10] = uVar2" (subscript_expression "puVar6[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[0xb] = uVar3;" (assignment_expression "puVar6[0xb] = uVar3" (subscript_expression "puVar6[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 **)(param_3 + 0xac) = puVar6;" (assignment_expression "*(undefined4 **)(param_3 + 0xac) = puVar6" (pointer_expression "*(undefined4 **)(param_3 + 0xac)" * (cast_expression "(undefined4 **)(param_3 + 0xac)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0xac)" ( (binary_expression "param_3 + 0xac" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80))" ( (binary_expression "*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)" (pointer_expression "*(int *)(param_3 + 0x84)" * (cast_expression "(int *)(param_3 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x84)" ( (binary_expression "param_3 + 0x84" identifier + number_literal) )))) == (pointer_expression "*(int *)(param_3 + 0x80)" * (cast_expression "(int *)(param_3 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x80)" ( (binary_expression "param_3 + 0x80" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));" (call_expression "FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80))" identifier (argument_list "("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80))" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""save_states"" " string_content ") , (pointer_expression "*(int *)(param_3 + 0x80)" * (cast_expression "(int *)(param_3 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x80)" ( (binary_expression "param_3 + 0x80" identifier + number_literal) )))) ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void save_states(Output_section * this) */\n\nvoid __thiscall gold::Output_section::save_states(Output_section *this)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  pointer pIVar3;\n  pointer pIVar4;\n  uint64_t uVar5;\n  Elf_Xword EVar6;\n  off_t oVar7;\n  Checkpoint_output_section *pCVar8;\n  \n  if (this->checkpoint_ != (Checkpoint_output_section *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0xf80,"save_states");\n  }\n  pCVar8 = (Checkpoint_output_section *)operator_new(0x34);\n  uVar5 = this->addralign_;\n  uVar2 = *(undefined4 *)((int)&this->addralign_ + 4);\n  bVar1 = this->field_0x91;\n  (pCVar8->input_sections_copy_).\n  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_start = (pointer)0x0;\n  pCVar8->_vptr_Checkpoint_output_section =\n       (_func_int_varargs **)&PTR__Checkpoint_output_section_00383aec;\n  pCVar8->input_sections_ = &this->input_sections_;\n  pIVar3 = (this->input_sections_).\n           super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n           ._M_impl._M_finish;\n  pIVar4 = (this->input_sections_).\n           super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n           ._M_impl._M_start;\n  *(int *)&pCVar8->addralign_ = (int)uVar5;\n  *(undefined4 *)((int)&pCVar8->addralign_ + 4) = uVar2;\n  EVar6 = this->flags_;\n  uVar2 = *(undefined4 *)((int)&this->flags_ + 4);\n  pCVar8->attached_input_sections_are_sorted_ = (bool)(bVar1 >> 4 & 1);\n  *(int *)&pCVar8->flags_ = (int)EVar6;\n  oVar7 = this->first_input_offset_;\n  *(undefined4 *)((int)&pCVar8->flags_ + 4) = uVar2;\n  uVar2 = *(undefined4 *)((int)&this->first_input_offset_ + 4);\n  pCVar8->input_sections_size_ = ((int)pIVar3 - (int)pIVar4 >> 3) * -0x55555555;\n  (pCVar8->input_sections_copy_).\n  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_finish = (pointer)0x0;\n  (pCVar8->input_sections_copy_).\n  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0;\n  *(int *)&pCVar8->first_input_offset_ = (int)oVar7;\n  *(undefined4 *)((int)&pCVar8->first_input_offset_ + 4) = uVar2;\n  this->checkpoint_ = pCVar8;\n  if ((this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.\n      _M_impl._M_finish ==\n      (this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.\n      _M_impl._M_start) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/output.cc",0xf87,"save_states");\n}\n\n" comment comment (function_definition "void __thiscall gold::Output_section::save_states(Output_section *this)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  pointer pIVar3;\n  pointer pIVar4;\n  uint64_t uVar5;\n  Elf_Xword EVar6;\n  off_t oVar7;\n  Checkpoint_output_section *pCVar8;\n  \n  if (this->checkpoint_ != (Checkpoint_output_section *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0xf80,"save_states");\n  }\n  pCVar8 = (Checkpoint_output_section *)operator_new(0x34);\n  uVar5 = this->addralign_;\n  uVar2 = *(undefined4 *)((int)&this->addralign_ + 4);\n  bVar1 = this->field_0x91;\n  (pCVar8->input_sections_copy_).\n  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_start = (pointer)0x0;\n  pCVar8->_vptr_Checkpoint_output_section =\n       (_func_int_varargs **)&PTR__Checkpoint_output_section_00383aec;\n  pCVar8->input_sections_ = &this->input_sections_;\n  pIVar3 = (this->input_sections_).\n           super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n           ._M_impl._M_finish;\n  pIVar4 = (this->input_sections_).\n           super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n           ._M_impl._M_start;\n  *(int *)&pCVar8->addralign_ = (int)uVar5;\n  *(undefined4 *)((int)&pCVar8->addralign_ + 4) = uVar2;\n  EVar6 = this->flags_;\n  uVar2 = *(undefined4 *)((int)&this->flags_ + 4);\n  pCVar8->attached_input_sections_are_sorted_ = (bool)(bVar1 >> 4 & 1);\n  *(int *)&pCVar8->flags_ = (int)EVar6;\n  oVar7 = this->first_input_offset_;\n  *(undefined4 *)((int)&pCVar8->flags_ + 4) = uVar2;\n  uVar2 = *(undefined4 *)((int)&this->first_input_offset_ + 4);\n  pCVar8->input_sections_size_ = ((int)pIVar3 - (int)pIVar4 >> 3) * -0x55555555;\n  (pCVar8->input_sections_copy_).\n  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_finish = (pointer)0x0;\n  (pCVar8->input_sections_copy_).\n  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0;\n  *(int *)&pCVar8->first_input_offset_ = (int)oVar7;\n  *(undefined4 *)((int)&pCVar8->first_input_offset_ + 4) = uVar2;\n  this->checkpoint_ = pCVar8;\n  if ((this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.\n      _M_impl._M_finish ==\n      (this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.\n      _M_impl._M_start) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/output.cc",0xf87,"save_states");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_section::" identifier : : identifier : :) (function_declarator "save_states(Output_section *this)" identifier (parameter_list "(Output_section *this)" ( (parameter_declaration "Output_section *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  undefined4 uVar2;\n  pointer pIVar3;\n  pointer pIVar4;\n  uint64_t uVar5;\n  Elf_Xword EVar6;\n  off_t oVar7;\n  Checkpoint_output_section *pCVar8;\n  \n  if (this->checkpoint_ != (Checkpoint_output_section *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0xf80,"save_states");\n  }\n  pCVar8 = (Checkpoint_output_section *)operator_new(0x34);\n  uVar5 = this->addralign_;\n  uVar2 = *(undefined4 *)((int)&this->addralign_ + 4);\n  bVar1 = this->field_0x91;\n  (pCVar8->input_sections_copy_).\n  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_start = (pointer)0x0;\n  pCVar8->_vptr_Checkpoint_output_section =\n       (_func_int_varargs **)&PTR__Checkpoint_output_section_00383aec;\n  pCVar8->input_sections_ = &this->input_sections_;\n  pIVar3 = (this->input_sections_).\n           super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n           ._M_impl._M_finish;\n  pIVar4 = (this->input_sections_).\n           super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n           ._M_impl._M_start;\n  *(int *)&pCVar8->addralign_ = (int)uVar5;\n  *(undefined4 *)((int)&pCVar8->addralign_ + 4) = uVar2;\n  EVar6 = this->flags_;\n  uVar2 = *(undefined4 *)((int)&this->flags_ + 4);\n  pCVar8->attached_input_sections_are_sorted_ = (bool)(bVar1 >> 4 & 1);\n  *(int *)&pCVar8->flags_ = (int)EVar6;\n  oVar7 = this->first_input_offset_;\n  *(undefined4 *)((int)&pCVar8->flags_ + 4) = uVar2;\n  uVar2 = *(undefined4 *)((int)&this->first_input_offset_ + 4);\n  pCVar8->input_sections_size_ = ((int)pIVar3 - (int)pIVar4 >> 3) * -0x55555555;\n  (pCVar8->input_sections_copy_).\n  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_finish = (pointer)0x0;\n  (pCVar8->input_sections_copy_).\n  super__Vector_base<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0;\n  *(int *)&pCVar8->first_input_offset_ = (int)oVar7;\n  *(undefined4 *)((int)&pCVar8->first_input_offset_ + 4) = uVar2;\n  this->checkpoint_ = pCVar8;\n  if ((this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.\n      _M_impl._M_finish ==\n      (this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.\n      _M_impl._M_start) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/output.cc",0xf87,"save_states");\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "pointer pIVar3;" type_identifier identifier ;) (declaration "pointer pIVar4;" type_identifier identifier ;) (declaration "uint64_t uVar5;" primitive_type identifier ;) (declaration "Elf_Xword EVar6;" type_identifier identifier ;) (declaration "off_t oVar7;" type_identifier identifier ;) (declaration "Checkpoint_output_section *pCVar8;" type_identifier (pointer_declarator "*pCVar8" * identifier) ;) (if_statement "if (this->checkpoint_ != (Checkpoint_output_section *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0xf80,"save_states");\n  }" if (parenthesized_expression "(this->checkpoint_ != (Checkpoint_output_section *)0x0)" ( (binary_expression "this->checkpoint_ != (Checkpoint_output_section *)0x0" (field_expression "this->checkpoint_" identifier -> field_identifier) != (cast_expression "(Checkpoint_output_section *)0x0" ( (type_descriptor "Checkpoint_output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0xf80,"save_states");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0xf80,"save_states");" (call_expression "do_gold_unreachable("../../gold/output.cc",0xf80,"save_states")" identifier (argument_list "("../../gold/output.cc",0xf80,"save_states")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""save_states"" " string_content ") ))) ;) })) (expression_statement "pCVar8 = (Checkpoint_output_section *)operator_new(0x34);" (assignment_expression "pCVar8 = (Checkpoint_output_section *)operator_new(0x34)" identifier = (cast_expression "(Checkpoint_output_section *)operator_new(0x34)" ( (type_descriptor "Checkpoint_output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x34)" identifier (argument_list "(0x34)" ( number_literal ))))) ;) (expression_statement "uVar5 = this->addralign_;" (assignment_expression "uVar5 = this->addralign_" identifier = (field_expression "this->addralign_" identifier -> field_identifier)) ;) (expression_statement "uVar2 = *(undefined4 *)((int)&this->addralign_ + 4);" (assignment_expression "uVar2 = *(undefined4 *)((int)&this->addralign_ + 4)" identifier = (pointer_expression "*(undefined4 *)((int)&this->addralign_ + 4)" * (cast_expression "(undefined4 *)((int)&this->addralign_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&this->addralign_ + 4)" ( (binary_expression "(int)&this->addralign_ + 4" (cast_expression "(int)&this->addralign_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&this->addralign_" & (field_expression "this->addralign_" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "bVar1 = this->field_0x91;" (assignment_expression "bVar1 = this->field_0x91" identifier = (field_expression "this->field_0x91" identifier -> field_identifier)) ;) (ERROR "(pCVar8->input_sections_copy_).\n  super__Vector_base<gold::" (binary_expression "(pCVar8->input_sections_copy_).\n  super__Vector_base<gold" (field_expression "(pCVar8->input_sections_copy_).\n  super__Vector_base" (parenthesized_expression "(pCVar8->input_sections_copy_)" ( (field_expression "pCVar8->input_sections_copy_" identifier -> field_identifier) )) . field_identifier) < identifier) : :) (labeled_statement "Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_start = (pointer)0x0;" statement_identifier (ERROR "::Input_section,_std::allocator<gold:" : : (comma_expression "Input_section,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Output_section::Input_section>_>\n  ._M_impl._M_start = (pointer)0x0;" statement_identifier : (ERROR ":" :) (expression_statement "Input_section>_>\n  ._M_impl._M_start = (pointer)0x0;" (assignment_expression "Input_section>_>\n  ._M_impl._M_start = (pointer)0x0" (field_expression "Input_section>_>\n  ._M_impl._M_start" (field_expression "Input_section>_>\n  ._M_impl" (binary_expression "Input_section>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;))) (expression_statement "pCVar8->_vptr_Checkpoint_output_section =\n       (_func_int_varargs **)&PTR__Checkpoint_output_section_00383aec;" (assignment_expression "pCVar8->_vptr_Checkpoint_output_section =\n       (_func_int_varargs **)&PTR__Checkpoint_output_section_00383aec" (field_expression "pCVar8->_vptr_Checkpoint_output_section" identifier -> field_identifier) = (cast_expression "(_func_int_varargs **)&PTR__Checkpoint_output_section_00383aec" ( (type_descriptor "_func_int_varargs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&PTR__Checkpoint_output_section_00383aec" & identifier))) ;) (expression_statement "pCVar8->input_sections_ = &this->input_sections_;" (assignment_expression "pCVar8->input_sections_ = &this->input_sections_" (field_expression "pCVar8->input_sections_" identifier -> field_identifier) = (pointer_expression "&this->input_sections_" & (field_expression "this->input_sections_" identifier -> field_identifier))) ;) (ERROR "pIVar3 = (this->input_sections_).\n           super__Vector_base<gold::" (assignment_expression "pIVar3 = (this->input_sections_).\n           super__Vector_base<gold" identifier = (binary_expression "(this->input_sections_).\n           super__Vector_base<gold" (field_expression "(this->input_sections_).\n           super__Vector_base" (parenthesized_expression "(this->input_sections_)" ( (field_expression "this->input_sections_" identifier -> field_identifier) )) . field_identifier) < identifier)) : :) (labeled_statement "Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n           ._M_impl._M_finish;" statement_identifier (ERROR "::Input_section,_std::allocator<gold:" : : (comma_expression "Input_section,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Output_section::Input_section>_>\n           ._M_impl._M_finish;" statement_identifier : (ERROR ":" :) (expression_statement "Input_section>_>\n           ._M_impl._M_finish;" (field_expression "Input_section>_>\n           ._M_impl._M_finish" (field_expression "Input_section>_>\n           ._M_impl" (binary_expression "Input_section>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;))) (ERROR "pIVar4 = (this->input_sections_).\n           super__Vector_base<gold::" (assignment_expression "pIVar4 = (this->input_sections_).\n           super__Vector_base<gold" identifier = (binary_expression "(this->input_sections_).\n           super__Vector_base<gold" (field_expression "(this->input_sections_).\n           super__Vector_base" (parenthesized_expression "(this->input_sections_)" ( (field_expression "this->input_sections_" identifier -> field_identifier) )) . field_identifier) < identifier)) : :) (labeled_statement "Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n           ._M_impl._M_start;" statement_identifier (ERROR "::Input_section,_std::allocator<gold:" : : (comma_expression "Input_section,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Output_section::Input_section>_>\n           ._M_impl._M_start;" statement_identifier : (ERROR ":" :) (expression_statement "Input_section>_>\n           ._M_impl._M_start;" (field_expression "Input_section>_>\n           ._M_impl._M_start" (field_expression "Input_section>_>\n           ._M_impl" (binary_expression "Input_section>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;))) (expression_statement "*(int *)&pCVar8->addralign_ = (int)uVar5;" (assignment_expression "*(int *)&pCVar8->addralign_ = (int)uVar5" (pointer_expression "*(int *)&pCVar8->addralign_" * (cast_expression "(int *)&pCVar8->addralign_" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pCVar8->addralign_" & (field_expression "pCVar8->addralign_" identifier -> field_identifier)))) = (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(undefined4 *)((int)&pCVar8->addralign_ + 4) = uVar2;" (assignment_expression "*(undefined4 *)((int)&pCVar8->addralign_ + 4) = uVar2" (pointer_expression "*(undefined4 *)((int)&pCVar8->addralign_ + 4)" * (cast_expression "(undefined4 *)((int)&pCVar8->addralign_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pCVar8->addralign_ + 4)" ( (binary_expression "(int)&pCVar8->addralign_ + 4" (cast_expression "(int)&pCVar8->addralign_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pCVar8->addralign_" & (field_expression "pCVar8->addralign_" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "EVar6 = this->flags_;" (assignment_expression "EVar6 = this->flags_" identifier = (field_expression "this->flags_" identifier -> field_identifier)) ;) (expression_statement "uVar2 = *(undefined4 *)((int)&this->flags_ + 4);" (assignment_expression "uVar2 = *(undefined4 *)((int)&this->flags_ + 4)" identifier = (pointer_expression "*(undefined4 *)((int)&this->flags_ + 4)" * (cast_expression "(undefined4 *)((int)&this->flags_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&this->flags_ + 4)" ( (binary_expression "(int)&this->flags_ + 4" (cast_expression "(int)&this->flags_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&this->flags_" & (field_expression "this->flags_" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "pCVar8->attached_input_sections_are_sorted_ = (bool)(bVar1 >> 4 & 1);" (assignment_expression "pCVar8->attached_input_sections_are_sorted_ = (bool)(bVar1 >> 4 & 1)" (field_expression "pCVar8->attached_input_sections_are_sorted_" identifier -> field_identifier) = (cast_expression "(bool)(bVar1 >> 4 & 1)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(bVar1 >> 4 & 1)" ( (binary_expression "bVar1 >> 4 & 1" (binary_expression "bVar1 >> 4" identifier >> number_literal) & number_literal) )))) ;) (expression_statement "*(int *)&pCVar8->flags_ = (int)EVar6;" (assignment_expression "*(int *)&pCVar8->flags_ = (int)EVar6" (pointer_expression "*(int *)&pCVar8->flags_" * (cast_expression "(int *)&pCVar8->flags_" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pCVar8->flags_" & (field_expression "pCVar8->flags_" identifier -> field_identifier)))) = (cast_expression "(int)EVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "oVar7 = this->first_input_offset_;" (assignment_expression "oVar7 = this->first_input_offset_" identifier = (field_expression "this->first_input_offset_" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&pCVar8->flags_ + 4) = uVar2;" (assignment_expression "*(undefined4 *)((int)&pCVar8->flags_ + 4) = uVar2" (pointer_expression "*(undefined4 *)((int)&pCVar8->flags_ + 4)" * (cast_expression "(undefined4 *)((int)&pCVar8->flags_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pCVar8->flags_ + 4)" ( (binary_expression "(int)&pCVar8->flags_ + 4" (cast_expression "(int)&pCVar8->flags_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pCVar8->flags_" & (field_expression "pCVar8->flags_" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = *(undefined4 *)((int)&this->first_input_offset_ + 4);" (assignment_expression "uVar2 = *(undefined4 *)((int)&this->first_input_offset_ + 4)" identifier = (pointer_expression "*(undefined4 *)((int)&this->first_input_offset_ + 4)" * (cast_expression "(undefined4 *)((int)&this->first_input_offset_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&this->first_input_offset_ + 4)" ( (binary_expression "(int)&this->first_input_offset_ + 4" (cast_expression "(int)&this->first_input_offset_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&this->first_input_offset_" & (field_expression "this->first_input_offset_" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "pCVar8->input_sections_size_ = ((int)pIVar3 - (int)pIVar4 >> 3) * -0x55555555;" (assignment_expression "pCVar8->input_sections_size_ = ((int)pIVar3 - (int)pIVar4 >> 3) * -0x55555555" (field_expression "pCVar8->input_sections_size_" identifier -> field_identifier) = (binary_expression "((int)pIVar3 - (int)pIVar4 >> 3) * -0x55555555" (parenthesized_expression "((int)pIVar3 - (int)pIVar4 >> 3)" ( (binary_expression "(int)pIVar3 - (int)pIVar4 >> 3" (binary_expression "(int)pIVar3 - (int)pIVar4" (cast_expression "(int)pIVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pIVar4" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) * number_literal)) ;) (ERROR "(pCVar8->input_sections_copy_).\n  super__Vector_base<gold::" (binary_expression "(pCVar8->input_sections_copy_).\n  super__Vector_base<gold" (field_expression "(pCVar8->input_sections_copy_).\n  super__Vector_base" (parenthesized_expression "(pCVar8->input_sections_copy_)" ( (field_expression "pCVar8->input_sections_copy_" identifier -> field_identifier) )) . field_identifier) < identifier) : :) (labeled_statement "Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_finish = (pointer)0x0;" statement_identifier (ERROR "::Input_section,_std::allocator<gold:" : : (comma_expression "Input_section,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Output_section::Input_section>_>\n  ._M_impl._M_finish = (pointer)0x0;" statement_identifier : (ERROR ":" :) (expression_statement "Input_section>_>\n  ._M_impl._M_finish = (pointer)0x0;" (assignment_expression "Input_section>_>\n  ._M_impl._M_finish = (pointer)0x0" (field_expression "Input_section>_>\n  ._M_impl._M_finish" (field_expression "Input_section>_>\n  ._M_impl" (binary_expression "Input_section>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;))) (ERROR "(pCVar8->input_sections_copy_).\n  super__Vector_base<gold::" (binary_expression "(pCVar8->input_sections_copy_).\n  super__Vector_base<gold" (field_expression "(pCVar8->input_sections_copy_).\n  super__Vector_base" (parenthesized_expression "(pCVar8->input_sections_copy_)" ( (field_expression "pCVar8->input_sections_copy_" identifier -> field_identifier) )) . field_identifier) < identifier) : :) (labeled_statement "Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0;" statement_identifier (ERROR "::Input_section,_std::allocator<gold:" : : (comma_expression "Input_section,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Output_section::Input_section>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0;" statement_identifier : (ERROR ":" :) (expression_statement "Input_section>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0;" (assignment_expression "Input_section>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0" (field_expression "Input_section>_>\n  ._M_impl._M_end_of_storage" (field_expression "Input_section>_>\n  ._M_impl" (binary_expression "Input_section>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;))) (expression_statement "*(int *)&pCVar8->first_input_offset_ = (int)oVar7;" (assignment_expression "*(int *)&pCVar8->first_input_offset_ = (int)oVar7" (pointer_expression "*(int *)&pCVar8->first_input_offset_" * (cast_expression "(int *)&pCVar8->first_input_offset_" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pCVar8->first_input_offset_" & (field_expression "pCVar8->first_input_offset_" identifier -> field_identifier)))) = (cast_expression "(int)oVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(undefined4 *)((int)&pCVar8->first_input_offset_ + 4) = uVar2;" (assignment_expression "*(undefined4 *)((int)&pCVar8->first_input_offset_ + 4) = uVar2" (pointer_expression "*(undefined4 *)((int)&pCVar8->first_input_offset_ + 4)" * (cast_expression "(undefined4 *)((int)&pCVar8->first_input_offset_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pCVar8->first_input_offset_ + 4)" ( (binary_expression "(int)&pCVar8->first_input_offset_ + 4" (cast_expression "(int)&pCVar8->first_input_offset_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pCVar8->first_input_offset_" & (field_expression "pCVar8->first_input_offset_" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "this->checkpoint_ = pCVar8;" (assignment_expression "this->checkpoint_ = pCVar8" (field_expression "this->checkpoint_" identifier -> field_identifier) = identifier) ;) (if_statement "if ((this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.\n      _M_impl._M_finish ==\n      (this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.\n      _M_impl._M_start) {\n    return;\n  }" if (parenthesized_expression "((this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.\n      _M_impl._M_finish ==\n      (this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.\n      _M_impl._M_start)" ( (ERROR "(this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::Fill>_>.\n      _M_impl._M_finish ==\n      (this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std::allocator<gold::Output_section::" (comma_expression "(this->fills_).\n      super__Vector_base<gold::Output_section::Fill,_std" (binary_expression "(this->fills_).\n      super__Vector_base<gold" (field_expression "(this->fills_).\n      super__Vector_base" (parenthesized_expression "(this->fills_)" ( (field_expression "this->fills_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Output_section::Fill" : : identifier : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : identifier : : (binary_expression "Fill>_>.\n      _M_impl._M_finish ==\n      (this->fills_).\n      super__Vector_base<gold" (field_expression "Fill>_>.\n      _M_impl._M_finish" (field_expression "Fill>_>.\n      _M_impl" (binary_expression "Fill>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) == (binary_expression "(this->fills_).\n      super__Vector_base<gold" (field_expression "(this->fills_).\n      super__Vector_base" (parenthesized_expression "(this->fills_)" ( (field_expression "this->fills_" identifier -> field_identifier) )) . field_identifier) < identifier)) : : identifier : : (comma_expression "Fill,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : identifier : :) (field_expression "Fill>_>.\n      _M_impl._M_start" (field_expression "Fill>_>.\n      _M_impl" (binary_expression "Fill>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0xf87,"save_states");" (call_expression "do_gold_unreachable("../../gold/output.cc",0xf87,"save_states")" identifier (argument_list "("../../gold/output.cc",0xf87,"save_states")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""save_states"" " string_content ") ))) ;) })))
(translation_unit "void __regparm2 FUN_000ef680(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (*(int *)(param_3 + 0xac) != 0) {\n                    \n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }\n  puVar6 = (undefined4 *)FUN_001e5200(0x34);\n  uVar2 = *(undefined4 *)(param_3 + 0x24);\n  uVar3 = *(undefined4 *)(param_3 + 0x28);\n  bVar1 = *(byte *)(param_3 + 0x91);\n  puVar6[7] = 0;\n  *puVar6 = &PTR_FUN_00383aec;\n  puVar6[5] = param_3 + 0x6c;\n  iVar4 = *(int *)(param_3 + 0x70);\n  iVar5 = *(int *)(param_3 + 0x6c);\n  puVar6[1] = uVar2;\n  puVar6[2] = uVar3;\n  uVar2 = *(undefined4 *)(param_3 + 0x54);\n  uVar3 = *(undefined4 *)(param_3 + 0x58);\n  *(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;\n  puVar6[3] = uVar2;\n  uVar2 = *(undefined4 *)(param_3 + 0x78);\n  puVar6[4] = uVar3;\n  uVar3 = *(undefined4 *)(param_3 + 0x7c);\n  puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;\n  puVar6[8] = 0;\n  puVar6[9] = 0;\n  puVar6[10] = uVar2;\n  puVar6[0xb] = uVar3;\n  *(undefined4 **)(param_3 + 0xac) = puVar6;\n  if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));\n}\n\n" (function_definition "void __regparm2 FUN_000ef680(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (*(int *)(param_3 + 0xac) != 0) {\n                    \n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }\n  puVar6 = (undefined4 *)FUN_001e5200(0x34);\n  uVar2 = *(undefined4 *)(param_3 + 0x24);\n  uVar3 = *(undefined4 *)(param_3 + 0x28);\n  bVar1 = *(byte *)(param_3 + 0x91);\n  puVar6[7] = 0;\n  *puVar6 = &PTR_FUN_00383aec;\n  puVar6[5] = param_3 + 0x6c;\n  iVar4 = *(int *)(param_3 + 0x70);\n  iVar5 = *(int *)(param_3 + 0x6c);\n  puVar6[1] = uVar2;\n  puVar6[2] = uVar3;\n  uVar2 = *(undefined4 *)(param_3 + 0x54);\n  uVar3 = *(undefined4 *)(param_3 + 0x58);\n  *(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;\n  puVar6[3] = uVar2;\n  uVar2 = *(undefined4 *)(param_3 + 0x78);\n  puVar6[4] = uVar3;\n  uVar3 = *(undefined4 *)(param_3 + 0x7c);\n  puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;\n  puVar6[8] = 0;\n  puVar6[9] = 0;\n  puVar6[10] = uVar2;\n  puVar6[0xb] = uVar3;\n  *(undefined4 **)(param_3 + 0xac) = puVar6;\n  if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_000ef680(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (*(int *)(param_3 + 0xac) != 0) {\n                    \n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }\n  puVar6 = (undefined4 *)FUN_001e5200(0x34);\n  uVar2 = *(undefined4 *)(param_3 + 0x24);\n  uVar3 = *(undefined4 *)(param_3 + 0x28);\n  bVar1 = *(byte *)(param_3 + 0x91);\n  puVar6[7] = 0;\n  *puVar6 = &PTR_FUN_00383aec;\n  puVar6[5] = param_3 + 0x6c;\n  iVar4 = *(int *)(param_3 + 0x70);\n  iVar5 = *(int *)(param_3 + 0x6c);\n  puVar6[1] = uVar2;\n  puVar6[2] = uVar3;\n  uVar2 = *(undefined4 *)(param_3 + 0x54);\n  uVar3 = *(undefined4 *)(param_3 + 0x58);\n  *(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;\n  puVar6[3] = uVar2;\n  uVar2 = *(undefined4 *)(param_3 + 0x78);\n  puVar6[4] = uVar3;\n  uVar3 = *(undefined4 *)(param_3 + 0x7c);\n  puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;\n  puVar6[8] = 0;\n  puVar6[9] = 0;\n  puVar6[10] = uVar2;\n  puVar6[0xb] = uVar3;\n  *(undefined4 **)(param_3 + 0xac) = puVar6;\n  if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (if_statement "if (*(int *)(param_3 + 0xac) != 0) {\n                    \n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0xac) != 0)" ( (binary_expression "*(int *)(param_3 + 0xac) != 0" (pointer_expression "*(int *)(param_3 + 0xac)" * (cast_expression "(int *)(param_3 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xac)" ( (binary_expression "param_3 + 0xac" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }" { (expression_statement "FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);" (call_expression "FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2)" identifier (argument_list "("../../gold/output.cc",0xf80,"save_states",param_2)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""save_states"" " string_content ") , identifier ))) ;) })) (expression_statement "puVar6 = (undefined4 *)FUN_001e5200(0x34);" (assignment_expression "puVar6 = (undefined4 *)FUN_001e5200(0x34)" identifier = (cast_expression "(undefined4 *)FUN_001e5200(0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(0x34)" identifier (argument_list "(0x34)" ( number_literal ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x24);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x24)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x24)" * (cast_expression "(undefined4 *)(param_3 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x28);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x28)" * (cast_expression "(undefined4 *)(param_3 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = *(byte *)(param_3 + 0x91);" (assignment_expression "bVar1 = *(byte *)(param_3 + 0x91)" identifier = (pointer_expression "*(byte *)(param_3 + 0x91)" * (cast_expression "(byte *)(param_3 + 0x91)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x91)" ( (binary_expression "param_3 + 0x91" identifier + number_literal) ))))) ;) (expression_statement "puVar6[7] = 0;" (assignment_expression "puVar6[7] = 0" (subscript_expression "puVar6[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar6 = &PTR_FUN_00383aec;" (assignment_expression "*puVar6 = &PTR_FUN_00383aec" (pointer_expression "*puVar6" * identifier) = (pointer_expression "&PTR_FUN_00383aec" & identifier)) ;) (expression_statement "puVar6[5] = param_3 + 0x6c;" (assignment_expression "puVar6[5] = param_3 + 0x6c" (subscript_expression "puVar6[5]" identifier [ number_literal ]) = (binary_expression "param_3 + 0x6c" identifier + number_literal)) ;) (expression_statement "iVar4 = *(int *)(param_3 + 0x70);" (assignment_expression "iVar4 = *(int *)(param_3 + 0x70)" identifier = (pointer_expression "*(int *)(param_3 + 0x70)" * (cast_expression "(int *)(param_3 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x70)" ( (binary_expression "param_3 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_3 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_3 + 0x6c)" identifier = (pointer_expression "*(int *)(param_3 + 0x6c)" * (cast_expression "(int *)(param_3 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x6c)" ( (binary_expression "param_3 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "puVar6[1] = uVar2;" (assignment_expression "puVar6[1] = uVar2" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[2] = uVar3;" (assignment_expression "puVar6[2] = uVar3" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x54);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x54)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x54)" * (cast_expression "(undefined4 *)(param_3 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x54)" ( (binary_expression "param_3 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x58);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x58)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x58)" * (cast_expression "(undefined4 *)(param_3 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x58)" ( (binary_expression "param_3 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "*(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;" (assignment_expression "*(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1" (pointer_expression "*(byte *)(puVar6 + 0xc)" * (cast_expression "(byte *)(puVar6 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xc)" ( (binary_expression "puVar6 + 0xc" identifier + number_literal) )))) = (binary_expression "bVar1 >> 4 & 1" (binary_expression "bVar1 >> 4" identifier >> number_literal) & number_literal)) ;) (expression_statement "puVar6[3] = uVar2;" (assignment_expression "puVar6[3] = uVar2" (subscript_expression "puVar6[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x78);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x78)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x78)" * (cast_expression "(undefined4 *)(param_3 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x78)" ( (binary_expression "param_3 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "puVar6[4] = uVar3;" (assignment_expression "puVar6[4] = uVar3" (subscript_expression "puVar6[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x7c);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x7c)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x7c)" * (cast_expression "(undefined4 *)(param_3 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x7c)" ( (binary_expression "param_3 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;" (assignment_expression "puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555" (subscript_expression "puVar6[6]" identifier [ number_literal ]) = (binary_expression "(iVar4 - iVar5 >> 3) * -0x55555555" (parenthesized_expression "(iVar4 - iVar5 >> 3)" ( (binary_expression "iVar4 - iVar5 >> 3" (binary_expression "iVar4 - iVar5" identifier - identifier) >> number_literal) )) * number_literal)) ;) (expression_statement "puVar6[8] = 0;" (assignment_expression "puVar6[8] = 0" (subscript_expression "puVar6[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6[9] = 0;" (assignment_expression "puVar6[9] = 0" (subscript_expression "puVar6[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6[10] = uVar2;" (assignment_expression "puVar6[10] = uVar2" (subscript_expression "puVar6[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[0xb] = uVar3;" (assignment_expression "puVar6[0xb] = uVar3" (subscript_expression "puVar6[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 **)(param_3 + 0xac) = puVar6;" (assignment_expression "*(undefined4 **)(param_3 + 0xac) = puVar6" (pointer_expression "*(undefined4 **)(param_3 + 0xac)" * (cast_expression "(undefined4 **)(param_3 + 0xac)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0xac)" ( (binary_expression "param_3 + 0xac" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80))" ( (binary_expression "*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)" (pointer_expression "*(int *)(param_3 + 0x84)" * (cast_expression "(int *)(param_3 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x84)" ( (binary_expression "param_3 + 0x84" identifier + number_literal) )))) == (pointer_expression "*(int *)(param_3 + 0x80)" * (cast_expression "(int *)(param_3 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x80)" ( (binary_expression "param_3 + 0x80" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));" (call_expression "FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80))" identifier (argument_list "("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80))" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""save_states"" " string_content ") , (pointer_expression "*(int *)(param_3 + 0x80)" * (cast_expression "(int *)(param_3 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x80)" ( (binary_expression "param_3 + 0x80" identifier + number_literal) )))) ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (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 IDENT + LIT) ))))) ;) (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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (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) ))))) ;) (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT >> LIT) & LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 (subscript_expression IDENT [ LIT ]) = 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 (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) >> LIT) )) * LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })))
(function_definition "void __regparm2 FUN_000ef680(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (*(int *)(param_3 + 0xac) != 0) {\n                    \n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }\n  puVar6 = (undefined4 *)FUN_001e5200(0x34);\n  uVar2 = *(undefined4 *)(param_3 + 0x24);\n  uVar3 = *(undefined4 *)(param_3 + 0x28);\n  bVar1 = *(byte *)(param_3 + 0x91);\n  puVar6[7] = 0;\n  *puVar6 = &PTR_FUN_00383aec;\n  puVar6[5] = param_3 + 0x6c;\n  iVar4 = *(int *)(param_3 + 0x70);\n  iVar5 = *(int *)(param_3 + 0x6c);\n  puVar6[1] = uVar2;\n  puVar6[2] = uVar3;\n  uVar2 = *(undefined4 *)(param_3 + 0x54);\n  uVar3 = *(undefined4 *)(param_3 + 0x58);\n  *(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;\n  puVar6[3] = uVar2;\n  uVar2 = *(undefined4 *)(param_3 + 0x78);\n  puVar6[4] = uVar3;\n  uVar3 = *(undefined4 *)(param_3 + 0x7c);\n  puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;\n  puVar6[8] = 0;\n  puVar6[9] = 0;\n  puVar6[10] = uVar2;\n  puVar6[0xb] = uVar3;\n  *(undefined4 **)(param_3 + 0xac) = puVar6;\n  if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_000ef680(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_000ef680") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte bVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (*(int *)(param_3 + 0xac) != 0) {\n                    \n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }\n  puVar6 = (undefined4 *)FUN_001e5200(0x34);\n  uVar2 = *(undefined4 *)(param_3 + 0x24);\n  uVar3 = *(undefined4 *)(param_3 + 0x28);\n  bVar1 = *(byte *)(param_3 + 0x91);\n  puVar6[7] = 0;\n  *puVar6 = &PTR_FUN_00383aec;\n  puVar6[5] = param_3 + 0x6c;\n  iVar4 = *(int *)(param_3 + 0x70);\n  iVar5 = *(int *)(param_3 + 0x6c);\n  puVar6[1] = uVar2;\n  puVar6[2] = uVar3;\n  uVar2 = *(undefined4 *)(param_3 + 0x54);\n  uVar3 = *(undefined4 *)(param_3 + 0x58);\n  *(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;\n  puVar6[3] = uVar2;\n  uVar2 = *(undefined4 *)(param_3 + 0x78);\n  puVar6[4] = uVar3;\n  uVar3 = *(undefined4 *)(param_3 + 0x7c);\n  puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;\n  puVar6[8] = 0;\n  puVar6[9] = 0;\n  puVar6[10] = uVar2;\n  puVar6[0xb] = uVar3;\n  *(undefined4 **)(param_3 + 0xac) = puVar6;\n  if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (if_statement "if (*(int *)(param_3 + 0xac) != 0) {\n                    \n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0xac) != 0)" (( "(") (binary_expression "*(int *)(param_3 + 0xac) != 0" (pointer_expression "*(int *)(param_3 + 0xac)" (* "*") (cast_expression "(int *)(param_3 + 0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xac)" (( "(") (binary_expression "param_3 + 0xac" (identifier "param_3") (+ "+") (number_literal "0xac")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);\n  }" ({ "{") (expression_statement "FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);" (call_expression "FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2)" (identifier "FUN_00069d00") (argument_list "("../../gold/output.cc",0xf80,"save_states",param_2)" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0xf80") (, ",") (string_literal ""save_states"" (" """) (string_content "save_states") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar6 = (undefined4 *)FUN_001e5200(0x34);" (assignment_expression "puVar6 = (undefined4 *)FUN_001e5200(0x34)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)FUN_001e5200(0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5200(0x34)" (identifier "FUN_001e5200") (argument_list "(0x34)" (( "(") (number_literal "0x34") () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x24);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x24)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x24)" (( "(") (binary_expression "param_3 + 0x24" (identifier "param_3") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x28);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x28)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x28)" (( "(") (binary_expression "param_3 + 0x28" (identifier "param_3") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "bVar1 = *(byte *)(param_3 + 0x91);" (assignment_expression "bVar1 = *(byte *)(param_3 + 0x91)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(param_3 + 0x91)" (* "*") (cast_expression "(byte *)(param_3 + 0x91)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x91)" (( "(") (binary_expression "param_3 + 0x91" (identifier "param_3") (+ "+") (number_literal "0x91")) () ")"))))) (; ";")) (expression_statement "puVar6[7] = 0;" (assignment_expression "puVar6[7] = 0" (subscript_expression "puVar6[7]" (identifier "puVar6") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar6 = &PTR_FUN_00383aec;" (assignment_expression "*puVar6 = &PTR_FUN_00383aec" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (pointer_expression "&PTR_FUN_00383aec" (& "&") (identifier "PTR_FUN_00383aec"))) (; ";")) (expression_statement "puVar6[5] = param_3 + 0x6c;" (assignment_expression "puVar6[5] = param_3 + 0x6c" (subscript_expression "puVar6[5]" (identifier "puVar6") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "param_3 + 0x6c" (identifier "param_3") (+ "+") (number_literal "0x6c"))) (; ";")) (expression_statement "iVar4 = *(int *)(param_3 + 0x70);" (assignment_expression "iVar4 = *(int *)(param_3 + 0x70)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_3 + 0x70)" (* "*") (cast_expression "(int *)(param_3 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x70)" (( "(") (binary_expression "param_3 + 0x70" (identifier "param_3") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (expression_statement "iVar5 = *(int *)(param_3 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_3 + 0x6c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_3 + 0x6c)" (* "*") (cast_expression "(int *)(param_3 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x6c)" (( "(") (binary_expression "param_3 + 0x6c" (identifier "param_3") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (expression_statement "puVar6[1] = uVar2;" (assignment_expression "puVar6[1] = uVar2" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar6[2] = uVar3;" (assignment_expression "puVar6[2] = uVar3" (subscript_expression "puVar6[2]" (identifier "puVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x54);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x54)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x54)" (( "(") (binary_expression "param_3 + 0x54" (identifier "param_3") (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x58);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x58)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x58)" (( "(") (binary_expression "param_3 + 0x58" (identifier "param_3") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (expression_statement "*(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;" (assignment_expression "*(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1" (pointer_expression "*(byte *)(puVar6 + 0xc)" (* "*") (cast_expression "(byte *)(puVar6 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0xc)" (( "(") (binary_expression "puVar6 + 0xc" (identifier "puVar6") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "bVar1 >> 4 & 1" (binary_expression "bVar1 >> 4" (identifier "bVar1") (>> ">>") (number_literal "4")) (& "&") (number_literal "1"))) (; ";")) (expression_statement "puVar6[3] = uVar2;" (assignment_expression "puVar6[3] = uVar2" (subscript_expression "puVar6[3]" (identifier "puVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x78);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x78)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0x78)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x78)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x78)" (( "(") (binary_expression "param_3 + 0x78" (identifier "param_3") (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (expression_statement "puVar6[4] = uVar3;" (assignment_expression "puVar6[4] = uVar3" (subscript_expression "puVar6[4]" (identifier "puVar6") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x7c);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x7c)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0x7c)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x7c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x7c)" (( "(") (binary_expression "param_3 + 0x7c" (identifier "param_3") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;" (assignment_expression "puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555" (subscript_expression "puVar6[6]" (identifier "puVar6") ([ "[") (number_literal "6") (] "]")) (= "=") (binary_expression "(iVar4 - iVar5 >> 3) * -0x55555555" (parenthesized_expression "(iVar4 - iVar5 >> 3)" (( "(") (binary_expression "iVar4 - iVar5 >> 3" (binary_expression "iVar4 - iVar5" (identifier "iVar4") (- "-") (identifier "iVar5")) (>> ">>") (number_literal "3")) () ")")) (* "*") (number_literal "-0x55555555"))) (; ";")) (expression_statement "puVar6[8] = 0;" (assignment_expression "puVar6[8] = 0" (subscript_expression "puVar6[8]" (identifier "puVar6") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar6[9] = 0;" (assignment_expression "puVar6[9] = 0" (subscript_expression "puVar6[9]" (identifier "puVar6") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar6[10] = uVar2;" (assignment_expression "puVar6[10] = uVar2" (subscript_expression "puVar6[10]" (identifier "puVar6") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar6[0xb] = uVar3;" (assignment_expression "puVar6[0xb] = uVar3" (subscript_expression "puVar6[0xb]" (identifier "puVar6") ([ "[") (number_literal "0xb") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(undefined4 **)(param_3 + 0xac) = puVar6;" (assignment_expression "*(undefined4 **)(param_3 + 0xac) = puVar6" (pointer_expression "*(undefined4 **)(param_3 + 0xac)" (* "*") (cast_expression "(undefined4 **)(param_3 + 0xac)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_3 + 0xac)" (( "(") (binary_expression "param_3 + 0xac" (identifier "param_3") (+ "+") (number_literal "0xac")) () ")")))) (= "=") (identifier "puVar6")) (; ";")) (if_statement "if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80))" (( "(") (binary_expression "*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)" (pointer_expression "*(int *)(param_3 + 0x84)" (* "*") (cast_expression "(int *)(param_3 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x84)" (( "(") (binary_expression "param_3 + 0x84" (identifier "param_3") (+ "+") (number_literal "0x84")) () ")")))) (== "==") (pointer_expression "*(int *)(param_3 + 0x80)" (* "*") (cast_expression "(int *)(param_3 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x80)" (( "(") (binary_expression "param_3 + 0x80" (identifier "param_3") (+ "+") (number_literal "0x80")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));" (call_expression "FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80))" (identifier "FUN_00069d00") (argument_list "("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80))" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0xf87") (, ",") (string_literal ""save_states"" (" """) (string_content "save_states") (" """)) (, ",") (pointer_expression "*(int *)(param_3 + 0x80)" (* "*") (cast_expression "(int *)(param_3 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x80)" (( "(") (binary_expression "param_3 + 0x80" (identifier "param_3") (+ "+") (number_literal "0x80")) () ")")))) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void save_states(Output_section * this) */

void __thiscall gold::type_1::function_1(type_1 *this)

{
  type_2 var_5;
  type_3 uVar2;
  type_4 pIVar3;
  type_4 pIVar4;
  uint64_t uVar5;
  type_5 EVar6;
  type_6 oVar7;
  type_7 *pCVar8;
  
  if (this->checkpoint_ != (type_7 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/output.cc",0xf80,"save_states");
  }
  pCVar8 = (type_7 *)var_2(0x34);
  uVar5 = this->addralign_;
  uVar2 = *(type_3 *)((int)&this->addralign_ + 4);
  var_5 = this->field_0x91;
  (pCVar8->input_sections_copy_).
  super__Vector_base<gold::Output_section::var_3,_std::allocator<gold::Output_section::var_3>var_4>
  ._M_impl._M_start = (type_4)0x0;
  pCVar8->_vptr_Checkpoint_output_section =
       (type_8 **)&PTR__Checkpoint_output_section_00383aec;
  pCVar8->input_sections_ = &this->input_sections_;
  pIVar3 = (this->input_sections_).
           super__Vector_base<gold::Output_section::var_3,_std::allocator<gold::Output_section::var_3>var_4>
           ._M_impl._M_finish;
  pIVar4 = (this->input_sections_).
           super__Vector_base<gold::Output_section::var_3,_std::allocator<gold::Output_section::var_3>var_4>
           ._M_impl._M_start;
  *(int *)&pCVar8->addralign_ = (int)uVar5;
  *(type_3 *)((int)&pCVar8->addralign_ + 4) = uVar2;
  EVar6 = this->flags_;
  uVar2 = *(type_3 *)((int)&this->flags_ + 4);
  pCVar8->attached_input_sections_are_sorted_ = (bool)(var_5 >> 4 & 1);
  *(int *)&pCVar8->flags_ = (int)EVar6;
  oVar7 = this->first_input_offset_;
  *(type_3 *)((int)&pCVar8->flags_ + 4) = uVar2;
  uVar2 = *(type_3 *)((int)&this->first_input_offset_ + 4);
  pCVar8->input_sections_size_ = ((int)pIVar3 - (int)pIVar4 >> 3) * -0x55555555;
  (pCVar8->input_sections_copy_).
  super__Vector_base<gold::Output_section::var_3,_std::allocator<gold::Output_section::var_3>var_4>
  ._M_impl._M_finish = (type_4)0x0;
  (pCVar8->input_sections_copy_).
  super__Vector_base<gold::Output_section::var_3,_std::allocator<gold::Output_section::var_3>var_4>
  ._M_impl._M_end_of_storage = (type_4)0x0;
  *(int *)&pCVar8->first_input_offset_ = (int)oVar7;
  *(type_3 *)((int)&pCVar8->first_input_offset_ + 4) = uVar2;
  this->checkpoint_ = pCVar8;
  if ((this->fills_).
      super__Vector_base<gold::type_1::var_6,_std::allocator<gold::type_1::var_6>var_4>.
      _M_impl._M_finish ==
      (this->fills_).
      super__Vector_base<gold::type_1::var_6,_std::allocator<gold::type_1::var_6>var_4>.
      _M_impl._M_start) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/output.cc",0xf87,"save_states");
}


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

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

void __regparm2 MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  byte bVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  
  if (*(int *)(param_3 + 0xac) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/output.cc",0xf80,"save_states",param_2);
  }
  puVar6 = (undefined4 *)FUN_001e5200(0x34);
  uVar2 = *(undefined4 *)(param_3 + 0x24);
  uVar3 = *(undefined4 *)(param_3 + 0x28);
  bVar1 = *(byte *)(param_3 + 0x91);
  puVar6[7] = 0;
  *puVar6 = &PTR_FUN_00383aec;
  puVar6[5] = param_3 + 0x6c;
  iVar4 = *(int *)(param_3 + 0x70);
  iVar5 = *(int *)(param_3 + 0x6c);
  puVar6[1] = uVar2;
  puVar6[2] = uVar3;
  uVar2 = *(undefined4 *)(param_3 + 0x54);
  uVar3 = *(undefined4 *)(param_3 + 0x58);
  *(byte *)(puVar6 + 0xc) = bVar1 >> 4 & 1;
  puVar6[3] = uVar2;
  uVar2 = *(undefined4 *)(param_3 + 0x78);
  puVar6[4] = uVar3;
  uVar3 = *(undefined4 *)(param_3 + 0x7c);
  puVar6[6] = (iVar4 - iVar5 >> 3) * -0x55555555;
  puVar6[8] = 0;
  puVar6[9] = 0;
  puVar6[10] = uVar2;
  puVar6[0xb] = uVar3;
  *(undefined4 **)(param_3 + 0xac) = puVar6;
  if (*(int *)(param_3 + 0x84) == *(int *)(param_3 + 0x80)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/output.cc",0xf87,"save_states",*(int *)(param_3 + 0x80));
}

