
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void gold::Lex::read_file(Input_file *input_file,string *contents)

{
  uint uVar1;
  int iVar2;
  uint __fd;
  void *__buf;
  bool bVar3;
  uint local_203c;
  int local_2038;
  uchar buf [8192];
  
  uVar1 = (uint)(input_file->file_).size_;
  iVar2 = *(int *)((int)&(input_file->file_).size_ + 4);
  contents->_M_string_length = 0;
  *(contents->_M_dataplus)._M_p = '\0';
  std::string::reserve((string *)contents,uVar1);
  if (-iVar2 < (int)(uint)(uVar1 != 0)) {
    __buf = (void *)0x0;
    __fd = 0;
    do {
      local_203c = uVar1 - __fd;
      local_2038 = (iVar2 - (int)__buf) - (uint)(uVar1 < __fd);
      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {
        local_203c = 0x2000;
        local_2038 = 0;
      }
      File_read::read(&input_file->file_,__fd,__buf,local_203c);
      if (0x7fffffff - contents->_M_string_length < local_203c) {
                    /* WARNING: Subroutine does not return */
        std::__throw_length_error("basic_string::append");
      }
      std::string::_M_append((string *)contents,(char *)buf,local_203c);
      bVar3 = CARRY4(__fd,local_203c);
      __fd = __fd + local_203c;
      __buf = (void *)((int)__buf + (uint)bVar3 + local_2038);
    } while ((SBORROW4((int)__buf,iVar2) != SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1))) !=
             (int)(((int)__buf - iVar2) - (uint)(__fd < uVar1)) < 0);
  }
  return;
}



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

void FUN_00168e00(int param_1,undefined4 *param_2)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  bool bVar5;
  uint local_203c;
  int local_2038;
  undefined1 local_201c [8200];
  undefined4 uStack_14;
  
  uStack_14 = 0x168e09;
  uVar1 = *(uint *)(param_1 + 0x40);
  iVar2 = *(int *)(param_1 + 0x44);
  param_2[1] = 0;
  *(undefined1 *)*param_2 = 0;
  FUN_001ef040(param_2,uVar1);
  if (-iVar2 < (int)(uint)(uVar1 != 0)) {
    iVar4 = 0;
    uVar3 = 0;
    do {
      local_203c = uVar1 - uVar3;
      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);
      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {
        local_203c = 0x2000;
        local_2038 = 0;
      }
      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);
      if (0x7fffffff - param_2[1] < local_203c) {
                    /* WARNING: Subroutine does not return */
        FUN_0022c7a0("basic_string::append");
      }
      FUN_001f05c0(param_2,local_201c,local_203c);
      bVar5 = CARRY4(uVar3,local_203c);
      uVar3 = uVar3 + local_203c;
      iVar4 = iVar4 + local_2038 + (uint)bVar5;
    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=
             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x2261f7
