
/* std::ios_base::failure[abi:cxx11]::failure(std::string const&) */

void __thiscall std::ios_base::failure[abi:cxx11]::failure(failure_abi_cxx11_ *this,string *param_1)

{
  long *plVar1;
  long *plVar2;
  ulong uVar3;
  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_88;
  char *local_68;
  ulong local_60;
  char local_58;
  undefined7 uStack_57;
  long *local_48;
  long local_40;
  long local_38;
  long lStack_30;
  
  plVar1 = (long *)iostream_category();
  if (*(code **)(*plVar1 + 0x20) == ::(anonymous_namespace)::io_error_category::message_abi_cxx11_)
  {
    local_68 = &local_58;
    local_60 = 0;
    local_58 = '\0';
                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */
    std::string::_M_replace((string *)&local_68,0,0,"iostream error",0xe);
  }
  else {
    (**(code **)(*plVar1 + 0x20))((string *)&local_68,plVar1,1);
  }
  local_88._M_dataplus._M_p = (pointer)&local_88.field_2;
                    /* try { // try from 002aff10 to 002aff14 has its CatchHandler @ 002b00be */
  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::_M_construct<char*>
            (&local_88,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
  if (0x7fffffffffffffff - local_88._M_string_length < 2) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */
    __throw_length_error("basic_string::append");
  }
                    /* try { // try from 002aff3d to 002aff41 has its CatchHandler @ 002b00ae */
  std::string::_M_append((string *)&local_88,": ",2);
  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
       *)local_88._M_dataplus._M_p == &local_88.field_2) {
    local_88.field_2._M_allocated_capacity = 0xf;
  }
  if (local_88.field_2._M_allocated_capacity < local_88._M_string_length + local_60) {
    if (local_68 == &local_58) {
      uVar3 = 0xf;
    }
    else {
      uVar3 = CONCAT71(uStack_57,local_58);
    }
    if (local_88._M_string_length + local_60 <= uVar3) {
                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */
      plVar2 = (long *)std::string::_M_replace
                                 ((string *)&local_68,0,0,local_88._M_dataplus._M_p,
                                  local_88._M_string_length);
      goto LAB_002aff93;
    }
  }
                    /* try { // try from 002aff8e to 002aff92 has its CatchHandler @ 002b00b6 */
  plVar2 = (long *)std::string::_M_append((string *)&local_88,local_68,local_60);
LAB_002aff93:
  local_48 = &local_38;
  if ((long *)*plVar2 == plVar2 + 2) {
    local_38 = plVar2[2];
    lStack_30 = plVar2[3];
  }
  else {
    local_38 = plVar2[2];
    local_48 = (long *)*plVar2;
  }
  local_40 = plVar2[1];
  *(undefined1 *)(plVar2 + 2) = 0;
  *plVar2 = (long)(plVar2 + 2);
  plVar2[1] = 0;
                    /* try { // try from 002affde to 002affe2 has its CatchHandler @ 002b00c6 */
  runtime_error::runtime_error((runtime_error *)this,(string *)&local_48);
  if (local_48 != &local_38) {
    operator_delete(local_48);
  }
  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
       *)local_88._M_dataplus._M_p != &local_88.field_2) {
    operator_delete(local_88._M_dataplus._M_p);
  }
  if (local_68 != &local_58) {
    operator_delete(local_68);
  }
  *(undefined4 *)(this + 0x10) = 1;
  *(long **)(this + 0x18) = plVar1;
  *(undefined ***)this = &PTR__failure_003ba7a0;
  return;
}



void FUN_002afe90(undefined8 *param_1,long *param_2)

{
  long *plVar1;
  long *plVar2;
  ulong uVar3;
  ulong *local_88;
  long local_80;
  ulong local_78 [2];
  undefined1 *local_68;
  long local_60;
  undefined1 local_58;
  undefined7 uStack_57;
  long *local_48;
  long local_40;
  long local_38;
  long lStack_30;
  
  plVar1 = (long *)FUN_002afe10();
  if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {
    local_68 = &local_58;
    local_60 = 0;
    local_58 = 0;
                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */
    FUN_0027e650(&local_68,0,0,"iostream error",0xe);
  }
  else {
    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);
  }
  local_88 = local_78;
                    /* try { // try from 002aff10 to 002aff14 has its CatchHandler @ 002b00be */
  FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);
  if (0x7fffffffffffffffU - local_80 < 2) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */
    FUN_002b5650("basic_string::append");
  }
                    /* try { // try from 002aff3d to 002aff41 has its CatchHandler @ 002b00ae */
  FUN_0027efa0(&local_88,&DAT_003244cd,2);
  if (local_88 == local_78) {
    local_78[0] = 0xf;
  }
  if (local_78[0] < (ulong)(local_80 + local_60)) {
    if (local_68 == &local_58) {
      uVar3 = 0xf;
    }
    else {
      uVar3 = CONCAT71(uStack_57,local_58);
    }
    if ((ulong)(local_80 + local_60) <= uVar3) {
                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */
      plVar2 = (long *)FUN_0027e650(&local_68,0,0);
      goto LAB_002aff93;
    }
  }
                    /* try { // try from 002aff8e to 002aff92 has its CatchHandler @ 002b00b6 */
  plVar2 = (long *)FUN_0027efa0(&local_88);
LAB_002aff93:
  local_48 = &local_38;
  if ((long *)*plVar2 == plVar2 + 2) {
    local_38 = plVar2[2];
    lStack_30 = plVar2[3];
  }
  else {
    local_38 = plVar2[2];
    local_48 = (long *)*plVar2;
  }
  local_40 = plVar2[1];
  *(undefined1 *)(plVar2 + 2) = 0;
  *plVar2 = (long)(plVar2 + 2);
  plVar2[1] = 0;
                    /* try { // try from 002affde to 002affe2 has its CatchHandler @ 002b00c6 */
  FUN_002f3b30(param_1,&local_48);
  if (local_48 != &local_38) {
    FUN_00276d20();
  }
  if (local_88 != local_78) {
    FUN_00276d20();
  }
  if (local_68 != &local_58) {
    FUN_00276d20();
  }
  *(undefined4 *)(param_1 + 2) = 1;
  param_1[3] = plVar1;
  *param_1 = &PTR_FUN_003ba7a0;
  return;
}


