
/* std::string::append(char const*, unsigned int) */

uint __thiscall std::string::append(string *this,char *param_1,uint param_2)

{
  uint uVar1;
  string *psVar2;
  int *piVar3;
  char *pcVar4;
  char *pcVar5;
  uint in_a3;
  undefined *puVar6;
  code *pcVar7;
  code *pcVar8;
  
  if (param_2 <= 0x7fffffffU - *(int *)(this + 4)) {
    uVar1 = _M_append(this,param_1,param_2);
    return uVar1;
  }
  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);
  puVar6 = PTR___throw_length_error_004c1e74;
  (*(code *)PTR___throw_length_error_004c1e74)();
  pcVar4 = param_1;
  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_1);
  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = _M_append(psVar2,param_1,uVar1);
    return uVar1;
  }
  pcVar7 = *(code **)(puVar6 + 0x184fe4);
  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);
  (*pcVar7)();
  pcVar5 = pcVar4;
  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);
  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = _M_append(psVar2,pcVar4,uVar1);
    return uVar1;
  }
  pcVar8 = *(code **)(pcVar7 + 0x184f60);
  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);
  (*pcVar8)();
  if (param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = _M_append(psVar2,pcVar5,param_2);
    return uVar1;
  }
  pcVar7 = *(code **)(pcVar8 + 0x184edc);
  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);
  (*pcVar7)();
  if (param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = _M_append(psVar2,pcVar5,param_2);
    return uVar1;
  }
  pcVar8 = *(code **)(pcVar7 + 0x184e84);
  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);
  (*pcVar8)();
  uVar1 = piVar3[1];
  if (in_a3 <= uVar1) {
    if (uVar1 - in_a3 <= param_2) {
      param_2 = uVar1 - in_a3;
    }
    if (param_2 != 0) {
      if (param_2 == 1) {
        *pcVar5 = *(char *)(*piVar3 + in_a3);
        return 1;
      }
      (**(code **)(pcVar8 + 0x188b60))(pcVar5);
    }
    return param_2;
  }
  uVar1 = (**(code **)(pcVar8 + 0x185214))
                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,
                     in_a3,uVar1,pcVar8 + 0x18c1f8);
  return uVar1;
}



uint FUN_0033ce40(string *param_1,char *param_2,uint param_3,uint param_4)

{
  uint uVar1;
  string *psVar2;
  int *piVar3;
  char *pcVar4;
  char *pcVar5;
  undefined *puVar6;
  code *pcVar7;
  code *pcVar8;
  
  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {
    uVar1 = std::string::_M_append(param_1,param_2,param_3);
    return uVar1;
  }
  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);
  puVar6 = PTR___throw_length_error_004c1e74;
  (*(code *)PTR___throw_length_error_004c1e74)();
  pcVar4 = param_2;
  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);
  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);
    return uVar1;
  }
  pcVar7 = *(code **)(puVar6 + 0x184fe4);
  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);
  (*pcVar7)();
  pcVar5 = pcVar4;
  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);
  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);
    return uVar1;
  }
  pcVar8 = *(code **)(pcVar7 + 0x184f60);
  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);
  (*pcVar8)();
  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);
    return uVar1;
  }
  pcVar7 = *(code **)(pcVar8 + 0x184edc);
  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);
  (*pcVar7)();
  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);
    return uVar1;
  }
  pcVar8 = *(code **)(pcVar7 + 0x184e84);
  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);
  (*pcVar8)();
  uVar1 = piVar3[1];
  if (param_4 <= uVar1) {
    if (uVar1 - param_4 <= param_3) {
      param_3 = uVar1 - param_4;
    }
    if (param_3 != 0) {
      if (param_3 == 1) {
        *pcVar5 = *(char *)(*piVar3 + param_4);
        return 1;
      }
      (**(code **)(pcVar8 + 0x188b60))(pcVar5);
    }
    return param_3;
  }
  uVar1 = (**(code **)(pcVar8 + 0x185214))
                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,
                     param_4,uVar1,pcVar8 + 0x18c1f8);
  return uVar1;
}


