
/* std::time_get<wchar_t, std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >
   >::get(std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >,
   std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, std::ios_base&,
   std::_Ios_Iostate&, tm*, char, char) const */

undefined1  [16]
std::time_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::get
          (long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,
          long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)

{
  bool bVar1;
  ctype *pcVar2;
  long *plVar3;
  long *plVar4;
  int iVar5;
  bool bVar6;
  undefined1 auVar7 [16];
  int local_50;
  undefined4 local_48;
  int local_44;
  int local_40;
  undefined4 local_3c;
  
  iVar5 = (int)param_9;
  if (*(code **)(*param_1 + 0x40) == (code *)PTR_do_get_0043dbf0) {
    pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_6 + 0xd0));
    *param_7 = 0;
    local_48 = (**(code **)(*(long *)pcVar2 + 0x50))(pcVar2,0x25);
    if (param_10 == '\0') {
      local_40 = 0;
      local_44 = iVar5;
    }
    else {
      local_3c = 0;
      local_44 = (int)param_10;
      local_40 = iVar5;
    }
    auVar7 = _M_extract_via_format
                       (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);
    plVar3 = auVar7._0_8_;
    local_50 = auVar7._8_4_;
    bVar6 = local_50 == -1;
    bVar1 = plVar3 != (long *)0x0 && bVar6;
    plVar4 = plVar3;
    if (bVar1) {
      if ((int *)plVar3[2] < (int *)plVar3[3]) {
        iVar5 = *(int *)plVar3[2];
      }
      else {
        iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3);
      }
      plVar4 = (long *)0x0;
      if (iVar5 != -1) {
        plVar4 = plVar3;
      }
      bVar6 = iVar5 == -1 && bVar1;
    }
    bVar1 = (int)param_5 == -1;
    if ((param_4 != (long *)0x0) && (bVar1)) {
      if ((int *)param_4[2] < (int *)param_4[3]) {
        iVar5 = *(int *)param_4[2];
      }
      else {
        iVar5 = (**(code **)(*param_4 + 0x48))(param_4);
      }
      bVar1 = iVar5 == -1;
    }
    if (bVar6 == bVar1) {
      *param_7 = *param_7 | 2;
    }
    auVar7._8_8_ = auVar7._8_8_ & 0xffffffff;
    auVar7._0_8_ = plVar4;
    return auVar7;
  }
  auVar7 = (**(code **)(*param_1 + 0x40))
                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar5,
                      (int)param_10);
  return auVar7;
}



undefined1  [16]
FUN_003424e0(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,
            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)

{
  bool bVar1;
  long *plVar2;
  long *plVar3;
  int iVar4;
  bool bVar5;
  undefined1 auVar6 [16];
  int local_50;
  undefined4 local_48;
  int local_44;
  int local_40;
  undefined4 local_3c;
  
  iVar4 = (int)param_9;
  if (*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0) {
    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);
    *param_7 = 0;
    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);
    if (param_10 == '\0') {
      local_40 = 0;
      local_44 = iVar4;
    }
    else {
      local_3c = 0;
      local_44 = (int)param_10;
      local_40 = iVar4;
    }
    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)
    ;
    plVar3 = auVar6._0_8_;
    local_50 = auVar6._8_4_;
    bVar5 = local_50 == -1;
    bVar1 = plVar3 != (long *)0x0 && bVar5;
    plVar2 = plVar3;
    if (bVar1) {
      if ((int *)plVar3[2] < (int *)plVar3[3]) {
        iVar4 = *(int *)plVar3[2];
      }
      else {
        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);
      }
      plVar2 = (long *)0x0;
      if (iVar4 != -1) {
        plVar2 = plVar3;
      }
      bVar5 = iVar4 == -1 && bVar1;
    }
    bVar1 = (int)param_5 == -1;
    if ((param_4 != (long *)0x0) && (bVar1)) {
      if ((int *)param_4[2] < (int *)param_4[3]) {
        iVar4 = *(int *)param_4[2];
      }
      else {
        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);
      }
      bVar1 = iVar4 == -1;
    }
    if (bVar5 == bVar1) {
      *param_7 = *param_7 | 2;
    }
    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;
    auVar6._0_8_ = plVar2;
    return auVar6;
  }
  auVar6 = (**(code **)(*param_1 + 0x40))
                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,
                      (int)param_10);
  return auVar6;
}