SUB ESP,0x2034
MOV ESI,dword ptr [ESP + 0x2048]
MOV EBP,dword ptr [ESP + 0x204c]
MOV EDX,dword ptr [ESI + 0x40]
MOV ECX,dword ptr [ESI + 0x44]
MOV dword ptr [EBP + 0x4],0x0
MOV EAX,dword ptr [EBP]
MOV dword ptr [ESP + 0x10],EDX
MOV dword ptr [ESP + 0x14],ECX
MOV byte ptr [EAX],0x0
PUSH dword ptr [ESP + 0x10]
PUSH EBP
CALL 0x001ef040
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x8]
XOR EAX,EAX
MOV ECX,dword ptr [ESP + 0xc]
CMP EAX,EDX
SBB EAX,ECX
JGE 0x00168f08
LEA EAX,[ESI + 0x1c]
XOR EDI,EDI
XOR ESI,ESI
MOV dword ptr [ESP + 0x1c],EAX
LEA EAX,[ESP + 0x20]
MOV dword ptr [ESP + 0x14],EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,0x1fff
SUB EAX,ESI
SBB EDX,EDI
CMP ECX,EAX
MOV ECX,0x0
MOV dword ptr [ESP],EAX
SBB ECX,EDX
MOV dword ptr [ESP + 0x4],EDX
MOV EDX,EAX
JGE 0x00168eb1
MOV dword ptr [ESP],0x2000
MOV EDX,0x2000
MOV dword ptr [ESP + 0x4],0x0
SUB ESP,0xc
PUSH dword ptr [ESP + 0x20]
PUSH EDX
MOV dword ptr [ESP + 0x2c],EDX
PUSH EDI
PUSH ESI
PUSH dword ptr [ESP + 0x38]
CALL 0x00066be0
ADD ESP,0x20
MOV EDX,dword ptr [ESP + 0x18]
MOV EAX,0x7fffffff
SUB EAX,dword ptr [EBP + 0x4]
CMP EAX,EDX
JC 0x00168f13
SUB ESP,0x4
PUSH EDX
PUSH dword ptr [ESP + 0x1c]
PUSH EBP
CALL 0x001f05c0
ADD ESI,dword ptr [ESP + 0x10]
ADC EDI,dword ptr [ESP + 0x14]
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,EDI
CMP ESI,EAX
SBB ECX,EDX
JL 0x00168e78
ADD ESP,0x202c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xffef7be2]
PUSH EAX
CALL 0x0022c7a0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00168e00(int param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  uint local_203c;\n  int local_2038;\n  undefined1 local_201c [8200];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x168e09;\n  uVar1 = *(uint *)(param_1 + 0x40);\n  iVar2 = *(int *)(param_1 + 0x44);\n  param_2[1] = 0;\n  *(undefined1 *)*param_2 = 0;\n  FUN_001ef040(param_2,uVar1);\n  if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00168e00(int param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  uint local_203c;\n  int local_2038;\n  undefined1 local_201c [8200];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x168e09;\n  uVar1 = *(uint *)(param_1 + 0x40);\n  iVar2 = *(int *)(param_1 + 0x44);\n  param_2[1] = 0;\n  *(undefined1 *)*param_2 = 0;\n  FUN_001ef040(param_2,uVar1);\n  if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00168e00(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  uint local_203c;\n  int local_2038;\n  undefined1 local_201c [8200];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x168e09;\n  uVar1 = *(uint *)(param_1 + 0x40);\n  iVar2 = *(int *)(param_1 + 0x44);\n  param_2[1] = 0;\n  *(undefined1 *)*param_2 = 0;\n  FUN_001ef040(param_2,uVar1);\n  if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "uint local_203c;" type_identifier identifier ;) (declaration "int local_2038;" primitive_type identifier ;) (declaration "undefined1 local_201c [8200];" type_identifier (array_declarator "local_201c [8200]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x168e09;" (assignment_expression "uStack_14 = 0x168e09" identifier = number_literal) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x40);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x40)" identifier = (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x44);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x44)" identifier = (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) ))))) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)*param_2 = 0;" (assignment_expression "*(undefined1 *)*param_2 = 0" (pointer_expression "*(undefined1 *)*param_2" * (cast_expression "(undefined1 *)*param_2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) = number_literal) ;) (expression_statement "FUN_001ef040(param_2,uVar1);" (call_expression "FUN_001ef040(param_2,uVar1)" identifier (argument_list "(param_2,uVar1)" ( identifier , identifier ))) ;) (if_statement "if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }" if (parenthesized_expression "(-iVar2 < (int)(uint)(uVar1 != 0))" ( (binary_expression "-iVar2 < (int)(uint)(uVar1 != 0)" (unary_expression "-iVar2" - identifier) < (cast_expression "(int)(uint)(uVar1 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(uVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) ))))) )) (compound_statement "{\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);" do (compound_statement "{\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    }" { (expression_statement "local_203c = uVar1 - uVar3;" (assignment_expression "local_203c = uVar1 - uVar3" identifier = (binary_expression "uVar1 - uVar3" identifier - identifier)) ;) (expression_statement "local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);" (assignment_expression "local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3)" identifier = (binary_expression "(iVar2 - iVar4) - (uint)(uVar1 < uVar3)" (parenthesized_expression "(iVar2 - iVar4)" ( (binary_expression "iVar2 - iVar4" identifier - identifier) )) - (call_expression "(uint)(uVar1 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < uVar3)" ( (binary_expression "uVar1 < uVar3" identifier < identifier) ))))) ;) (if_statement "if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }" if (parenthesized_expression "(-local_2038 < (int)(uint)(0x1fff < local_203c))" ( (binary_expression "-local_2038 < (int)(uint)(0x1fff < local_203c)" (unary_expression "-local_2038" - identifier) < (cast_expression "(int)(uint)(0x1fff < local_203c)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(0x1fff < local_203c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x1fff < local_203c)" ( (binary_expression "0x1fff < local_203c" number_literal < identifier) ))))) )) (compound_statement "{\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }" { (expression_statement "local_203c = 0x2000;" (assignment_expression "local_203c = 0x2000" identifier = number_literal) ;) (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) })) (expression_statement "FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);" (call_expression "FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c)" identifier (argument_list "(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) , identifier , identifier , identifier , identifier ))) ;) (if_statement "if (0x7fffffff - param_2[1] < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c7a0("basic_string::append");\n      }" if (parenthesized_expression "(0x7fffffff - param_2[1] < local_203c)" ( (binary_expression "0x7fffffff - param_2[1] < local_203c" (binary_expression "0x7fffffff - param_2[1]" number_literal - (subscript_expression "param_2[1]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c7a0("basic_string::append");\n      }" { comment (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_001f05c0(param_2,local_201c,local_203c);" (call_expression "FUN_001f05c0(param_2,local_201c,local_203c)" identifier (argument_list "(param_2,local_201c,local_203c)" ( identifier , identifier , identifier ))) ;) (expression_statement "bVar5 = CARRY4(uVar3,local_203c);" (assignment_expression "bVar5 = CARRY4(uVar3,local_203c)" identifier = (call_expression "CARRY4(uVar3,local_203c)" identifier (argument_list "(uVar3,local_203c)" ( identifier , identifier )))) ;) (expression_statement "uVar3 = uVar3 + local_203c;" (assignment_expression "uVar3 = uVar3 + local_203c" identifier = (binary_expression "uVar3 + local_203c" identifier + identifier)) ;) (expression_statement "iVar4 = iVar4 + local_2038 + (uint)bVar5;" (assignment_expression "iVar4 = iVar4 + local_2038 + (uint)bVar5" identifier = (binary_expression "iVar4 + local_2038 + (uint)bVar5" (binary_expression "iVar4 + local_2038" identifier + identifier) + (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) }) while (parenthesized_expression "((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0)" ( (binary_expression "(SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0" (parenthesized_expression "(SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1)))" ( (binary_expression "SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))" (call_expression "SBORROW4(iVar4,iVar2)" identifier (argument_list "(iVar4,iVar2)" ( identifier , identifier ))) != (call_expression "SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))" identifier (argument_list "(iVar4 - iVar2,(uint)(uVar3 < uVar1))" ( (binary_expression "iVar4 - iVar2" identifier - identifier) , (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar1)" ( (binary_expression "uVar3 < uVar1" identifier < identifier) ))) )))) )) != (binary_expression "(int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0" (cast_expression "(int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((iVar4 - iVar2) - (uint)(uVar3 < uVar1))" ( (binary_expression "(iVar4 - iVar2) - (uint)(uVar3 < uVar1)" (parenthesized_expression "(iVar4 - iVar2)" ( (binary_expression "iVar4 - iVar2" identifier - identifier) )) - (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar1)" ( (binary_expression "uVar3 < uVar1" identifier < identifier) )))) ))) < number_literal)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid gold::Lex::read_file(Input_file *input_file,string *contents)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint __fd;\n  void *__buf;\n  bool bVar3;\n  uint local_203c;\n  int local_2038;\n  uchar buf [8192];\n  \n  uVar1 = (uint)(input_file->file_).size_;\n  iVar2 = *(int *)((int)&(input_file->file_).size_ + 4);\n  contents->_M_string_length = 0;\n  *(contents->_M_dataplus)._M_p = '\0';\n  std::string::reserve((string *)contents,uVar1);\n  if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    __buf = (void *)0x0;\n    __fd = 0;\n    do {\n      local_203c = uVar1 - __fd;\n      local_2038 = (iVar2 - (int)__buf) - (uint)(uVar1 < __fd);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      File_read::read(&input_file->file_,__fd,__buf,local_203c);\n      if (0x7fffffff - contents->_M_string_length < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        std::__throw_length_error("basic_string::append");\n      }\n      std::string::_M_append((string *)contents,(char *)buf,local_203c);\n      bVar3 = CARRY4(__fd,local_203c);\n      __fd = __fd + local_203c;\n      __buf = (void *)((int)__buf + (uint)bVar3 + local_2038);\n    } while ((SBORROW4((int)__buf,iVar2) != SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1))) !=\n             (int)(((int)__buf - iVar2) - (uint)(__fd < uVar1)) < 0);\n  }\n  return;\n}\n\n" comment comment (function_definition "void gold::Lex::read_file(Input_file *input_file,string *contents)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint __fd;\n  void *__buf;\n  bool bVar3;\n  uint local_203c;\n  int local_2038;\n  uchar buf [8192];\n  \n  uVar1 = (uint)(input_file->file_).size_;\n  iVar2 = *(int *)((int)&(input_file->file_).size_ + 4);\n  contents->_M_string_length = 0;\n  *(contents->_M_dataplus)._M_p = '\0';\n  std::string::reserve((string *)contents,uVar1);\n  if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    __buf = (void *)0x0;\n    __fd = 0;\n    do {\n      local_203c = uVar1 - __fd;\n      local_2038 = (iVar2 - (int)__buf) - (uint)(uVar1 < __fd);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      File_read::read(&input_file->file_,__fd,__buf,local_203c);\n      if (0x7fffffff - contents->_M_string_length < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        std::__throw_length_error("basic_string::append");\n      }\n      std::string::_M_append((string *)contents,(char *)buf,local_203c);\n      bVar3 = CARRY4(__fd,local_203c);\n      __fd = __fd + local_203c;\n      __buf = (void *)((int)__buf + (uint)bVar3 + local_2038);\n    } while ((SBORROW4((int)__buf,iVar2) != SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1))) !=\n             (int)(((int)__buf - iVar2) - (uint)(__fd < uVar1)) < 0);\n  }\n  return;\n}" primitive_type (ERROR "gold::Lex::" identifier : : identifier : :) (function_declarator "read_file(Input_file *input_file,string *contents)" identifier (parameter_list "(Input_file *input_file,string *contents)" ( (parameter_declaration "Input_file *input_file" type_identifier (pointer_declarator "*input_file" * identifier)) , (parameter_declaration "string *contents" type_identifier (pointer_declarator "*contents" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint __fd;\n  void *__buf;\n  bool bVar3;\n  uint local_203c;\n  int local_2038;\n  uchar buf [8192];\n  \n  uVar1 = (uint)(input_file->file_).size_;\n  iVar2 = *(int *)((int)&(input_file->file_).size_ + 4);\n  contents->_M_string_length = 0;\n  *(contents->_M_dataplus)._M_p = '\0';\n  std::string::reserve((string *)contents,uVar1);\n  if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    __buf = (void *)0x0;\n    __fd = 0;\n    do {\n      local_203c = uVar1 - __fd;\n      local_2038 = (iVar2 - (int)__buf) - (uint)(uVar1 < __fd);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      File_read::read(&input_file->file_,__fd,__buf,local_203c);\n      if (0x7fffffff - contents->_M_string_length < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        std::__throw_length_error("basic_string::append");\n      }\n      std::string::_M_append((string *)contents,(char *)buf,local_203c);\n      bVar3 = CARRY4(__fd,local_203c);\n      __fd = __fd + local_203c;\n      __buf = (void *)((int)__buf + (uint)bVar3 + local_2038);\n    } while ((SBORROW4((int)__buf,iVar2) != SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1))) !=\n             (int)(((int)__buf - iVar2) - (uint)(__fd < uVar1)) < 0);\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint __fd;" type_identifier identifier ;) (declaration "void *__buf;" primitive_type (pointer_declarator "*__buf" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "uint local_203c;" type_identifier identifier ;) (declaration "int local_2038;" primitive_type identifier ;) (declaration "uchar buf [8192];" type_identifier (array_declarator "buf [8192]" identifier [ number_literal ]) ;) (expression_statement "uVar1 = (uint)(input_file->file_).size_;" (assignment_expression "uVar1 = (uint)(input_file->file_).size_" identifier = (field_expression "(uint)(input_file->file_).size_" (call_expression "(uint)(input_file->file_)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(input_file->file_)" ( (field_expression "input_file->file_" identifier -> field_identifier) ))) . field_identifier)) ;) (expression_statement "iVar2 = *(int *)((int)&(input_file->file_).size_ + 4);" (assignment_expression "iVar2 = *(int *)((int)&(input_file->file_).size_ + 4)" identifier = (pointer_expression "*(int *)((int)&(input_file->file_).size_ + 4)" * (cast_expression "(int *)((int)&(input_file->file_).size_ + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(input_file->file_).size_ + 4)" ( (binary_expression "(int)&(input_file->file_).size_ + 4" (cast_expression "(int)&(input_file->file_).size_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(input_file->file_).size_" & (field_expression "(input_file->file_).size_" (parenthesized_expression "(input_file->file_)" ( (field_expression "input_file->file_" identifier -> field_identifier) )) . field_identifier))) + number_literal) ))))) ;) (expression_statement "contents->_M_string_length = 0;" (assignment_expression "contents->_M_string_length = 0" (field_expression "contents->_M_string_length" identifier -> field_identifier) = number_literal) ;) (expression_statement "*(contents->_M_dataplus)._M_p = '\0';" (assignment_expression "*(contents->_M_dataplus)._M_p = '\0'" (pointer_expression "*(contents->_M_dataplus)._M_p" * (field_expression "(contents->_M_dataplus)._M_p" (parenthesized_expression "(contents->_M_dataplus)" ( (field_expression "contents->_M_dataplus" identifier -> field_identifier) )) . field_identifier)) = (char_literal "'\0'" ' escape_sequence ')) ;) (labeled_statement "std::string::reserve((string *)contents,uVar1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::reserve((string *)contents,uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "reserve((string *)contents,uVar1);" (call_expression "reserve((string *)contents,uVar1)" identifier (argument_list "((string *)contents,uVar1)" ( (cast_expression "(string *)contents" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;))) (if_statement "if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    __buf = (void *)0x0;\n    __fd = 0;\n    do {\n      local_203c = uVar1 - __fd;\n      local_2038 = (iVar2 - (int)__buf) - (uint)(uVar1 < __fd);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      File_read::read(&input_file->file_,__fd,__buf,local_203c);\n      if (0x7fffffff - contents->_M_string_length < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        std::__throw_length_error("basic_string::append");\n      }\n      std::string::_M_append((string *)contents,(char *)buf,local_203c);\n      bVar3 = CARRY4(__fd,local_203c);\n      __fd = __fd + local_203c;\n      __buf = (void *)((int)__buf + (uint)bVar3 + local_2038);\n    } while ((SBORROW4((int)__buf,iVar2) != SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1))) !=\n             (int)(((int)__buf - iVar2) - (uint)(__fd < uVar1)) < 0);\n  }" if (parenthesized_expression "(-iVar2 < (int)(uint)(uVar1 != 0))" ( (binary_expression "-iVar2 < (int)(uint)(uVar1 != 0)" (unary_expression "-iVar2" - identifier) < (cast_expression "(int)(uint)(uVar1 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(uVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) ))))) )) (compound_statement "{\n    __buf = (void *)0x0;\n    __fd = 0;\n    do {\n      local_203c = uVar1 - __fd;\n      local_2038 = (iVar2 - (int)__buf) - (uint)(uVar1 < __fd);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      File_read::read(&input_file->file_,__fd,__buf,local_203c);\n      if (0x7fffffff - contents->_M_string_length < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        std::__throw_length_error("basic_string::append");\n      }\n      std::string::_M_append((string *)contents,(char *)buf,local_203c);\n      bVar3 = CARRY4(__fd,local_203c);\n      __fd = __fd + local_203c;\n      __buf = (void *)((int)__buf + (uint)bVar3 + local_2038);\n    } while ((SBORROW4((int)__buf,iVar2) != SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1))) !=\n             (int)(((int)__buf - iVar2) - (uint)(__fd < uVar1)) < 0);\n  }" { (expression_statement "__buf = (void *)0x0;" (assignment_expression "__buf = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "__fd = 0;" (assignment_expression "__fd = 0" identifier = number_literal) ;) (do_statement "do {\n      local_203c = uVar1 - __fd;\n      local_2038 = (iVar2 - (int)__buf) - (uint)(uVar1 < __fd);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      File_read::read(&input_file->file_,__fd,__buf,local_203c);\n      if (0x7fffffff - contents->_M_string_length < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        std::__throw_length_error("basic_string::append");\n      }\n      std::string::_M_append((string *)contents,(char *)buf,local_203c);\n      bVar3 = CARRY4(__fd,local_203c);\n      __fd = __fd + local_203c;\n      __buf = (void *)((int)__buf + (uint)bVar3 + local_2038);\n    } while ((SBORROW4((int)__buf,iVar2) != SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1))) !=\n             (int)(((int)__buf - iVar2) - (uint)(__fd < uVar1)) < 0);" do (compound_statement "{\n      local_203c = uVar1 - __fd;\n      local_2038 = (iVar2 - (int)__buf) - (uint)(uVar1 < __fd);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      File_read::read(&input_file->file_,__fd,__buf,local_203c);\n      if (0x7fffffff - contents->_M_string_length < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        std::__throw_length_error("basic_string::append");\n      }\n      std::string::_M_append((string *)contents,(char *)buf,local_203c);\n      bVar3 = CARRY4(__fd,local_203c);\n      __fd = __fd + local_203c;\n      __buf = (void *)((int)__buf + (uint)bVar3 + local_2038);\n    }" { (expression_statement "local_203c = uVar1 - __fd;" (assignment_expression "local_203c = uVar1 - __fd" identifier = (binary_expression "uVar1 - __fd" identifier - identifier)) ;) (expression_statement "local_2038 = (iVar2 - (int)__buf) - (uint)(uVar1 < __fd);" (assignment_expression "local_2038 = (iVar2 - (int)__buf) - (uint)(uVar1 < __fd)" identifier = (binary_expression "(iVar2 - (int)__buf) - (uint)(uVar1 < __fd)" (parenthesized_expression "(iVar2 - (int)__buf)" ( (binary_expression "iVar2 - (int)__buf" identifier - (cast_expression "(int)__buf" ( (type_descriptor "int" primitive_type) ) identifier)) )) - (call_expression "(uint)(uVar1 < __fd)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < __fd)" ( (binary_expression "uVar1 < __fd" identifier < identifier) ))))) ;) (if_statement "if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }" if (parenthesized_expression "(-local_2038 < (int)(uint)(0x1fff < local_203c))" ( (binary_expression "-local_2038 < (int)(uint)(0x1fff < local_203c)" (unary_expression "-local_2038" - identifier) < (cast_expression "(int)(uint)(0x1fff < local_203c)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(0x1fff < local_203c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x1fff < local_203c)" ( (binary_expression "0x1fff < local_203c" number_literal < identifier) ))))) )) (compound_statement "{\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }" { (expression_statement "local_203c = 0x2000;" (assignment_expression "local_203c = 0x2000" identifier = number_literal) ;) (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) })) (labeled_statement "File_read::read(&input_file->file_,__fd,__buf,local_203c);" statement_identifier : (ERROR ":" :) (expression_statement "read(&input_file->file_,__fd,__buf,local_203c);" (call_expression "read(&input_file->file_,__fd,__buf,local_203c)" identifier (argument_list "(&input_file->file_,__fd,__buf,local_203c)" ( (pointer_expression "&input_file->file_" & (field_expression "input_file->file_" identifier -> field_identifier)) , identifier , identifier , identifier ))) ;)) (if_statement "if (0x7fffffff - contents->_M_string_length < local_203c) {\n                    /* WARNING: Subroutine does not return */\n        std::__throw_length_error("basic_string::append");\n      }" if (parenthesized_expression "(0x7fffffff - contents->_M_string_length < local_203c)" ( (binary_expression "0x7fffffff - contents->_M_string_length < local_203c" (binary_expression "0x7fffffff - contents->_M_string_length" number_literal - (field_expression "contents->_M_string_length" identifier -> field_identifier)) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        std::__throw_length_error("basic_string::append");\n      }" { comment (labeled_statement "std::__throw_length_error("basic_string::append");" statement_identifier : (ERROR ":" :) (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;)) })) (labeled_statement "std::string::_M_append((string *)contents,(char *)buf,local_203c);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append((string *)contents,(char *)buf,local_203c);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((string *)contents,(char *)buf,local_203c);" (call_expression "_M_append((string *)contents,(char *)buf,local_203c)" identifier (argument_list "((string *)contents,(char *)buf,local_203c)" ( (cast_expression "(string *)contents" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)buf" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;))) (expression_statement "bVar3 = CARRY4(__fd,local_203c);" (assignment_expression "bVar3 = CARRY4(__fd,local_203c)" identifier = (call_expression "CARRY4(__fd,local_203c)" identifier (argument_list "(__fd,local_203c)" ( identifier , identifier )))) ;) (expression_statement "__fd = __fd + local_203c;" (assignment_expression "__fd = __fd + local_203c" identifier = (binary_expression "__fd + local_203c" identifier + identifier)) ;) (expression_statement "__buf = (void *)((int)__buf + (uint)bVar3 + local_2038);" (assignment_expression "__buf = (void *)((int)__buf + (uint)bVar3 + local_2038)" identifier = (cast_expression "(void *)((int)__buf + (uint)bVar3 + local_2038)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__buf + (uint)bVar3 + local_2038)" ( (binary_expression "(int)__buf + (uint)bVar3 + local_2038" (binary_expression "(int)__buf + (uint)bVar3" (cast_expression "(int)__buf" ( (type_descriptor "int" primitive_type) ) identifier) + (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) + identifier) )))) ;) }) while (parenthesized_expression "((SBORROW4((int)__buf,iVar2) != SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1))) !=\n             (int)(((int)__buf - iVar2) - (uint)(__fd < uVar1)) < 0)" ( (binary_expression "(SBORROW4((int)__buf,iVar2) != SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1))) !=\n             (int)(((int)__buf - iVar2) - (uint)(__fd < uVar1)) < 0" (parenthesized_expression "(SBORROW4((int)__buf,iVar2) != SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1)))" ( (binary_expression "SBORROW4((int)__buf,iVar2) != SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1))" (call_expression "SBORROW4((int)__buf,iVar2)" identifier (argument_list "((int)__buf,iVar2)" ( (cast_expression "(int)__buf" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) != (call_expression "SBORROW4((int)__buf - iVar2,(uint)(__fd < uVar1))" identifier (argument_list "((int)__buf - iVar2,(uint)(__fd < uVar1))" ( (binary_expression "(int)__buf - iVar2" (cast_expression "(int)__buf" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) , (call_expression "(uint)(__fd < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(__fd < uVar1)" ( (binary_expression "__fd < uVar1" identifier < identifier) ))) )))) )) != (binary_expression "(int)(((int)__buf - iVar2) - (uint)(__fd < uVar1)) < 0" (cast_expression "(int)(((int)__buf - iVar2) - (uint)(__fd < uVar1))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((int)__buf - iVar2) - (uint)(__fd < uVar1))" ( (binary_expression "((int)__buf - iVar2) - (uint)(__fd < uVar1)" (parenthesized_expression "((int)__buf - iVar2)" ( (binary_expression "(int)__buf - iVar2" (cast_expression "(int)__buf" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )) - (call_expression "(uint)(__fd < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(__fd < uVar1)" ( (binary_expression "__fd < uVar1" identifier < identifier) )))) ))) < number_literal)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00168e00(int param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  uint local_203c;\n  int local_2038;\n  undefined1 local_201c [8200];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x168e09;\n  uVar1 = *(uint *)(param_1 + 0x40);\n  iVar2 = *(int *)(param_1 + 0x44);\n  param_2[1] = 0;\n  *(undefined1 *)*param_2 = 0;\n  FUN_001ef040(param_2,uVar1);\n  if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00168e00(int param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  uint local_203c;\n  int local_2038;\n  undefined1 local_201c [8200];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x168e09;\n  uVar1 = *(uint *)(param_1 + 0x40);\n  iVar2 = *(int *)(param_1 + 0x44);\n  param_2[1] = 0;\n  *(undefined1 *)*param_2 = 0;\n  FUN_001ef040(param_2,uVar1);\n  if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00168e00(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  uint local_203c;\n  int local_2038;\n  undefined1 local_201c [8200];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x168e09;\n  uVar1 = *(uint *)(param_1 + 0x40);\n  iVar2 = *(int *)(param_1 + 0x44);\n  param_2[1] = 0;\n  *(undefined1 *)*param_2 = 0;\n  FUN_001ef040(param_2,uVar1);\n  if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "uint local_203c;" type_identifier identifier ;) (declaration "int local_2038;" primitive_type identifier ;) (declaration "undefined1 local_201c [8200];" type_identifier (array_declarator "local_201c [8200]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x168e09;" (assignment_expression "uStack_14 = 0x168e09" identifier = number_literal) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x40);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x40)" identifier = (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x44);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x44)" identifier = (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) ))))) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)*param_2 = 0;" (assignment_expression "*(undefined1 *)*param_2 = 0" (pointer_expression "*(undefined1 *)*param_2" * (cast_expression "(undefined1 *)*param_2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) = number_literal) ;) (expression_statement "FUN_001ef040(param_2,uVar1);" (call_expression "FUN_001ef040(param_2,uVar1)" identifier (argument_list "(param_2,uVar1)" ( identifier , identifier ))) ;) (if_statement "if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }" if (parenthesized_expression "(-iVar2 < (int)(uint)(uVar1 != 0))" ( (binary_expression "-iVar2 < (int)(uint)(uVar1 != 0)" (unary_expression "-iVar2" - identifier) < (cast_expression "(int)(uint)(uVar1 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(uVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) ))))) )) (compound_statement "{\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);" do (compound_statement "{\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    }" { (expression_statement "local_203c = uVar1 - uVar3;" (assignment_expression "local_203c = uVar1 - uVar3" identifier = (binary_expression "uVar1 - uVar3" identifier - identifier)) ;) (expression_statement "local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);" (assignment_expression "local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3)" identifier = (binary_expression "(iVar2 - iVar4) - (uint)(uVar1 < uVar3)" (parenthesized_expression "(iVar2 - iVar4)" ( (binary_expression "iVar2 - iVar4" identifier - identifier) )) - (call_expression "(uint)(uVar1 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < uVar3)" ( (binary_expression "uVar1 < uVar3" identifier < identifier) ))))) ;) (if_statement "if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }" if (parenthesized_expression "(-local_2038 < (int)(uint)(0x1fff < local_203c))" ( (binary_expression "-local_2038 < (int)(uint)(0x1fff < local_203c)" (unary_expression "-local_2038" - identifier) < (cast_expression "(int)(uint)(0x1fff < local_203c)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(0x1fff < local_203c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x1fff < local_203c)" ( (binary_expression "0x1fff < local_203c" number_literal < identifier) ))))) )) (compound_statement "{\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }" { (expression_statement "local_203c = 0x2000;" (assignment_expression "local_203c = 0x2000" identifier = number_literal) ;) (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) })) (expression_statement "FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);" (call_expression "FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c)" identifier (argument_list "(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) , identifier , identifier , identifier , identifier ))) ;) (if_statement "if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }" if (parenthesized_expression "(0x7fffffff - param_2[1] < local_203c)" ( (binary_expression "0x7fffffff - param_2[1] < local_203c" (binary_expression "0x7fffffff - param_2[1]" number_literal - (subscript_expression "param_2[1]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n                    \n        FUN_0022c7a0("basic_string::append");\n      }" { (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_001f05c0(param_2,local_201c,local_203c);" (call_expression "FUN_001f05c0(param_2,local_201c,local_203c)" identifier (argument_list "(param_2,local_201c,local_203c)" ( identifier , identifier , identifier ))) ;) (expression_statement "bVar5 = CARRY4(uVar3,local_203c);" (assignment_expression "bVar5 = CARRY4(uVar3,local_203c)" identifier = (call_expression "CARRY4(uVar3,local_203c)" identifier (argument_list "(uVar3,local_203c)" ( identifier , identifier )))) ;) (expression_statement "uVar3 = uVar3 + local_203c;" (assignment_expression "uVar3 = uVar3 + local_203c" identifier = (binary_expression "uVar3 + local_203c" identifier + identifier)) ;) (expression_statement "iVar4 = iVar4 + local_2038 + (uint)bVar5;" (assignment_expression "iVar4 = iVar4 + local_2038 + (uint)bVar5" identifier = (binary_expression "iVar4 + local_2038 + (uint)bVar5" (binary_expression "iVar4 + local_2038" identifier + identifier) + (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) }) while (parenthesized_expression "((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0)" ( (binary_expression "(SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0" (parenthesized_expression "(SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1)))" ( (binary_expression "SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))" (call_expression "SBORROW4(iVar4,iVar2)" identifier (argument_list "(iVar4,iVar2)" ( identifier , identifier ))) != (call_expression "SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))" identifier (argument_list "(iVar4 - iVar2,(uint)(uVar3 < uVar1))" ( (binary_expression "iVar4 - iVar2" identifier - identifier) , (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar1)" ( (binary_expression "uVar3 < uVar1" identifier < identifier) ))) )))) )) != (binary_expression "(int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0" (cast_expression "(int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((iVar4 - iVar2) - (uint)(uVar3 < uVar1))" ( (binary_expression "(iVar4 - iVar2) - (uint)(uVar3 < uVar1)" (parenthesized_expression "(iVar4 - iVar2)" ( (binary_expression "iVar4 - iVar2" identifier - identifier) )) - (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar1)" ( (binary_expression "uVar3 < uVar1" identifier < identifier) )))) ))) < number_literal)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (unary_expression - IDENT) < (cast_expression ( (type_descriptor TYPE) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (unary_expression - IDENT) < (cast_expression ( (type_descriptor TYPE) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression LIT - (subscript_expression IDENT [ LIT ])) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) != (call_expression IDENT (argument_list ( (binary_expression IDENT - IDENT) , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) )))) )) != (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) ))) < LIT)) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00168e00(int param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  uint local_203c;\n  int local_2038;\n  undefined1 local_201c [8200];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x168e09;\n  uVar1 = *(uint *)(param_1 + 0x40);\n  iVar2 = *(int *)(param_1 + 0x44);\n  param_2[1] = 0;\n  *(undefined1 *)*param_2 = 0;\n  FUN_001ef040(param_2,uVar1);\n  if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00168e00(int param_1,undefined4 *param_2)" (identifier "FUN_00168e00") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  uint local_203c;\n  int local_2038;\n  undefined1 local_201c [8200];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x168e09;\n  uVar1 = *(uint *)(param_1 + 0x40);\n  iVar2 = *(int *)(param_1 + 0x44);\n  param_2[1] = 0;\n  *(undefined1 *)*param_2 = 0;\n  FUN_001ef040(param_2,uVar1);\n  if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "uint local_203c;" (type_identifier "uint") (identifier "local_203c") (; ";")) (declaration "int local_2038;" (primitive_type "int") (identifier "local_2038") (; ";")) (declaration "undefined1 local_201c [8200];" (type_identifier "undefined1") (array_declarator "local_201c [8200]" (identifier "local_201c") ([ "[") (number_literal "8200") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x168e09;" (assignment_expression "uStack_14 = 0x168e09" (identifier "uStack_14") (= "=") (number_literal "0x168e09")) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0x40);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x40)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 0x40)" (* "*") (cast_expression "(uint *)(param_1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x44);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x44)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")"))))) (; ";")) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)*param_2 = 0;" (assignment_expression "*(undefined1 *)*param_2 = 0" (pointer_expression "*(undefined1 *)*param_2" (* "*") (cast_expression "(undefined1 *)*param_2" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_001ef040(param_2,uVar1);" (call_expression "FUN_001ef040(param_2,uVar1)" (identifier "FUN_001ef040") (argument_list "(param_2,uVar1)" (( "(") (identifier "param_2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (if_statement "if (-iVar2 < (int)(uint)(uVar1 != 0)) {\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }" (if "if") (parenthesized_expression "(-iVar2 < (int)(uint)(uVar1 != 0))" (( "(") (binary_expression "-iVar2 < (int)(uint)(uVar1 != 0)" (unary_expression "-iVar2" (- "-") (identifier "iVar2")) (< "<") (cast_expression "(int)(uint)(uVar1 != 0)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "(uint)(uVar1 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")"))))) () ")")) (compound_statement "{\n    iVar4 = 0;\n    uVar3 = 0;\n    do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);\n  }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);" (do "do") (compound_statement "{\n      local_203c = uVar1 - uVar3;\n      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);\n      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }\n      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);\n      if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }\n      FUN_001f05c0(param_2,local_201c,local_203c);\n      bVar5 = CARRY4(uVar3,local_203c);\n      uVar3 = uVar3 + local_203c;\n      iVar4 = iVar4 + local_2038 + (uint)bVar5;\n    }" ({ "{") (expression_statement "local_203c = uVar1 - uVar3;" (assignment_expression "local_203c = uVar1 - uVar3" (identifier "local_203c") (= "=") (binary_expression "uVar1 - uVar3" (identifier "uVar1") (- "-") (identifier "uVar3"))) (; ";")) (expression_statement "local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);" (assignment_expression "local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3)" (identifier "local_2038") (= "=") (binary_expression "(iVar2 - iVar4) - (uint)(uVar1 < uVar3)" (parenthesized_expression "(iVar2 - iVar4)" (( "(") (binary_expression "iVar2 - iVar4" (identifier "iVar2") (- "-") (identifier "iVar4")) () ")")) (- "-") (call_expression "(uint)(uVar1 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < uVar3)" (( "(") (binary_expression "uVar1 < uVar3" (identifier "uVar1") (< "<") (identifier "uVar3")) () ")"))))) (; ";")) (if_statement "if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }" (if "if") (parenthesized_expression "(-local_2038 < (int)(uint)(0x1fff < local_203c))" (( "(") (binary_expression "-local_2038 < (int)(uint)(0x1fff < local_203c)" (unary_expression "-local_2038" (- "-") (identifier "local_2038")) (< "<") (cast_expression "(int)(uint)(0x1fff < local_203c)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "(uint)(0x1fff < local_203c)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0x1fff < local_203c)" (( "(") (binary_expression "0x1fff < local_203c" (number_literal "0x1fff") (< "<") (identifier "local_203c")) () ")"))))) () ")")) (compound_statement "{\n        local_203c = 0x2000;\n        local_2038 = 0;\n      }" ({ "{") (expression_statement "local_203c = 0x2000;" (assignment_expression "local_203c = 0x2000" (identifier "local_203c") (= "=") (number_literal "0x2000")) (; ";")) (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" (identifier "local_2038") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);" (call_expression "FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c)" (identifier "FUN_00066be0") (argument_list "(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) (, ",") (identifier "uVar3") (, ",") (identifier "iVar4") (, ",") (identifier "local_203c") (, ",") (identifier "local_201c") () ")"))) (; ";")) (if_statement "if (0x7fffffff - param_2[1] < local_203c) {\n                    \n        FUN_0022c7a0("basic_string::append");\n      }" (if "if") (parenthesized_expression "(0x7fffffff - param_2[1] < local_203c)" (( "(") (binary_expression "0x7fffffff - param_2[1] < local_203c" (binary_expression "0x7fffffff - param_2[1]" (number_literal "0x7fffffff") (- "-") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (< "<") (identifier "local_203c")) () ")")) (compound_statement "{\n                    \n        FUN_0022c7a0("basic_string::append");\n      }" ({ "{") (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" (identifier "FUN_0022c7a0") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_001f05c0(param_2,local_201c,local_203c);" (call_expression "FUN_001f05c0(param_2,local_201c,local_203c)" (identifier "FUN_001f05c0") (argument_list "(param_2,local_201c,local_203c)" (( "(") (identifier "param_2") (, ",") (identifier "local_201c") (, ",") (identifier "local_203c") () ")"))) (; ";")) (expression_statement "bVar5 = CARRY4(uVar3,local_203c);" (assignment_expression "bVar5 = CARRY4(uVar3,local_203c)" (identifier "bVar5") (= "=") (call_expression "CARRY4(uVar3,local_203c)" (identifier "CARRY4") (argument_list "(uVar3,local_203c)" (( "(") (identifier "uVar3") (, ",") (identifier "local_203c") () ")")))) (; ";")) (expression_statement "uVar3 = uVar3 + local_203c;" (assignment_expression "uVar3 = uVar3 + local_203c" (identifier "uVar3") (= "=") (binary_expression "uVar3 + local_203c" (identifier "uVar3") (+ "+") (identifier "local_203c"))) (; ";")) (expression_statement "iVar4 = iVar4 + local_2038 + (uint)bVar5;" (assignment_expression "iVar4 = iVar4 + local_2038 + (uint)bVar5" (identifier "iVar4") (= "=") (binary_expression "iVar4 + local_2038 + (uint)bVar5" (binary_expression "iVar4 + local_2038" (identifier "iVar4") (+ "+") (identifier "local_2038")) (+ "+") (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0)" (( "(") (binary_expression "(SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=\n             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0" (parenthesized_expression "(SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1)))" (( "(") (binary_expression "SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))" (call_expression "SBORROW4(iVar4,iVar2)" (identifier "SBORROW4") (argument_list "(iVar4,iVar2)" (( "(") (identifier "iVar4") (, ",") (identifier "iVar2") () ")"))) (!= "!=") (call_expression "SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))" (identifier "SBORROW4") (argument_list "(iVar4 - iVar2,(uint)(uVar3 < uVar1))" (( "(") (binary_expression "iVar4 - iVar2" (identifier "iVar4") (- "-") (identifier "iVar2")) (, ",") (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 < uVar1)" (( "(") (binary_expression "uVar3 < uVar1" (identifier "uVar3") (< "<") (identifier "uVar1")) () ")"))) () ")")))) () ")")) (!= "!=") (binary_expression "(int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0" (cast_expression "(int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((iVar4 - iVar2) - (uint)(uVar3 < uVar1))" (( "(") (binary_expression "(iVar4 - iVar2) - (uint)(uVar3 < uVar1)" (parenthesized_expression "(iVar4 - iVar2)" (( "(") (binary_expression "iVar4 - iVar2" (identifier "iVar4") (- "-") (identifier "iVar2")) () ")")) (- "-") (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 < uVar1)" (( "(") (binary_expression "uVar3 < uVar1" (identifier "uVar3") (< "<") (identifier "uVar1")) () ")")))) () ")"))) (< "<") (number_literal "0"))) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void gold::Lex::function_1(type_1 *input_file,type_2 *contents)

{
  type_3 var_2;
  int var_4;
  type_3 var_3;
  void *__buf;
  bool bVar3;
  type_3 var_5;
  int var_10;
  type_4 buf [8192];
  
  var_2 = (type_3)(input_file->file_).size_;
  var_4 = *(int *)((int)&(input_file->file_).size_ + 4);
  contents->_M_string_length = 0;
  *(contents->_M_dataplus)._M_p = '\0';
  std::string::var_1((type_2 *)contents,var_2);
  if (-var_4 < (int)(type_3)(var_2 != 0)) {
    __buf = (void *)0x0;
    var_3 = 0;
    do {
      var_5 = var_2 - var_3;
      var_10 = (var_4 - (int)__buf) - (type_3)(var_2 < var_3);
      if (-var_10 < (int)(type_3)(0x1fff < var_5)) {
        var_5 = 0x2000;
        var_10 = 0;
      }
      File_read::var_6(&input_file->file_,var_3,__buf,var_5);
      if (0x7fffffff - contents->_M_string_length < var_5) {
                    /* WARNING: Subroutine does not return */
        std::var_7("basic_string::append");
      }
      std::string::var_8((type_2 *)contents,(char *)buf,var_5);
      bVar3 = var_9(var_3,var_5);
      var_3 = var_3 + var_5;
      __buf = (void *)((int)__buf + (type_3)bVar3 + var_10);
    } while ((var_11((int)__buf,var_4) != var_11((int)__buf - var_4,(type_3)(var_3 < var_2))) !=
             (int)(((int)__buf - var_4) - (type_3)(var_3 < var_2)) < 0);
  }
  return;
}


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

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

void MASKED(int param_1,undefined4 *param_2)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  bool bVar5;
  uint local_203c;
  int local_2038;
  undefined1 local_201c [8200];
  undefined4 uStack_14;
  
  uStack_14 = 0x168e09;
  uVar1 = *(uint *)(param_1 + 0x40);
  iVar2 = *(int *)(param_1 + 0x44);
  param_2[1] = 0;
  *(undefined1 *)*param_2 = 0;
  FUN_001ef040(param_2,uVar1);
  if (-iVar2 < (int)(uint)(uVar1 != 0)) {
    iVar4 = 0;
    uVar3 = 0;
    do {
      local_203c = uVar1 - uVar3;
      local_2038 = (iVar2 - iVar4) - (uint)(uVar1 < uVar3);
      if (-local_2038 < (int)(uint)(0x1fff < local_203c)) {
        local_203c = 0x2000;
        local_2038 = 0;
      }
      FUN_00066be0(param_1 + 0x1c,uVar3,iVar4,local_203c,local_201c);
      if (0x7fffffff - param_2[1] < local_203c) {
                    /* WARNING: Subroutine does not return */
        FUN_0022c7a0("basic_string::append");
      }
      FUN_001f05c0(param_2,local_201c,local_203c);
      bVar5 = CARRY4(uVar3,local_203c);
      uVar3 = uVar3 + local_203c;
      iVar4 = iVar4 + local_2038 + (uint)bVar5;
    } while ((SBORROW4(iVar4,iVar2) != SBORROW4(iVar4 - iVar2,(uint)(uVar3 < uVar1))) !=
             (int)((iVar4 - iVar2) - (uint)(uVar3 < uVar1)) < 0);
  }
  return;
}