PUSH R14
PUSH R13
MOV R13,RDI
PUSH R12
MOV R12,RSI
PUSH RBP
PUSH RBX
SUB RSP,0x60
CALL 0x002afe10
LEA RDX,[0x2afda0]
LEA RBP,[RSP + 0x20]
MOV R14,RAX
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x20]
CMP RAX,RDX
JNZ 0x002b0070
LEA RAX,[RBP + 0x10]
MOV R8D,0xe
XOR EDX,EDX
XOR ESI,ESI
LEA RCX,[0x32a575]
MOV RDI,RBP
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],0x0
MOV byte ptr [RSP + 0x30],0x0
CALL 0x0027e650
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV RBX,RSP
LEA RAX,[RBX + 0x10]
MOV RDI,RBX
ADD RDX,RSI
MOV qword ptr [RSP],RAX
CALL 0x0015d030
MOV RAX,0x7fffffffffffffff
SUB RAX,qword ptr [RSP + 0x8]
CMP RAX,0x1
JBE 0x002b00a2
MOV EDX,0x2
LEA RSI,[0x3244cd]
MOV RDI,RBX
CALL 0x0027efa0
MOV R8,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x28]
LEA RSI,[RBX + 0x10]
MOV RCX,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x10]
LEA RAX,[R8 + RDX*0x1]
CMP RCX,RSI
JZ 0x002b0088
MOV RSI,qword ptr [RSP + 0x20]
CMP RAX,RDI
JBE 0x002aff8b
LEA RDI,[RBP + 0x10]
CMP RSI,RDI
JZ 0x002b0098
MOV RDI,qword ptr [RSP + 0x30]
CMP RAX,RDI
JBE 0x002b0048
MOV RDI,RBX
CALL 0x0027efa0
LEA R12,[RSP + 0x40]
LEA RDX,[R12 + 0x10]
MOV qword ptr [RSP + 0x40],RDX
MOV RCX,qword ptr [RAX]
LEA RDX,[RAX + 0x10]
CMP RCX,RDX
JZ 0x002b0060
MOV qword ptr [RSP + 0x40],RCX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x50],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV byte ptr [RAX + 0x10],0x0
MOV RSI,R12
MOV RDI,R13
MOV qword ptr [RSP + 0x48],RCX
MOV qword ptr [RAX],RDX
MOV qword ptr [RAX + 0x8],0x0
CALL 0x002f3b30
MOV RDI,qword ptr [RSP + 0x40]
ADD R12,0x10
CMP RDI,R12
JZ 0x002afff6
CALL 0x00276d20
MOV RDI,qword ptr [RSP]
ADD RBX,0x10
CMP RDI,RBX
JZ 0x002b0008
CALL 0x00276d20
MOV RDI,qword ptr [RSP + 0x20]
ADD RBP,0x10
CMP RDI,RBP
JZ 0x002b001b
CALL 0x00276d20
LEA RAX,[0x3ba790]
MOV dword ptr [R13 + 0x10],0x1
MOV qword ptr [R13 + 0x18],R14
ADD RAX,0x10
MOV qword ptr [R13],RAX
ADD RSP,0x60
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
XOR EDX,EDX
XOR ESI,ESI
MOV RDI,RBP
CALL 0x0027e650
JMP 0x002aff93
MOVDQU XMM0,xmmword ptr [RAX + 0x10]
MOVAPS xmmword ptr [RSP + 0x50],XMM0
JMP 0x002affc0
MOV EDX,0x1
MOV RSI,R14
MOV RDI,RBP
CALL RAX
JMP 0x002afef6
MOV EDI,0xf
JMP 0x002aff66
MOV EDI,0xf
JMP 0x002aff82
LEA RDI,[0x30d7c2]
CALL 0x002b5650
(translation_unit "void FUN_002afe90(undefined8 *param_1,long *param_2)\n\n{\n  long *plVar1;\n  long *plVar2;\n  ulong uVar3;\n  ulong *local_88;\n  long local_80;\n  ulong local_78 [2];\n  undefined1 *local_68;\n  long local_60;\n  undefined1 local_58;\n  undefined7 uStack_57;\n  long *local_48;\n  long local_40;\n  long local_38;\n  long lStack_30;\n  \n  plVar1 = (long *)FUN_002afe10();\n  if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */\n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }\n  local_88 = local_78;\n                    /* try { // try from 002aff10 to 002aff14 has its CatchHandler @ 002b00be */\n  FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);\n  if (0x7fffffffffffffffU - local_80 < 2) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */\n    FUN_002b5650("basic_string::append");\n  }\n                    /* try { // try from 002aff3d to 002aff41 has its CatchHandler @ 002b00ae */\n  FUN_0027efa0(&local_88,&DAT_003244cd,2);\n  if (local_88 == local_78) {\n    local_78[0] = 0xf;\n  }\n  if (local_78[0] < (ulong)(local_80 + local_60)) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }\n                    /* try { // try from 002aff8e to 002aff92 has its CatchHandler @ 002b00b6 */\n  plVar2 = (long *)FUN_0027efa0(&local_88);\nLAB_002aff93:\n  local_48 = &local_38;\n  if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }\n  local_40 = plVar2[1];\n  *(undefined1 *)(plVar2 + 2) = 0;\n  *plVar2 = (long)(plVar2 + 2);\n  plVar2[1] = 0;\n                    /* try { // try from 002affde to 002affe2 has its CatchHandler @ 002b00c6 */\n  FUN_002f3b30(param_1,&local_48);\n  if (local_48 != &local_38) {\n    FUN_00276d20();\n  }\n  if (local_88 != local_78) {\n    FUN_00276d20();\n  }\n  if (local_68 != &local_58) {\n    FUN_00276d20();\n  }\n  *(undefined4 *)(param_1 + 2) = 1;\n  param_1[3] = plVar1;\n  *param_1 = &PTR_FUN_003ba7a0;\n  return;\n}\n\n" (function_definition "void FUN_002afe90(undefined8 *param_1,long *param_2)\n\n{\n  long *plVar1;\n  long *plVar2;\n  ulong uVar3;\n  ulong *local_88;\n  long local_80;\n  ulong local_78 [2];\n  undefined1 *local_68;\n  long local_60;\n  undefined1 local_58;\n  undefined7 uStack_57;\n  long *local_48;\n  long local_40;\n  long local_38;\n  long lStack_30;\n  \n  plVar1 = (long *)FUN_002afe10();\n  if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */\n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }\n  local_88 = local_78;\n                    /* try { // try from 002aff10 to 002aff14 has its CatchHandler @ 002b00be */\n  FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);\n  if (0x7fffffffffffffffU - local_80 < 2) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */\n    FUN_002b5650("basic_string::append");\n  }\n                    /* try { // try from 002aff3d to 002aff41 has its CatchHandler @ 002b00ae */\n  FUN_0027efa0(&local_88,&DAT_003244cd,2);\n  if (local_88 == local_78) {\n    local_78[0] = 0xf;\n  }\n  if (local_78[0] < (ulong)(local_80 + local_60)) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }\n                    /* try { // try from 002aff8e to 002aff92 has its CatchHandler @ 002b00b6 */\n  plVar2 = (long *)FUN_0027efa0(&local_88);\nLAB_002aff93:\n  local_48 = &local_38;\n  if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }\n  local_40 = plVar2[1];\n  *(undefined1 *)(plVar2 + 2) = 0;\n  *plVar2 = (long)(plVar2 + 2);\n  plVar2[1] = 0;\n                    /* try { // try from 002affde to 002affe2 has its CatchHandler @ 002b00c6 */\n  FUN_002f3b30(param_1,&local_48);\n  if (local_48 != &local_38) {\n    FUN_00276d20();\n  }\n  if (local_88 != local_78) {\n    FUN_00276d20();\n  }\n  if (local_68 != &local_58) {\n    FUN_00276d20();\n  }\n  *(undefined4 *)(param_1 + 2) = 1;\n  param_1[3] = plVar1;\n  *param_1 = &PTR_FUN_003ba7a0;\n  return;\n}" primitive_type (function_declarator "FUN_002afe90(undefined8 *param_1,long *param_2)" identifier (parameter_list "(undefined8 *param_1,long *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  ulong uVar3;\n  ulong *local_88;\n  long local_80;\n  ulong local_78 [2];\n  undefined1 *local_68;\n  long local_60;\n  undefined1 local_58;\n  undefined7 uStack_57;\n  long *local_48;\n  long local_40;\n  long local_38;\n  long lStack_30;\n  \n  plVar1 = (long *)FUN_002afe10();\n  if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */\n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }\n  local_88 = local_78;\n                    /* try { // try from 002aff10 to 002aff14 has its CatchHandler @ 002b00be */\n  FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);\n  if (0x7fffffffffffffffU - local_80 < 2) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */\n    FUN_002b5650("basic_string::append");\n  }\n                    /* try { // try from 002aff3d to 002aff41 has its CatchHandler @ 002b00ae */\n  FUN_0027efa0(&local_88,&DAT_003244cd,2);\n  if (local_88 == local_78) {\n    local_78[0] = 0xf;\n  }\n  if (local_78[0] < (ulong)(local_80 + local_60)) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }\n                    /* try { // try from 002aff8e to 002aff92 has its CatchHandler @ 002b00b6 */\n  plVar2 = (long *)FUN_0027efa0(&local_88);\nLAB_002aff93:\n  local_48 = &local_38;\n  if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }\n  local_40 = plVar2[1];\n  *(undefined1 *)(plVar2 + 2) = 0;\n  *plVar2 = (long)(plVar2 + 2);\n  plVar2[1] = 0;\n                    /* try { // try from 002affde to 002affe2 has its CatchHandler @ 002b00c6 */\n  FUN_002f3b30(param_1,&local_48);\n  if (local_48 != &local_38) {\n    FUN_00276d20();\n  }\n  if (local_88 != local_78) {\n    FUN_00276d20();\n  }\n  if (local_68 != &local_58) {\n    FUN_00276d20();\n  }\n  *(undefined4 *)(param_1 + 2) = 1;\n  param_1[3] = plVar1;\n  *param_1 = &PTR_FUN_003ba7a0;\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "ulong *local_88;" type_identifier (pointer_declarator "*local_88" * identifier) ;) (declaration "long local_80;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong local_78 [2];" type_identifier (array_declarator "local_78 [2]" identifier [ number_literal ]) ;) (declaration "undefined1 *local_68;" type_identifier (pointer_declarator "*local_68" * identifier) ;) (declaration "long local_60;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_58;" type_identifier identifier ;) (declaration "undefined7 uStack_57;" type_identifier identifier ;) (declaration "long *local_48;" (sized_type_specifier "long" long) (pointer_declarator "*local_48" * identifier) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_38;" (sized_type_specifier "long" long) identifier ;) (declaration "long lStack_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "plVar1 = (long *)FUN_002afe10();" (assignment_expression "plVar1 = (long *)FUN_002afe10()" identifier = (cast_expression "(long *)FUN_002afe10()" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002afe10()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */\n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }" if (parenthesized_expression "(*(code **)(*plVar1 + 0x20) == FUN_002afda0)" ( (binary_expression "*(code **)(*plVar1 + 0x20) == FUN_002afda0" (pointer_expression "*(code **)(*plVar1 + 0x20)" * (cast_expression "(code **)(*plVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x20)" ( (binary_expression "*plVar1 + 0x20" (pointer_expression "*plVar1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */\n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }" { (expression_statement "local_68 = &local_58;" (assignment_expression "local_68 = &local_58" identifier = (pointer_expression "&local_58" & identifier)) ;) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" identifier = number_literal) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) comment (expression_statement "FUN_0027e650(&local_68,0,0,"iostream error",0xe);" (call_expression "FUN_0027e650(&local_68,0,0,"iostream error",0xe)" identifier (argument_list "(&local_68,0,0,"iostream error",0xe)" ( (pointer_expression "&local_68" & identifier) , number_literal , number_literal , (string_literal ""iostream error"" " string_content ") , number_literal ))) ;) }) (else_clause "else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }" else (compound_statement "{\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }" { (expression_statement "(**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);" (call_expression "(**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x20))" ( (pointer_expression "**(code **)(*plVar1 + 0x20)" * (pointer_expression "*(code **)(*plVar1 + 0x20)" * (cast_expression "(code **)(*plVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x20)" ( (binary_expression "*plVar1 + 0x20" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(&local_68,plVar1,1)" ( (pointer_expression "&local_68" & identifier) , identifier , number_literal ))) ;) }))) (expression_statement "local_88 = local_78;" (assignment_expression "local_88 = local_78" identifier = identifier) ;) comment (expression_statement "FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);" (call_expression "FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2)" identifier (argument_list "(&local_88,*param_2,param_2[1] + *param_2)" ( (pointer_expression "&local_88" & identifier) , (pointer_expression "*param_2" * identifier) , (binary_expression "param_2[1] + *param_2" (subscript_expression "param_2[1]" identifier [ number_literal ]) + (pointer_expression "*param_2" * identifier)) ))) ;) (if_statement "if (0x7fffffffffffffffU - local_80 < 2) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */\n    FUN_002b5650("basic_string::append");\n  }" if (parenthesized_expression "(0x7fffffffffffffffU - local_80 < 2)" ( (binary_expression "0x7fffffffffffffffU - local_80 < 2" (binary_expression "0x7fffffffffffffffU - local_80" number_literal - identifier) < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */\n    FUN_002b5650("basic_string::append");\n  }" { comment comment (expression_statement "FUN_002b5650("basic_string::append");" (call_expression "FUN_002b5650("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) comment (expression_statement "FUN_0027efa0(&local_88,&DAT_003244cd,2);" (call_expression "FUN_0027efa0(&local_88,&DAT_003244cd,2)" identifier (argument_list "(&local_88,&DAT_003244cd,2)" ( (pointer_expression "&local_88" & identifier) , (pointer_expression "&DAT_003244cd" & identifier) , number_literal ))) ;) (if_statement "if (local_88 == local_78) {\n    local_78[0] = 0xf;\n  }" if (parenthesized_expression "(local_88 == local_78)" ( (binary_expression "local_88 == local_78" identifier == identifier) )) (compound_statement "{\n    local_78[0] = 0xf;\n  }" { (expression_statement "local_78[0] = 0xf;" (assignment_expression "local_78[0] = 0xf" (subscript_expression "local_78[0]" identifier [ number_literal ]) = number_literal) ;) })) (if_statement "if (local_78[0] < (ulong)(local_80 + local_60)) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }" if (parenthesized_expression "(local_78[0] < (ulong)(local_80 + local_60))" ( (binary_expression "local_78[0] < (ulong)(local_80 + local_60)" (subscript_expression "local_78[0]" identifier [ number_literal ]) < (call_expression "(ulong)(local_80 + local_60)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(local_80 + local_60)" ( (binary_expression "local_80 + local_60" identifier + identifier) )))) )) (compound_statement "{\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }" { (if_statement "if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" if (parenthesized_expression "(local_68 == &local_58)" ( (binary_expression "local_68 == &local_58" identifier == (pointer_expression "&local_58" & identifier)) )) (compound_statement "{\n      uVar3 = 0xf;\n    }" { (expression_statement "uVar3 = 0xf;" (assignment_expression "uVar3 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" else (compound_statement "{\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" { (expression_statement "uVar3 = CONCAT71(uStack_57,local_58);" (assignment_expression "uVar3 = CONCAT71(uStack_57,local_58)" identifier = (call_expression "CONCAT71(uStack_57,local_58)" identifier (argument_list "(uStack_57,local_58)" ( identifier , identifier )))) ;) }))) (if_statement "if ((ulong)(local_80 + local_60) <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }" if (parenthesized_expression "((ulong)(local_80 + local_60) <= uVar3)" ( (binary_expression "(ulong)(local_80 + local_60) <= uVar3" (call_expression "(ulong)(local_80 + local_60)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(local_80 + local_60)" ( (binary_expression "local_80 + local_60" identifier + identifier) ))) <= identifier) )) (compound_statement "{\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }" { comment (expression_statement "plVar2 = (long *)FUN_0027e650(&local_68,0,0);" (assignment_expression "plVar2 = (long *)FUN_0027e650(&local_68,0,0)" identifier = (cast_expression "(long *)FUN_0027e650(&local_68,0,0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0027e650(&local_68,0,0)" identifier (argument_list "(&local_68,0,0)" ( (pointer_expression "&local_68" & identifier) , number_literal , number_literal ))))) ;) (goto_statement "goto LAB_002aff93;" goto statement_identifier ;) })) })) comment (expression_statement "plVar2 = (long *)FUN_0027efa0(&local_88);" (assignment_expression "plVar2 = (long *)FUN_0027efa0(&local_88)" identifier = (cast_expression "(long *)FUN_0027efa0(&local_88)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0027efa0(&local_88)" identifier (argument_list "(&local_88)" ( (pointer_expression "&local_88" & identifier) ))))) ;) (labeled_statement "LAB_002aff93:\n  local_48 = &local_38;" statement_identifier : (expression_statement "local_48 = &local_38;" (assignment_expression "local_48 = &local_38" identifier = (pointer_expression "&local_38" & identifier)) ;)) (if_statement "if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" if (parenthesized_expression "((long *)*plVar2 == plVar2 + 2)" ( (binary_expression "(long *)*plVar2 == plVar2 + 2" (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier)) == (binary_expression "plVar2 + 2" identifier + number_literal)) )) (compound_statement "{\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }" { (expression_statement "local_38 = plVar2[2];" (assignment_expression "local_38 = plVar2[2]" identifier = (subscript_expression "plVar2[2]" identifier [ number_literal ])) ;) (expression_statement "lStack_30 = plVar2[3];" (assignment_expression "lStack_30 = plVar2[3]" identifier = (subscript_expression "plVar2[3]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" else (compound_statement "{\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" { (expression_statement "local_38 = plVar2[2];" (assignment_expression "local_38 = plVar2[2]" identifier = (subscript_expression "plVar2[2]" identifier [ number_literal ])) ;) (expression_statement "local_48 = (long *)*plVar2;" (assignment_expression "local_48 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) }))) (expression_statement "local_40 = plVar2[1];" (assignment_expression "local_40 = plVar2[1]" identifier = (subscript_expression "plVar2[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(plVar2 + 2) = 0;" (assignment_expression "*(undefined1 *)(plVar2 + 2) = 0" (pointer_expression "*(undefined1 *)(plVar2 + 2)" * (cast_expression "(undefined1 *)(plVar2 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 2)" ( (binary_expression "plVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*plVar2 = (long)(plVar2 + 2);" (assignment_expression "*plVar2 = (long)(plVar2 + 2)" (pointer_expression "*plVar2" * identifier) = (cast_expression "(long)(plVar2 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(plVar2 + 2)" ( (binary_expression "plVar2 + 2" identifier + number_literal) )))) ;) (expression_statement "plVar2[1] = 0;" (assignment_expression "plVar2[1] = 0" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = number_literal) ;) comment (expression_statement "FUN_002f3b30(param_1,&local_48);" (call_expression "FUN_002f3b30(param_1,&local_48)" identifier (argument_list "(param_1,&local_48)" ( identifier , (pointer_expression "&local_48" & identifier) ))) ;) (if_statement "if (local_48 != &local_38) {\n    FUN_00276d20();\n  }" if (parenthesized_expression "(local_48 != &local_38)" ( (binary_expression "local_48 != &local_38" identifier != (pointer_expression "&local_38" & identifier)) )) (compound_statement "{\n    FUN_00276d20();\n  }" { (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_88 != local_78) {\n    FUN_00276d20();\n  }" if (parenthesized_expression "(local_88 != local_78)" ( (binary_expression "local_88 != local_78" identifier != identifier) )) (compound_statement "{\n    FUN_00276d20();\n  }" { (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_68 != &local_58) {\n    FUN_00276d20();\n  }" if (parenthesized_expression "(local_68 != &local_58)" ( (binary_expression "local_68 != &local_58" identifier != (pointer_expression "&local_58" & identifier)) )) (compound_statement "{\n    FUN_00276d20();\n  }" { (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 2) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 2) = 1" (pointer_expression "*(undefined4 *)(param_1 + 2)" * (cast_expression "(undefined4 *)(param_1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[3] = plVar1;" (assignment_expression "param_1[3] = plVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = &PTR_FUN_003ba7a0;" (assignment_expression "*param_1 = &PTR_FUN_003ba7a0" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003ba7a0" & identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::ios_base::failure[abi:cxx11]::failure(std::string const&) */\n\nvoid __thiscall std::ios_base::failure[abi:cxx11]::failure(failure_abi_cxx11_ *this,string *param_1)\n\n{\n  long *plVar1;\n  long *plVar2;\n  ulong uVar3;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_88;\n  char *local_68;\n  ulong local_60;\n  char local_58;\n  undefined7 uStack_57;\n  long *local_48;\n  long local_40;\n  long local_38;\n  long lStack_30;\n  \n  plVar1 = (long *)iostream_category();\n  if (*(code **)(*plVar1 + 0x20) == ::(anonymous_namespace)::io_error_category::message_abi_cxx11_)\n  {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = '\0';\n                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */\n    std::string::_M_replace((string *)&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))((string *)&local_68,plVar1,1);\n  }\n  local_88._M_dataplus._M_p = (pointer)&local_88.field_2;\n                    /* try { // try from 002aff10 to 002aff14 has its CatchHandler @ 002b00be */\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::_M_construct<char*>\n            (&local_88,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);\n  if (0x7fffffffffffffff - local_88._M_string_length < 2) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */\n    __throw_length_error("basic_string::append");\n  }\n                    /* try { // try from 002aff3d to 002aff41 has its CatchHandler @ 002b00ae */\n  std::string::_M_append((string *)&local_88,": ",2);\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p == &local_88.field_2) {\n    local_88.field_2._M_allocated_capacity = 0xf;\n  }\n  if (local_88.field_2._M_allocated_capacity < local_88._M_string_length + local_60) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if (local_88._M_string_length + local_60 <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)std::string::_M_replace\n                                 ((string *)&local_68,0,0,local_88._M_dataplus._M_p,\n                                  local_88._M_string_length);\n      goto LAB_002aff93;\n    }\n  }\n                    /* try { // try from 002aff8e to 002aff92 has its CatchHandler @ 002b00b6 */\n  plVar2 = (long *)std::string::_M_append((string *)&local_88,local_68,local_60);\nLAB_002aff93:\n  local_48 = &local_38;\n  if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }\n  local_40 = plVar2[1];\n  *(undefined1 *)(plVar2 + 2) = 0;\n  *plVar2 = (long)(plVar2 + 2);\n  plVar2[1] = 0;\n                    /* try { // try from 002affde to 002affe2 has its CatchHandler @ 002b00c6 */\n  runtime_error::runtime_error((runtime_error *)this,(string *)&local_48);\n  if (local_48 != &local_38) {\n    operator_delete(local_48);\n  }\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p != &local_88.field_2) {\n    operator_delete(local_88._M_dataplus._M_p);\n  }\n  if (local_68 != &local_58) {\n    operator_delete(local_68);\n  }\n  *(undefined4 *)(this + 0x10) = 1;\n  *(long **)(this + 0x18) = plVar1;\n  *(undefined ***)this = &PTR__failure_003ba7a0;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ios_base::failure[abi:cxx11]::failure(failure_abi_cxx11_ *this,string *param_1)\n\n{\n  long *plVar1;\n  long *plVar2;\n  ulong uVar3;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_88;\n  char *local_68;\n  ulong local_60;\n  char local_58;\n  undefined7 uStack_57;\n  long *local_48;\n  long local_40;\n  long local_38;\n  long lStack_30;\n  \n  plVar1 = (long *)iostream_category();\n  if (*(code **)(*plVar1 + 0x20) == ::(anonymous_namespace)::io_error_category::message_abi_cxx11_)\n  {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = '\0';\n                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */\n    std::string::_M_replace((string *)&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))((string *)&local_68,plVar1,1);\n  }\n  local_88._M_dataplus._M_p = (pointer)&local_88.field_2;\n                    /* try { // try from 002aff10 to 002aff14 has its CatchHandler @ 002b00be */\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::_M_construct<char*>\n            (&local_88,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);\n  if (0x7fffffffffffffff - local_88._M_string_length < 2) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */\n    __throw_length_error("basic_string::append");\n  }\n                    /* try { // try from 002aff3d to 002aff41 has its CatchHandler @ 002b00ae */\n  std::string::_M_append((string *)&local_88,": ",2);\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p == &local_88.field_2) {\n    local_88.field_2._M_allocated_capacity = 0xf;\n  }\n  if (local_88.field_2._M_allocated_capacity < local_88._M_string_length + local_60) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if (local_88._M_string_length + local_60 <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)std::string::_M_replace\n                                 ((string *)&local_68,0,0,local_88._M_dataplus._M_p,\n                                  local_88._M_string_length);\n      goto LAB_002aff93;\n    }\n  }\n                    /* try { // try from 002aff8e to 002aff92 has its CatchHandler @ 002b00b6 */\n  plVar2 = (long *)std::string::_M_append((string *)&local_88,local_68,local_60);\nLAB_002aff93:\n  local_48 = &local_38;\n  if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }\n  local_40 = plVar2[1];\n  *(undefined1 *)(plVar2 + 2) = 0;\n  *plVar2 = (long)(plVar2 + 2);\n  plVar2[1] = 0;\n                    /* try { // try from 002affde to 002affe2 has its CatchHandler @ 002b00c6 */\n  runtime_error::runtime_error((runtime_error *)this,(string *)&local_48);\n  if (local_48 != &local_38) {\n    operator_delete(local_48);\n  }\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p != &local_88.field_2) {\n    operator_delete(local_88._M_dataplus._M_p);\n  }\n  if (local_68 != &local_58) {\n    operator_delete(local_68);\n  }\n  *(undefined4 *)(this + 0x10) = 1;\n  *(long **)(this + 0x18) = plVar1;\n  *(undefined ***)this = &PTR__failure_003ba7a0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios_base::failure[abi:cxx11]::" identifier : : identifier : : (array_declarator "failure[abi:cxx11]" identifier [ (ERROR "abi:" identifier :) identifier ]) : :) (function_declarator "failure(failure_abi_cxx11_ *this,string *param_1)" identifier (parameter_list "(failure_abi_cxx11_ *this,string *param_1)" ( (parameter_declaration "failure_abi_cxx11_ *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  ulong uVar3;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_88;\n  char *local_68;\n  ulong local_60;\n  char local_58;\n  undefined7 uStack_57;\n  long *local_48;\n  long local_40;\n  long local_38;\n  long lStack_30;\n  \n  plVar1 = (long *)iostream_category();\n  if (*(code **)(*plVar1 + 0x20) == ::(anonymous_namespace)::io_error_category::message_abi_cxx11_)\n  {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = '\0';\n                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */\n    std::string::_M_replace((string *)&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))((string *)&local_68,plVar1,1);\n  }\n  local_88._M_dataplus._M_p = (pointer)&local_88.field_2;\n                    /* try { // try from 002aff10 to 002aff14 has its CatchHandler @ 002b00be */\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::_M_construct<char*>\n            (&local_88,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);\n  if (0x7fffffffffffffff - local_88._M_string_length < 2) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */\n    __throw_length_error("basic_string::append");\n  }\n                    /* try { // try from 002aff3d to 002aff41 has its CatchHandler @ 002b00ae */\n  std::string::_M_append((string *)&local_88,": ",2);\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p == &local_88.field_2) {\n    local_88.field_2._M_allocated_capacity = 0xf;\n  }\n  if (local_88.field_2._M_allocated_capacity < local_88._M_string_length + local_60) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if (local_88._M_string_length + local_60 <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)std::string::_M_replace\n                                 ((string *)&local_68,0,0,local_88._M_dataplus._M_p,\n                                  local_88._M_string_length);\n      goto LAB_002aff93;\n    }\n  }\n                    /* try { // try from 002aff8e to 002aff92 has its CatchHandler @ 002b00b6 */\n  plVar2 = (long *)std::string::_M_append((string *)&local_88,local_68,local_60);\nLAB_002aff93:\n  local_48 = &local_38;\n  if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }\n  local_40 = plVar2[1];\n  *(undefined1 *)(plVar2 + 2) = 0;\n  *plVar2 = (long)(plVar2 + 2);\n  plVar2[1] = 0;\n                    /* try { // try from 002affde to 002affe2 has its CatchHandler @ 002b00c6 */\n  runtime_error::runtime_error((runtime_error *)this,(string *)&local_48);\n  if (local_48 != &local_38) {\n    operator_delete(local_48);\n  }\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p != &local_88.field_2) {\n    operator_delete(local_88._M_dataplus._M_p);\n  }\n  if (local_68 != &local_58) {\n    operator_delete(local_68);\n  }\n  *(undefined4 *)(this + 0x10) = 1;\n  *(long **)(this + 0x18) = plVar1;\n  *(undefined ***)this = &PTR__failure_003ba7a0;\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (ERROR "basic_string<char,_std::char_traits<char>,_std::" (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (expression_statement "allocator<char>_> local_88;" (binary_expression "allocator<char>_> local_88" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > identifier) ;) (declaration "char *local_68;" primitive_type (pointer_declarator "*local_68" * identifier) ;) (declaration "ulong local_60;" type_identifier identifier ;) (declaration "char local_58;" primitive_type identifier ;) (declaration "undefined7 uStack_57;" type_identifier identifier ;) (declaration "long *local_48;" (sized_type_specifier "long" long) (pointer_declarator "*local_48" * identifier) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_38;" (sized_type_specifier "long" long) identifier ;) (declaration "long lStack_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "plVar1 = (long *)iostream_category();" (assignment_expression "plVar1 = (long *)iostream_category()" identifier = (cast_expression "(long *)iostream_category()" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "iostream_category()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (*(code **)(*plVar1 + 0x20) == ::(anonymous_namespace)::io_error_category::message_abi_cxx11_)\n  {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = '\0';\n                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */\n    std::string::_M_replace((string *)&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))((string *)&local_68,plVar1,1);\n  }" if (parenthesized_expression "(*(code **)(*plVar1 + 0x20) == ::(anonymous_namespace)" ( (binary_expression "*(code **)(*plVar1 + 0x20) == ::(anonymous_namespace" (pointer_expression "*(code **)(*plVar1 + 0x20)" * (cast_expression "(code **)(*plVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x20)" ( (binary_expression "*plVar1 + 0x20" (pointer_expression "*plVar1" * identifier) + number_literal) )))) == (ERROR "::(" : : () identifier) )) (ERROR "::" : :) (labeled_statement "io_error_category::message_abi_cxx11_)\n  {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = '\0';\n                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */\n    std::string::_M_replace((string *)&local_68,0,0,"iostream error",0xe);\n  }" statement_identifier : (ERROR ":message_abi_cxx11_)" : identifier )) (compound_statement "{\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = '\0';\n                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */\n    std::string::_M_replace((string *)&local_68,0,0,"iostream error",0xe);\n  }" { (expression_statement "local_68 = &local_58;" (assignment_expression "local_68 = &local_58" identifier = (pointer_expression "&local_58" & identifier)) ;) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" identifier = number_literal) ;) (expression_statement "local_58 = '\0';" (assignment_expression "local_58 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) comment (labeled_statement "std::string::_M_replace((string *)&local_68,0,0,"iostream error",0xe);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace((string *)&local_68,0,0,"iostream error",0xe);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace((string *)&local_68,0,0,"iostream error",0xe);" (call_expression "_M_replace((string *)&local_68,0,0,"iostream error",0xe)" identifier (argument_list "((string *)&local_68,0,0,"iostream error",0xe)" ( (cast_expression "(string *)&local_68" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_68" & identifier)) , number_literal , number_literal , (string_literal ""iostream error"" " string_content ") , number_literal ))) ;))) })) (else_clause "else {\n    (**(code **)(*plVar1 + 0x20))((string *)&local_68,plVar1,1);\n  }" else (compound_statement "{\n    (**(code **)(*plVar1 + 0x20))((string *)&local_68,plVar1,1);\n  }" { (expression_statement "(**(code **)(*plVar1 + 0x20))((string *)&local_68,plVar1,1);" (call_expression "(**(code **)(*plVar1 + 0x20))((string *)&local_68,plVar1,1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x20))" ( (pointer_expression "**(code **)(*plVar1 + 0x20)" * (pointer_expression "*(code **)(*plVar1 + 0x20)" * (cast_expression "(code **)(*plVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x20)" ( (binary_expression "*plVar1 + 0x20" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "((string *)&local_68,plVar1,1)" ( (cast_expression "(string *)&local_68" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_68" & identifier)) , identifier , number_literal ))) ;) }))) (expression_statement "local_88._M_dataplus._M_p = (pointer)&local_88.field_2;" (assignment_expression "local_88._M_dataplus._M_p = (pointer)&local_88.field_2" (field_expression "local_88._M_dataplus._M_p" (field_expression "local_88._M_dataplus" identifier . field_identifier) . field_identifier) = (binary_expression "(pointer)&local_88.field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "local_88.field_2" identifier . field_identifier))) ;) comment (ERROR "__cxx11::basic_string<char,_std::char_traits<char>,_std::" (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : :) (expression_statement "allocator<char>_>::_M_construct<char*>\n            (&local_88,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);" (binary_expression "allocator<char>_>::_M_construct<char*>\n            (&local_88,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1)" (binary_expression "allocator<char>_>::_M_construct<char" (binary_expression "allocator<char>_>::_M_construct" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (ERROR "::" : :) identifier) < identifier) (ERROR "*" *) > (parenthesized_expression "(&local_88,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1)" ( (comma_expression "&local_88,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1" (pointer_expression "&local_88" & identifier) , (comma_expression "*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*(long *)(param_1 + 8) + *(long *)param_1" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))))) ))) ;) (if_statement "if (0x7fffffffffffffff - local_88._M_string_length < 2) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */\n    __throw_length_error("basic_string::append");\n  }" if (parenthesized_expression "(0x7fffffffffffffff - local_88._M_string_length < 2)" ( (binary_expression "0x7fffffffffffffff - local_88._M_string_length < 2" (binary_expression "0x7fffffffffffffff - local_88._M_string_length" number_literal - (field_expression "local_88._M_string_length" identifier . field_identifier)) < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */\n    __throw_length_error("basic_string::append");\n  }" { comment comment (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) comment (labeled_statement "std::string::_M_append((string *)&local_88,": ",2);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append((string *)&local_88,": ",2);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((string *)&local_88,": ",2);" (call_expression "_M_append((string *)&local_88,": ",2)" identifier (argument_list "((string *)&local_88,": ",2)" ( (cast_expression "(string *)&local_88" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_88" & identifier)) , (string_literal "": "" " string_content ") , number_literal ))) ;))) (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p == &local_88.field_2) {\n    local_88.field_2._M_allocated_capacity = 0xf;\n  }" if (parenthesized_expression "((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p == &local_88.field_2)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p == &local_88.field_2)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9\n       *)local_88._M_dataplus._M_p == &local_88.field_2" (binary_expression "allocator<char>_>_9\n       *)local_88._M_dataplus._M_p" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n       *)local_88._M_dataplus._M_p" identifier * (ERROR ")" )) (field_expression "local_88._M_dataplus._M_p" (field_expression "local_88._M_dataplus" identifier . field_identifier) . field_identifier))) == (pointer_expression "&local_88.field_2" & (field_expression "local_88.field_2" identifier . field_identifier))) )) )) (compound_statement "{\n    local_88.field_2._M_allocated_capacity = 0xf;\n  }" { (expression_statement "local_88.field_2._M_allocated_capacity = 0xf;" (assignment_expression "local_88.field_2._M_allocated_capacity = 0xf" (field_expression "local_88.field_2._M_allocated_capacity" (field_expression "local_88.field_2" identifier . field_identifier) . field_identifier) = number_literal) ;) })) (if_statement "if (local_88.field_2._M_allocated_capacity < local_88._M_string_length + local_60) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if (local_88._M_string_length + local_60 <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)std::string::_M_replace\n                                 ((string *)&local_68,0,0,local_88._M_dataplus._M_p,\n                                  local_88._M_string_length);\n      goto LAB_002aff93;\n    }\n  }" if (parenthesized_expression "(local_88.field_2._M_allocated_capacity < local_88._M_string_length + local_60)" ( (binary_expression "local_88.field_2._M_allocated_capacity < local_88._M_string_length + local_60" (field_expression "local_88.field_2._M_allocated_capacity" (field_expression "local_88.field_2" identifier . field_identifier) . field_identifier) < (binary_expression "local_88._M_string_length + local_60" (field_expression "local_88._M_string_length" identifier . field_identifier) + identifier)) )) (compound_statement "{\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if (local_88._M_string_length + local_60 <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)std::string::_M_replace\n                                 ((string *)&local_68,0,0,local_88._M_dataplus._M_p,\n                                  local_88._M_string_length);\n      goto LAB_002aff93;\n    }\n  }" { (if_statement "if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" if (parenthesized_expression "(local_68 == &local_58)" ( (binary_expression "local_68 == &local_58" identifier == (pointer_expression "&local_58" & identifier)) )) (compound_statement "{\n      uVar3 = 0xf;\n    }" { (expression_statement "uVar3 = 0xf;" (assignment_expression "uVar3 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" else (compound_statement "{\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" { (expression_statement "uVar3 = CONCAT71(uStack_57,local_58);" (assignment_expression "uVar3 = CONCAT71(uStack_57,local_58)" identifier = (call_expression "CONCAT71(uStack_57,local_58)" identifier (argument_list "(uStack_57,local_58)" ( identifier , identifier )))) ;) }))) (if_statement "if (local_88._M_string_length + local_60 <= uVar3) {\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)std::string::_M_replace\n                                 ((string *)&local_68,0,0,local_88._M_dataplus._M_p,\n                                  local_88._M_string_length);\n      goto LAB_002aff93;\n    }" if (parenthesized_expression "(local_88._M_string_length + local_60 <= uVar3)" ( (binary_expression "local_88._M_string_length + local_60 <= uVar3" (binary_expression "local_88._M_string_length + local_60" (field_expression "local_88._M_string_length" identifier . field_identifier) + identifier) <= identifier) )) (compound_statement "{\n                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */\n      plVar2 = (long *)std::string::_M_replace\n                                 ((string *)&local_68,0,0,local_88._M_dataplus._M_p,\n                                  local_88._M_string_length);\n      goto LAB_002aff93;\n    }" { comment (ERROR "plVar2 = (long *)std::" (assignment_expression "plVar2 = (long *)std" identifier = (cast_expression "(long *)std" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "string::_M_replace\n                                 ((string *)&local_68,0,0,local_88._M_dataplus._M_p,\n                                  local_88._M_string_length);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace\n                                 ((string *)&local_68,0,0,local_88._M_dataplus._M_p,\n                                  local_88._M_string_length);" (call_expression "_M_replace\n                                 ((string *)&local_68,0,0,local_88._M_dataplus._M_p,\n                                  local_88._M_string_length)" identifier (argument_list "((string *)&local_68,0,0,local_88._M_dataplus._M_p,\n                                  local_88._M_string_length)" ( (cast_expression "(string *)&local_68" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_68" & identifier)) , number_literal , number_literal , (field_expression "local_88._M_dataplus._M_p" (field_expression "local_88._M_dataplus" identifier . field_identifier) . field_identifier) , (field_expression "local_88._M_string_length" identifier . field_identifier) ))) ;)) (goto_statement "goto LAB_002aff93;" goto statement_identifier ;) })) })) comment (ERROR "plVar2 = (long *)std::" (assignment_expression "plVar2 = (long *)std" identifier = (cast_expression "(long *)std" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "string::_M_append((string *)&local_88,local_68,local_60);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((string *)&local_88,local_68,local_60);" (call_expression "_M_append((string *)&local_88,local_68,local_60)" identifier (argument_list "((string *)&local_88,local_68,local_60)" ( (cast_expression "(string *)&local_88" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_88" & identifier)) , identifier , identifier ))) ;)) (labeled_statement "LAB_002aff93:\n  local_48 = &local_38;" statement_identifier : (expression_statement "local_48 = &local_38;" (assignment_expression "local_48 = &local_38" identifier = (pointer_expression "&local_38" & identifier)) ;)) (if_statement "if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" if (parenthesized_expression "((long *)*plVar2 == plVar2 + 2)" ( (binary_expression "(long *)*plVar2 == plVar2 + 2" (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier)) == (binary_expression "plVar2 + 2" identifier + number_literal)) )) (compound_statement "{\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }" { (expression_statement "local_38 = plVar2[2];" (assignment_expression "local_38 = plVar2[2]" identifier = (subscript_expression "plVar2[2]" identifier [ number_literal ])) ;) (expression_statement "lStack_30 = plVar2[3];" (assignment_expression "lStack_30 = plVar2[3]" identifier = (subscript_expression "plVar2[3]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" else (compound_statement "{\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" { (expression_statement "local_38 = plVar2[2];" (assignment_expression "local_38 = plVar2[2]" identifier = (subscript_expression "plVar2[2]" identifier [ number_literal ])) ;) (expression_statement "local_48 = (long *)*plVar2;" (assignment_expression "local_48 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) }))) (expression_statement "local_40 = plVar2[1];" (assignment_expression "local_40 = plVar2[1]" identifier = (subscript_expression "plVar2[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(plVar2 + 2) = 0;" (assignment_expression "*(undefined1 *)(plVar2 + 2) = 0" (pointer_expression "*(undefined1 *)(plVar2 + 2)" * (cast_expression "(undefined1 *)(plVar2 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 2)" ( (binary_expression "plVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*plVar2 = (long)(plVar2 + 2);" (assignment_expression "*plVar2 = (long)(plVar2 + 2)" (pointer_expression "*plVar2" * identifier) = (cast_expression "(long)(plVar2 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(plVar2 + 2)" ( (binary_expression "plVar2 + 2" identifier + number_literal) )))) ;) (expression_statement "plVar2[1] = 0;" (assignment_expression "plVar2[1] = 0" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = number_literal) ;) comment (labeled_statement "runtime_error::runtime_error((runtime_error *)this,(string *)&local_48);" statement_identifier : (ERROR ":" :) (expression_statement "runtime_error((runtime_error *)this,(string *)&local_48);" (call_expression "runtime_error((runtime_error *)this,(string *)&local_48)" identifier (argument_list "((runtime_error *)this,(string *)&local_48)" ( (cast_expression "(runtime_error *)this" ( (type_descriptor "runtime_error *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(string *)&local_48" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_48" & identifier)) ))) ;)) (if_statement "if (local_48 != &local_38) {\n    operator_delete(local_48);\n  }" if (parenthesized_expression "(local_48 != &local_38)" ( (binary_expression "local_48 != &local_38" identifier != (pointer_expression "&local_38" & identifier)) )) (compound_statement "{\n    operator_delete(local_48);\n  }" { (expression_statement "operator_delete(local_48);" (call_expression "operator_delete(local_48)" identifier (argument_list "(local_48)" ( identifier ))) ;) })) (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p != &local_88.field_2) {\n    operator_delete(local_88._M_dataplus._M_p);\n  }" if (parenthesized_expression "((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p != &local_88.field_2)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_88._M_dataplus._M_p != &local_88.field_2)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9\n       *)local_88._M_dataplus._M_p != &local_88.field_2" (binary_expression "allocator<char>_>_9\n       *)local_88._M_dataplus._M_p" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n       *)local_88._M_dataplus._M_p" identifier * (ERROR ")" )) (field_expression "local_88._M_dataplus._M_p" (field_expression "local_88._M_dataplus" identifier . field_identifier) . field_identifier))) != (pointer_expression "&local_88.field_2" & (field_expression "local_88.field_2" identifier . field_identifier))) )) )) (compound_statement "{\n    operator_delete(local_88._M_dataplus._M_p);\n  }" { (expression_statement "operator_delete(local_88._M_dataplus._M_p);" (call_expression "operator_delete(local_88._M_dataplus._M_p)" identifier (argument_list "(local_88._M_dataplus._M_p)" ( (field_expression "local_88._M_dataplus._M_p" (field_expression "local_88._M_dataplus" identifier . field_identifier) . field_identifier) ))) ;) })) (if_statement "if (local_68 != &local_58) {\n    operator_delete(local_68);\n  }" if (parenthesized_expression "(local_68 != &local_58)" ( (binary_expression "local_68 != &local_58" identifier != (pointer_expression "&local_58" & identifier)) )) (compound_statement "{\n    operator_delete(local_68);\n  }" { (expression_statement "operator_delete(local_68);" (call_expression "operator_delete(local_68)" identifier (argument_list "(local_68)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(this + 0x10) = 1;" (assignment_expression "*(undefined4 *)(this + 0x10) = 1" (pointer_expression "*(undefined4 *)(this + 0x10)" * (cast_expression "(undefined4 *)(this + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(long **)(this + 0x18) = plVar1;" (assignment_expression "*(long **)(this + 0x18) = plVar1" (pointer_expression "*(long **)(this + 0x18)" * (cast_expression "(long **)(this + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined ***)this = &PTR__failure_003ba7a0;" (assignment_expression "*(undefined ***)this = &PTR__failure_003ba7a0" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__failure_003ba7a0" & identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002afe90(undefined8 *param_1,long *param_2)\n\n{\n  long *plVar1;\n  long *plVar2;\n  ulong uVar3;\n  ulong *local_88;\n  long local_80;\n  ulong local_78 [2];\n  undefined1 *local_68;\n  long local_60;\n  undefined1 local_58;\n  undefined7 uStack_57;\n  long *local_48;\n  long local_40;\n  long local_38;\n  long lStack_30;\n  \n  plVar1 = (long *)FUN_002afe10();\n  if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    \n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }\n  local_88 = local_78;\n                    \n  FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);\n  if (0x7fffffffffffffffU - local_80 < 2) {\n                    \n                    \n    FUN_002b5650("basic_string::append");\n  }\n                    \n  FUN_0027efa0(&local_88,&DAT_003244cd,2);\n  if (local_88 == local_78) {\n    local_78[0] = 0xf;\n  }\n  if (local_78[0] < (ulong)(local_80 + local_60)) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }\n                    \n  plVar2 = (long *)FUN_0027efa0(&local_88);\nLAB_002aff93:\n  local_48 = &local_38;\n  if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }\n  local_40 = plVar2[1];\n  *(undefined1 *)(plVar2 + 2) = 0;\n  *plVar2 = (long)(plVar2 + 2);\n  plVar2[1] = 0;\n                    \n  FUN_002f3b30(param_1,&local_48);\n  if (local_48 != &local_38) {\n    FUN_00276d20();\n  }\n  if (local_88 != local_78) {\n    FUN_00276d20();\n  }\n  if (local_68 != &local_58) {\n    FUN_00276d20();\n  }\n  *(undefined4 *)(param_1 + 2) = 1;\n  param_1[3] = plVar1;\n  *param_1 = &PTR_FUN_003ba7a0;\n  return;\n}\n\n" (function_definition "void FUN_002afe90(undefined8 *param_1,long *param_2)\n\n{\n  long *plVar1;\n  long *plVar2;\n  ulong uVar3;\n  ulong *local_88;\n  long local_80;\n  ulong local_78 [2];\n  undefined1 *local_68;\n  long local_60;\n  undefined1 local_58;\n  undefined7 uStack_57;\n  long *local_48;\n  long local_40;\n  long local_38;\n  long lStack_30;\n  \n  plVar1 = (long *)FUN_002afe10();\n  if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    \n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }\n  local_88 = local_78;\n                    \n  FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);\n  if (0x7fffffffffffffffU - local_80 < 2) {\n                    \n                    \n    FUN_002b5650("basic_string::append");\n  }\n                    \n  FUN_0027efa0(&local_88,&DAT_003244cd,2);\n  if (local_88 == local_78) {\n    local_78[0] = 0xf;\n  }\n  if (local_78[0] < (ulong)(local_80 + local_60)) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }\n                    \n  plVar2 = (long *)FUN_0027efa0(&local_88);\nLAB_002aff93:\n  local_48 = &local_38;\n  if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }\n  local_40 = plVar2[1];\n  *(undefined1 *)(plVar2 + 2) = 0;\n  *plVar2 = (long)(plVar2 + 2);\n  plVar2[1] = 0;\n                    \n  FUN_002f3b30(param_1,&local_48);\n  if (local_48 != &local_38) {\n    FUN_00276d20();\n  }\n  if (local_88 != local_78) {\n    FUN_00276d20();\n  }\n  if (local_68 != &local_58) {\n    FUN_00276d20();\n  }\n  *(undefined4 *)(param_1 + 2) = 1;\n  param_1[3] = plVar1;\n  *param_1 = &PTR_FUN_003ba7a0;\n  return;\n}" primitive_type (function_declarator "FUN_002afe90(undefined8 *param_1,long *param_2)" identifier (parameter_list "(undefined8 *param_1,long *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  ulong uVar3;\n  ulong *local_88;\n  long local_80;\n  ulong local_78 [2];\n  undefined1 *local_68;\n  long local_60;\n  undefined1 local_58;\n  undefined7 uStack_57;\n  long *local_48;\n  long local_40;\n  long local_38;\n  long lStack_30;\n  \n  plVar1 = (long *)FUN_002afe10();\n  if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    \n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }\n  local_88 = local_78;\n                    \n  FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);\n  if (0x7fffffffffffffffU - local_80 < 2) {\n                    \n                    \n    FUN_002b5650("basic_string::append");\n  }\n                    \n  FUN_0027efa0(&local_88,&DAT_003244cd,2);\n  if (local_88 == local_78) {\n    local_78[0] = 0xf;\n  }\n  if (local_78[0] < (ulong)(local_80 + local_60)) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }\n                    \n  plVar2 = (long *)FUN_0027efa0(&local_88);\nLAB_002aff93:\n  local_48 = &local_38;\n  if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }\n  local_40 = plVar2[1];\n  *(undefined1 *)(plVar2 + 2) = 0;\n  *plVar2 = (long)(plVar2 + 2);\n  plVar2[1] = 0;\n                    \n  FUN_002f3b30(param_1,&local_48);\n  if (local_48 != &local_38) {\n    FUN_00276d20();\n  }\n  if (local_88 != local_78) {\n    FUN_00276d20();\n  }\n  if (local_68 != &local_58) {\n    FUN_00276d20();\n  }\n  *(undefined4 *)(param_1 + 2) = 1;\n  param_1[3] = plVar1;\n  *param_1 = &PTR_FUN_003ba7a0;\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "ulong *local_88;" type_identifier (pointer_declarator "*local_88" * identifier) ;) (declaration "long local_80;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong local_78 [2];" type_identifier (array_declarator "local_78 [2]" identifier [ number_literal ]) ;) (declaration "undefined1 *local_68;" type_identifier (pointer_declarator "*local_68" * identifier) ;) (declaration "long local_60;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_58;" type_identifier identifier ;) (declaration "undefined7 uStack_57;" type_identifier identifier ;) (declaration "long *local_48;" (sized_type_specifier "long" long) (pointer_declarator "*local_48" * identifier) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_38;" (sized_type_specifier "long" long) identifier ;) (declaration "long lStack_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "plVar1 = (long *)FUN_002afe10();" (assignment_expression "plVar1 = (long *)FUN_002afe10()" identifier = (cast_expression "(long *)FUN_002afe10()" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002afe10()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    \n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }" if (parenthesized_expression "(*(code **)(*plVar1 + 0x20) == FUN_002afda0)" ( (binary_expression "*(code **)(*plVar1 + 0x20) == FUN_002afda0" (pointer_expression "*(code **)(*plVar1 + 0x20)" * (cast_expression "(code **)(*plVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x20)" ( (binary_expression "*plVar1 + 0x20" (pointer_expression "*plVar1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    \n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }" { (expression_statement "local_68 = &local_58;" (assignment_expression "local_68 = &local_58" identifier = (pointer_expression "&local_58" & identifier)) ;) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" identifier = number_literal) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "FUN_0027e650(&local_68,0,0,"iostream error",0xe);" (call_expression "FUN_0027e650(&local_68,0,0,"iostream error",0xe)" identifier (argument_list "(&local_68,0,0,"iostream error",0xe)" ( (pointer_expression "&local_68" & identifier) , number_literal , number_literal , (string_literal ""iostream error"" " string_content ") , number_literal ))) ;) }) (else_clause "else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }" else (compound_statement "{\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }" { (expression_statement "(**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);" (call_expression "(**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x20))" ( (pointer_expression "**(code **)(*plVar1 + 0x20)" * (pointer_expression "*(code **)(*plVar1 + 0x20)" * (cast_expression "(code **)(*plVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x20)" ( (binary_expression "*plVar1 + 0x20" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(&local_68,plVar1,1)" ( (pointer_expression "&local_68" & identifier) , identifier , number_literal ))) ;) }))) (expression_statement "local_88 = local_78;" (assignment_expression "local_88 = local_78" identifier = identifier) ;) (expression_statement "FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);" (call_expression "FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2)" identifier (argument_list "(&local_88,*param_2,param_2[1] + *param_2)" ( (pointer_expression "&local_88" & identifier) , (pointer_expression "*param_2" * identifier) , (binary_expression "param_2[1] + *param_2" (subscript_expression "param_2[1]" identifier [ number_literal ]) + (pointer_expression "*param_2" * identifier)) ))) ;) (if_statement "if (0x7fffffffffffffffU - local_80 < 2) {\n                    \n                    \n    FUN_002b5650("basic_string::append");\n  }" if (parenthesized_expression "(0x7fffffffffffffffU - local_80 < 2)" ( (binary_expression "0x7fffffffffffffffU - local_80 < 2" (binary_expression "0x7fffffffffffffffU - local_80" number_literal - identifier) < number_literal) )) (compound_statement "{\n                    \n                    \n    FUN_002b5650("basic_string::append");\n  }" { (expression_statement "FUN_002b5650("basic_string::append");" (call_expression "FUN_002b5650("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_0027efa0(&local_88,&DAT_003244cd,2);" (call_expression "FUN_0027efa0(&local_88,&DAT_003244cd,2)" identifier (argument_list "(&local_88,&DAT_003244cd,2)" ( (pointer_expression "&local_88" & identifier) , (pointer_expression "&DAT_003244cd" & identifier) , number_literal ))) ;) (if_statement "if (local_88 == local_78) {\n    local_78[0] = 0xf;\n  }" if (parenthesized_expression "(local_88 == local_78)" ( (binary_expression "local_88 == local_78" identifier == identifier) )) (compound_statement "{\n    local_78[0] = 0xf;\n  }" { (expression_statement "local_78[0] = 0xf;" (assignment_expression "local_78[0] = 0xf" (subscript_expression "local_78[0]" identifier [ number_literal ]) = number_literal) ;) })) (if_statement "if (local_78[0] < (ulong)(local_80 + local_60)) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }" if (parenthesized_expression "(local_78[0] < (ulong)(local_80 + local_60))" ( (binary_expression "local_78[0] < (ulong)(local_80 + local_60)" (subscript_expression "local_78[0]" identifier [ number_literal ]) < (call_expression "(ulong)(local_80 + local_60)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(local_80 + local_60)" ( (binary_expression "local_80 + local_60" identifier + identifier) )))) )) (compound_statement "{\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }" { (if_statement "if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" if (parenthesized_expression "(local_68 == &local_58)" ( (binary_expression "local_68 == &local_58" identifier == (pointer_expression "&local_58" & identifier)) )) (compound_statement "{\n      uVar3 = 0xf;\n    }" { (expression_statement "uVar3 = 0xf;" (assignment_expression "uVar3 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" else (compound_statement "{\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" { (expression_statement "uVar3 = CONCAT71(uStack_57,local_58);" (assignment_expression "uVar3 = CONCAT71(uStack_57,local_58)" identifier = (call_expression "CONCAT71(uStack_57,local_58)" identifier (argument_list "(uStack_57,local_58)" ( identifier , identifier )))) ;) }))) (if_statement "if ((ulong)(local_80 + local_60) <= uVar3) {\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }" if (parenthesized_expression "((ulong)(local_80 + local_60) <= uVar3)" ( (binary_expression "(ulong)(local_80 + local_60) <= uVar3" (call_expression "(ulong)(local_80 + local_60)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(local_80 + local_60)" ( (binary_expression "local_80 + local_60" identifier + identifier) ))) <= identifier) )) (compound_statement "{\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }" { (expression_statement "plVar2 = (long *)FUN_0027e650(&local_68,0,0);" (assignment_expression "plVar2 = (long *)FUN_0027e650(&local_68,0,0)" identifier = (cast_expression "(long *)FUN_0027e650(&local_68,0,0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0027e650(&local_68,0,0)" identifier (argument_list "(&local_68,0,0)" ( (pointer_expression "&local_68" & identifier) , number_literal , number_literal ))))) ;) (goto_statement "goto LAB_002aff93;" goto statement_identifier ;) })) })) (expression_statement "plVar2 = (long *)FUN_0027efa0(&local_88);" (assignment_expression "plVar2 = (long *)FUN_0027efa0(&local_88)" identifier = (cast_expression "(long *)FUN_0027efa0(&local_88)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0027efa0(&local_88)" identifier (argument_list "(&local_88)" ( (pointer_expression "&local_88" & identifier) ))))) ;) (labeled_statement "LAB_002aff93:\n  local_48 = &local_38;" statement_identifier : (expression_statement "local_48 = &local_38;" (assignment_expression "local_48 = &local_38" identifier = (pointer_expression "&local_38" & identifier)) ;)) (if_statement "if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" if (parenthesized_expression "((long *)*plVar2 == plVar2 + 2)" ( (binary_expression "(long *)*plVar2 == plVar2 + 2" (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier)) == (binary_expression "plVar2 + 2" identifier + number_literal)) )) (compound_statement "{\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }" { (expression_statement "local_38 = plVar2[2];" (assignment_expression "local_38 = plVar2[2]" identifier = (subscript_expression "plVar2[2]" identifier [ number_literal ])) ;) (expression_statement "lStack_30 = plVar2[3];" (assignment_expression "lStack_30 = plVar2[3]" identifier = (subscript_expression "plVar2[3]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" else (compound_statement "{\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" { (expression_statement "local_38 = plVar2[2];" (assignment_expression "local_38 = plVar2[2]" identifier = (subscript_expression "plVar2[2]" identifier [ number_literal ])) ;) (expression_statement "local_48 = (long *)*plVar2;" (assignment_expression "local_48 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) }))) (expression_statement "local_40 = plVar2[1];" (assignment_expression "local_40 = plVar2[1]" identifier = (subscript_expression "plVar2[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(plVar2 + 2) = 0;" (assignment_expression "*(undefined1 *)(plVar2 + 2) = 0" (pointer_expression "*(undefined1 *)(plVar2 + 2)" * (cast_expression "(undefined1 *)(plVar2 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 2)" ( (binary_expression "plVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*plVar2 = (long)(plVar2 + 2);" (assignment_expression "*plVar2 = (long)(plVar2 + 2)" (pointer_expression "*plVar2" * identifier) = (cast_expression "(long)(plVar2 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(plVar2 + 2)" ( (binary_expression "plVar2 + 2" identifier + number_literal) )))) ;) (expression_statement "plVar2[1] = 0;" (assignment_expression "plVar2[1] = 0" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_002f3b30(param_1,&local_48);" (call_expression "FUN_002f3b30(param_1,&local_48)" identifier (argument_list "(param_1,&local_48)" ( identifier , (pointer_expression "&local_48" & identifier) ))) ;) (if_statement "if (local_48 != &local_38) {\n    FUN_00276d20();\n  }" if (parenthesized_expression "(local_48 != &local_38)" ( (binary_expression "local_48 != &local_38" identifier != (pointer_expression "&local_38" & identifier)) )) (compound_statement "{\n    FUN_00276d20();\n  }" { (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_88 != local_78) {\n    FUN_00276d20();\n  }" if (parenthesized_expression "(local_88 != local_78)" ( (binary_expression "local_88 != local_78" identifier != identifier) )) (compound_statement "{\n    FUN_00276d20();\n  }" { (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_68 != &local_58) {\n    FUN_00276d20();\n  }" if (parenthesized_expression "(local_68 != &local_58)" ( (binary_expression "local_68 != &local_58" identifier != (pointer_expression "&local_58" & identifier)) )) (compound_statement "{\n    FUN_00276d20();\n  }" { (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 2) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 2) = 1" (pointer_expression "*(undefined4 *)(param_1 + 2)" * (cast_expression "(undefined4 *)(param_1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[3] = plVar1;" (assignment_expression "param_1[3] = plVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = &PTR_FUN_003ba7a0;" (assignment_expression "*param_1 = &PTR_FUN_003ba7a0" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003ba7a0" & identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , (string_literal " string_content ") , LIT ))) ;) }) (else_clause else (compound_statement { (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 (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( (pointer_expression & IDENT) , IDENT , LIT ))) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression * IDENT) , (binary_expression (subscript_expression IDENT [ LIT ]) + (pointer_expression * IDENT)) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) )))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) ))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT ))))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_002afe90(undefined8 *param_1,long *param_2)\n\n{\n  long *plVar1;\n  long *plVar2;\n  ulong uVar3;\n  ulong *local_88;\n  long local_80;\n  ulong local_78 [2];\n  undefined1 *local_68;\n  long local_60;\n  undefined1 local_58;\n  undefined7 uStack_57;\n  long *local_48;\n  long local_40;\n  long local_38;\n  long lStack_30;\n  \n  plVar1 = (long *)FUN_002afe10();\n  if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    \n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }\n  local_88 = local_78;\n                    \n  FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);\n  if (0x7fffffffffffffffU - local_80 < 2) {\n                    \n                    \n    FUN_002b5650("basic_string::append");\n  }\n                    \n  FUN_0027efa0(&local_88,&DAT_003244cd,2);\n  if (local_88 == local_78) {\n    local_78[0] = 0xf;\n  }\n  if (local_78[0] < (ulong)(local_80 + local_60)) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }\n                    \n  plVar2 = (long *)FUN_0027efa0(&local_88);\nLAB_002aff93:\n  local_48 = &local_38;\n  if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }\n  local_40 = plVar2[1];\n  *(undefined1 *)(plVar2 + 2) = 0;\n  *plVar2 = (long)(plVar2 + 2);\n  plVar2[1] = 0;\n                    \n  FUN_002f3b30(param_1,&local_48);\n  if (local_48 != &local_38) {\n    FUN_00276d20();\n  }\n  if (local_88 != local_78) {\n    FUN_00276d20();\n  }\n  if (local_68 != &local_58) {\n    FUN_00276d20();\n  }\n  *(undefined4 *)(param_1 + 2) = 1;\n  param_1[3] = plVar1;\n  *param_1 = &PTR_FUN_003ba7a0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002afe90(undefined8 *param_1,long *param_2)" (identifier "FUN_002afe90") (parameter_list "(undefined8 *param_1,long *param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  ulong uVar3;\n  ulong *local_88;\n  long local_80;\n  ulong local_78 [2];\n  undefined1 *local_68;\n  long local_60;\n  undefined1 local_58;\n  undefined7 uStack_57;\n  long *local_48;\n  long local_40;\n  long local_38;\n  long lStack_30;\n  \n  plVar1 = (long *)FUN_002afe10();\n  if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    \n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }\n  local_88 = local_78;\n                    \n  FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);\n  if (0x7fffffffffffffffU - local_80 < 2) {\n                    \n                    \n    FUN_002b5650("basic_string::append");\n  }\n                    \n  FUN_0027efa0(&local_88,&DAT_003244cd,2);\n  if (local_88 == local_78) {\n    local_78[0] = 0xf;\n  }\n  if (local_78[0] < (ulong)(local_80 + local_60)) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }\n                    \n  plVar2 = (long *)FUN_0027efa0(&local_88);\nLAB_002aff93:\n  local_48 = &local_38;\n  if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }\n  local_40 = plVar2[1];\n  *(undefined1 *)(plVar2 + 2) = 0;\n  *plVar2 = (long)(plVar2 + 2);\n  plVar2[1] = 0;\n                    \n  FUN_002f3b30(param_1,&local_48);\n  if (local_48 != &local_38) {\n    FUN_00276d20();\n  }\n  if (local_88 != local_78) {\n    FUN_00276d20();\n  }\n  if (local_68 != &local_58) {\n    FUN_00276d20();\n  }\n  *(undefined4 *)(param_1 + 2) = 1;\n  param_1[3] = plVar1;\n  *param_1 = &PTR_FUN_003ba7a0;\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "ulong *local_88;" (type_identifier "ulong") (pointer_declarator "*local_88" (* "*") (identifier "local_88")) (; ";")) (declaration "long local_80;" (sized_type_specifier "long" (long "long")) (identifier "local_80") (; ";")) (declaration "ulong local_78 [2];" (type_identifier "ulong") (array_declarator "local_78 [2]" (identifier "local_78") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined1 *local_68;" (type_identifier "undefined1") (pointer_declarator "*local_68" (* "*") (identifier "local_68")) (; ";")) (declaration "long local_60;" (sized_type_specifier "long" (long "long")) (identifier "local_60") (; ";")) (declaration "undefined1 local_58;" (type_identifier "undefined1") (identifier "local_58") (; ";")) (declaration "undefined7 uStack_57;" (type_identifier "undefined7") (identifier "uStack_57") (; ";")) (declaration "long *local_48;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*local_48" (* "*") (identifier "local_48")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (declaration "long local_38;" (sized_type_specifier "long" (long "long")) (identifier "local_38") (; ";")) (declaration "long lStack_30;" (sized_type_specifier "long" (long "long")) (identifier "lStack_30") (; ";")) (expression_statement "plVar1 = (long *)FUN_002afe10();" (assignment_expression "plVar1 = (long *)FUN_002afe10()" (identifier "plVar1") (= "=") (cast_expression "(long *)FUN_002afe10()" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002afe10()" (identifier "FUN_002afe10") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    \n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }\n  else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }" (if "if") (parenthesized_expression "(*(code **)(*plVar1 + 0x20) == FUN_002afda0)" (( "(") (binary_expression "*(code **)(*plVar1 + 0x20) == FUN_002afda0" (pointer_expression "*(code **)(*plVar1 + 0x20)" (* "*") (cast_expression "(code **)(*plVar1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x20)" (( "(") (binary_expression "*plVar1 + 0x20" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x20")) () ")")))) (== "==") (identifier "FUN_002afda0")) () ")")) (compound_statement "{\n    local_68 = &local_58;\n    local_60 = 0;\n    local_58 = 0;\n                    \n    FUN_0027e650(&local_68,0,0,"iostream error",0xe);\n  }" ({ "{") (expression_statement "local_68 = &local_58;" (assignment_expression "local_68 = &local_58" (identifier "local_68") (= "=") (pointer_expression "&local_58" (& "&") (identifier "local_58"))) (; ";")) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" (identifier "local_60") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" (identifier "local_58") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0027e650(&local_68,0,0,"iostream error",0xe);" (call_expression "FUN_0027e650(&local_68,0,0,"iostream error",0xe)" (identifier "FUN_0027e650") (argument_list "(&local_68,0,0,"iostream error",0xe)" (( "(") (pointer_expression "&local_68" (& "&") (identifier "local_68")) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (string_literal ""iostream error"" (" """) (string_content "iostream error") (" """)) (, ",") (number_literal "0xe") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }" (else "else") (compound_statement "{\n    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);\n  }" ({ "{") (expression_statement "(**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);" (call_expression "(**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x20))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x20)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x20)" (* "*") (cast_expression "(code **)(*plVar1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x20)" (( "(") (binary_expression "*plVar1 + 0x20" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(&local_68,plVar1,1)" (( "(") (pointer_expression "&local_68" (& "&") (identifier "local_68")) (, ",") (identifier "plVar1") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}")))) (expression_statement "local_88 = local_78;" (assignment_expression "local_88 = local_78" (identifier "local_88") (= "=") (identifier "local_78")) (; ";")) (expression_statement "FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);" (call_expression "FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2)" (identifier "FUN_0015d030") (argument_list "(&local_88,*param_2,param_2[1] + *param_2)" (( "(") (pointer_expression "&local_88" (& "&") (identifier "local_88")) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (binary_expression "param_2[1] + *param_2" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (+ "+") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")"))) (; ";")) (if_statement "if (0x7fffffffffffffffU - local_80 < 2) {\n                    \n                    \n    FUN_002b5650("basic_string::append");\n  }" (if "if") (parenthesized_expression "(0x7fffffffffffffffU - local_80 < 2)" (( "(") (binary_expression "0x7fffffffffffffffU - local_80 < 2" (binary_expression "0x7fffffffffffffffU - local_80" (number_literal "0x7fffffffffffffffU") (- "-") (identifier "local_80")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n                    \n                    \n    FUN_002b5650("basic_string::append");\n  }" ({ "{") (expression_statement "FUN_002b5650("basic_string::append");" (call_expression "FUN_002b5650("basic_string::append")" (identifier "FUN_002b5650") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0027efa0(&local_88,&DAT_003244cd,2);" (call_expression "FUN_0027efa0(&local_88,&DAT_003244cd,2)" (identifier "FUN_0027efa0") (argument_list "(&local_88,&DAT_003244cd,2)" (( "(") (pointer_expression "&local_88" (& "&") (identifier "local_88")) (, ",") (pointer_expression "&DAT_003244cd" (& "&") (identifier "DAT_003244cd")) (, ",") (number_literal "2") () ")"))) (; ";")) (if_statement "if (local_88 == local_78) {\n    local_78[0] = 0xf;\n  }" (if "if") (parenthesized_expression "(local_88 == local_78)" (( "(") (binary_expression "local_88 == local_78" (identifier "local_88") (== "==") (identifier "local_78")) () ")")) (compound_statement "{\n    local_78[0] = 0xf;\n  }" ({ "{") (expression_statement "local_78[0] = 0xf;" (assignment_expression "local_78[0] = 0xf" (subscript_expression "local_78[0]" (identifier "local_78") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0xf")) (; ";")) (} "}"))) (if_statement "if (local_78[0] < (ulong)(local_80 + local_60)) {\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }" (if "if") (parenthesized_expression "(local_78[0] < (ulong)(local_80 + local_60))" (( "(") (binary_expression "local_78[0] < (ulong)(local_80 + local_60)" (subscript_expression "local_78[0]" (identifier "local_78") ([ "[") (number_literal "0") (] "]")) (< "<") (call_expression "(ulong)(local_80 + local_60)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(local_80 + local_60)" (( "(") (binary_expression "local_80 + local_60" (identifier "local_80") (+ "+") (identifier "local_60")) () ")")))) () ")")) (compound_statement "{\n    if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }\n    if ((ulong)(local_80 + local_60) <= uVar3) {\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }\n  }" ({ "{") (if_statement "if (local_68 == &local_58) {\n      uVar3 = 0xf;\n    }\n    else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" (if "if") (parenthesized_expression "(local_68 == &local_58)" (( "(") (binary_expression "local_68 == &local_58" (identifier "local_68") (== "==") (pointer_expression "&local_58" (& "&") (identifier "local_58"))) () ")")) (compound_statement "{\n      uVar3 = 0xf;\n    }" ({ "{") (expression_statement "uVar3 = 0xf;" (assignment_expression "uVar3 = 0xf" (identifier "uVar3") (= "=") (number_literal "0xf")) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" (else "else") (compound_statement "{\n      uVar3 = CONCAT71(uStack_57,local_58);\n    }" ({ "{") (expression_statement "uVar3 = CONCAT71(uStack_57,local_58);" (assignment_expression "uVar3 = CONCAT71(uStack_57,local_58)" (identifier "uVar3") (= "=") (call_expression "CONCAT71(uStack_57,local_58)" (identifier "CONCAT71") (argument_list "(uStack_57,local_58)" (( "(") (identifier "uStack_57") (, ",") (identifier "local_58") () ")")))) (; ";")) (} "}")))) (if_statement "if ((ulong)(local_80 + local_60) <= uVar3) {\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }" (if "if") (parenthesized_expression "((ulong)(local_80 + local_60) <= uVar3)" (( "(") (binary_expression "(ulong)(local_80 + local_60) <= uVar3" (call_expression "(ulong)(local_80 + local_60)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(local_80 + local_60)" (( "(") (binary_expression "local_80 + local_60" (identifier "local_80") (+ "+") (identifier "local_60")) () ")"))) (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\n                    \n      plVar2 = (long *)FUN_0027e650(&local_68,0,0);\n      goto LAB_002aff93;\n    }" ({ "{") (expression_statement "plVar2 = (long *)FUN_0027e650(&local_68,0,0);" (assignment_expression "plVar2 = (long *)FUN_0027e650(&local_68,0,0)" (identifier "plVar2") (= "=") (cast_expression "(long *)FUN_0027e650(&local_68,0,0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0027e650(&local_68,0,0)" (identifier "FUN_0027e650") (argument_list "(&local_68,0,0)" (( "(") (pointer_expression "&local_68" (& "&") (identifier "local_68")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))))) (; ";")) (goto_statement "goto LAB_002aff93;" (goto "goto") (statement_identifier "LAB_002aff93") (; ";")) (} "}"))) (} "}"))) (expression_statement "plVar2 = (long *)FUN_0027efa0(&local_88);" (assignment_expression "plVar2 = (long *)FUN_0027efa0(&local_88)" (identifier "plVar2") (= "=") (cast_expression "(long *)FUN_0027efa0(&local_88)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0027efa0(&local_88)" (identifier "FUN_0027efa0") (argument_list "(&local_88)" (( "(") (pointer_expression "&local_88" (& "&") (identifier "local_88")) () ")"))))) (; ";")) (labeled_statement "LAB_002aff93:\n  local_48 = &local_38;" (statement_identifier "LAB_002aff93") (: ":") (expression_statement "local_48 = &local_38;" (assignment_expression "local_48 = &local_38" (identifier "local_48") (= "=") (pointer_expression "&local_38" (& "&") (identifier "local_38"))) (; ";"))) (if_statement "if ((long *)*plVar2 == plVar2 + 2) {\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }\n  else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" (if "if") (parenthesized_expression "((long *)*plVar2 == plVar2 + 2)" (( "(") (binary_expression "(long *)*plVar2 == plVar2 + 2" (cast_expression "(long *)*plVar2" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar2" (* "*") (identifier "plVar2"))) (== "==") (binary_expression "plVar2 + 2" (identifier "plVar2") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n    local_38 = plVar2[2];\n    lStack_30 = plVar2[3];\n  }" ({ "{") (expression_statement "local_38 = plVar2[2];" (assignment_expression "local_38 = plVar2[2]" (identifier "local_38") (= "=") (subscript_expression "plVar2[2]" (identifier "plVar2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "lStack_30 = plVar2[3];" (assignment_expression "lStack_30 = plVar2[3]" (identifier "lStack_30") (= "=") (subscript_expression "plVar2[3]" (identifier "plVar2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" (else "else") (compound_statement "{\n    local_38 = plVar2[2];\n    local_48 = (long *)*plVar2;\n  }" ({ "{") (expression_statement "local_38 = plVar2[2];" (assignment_expression "local_38 = plVar2[2]" (identifier "local_38") (= "=") (subscript_expression "plVar2[2]" (identifier "plVar2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "local_48 = (long *)*plVar2;" (assignment_expression "local_48 = (long *)*plVar2" (identifier "local_48") (= "=") (cast_expression "(long *)*plVar2" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar2" (* "*") (identifier "plVar2")))) (; ";")) (} "}")))) (expression_statement "local_40 = plVar2[1];" (assignment_expression "local_40 = plVar2[1]" (identifier "local_40") (= "=") (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined1 *)(plVar2 + 2) = 0;" (assignment_expression "*(undefined1 *)(plVar2 + 2) = 0" (pointer_expression "*(undefined1 *)(plVar2 + 2)" (* "*") (cast_expression "(undefined1 *)(plVar2 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 2)" (( "(") (binary_expression "plVar2 + 2" (identifier "plVar2") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*plVar2 = (long)(plVar2 + 2);" (assignment_expression "*plVar2 = (long)(plVar2 + 2)" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (= "=") (cast_expression "(long)(plVar2 + 2)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(plVar2 + 2)" (( "(") (binary_expression "plVar2 + 2" (identifier "plVar2") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "plVar2[1] = 0;" (assignment_expression "plVar2[1] = 0" (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_002f3b30(param_1,&local_48);" (call_expression "FUN_002f3b30(param_1,&local_48)" (identifier "FUN_002f3b30") (argument_list "(param_1,&local_48)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")"))) (; ";")) (if_statement "if (local_48 != &local_38) {\n    FUN_00276d20();\n  }" (if "if") (parenthesized_expression "(local_48 != &local_38)" (( "(") (binary_expression "local_48 != &local_38" (identifier "local_48") (!= "!=") (pointer_expression "&local_38" (& "&") (identifier "local_38"))) () ")")) (compound_statement "{\n    FUN_00276d20();\n  }" ({ "{") (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" (identifier "FUN_00276d20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_88 != local_78) {\n    FUN_00276d20();\n  }" (if "if") (parenthesized_expression "(local_88 != local_78)" (( "(") (binary_expression "local_88 != local_78" (identifier "local_88") (!= "!=") (identifier "local_78")) () ")")) (compound_statement "{\n    FUN_00276d20();\n  }" ({ "{") (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" (identifier "FUN_00276d20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_68 != &local_58) {\n    FUN_00276d20();\n  }" (if "if") (parenthesized_expression "(local_68 != &local_58)" (( "(") (binary_expression "local_68 != &local_58" (identifier "local_68") (!= "!=") (pointer_expression "&local_58" (& "&") (identifier "local_58"))) () ")")) (compound_statement "{\n    FUN_00276d20();\n  }" ({ "{") (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" (identifier "FUN_00276d20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 2) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 2) = 1" (pointer_expression "*(undefined4 *)(param_1 + 2)" (* "*") (cast_expression "(undefined4 *)(param_1 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_1[3] = plVar1;" (assignment_expression "param_1[3] = plVar1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "plVar1")) (; ";")) (expression_statement "*param_1 = &PTR_FUN_003ba7a0;" (assignment_expression "*param_1 = &PTR_FUN_003ba7a0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_003ba7a0" (& "&") (identifier "PTR_FUN_003ba7a0"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::ios_base::failure[abi:cxx11]::failure(std::string const&) */

void __thiscall std::ios_base::function_1[abi:cxx11]::function_1(type_1 *var_21,type_2 *var_9)

{
  long *plVar1;
  long *var_17;
  type_3 var_16;
  basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3> var_4;
  char *var_14;
  type_3 var_13;
  char local_58;
  type_4 uStack_57;
  long *var_19;
  long local_40;
  long local_38;
  long lStack_30;
  
  plVar1 = (long *)var_5();
  if (*(type_5 **)(*plVar1 + 0x20) == ::(var_6)::io_error_category::message_abi_cxx11_)
  {
    var_14 = &local_58;
    var_13 = 0;
    local_58 = '\0';
                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */
    std::string::var_7((type_2 *)&var_14,0,0,"iostream error",0xe);
  }
  else {
    (**(type_5 **)(*plVar1 + 0x20))((type_2 *)&var_14,plVar1,1);
  }
  var_4._M_dataplus._M_p = (pointer)&var_4.field_2;
                    /* try { // try from 002aff10 to 002aff14 has its CatchHandler @ 002b00be */
  __cxx11::basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>::var_8<var_2*>
            (&var_4,*(long *)var_9,*(long *)(var_9 + 8) + *(long *)var_9);
  if (0x7fffffffffffffff - var_4._M_string_length < 2) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */
    var_10("basic_string::append");
  }
                    /* try { // try from 002aff3d to 002aff41 has its CatchHandler @ 002b00ae */
  std::string::var_11((type_2 *)&var_4,": ",2);
  if ((anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_12
       *)var_4._M_dataplus._M_p == &var_4.field_2) {
    var_4.field_2._M_allocated_capacity = 0xf;
  }
  if (var_4.field_2._M_allocated_capacity < var_4._M_string_length + var_13) {
    if (var_14 == &local_58) {
      var_16 = 0xf;
    }
    else {
      var_16 = var_15(uStack_57,local_58);
    }
    if (var_4._M_string_length + var_13 <= var_16) {
                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */
      var_17 = (long *)std::string::var_7
                                 ((type_2 *)&var_14,0,0,var_4._M_dataplus._M_p,
                                  var_4._M_string_length);
      goto LAB_002aff93;
    }
  }
                    /* try { // try from 002aff8e to 002aff92 has its CatchHandler @ 002b00b6 */
  var_17 = (long *)std::string::var_11((type_2 *)&var_4,var_14,var_13);
LAB_002aff93:
  var_19 = &local_38;
  if ((long *)*var_17 == var_17 + 2) {
    local_38 = var_17[2];
    lStack_30 = var_17[3];
  }
  else {
    local_38 = var_17[2];
    var_19 = (long *)*var_17;
  }
  local_40 = var_17[1];
  *(type_6 *)(var_17 + 2) = 0;
  *var_17 = (long)(var_17 + 2);
  var_17[1] = 0;
                    /* try { // try from 002affde to 002affe2 has its CatchHandler @ 002b00c6 */
  runtime_error::var_18((var_18 *)var_21,(type_2 *)&var_19);
  if (var_19 != &local_38) {
    var_20(var_19);
  }
  if ((anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_12
       *)var_4._M_dataplus._M_p != &var_4.field_2) {
    var_20(var_4._M_dataplus._M_p);
  }
  if (var_14 != &local_58) {
    var_20(var_14);
  }
  *(type_7 *)(var_21 + 0x10) = 1;
  *(long **)(var_21 + 0x18) = plVar1;
  *(type_8 ***)var_21 = &PTR__failure_003ba7a0;
  return;
}


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

void MASKED(undefined8 *param_1,long *param_2)

{
  long *plVar1;
  long *plVar2;
  ulong uVar3;
  ulong *local_88;
  long local_80;
  ulong local_78 [2];
  undefined1 *local_68;
  long local_60;
  undefined1 local_58;
  undefined7 uStack_57;
  long *local_48;
  long local_40;
  long local_38;
  long lStack_30;
  
  plVar1 = (long *)FUN_002afe10();
  if (*(code **)(*plVar1 + 0x20) == FUN_002afda0) {
    local_68 = &local_58;
    local_60 = 0;
    local_58 = 0;
                    /* try { // try from 002afef1 to 002afef5 has its CatchHandler @ 002b00ce */
    FUN_0027e650(&local_68,0,0,"iostream error",0xe);
  }
  else {
    (**(code **)(*plVar1 + 0x20))(&local_68,plVar1,1);
  }
  local_88 = local_78;
                    /* try { // try from 002aff10 to 002aff14 has its CatchHandler @ 002b00be */
  FUN_0015d030(&local_88,*param_2,param_2[1] + *param_2);
  if (0x7fffffffffffffffU - local_80 < 2) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002b00a9 to 002b00ad has its CatchHandler @ 002b00ae */
    FUN_002b5650("basic_string::append");
  }
                    /* try { // try from 002aff3d to 002aff41 has its CatchHandler @ 002b00ae */
  FUN_0027efa0(&local_88,&DAT_003244cd,2);
  if (local_88 == local_78) {
    local_78[0] = 0xf;
  }
  if (local_78[0] < (ulong)(local_80 + local_60)) {
    if (local_68 == &local_58) {
      uVar3 = 0xf;
    }
    else {
      uVar3 = CONCAT71(uStack_57,local_58);
    }
    if ((ulong)(local_80 + local_60) <= uVar3) {
                    /* try { // try from 002b004f to 002b0053 has its CatchHandler @ 002b00b6 */
      plVar2 = (long *)FUN_0027e650(&local_68,0,0);
      goto LAB_002aff93;
    }
  }
                    /* try { // try from 002aff8e to 002aff92 has its CatchHandler @ 002b00b6 */
  plVar2 = (long *)FUN_0027efa0(&local_88);
LAB_002aff93:
  local_48 = &local_38;
  if ((long *)*plVar2 == plVar2 + 2) {
    local_38 = plVar2[2];
    lStack_30 = plVar2[3];
  }
  else {
    local_38 = plVar2[2];
    local_48 = (long *)*plVar2;
  }
  local_40 = plVar2[1];
  *(undefined1 *)(plVar2 + 2) = 0;
  *plVar2 = (long)(plVar2 + 2);
  plVar2[1] = 0;
                    /* try { // try from 002affde to 002affe2 has its CatchHandler @ 002b00c6 */
  FUN_002f3b30(param_1,&local_48);
  if (local_48 != &local_38) {
    FUN_00276d20();
  }
  if (local_88 != local_78) {
    FUN_00276d20();
  }
  if (local_68 != &local_58) {
    FUN_00276d20();
  }
  *(undefined4 *)(param_1 + 2) = 1;
  param_1[3] = plVar1;
  *param_1 = &PTR_FUN_003ba7a0;
  return;
}