PUSH R15
MOV R15,RSI
PUSH R14
MOV R14,RDX
PUSH R13
MOV R13,RDI
PUSH R12
MOV R12,R8
PUSH RBP
MOV RBP,RCX
PUSH RBX
SUB RSP,0x48
MOV RAX,qword ptr [RDI]
MOV EDX,dword ptr [RSP + 0x98]
MOV RBX,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RAX + 0x40]
CMP RAX,qword ptr [0x0043dbf0]
MOVSX R8D,DL
MOV dword ptr [RSP + 0xc],EDX
MOVSX ECX,byte ptr [RSP + 0x90]
JNZ 0x00342640
LEA RDI,[R9 + 0xd0]
MOV dword ptr [RSP + 0x1c],ECX
MOV dword ptr [RSP + 0x18],R8D
MOV qword ptr [RSP + 0x10],R9
CALL 0x00327630
MOV dword ptr [RBX],0x0
MOV ESI,0x25
MOV R11,qword ptr [RAX]
MOV RDI,RAX
CALL qword ptr [R11 + 0x50]
MOV EDX,dword ptr [RSP + 0xc]
MOV R9,qword ptr [RSP + 0x10]
MOV R8D,dword ptr [RSP + 0x18]
MOV ECX,dword ptr [RSP + 0x1c]
MOV dword ptr [RSP + 0x30],EAX
TEST DL,DL
JZ 0x00342628
MOV dword ptr [RSP + 0x34],R8D
MOV dword ptr [RSP + 0x38],ECX
MOV dword ptr [RSP + 0x3c],0x0
SUB RSP,0x8
MOV RCX,RBP
MOV RSI,R15
MOV RDX,R14
LEA RAX,[RSP + 0x38]
MOV RDI,R13
MOV R8,R12
PUSH RAX
PUSH qword ptr [RSP + 0x98]
PUSH RBX
CALL 0x00340d90
MOV R13,RAX
MOV qword ptr [RSP + 0x48],RDX
MOV RDX,-0x100000000
MOV qword ptr [RSP + 0x40],RAX
MOV EAX,dword ptr [RSP + 0x48]
AND RDX,R14
ADD RSP,0x20
MOV R14,R13
OR RDX,RAX
CMP EDX,-0x1
MOV ECX,EDX
SETZ R15B
TEST R13,R13
SETNZ AL
AND AL,R15B
MOV EDX,EAX
JNZ 0x00342670
CMP R12D,-0x1
SETZ AL
MOV EDX,EAX
TEST RBP,RBP
JZ 0x00342608
TEST AL,AL
JNZ 0x003426a0
CMP R15B,DL
JNZ 0x00342610
OR dword ptr [RBX],0x2
ADD RSP,0x48
MOV RAX,R14
MOV EDX,ECX
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV dword ptr [RSP + 0x34],ECX
MOV dword ptr [RSP + 0x38],0x0
JMP 0x0034258e
PUSH R8
MOV RDX,R14
MOV R8,R12
PUSH RCX
MOV RCX,RBP
PUSH qword ptr [RSP + 0x98]
PUSH RBX
CALL RAX
ADD RSP,0x20
ADD RSP,0x48
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RAX,qword ptr [R13 + 0x10]
CMP RAX,qword ptr [R13 + 0x18]
JNC 0x003426c0
MOV EAX,dword ptr [RAX]
CMP EAX,-0x1
MOV EAX,0x0
MOV R15D,0x0
CMOVNZ RAX,R13
CMOVZ R15D,EDX
MOV R14,RAX
JMP 0x003425f2
MOV RAX,qword ptr [RBP + 0x10]
CMP RAX,qword ptr [RBP + 0x18]
JNC 0x003426e0
MOV EAX,dword ptr [RAX]
CMP EAX,-0x1
SETZ DL
JMP 0x00342608
MOV RAX,qword ptr [R13]
MOV dword ptr [RSP + 0x10],ECX
MOV RDI,R13
MOV byte ptr [RSP + 0xc],DL
CALL qword ptr [RAX + 0x48]
MOV ECX,dword ptr [RSP + 0x10]
MOVZX EDX,byte ptr [RSP + 0xc]
JMP 0x0034267c
MOV RAX,qword ptr [RBP]
MOV dword ptr [RSP + 0xc],ECX
MOV RDI,RBP
CALL qword ptr [RAX + 0x48]
MOV ECX,dword ptr [RSP + 0xc]
JMP 0x003426ac
(translation_unit "undefined1  [16]\nFUN_003424e0(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)\n\n{\n  bool bVar1;\n  long *plVar2;\n  long *plVar3;\n  int iVar4;\n  bool bVar5;\n  undefined1 auVar6 [16];\n  int local_50;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  \n  iVar4 = (int)param_9;\n  if (*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0) {\n    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);\n    *param_7 = 0;\n    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }\n    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;\n    plVar3 = auVar6._0_8_;\n    local_50 = auVar6._8_4_;\n    bVar5 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar5;\n    plVar2 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }\n    if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;\n    auVar6._0_8_ = plVar2;\n    return auVar6;\n  }\n  auVar6 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10);\n  return auVar6;\n}\n\n" (expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_003424e0(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" (call_expression "FUN_003424e0(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" identifier (argument_list "(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" ( (binary_expression "long *param_1" identifier * identifier) , identifier (ERROR "param_2" identifier) , identifier (ERROR "param_3" identifier) , (binary_expression "long *param_4" identifier * identifier) , identifier (ERROR "param_5" identifier) , (ERROR "long" identifier) identifier , (binary_expression "uint *param_7" identifier * identifier) , identifier (ERROR "param_8" identifier) , (ERROR "char" identifier) identifier , (ERROR "char" identifier) identifier ))) ;) (compound_statement "{\n  bool bVar1;\n  long *plVar2;\n  long *plVar3;\n  int iVar4;\n  bool bVar5;\n  undefined1 auVar6 [16];\n  int local_50;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  \n  iVar4 = (int)param_9;\n  if (*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0) {\n    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);\n    *param_7 = 0;\n    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }\n    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;\n    plVar3 = auVar6._0_8_;\n    local_50 = auVar6._8_4_;\n    bVar5 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar5;\n    plVar2 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }\n    if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;\n    auVar6._0_8_ = plVar2;\n    return auVar6;\n  }\n  auVar6 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10);\n  return auVar6;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "undefined1 auVar6 [16];" type_identifier (array_declarator "auVar6 [16]" identifier [ number_literal ]) ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (expression_statement "iVar4 = (int)param_9;" (assignment_expression "iVar4 = (int)param_9" identifier = (cast_expression "(int)param_9" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0) {\n    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);\n    *param_7 = 0;\n    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }\n    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;\n    plVar3 = auVar6._0_8_;\n    local_50 = auVar6._8_4_;\n    bVar5 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar5;\n    plVar2 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }\n    if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;\n    auVar6._0_8_ = plVar2;\n    return auVar6;\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0)" ( (binary_expression "*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0" (pointer_expression "*(code **)(*param_1 + 0x40)" * (cast_expression "(code **)(*param_1 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x40)" ( (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_FUN_0043dbf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);\n    *param_7 = 0;\n    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }\n    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;\n    plVar3 = auVar6._0_8_;\n    local_50 = auVar6._8_4_;\n    bVar5 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar5;\n    plVar2 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }\n    if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;\n    auVar6._0_8_ = plVar2;\n    return auVar6;\n  }" { (expression_statement "plVar2 = (long *)FUN_00327630(param_6 + 0xd0);" (assignment_expression "plVar2 = (long *)FUN_00327630(param_6 + 0xd0)" identifier = (cast_expression "(long *)FUN_00327630(param_6 + 0xd0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00327630(param_6 + 0xd0)" identifier (argument_list "(param_6 + 0xd0)" ( (binary_expression "param_6 + 0xd0" identifier + number_literal) ))))) ;) (expression_statement "*param_7 = 0;" (assignment_expression "*param_7 = 0" (pointer_expression "*param_7" * identifier) = number_literal) ;) (expression_statement "local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);" (assignment_expression "local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25)" identifier = (call_expression "(**(code **)(*plVar2 + 0x50))(plVar2,0x25)" (parenthesized_expression "(**(code **)(*plVar2 + 0x50))" ( (pointer_expression "**(code **)(*plVar2 + 0x50)" * (pointer_expression "*(code **)(*plVar2 + 0x50)" * (cast_expression "(code **)(*plVar2 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 0x50)" ( (binary_expression "*plVar2 + 0x50" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "(plVar2,0x25)" ( identifier , number_literal )))) ;) (if_statement "if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }" if (parenthesized_expression "(param_10 == '\0')" ( (binary_expression "param_10 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_40 = 0;\n      local_44 = iVar4;\n    }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_44 = iVar4;" (assignment_expression "local_44 = iVar4" identifier = identifier) ;) }) (else_clause "else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }" else (compound_statement "{\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_44 = (int)param_10;" (assignment_expression "local_44 = (int)param_10" identifier = (cast_expression "(int)param_10" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_40 = iVar4;" (assignment_expression "local_40 = iVar4" identifier = identifier) ;) }))) (expression_statement "auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;" (assignment_expression "auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" identifier = (call_expression "FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_48" & identifier) )))) ;) (expression_statement "plVar3 = auVar6._0_8_;" (assignment_expression "plVar3 = auVar6._0_8_" identifier = (field_expression "auVar6._0_8_" identifier . field_identifier)) ;) (expression_statement "local_50 = auVar6._8_4_;" (assignment_expression "local_50 = auVar6._8_4_" identifier = (field_expression "auVar6._8_4_" identifier . field_identifier)) ;) (expression_statement "bVar5 = local_50 == -1;" (assignment_expression "bVar5 = local_50 == -1" identifier = (binary_expression "local_50 == -1" identifier == number_literal)) ;) (expression_statement "bVar1 = plVar3 != (long *)0x0 && bVar5;" (assignment_expression "bVar1 = plVar3 != (long *)0x0 && bVar5" identifier = (binary_expression "plVar3 != (long *)0x0 && bVar5" (binary_expression "plVar3 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) && identifier)) ;) (expression_statement "plVar2 = plVar3;" (assignment_expression "plVar2 = plVar3" identifier = identifier) ;) (if_statement "if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }" { (if_statement "if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" if (parenthesized_expression "((int *)plVar3[2] < (int *)plVar3[3])" ( (binary_expression "(int *)plVar3[2] < (int *)plVar3[3]" (cast_expression "(int *)plVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar3[2]" identifier [ number_literal ])) < (cast_expression "(int *)plVar3[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar4 = *(int *)plVar3[2];\n      }" { (expression_statement "iVar4 = *(int *)plVar3[2];" (assignment_expression "iVar4 = *(int *)plVar3[2]" identifier = (pointer_expression "*(int *)plVar3[2]" * (cast_expression "(int *)plVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar3[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" { (expression_statement "iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);" (assignment_expression "iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3)" identifier = (call_expression "(**(code **)(*plVar3 + 0x48))(plVar3)" (parenthesized_expression "(**(code **)(*plVar3 + 0x48))" ( (pointer_expression "**(code **)(*plVar3 + 0x48)" * (pointer_expression "*(code **)(*plVar3 + 0x48)" * (cast_expression "(code **)(*plVar3 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar3 + 0x48)" ( (binary_expression "*plVar3 + 0x48" (pointer_expression "*plVar3" * identifier) + number_literal) ))))) )) (argument_list "(plVar3)" ( identifier )))) ;) }))) (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }" if (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) (compound_statement "{\n        plVar2 = plVar3;\n      }" { (expression_statement "plVar2 = plVar3;" (assignment_expression "plVar2 = plVar3" identifier = identifier) ;) })) (expression_statement "bVar5 = iVar4 == -1 && bVar1;" (assignment_expression "bVar5 = iVar4 == -1 && bVar1" identifier = (binary_expression "iVar4 == -1 && bVar1" (binary_expression "iVar4 == -1" identifier == number_literal) && identifier)) ;) })) (expression_statement "bVar1 = (int)param_5 == -1;" (assignment_expression "bVar1 = (int)param_5 == -1" identifier = (binary_expression "(int)param_5 == -1" (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal)) ;) (if_statement "if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }" if (parenthesized_expression "((param_4 != (long *)0x0) && (bVar1))" ( (binary_expression "(param_4 != (long *)0x0) && (bVar1)" (parenthesized_expression "(param_4 != (long *)0x0)" ( (binary_expression "param_4 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bVar1)" ( identifier ))) )) (compound_statement "{\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }" { (if_statement "if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" if (parenthesized_expression "((int *)param_4[2] < (int *)param_4[3])" ( (binary_expression "(int *)param_4[2] < (int *)param_4[3]" (cast_expression "(int *)param_4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_4[2]" identifier [ number_literal ])) < (cast_expression "(int *)param_4[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_4[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar4 = *(int *)param_4[2];\n      }" { (expression_statement "iVar4 = *(int *)param_4[2];" (assignment_expression "iVar4 = *(int *)param_4[2]" identifier = (pointer_expression "*(int *)param_4[2]" * (cast_expression "(int *)param_4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_4[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" { (expression_statement "iVar4 = (**(code **)(*param_4 + 0x48))(param_4);" (assignment_expression "iVar4 = (**(code **)(*param_4 + 0x48))(param_4)" identifier = (call_expression "(**(code **)(*param_4 + 0x48))(param_4)" (parenthesized_expression "(**(code **)(*param_4 + 0x48))" ( (pointer_expression "**(code **)(*param_4 + 0x48)" * (pointer_expression "*(code **)(*param_4 + 0x48)" * (cast_expression "(code **)(*param_4 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 0x48)" ( (binary_expression "*param_4 + 0x48" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "(param_4)" ( identifier )))) ;) }))) (expression_statement "bVar1 = iVar4 == -1;" (assignment_expression "bVar1 = iVar4 == -1" identifier = (binary_expression "iVar4 == -1" identifier == number_literal)) ;) })) (if_statement "if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }" if (parenthesized_expression "(bVar5 == bVar1)" ( (binary_expression "bVar5 == bVar1" identifier == identifier) )) (compound_statement "{\n      *param_7 = *param_7 | 2;\n    }" { (expression_statement "*param_7 = *param_7 | 2;" (assignment_expression "*param_7 = *param_7 | 2" (pointer_expression "*param_7" * identifier) = (binary_expression "*param_7 | 2" (pointer_expression "*param_7" * identifier) | number_literal)) ;) })) (expression_statement "auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;" (assignment_expression "auVar6._8_8_ = auVar6._8_8_ & 0xffffffff" (field_expression "auVar6._8_8_" identifier . field_identifier) = (binary_expression "auVar6._8_8_ & 0xffffffff" (field_expression "auVar6._8_8_" identifier . field_identifier) & number_literal)) ;) (expression_statement "auVar6._0_8_ = plVar2;" (assignment_expression "auVar6._0_8_ = plVar2" (field_expression "auVar6._0_8_" identifier . field_identifier) = identifier) ;) (return_statement "return auVar6;" return identifier ;) })) (expression_statement "auVar6 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10);" (assignment_expression "auVar6 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10)" identifier = (call_expression "(**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10)" (parenthesized_expression "(**(code **)(*param_1 + 0x40))" ( (pointer_expression "**(code **)(*param_1 + 0x40)" * (pointer_expression "*(code **)(*param_1 + 0x40)" * (cast_expression "(code **)(*param_1 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x40)" ( (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (cast_expression "(int)param_10" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (return_statement "return auVar6;" return identifier ;) }))
(translation_unit "/* std::time_get<wchar_t, std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >\n   >::get(std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >,\n   std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, std::ios_base&,\n   std::_Ios_Iostate&, tm*, char, char) const */\n\nundefined1  [16]\nstd::time_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::get\n          (long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n          long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)\n\n{\n  bool bVar1;\n  ctype *pcVar2;\n  long *plVar3;\n  long *plVar4;\n  int iVar5;\n  bool bVar6;\n  undefined1 auVar7 [16];\n  int local_50;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  \n  iVar5 = (int)param_9;\n  if (*(code **)(*param_1 + 0x40) == (code *)PTR_do_get_0043dbf0) {\n    pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_6 + 0xd0));\n    *param_7 = 0;\n    local_48 = (**(code **)(*(long *)pcVar2 + 0x50))(pcVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar5;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar5;\n    }\n    auVar7 = _M_extract_via_format\n                       (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    plVar3 = auVar7._0_8_;\n    local_50 = auVar7._8_4_;\n    bVar6 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar6;\n    plVar4 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar5 = *(int *)plVar3[2];\n      }\n      else {\n        iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar4 = (long *)0x0;\n      if (iVar5 != -1) {\n        plVar4 = plVar3;\n      }\n      bVar6 = iVar5 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar5 = *(int *)param_4[2];\n      }\n      else {\n        iVar5 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar5 == -1;\n    }\n    if (bVar6 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar7._8_8_ = auVar7._8_8_ & 0xffffffff;\n    auVar7._0_8_ = plVar4;\n    return auVar7;\n  }\n  auVar7 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar5,\n                      (int)param_10);\n  return auVar7;\n}\n\n" comment (expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) ;) (labeled_statement "std::time_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::get\n          (long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n          long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" statement_identifier (ERROR "::time_get<wchar_t,std::istreambuf_iterator<wchar_t,std:" : : (comma_expression "time_get<wchar_t,std" (binary_expression "time_get<wchar_t" identifier < identifier) , identifier) : : (comma_expression "istreambuf_iterator<wchar_t,std" (binary_expression "istreambuf_iterator<wchar_t" identifier < identifier) , identifier) :) : (expression_statement "char_traits<wchar_t>>>::get\n          (long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n          long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" (binary_expression "char_traits<wchar_t>>>::get\n          (long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n          long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" identifier < (binary_expression "wchar_t>>>::get\n          (long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n          long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" identifier >> (ERROR ">::" > : :) (call_expression "get\n          (long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n          long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" identifier (argument_list "(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n          long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" ( (binary_expression "long *param_1" identifier * identifier) , identifier (ERROR "param_2" identifier) , identifier (ERROR "param_3" identifier) , (binary_expression "long *param_4" identifier * identifier) , identifier (ERROR "param_5" identifier) , (ERROR "long" identifier) identifier , (binary_expression "uint *param_7" identifier * identifier) , identifier (ERROR "param_8" identifier) , (ERROR "char" identifier) identifier , (ERROR "char" identifier) identifier ))))) ;)) (compound_statement "{\n  bool bVar1;\n  ctype *pcVar2;\n  long *plVar3;\n  long *plVar4;\n  int iVar5;\n  bool bVar6;\n  undefined1 auVar7 [16];\n  int local_50;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  \n  iVar5 = (int)param_9;\n  if (*(code **)(*param_1 + 0x40) == (code *)PTR_do_get_0043dbf0) {\n    pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_6 + 0xd0));\n    *param_7 = 0;\n    local_48 = (**(code **)(*(long *)pcVar2 + 0x50))(pcVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar5;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar5;\n    }\n    auVar7 = _M_extract_via_format\n                       (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    plVar3 = auVar7._0_8_;\n    local_50 = auVar7._8_4_;\n    bVar6 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar6;\n    plVar4 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar5 = *(int *)plVar3[2];\n      }\n      else {\n        iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar4 = (long *)0x0;\n      if (iVar5 != -1) {\n        plVar4 = plVar3;\n      }\n      bVar6 = iVar5 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar5 = *(int *)param_4[2];\n      }\n      else {\n        iVar5 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar5 == -1;\n    }\n    if (bVar6 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar7._8_8_ = auVar7._8_8_ & 0xffffffff;\n    auVar7._0_8_ = plVar4;\n    return auVar7;\n  }\n  auVar7 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar5,\n                      (int)param_10);\n  return auVar7;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "ctype *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "undefined1 auVar7 [16];" type_identifier (array_declarator "auVar7 [16]" identifier [ number_literal ]) ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (expression_statement "iVar5 = (int)param_9;" (assignment_expression "iVar5 = (int)param_9" identifier = (cast_expression "(int)param_9" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (*(code **)(*param_1 + 0x40) == (code *)PTR_do_get_0043dbf0) {\n    pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_6 + 0xd0));\n    *param_7 = 0;\n    local_48 = (**(code **)(*(long *)pcVar2 + 0x50))(pcVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar5;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar5;\n    }\n    auVar7 = _M_extract_via_format\n                       (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    plVar3 = auVar7._0_8_;\n    local_50 = auVar7._8_4_;\n    bVar6 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar6;\n    plVar4 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar5 = *(int *)plVar3[2];\n      }\n      else {\n        iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar4 = (long *)0x0;\n      if (iVar5 != -1) {\n        plVar4 = plVar3;\n      }\n      bVar6 = iVar5 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar5 = *(int *)param_4[2];\n      }\n      else {\n        iVar5 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar5 == -1;\n    }\n    if (bVar6 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar7._8_8_ = auVar7._8_8_ & 0xffffffff;\n    auVar7._0_8_ = plVar4;\n    return auVar7;\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 0x40) == (code *)PTR_do_get_0043dbf0)" ( (binary_expression "*(code **)(*param_1 + 0x40) == (code *)PTR_do_get_0043dbf0" (pointer_expression "*(code **)(*param_1 + 0x40)" * (cast_expression "(code **)(*param_1 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x40)" ( (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_get_0043dbf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_6 + 0xd0));\n    *param_7 = 0;\n    local_48 = (**(code **)(*(long *)pcVar2 + 0x50))(pcVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar5;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar5;\n    }\n    auVar7 = _M_extract_via_format\n                       (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    plVar3 = auVar7._0_8_;\n    local_50 = auVar7._8_4_;\n    bVar6 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar6;\n    plVar4 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar5 = *(int *)plVar3[2];\n      }\n      else {\n        iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar4 = (long *)0x0;\n      if (iVar5 != -1) {\n        plVar4 = plVar3;\n      }\n      bVar6 = iVar5 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar5 = *(int *)param_4[2];\n      }\n      else {\n        iVar5 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar5 == -1;\n    }\n    if (bVar6 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar7._8_8_ = auVar7._8_8_ & 0xffffffff;\n    auVar7._0_8_ = plVar4;\n    return auVar7;\n  }" { (expression_statement "pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_6 + 0xd0));" (binary_expression "pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_6 + 0xd0))" (assignment_expression "pcVar2 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "wchar_t>>((locale *)(param_6 + 0xd0))" identifier >> (parenthesized_expression "((locale *)(param_6 + 0xd0))" ( (cast_expression "(locale *)(param_6 + 0xd0)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0xd0)" ( (binary_expression "param_6 + 0xd0" identifier + number_literal) ))) )))) ;) (expression_statement "*param_7 = 0;" (assignment_expression "*param_7 = 0" (pointer_expression "*param_7" * identifier) = number_literal) ;) (expression_statement "local_48 = (**(code **)(*(long *)pcVar2 + 0x50))(pcVar2,0x25);" (assignment_expression "local_48 = (**(code **)(*(long *)pcVar2 + 0x50))(pcVar2,0x25)" identifier = (call_expression "(**(code **)(*(long *)pcVar2 + 0x50))(pcVar2,0x25)" (parenthesized_expression "(**(code **)(*(long *)pcVar2 + 0x50))" ( (pointer_expression "**(code **)(*(long *)pcVar2 + 0x50)" * (pointer_expression "*(code **)(*(long *)pcVar2 + 0x50)" * (cast_expression "(code **)(*(long *)pcVar2 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)pcVar2 + 0x50)" ( (binary_expression "*(long *)pcVar2 + 0x50" (pointer_expression "*(long *)pcVar2" * (cast_expression "(long *)pcVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar2,0x25)" ( identifier , number_literal )))) ;) (if_statement "if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar5;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar5;\n    }" if (parenthesized_expression "(param_10 == '\0')" ( (binary_expression "param_10 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_40 = 0;\n      local_44 = iVar5;\n    }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_44 = iVar5;" (assignment_expression "local_44 = iVar5" identifier = identifier) ;) }) (else_clause "else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar5;\n    }" else (compound_statement "{\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar5;\n    }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_44 = (int)param_10;" (assignment_expression "local_44 = (int)param_10" identifier = (cast_expression "(int)param_10" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_40 = iVar5;" (assignment_expression "local_40 = iVar5" identifier = identifier) ;) }))) (expression_statement "auVar7 = _M_extract_via_format\n                       (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);" (assignment_expression "auVar7 = _M_extract_via_format\n                       (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" identifier = (call_expression "_M_extract_via_format\n                       (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_48" & identifier) )))) ;) (expression_statement "plVar3 = auVar7._0_8_;" (assignment_expression "plVar3 = auVar7._0_8_" identifier = (field_expression "auVar7._0_8_" identifier . field_identifier)) ;) (expression_statement "local_50 = auVar7._8_4_;" (assignment_expression "local_50 = auVar7._8_4_" identifier = (field_expression "auVar7._8_4_" identifier . field_identifier)) ;) (expression_statement "bVar6 = local_50 == -1;" (assignment_expression "bVar6 = local_50 == -1" identifier = (binary_expression "local_50 == -1" identifier == number_literal)) ;) (expression_statement "bVar1 = plVar3 != (long *)0x0 && bVar6;" (assignment_expression "bVar1 = plVar3 != (long *)0x0 && bVar6" identifier = (binary_expression "plVar3 != (long *)0x0 && bVar6" (binary_expression "plVar3 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) && identifier)) ;) (expression_statement "plVar4 = plVar3;" (assignment_expression "plVar4 = plVar3" identifier = identifier) ;) (if_statement "if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar5 = *(int *)plVar3[2];\n      }\n      else {\n        iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar4 = (long *)0x0;\n      if (iVar5 != -1) {\n        plVar4 = plVar3;\n      }\n      bVar6 = iVar5 == -1 && bVar1;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar5 = *(int *)plVar3[2];\n      }\n      else {\n        iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar4 = (long *)0x0;\n      if (iVar5 != -1) {\n        plVar4 = plVar3;\n      }\n      bVar6 = iVar5 == -1 && bVar1;\n    }" { (if_statement "if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar5 = *(int *)plVar3[2];\n      }\n      else {\n        iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" if (parenthesized_expression "((int *)plVar3[2] < (int *)plVar3[3])" ( (binary_expression "(int *)plVar3[2] < (int *)plVar3[3]" (cast_expression "(int *)plVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar3[2]" identifier [ number_literal ])) < (cast_expression "(int *)plVar3[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar5 = *(int *)plVar3[2];\n      }" { (expression_statement "iVar5 = *(int *)plVar3[2];" (assignment_expression "iVar5 = *(int *)plVar3[2]" identifier = (pointer_expression "*(int *)plVar3[2]" * (cast_expression "(int *)plVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar3[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n        iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" else (compound_statement "{\n        iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" { (expression_statement "iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3);" (assignment_expression "iVar5 = (**(code **)(*plVar3 + 0x48))(plVar3)" identifier = (call_expression "(**(code **)(*plVar3 + 0x48))(plVar3)" (parenthesized_expression "(**(code **)(*plVar3 + 0x48))" ( (pointer_expression "**(code **)(*plVar3 + 0x48)" * (pointer_expression "*(code **)(*plVar3 + 0x48)" * (cast_expression "(code **)(*plVar3 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar3 + 0x48)" ( (binary_expression "*plVar3 + 0x48" (pointer_expression "*plVar3" * identifier) + number_literal) ))))) )) (argument_list "(plVar3)" ( identifier )))) ;) }))) (expression_statement "plVar4 = (long *)0x0;" (assignment_expression "plVar4 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar5 != -1) {\n        plVar4 = plVar3;\n      }" if (parenthesized_expression "(iVar5 != -1)" ( (binary_expression "iVar5 != -1" identifier != number_literal) )) (compound_statement "{\n        plVar4 = plVar3;\n      }" { (expression_statement "plVar4 = plVar3;" (assignment_expression "plVar4 = plVar3" identifier = identifier) ;) })) (expression_statement "bVar6 = iVar5 == -1 && bVar1;" (assignment_expression "bVar6 = iVar5 == -1 && bVar1" identifier = (binary_expression "iVar5 == -1 && bVar1" (binary_expression "iVar5 == -1" identifier == number_literal) && identifier)) ;) })) (expression_statement "bVar1 = (int)param_5 == -1;" (assignment_expression "bVar1 = (int)param_5 == -1" identifier = (binary_expression "(int)param_5 == -1" (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal)) ;) (if_statement "if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar5 = *(int *)param_4[2];\n      }\n      else {\n        iVar5 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar5 == -1;\n    }" if (parenthesized_expression "((param_4 != (long *)0x0) && (bVar1))" ( (binary_expression "(param_4 != (long *)0x0) && (bVar1)" (parenthesized_expression "(param_4 != (long *)0x0)" ( (binary_expression "param_4 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bVar1)" ( identifier ))) )) (compound_statement "{\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar5 = *(int *)param_4[2];\n      }\n      else {\n        iVar5 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar5 == -1;\n    }" { (if_statement "if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar5 = *(int *)param_4[2];\n      }\n      else {\n        iVar5 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" if (parenthesized_expression "((int *)param_4[2] < (int *)param_4[3])" ( (binary_expression "(int *)param_4[2] < (int *)param_4[3]" (cast_expression "(int *)param_4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_4[2]" identifier [ number_literal ])) < (cast_expression "(int *)param_4[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_4[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar5 = *(int *)param_4[2];\n      }" { (expression_statement "iVar5 = *(int *)param_4[2];" (assignment_expression "iVar5 = *(int *)param_4[2]" identifier = (pointer_expression "*(int *)param_4[2]" * (cast_expression "(int *)param_4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_4[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n        iVar5 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" else (compound_statement "{\n        iVar5 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" { (expression_statement "iVar5 = (**(code **)(*param_4 + 0x48))(param_4);" (assignment_expression "iVar5 = (**(code **)(*param_4 + 0x48))(param_4)" identifier = (call_expression "(**(code **)(*param_4 + 0x48))(param_4)" (parenthesized_expression "(**(code **)(*param_4 + 0x48))" ( (pointer_expression "**(code **)(*param_4 + 0x48)" * (pointer_expression "*(code **)(*param_4 + 0x48)" * (cast_expression "(code **)(*param_4 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 0x48)" ( (binary_expression "*param_4 + 0x48" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "(param_4)" ( identifier )))) ;) }))) (expression_statement "bVar1 = iVar5 == -1;" (assignment_expression "bVar1 = iVar5 == -1" identifier = (binary_expression "iVar5 == -1" identifier == number_literal)) ;) })) (if_statement "if (bVar6 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }" if (parenthesized_expression "(bVar6 == bVar1)" ( (binary_expression "bVar6 == bVar1" identifier == identifier) )) (compound_statement "{\n      *param_7 = *param_7 | 2;\n    }" { (expression_statement "*param_7 = *param_7 | 2;" (assignment_expression "*param_7 = *param_7 | 2" (pointer_expression "*param_7" * identifier) = (binary_expression "*param_7 | 2" (pointer_expression "*param_7" * identifier) | number_literal)) ;) })) (expression_statement "auVar7._8_8_ = auVar7._8_8_ & 0xffffffff;" (assignment_expression "auVar7._8_8_ = auVar7._8_8_ & 0xffffffff" (field_expression "auVar7._8_8_" identifier . field_identifier) = (binary_expression "auVar7._8_8_ & 0xffffffff" (field_expression "auVar7._8_8_" identifier . field_identifier) & number_literal)) ;) (expression_statement "auVar7._0_8_ = plVar4;" (assignment_expression "auVar7._0_8_ = plVar4" (field_expression "auVar7._0_8_" identifier . field_identifier) = identifier) ;) (return_statement "return auVar7;" return identifier ;) })) (expression_statement "auVar7 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar5,\n                      (int)param_10);" (assignment_expression "auVar7 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar5,\n                      (int)param_10)" identifier = (call_expression "(**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar5,\n                      (int)param_10)" (parenthesized_expression "(**(code **)(*param_1 + 0x40))" ( (pointer_expression "**(code **)(*param_1 + 0x40)" * (pointer_expression "*(code **)(*param_1 + 0x40)" * (cast_expression "(code **)(*param_1 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x40)" ( (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar5,\n                      (int)param_10)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (cast_expression "(int)param_10" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (return_statement "return auVar7;" return identifier ;) }))
(translation_unit "undefined1  [16]\nFUN_003424e0(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)\n\n{\n  bool bVar1;\n  long *plVar2;\n  long *plVar3;\n  int iVar4;\n  bool bVar5;\n  undefined1 auVar6 [16];\n  int local_50;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  \n  iVar4 = (int)param_9;\n  if (*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0) {\n    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);\n    *param_7 = 0;\n    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }\n    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;\n    plVar3 = auVar6._0_8_;\n    local_50 = auVar6._8_4_;\n    bVar5 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar5;\n    plVar2 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }\n    if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;\n    auVar6._0_8_ = plVar2;\n    return auVar6;\n  }\n  auVar6 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10);\n  return auVar6;\n}\n\n" (expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_003424e0(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" (call_expression "FUN_003424e0(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" identifier (argument_list "(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" ( (binary_expression "long *param_1" identifier * identifier) , identifier (ERROR "param_2" identifier) , identifier (ERROR "param_3" identifier) , (binary_expression "long *param_4" identifier * identifier) , identifier (ERROR "param_5" identifier) , (ERROR "long" identifier) identifier , (binary_expression "uint *param_7" identifier * identifier) , identifier (ERROR "param_8" identifier) , (ERROR "char" identifier) identifier , (ERROR "char" identifier) identifier ))) ;) (compound_statement "{\n  bool bVar1;\n  long *plVar2;\n  long *plVar3;\n  int iVar4;\n  bool bVar5;\n  undefined1 auVar6 [16];\n  int local_50;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  \n  iVar4 = (int)param_9;\n  if (*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0) {\n    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);\n    *param_7 = 0;\n    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }\n    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;\n    plVar3 = auVar6._0_8_;\n    local_50 = auVar6._8_4_;\n    bVar5 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar5;\n    plVar2 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }\n    if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;\n    auVar6._0_8_ = plVar2;\n    return auVar6;\n  }\n  auVar6 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10);\n  return auVar6;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "undefined1 auVar6 [16];" type_identifier (array_declarator "auVar6 [16]" identifier [ number_literal ]) ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (expression_statement "iVar4 = (int)param_9;" (assignment_expression "iVar4 = (int)param_9" identifier = (cast_expression "(int)param_9" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0) {\n    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);\n    *param_7 = 0;\n    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }\n    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;\n    plVar3 = auVar6._0_8_;\n    local_50 = auVar6._8_4_;\n    bVar5 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar5;\n    plVar2 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }\n    if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;\n    auVar6._0_8_ = plVar2;\n    return auVar6;\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0)" ( (binary_expression "*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0" (pointer_expression "*(code **)(*param_1 + 0x40)" * (cast_expression "(code **)(*param_1 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x40)" ( (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_FUN_0043dbf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);\n    *param_7 = 0;\n    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }\n    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;\n    plVar3 = auVar6._0_8_;\n    local_50 = auVar6._8_4_;\n    bVar5 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar5;\n    plVar2 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }\n    if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;\n    auVar6._0_8_ = plVar2;\n    return auVar6;\n  }" { (expression_statement "plVar2 = (long *)FUN_00327630(param_6 + 0xd0);" (assignment_expression "plVar2 = (long *)FUN_00327630(param_6 + 0xd0)" identifier = (cast_expression "(long *)FUN_00327630(param_6 + 0xd0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00327630(param_6 + 0xd0)" identifier (argument_list "(param_6 + 0xd0)" ( (binary_expression "param_6 + 0xd0" identifier + number_literal) ))))) ;) (expression_statement "*param_7 = 0;" (assignment_expression "*param_7 = 0" (pointer_expression "*param_7" * identifier) = number_literal) ;) (expression_statement "local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);" (assignment_expression "local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25)" identifier = (call_expression "(**(code **)(*plVar2 + 0x50))(plVar2,0x25)" (parenthesized_expression "(**(code **)(*plVar2 + 0x50))" ( (pointer_expression "**(code **)(*plVar2 + 0x50)" * (pointer_expression "*(code **)(*plVar2 + 0x50)" * (cast_expression "(code **)(*plVar2 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 0x50)" ( (binary_expression "*plVar2 + 0x50" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "(plVar2,0x25)" ( identifier , number_literal )))) ;) (if_statement "if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }" if (parenthesized_expression "(param_10 == '\0')" ( (binary_expression "param_10 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_40 = 0;\n      local_44 = iVar4;\n    }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_44 = iVar4;" (assignment_expression "local_44 = iVar4" identifier = identifier) ;) }) (else_clause "else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }" else (compound_statement "{\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_44 = (int)param_10;" (assignment_expression "local_44 = (int)param_10" identifier = (cast_expression "(int)param_10" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_40 = iVar4;" (assignment_expression "local_40 = iVar4" identifier = identifier) ;) }))) (expression_statement "auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;" (assignment_expression "auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" identifier = (call_expression "FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_48" & identifier) )))) ;) (expression_statement "plVar3 = auVar6._0_8_;" (assignment_expression "plVar3 = auVar6._0_8_" identifier = (field_expression "auVar6._0_8_" identifier . field_identifier)) ;) (expression_statement "local_50 = auVar6._8_4_;" (assignment_expression "local_50 = auVar6._8_4_" identifier = (field_expression "auVar6._8_4_" identifier . field_identifier)) ;) (expression_statement "bVar5 = local_50 == -1;" (assignment_expression "bVar5 = local_50 == -1" identifier = (binary_expression "local_50 == -1" identifier == number_literal)) ;) (expression_statement "bVar1 = plVar3 != (long *)0x0 && bVar5;" (assignment_expression "bVar1 = plVar3 != (long *)0x0 && bVar5" identifier = (binary_expression "plVar3 != (long *)0x0 && bVar5" (binary_expression "plVar3 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) && identifier)) ;) (expression_statement "plVar2 = plVar3;" (assignment_expression "plVar2 = plVar3" identifier = identifier) ;) (if_statement "if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }" { (if_statement "if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" if (parenthesized_expression "((int *)plVar3[2] < (int *)plVar3[3])" ( (binary_expression "(int *)plVar3[2] < (int *)plVar3[3]" (cast_expression "(int *)plVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar3[2]" identifier [ number_literal ])) < (cast_expression "(int *)plVar3[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar4 = *(int *)plVar3[2];\n      }" { (expression_statement "iVar4 = *(int *)plVar3[2];" (assignment_expression "iVar4 = *(int *)plVar3[2]" identifier = (pointer_expression "*(int *)plVar3[2]" * (cast_expression "(int *)plVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar3[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" { (expression_statement "iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);" (assignment_expression "iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3)" identifier = (call_expression "(**(code **)(*plVar3 + 0x48))(plVar3)" (parenthesized_expression "(**(code **)(*plVar3 + 0x48))" ( (pointer_expression "**(code **)(*plVar3 + 0x48)" * (pointer_expression "*(code **)(*plVar3 + 0x48)" * (cast_expression "(code **)(*plVar3 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar3 + 0x48)" ( (binary_expression "*plVar3 + 0x48" (pointer_expression "*plVar3" * identifier) + number_literal) ))))) )) (argument_list "(plVar3)" ( identifier )))) ;) }))) (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }" if (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) (compound_statement "{\n        plVar2 = plVar3;\n      }" { (expression_statement "plVar2 = plVar3;" (assignment_expression "plVar2 = plVar3" identifier = identifier) ;) })) (expression_statement "bVar5 = iVar4 == -1 && bVar1;" (assignment_expression "bVar5 = iVar4 == -1 && bVar1" identifier = (binary_expression "iVar4 == -1 && bVar1" (binary_expression "iVar4 == -1" identifier == number_literal) && identifier)) ;) })) (expression_statement "bVar1 = (int)param_5 == -1;" (assignment_expression "bVar1 = (int)param_5 == -1" identifier = (binary_expression "(int)param_5 == -1" (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal)) ;) (if_statement "if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }" if (parenthesized_expression "((param_4 != (long *)0x0) && (bVar1))" ( (binary_expression "(param_4 != (long *)0x0) && (bVar1)" (parenthesized_expression "(param_4 != (long *)0x0)" ( (binary_expression "param_4 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bVar1)" ( identifier ))) )) (compound_statement "{\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }" { (if_statement "if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" if (parenthesized_expression "((int *)param_4[2] < (int *)param_4[3])" ( (binary_expression "(int *)param_4[2] < (int *)param_4[3]" (cast_expression "(int *)param_4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_4[2]" identifier [ number_literal ])) < (cast_expression "(int *)param_4[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_4[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar4 = *(int *)param_4[2];\n      }" { (expression_statement "iVar4 = *(int *)param_4[2];" (assignment_expression "iVar4 = *(int *)param_4[2]" identifier = (pointer_expression "*(int *)param_4[2]" * (cast_expression "(int *)param_4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_4[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" { (expression_statement "iVar4 = (**(code **)(*param_4 + 0x48))(param_4);" (assignment_expression "iVar4 = (**(code **)(*param_4 + 0x48))(param_4)" identifier = (call_expression "(**(code **)(*param_4 + 0x48))(param_4)" (parenthesized_expression "(**(code **)(*param_4 + 0x48))" ( (pointer_expression "**(code **)(*param_4 + 0x48)" * (pointer_expression "*(code **)(*param_4 + 0x48)" * (cast_expression "(code **)(*param_4 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 0x48)" ( (binary_expression "*param_4 + 0x48" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "(param_4)" ( identifier )))) ;) }))) (expression_statement "bVar1 = iVar4 == -1;" (assignment_expression "bVar1 = iVar4 == -1" identifier = (binary_expression "iVar4 == -1" identifier == number_literal)) ;) })) (if_statement "if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }" if (parenthesized_expression "(bVar5 == bVar1)" ( (binary_expression "bVar5 == bVar1" identifier == identifier) )) (compound_statement "{\n      *param_7 = *param_7 | 2;\n    }" { (expression_statement "*param_7 = *param_7 | 2;" (assignment_expression "*param_7 = *param_7 | 2" (pointer_expression "*param_7" * identifier) = (binary_expression "*param_7 | 2" (pointer_expression "*param_7" * identifier) | number_literal)) ;) })) (expression_statement "auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;" (assignment_expression "auVar6._8_8_ = auVar6._8_8_ & 0xffffffff" (field_expression "auVar6._8_8_" identifier . field_identifier) = (binary_expression "auVar6._8_8_ & 0xffffffff" (field_expression "auVar6._8_8_" identifier . field_identifier) & number_literal)) ;) (expression_statement "auVar6._0_8_ = plVar2;" (assignment_expression "auVar6._0_8_ = plVar2" (field_expression "auVar6._0_8_" identifier . field_identifier) = identifier) ;) (return_statement "return auVar6;" return identifier ;) })) (expression_statement "auVar6 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10);" (assignment_expression "auVar6 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10)" identifier = (call_expression "(**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10)" (parenthesized_expression "(**(code **)(*param_1 + 0x40))" ( (pointer_expression "**(code **)(*param_1 + 0x40)" * (pointer_expression "*(code **)(*param_1 + 0x40)" * (cast_expression "(code **)(*param_1 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x40)" ( (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (cast_expression "(int)param_10" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (return_statement "return auVar6;" return identifier ;) }))
(translation_unit (expression_statement (subscript_expression IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) , IDENT (ERROR IDENT) , IDENT (ERROR IDENT) , (binary_expression IDENT * IDENT) , IDENT (ERROR IDENT) , (ERROR IDENT) IDENT , (binary_expression IDENT * IDENT) , IDENT (ERROR IDENT) , (ERROR IDENT) IDENT , (ERROR IDENT) IDENT ))) ;) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (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) )))) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) && IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT == LIT) && IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( IDENT ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) })) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (binary_expression (field_expression IDENT . field_identifier) & LIT)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) (return_statement return IDENT ;) }))
(expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" (identifier "undefined1") ([ "[") (number_literal "16") (] "]")) (; "")) (expression_statement "FUN_003424e0(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" (call_expression "FUN_003424e0(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" (identifier "FUN_003424e0") (argument_list "(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,\n            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)" (( "(") (binary_expression "long *param_1" (identifier "long") (* "*") (identifier "param_1")) (, ",") (identifier "undefined8") (ERROR "param_2" (identifier "param_2")) (, ",") (identifier "undefined8") (ERROR "param_3" (identifier "param_3")) (, ",") (binary_expression "long *param_4" (identifier "long") (* "*") (identifier "param_4")) (, ",") (identifier "undefined8") (ERROR "param_5" (identifier "param_5")) (, ",") (ERROR "long" (identifier "long")) (identifier "param_6") (, ",") (binary_expression "uint *param_7" (identifier "uint") (* "*") (identifier "param_7")) (, ",") (identifier "undefined8") (ERROR "param_8" (identifier "param_8")) (, ",") (ERROR "char" (identifier "char")) (identifier "param_9") (, ",") (ERROR "char" (identifier "char")) (identifier "param_10") () ")"))) (; "")) (compound_statement "{\n  bool bVar1;\n  long *plVar2;\n  long *plVar3;\n  int iVar4;\n  bool bVar5;\n  undefined1 auVar6 [16];\n  int local_50;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  \n  iVar4 = (int)param_9;\n  if (*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0) {\n    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);\n    *param_7 = 0;\n    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }\n    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;\n    plVar3 = auVar6._0_8_;\n    local_50 = auVar6._8_4_;\n    bVar5 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar5;\n    plVar2 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }\n    if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;\n    auVar6._0_8_ = plVar2;\n    return auVar6;\n  }\n  auVar6 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10);\n  return auVar6;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "long *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "undefined1 auVar6 [16];" (type_identifier "undefined1") (array_declarator "auVar6 [16]" (identifier "auVar6") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "int local_50;" (primitive_type "int") (identifier "local_50") (; ";")) (declaration "undefined4 local_48;" (type_identifier "undefined4") (identifier "local_48") (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "undefined4 local_3c;" (type_identifier "undefined4") (identifier "local_3c") (; ";")) (expression_statement "iVar4 = (int)param_9;" (assignment_expression "iVar4 = (int)param_9" (identifier "iVar4") (= "=") (cast_expression "(int)param_9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_9"))) (; ";")) (if_statement "if (*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0) {\n    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);\n    *param_7 = 0;\n    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }\n    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;\n    plVar3 = auVar6._0_8_;\n    local_50 = auVar6._8_4_;\n    bVar5 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar5;\n    plVar2 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }\n    if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;\n    auVar6._0_8_ = plVar2;\n    return auVar6;\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0)" (( "(") (binary_expression "*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0" (pointer_expression "*(code **)(*param_1 + 0x40)" (* "*") (cast_expression "(code **)(*param_1 + 0x40)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x40)" (( "(") (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x40")) () ")")))) (== "==") (cast_expression "(code *)PTR_FUN_0043dbf0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0043dbf0"))) () ")")) (compound_statement "{\n    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);\n    *param_7 = 0;\n    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);\n    if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }\n    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;\n    plVar3 = auVar6._0_8_;\n    local_50 = auVar6._8_4_;\n    bVar5 = local_50 == -1;\n    bVar1 = plVar3 != (long *)0x0 && bVar5;\n    plVar2 = plVar3;\n    if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }\n    bVar1 = (int)param_5 == -1;\n    if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }\n    if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }\n    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;\n    auVar6._0_8_ = plVar2;\n    return auVar6;\n  }" ({ "{") (expression_statement "plVar2 = (long *)FUN_00327630(param_6 + 0xd0);" (assignment_expression "plVar2 = (long *)FUN_00327630(param_6 + 0xd0)" (identifier "plVar2") (= "=") (cast_expression "(long *)FUN_00327630(param_6 + 0xd0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00327630(param_6 + 0xd0)" (identifier "FUN_00327630") (argument_list "(param_6 + 0xd0)" (( "(") (binary_expression "param_6 + 0xd0" (identifier "param_6") (+ "+") (number_literal "0xd0")) () ")"))))) (; ";")) (expression_statement "*param_7 = 0;" (assignment_expression "*param_7 = 0" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);" (assignment_expression "local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25)" (identifier "local_48") (= "=") (call_expression "(**(code **)(*plVar2 + 0x50))(plVar2,0x25)" (parenthesized_expression "(**(code **)(*plVar2 + 0x50))" (( "(") (pointer_expression "**(code **)(*plVar2 + 0x50)" (* "*") (pointer_expression "*(code **)(*plVar2 + 0x50)" (* "*") (cast_expression "(code **)(*plVar2 + 0x50)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar2 + 0x50)" (( "(") (binary_expression "*plVar2 + 0x50" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (argument_list "(plVar2,0x25)" (( "(") (identifier "plVar2") (, ",") (number_literal "0x25") () ")")))) (; ";")) (if_statement "if (param_10 == '\0') {\n      local_40 = 0;\n      local_44 = iVar4;\n    }\n    else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }" (if "if") (parenthesized_expression "(param_10 == '\0')" (( "(") (binary_expression "param_10 == '\0'" (identifier "param_10") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      local_40 = 0;\n      local_44 = iVar4;\n    }" ({ "{") (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = iVar4;" (assignment_expression "local_44 = iVar4" (identifier "local_44") (= "=") (identifier "iVar4")) (; ";")) (} "}")) (else_clause "else {\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }" (else "else") (compound_statement "{\n      local_3c = 0;\n      local_44 = (int)param_10;\n      local_40 = iVar4;\n    }" ({ "{") (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = (int)param_10;" (assignment_expression "local_44 = (int)param_10" (identifier "local_44") (= "=") (cast_expression "(int)param_10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_10"))) (; ";")) (expression_statement "local_40 = iVar4;" (assignment_expression "local_40 = iVar4" (identifier "local_40") (= "=") (identifier "iVar4")) (; ";")) (} "}")))) (expression_statement "auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)\n    ;" (assignment_expression "auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" (identifier "auVar6") (= "=") (call_expression "FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" (identifier "FUN_00340d90") (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")")))) (; ";")) (expression_statement "plVar3 = auVar6._0_8_;" (assignment_expression "plVar3 = auVar6._0_8_" (identifier "plVar3") (= "=") (field_expression "auVar6._0_8_" (identifier "auVar6") (. ".") (field_identifier "_0_8_"))) (; ";")) (expression_statement "local_50 = auVar6._8_4_;" (assignment_expression "local_50 = auVar6._8_4_" (identifier "local_50") (= "=") (field_expression "auVar6._8_4_" (identifier "auVar6") (. ".") (field_identifier "_8_4_"))) (; ";")) (expression_statement "bVar5 = local_50 == -1;" (assignment_expression "bVar5 = local_50 == -1" (identifier "bVar5") (= "=") (binary_expression "local_50 == -1" (identifier "local_50") (== "==") (number_literal "-1"))) (; ";")) (expression_statement "bVar1 = plVar3 != (long *)0x0 && bVar5;" (assignment_expression "bVar1 = plVar3 != (long *)0x0 && bVar5" (identifier "bVar1") (= "=") (binary_expression "plVar3 != (long *)0x0 && bVar5" (binary_expression "plVar3 != (long *)0x0" (identifier "plVar3") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (&& "&&") (identifier "bVar5"))) (; ";")) (expression_statement "plVar2 = plVar3;" (assignment_expression "plVar2 = plVar3" (identifier "plVar2") (= "=") (identifier "plVar3")) (; ";")) (if_statement "if (bVar1) {\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n      if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }\n      plVar2 = (long *)0x0;\n      if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }\n      bVar5 = iVar4 == -1 && bVar1;\n    }" ({ "{") (if_statement "if ((int *)plVar3[2] < (int *)plVar3[3]) {\n        iVar4 = *(int *)plVar3[2];\n      }\n      else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" (if "if") (parenthesized_expression "((int *)plVar3[2] < (int *)plVar3[3])" (( "(") (binary_expression "(int *)plVar3[2] < (int *)plVar3[3]" (cast_expression "(int *)plVar3[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar3[2]" (identifier "plVar3") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(int *)plVar3[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar3[3]" (identifier "plVar3") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n        iVar4 = *(int *)plVar3[2];\n      }" ({ "{") (expression_statement "iVar4 = *(int *)plVar3[2];" (assignment_expression "iVar4 = *(int *)plVar3[2]" (identifier "iVar4") (= "=") (pointer_expression "*(int *)plVar3[2]" (* "*") (cast_expression "(int *)plVar3[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar3[2]" (identifier "plVar3") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" (else "else") (compound_statement "{\n        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);\n      }" ({ "{") (expression_statement "iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);" (assignment_expression "iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*plVar3 + 0x48))(plVar3)" (parenthesized_expression "(**(code **)(*plVar3 + 0x48))" (( "(") (pointer_expression "**(code **)(*plVar3 + 0x48)" (* "*") (pointer_expression "*(code **)(*plVar3 + 0x48)" (* "*") (cast_expression "(code **)(*plVar3 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar3 + 0x48)" (( "(") (binary_expression "*plVar3 + 0x48" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "(plVar3)" (( "(") (identifier "plVar3") () ")")))) (; ";")) (} "}")))) (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" (identifier "plVar2") (= "=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (iVar4 != -1) {\n        plVar2 = plVar3;\n      }" (if "if") (parenthesized_expression "(iVar4 != -1)" (( "(") (binary_expression "iVar4 != -1" (identifier "iVar4") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n        plVar2 = plVar3;\n      }" ({ "{") (expression_statement "plVar2 = plVar3;" (assignment_expression "plVar2 = plVar3" (identifier "plVar2") (= "=") (identifier "plVar3")) (; ";")) (} "}"))) (expression_statement "bVar5 = iVar4 == -1 && bVar1;" (assignment_expression "bVar5 = iVar4 == -1 && bVar1" (identifier "bVar5") (= "=") (binary_expression "iVar4 == -1 && bVar1" (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) (&& "&&") (identifier "bVar1"))) (; ";")) (} "}"))) (expression_statement "bVar1 = (int)param_5 == -1;" (assignment_expression "bVar1 = (int)param_5 == -1" (identifier "bVar1") (= "=") (binary_expression "(int)param_5 == -1" (cast_expression "(int)param_5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_5")) (== "==") (number_literal "-1"))) (; ";")) (if_statement "if ((param_4 != (long *)0x0) && (bVar1)) {\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }" (if "if") (parenthesized_expression "((param_4 != (long *)0x0) && (bVar1))" (( "(") (binary_expression "(param_4 != (long *)0x0) && (bVar1)" (parenthesized_expression "(param_4 != (long *)0x0)" (( "(") (binary_expression "param_4 != (long *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")"))) () ")")) (compound_statement "{\n      if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }\n      bVar1 = iVar4 == -1;\n    }" ({ "{") (if_statement "if ((int *)param_4[2] < (int *)param_4[3]) {\n        iVar4 = *(int *)param_4[2];\n      }\n      else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" (if "if") (parenthesized_expression "((int *)param_4[2] < (int *)param_4[3])" (( "(") (binary_expression "(int *)param_4[2] < (int *)param_4[3]" (cast_expression "(int *)param_4[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(int *)param_4[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_4[3]" (identifier "param_4") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n        iVar4 = *(int *)param_4[2];\n      }" ({ "{") (expression_statement "iVar4 = *(int *)param_4[2];" (assignment_expression "iVar4 = *(int *)param_4[2]" (identifier "iVar4") (= "=") (pointer_expression "*(int *)param_4[2]" (* "*") (cast_expression "(int *)param_4[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" (else "else") (compound_statement "{\n        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);\n      }" ({ "{") (expression_statement "iVar4 = (**(code **)(*param_4 + 0x48))(param_4);" (assignment_expression "iVar4 = (**(code **)(*param_4 + 0x48))(param_4)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*param_4 + 0x48))(param_4)" (parenthesized_expression "(**(code **)(*param_4 + 0x48))" (( "(") (pointer_expression "**(code **)(*param_4 + 0x48)" (* "*") (pointer_expression "*(code **)(*param_4 + 0x48)" (* "*") (cast_expression "(code **)(*param_4 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_4 + 0x48)" (( "(") (binary_expression "*param_4 + 0x48" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (} "}")))) (expression_statement "bVar1 = iVar4 == -1;" (assignment_expression "bVar1 = iVar4 == -1" (identifier "bVar1") (= "=") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1"))) (; ";")) (} "}"))) (if_statement "if (bVar5 == bVar1) {\n      *param_7 = *param_7 | 2;\n    }" (if "if") (parenthesized_expression "(bVar5 == bVar1)" (( "(") (binary_expression "bVar5 == bVar1" (identifier "bVar5") (== "==") (identifier "bVar1")) () ")")) (compound_statement "{\n      *param_7 = *param_7 | 2;\n    }" ({ "{") (expression_statement "*param_7 = *param_7 | 2;" (assignment_expression "*param_7 = *param_7 | 2" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (binary_expression "*param_7 | 2" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (| "|") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;" (assignment_expression "auVar6._8_8_ = auVar6._8_8_ & 0xffffffff" (field_expression "auVar6._8_8_" (identifier "auVar6") (. ".") (field_identifier "_8_8_")) (= "=") (binary_expression "auVar6._8_8_ & 0xffffffff" (field_expression "auVar6._8_8_" (identifier "auVar6") (. ".") (field_identifier "_8_8_")) (& "&") (number_literal "0xffffffff"))) (; ";")) (expression_statement "auVar6._0_8_ = plVar2;" (assignment_expression "auVar6._0_8_ = plVar2" (field_expression "auVar6._0_8_" (identifier "auVar6") (. ".") (field_identifier "_0_8_")) (= "=") (identifier "plVar2")) (; ";")) (return_statement "return auVar6;" (return "return") (identifier "auVar6") (; ";")) (} "}"))) (expression_statement "auVar6 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10);" (assignment_expression "auVar6 = (**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10)" (identifier "auVar6") (= "=") (call_expression "(**(code **)(*param_1 + 0x40))\n                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10)" (parenthesized_expression "(**(code **)(*param_1 + 0x40))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x40)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x40)" (* "*") (cast_expression "(code **)(*param_1 + 0x40)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x40)" (( "(") (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x40")) () ")"))))) () ")")) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,\n                      (int)param_10)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (identifier "iVar4") (, ",") (cast_expression "(int)param_10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_10")) () ")")))) (; ";")) (return_statement "return auVar6;" (return "return") (identifier "auVar6") (; ";")) (} "}"))

