
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: void do_write(Output_data_save_res<64,_false> * this, Output_file * of)
    */

void __thiscall
anon_unknown.dwarf_2af53c::Output_data_save_res<64,_false>::do_write
          (Output_data_save_res<64,_false> *this,Output_file *of)

{
  uint uVar1;
  uint __n;
  int iVar2;
  uint uVar3;
  int iVar4;
  
  if ((this->field_0x1c & 4) == 0) {
                    /* WARNING: Subroutine does not return */
    gold::do_gold_unreachable("../../gold/output.h",0xe3,"offset");
  }
  uVar1 = *(uint *)&this->field_0x14;
  if ((this->field_0x1c & 2) == 0) {
                    /* WARNING: Subroutine does not return */
    gold::do_gold_unreachable("../../gold/output.h",0xcf,"data_size");
  }
  __n = *(uint *)&this->field_0xc;
  if (*(int *)&this->field_0x10 != 0) {
                    /* WARNING: Subroutine does not return */
    gold::do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");
  }
  iVar2 = *(int *)((int)&of->file_size_ + 4);
  uVar3 = (uint)((uint)of->file_size_ < uVar1 + __n);
  iVar4 = iVar2 - (uint)CARRY4(uVar1,__n);
  if ((SBORROW4(iVar2,(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar4,uVar3)) == (int)(iVar4 - uVar3) < 0
     ) {
    memcpy(of->base_ + uVar1,this->contents_,__n);
    return;
  }
                    /* WARNING: Subroutine does not return */
  gold::do_gold_unreachable("../../gold/output.h",0x6f,"get_output_view");
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_000503c0(int param_1,int param_2)

{
  uint uVar1;
  uint __n;
  uint uVar2;
  int iVar3;
  
  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_000da200("../../gold/output.h",0xe3,"offset");
  }
  uVar1 = *(uint *)(param_1 + 0x14);
  if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);
  }
  __n = *(uint *)(param_1 + 0xc);
  if (*(int *)(param_1 + 0x10) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);
  }
  uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);
  iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);
  if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==
      (int)(iVar3 - uVar2) < 0) {
    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);
}