lui gp,0x19
addiu gp,gp,-0x3c00
addu gp,gp,t9
addiu sp,sp,-0x20
lui v0,0x7fff
sw gp,0x10(sp)
ori v0,v0,0xffff
sw ra,0x1c(sp)
lw v1,0x4(a0)
subu v0,v0,v1
sltu v0,v0,a2
bne v0,zero,0x0033ce80
_lw ra,0x1c(sp)
lw t9,-0x73d8(gp)
b 0x0033cc98
_addiu sp,sp,0x20
lw a0,-0x7fc4(gp)
lw t9,-0x73cc(gp)
jalr t9
_addiu a0,a0,0x446c
(translation_unit "uint FUN_0033ce40(string *param_1,char *param_2,uint param_3,uint param_4)\n\n{\n  uint uVar1;\n  string *psVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  code *pcVar8;\n  \n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }\n  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);\n  puVar6 = PTR___throw_length_error_004c1e74;\n  (*(code *)PTR___throw_length_error_004c1e74)();\n  pcVar4 = param_2;\n  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x184fe4);\n  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);\n  (*pcVar7)();\n  pcVar5 = pcVar4;\n  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184f60);\n  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);\n  (*pcVar8)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(pcVar8 + 0x184edc);\n  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);\n  (*pcVar7)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184e84);\n  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);\n  (*pcVar8)();\n  uVar1 = piVar3[1];\n  if (param_4 <= uVar1) {\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }\n  uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8);\n  return uVar1;\n}\n\n" (function_definition "uint FUN_0033ce40(string *param_1,char *param_2,uint param_3,uint param_4)\n\n{\n  uint uVar1;\n  string *psVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  code *pcVar8;\n  \n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }\n  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);\n  puVar6 = PTR___throw_length_error_004c1e74;\n  (*(code *)PTR___throw_length_error_004c1e74)();\n  pcVar4 = param_2;\n  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x184fe4);\n  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);\n  (*pcVar7)();\n  pcVar5 = pcVar4;\n  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184f60);\n  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);\n  (*pcVar8)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(pcVar8 + 0x184edc);\n  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);\n  (*pcVar7)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184e84);\n  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);\n  (*pcVar8)();\n  uVar1 = piVar3[1];\n  if (param_4 <= uVar1) {\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }\n  uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8);\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0033ce40(string *param_1,char *param_2,uint param_3,uint param_4)" identifier (parameter_list "(string *param_1,char *param_2,uint param_3,uint param_4)" ( (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  string *psVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  code *pcVar8;\n  \n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }\n  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);\n  puVar6 = PTR___throw_length_error_004c1e74;\n  (*(code *)PTR___throw_length_error_004c1e74)();\n  pcVar4 = param_2;\n  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x184fe4);\n  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);\n  (*pcVar7)();\n  pcVar5 = pcVar4;\n  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184f60);\n  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);\n  (*pcVar8)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(pcVar8 + 0x184edc);\n  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);\n  (*pcVar7)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184e84);\n  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);\n  (*pcVar8)();\n  uVar1 = piVar3[1];\n  if (param_4 <= uVar1) {\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }\n  uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8);\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "string *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }" if (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(param_1 + 4))" ( (binary_expression "param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(param_1 + 4)" number_literal - (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }" { (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" identifier = identifier) : :) (labeled_statement "string::_M_append(param_1,param_2,param_3);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(param_1,param_2,param_3);" (call_expression "_M_append(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))) ;)) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);" (assignment_expression "psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" identifier = (cast_expression "(string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" ( (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c" identifier + number_literal) )))) ;) (expression_statement "puVar6 = PTR___throw_length_error_004c1e74;" (assignment_expression "puVar6 = PTR___throw_length_error_004c1e74" identifier = identifier) ;) (expression_statement "(*(code *)PTR___throw_length_error_004c1e74)();" (call_expression "(*(code *)PTR___throw_length_error_004c1e74)()" (parenthesized_expression "(*(code *)PTR___throw_length_error_004c1e74)" ( (pointer_expression "*(code *)PTR___throw_length_error_004c1e74" * (cast_expression "(code *)PTR___throw_length_error_004c1e74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" identifier = identifier) ;) (expression_statement "uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);" (assignment_expression "uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2)" identifier = (call_expression "(**(code **)(puVar6 + 0x188d0c))(param_2)" (parenthesized_expression "(**(code **)(puVar6 + 0x188d0c))" ( (pointer_expression "**(code **)(puVar6 + 0x188d0c)" * (pointer_expression "*(code **)(puVar6 + 0x188d0c)" * (cast_expression "(code **)(puVar6 + 0x188d0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x188d0c)" ( (binary_expression "puVar6 + 0x188d0c" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }" { (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" identifier = identifier) : :) (labeled_statement "string::_M_append(psVar2,param_2,uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(psVar2,param_2,uVar1);" (call_expression "_M_append(psVar2,param_2,uVar1)" identifier (argument_list "(psVar2,param_2,uVar1)" ( identifier , identifier , identifier ))) ;)) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar7 = *(code **)(puVar6 + 0x184fe4);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x184fe4)" identifier = (pointer_expression "*(code **)(puVar6 + 0x184fe4)" * (cast_expression "(code **)(puVar6 + 0x184fe4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x184fe4)" ( (binary_expression "puVar6 + 0x184fe4" identifier + number_literal) ))))) ;) (expression_statement "psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c)" identifier = (cast_expression "(string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x1843ec) + 0x446c)" ( (binary_expression "*(int *)(puVar6 + 0x1843ec) + 0x446c" (pointer_expression "*(int *)(puVar6 + 0x1843ec)" * (cast_expression "(int *)(puVar6 + 0x1843ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x1843ec)" ( (binary_expression "puVar6 + 0x1843ec" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar7)();" (call_expression "(*pcVar7)()" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) (expression_statement "uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);" (assignment_expression "uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4)" identifier = (call_expression "(**(code **)(pcVar7 + 0x188c88))(pcVar4)" (parenthesized_expression "(**(code **)(pcVar7 + 0x188c88))" ( (pointer_expression "**(code **)(pcVar7 + 0x188c88)" * (pointer_expression "*(code **)(pcVar7 + 0x188c88)" * (cast_expression "(code **)(pcVar7 + 0x188c88)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar7 + 0x188c88)" ( (binary_expression "pcVar7 + 0x188c88" identifier + number_literal) ))))) )) (argument_list "(pcVar4)" ( identifier )))) ;) (if_statement "if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }" { (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" identifier = identifier) : :) (labeled_statement "string::_M_append(psVar2,pcVar4,uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(psVar2,pcVar4,uVar1);" (call_expression "_M_append(psVar2,pcVar4,uVar1)" identifier (argument_list "(psVar2,pcVar4,uVar1)" ( identifier , identifier , identifier ))) ;)) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar8 = *(code **)(pcVar7 + 0x184f60);" (assignment_expression "pcVar8 = *(code **)(pcVar7 + 0x184f60)" identifier = (pointer_expression "*(code **)(pcVar7 + 0x184f60)" * (cast_expression "(code **)(pcVar7 + 0x184f60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar7 + 0x184f60)" ( (binary_expression "pcVar7 + 0x184f60" identifier + number_literal) ))))) ;) (expression_statement "psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c)" identifier = (cast_expression "(string *)(*(int *)(pcVar7 + 0x184368) + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar7 + 0x184368) + 0x446c)" ( (binary_expression "*(int *)(pcVar7 + 0x184368) + 0x446c" (pointer_expression "*(int *)(pcVar7 + 0x184368)" * (cast_expression "(int *)(pcVar7 + 0x184368)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + 0x184368)" ( (binary_expression "pcVar7 + 0x184368" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar8)();" (call_expression "(*pcVar8)()" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" if (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" { (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" identifier = identifier) : :) (labeled_statement "string::_M_append(psVar2,pcVar5,param_3);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(psVar2,pcVar5,param_3);" (call_expression "_M_append(psVar2,pcVar5,param_3)" identifier (argument_list "(psVar2,pcVar5,param_3)" ( identifier , identifier , identifier ))) ;)) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar7 = *(code **)(pcVar8 + 0x184edc);" (assignment_expression "pcVar7 = *(code **)(pcVar8 + 0x184edc)" identifier = (pointer_expression "*(code **)(pcVar8 + 0x184edc)" * (cast_expression "(code **)(pcVar8 + 0x184edc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x184edc)" ( (binary_expression "pcVar8 + 0x184edc" identifier + number_literal) ))))) ;) (expression_statement "psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" identifier = (cast_expression "(string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" ( (binary_expression "*(int *)(pcVar8 + 0x1842e4) + 0x446c" (pointer_expression "*(int *)(pcVar8 + 0x1842e4)" * (cast_expression "(int *)(pcVar8 + 0x1842e4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0x1842e4)" ( (binary_expression "pcVar8 + 0x1842e4" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar7)();" (call_expression "(*pcVar7)()" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" if (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" { (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" identifier = identifier) : :) (labeled_statement "string::_M_append(psVar2,pcVar5,param_3);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(psVar2,pcVar5,param_3);" (call_expression "_M_append(psVar2,pcVar5,param_3)" identifier (argument_list "(psVar2,pcVar5,param_3)" ( identifier , identifier , identifier ))) ;)) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar8 = *(code **)(pcVar7 + 0x184e84);" (assignment_expression "pcVar8 = *(code **)(pcVar7 + 0x184e84)" identifier = (pointer_expression "*(code **)(pcVar7 + 0x184e84)" * (cast_expression "(code **)(pcVar7 + 0x184e84)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar7 + 0x184e84)" ( (binary_expression "pcVar7 + 0x184e84" identifier + number_literal) ))))) ;) (expression_statement "piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);" (assignment_expression "piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c)" identifier = (cast_expression "(int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar7 + 0x18428c) + 0x446c)" ( (binary_expression "*(int *)(pcVar7 + 0x18428c) + 0x446c" (pointer_expression "*(int *)(pcVar7 + 0x18428c)" * (cast_expression "(int *)(pcVar7 + 0x18428c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + 0x18428c)" ( (binary_expression "pcVar7 + 0x18428c" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar8)();" (call_expression "(*pcVar8)()" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = piVar3[1];" (assignment_expression "uVar1 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (param_4 <= uVar1) {\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }" if (parenthesized_expression "(param_4 <= uVar1)" ( (binary_expression "param_4 <= uVar1" identifier <= identifier) )) (compound_statement "{\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }" { (if_statement "if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }" if (parenthesized_expression "(uVar1 - param_4 <= param_3)" ( (binary_expression "uVar1 - param_4 <= param_3" (binary_expression "uVar1 - param_4" identifier - identifier) <= identifier) )) (compound_statement "{\n      param_3 = uVar1 - param_4;\n    }" { (expression_statement "param_3 = uVar1 - param_4;" (assignment_expression "param_3 = uVar1 - param_4" identifier = (binary_expression "uVar1 - param_4" identifier - identifier)) ;) })) (if_statement "if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }" { (if_statement "if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }" { (expression_statement "*pcVar5 = *(char *)(*piVar3 + param_4);" (assignment_expression "*pcVar5 = *(char *)(*piVar3 + param_4)" (pointer_expression "*pcVar5" * identifier) = (pointer_expression "*(char *)(*piVar3 + param_4)" * (cast_expression "(char *)(*piVar3 + param_4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + param_4)" ( (binary_expression "*piVar3 + param_4" (pointer_expression "*piVar3" * identifier) + identifier) ))))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(**(code **)(pcVar8 + 0x188b60))(pcVar5);" (call_expression "(**(code **)(pcVar8 + 0x188b60))(pcVar5)" (parenthesized_expression "(**(code **)(pcVar8 + 0x188b60))" ( (pointer_expression "**(code **)(pcVar8 + 0x188b60)" * (pointer_expression "*(code **)(pcVar8 + 0x188b60)" * (cast_expression "(code **)(pcVar8 + 0x188b60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x188b60)" ( (binary_expression "pcVar8 + 0x188b60" identifier + number_literal) ))))) )) (argument_list "(pcVar5)" ( identifier ))) ;) })) (return_statement "return param_3;" return identifier ;) })) (expression_statement "uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8);" (assignment_expression "uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8)" identifier = (call_expression "(**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8)" (parenthesized_expression "(**(code **)(pcVar8 + 0x185214))" ( (pointer_expression "**(code **)(pcVar8 + 0x185214)" * (pointer_expression "*(code **)(pcVar8 + 0x185214)" * (cast_expression "(code **)(pcVar8 + 0x185214)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x185214)" ( (binary_expression "pcVar8 + 0x185214" identifier + number_literal) ))))) )) (argument_list "(*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8)" ( (binary_expression "*(int *)(pcVar8 + 0x184a08) + -0xe00" (pointer_expression "*(int *)(pcVar8 + 0x184a08)" * (cast_expression "(int *)(pcVar8 + 0x184a08)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0x184a08)" ( (binary_expression "pcVar8 + 0x184a08" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar8 + 0x184294) + -0x3aa0" (pointer_expression "*(int *)(pcVar8 + 0x184294)" * (cast_expression "(int *)(pcVar8 + 0x184294)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0x184294)" ( (binary_expression "pcVar8 + 0x184294" identifier + number_literal) )))) + number_literal) , identifier , identifier , (binary_expression "pcVar8 + 0x18c1f8" identifier + number_literal) )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* std::string::append(char const*, unsigned int) */\n\nuint __thiscall std::string::append(string *this,char *param_1,uint param_2)\n\n{\n  uint uVar1;\n  string *psVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *pcVar5;\n  uint in_a3;\n  undefined *puVar6;\n  code *pcVar7;\n  code *pcVar8;\n  \n  if (param_2 <= 0x7fffffffU - *(int *)(this + 4)) {\n    uVar1 = _M_append(this,param_1,param_2);\n    return uVar1;\n  }\n  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);\n  puVar6 = PTR___throw_length_error_004c1e74;\n  (*(code *)PTR___throw_length_error_004c1e74)();\n  pcVar4 = param_1;\n  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_1);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,param_1,uVar1);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x184fe4);\n  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);\n  (*pcVar7)();\n  pcVar5 = pcVar4;\n  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184f60);\n  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);\n  (*pcVar8)();\n  if (param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar5,param_2);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(pcVar8 + 0x184edc);\n  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);\n  (*pcVar7)();\n  if (param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar5,param_2);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184e84);\n  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);\n  (*pcVar8)();\n  uVar1 = piVar3[1];\n  if (in_a3 <= uVar1) {\n    if (uVar1 - in_a3 <= param_2) {\n      param_2 = uVar1 - in_a3;\n    }\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + in_a3);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_2;\n  }\n  uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     in_a3,uVar1,pcVar8 + 0x18c1f8);\n  return uVar1;\n}\n\n" comment (function_definition "uint __thiscall std::string::append(string *this,char *param_1,uint param_2)\n\n{\n  uint uVar1;\n  string *psVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *pcVar5;\n  uint in_a3;\n  undefined *puVar6;\n  code *pcVar7;\n  code *pcVar8;\n  \n  if (param_2 <= 0x7fffffffU - *(int *)(this + 4)) {\n    uVar1 = _M_append(this,param_1,param_2);\n    return uVar1;\n  }\n  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);\n  puVar6 = PTR___throw_length_error_004c1e74;\n  (*(code *)PTR___throw_length_error_004c1e74)();\n  pcVar4 = param_1;\n  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_1);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,param_1,uVar1);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x184fe4);\n  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);\n  (*pcVar7)();\n  pcVar5 = pcVar4;\n  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184f60);\n  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);\n  (*pcVar8)();\n  if (param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar5,param_2);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(pcVar8 + 0x184edc);\n  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);\n  (*pcVar7)();\n  if (param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar5,param_2);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184e84);\n  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);\n  (*pcVar8)();\n  uVar1 = piVar3[1];\n  if (in_a3 <= uVar1) {\n    if (uVar1 - in_a3 <= param_2) {\n      param_2 = uVar1 - in_a3;\n    }\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + in_a3);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_2;\n  }\n  uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     in_a3,uVar1,pcVar8 + 0x18c1f8);\n  return uVar1;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "append(string *this,char *param_1,uint param_2)" identifier (parameter_list "(string *this,char *param_1,uint param_2)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  string *psVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *pcVar5;\n  uint in_a3;\n  undefined *puVar6;\n  code *pcVar7;\n  code *pcVar8;\n  \n  if (param_2 <= 0x7fffffffU - *(int *)(this + 4)) {\n    uVar1 = _M_append(this,param_1,param_2);\n    return uVar1;\n  }\n  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);\n  puVar6 = PTR___throw_length_error_004c1e74;\n  (*(code *)PTR___throw_length_error_004c1e74)();\n  pcVar4 = param_1;\n  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_1);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,param_1,uVar1);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x184fe4);\n  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);\n  (*pcVar7)();\n  pcVar5 = pcVar4;\n  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184f60);\n  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);\n  (*pcVar8)();\n  if (param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar5,param_2);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(pcVar8 + 0x184edc);\n  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);\n  (*pcVar7)();\n  if (param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar5,param_2);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184e84);\n  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);\n  (*pcVar8)();\n  uVar1 = piVar3[1];\n  if (in_a3 <= uVar1) {\n    if (uVar1 - in_a3 <= param_2) {\n      param_2 = uVar1 - in_a3;\n    }\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + in_a3);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_2;\n  }\n  uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     in_a3,uVar1,pcVar8 + 0x18c1f8);\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "string *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "uint in_a3;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (if_statement "if (param_2 <= 0x7fffffffU - *(int *)(this + 4)) {\n    uVar1 = _M_append(this,param_1,param_2);\n    return uVar1;\n  }" if (parenthesized_expression "(param_2 <= 0x7fffffffU - *(int *)(this + 4))" ( (binary_expression "param_2 <= 0x7fffffffU - *(int *)(this + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(this + 4)" number_literal - (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = _M_append(this,param_1,param_2);\n    return uVar1;\n  }" { (expression_statement "uVar1 = _M_append(this,param_1,param_2);" (assignment_expression "uVar1 = _M_append(this,param_1,param_2)" identifier = (call_expression "_M_append(this,param_1,param_2)" identifier (argument_list "(this,param_1,param_2)" ( identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);" (assignment_expression "psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" identifier = (cast_expression "(string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" ( (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c" identifier + number_literal) )))) ;) (expression_statement "puVar6 = PTR___throw_length_error_004c1e74;" (assignment_expression "puVar6 = PTR___throw_length_error_004c1e74" identifier = identifier) ;) (expression_statement "(*(code *)PTR___throw_length_error_004c1e74)();" (call_expression "(*(code *)PTR___throw_length_error_004c1e74)()" (parenthesized_expression "(*(code *)PTR___throw_length_error_004c1e74)" ( (pointer_expression "*(code *)PTR___throw_length_error_004c1e74" * (cast_expression "(code *)PTR___throw_length_error_004c1e74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" identifier = identifier) ;) (expression_statement "uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_1);" (assignment_expression "uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_1)" identifier = (call_expression "(**(code **)(puVar6 + 0x188d0c))(param_1)" (parenthesized_expression "(**(code **)(puVar6 + 0x188d0c))" ( (pointer_expression "**(code **)(puVar6 + 0x188d0c)" * (pointer_expression "*(code **)(puVar6 + 0x188d0c)" * (cast_expression "(code **)(puVar6 + 0x188d0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x188d0c)" ( (binary_expression "puVar6 + 0x188d0c" identifier + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,param_1,uVar1);\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = _M_append(psVar2,param_1,uVar1);\n    return uVar1;\n  }" { (expression_statement "uVar1 = _M_append(psVar2,param_1,uVar1);" (assignment_expression "uVar1 = _M_append(psVar2,param_1,uVar1)" identifier = (call_expression "_M_append(psVar2,param_1,uVar1)" identifier (argument_list "(psVar2,param_1,uVar1)" ( identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar7 = *(code **)(puVar6 + 0x184fe4);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x184fe4)" identifier = (pointer_expression "*(code **)(puVar6 + 0x184fe4)" * (cast_expression "(code **)(puVar6 + 0x184fe4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x184fe4)" ( (binary_expression "puVar6 + 0x184fe4" identifier + number_literal) ))))) ;) (expression_statement "psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c)" identifier = (cast_expression "(string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x1843ec) + 0x446c)" ( (binary_expression "*(int *)(puVar6 + 0x1843ec) + 0x446c" (pointer_expression "*(int *)(puVar6 + 0x1843ec)" * (cast_expression "(int *)(puVar6 + 0x1843ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x1843ec)" ( (binary_expression "puVar6 + 0x1843ec" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar7)();" (call_expression "(*pcVar7)()" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) (expression_statement "uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);" (assignment_expression "uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4)" identifier = (call_expression "(**(code **)(pcVar7 + 0x188c88))(pcVar4)" (parenthesized_expression "(**(code **)(pcVar7 + 0x188c88))" ( (pointer_expression "**(code **)(pcVar7 + 0x188c88)" * (pointer_expression "*(code **)(pcVar7 + 0x188c88)" * (cast_expression "(code **)(pcVar7 + 0x188c88)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar7 + 0x188c88)" ( (binary_expression "pcVar7 + 0x188c88" identifier + number_literal) ))))) )) (argument_list "(pcVar4)" ( identifier )))) ;) (if_statement "if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = _M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }" { (expression_statement "uVar1 = _M_append(psVar2,pcVar4,uVar1);" (assignment_expression "uVar1 = _M_append(psVar2,pcVar4,uVar1)" identifier = (call_expression "_M_append(psVar2,pcVar4,uVar1)" identifier (argument_list "(psVar2,pcVar4,uVar1)" ( identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar8 = *(code **)(pcVar7 + 0x184f60);" (assignment_expression "pcVar8 = *(code **)(pcVar7 + 0x184f60)" identifier = (pointer_expression "*(code **)(pcVar7 + 0x184f60)" * (cast_expression "(code **)(pcVar7 + 0x184f60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar7 + 0x184f60)" ( (binary_expression "pcVar7 + 0x184f60" identifier + number_literal) ))))) ;) (expression_statement "psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c)" identifier = (cast_expression "(string *)(*(int *)(pcVar7 + 0x184368) + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar7 + 0x184368) + 0x446c)" ( (binary_expression "*(int *)(pcVar7 + 0x184368) + 0x446c" (pointer_expression "*(int *)(pcVar7 + 0x184368)" * (cast_expression "(int *)(pcVar7 + 0x184368)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + 0x184368)" ( (binary_expression "pcVar7 + 0x184368" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar8)();" (call_expression "(*pcVar8)()" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar5,param_2);\n    return uVar1;\n  }" if (parenthesized_expression "(param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = _M_append(psVar2,pcVar5,param_2);\n    return uVar1;\n  }" { (expression_statement "uVar1 = _M_append(psVar2,pcVar5,param_2);" (assignment_expression "uVar1 = _M_append(psVar2,pcVar5,param_2)" identifier = (call_expression "_M_append(psVar2,pcVar5,param_2)" identifier (argument_list "(psVar2,pcVar5,param_2)" ( identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar7 = *(code **)(pcVar8 + 0x184edc);" (assignment_expression "pcVar7 = *(code **)(pcVar8 + 0x184edc)" identifier = (pointer_expression "*(code **)(pcVar8 + 0x184edc)" * (cast_expression "(code **)(pcVar8 + 0x184edc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x184edc)" ( (binary_expression "pcVar8 + 0x184edc" identifier + number_literal) ))))) ;) (expression_statement "psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" identifier = (cast_expression "(string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" ( (binary_expression "*(int *)(pcVar8 + 0x1842e4) + 0x446c" (pointer_expression "*(int *)(pcVar8 + 0x1842e4)" * (cast_expression "(int *)(pcVar8 + 0x1842e4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0x1842e4)" ( (binary_expression "pcVar8 + 0x1842e4" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar7)();" (call_expression "(*pcVar7)()" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = _M_append(psVar2,pcVar5,param_2);\n    return uVar1;\n  }" if (parenthesized_expression "(param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "param_2 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = _M_append(psVar2,pcVar5,param_2);\n    return uVar1;\n  }" { (expression_statement "uVar1 = _M_append(psVar2,pcVar5,param_2);" (assignment_expression "uVar1 = _M_append(psVar2,pcVar5,param_2)" identifier = (call_expression "_M_append(psVar2,pcVar5,param_2)" identifier (argument_list "(psVar2,pcVar5,param_2)" ( identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar8 = *(code **)(pcVar7 + 0x184e84);" (assignment_expression "pcVar8 = *(code **)(pcVar7 + 0x184e84)" identifier = (pointer_expression "*(code **)(pcVar7 + 0x184e84)" * (cast_expression "(code **)(pcVar7 + 0x184e84)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar7 + 0x184e84)" ( (binary_expression "pcVar7 + 0x184e84" identifier + number_literal) ))))) ;) (expression_statement "piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);" (assignment_expression "piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c)" identifier = (cast_expression "(int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar7 + 0x18428c) + 0x446c)" ( (binary_expression "*(int *)(pcVar7 + 0x18428c) + 0x446c" (pointer_expression "*(int *)(pcVar7 + 0x18428c)" * (cast_expression "(int *)(pcVar7 + 0x18428c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + 0x18428c)" ( (binary_expression "pcVar7 + 0x18428c" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar8)();" (call_expression "(*pcVar8)()" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = piVar3[1];" (assignment_expression "uVar1 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (in_a3 <= uVar1) {\n    if (uVar1 - in_a3 <= param_2) {\n      param_2 = uVar1 - in_a3;\n    }\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + in_a3);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_2;\n  }" if (parenthesized_expression "(in_a3 <= uVar1)" ( (binary_expression "in_a3 <= uVar1" identifier <= identifier) )) (compound_statement "{\n    if (uVar1 - in_a3 <= param_2) {\n      param_2 = uVar1 - in_a3;\n    }\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + in_a3);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_2;\n  }" { (if_statement "if (uVar1 - in_a3 <= param_2) {\n      param_2 = uVar1 - in_a3;\n    }" if (parenthesized_expression "(uVar1 - in_a3 <= param_2)" ( (binary_expression "uVar1 - in_a3 <= param_2" (binary_expression "uVar1 - in_a3" identifier - identifier) <= identifier) )) (compound_statement "{\n      param_2 = uVar1 - in_a3;\n    }" { (expression_statement "param_2 = uVar1 - in_a3;" (assignment_expression "param_2 = uVar1 - in_a3" identifier = (binary_expression "uVar1 - in_a3" identifier - identifier)) ;) })) (if_statement "if (param_2 != 0) {\n      if (param_2 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + in_a3);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + in_a3);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }" { (if_statement "if (param_2 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + in_a3);\n        return 1;\n      }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n        *pcVar5 = *(char *)(*piVar3 + in_a3);\n        return 1;\n      }" { (expression_statement "*pcVar5 = *(char *)(*piVar3 + in_a3);" (assignment_expression "*pcVar5 = *(char *)(*piVar3 + in_a3)" (pointer_expression "*pcVar5" * identifier) = (pointer_expression "*(char *)(*piVar3 + in_a3)" * (cast_expression "(char *)(*piVar3 + in_a3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + in_a3)" ( (binary_expression "*piVar3 + in_a3" (pointer_expression "*piVar3" * identifier) + identifier) ))))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(**(code **)(pcVar8 + 0x188b60))(pcVar5);" (call_expression "(**(code **)(pcVar8 + 0x188b60))(pcVar5)" (parenthesized_expression "(**(code **)(pcVar8 + 0x188b60))" ( (pointer_expression "**(code **)(pcVar8 + 0x188b60)" * (pointer_expression "*(code **)(pcVar8 + 0x188b60)" * (cast_expression "(code **)(pcVar8 + 0x188b60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x188b60)" ( (binary_expression "pcVar8 + 0x188b60" identifier + number_literal) ))))) )) (argument_list "(pcVar5)" ( identifier ))) ;) })) (return_statement "return param_2;" return identifier ;) })) (expression_statement "uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     in_a3,uVar1,pcVar8 + 0x18c1f8);" (assignment_expression "uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     in_a3,uVar1,pcVar8 + 0x18c1f8)" identifier = (call_expression "(**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     in_a3,uVar1,pcVar8 + 0x18c1f8)" (parenthesized_expression "(**(code **)(pcVar8 + 0x185214))" ( (pointer_expression "**(code **)(pcVar8 + 0x185214)" * (pointer_expression "*(code **)(pcVar8 + 0x185214)" * (cast_expression "(code **)(pcVar8 + 0x185214)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x185214)" ( (binary_expression "pcVar8 + 0x185214" identifier + number_literal) ))))) )) (argument_list "(*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     in_a3,uVar1,pcVar8 + 0x18c1f8)" ( (binary_expression "*(int *)(pcVar8 + 0x184a08) + -0xe00" (pointer_expression "*(int *)(pcVar8 + 0x184a08)" * (cast_expression "(int *)(pcVar8 + 0x184a08)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0x184a08)" ( (binary_expression "pcVar8 + 0x184a08" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar8 + 0x184294) + -0x3aa0" (pointer_expression "*(int *)(pcVar8 + 0x184294)" * (cast_expression "(int *)(pcVar8 + 0x184294)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0x184294)" ( (binary_expression "pcVar8 + 0x184294" identifier + number_literal) )))) + number_literal) , identifier , identifier , (binary_expression "pcVar8 + 0x18c1f8" identifier + number_literal) )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "uint FUN_0033ce40(string *param_1,char *param_2,uint param_3,uint param_4)\n\n{\n  uint uVar1;\n  string *psVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  code *pcVar8;\n  \n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }\n  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);\n  puVar6 = PTR___throw_length_error_004c1e74;\n  (*(code *)PTR___throw_length_error_004c1e74)();\n  pcVar4 = param_2;\n  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x184fe4);\n  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);\n  (*pcVar7)();\n  pcVar5 = pcVar4;\n  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184f60);\n  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);\n  (*pcVar8)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(pcVar8 + 0x184edc);\n  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);\n  (*pcVar7)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184e84);\n  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);\n  (*pcVar8)();\n  uVar1 = piVar3[1];\n  if (param_4 <= uVar1) {\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }\n  uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8);\n  return uVar1;\n}\n\n" (function_definition "uint FUN_0033ce40(string *param_1,char *param_2,uint param_3,uint param_4)\n\n{\n  uint uVar1;\n  string *psVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  code *pcVar8;\n  \n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }\n  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);\n  puVar6 = PTR___throw_length_error_004c1e74;\n  (*(code *)PTR___throw_length_error_004c1e74)();\n  pcVar4 = param_2;\n  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x184fe4);\n  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);\n  (*pcVar7)();\n  pcVar5 = pcVar4;\n  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184f60);\n  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);\n  (*pcVar8)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(pcVar8 + 0x184edc);\n  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);\n  (*pcVar7)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184e84);\n  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);\n  (*pcVar8)();\n  uVar1 = piVar3[1];\n  if (param_4 <= uVar1) {\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }\n  uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8);\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0033ce40(string *param_1,char *param_2,uint param_3,uint param_4)" identifier (parameter_list "(string *param_1,char *param_2,uint param_3,uint param_4)" ( (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  string *psVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  code *pcVar8;\n  \n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }\n  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);\n  puVar6 = PTR___throw_length_error_004c1e74;\n  (*(code *)PTR___throw_length_error_004c1e74)();\n  pcVar4 = param_2;\n  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x184fe4);\n  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);\n  (*pcVar7)();\n  pcVar5 = pcVar4;\n  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184f60);\n  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);\n  (*pcVar8)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(pcVar8 + 0x184edc);\n  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);\n  (*pcVar7)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184e84);\n  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);\n  (*pcVar8)();\n  uVar1 = piVar3[1];\n  if (param_4 <= uVar1) {\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }\n  uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8);\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "string *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }" if (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(param_1 + 4))" ( (binary_expression "param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(param_1 + 4)" number_literal - (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }" { (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" identifier = identifier) : :) (labeled_statement "string::_M_append(param_1,param_2,param_3);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(param_1,param_2,param_3);" (call_expression "_M_append(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))) ;)) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);" (assignment_expression "psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" identifier = (cast_expression "(string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" ( (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c" identifier + number_literal) )))) ;) (expression_statement "puVar6 = PTR___throw_length_error_004c1e74;" (assignment_expression "puVar6 = PTR___throw_length_error_004c1e74" identifier = identifier) ;) (expression_statement "(*(code *)PTR___throw_length_error_004c1e74)();" (call_expression "(*(code *)PTR___throw_length_error_004c1e74)()" (parenthesized_expression "(*(code *)PTR___throw_length_error_004c1e74)" ( (pointer_expression "*(code *)PTR___throw_length_error_004c1e74" * (cast_expression "(code *)PTR___throw_length_error_004c1e74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" identifier = identifier) ;) (expression_statement "uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);" (assignment_expression "uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2)" identifier = (call_expression "(**(code **)(puVar6 + 0x188d0c))(param_2)" (parenthesized_expression "(**(code **)(puVar6 + 0x188d0c))" ( (pointer_expression "**(code **)(puVar6 + 0x188d0c)" * (pointer_expression "*(code **)(puVar6 + 0x188d0c)" * (cast_expression "(code **)(puVar6 + 0x188d0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x188d0c)" ( (binary_expression "puVar6 + 0x188d0c" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }" { (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" identifier = identifier) : :) (labeled_statement "string::_M_append(psVar2,param_2,uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(psVar2,param_2,uVar1);" (call_expression "_M_append(psVar2,param_2,uVar1)" identifier (argument_list "(psVar2,param_2,uVar1)" ( identifier , identifier , identifier ))) ;)) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar7 = *(code **)(puVar6 + 0x184fe4);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x184fe4)" identifier = (pointer_expression "*(code **)(puVar6 + 0x184fe4)" * (cast_expression "(code **)(puVar6 + 0x184fe4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x184fe4)" ( (binary_expression "puVar6 + 0x184fe4" identifier + number_literal) ))))) ;) (expression_statement "psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c)" identifier = (cast_expression "(string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x1843ec) + 0x446c)" ( (binary_expression "*(int *)(puVar6 + 0x1843ec) + 0x446c" (pointer_expression "*(int *)(puVar6 + 0x1843ec)" * (cast_expression "(int *)(puVar6 + 0x1843ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x1843ec)" ( (binary_expression "puVar6 + 0x1843ec" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar7)();" (call_expression "(*pcVar7)()" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) (expression_statement "uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);" (assignment_expression "uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4)" identifier = (call_expression "(**(code **)(pcVar7 + 0x188c88))(pcVar4)" (parenthesized_expression "(**(code **)(pcVar7 + 0x188c88))" ( (pointer_expression "**(code **)(pcVar7 + 0x188c88)" * (pointer_expression "*(code **)(pcVar7 + 0x188c88)" * (cast_expression "(code **)(pcVar7 + 0x188c88)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar7 + 0x188c88)" ( (binary_expression "pcVar7 + 0x188c88" identifier + number_literal) ))))) )) (argument_list "(pcVar4)" ( identifier )))) ;) (if_statement "if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }" { (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" identifier = identifier) : :) (labeled_statement "string::_M_append(psVar2,pcVar4,uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(psVar2,pcVar4,uVar1);" (call_expression "_M_append(psVar2,pcVar4,uVar1)" identifier (argument_list "(psVar2,pcVar4,uVar1)" ( identifier , identifier , identifier ))) ;)) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar8 = *(code **)(pcVar7 + 0x184f60);" (assignment_expression "pcVar8 = *(code **)(pcVar7 + 0x184f60)" identifier = (pointer_expression "*(code **)(pcVar7 + 0x184f60)" * (cast_expression "(code **)(pcVar7 + 0x184f60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar7 + 0x184f60)" ( (binary_expression "pcVar7 + 0x184f60" identifier + number_literal) ))))) ;) (expression_statement "psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c)" identifier = (cast_expression "(string *)(*(int *)(pcVar7 + 0x184368) + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar7 + 0x184368) + 0x446c)" ( (binary_expression "*(int *)(pcVar7 + 0x184368) + 0x446c" (pointer_expression "*(int *)(pcVar7 + 0x184368)" * (cast_expression "(int *)(pcVar7 + 0x184368)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + 0x184368)" ( (binary_expression "pcVar7 + 0x184368" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar8)();" (call_expression "(*pcVar8)()" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" if (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" { (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" identifier = identifier) : :) (labeled_statement "string::_M_append(psVar2,pcVar5,param_3);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(psVar2,pcVar5,param_3);" (call_expression "_M_append(psVar2,pcVar5,param_3)" identifier (argument_list "(psVar2,pcVar5,param_3)" ( identifier , identifier , identifier ))) ;)) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar7 = *(code **)(pcVar8 + 0x184edc);" (assignment_expression "pcVar7 = *(code **)(pcVar8 + 0x184edc)" identifier = (pointer_expression "*(code **)(pcVar8 + 0x184edc)" * (cast_expression "(code **)(pcVar8 + 0x184edc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x184edc)" ( (binary_expression "pcVar8 + 0x184edc" identifier + number_literal) ))))) ;) (expression_statement "psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" identifier = (cast_expression "(string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" ( (binary_expression "*(int *)(pcVar8 + 0x1842e4) + 0x446c" (pointer_expression "*(int *)(pcVar8 + 0x1842e4)" * (cast_expression "(int *)(pcVar8 + 0x1842e4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0x1842e4)" ( (binary_expression "pcVar8 + 0x1842e4" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar7)();" (call_expression "(*pcVar7)()" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" if (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4))" ( (binary_expression "param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" number_literal - (pointer_expression "*(int *)(psVar2 + 4)" * (cast_expression "(int *)(psVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 4)" ( (binary_expression "psVar2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" { (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" identifier = identifier) : :) (labeled_statement "string::_M_append(psVar2,pcVar5,param_3);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(psVar2,pcVar5,param_3);" (call_expression "_M_append(psVar2,pcVar5,param_3)" identifier (argument_list "(psVar2,pcVar5,param_3)" ( identifier , identifier , identifier ))) ;)) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar8 = *(code **)(pcVar7 + 0x184e84);" (assignment_expression "pcVar8 = *(code **)(pcVar7 + 0x184e84)" identifier = (pointer_expression "*(code **)(pcVar7 + 0x184e84)" * (cast_expression "(code **)(pcVar7 + 0x184e84)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar7 + 0x184e84)" ( (binary_expression "pcVar7 + 0x184e84" identifier + number_literal) ))))) ;) (expression_statement "piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);" (assignment_expression "piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c)" identifier = (cast_expression "(int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar7 + 0x18428c) + 0x446c)" ( (binary_expression "*(int *)(pcVar7 + 0x18428c) + 0x446c" (pointer_expression "*(int *)(pcVar7 + 0x18428c)" * (cast_expression "(int *)(pcVar7 + 0x18428c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + 0x18428c)" ( (binary_expression "pcVar7 + 0x18428c" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar8)();" (call_expression "(*pcVar8)()" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = piVar3[1];" (assignment_expression "uVar1 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (param_4 <= uVar1) {\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }" if (parenthesized_expression "(param_4 <= uVar1)" ( (binary_expression "param_4 <= uVar1" identifier <= identifier) )) (compound_statement "{\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }" { (if_statement "if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }" if (parenthesized_expression "(uVar1 - param_4 <= param_3)" ( (binary_expression "uVar1 - param_4 <= param_3" (binary_expression "uVar1 - param_4" identifier - identifier) <= identifier) )) (compound_statement "{\n      param_3 = uVar1 - param_4;\n    }" { (expression_statement "param_3 = uVar1 - param_4;" (assignment_expression "param_3 = uVar1 - param_4" identifier = (binary_expression "uVar1 - param_4" identifier - identifier)) ;) })) (if_statement "if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }" { (if_statement "if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }" { (expression_statement "*pcVar5 = *(char *)(*piVar3 + param_4);" (assignment_expression "*pcVar5 = *(char *)(*piVar3 + param_4)" (pointer_expression "*pcVar5" * identifier) = (pointer_expression "*(char *)(*piVar3 + param_4)" * (cast_expression "(char *)(*piVar3 + param_4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + param_4)" ( (binary_expression "*piVar3 + param_4" (pointer_expression "*piVar3" * identifier) + identifier) ))))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(**(code **)(pcVar8 + 0x188b60))(pcVar5);" (call_expression "(**(code **)(pcVar8 + 0x188b60))(pcVar5)" (parenthesized_expression "(**(code **)(pcVar8 + 0x188b60))" ( (pointer_expression "**(code **)(pcVar8 + 0x188b60)" * (pointer_expression "*(code **)(pcVar8 + 0x188b60)" * (cast_expression "(code **)(pcVar8 + 0x188b60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x188b60)" ( (binary_expression "pcVar8 + 0x188b60" identifier + number_literal) ))))) )) (argument_list "(pcVar5)" ( identifier ))) ;) })) (return_statement "return param_3;" return identifier ;) })) (expression_statement "uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8);" (assignment_expression "uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8)" identifier = (call_expression "(**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8)" (parenthesized_expression "(**(code **)(pcVar8 + 0x185214))" ( (pointer_expression "**(code **)(pcVar8 + 0x185214)" * (pointer_expression "*(code **)(pcVar8 + 0x185214)" * (cast_expression "(code **)(pcVar8 + 0x185214)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x185214)" ( (binary_expression "pcVar8 + 0x185214" identifier + number_literal) ))))) )) (argument_list "(*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8)" ( (binary_expression "*(int *)(pcVar8 + 0x184a08) + -0xe00" (pointer_expression "*(int *)(pcVar8 + 0x184a08)" * (cast_expression "(int *)(pcVar8 + 0x184a08)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0x184a08)" ( (binary_expression "pcVar8 + 0x184a08" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar8 + 0x184294) + -0x3aa0" (pointer_expression "*(int *)(pcVar8 + 0x184294)" * (cast_expression "(int *)(pcVar8 + 0x184294)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0x184294)" ( (binary_expression "pcVar8 + 0x184294" identifier + number_literal) )))) + number_literal) , identifier , identifier , (binary_expression "pcVar8 + 0x18c1f8" identifier + number_literal) )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression LIT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (ERROR (assignment_expression IDENT = IDENT) : :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression LIT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (ERROR (assignment_expression IDENT = IDENT) : :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression LIT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (ERROR (assignment_expression IDENT = IDENT) : :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression LIT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (ERROR (assignment_expression IDENT = IDENT) : :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression LIT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (ERROR (assignment_expression IDENT = IDENT) : :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) ))))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , IDENT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })))
(function_definition "uint FUN_0033ce40(string *param_1,char *param_2,uint param_3,uint param_4)\n\n{\n  uint uVar1;\n  string *psVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  code *pcVar8;\n  \n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }\n  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);\n  puVar6 = PTR___throw_length_error_004c1e74;\n  (*(code *)PTR___throw_length_error_004c1e74)();\n  pcVar4 = param_2;\n  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x184fe4);\n  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);\n  (*pcVar7)();\n  pcVar5 = pcVar4;\n  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184f60);\n  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);\n  (*pcVar8)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(pcVar8 + 0x184edc);\n  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);\n  (*pcVar7)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184e84);\n  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);\n  (*pcVar8)();\n  uVar1 = piVar3[1];\n  if (param_4 <= uVar1) {\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }\n  uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8);\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "FUN_0033ce40(string *param_1,char *param_2,uint param_3,uint param_4)" (identifier "FUN_0033ce40") (parameter_list "(string *param_1,char *param_2,uint param_3,uint param_4)" (( "(") (parameter_declaration "string *param_1" (type_identifier "string") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  uint uVar1;\n  string *psVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  code *pcVar8;\n  \n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }\n  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);\n  puVar6 = PTR___throw_length_error_004c1e74;\n  (*(code *)PTR___throw_length_error_004c1e74)();\n  pcVar4 = param_2;\n  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x184fe4);\n  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);\n  (*pcVar7)();\n  pcVar5 = pcVar4;\n  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);\n  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184f60);\n  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);\n  (*pcVar8)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar7 = *(code **)(pcVar8 + 0x184edc);\n  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);\n  (*pcVar7)();\n  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }\n  pcVar8 = *(code **)(pcVar7 + 0x184e84);\n  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);\n  (*pcVar8)();\n  uVar1 = piVar3[1];\n  if (param_4 <= uVar1) {\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }\n  uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8);\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "string *psVar2;" (type_identifier "string") (pointer_declarator "*psVar2" (* "*") (identifier "psVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "code *pcVar7;" (type_identifier "code") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "code *pcVar8;" (type_identifier "code") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(param_1 + 4))" (( "(") (binary_expression "param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)" (identifier "param_3") (<= "<=") (binary_expression "0x7fffffffU - *(int *)(param_1 + 4)" (number_literal "0x7fffffffU") (- "-") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))))) () ")")) (compound_statement "{\n    uVar1 = std::string::_M_append(param_1,param_2,param_3);\n    return uVar1;\n  }" ({ "{") (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" (identifier "uVar1") (= "=") (identifier "std")) (: ":") (: ":")) (labeled_statement "string::_M_append(param_1,param_2,param_3);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_append(param_1,param_2,param_3);" (call_expression "_M_append(param_1,param_2,param_3)" (identifier "_M_append") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);" (assignment_expression "psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" (identifier "psVar2") (= "=") (cast_expression "(string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" (( "(") (type_descriptor "string *" (type_identifier "string") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c)" (( "(") (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c" (identifier "PTR_s_ral_options14Struct_no_crefE_004c127c") (+ "+") (number_literal "0x446c")) () ")")))) (; ";")) (expression_statement "puVar6 = PTR___throw_length_error_004c1e74;" (assignment_expression "puVar6 = PTR___throw_length_error_004c1e74" (identifier "puVar6") (= "=") (identifier "PTR___throw_length_error_004c1e74")) (; ";")) (expression_statement "(*(code *)PTR___throw_length_error_004c1e74)();" (call_expression "(*(code *)PTR___throw_length_error_004c1e74)()" (parenthesized_expression "(*(code *)PTR___throw_length_error_004c1e74)" (( "(") (pointer_expression "*(code *)PTR___throw_length_error_004c1e74" (* "*") (cast_expression "(code *)PTR___throw_length_error_004c1e74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___throw_length_error_004c1e74"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" (identifier "pcVar4") (= "=") (identifier "param_2")) (; ";")) (expression_statement "uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);" (assignment_expression "uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(puVar6 + 0x188d0c))(param_2)" (parenthesized_expression "(**(code **)(puVar6 + 0x188d0c))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x188d0c)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x188d0c)" (* "*") (cast_expression "(code **)(puVar6 + 0x188d0c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x188d0c)" (( "(") (binary_expression "puVar6 + 0x188d0c" (identifier "puVar6") (+ "+") (number_literal "0x188d0c")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4))" (( "(") (binary_expression "uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)" (identifier "uVar1") (<= "<=") (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" (number_literal "0x7fffffffU") (- "-") (pointer_expression "*(int *)(psVar2 + 4)" (* "*") (cast_expression "(int *)(psVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar2 + 4)" (( "(") (binary_expression "psVar2 + 4" (identifier "psVar2") (+ "+") (number_literal "4")) () ")")))))) () ")")) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);\n    return uVar1;\n  }" ({ "{") (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" (identifier "uVar1") (= "=") (identifier "std")) (: ":") (: ":")) (labeled_statement "string::_M_append(psVar2,param_2,uVar1);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_append(psVar2,param_2,uVar1);" (call_expression "_M_append(psVar2,param_2,uVar1)" (identifier "_M_append") (argument_list "(psVar2,param_2,uVar1)" (( "(") (identifier "psVar2") (, ",") (identifier "param_2") (, ",") (identifier "uVar1") () ")"))) (; ";"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "pcVar7 = *(code **)(puVar6 + 0x184fe4);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x184fe4)" (identifier "pcVar7") (= "=") (pointer_expression "*(code **)(puVar6 + 0x184fe4)" (* "*") (cast_expression "(code **)(puVar6 + 0x184fe4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x184fe4)" (( "(") (binary_expression "puVar6 + 0x184fe4" (identifier "puVar6") (+ "+") (number_literal "0x184fe4")) () ")"))))) (; ";")) (expression_statement "psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c)" (identifier "psVar2") (= "=") (cast_expression "(string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c)" (( "(") (type_descriptor "string *" (type_identifier "string") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar6 + 0x1843ec) + 0x446c)" (( "(") (binary_expression "*(int *)(puVar6 + 0x1843ec) + 0x446c" (pointer_expression "*(int *)(puVar6 + 0x1843ec)" (* "*") (cast_expression "(int *)(puVar6 + 0x1843ec)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0x1843ec)" (( "(") (binary_expression "puVar6 + 0x1843ec" (identifier "puVar6") (+ "+") (number_literal "0x1843ec")) () ")")))) (+ "+") (number_literal "0x446c")) () ")")))) (; ";")) (expression_statement "(*pcVar7)();" (call_expression "(*pcVar7)()" (parenthesized_expression "(*pcVar7)" (( "(") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" (identifier "pcVar5") (= "=") (identifier "pcVar4")) (; ";")) (expression_statement "uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);" (assignment_expression "uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(pcVar7 + 0x188c88))(pcVar4)" (parenthesized_expression "(**(code **)(pcVar7 + 0x188c88))" (( "(") (pointer_expression "**(code **)(pcVar7 + 0x188c88)" (* "*") (pointer_expression "*(code **)(pcVar7 + 0x188c88)" (* "*") (cast_expression "(code **)(pcVar7 + 0x188c88)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar7 + 0x188c88)" (( "(") (binary_expression "pcVar7 + 0x188c88" (identifier "pcVar7") (+ "+") (number_literal "0x188c88")) () ")"))))) () ")")) (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")")))) (; ";")) (if_statement "if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4))" (( "(") (binary_expression "uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)" (identifier "uVar1") (<= "<=") (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" (number_literal "0x7fffffffU") (- "-") (pointer_expression "*(int *)(psVar2 + 4)" (* "*") (cast_expression "(int *)(psVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar2 + 4)" (( "(") (binary_expression "psVar2 + 4" (identifier "psVar2") (+ "+") (number_literal "4")) () ")")))))) () ")")) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);\n    return uVar1;\n  }" ({ "{") (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" (identifier "uVar1") (= "=") (identifier "std")) (: ":") (: ":")) (labeled_statement "string::_M_append(psVar2,pcVar4,uVar1);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_append(psVar2,pcVar4,uVar1);" (call_expression "_M_append(psVar2,pcVar4,uVar1)" (identifier "_M_append") (argument_list "(psVar2,pcVar4,uVar1)" (( "(") (identifier "psVar2") (, ",") (identifier "pcVar4") (, ",") (identifier "uVar1") () ")"))) (; ";"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "pcVar8 = *(code **)(pcVar7 + 0x184f60);" (assignment_expression "pcVar8 = *(code **)(pcVar7 + 0x184f60)" (identifier "pcVar8") (= "=") (pointer_expression "*(code **)(pcVar7 + 0x184f60)" (* "*") (cast_expression "(code **)(pcVar7 + 0x184f60)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar7 + 0x184f60)" (( "(") (binary_expression "pcVar7 + 0x184f60" (identifier "pcVar7") (+ "+") (number_literal "0x184f60")) () ")"))))) (; ";")) (expression_statement "psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c)" (identifier "psVar2") (= "=") (cast_expression "(string *)(*(int *)(pcVar7 + 0x184368) + 0x446c)" (( "(") (type_descriptor "string *" (type_identifier "string") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(pcVar7 + 0x184368) + 0x446c)" (( "(") (binary_expression "*(int *)(pcVar7 + 0x184368) + 0x446c" (pointer_expression "*(int *)(pcVar7 + 0x184368)" (* "*") (cast_expression "(int *)(pcVar7 + 0x184368)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar7 + 0x184368)" (( "(") (binary_expression "pcVar7 + 0x184368" (identifier "pcVar7") (+ "+") (number_literal "0x184368")) () ")")))) (+ "+") (number_literal "0x446c")) () ")")))) (; ";")) (expression_statement "(*pcVar8)();" (call_expression "(*pcVar8)()" (parenthesized_expression "(*pcVar8)" (( "(") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4))" (( "(") (binary_expression "param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)" (identifier "param_3") (<= "<=") (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" (number_literal "0x7fffffffU") (- "-") (pointer_expression "*(int *)(psVar2 + 4)" (* "*") (cast_expression "(int *)(psVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar2 + 4)" (( "(") (binary_expression "psVar2 + 4" (identifier "psVar2") (+ "+") (number_literal "4")) () ")")))))) () ")")) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" ({ "{") (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" (identifier "uVar1") (= "=") (identifier "std")) (: ":") (: ":")) (labeled_statement "string::_M_append(psVar2,pcVar5,param_3);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_append(psVar2,pcVar5,param_3);" (call_expression "_M_append(psVar2,pcVar5,param_3)" (identifier "_M_append") (argument_list "(psVar2,pcVar5,param_3)" (( "(") (identifier "psVar2") (, ",") (identifier "pcVar5") (, ",") (identifier "param_3") () ")"))) (; ";"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "pcVar7 = *(code **)(pcVar8 + 0x184edc);" (assignment_expression "pcVar7 = *(code **)(pcVar8 + 0x184edc)" (identifier "pcVar7") (= "=") (pointer_expression "*(code **)(pcVar8 + 0x184edc)" (* "*") (cast_expression "(code **)(pcVar8 + 0x184edc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar8 + 0x184edc)" (( "(") (binary_expression "pcVar8 + 0x184edc" (identifier "pcVar8") (+ "+") (number_literal "0x184edc")) () ")"))))) (; ";")) (expression_statement "psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);" (assignment_expression "psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" (identifier "psVar2") (= "=") (cast_expression "(string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" (( "(") (type_descriptor "string *" (type_identifier "string") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(pcVar8 + 0x1842e4) + 0x446c)" (( "(") (binary_expression "*(int *)(pcVar8 + 0x1842e4) + 0x446c" (pointer_expression "*(int *)(pcVar8 + 0x1842e4)" (* "*") (cast_expression "(int *)(pcVar8 + 0x1842e4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar8 + 0x1842e4)" (( "(") (binary_expression "pcVar8 + 0x1842e4" (identifier "pcVar8") (+ "+") (number_literal "0x1842e4")) () ")")))) (+ "+") (number_literal "0x446c")) () ")")))) (; ";")) (expression_statement "(*pcVar7)();" (call_expression "(*pcVar7)()" (parenthesized_expression "(*pcVar7)" (( "(") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4))" (( "(") (binary_expression "param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)" (identifier "param_3") (<= "<=") (binary_expression "0x7fffffffU - *(int *)(psVar2 + 4)" (number_literal "0x7fffffffU") (- "-") (pointer_expression "*(int *)(psVar2 + 4)" (* "*") (cast_expression "(int *)(psVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar2 + 4)" (( "(") (binary_expression "psVar2 + 4" (identifier "psVar2") (+ "+") (number_literal "4")) () ")")))))) () ")")) (compound_statement "{\n    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);\n    return uVar1;\n  }" ({ "{") (ERROR "uVar1 = std::" (assignment_expression "uVar1 = std" (identifier "uVar1") (= "=") (identifier "std")) (: ":") (: ":")) (labeled_statement "string::_M_append(psVar2,pcVar5,param_3);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_append(psVar2,pcVar5,param_3);" (call_expression "_M_append(psVar2,pcVar5,param_3)" (identifier "_M_append") (argument_list "(psVar2,pcVar5,param_3)" (( "(") (identifier "psVar2") (, ",") (identifier "pcVar5") (, ",") (identifier "param_3") () ")"))) (; ";"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "pcVar8 = *(code **)(pcVar7 + 0x184e84);" (assignment_expression "pcVar8 = *(code **)(pcVar7 + 0x184e84)" (identifier "pcVar8") (= "=") (pointer_expression "*(code **)(pcVar7 + 0x184e84)" (* "*") (cast_expression "(code **)(pcVar7 + 0x184e84)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar7 + 0x184e84)" (( "(") (binary_expression "pcVar7 + 0x184e84" (identifier "pcVar7") (+ "+") (number_literal "0x184e84")) () ")"))))) (; ";")) (expression_statement "piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);" (assignment_expression "piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c)" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(pcVar7 + 0x18428c) + 0x446c)" (( "(") (binary_expression "*(int *)(pcVar7 + 0x18428c) + 0x446c" (pointer_expression "*(int *)(pcVar7 + 0x18428c)" (* "*") (cast_expression "(int *)(pcVar7 + 0x18428c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar7 + 0x18428c)" (( "(") (binary_expression "pcVar7 + 0x18428c" (identifier "pcVar7") (+ "+") (number_literal "0x18428c")) () ")")))) (+ "+") (number_literal "0x446c")) () ")")))) (; ";")) (expression_statement "(*pcVar8)();" (call_expression "(*pcVar8)()" (parenthesized_expression "(*pcVar8)" (( "(") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = piVar3[1];" (assignment_expression "uVar1 = piVar3[1]" (identifier "uVar1") (= "=") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (param_4 <= uVar1) {\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }" (if "if") (parenthesized_expression "(param_4 <= uVar1)" (( "(") (binary_expression "param_4 <= uVar1" (identifier "param_4") (<= "<=") (identifier "uVar1")) () ")")) (compound_statement "{\n    if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }\n    if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }\n    return param_3;\n  }" ({ "{") (if_statement "if (uVar1 - param_4 <= param_3) {\n      param_3 = uVar1 - param_4;\n    }" (if "if") (parenthesized_expression "(uVar1 - param_4 <= param_3)" (( "(") (binary_expression "uVar1 - param_4 <= param_3" (binary_expression "uVar1 - param_4" (identifier "uVar1") (- "-") (identifier "param_4")) (<= "<=") (identifier "param_3")) () ")")) (compound_statement "{\n      param_3 = uVar1 - param_4;\n    }" ({ "{") (expression_statement "param_3 = uVar1 - param_4;" (assignment_expression "param_3 = uVar1 - param_4" (identifier "param_3") (= "=") (binary_expression "uVar1 - param_4" (identifier "uVar1") (- "-") (identifier "param_4"))) (; ";")) (} "}"))) (if_statement "if (param_3 != 0) {\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }\n      (**(code **)(pcVar8 + 0x188b60))(pcVar5);\n    }" ({ "{") (if_statement "if (param_3 == 1) {\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }" (if "if") (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *pcVar5 = *(char *)(*piVar3 + param_4);\n        return 1;\n      }" ({ "{") (expression_statement "*pcVar5 = *(char *)(*piVar3 + param_4);" (assignment_expression "*pcVar5 = *(char *)(*piVar3 + param_4)" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (= "=") (pointer_expression "*(char *)(*piVar3 + param_4)" (* "*") (cast_expression "(char *)(*piVar3 + param_4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + param_4)" (( "(") (binary_expression "*piVar3 + param_4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (identifier "param_4")) () ")"))))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "(**(code **)(pcVar8 + 0x188b60))(pcVar5);" (call_expression "(**(code **)(pcVar8 + 0x188b60))(pcVar5)" (parenthesized_expression "(**(code **)(pcVar8 + 0x188b60))" (( "(") (pointer_expression "**(code **)(pcVar8 + 0x188b60)" (* "*") (pointer_expression "*(code **)(pcVar8 + 0x188b60)" (* "*") (cast_expression "(code **)(pcVar8 + 0x188b60)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar8 + 0x188b60)" (( "(") (binary_expression "pcVar8 + 0x188b60" (identifier "pcVar8") (+ "+") (number_literal "0x188b60")) () ")"))))) () ")")) (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")"))) (; ";")) (} "}"))) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (expression_statement "uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8);" (assignment_expression "uVar1 = (**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(pcVar8 + 0x185214))\n                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8)" (parenthesized_expression "(**(code **)(pcVar8 + 0x185214))" (( "(") (pointer_expression "**(code **)(pcVar8 + 0x185214)" (* "*") (pointer_expression "*(code **)(pcVar8 + 0x185214)" (* "*") (cast_expression "(code **)(pcVar8 + 0x185214)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar8 + 0x185214)" (( "(") (binary_expression "pcVar8 + 0x185214" (identifier "pcVar8") (+ "+") (number_literal "0x185214")) () ")"))))) () ")")) (argument_list "(*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,\n                     param_4,uVar1,pcVar8 + 0x18c1f8)" (( "(") (binary_expression "*(int *)(pcVar8 + 0x184a08) + -0xe00" (pointer_expression "*(int *)(pcVar8 + 0x184a08)" (* "*") (cast_expression "(int *)(pcVar8 + 0x184a08)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar8 + 0x184a08)" (( "(") (binary_expression "pcVar8 + 0x184a08" (identifier "pcVar8") (+ "+") (number_literal "0x184a08")) () ")")))) (+ "+") (number_literal "-0xe00")) (, ",") (binary_expression "*(int *)(pcVar8 + 0x184294) + -0x3aa0" (pointer_expression "*(int *)(pcVar8 + 0x184294)" (* "*") (cast_expression "(int *)(pcVar8 + 0x184294)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar8 + 0x184294)" (( "(") (binary_expression "pcVar8 + 0x184294" (identifier "pcVar8") (+ "+") (number_literal "0x184294")) () ")")))) (+ "+") (number_literal "-0x3aa0")) (, ",") (identifier "param_4") (, ",") (identifier "uVar1") (, ",") (binary_expression "pcVar8 + 0x18c1f8" (identifier "pcVar8") (+ "+") (number_literal "0x18c1f8")) () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (ERROR (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (ERROR (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (ERROR (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (ERROR (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (ERROR (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))))))) (return_statement (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier)))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (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)) (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)) (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

uint MASKED(string *param_1,char *param_2,uint param_3,uint param_4)

{
  uint uVar1;
  string *psVar2;
  int *piVar3;
  char *pcVar4;
  char *pcVar5;
  undefined *puVar6;
  code *pcVar7;
  code *pcVar8;
  
  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {
    uVar1 = std::string::_M_append(param_1,param_2,param_3);
    return uVar1;
  }
  psVar2 = (string *)(PTR_s_ral_options14Struct_no_crefE_004c127c + 0x446c);
  puVar6 = PTR___throw_length_error_004c1e74;
  (*(code *)PTR___throw_length_error_004c1e74)();
  pcVar4 = param_2;
  uVar1 = (**(code **)(puVar6 + 0x188d0c))(param_2);
  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = std::string::_M_append(psVar2,param_2,uVar1);
    return uVar1;
  }
  pcVar7 = *(code **)(puVar6 + 0x184fe4);
  psVar2 = (string *)(*(int *)(puVar6 + 0x1843ec) + 0x446c);
  (*pcVar7)();
  pcVar5 = pcVar4;
  uVar1 = (**(code **)(pcVar7 + 0x188c88))(pcVar4);
  if (uVar1 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = std::string::_M_append(psVar2,pcVar4,uVar1);
    return uVar1;
  }
  pcVar8 = *(code **)(pcVar7 + 0x184f60);
  psVar2 = (string *)(*(int *)(pcVar7 + 0x184368) + 0x446c);
  (*pcVar8)();
  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);
    return uVar1;
  }
  pcVar7 = *(code **)(pcVar8 + 0x184edc);
  psVar2 = (string *)(*(int *)(pcVar8 + 0x1842e4) + 0x446c);
  (*pcVar7)();
  if (param_3 <= 0x7fffffffU - *(int *)(psVar2 + 4)) {
    uVar1 = std::string::_M_append(psVar2,pcVar5,param_3);
    return uVar1;
  }
  pcVar8 = *(code **)(pcVar7 + 0x184e84);
  piVar3 = (int *)(*(int *)(pcVar7 + 0x18428c) + 0x446c);
  (*pcVar8)();
  uVar1 = piVar3[1];
  if (param_4 <= uVar1) {
    if (uVar1 - param_4 <= param_3) {
      param_3 = uVar1 - param_4;
    }
    if (param_3 != 0) {
      if (param_3 == 1) {
        *pcVar5 = *(char *)(*piVar3 + param_4);
        return 1;
      }
      (**(code **)(pcVar8 + 0x188b60))(pcVar5);
    }
    return param_3;
  }
  uVar1 = (**(code **)(pcVar8 + 0x185214))
                    (*(int *)(pcVar8 + 0x184a08) + -0xe00,*(int *)(pcVar8 + 0x184294) + -0x3aa0,
                     param_4,uVar1,pcVar8 + 0x18c1f8);
  return uVar1;
}