/* std::time_get<wchar_t, std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >
   >::get(std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >,
   std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, std::ios_base&,
   std::_Ios_Iostate&, tm*, char, char) const */

type_2  [16]
std::time_get<var_2,var_10::istreambuf_iterator<var_2,var_10::var_1<var_2>>>::var_3
          (var_4 *var_5,undefined8 param_2,undefined8 param_3,var_4 *var_6,undefined8 param_5,
          var_4 var_11,var_7 *var_8,undefined8 param_8,char param_9,char var_12)

{
  bool var_18;
  type_1 *pcVar2;
  long *var_15;
  long *plVar4;
  int var_17;
  bool var_16;
  type_2 auVar7 [16];
  int var_14;
  type_3 local_48;
  int local_44;
  int local_40;
  type_3 local_3c;
  
  var_17 = (int)param_9;
  if (*(type_4 **)(*var_5 + 0x40) == (type_4 *)PTR_do_get_0043dbf0) {
    pcVar2 = var_9<var_10::type_1<var_2>>((type_5 *)(var_11 + 0xd0));
    *var_8 = 0;
    local_48 = (**(type_4 **)(*(long *)pcVar2 + 0x50))(pcVar2,0x25);
    if (var_12 == '\0') {
      local_40 = 0;
      local_44 = var_17;
    }
    else {
      local_3c = 0;
      local_44 = (int)var_12;
      local_40 = var_17;
    }
    auVar7 = var_13
                       (var_5,param_2,param_3,var_6,param_5,var_11,var_8,param_8,&local_48);
    var_15 = auVar7._0_8_;
    var_14 = auVar7._8_4_;
    var_16 = var_14 == -1;
    var_18 = var_15 != (long *)0x0 && var_16;
    plVar4 = var_15;
    if (var_18) {
      if ((int *)var_15[2] < (int *)var_15[3]) {
        var_17 = *(int *)var_15[2];
      }
      else {
        var_17 = (**(type_4 **)(*var_15 + 0x48))(var_15);
      }
      plVar4 = (long *)0x0;
      if (var_17 != -1) {
        plVar4 = var_15;
      }
      var_16 = var_17 == -1 && var_18;
    }
    var_18 = (int)param_5 == -1;
    if ((var_6 != (long *)0x0) && (var_18)) {
      if ((int *)var_6[2] < (int *)var_6[3]) {
        var_17 = *(int *)var_6[2];
      }
      else {
        var_17 = (**(type_4 **)(*var_6 + 0x48))(var_6);
      }
      var_18 = var_17 == -1;
    }
    if (var_16 == var_18) {
      *var_8 = *var_8 | 2;
    }
    auVar7._8_8_ = auVar7._8_8_ & 0xffffffff;
    auVar7._0_8_ = plVar4;
    return auVar7;
  }
  auVar7 = (**(type_4 **)(*var_5 + 0x40))
                     (var_5,param_2,param_3,var_6,param_5,var_11,var_8,param_8,var_17,
                      (int)var_12);
  return auVar7;
}