CALL 0x000b4846
ADD EAX,0x3c3c3b
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ECX,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],EAX
MOVZX EAX,byte ptr [ECX + 0x1c]
TEST AL,0x4
JZ 0x00050432
MOV EDX,dword ptr [ECX + 0x14]
MOV dword ptr [ESP + 0x8],EDX
TEST AL,0x2
JZ 0x00050486
MOV EBP,dword ptr [ECX + 0x10]
MOV EDI,dword ptr [ECX + 0xc]
TEST EBP,EBP
JNZ 0x00050469
MOV EAX,dword ptr [ESP + 0x8]
XOR EDX,EDX
MOV EBX,dword ptr [ESI + 0xc]
ADD EAX,EDI
ADC EDX,EBP
CMP dword ptr [ESI + 0x8],EAX
SBB EBX,EDX
JL 0x0005044f
MOV EBX,dword ptr [ESP + 0x8]
SUB ESP,0x4
ADD EBX,dword ptr [ESI + 0x10]
PUSH EDI
PUSH dword ptr [ECX + 0x2c]
PUSH EBX
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x0002c2d0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH EBX
MOV EBX,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xffee1ec8]
PUSH EAX
LEA EAX,[EBX + 0xffee2e5c]
PUSH 0xe3
PUSH EAX
CALL 0x000da200
PUSH EAX
MOV EBX,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xffee1ea8]
PUSH EAX
LEA EAX,[EBX + 0xffee2e5c]
PUSH 0x6f
PUSH EAX
CALL 0x000da200
PUSH EDX
MOV EBX,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xffee1eb8]
PUSH EAX
LEA EAX,[EBX + 0xffee33bc]
PUSH 0xc0
PUSH EAX
CALL 0x000da200
PUSH ECX
MOV EBX,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xffee23fc]
PUSH EAX
LEA EAX,[EBX + 0xffee2e5c]
PUSH 0xcf
PUSH EAX
CALL 0x000da200
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_000503c0(int param_1,int param_2)\n\n{\n  uint uVar1;\n  uint __n;\n  uint uVar2;\n  int iVar3;\n  \n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }\n  __n = *(uint *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }\n  uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);\n  iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);\n  if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0) {\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);\n}\n\n" comment (function_definition "void FUN_000503c0(int param_1,int param_2)\n\n{\n  uint uVar1;\n  uint __n;\n  uint uVar2;\n  int iVar3;\n  \n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }\n  __n = *(uint *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }\n  uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);\n  iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);\n  if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0) {\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);\n}" primitive_type (function_declarator "FUN_000503c0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint __n;\n  uint uVar2;\n  int iVar3;\n  \n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }\n  __n = *(uint *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }\n  uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);\n  iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);\n  if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0) {\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 4" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }" { comment (expression_statement "FUN_000da200("../../gold/output.h",0xe3,"offset");" (call_expression "FUN_000da200("../../gold/output.h",0xe3,"offset")" identifier (argument_list "("../../gold/output.h",0xe3,"offset")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""offset"" " string_content ") ))) ;) })) (expression_statement "uVar1 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 2) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 2)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 2" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }" { comment (expression_statement "FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);" (call_expression "FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1)" identifier (argument_list "("../../gold/output.h",0xcf,"data_size",param_1)" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""data_size"" " string_content ") , identifier ))) ;) })) (expression_statement "__n = *(uint *)(param_1 + 0xc);" (assignment_expression "__n = *(uint *)(param_1 + 0xc)" identifier = (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }" { comment (expression_statement "FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);" (call_expression "FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1)" identifier (argument_list "("../../gold/gold.h",0xc0,"convert_types",uVar1)" ( (string_literal ""../../gold/gold.h"" " string_content ") , number_literal , (string_literal ""convert_types"" " string_content ") , identifier ))) ;) })) (expression_statement "uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);" (assignment_expression "uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n)" identifier = (call_expression "(uint)(*(uint *)(param_2 + 8) < uVar1 + __n)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_2 + 8) < uVar1 + __n)" ( (binary_expression "*(uint *)(param_2 + 8) < uVar1 + __n" (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) < (binary_expression "uVar1 + __n" identifier + identifier)) )))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);" (assignment_expression "iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n)" identifier = (binary_expression "*(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n)" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) - (cast_expression "(uint)CARRY4(uVar1,__n)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,__n)" identifier (argument_list "(uVar1,__n)" ( identifier , identifier )))))) ;) (if_statement "if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0) {\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }" if (parenthesized_expression "((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0)" ( (binary_expression "(SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0" (parenthesized_expression "(SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2))" ( (binary_expression "SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)" (call_expression "SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n))" identifier (argument_list "(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n))" ( (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) , (cast_expression "(uint)CARRY4(uVar1,__n)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,__n)" identifier (argument_list "(uVar1,__n)" ( identifier , identifier )))) ))) != (call_expression "SBORROW4(iVar3,uVar2)" identifier (argument_list "(iVar3,uVar2)" ( identifier , identifier )))) )) == (binary_expression "(int)(iVar3 - uVar2) < 0" (cast_expression "(int)(iVar3 - uVar2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iVar3 - uVar2)" ( (binary_expression "iVar3 - uVar2" identifier - identifier) ))) < number_literal)) )) (compound_statement "{\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }" { (expression_statement "memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);" (call_expression "memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n)" identifier (argument_list "((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n)" ( (cast_expression "(void *)(uVar1 + *(int *)(param_2 + 0x10))" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 + *(int *)(param_2 + 0x10))" ( (binary_expression "uVar1 + *(int *)(param_2 + 0x10)" identifier + (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ))) , (pointer_expression "*(void **)(param_1 + 0x2c)" * (cast_expression "(void **)(param_1 + 0x2c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);" (call_expression "FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n)" identifier (argument_list "("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n)" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""get_output_view"" " string_content ") , (binary_expression "uVar1 + __n" identifier + identifier) ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* DWARF original prototype: void do_write(Output_data_save_res<64,_false> * this, Output_file * of)\n    */\n\nvoid __thiscall\nanon_unknown.dwarf_2af53c::Output_data_save_res<64,_false>::do_write\n          (Output_data_save_res<64,_false> *this,Output_file *of)\n\n{\n  uint uVar1;\n  uint __n;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  \n  if ((this->field_0x1c & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n    gold::do_gold_unreachable("../../gold/output.h",0xe3,"offset");\n  }\n  uVar1 = *(uint *)&this->field_0x14;\n  if ((this->field_0x1c & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    gold::do_gold_unreachable("../../gold/output.h",0xcf,"data_size");\n  }\n  __n = *(uint *)&this->field_0xc;\n  if (*(int *)&this->field_0x10 != 0) {\n                    /* WARNING: Subroutine does not return */\n    gold::do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");\n  }\n  iVar2 = *(int *)((int)&of->file_size_ + 4);\n  uVar3 = (uint)((uint)of->file_size_ < uVar1 + __n);\n  iVar4 = iVar2 - (uint)CARRY4(uVar1,__n);\n  if ((SBORROW4(iVar2,(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar4,uVar3)) == (int)(iVar4 - uVar3) < 0\n     ) {\n    memcpy(of->base_ + uVar1,this->contents_,__n);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  gold::do_gold_unreachable("../../gold/output.h",0x6f,"get_output_view");\n}\n\n" comment comment (declaration "void __thiscall\nanon_unknown.dwarf_2af53c::Output_data_save_res<64,_false>::do_write\n          (Output_data_save_res<64,_false> *this,Output_file *of)\n\n{\n  uint uVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_2af53c::" identifier . identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_false>::do_write\n          (Output_data_save_res<64,_false> *this,Output_file *of)\n\n{\n  uint" identifier > : : (function_declarator "do_write\n          (Output_data_save_res<64,_false> *this,Output_file *of)" identifier (parameter_list "(Output_data_save_res<64,_false> *this,Output_file *of)" ( (parameter_declaration "Output_data_save_res" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Output_file *of" type_identifier (pointer_declarator "*of" * identifier)) ))) { identifier) identifier ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((this->field_0x1c & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n    gold::do_gold_unreachable("../../gold/output.h",0xe3,"offset");\n  }" if (parenthesized_expression "((this->field_0x1c & 4) == 0)" ( (binary_expression "(this->field_0x1c & 4) == 0" (parenthesized_expression "(this->field_0x1c & 4)" ( (binary_expression "this->field_0x1c & 4" (field_expression "this->field_0x1c" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    gold::do_gold_unreachable("../../gold/output.h",0xe3,"offset");\n  }" { comment (labeled_statement "gold::do_gold_unreachable("../../gold/output.h",0xe3,"offset");" statement_identifier : (ERROR ":" :) (expression_statement "do_gold_unreachable("../../gold/output.h",0xe3,"offset");" (call_expression "do_gold_unreachable("../../gold/output.h",0xe3,"offset")" identifier (argument_list "("../../gold/output.h",0xe3,"offset")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""offset"" " string_content ") ))) ;)) })) (expression_statement "uVar1 = *(uint *)&this->field_0x14;" (assignment_expression "uVar1 = *(uint *)&this->field_0x14" identifier = (pointer_expression "*(uint *)&this->field_0x14" * (cast_expression "(uint *)&this->field_0x14" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->field_0x14" & (field_expression "this->field_0x14" identifier -> field_identifier))))) ;) (if_statement "if ((this->field_0x1c & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    gold::do_gold_unreachable("../../gold/output.h",0xcf,"data_size");\n  }" if (parenthesized_expression "((this->field_0x1c & 2) == 0)" ( (binary_expression "(this->field_0x1c & 2) == 0" (parenthesized_expression "(this->field_0x1c & 2)" ( (binary_expression "this->field_0x1c & 2" (field_expression "this->field_0x1c" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    gold::do_gold_unreachable("../../gold/output.h",0xcf,"data_size");\n  }" { comment (labeled_statement "gold::do_gold_unreachable("../../gold/output.h",0xcf,"data_size");" statement_identifier : (ERROR ":" :) (expression_statement "do_gold_unreachable("../../gold/output.h",0xcf,"data_size");" (call_expression "do_gold_unreachable("../../gold/output.h",0xcf,"data_size")" identifier (argument_list "("../../gold/output.h",0xcf,"data_size")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""data_size"" " string_content ") ))) ;)) })) (expression_statement "__n = *(uint *)&this->field_0xc;" (assignment_expression "__n = *(uint *)&this->field_0xc" identifier = (pointer_expression "*(uint *)&this->field_0xc" * (cast_expression "(uint *)&this->field_0xc" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->field_0xc" & (field_expression "this->field_0xc" identifier -> field_identifier))))) ;) (if_statement "if (*(int *)&this->field_0x10 != 0) {\n                    /* WARNING: Subroutine does not return */\n    gold::do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");\n  }" if (parenthesized_expression "(*(int *)&this->field_0x10 != 0)" ( (binary_expression "*(int *)&this->field_0x10 != 0" (pointer_expression "*(int *)&this->field_0x10" * (cast_expression "(int *)&this->field_0x10" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->field_0x10" & (field_expression "this->field_0x10" identifier -> field_identifier)))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    gold::do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");\n  }" { comment (labeled_statement "gold::do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");" statement_identifier : (ERROR ":" :) (expression_statement "do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");" (call_expression "do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types")" identifier (argument_list "("../../gold/gold.h",0xc0,"convert_types")" ( (string_literal ""../../gold/gold.h"" " string_content ") , number_literal , (string_literal ""convert_types"" " string_content ") ))) ;)) })) (expression_statement "iVar2 = *(int *)((int)&of->file_size_ + 4);" (assignment_expression "iVar2 = *(int *)((int)&of->file_size_ + 4)" identifier = (pointer_expression "*(int *)((int)&of->file_size_ + 4)" * (cast_expression "(int *)((int)&of->file_size_ + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&of->file_size_ + 4)" ( (binary_expression "(int)&of->file_size_ + 4" (cast_expression "(int)&of->file_size_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&of->file_size_" & (field_expression "of->file_size_" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "uVar3 = (uint)((uint)of->file_size_ < uVar1 + __n);" (assignment_expression "uVar3 = (uint)((uint)of->file_size_ < uVar1 + __n)" identifier = (call_expression "(uint)((uint)of->file_size_ < uVar1 + __n)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)of->file_size_ < uVar1 + __n)" ( (binary_expression "(uint)of->file_size_ < uVar1 + __n" (cast_expression "(uint)of->file_size_" ( (type_descriptor "uint" type_identifier) ) (field_expression "of->file_size_" identifier -> field_identifier)) < (binary_expression "uVar1 + __n" identifier + identifier)) )))) ;) (expression_statement "iVar4 = iVar2 - (uint)CARRY4(uVar1,__n);" (assignment_expression "iVar4 = iVar2 - (uint)CARRY4(uVar1,__n)" identifier = (binary_expression "iVar2 - (uint)CARRY4(uVar1,__n)" identifier - (cast_expression "(uint)CARRY4(uVar1,__n)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,__n)" identifier (argument_list "(uVar1,__n)" ( identifier , identifier )))))) ;) (if_statement "if ((SBORROW4(iVar2,(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar4,uVar3)) == (int)(iVar4 - uVar3) < 0\n     ) {\n    memcpy(of->base_ + uVar1,this->contents_,__n);\n    return;\n  }" if (parenthesized_expression "((SBORROW4(iVar2,(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar4,uVar3)) == (int)(iVar4 - uVar3) < 0\n     )" ( (binary_expression "(SBORROW4(iVar2,(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar4,uVar3)) == (int)(iVar4 - uVar3) < 0" (parenthesized_expression "(SBORROW4(iVar2,(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar4,uVar3))" ( (binary_expression "SBORROW4(iVar2,(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar4,uVar3)" (call_expression "SBORROW4(iVar2,(uint)CARRY4(uVar1,__n))" identifier (argument_list "(iVar2,(uint)CARRY4(uVar1,__n))" ( identifier , (cast_expression "(uint)CARRY4(uVar1,__n)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,__n)" identifier (argument_list "(uVar1,__n)" ( identifier , identifier )))) ))) != (call_expression "SBORROW4(iVar4,uVar3)" identifier (argument_list "(iVar4,uVar3)" ( identifier , identifier )))) )) == (binary_expression "(int)(iVar4 - uVar3) < 0" (cast_expression "(int)(iVar4 - uVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iVar4 - uVar3)" ( (binary_expression "iVar4 - uVar3" identifier - identifier) ))) < number_literal)) )) (compound_statement "{\n    memcpy(of->base_ + uVar1,this->contents_,__n);\n    return;\n  }" { (expression_statement "memcpy(of->base_ + uVar1,this->contents_,__n);" (call_expression "memcpy(of->base_ + uVar1,this->contents_,__n)" identifier (argument_list "(of->base_ + uVar1,this->contents_,__n)" ( (binary_expression "of->base_ + uVar1" (field_expression "of->base_" identifier -> field_identifier) + identifier) , (field_expression "this->contents_" identifier -> field_identifier) , identifier ))) ;) (return_statement "return;" return ;) })) comment (labeled_statement "gold::do_gold_unreachable("../../gold/output.h",0x6f,"get_output_view");" statement_identifier : (ERROR ":" :) (expression_statement "do_gold_unreachable("../../gold/output.h",0x6f,"get_output_view");" (call_expression "do_gold_unreachable("../../gold/output.h",0x6f,"get_output_view")" identifier (argument_list "("../../gold/output.h",0x6f,"get_output_view")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""get_output_view"" " string_content ") ))) ;)) (ERROR "}" }))
(translation_unit "void FUN_000503c0(int param_1,int param_2)\n\n{\n  uint uVar1;\n  uint __n;\n  uint uVar2;\n  int iVar3;\n  \n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }\n  __n = *(uint *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) != 0) {\n                    \n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }\n  uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);\n  iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);\n  if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0) {\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }\n                    \n  FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);\n}\n\n" (function_definition "void FUN_000503c0(int param_1,int param_2)\n\n{\n  uint uVar1;\n  uint __n;\n  uint uVar2;\n  int iVar3;\n  \n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }\n  __n = *(uint *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) != 0) {\n                    \n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }\n  uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);\n  iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);\n  if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0) {\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }\n                    \n  FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);\n}" primitive_type (function_declarator "FUN_000503c0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint __n;\n  uint uVar2;\n  int iVar3;\n  \n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }\n  __n = *(uint *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) != 0) {\n                    \n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }\n  uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);\n  iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);\n  if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0) {\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }\n                    \n  FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 4" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    \n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }" { (expression_statement "FUN_000da200("../../gold/output.h",0xe3,"offset");" (call_expression "FUN_000da200("../../gold/output.h",0xe3,"offset")" identifier (argument_list "("../../gold/output.h",0xe3,"offset")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""offset"" " string_content ") ))) ;) })) (expression_statement "uVar1 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 2) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 2)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 2" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    \n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }" { (expression_statement "FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);" (call_expression "FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1)" identifier (argument_list "("../../gold/output.h",0xcf,"data_size",param_1)" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""data_size"" " string_content ") , identifier ))) ;) })) (expression_statement "__n = *(uint *)(param_1 + 0xc);" (assignment_expression "__n = *(uint *)(param_1 + 0xc)" identifier = (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n                    \n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }" { (expression_statement "FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);" (call_expression "FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1)" identifier (argument_list "("../../gold/gold.h",0xc0,"convert_types",uVar1)" ( (string_literal ""../../gold/gold.h"" " string_content ") , number_literal , (string_literal ""convert_types"" " string_content ") , identifier ))) ;) })) (expression_statement "uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);" (assignment_expression "uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n)" identifier = (call_expression "(uint)(*(uint *)(param_2 + 8) < uVar1 + __n)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_2 + 8) < uVar1 + __n)" ( (binary_expression "*(uint *)(param_2 + 8) < uVar1 + __n" (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) < (binary_expression "uVar1 + __n" identifier + identifier)) )))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);" (assignment_expression "iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n)" identifier = (binary_expression "*(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n)" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) - (cast_expression "(uint)CARRY4(uVar1,__n)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,__n)" identifier (argument_list "(uVar1,__n)" ( identifier , identifier )))))) ;) (if_statement "if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0) {\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }" if (parenthesized_expression "((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0)" ( (binary_expression "(SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0" (parenthesized_expression "(SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2))" ( (binary_expression "SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)" (call_expression "SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n))" identifier (argument_list "(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n))" ( (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) , (cast_expression "(uint)CARRY4(uVar1,__n)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,__n)" identifier (argument_list "(uVar1,__n)" ( identifier , identifier )))) ))) != (call_expression "SBORROW4(iVar3,uVar2)" identifier (argument_list "(iVar3,uVar2)" ( identifier , identifier )))) )) == (binary_expression "(int)(iVar3 - uVar2) < 0" (cast_expression "(int)(iVar3 - uVar2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iVar3 - uVar2)" ( (binary_expression "iVar3 - uVar2" identifier - identifier) ))) < number_literal)) )) (compound_statement "{\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }" { (expression_statement "memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);" (call_expression "memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n)" identifier (argument_list "((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n)" ( (cast_expression "(void *)(uVar1 + *(int *)(param_2 + 0x10))" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 + *(int *)(param_2 + 0x10))" ( (binary_expression "uVar1 + *(int *)(param_2 + 0x10)" identifier + (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ))) , (pointer_expression "*(void **)(param_1 + 0x2c)" * (cast_expression "(void **)(param_1 + 0x2c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);" (call_expression "FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n)" identifier (argument_list "("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n)" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""get_output_view"" " string_content ") , (binary_expression "uVar1 + __n" identifier + identifier) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (binary_expression IDENT + IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))) ))) != (call_expression IDENT (argument_list ( IDENT , IDENT )))) )) == (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) < LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , (binary_expression IDENT + IDENT) ))) ;) })))
(function_definition "void FUN_000503c0(int param_1,int param_2)\n\n{\n  uint uVar1;\n  uint __n;\n  uint uVar2;\n  int iVar3;\n  \n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }\n  __n = *(uint *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) != 0) {\n                    \n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }\n  uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);\n  iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);\n  if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0) {\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }\n                    \n  FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);\n}" (primitive_type "void") (function_declarator "FUN_000503c0(int param_1,int param_2)" (identifier "FUN_000503c0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint __n;\n  uint uVar2;\n  int iVar3;\n  \n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }\n  __n = *(uint *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) != 0) {\n                    \n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }\n  uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);\n  iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);\n  if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0) {\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }\n                    \n  FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x1c) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 0x1c) & 4" (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_000da200("../../gold/output.h",0xe3,"offset");\n  }" ({ "{") (expression_statement "FUN_000da200("../../gold/output.h",0xe3,"offset");" (call_expression "FUN_000da200("../../gold/output.h",0xe3,"offset")" (identifier "FUN_000da200") (argument_list "("../../gold/output.h",0xe3,"offset")" (( "(") (string_literal ""../../gold/output.h"" (" """) (string_content "../../gold/output.h") (" """)) (, ",") (number_literal "0xe3") (, ",") (string_literal ""offset"" (" """) (string_content "offset") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x14)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {\n                    \n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 2) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x1c) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 2)" (( "(") (binary_expression "*(byte *)(param_1 + 0x1c) & 2" (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);\n  }" ({ "{") (expression_statement "FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);" (call_expression "FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1)" (identifier "FUN_000da200") (argument_list "("../../gold/output.h",0xcf,"data_size",param_1)" (( "(") (string_literal ""../../gold/output.h"" (" """) (string_content "../../gold/output.h") (" """)) (, ",") (number_literal "0xcf") (, ",") (string_literal ""data_size"" (" """) (string_content "data_size") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "__n = *(uint *)(param_1 + 0xc);" (assignment_expression "__n = *(uint *)(param_1 + 0xc)" (identifier "__n") (= "=") (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n                    \n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);\n  }" ({ "{") (expression_statement "FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);" (call_expression "FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1)" (identifier "FUN_000da200") (argument_list "("../../gold/gold.h",0xc0,"convert_types",uVar1)" (( "(") (string_literal ""../../gold/gold.h"" (" """) (string_content "../../gold/gold.h") (" """)) (, ",") (number_literal "0xc0") (, ",") (string_literal ""convert_types"" (" """) (string_content "convert_types") (" """)) (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);" (assignment_expression "uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n)" (identifier "uVar2") (= "=") (call_expression "(uint)(*(uint *)(param_2 + 8) < uVar1 + __n)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(uint *)(param_2 + 8) < uVar1 + __n)" (( "(") (binary_expression "*(uint *)(param_2 + 8) < uVar1 + __n" (pointer_expression "*(uint *)(param_2 + 8)" (* "*") (cast_expression "(uint *)(param_2 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (< "<") (binary_expression "uVar1 + __n" (identifier "uVar1") (+ "+") (identifier "__n"))) () ")")))) (; ";")) (expression_statement "iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);" (assignment_expression "iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n)" (identifier "iVar3") (= "=") (binary_expression "*(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n)" (pointer_expression "*(int *)(param_2 + 0xc)" (* "*") (cast_expression "(int *)(param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (- "-") (cast_expression "(uint)CARRY4(uVar1,__n)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar1,__n)" (identifier "CARRY4") (argument_list "(uVar1,__n)" (( "(") (identifier "uVar1") (, ",") (identifier "__n") () ")")))))) (; ";")) (if_statement "if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0) {\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }" (if "if") (parenthesized_expression "((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0)" (( "(") (binary_expression "(SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==\n      (int)(iVar3 - uVar2) < 0" (parenthesized_expression "(SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2))" (( "(") (binary_expression "SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)" (call_expression "SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n))" (identifier "SBORROW4") (argument_list "(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n))" (( "(") (pointer_expression "*(int *)(param_2 + 0xc)" (* "*") (cast_expression "(int *)(param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (cast_expression "(uint)CARRY4(uVar1,__n)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar1,__n)" (identifier "CARRY4") (argument_list "(uVar1,__n)" (( "(") (identifier "uVar1") (, ",") (identifier "__n") () ")")))) () ")"))) (!= "!=") (call_expression "SBORROW4(iVar3,uVar2)" (identifier "SBORROW4") (argument_list "(iVar3,uVar2)" (( "(") (identifier "iVar3") (, ",") (identifier "uVar2") () ")")))) () ")")) (== "==") (binary_expression "(int)(iVar3 - uVar2) < 0" (cast_expression "(int)(iVar3 - uVar2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(iVar3 - uVar2)" (( "(") (binary_expression "iVar3 - uVar2" (identifier "iVar3") (- "-") (identifier "uVar2")) () ")"))) (< "<") (number_literal "0"))) () ")")) (compound_statement "{\n    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);\n    return;\n  }" ({ "{") (expression_statement "memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);" (call_expression "memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n)" (identifier "memcpy") (argument_list "((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n)" (( "(") (cast_expression "(void *)(uVar1 + *(int *)(param_2 + 0x10))" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar1 + *(int *)(param_2 + 0x10))" (( "(") (binary_expression "uVar1 + *(int *)(param_2 + 0x10)" (identifier "uVar1") (+ "+") (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) () ")"))) (, ",") (pointer_expression "*(void **)(param_1 + 0x2c)" (* "*") (cast_expression "(void **)(param_1 + 0x2c)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (, ",") (identifier "__n") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);" (call_expression "FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n)" (identifier "FUN_000da200") (argument_list "("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n)" (( "(") (string_literal ""../../gold/output.h"" (" """) (string_content "../../gold/output.h") (" """)) (, ",") (number_literal "0x6f") (, ",") (string_literal ""get_output_view"" (" """) (string_content "get_output_view") (" """)) (, ",") (binary_expression "uVar1 + __n" (identifier "uVar1") (+ "+") (identifier "__n")) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: void do_write(Output_data_save_res<64,_false> * this, Output_file * of)
    */

void __thiscall
anon_unknown.dwarf_2af53c::Output_data_save_res<64,_false>::do_write
          (Output_data_save_res<64,_false> *this,Output_file *of)

{
  type_1 var_2;
  type_1 var_3;
  int var_4;
  type_1 var_8;
  int var_7;
  
  if ((this->field_0x1c & 4) == 0) {
                    /* WARNING: Subroutine does not return */
    gold::var_1("../../gold/output.h",0xe3,"offset");
  }
  var_2 = *(type_1 *)&this->field_0x14;
  if ((this->field_0x1c & 2) == 0) {
                    /* WARNING: Subroutine does not return */
    gold::var_1("../../gold/output.h",0xcf,"data_size");
  }
  var_3 = *(type_1 *)&this->field_0xc;
  if (*(int *)&this->field_0x10 != 0) {
                    /* WARNING: Subroutine does not return */
    gold::var_1("../../gold/gold.h",0xc0,"convert_types");
  }
  var_4 = *(int *)((int)&of->file_size_ + 4);
  var_8 = (type_1)((type_1)of->file_size_ < var_2 + var_3);
  var_7 = var_4 - (type_1)var_5(var_2,var_3);
  if ((var_6(var_4,(type_1)var_5(var_2,var_3)) != var_6(var_7,var_8)) == (int)(var_7 - var_8) < 0
     ) {
    var_9(of->base_ + var_2,this->contents_,var_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  gold::var_1("../../gold/output.h",0x6f,"get_output_view");
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(int param_1,int param_2)

{
  uint uVar1;
  uint __n;
  uint uVar2;
  int iVar3;
  
  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_000da200("../../gold/output.h",0xe3,"offset");
  }
  uVar1 = *(uint *)(param_1 + 0x14);
  if ((*(byte *)(param_1 + 0x1c) & 2) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_000da200("../../gold/output.h",0xcf,"data_size",param_1);
  }
  __n = *(uint *)(param_1 + 0xc);
  if (*(int *)(param_1 + 0x10) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_000da200("../../gold/gold.h",0xc0,"convert_types",uVar1);
  }
  uVar2 = (uint)(*(uint *)(param_2 + 8) < uVar1 + __n);
  iVar3 = *(int *)(param_2 + 0xc) - (uint)CARRY4(uVar1,__n);
  if ((SBORROW4(*(int *)(param_2 + 0xc),(uint)CARRY4(uVar1,__n)) != SBORROW4(iVar3,uVar2)) ==
      (int)(iVar3 - uVar2) < 0) {
    memcpy((void *)(uVar1 + *(int *)(param_2 + 0x10)),*(void **)(param_1 + 0x2c),__n);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000da200("../../gold/output.h",0x6f,"get_output_view",uVar1 + __n);
}