(translation_unit (expression_statement (subscript_expression argument: (identifier) index: (number_literal)) (MISSING ";")) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (identifier) (ERROR (identifier)) (identifier) (ERROR (identifier)) (binary_expression left: (identifier) right: (identifier)) (identifier) (ERROR (identifier)) (ERROR (identifier)) (identifier) (binary_expression left: (identifier) right: (identifier)) (identifier) (ERROR (identifier)) (ERROR (identifier)) (identifier) (ERROR (identifier)) (identifier))) (MISSING ";")) (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (identifier))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (return_statement (identifier))))

undefined1  [16]
MASKED(long *param_1,undefined8 param_2,undefined8 param_3,long *param_4,undefined8 param_5,
            long param_6,uint *param_7,undefined8 param_8,char param_9,char param_10)

{
  bool bVar1;
  long *plVar2;
  long *plVar3;
  int iVar4;
  bool bVar5;
  undefined1 auVar6 [16];
  int local_50;
  undefined4 local_48;
  int local_44;
  int local_40;
  undefined4 local_3c;
  
  iVar4 = (int)param_9;
  if (*(code **)(*param_1 + 0x40) == (code *)PTR_FUN_0043dbf0) {
    plVar2 = (long *)FUN_00327630(param_6 + 0xd0);
    *param_7 = 0;
    local_48 = (**(code **)(*plVar2 + 0x50))(plVar2,0x25);
    if (param_10 == '\0') {
      local_40 = 0;
      local_44 = iVar4;
    }
    else {
      local_3c = 0;
      local_44 = (int)param_10;
      local_40 = iVar4;
    }
    auVar6 = FUN_00340d90(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)
    ;
    plVar3 = auVar6._0_8_;
    local_50 = auVar6._8_4_;
    bVar5 = local_50 == -1;
    bVar1 = plVar3 != (long *)0x0 && bVar5;
    plVar2 = plVar3;
    if (bVar1) {
      if ((int *)plVar3[2] < (int *)plVar3[3]) {
        iVar4 = *(int *)plVar3[2];
      }
      else {
        iVar4 = (**(code **)(*plVar3 + 0x48))(plVar3);
      }
      plVar2 = (long *)0x0;
      if (iVar4 != -1) {
        plVar2 = plVar3;
      }
      bVar5 = iVar4 == -1 && bVar1;
    }
    bVar1 = (int)param_5 == -1;
    if ((param_4 != (long *)0x0) && (bVar1)) {
      if ((int *)param_4[2] < (int *)param_4[3]) {
        iVar4 = *(int *)param_4[2];
      }
      else {
        iVar4 = (**(code **)(*param_4 + 0x48))(param_4);
      }
      bVar1 = iVar4 == -1;
    }
    if (bVar5 == bVar1) {
      *param_7 = *param_7 | 2;
    }
    auVar6._8_8_ = auVar6._8_8_ & 0xffffffff;
    auVar6._0_8_ = plVar2;
    return auVar6;
  }
  auVar6 = (**(code **)(*param_1 + 0x40))
                     (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,iVar4,
                      (int)param_10);
  return auVar6;
}

