
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::time_get<char, std::istreambuf_iterator<char, std::char_traits<char> >
   >::do_get_date(std::istreambuf_iterator<char, std::char_traits<char> >,
   std::istreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, tm*)
   const */

void std::time_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>::do_get_date
               (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
               int *param_5,int param_6,int param_7,uint *param_8,undefined4 param_9)

{
  __timepunct *p_Var1;
  int iVar2;
  bool bVar3;
  int *piVar4;
  bool bVar5;
  int *local_24;
  int iStack_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x265649;
  p_Var1 = use_facet<std::__timepunct<char>>((locale *)(param_7 + 0x6c));
  _M_extract_via_format
            (&local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,
             *(undefined4 *)(*(int *)(p_Var1 + 8) + 8));
  bVar5 = iStack_20 == -1;
  bVar3 = local_24 != (int *)0x0 && bVar5;
  piVar4 = local_24;
  if ((bVar3) && (bVar5 = false, (uint)local_24[3] <= (uint)local_24[2])) {
    iVar2 = (**(code **)(*local_24 + 0x24))(local_24);
    if (iVar2 == -1) {
      local_24 = (int *)0x0;
    }
    bVar5 = iVar2 == -1 && bVar3;
    piVar4 = local_24;
  }
  bVar3 = param_6 == -1;
  if (((param_5 != (int *)0x0) && (bVar3)) && (bVar3 = false, (uint)param_5[3] <= (uint)param_5[2]))
  {
    iVar2 = (**(code **)(*param_5 + 0x24))(param_5);
    bVar3 = iVar2 == -1;
  }
  if (bVar5 == bVar3) {
    *param_8 = *param_8 | 2;
  }
  *param_1 = piVar4;
  param_1[1] = iStack_20;
  return;
}



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

void FUN_00265640(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,
                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)

{
  int iVar1;
  bool bVar2;
  bool bVar3;
  undefined4 *unaff_retaddr;
  int *local_28;
  int local_24 [4];
  undefined4 uStack_14;
  
  uStack_14 = 0x265649;
  iVar1 = FUN_001fd780(param_7 + 0x1b);
  FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,
               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));
  bVar3 = local_24[0] == -1;
  bVar2 = local_28 != (int *)0x0 && bVar3;
  if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {
    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);
    if (iVar1 == -1) {
      local_28 = (int *)0x0;
    }
    bVar3 = iVar1 == -1 && bVar2;
  }
  bVar2 = param_5 == -1;
  if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))
  {
    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);
    bVar2 = iVar1 == -1;
  }
  if (bVar3 == bVar2) {
    *param_7 = *param_7 | 2;
  }
  *unaff_retaddr = local_28;
  unaff_retaddr[1] = local_24[0];
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1299b7
SUB ESP,0x28
MOV EAX,dword ptr [ESP + 0x54]
MOV ESI,dword ptr [ESP + 0x44]
MOV EDI,dword ptr [ESP + 0x48]
ADD EAX,0x6c
PUSH EAX
CALL 0x001fd780
LEA EBP,[ESP + 0x18]
POP EDX
POP ECX
MOV EAX,dword ptr [EAX + 0x8]
PUSH dword ptr [EAX + 0x8]
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x5c]
PUSH EDI
PUSH ESI
PUSH dword ptr [ESP + 0x5c]
PUSH EBP
CALL 0x002645c0
MOV EDI,dword ptr [ESP + 0x38]
MOV ESI,dword ptr [ESP + 0x34]
ADD ESP,0x2c
CMP EDI,-0x1
MOV EBP,ESI
SETZ BL
TEST ESI,ESI
SETNZ DL
AND DL,BL
JNZ 0x00265710
MOV EDX,dword ptr [ESP + 0x40]
CMP dword ptr [ESP + 0x44],-0x1
SETZ AL
TEST EDX,EDX
JZ 0x002656c3
TEST AL,AL
JNZ 0x002656e8
CMP BL,AL
JNZ 0x002656ce
MOV EAX,dword ptr [ESP + 0x4c]
OR dword ptr [EAX],0x2
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],EBP
MOV dword ptr [EAX + 0x4],EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
XOR EAX,EAX
MOV ECX,dword ptr [EDX + 0xc]
CMP dword ptr [EDX + 0x8],ECX
JC 0x002656c3
SUB ESP,0xc
MOV EAX,dword ptr [EDX]
PUSH dword ptr [ESP + 0x4c]
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
CMP EAX,-0x1
SETZ AL
JMP 0x002656c3
XOR EBX,EBX
MOV EAX,dword ptr [ESI + 0xc]
CMP dword ptr [ESI + 0x8],EAX
JC 0x002656af
MOV byte ptr [ESP + 0x7],DL
SUB ESP,0xc
MOV EAX,dword ptr [ESI]
PUSH ESI
CALL dword ptr [EAX + 0x24]
MOVZX EDX,byte ptr [ESP + 0x17]
ADD ESP,0x10
CMP EAX,-0x1
MOV EAX,0x0
CMOVZ EBX,EDX
CMOVZ EBP,EAX
JMP 0x002656af
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00265640(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,\n                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)\n\n{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  undefined4 *unaff_retaddr;\n  int *local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x265649;\n  iVar1 = FUN_001fd780(param_7 + 0x1b);\n  FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));\n  bVar3 = local_24[0] == -1;\n  bVar2 = local_28 != (int *)0x0 && bVar3;\n  if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }\n  bVar2 = param_5 == -1;\n  if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))\n  {\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }\n  if (bVar3 == bVar2) {\n    *param_7 = *param_7 | 2;\n  }\n  *unaff_retaddr = local_28;\n  unaff_retaddr[1] = local_24[0];\n  return;\n}\n\n" comment (function_definition "void FUN_00265640(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,\n                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)\n\n{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  undefined4 *unaff_retaddr;\n  int *local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x265649;\n  iVar1 = FUN_001fd780(param_7 + 0x1b);\n  FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));\n  bVar3 = local_24[0] == -1;\n  bVar2 = local_28 != (int *)0x0 && bVar3;\n  if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }\n  bVar2 = param_5 == -1;\n  if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))\n  {\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }\n  if (bVar3 == bVar2) {\n    *param_7 = *param_7 | 2;\n  }\n  *unaff_retaddr = local_28;\n  unaff_retaddr[1] = local_24[0];\n  return;\n}" primitive_type (function_declarator "FUN_00265640(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,\n                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,\n                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "uint *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  undefined4 *unaff_retaddr;\n  int *local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x265649;\n  iVar1 = FUN_001fd780(param_7 + 0x1b);\n  FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));\n  bVar3 = local_24[0] == -1;\n  bVar2 = local_28 != (int *)0x0 && bVar3;\n  if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }\n  bVar2 = param_5 == -1;\n  if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))\n  {\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }\n  if (bVar3 == bVar2) {\n    *param_7 = *param_7 | 2;\n  }\n  *unaff_retaddr = local_28;\n  unaff_retaddr[1] = local_24[0];\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "int *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24 [4];" primitive_type (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x265649;" (assignment_expression "uStack_14 = 0x265649" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_001fd780(param_7 + 0x1b);" (assignment_expression "iVar1 = FUN_001fd780(param_7 + 0x1b)" identifier = (call_expression "FUN_001fd780(param_7 + 0x1b)" identifier (argument_list "(param_7 + 0x1b)" ( (binary_expression "param_7 + 0x1b" identifier + number_literal) )))) ;) (expression_statement "FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));" (call_expression "FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8))" identifier (argument_list "(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8))" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(*(int *)(iVar1 + 8) + 8)" * (cast_expression "(undefined4 *)(*(int *)(iVar1 + 8) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 8) + 8)" ( (binary_expression "*(int *)(iVar1 + 8) + 8" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) + number_literal) )))) ))) ;) (expression_statement "bVar3 = local_24[0] == -1;" (assignment_expression "bVar3 = local_24[0] == -1" identifier = (binary_expression "local_24[0] == -1" (subscript_expression "local_24[0]" identifier [ number_literal ]) == number_literal)) ;) (expression_statement "bVar2 = local_28 != (int *)0x0 && bVar3;" (assignment_expression "bVar2 = local_28 != (int *)0x0 && bVar3" identifier = (binary_expression "local_28 != (int *)0x0 && bVar3" (binary_expression "local_28 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && identifier)) ;) (if_statement "if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }" if (parenthesized_expression "((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2]))" ( (binary_expression "(bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])" (parenthesized_expression "(bVar2)" ( identifier )) && (parenthesized_expression "(bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])" ( (comma_expression "bVar3 = false, (uint)local_28[3] <= (uint)local_28[2]" (assignment_expression "bVar3 = false" identifier = false) , (binary_expression "(uint)local_28[3] <= (uint)local_28[2]" (cast_expression "(uint)local_28[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_28[3]" identifier [ number_literal ])) <= (cast_expression "(uint)local_28[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_28[2]" identifier [ number_literal ])))) ))) )) (compound_statement "{\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }" { (expression_statement "iVar1 = (**(code **)(*local_28 + 0x24))(local_28);" (assignment_expression "iVar1 = (**(code **)(*local_28 + 0x24))(local_28)" identifier = (call_expression "(**(code **)(*local_28 + 0x24))(local_28)" (parenthesized_expression "(**(code **)(*local_28 + 0x24))" ( (pointer_expression "**(code **)(*local_28 + 0x24)" * (pointer_expression "*(code **)(*local_28 + 0x24)" * (cast_expression "(code **)(*local_28 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*local_28 + 0x24)" ( (binary_expression "*local_28 + 0x24" (pointer_expression "*local_28" * identifier) + number_literal) ))))) )) (argument_list "(local_28)" ( identifier )))) ;) (if_statement "if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      local_28 = (int *)0x0;\n    }" { (expression_statement "local_28 = (int *)0x0;" (assignment_expression "local_28 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "bVar3 = iVar1 == -1 && bVar2;" (assignment_expression "bVar3 = iVar1 == -1 && bVar2" identifier = (binary_expression "iVar1 == -1 && bVar2" (binary_expression "iVar1 == -1" identifier == number_literal) && identifier)) ;) })) (expression_statement "bVar2 = param_5 == -1;" (assignment_expression "bVar2 = param_5 == -1" identifier = (binary_expression "param_5 == -1" identifier == number_literal)) ;) (if_statement "if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))\n  {\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }" if (parenthesized_expression "(((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))" ( (binary_expression "((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2])" (parenthesized_expression "((param_4 != (int *)0x0) && (bVar2))" ( (binary_expression "(param_4 != (int *)0x0) && (bVar2)" (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bVar2)" ( identifier ))) )) && (parenthesized_expression "(bVar2 = false, (uint)param_4[3] <= (uint)param_4[2])" ( (comma_expression "bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]" (assignment_expression "bVar2 = false" identifier = false) , (binary_expression "(uint)param_4[3] <= (uint)param_4[2]" (cast_expression "(uint)param_4[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_4[3]" identifier [ number_literal ])) <= (cast_expression "(uint)param_4[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_4[2]" identifier [ number_literal ])))) ))) )) (compound_statement "{\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }" { (expression_statement "iVar1 = (**(code **)(*param_4 + 0x24))(param_4);" (assignment_expression "iVar1 = (**(code **)(*param_4 + 0x24))(param_4)" identifier = (call_expression "(**(code **)(*param_4 + 0x24))(param_4)" (parenthesized_expression "(**(code **)(*param_4 + 0x24))" ( (pointer_expression "**(code **)(*param_4 + 0x24)" * (pointer_expression "*(code **)(*param_4 + 0x24)" * (cast_expression "(code **)(*param_4 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 0x24)" ( (binary_expression "*param_4 + 0x24" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "bVar2 = iVar1 == -1;" (assignment_expression "bVar2 = iVar1 == -1" identifier = (binary_expression "iVar1 == -1" identifier == number_literal)) ;) })) (if_statement "if (bVar3 == bVar2) {\n    *param_7 = *param_7 | 2;\n  }" if (parenthesized_expression "(bVar3 == bVar2)" ( (binary_expression "bVar3 == bVar2" 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 "*unaff_retaddr = local_28;" (assignment_expression "*unaff_retaddr = local_28" (pointer_expression "*unaff_retaddr" * identifier) = identifier) ;) (expression_statement "unaff_retaddr[1] = local_24[0];" (assignment_expression "unaff_retaddr[1] = local_24[0]" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) = (subscript_expression "local_24[0]" identifier [ number_literal ])) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::time_get<char, std::istreambuf_iterator<char, std::char_traits<char> >\n   >::do_get_date(std::istreambuf_iterator<char, std::char_traits<char> >,\n   std::istreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, tm*)\n   const */\n\nvoid std::time_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>::do_get_date\n               (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               int *param_5,int param_6,int param_7,uint *param_8,undefined4 param_9)\n\n{\n  __timepunct *p_Var1;\n  int iVar2;\n  bool bVar3;\n  int *piVar4;\n  bool bVar5;\n  int *local_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x265649;\n  p_Var1 = use_facet<std::__timepunct<char>>((locale *)(param_7 + 0x6c));\n  _M_extract_via_format\n            (&local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n             *(undefined4 *)(*(int *)(p_Var1 + 8) + 8));\n  bVar5 = iStack_20 == -1;\n  bVar3 = local_24 != (int *)0x0 && bVar5;\n  piVar4 = local_24;\n  if ((bVar3) && (bVar5 = false, (uint)local_24[3] <= (uint)local_24[2])) {\n    iVar2 = (**(code **)(*local_24 + 0x24))(local_24);\n    if (iVar2 == -1) {\n      local_24 = (int *)0x0;\n    }\n    bVar5 = iVar2 == -1 && bVar3;\n    piVar4 = local_24;\n  }\n  bVar3 = param_6 == -1;\n  if (((param_5 != (int *)0x0) && (bVar3)) && (bVar3 = false, (uint)param_5[3] <= (uint)param_5[2]))\n  {\n    iVar2 = (**(code **)(*param_5 + 0x24))(param_5);\n    bVar3 = iVar2 == -1;\n  }\n  if (bVar5 == bVar3) {\n    *param_8 = *param_8 | 2;\n  }\n  *param_1 = piVar4;\n  param_1[1] = iStack_20;\n  return;\n}\n\n" comment comment (declaration "void std::time_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>::do_get_date\n               (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               int *param_5,int param_6,int param_7,uint *param_8,undefined4 param_9)\n\n{\n  __timepunct *p_Var1;" primitive_type (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "std::char_traits<char>>>::do_get_date\n               (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               int *param_5,int param_6,int param_7,uint *param_8,undefined4 param_9)\n\n{\n  __timepunct" identifier : : identifier < primitive_type >> > : : (function_declarator "do_get_date\n               (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               int *param_5,int param_6,int param_7,uint *param_8,undefined4 param_9)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               int *param_5,int param_6,int param_7,uint *param_8,undefined4 param_9)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) , (parameter_declaration "uint *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) , (parameter_declaration "undefined4 param_9" type_identifier identifier) ))) { identifier) (pointer_declarator "*p_Var1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "int *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int iStack_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x265649;" (assignment_expression "uStack_14 = 0x265649" identifier = number_literal) ;) (expression_statement "p_Var1 = use_facet<std::__timepunct<char>>((locale *)(param_7 + 0x6c));" (update_expression "p_Var1 = use_facet<std::__timepunct<char>>((locale *)(param_7 + 0x6c))" (binary_expression "p_Var1 = use_facet<std::__timepunct<char>>((locale *)(param_7 + 0x6c))" (assignment_expression "p_Var1 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::__timepunct" : : identifier) < (binary_expression "char>>((locale *)(param_7 + 0x6c))" identifier >> (parenthesized_expression "((locale *)(param_7 + 0x6c))" ( (cast_expression "(locale *)(param_7 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7 + 0x6c)" ( (binary_expression "param_7 + 0x6c" identifier + number_literal) ))) )))) --) ;) (expression_statement "_M_extract_via_format\n            (&local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n             *(undefined4 *)(*(int *)(p_Var1 + 8) + 8));" (call_expression "_M_extract_via_format\n            (&local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n             *(undefined4 *)(*(int *)(p_Var1 + 8) + 8))" identifier (argument_list "(&local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n             *(undefined4 *)(*(int *)(p_Var1 + 8) + 8))" ( (pointer_expression "&local_24" & identifier) , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(*(int *)(p_Var1 + 8) + 8)" * (cast_expression "(undefined4 *)(*(int *)(p_Var1 + 8) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(p_Var1 + 8) + 8)" ( (binary_expression "*(int *)(p_Var1 + 8) + 8" (pointer_expression "*(int *)(p_Var1 + 8)" * (cast_expression "(int *)(p_Var1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p_Var1 + 8)" ( (binary_expression "p_Var1 + 8" identifier + number_literal) )))) + number_literal) )))) ))) ;) (expression_statement "bVar5 = iStack_20 == -1;" (assignment_expression "bVar5 = iStack_20 == -1" identifier = (binary_expression "iStack_20 == -1" identifier == number_literal)) ;) (expression_statement "bVar3 = local_24 != (int *)0x0 && bVar5;" (assignment_expression "bVar3 = local_24 != (int *)0x0 && bVar5" identifier = (binary_expression "local_24 != (int *)0x0 && bVar5" (binary_expression "local_24 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && identifier)) ;) (expression_statement "piVar4 = local_24;" (assignment_expression "piVar4 = local_24" identifier = identifier) ;) (if_statement "if ((bVar3) && (bVar5 = false, (uint)local_24[3] <= (uint)local_24[2])) {\n    iVar2 = (**(code **)(*local_24 + 0x24))(local_24);\n    if (iVar2 == -1) {\n      local_24 = (int *)0x0;\n    }\n    bVar5 = iVar2 == -1 && bVar3;\n    piVar4 = local_24;\n  }" if (parenthesized_expression "((bVar3) && (bVar5 = false, (uint)local_24[3] <= (uint)local_24[2]))" ( (binary_expression "(bVar3) && (bVar5 = false, (uint)local_24[3] <= (uint)local_24[2])" (parenthesized_expression "(bVar3)" ( identifier )) && (parenthesized_expression "(bVar5 = false, (uint)local_24[3] <= (uint)local_24[2])" ( (comma_expression "bVar5 = false, (uint)local_24[3] <= (uint)local_24[2]" (assignment_expression "bVar5 = false" identifier = false) , (binary_expression "(uint)local_24[3] <= (uint)local_24[2]" (cast_expression "(uint)local_24[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_24[3]" identifier [ number_literal ])) <= (cast_expression "(uint)local_24[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_24[2]" identifier [ number_literal ])))) ))) )) (compound_statement "{\n    iVar2 = (**(code **)(*local_24 + 0x24))(local_24);\n    if (iVar2 == -1) {\n      local_24 = (int *)0x0;\n    }\n    bVar5 = iVar2 == -1 && bVar3;\n    piVar4 = local_24;\n  }" { (expression_statement "iVar2 = (**(code **)(*local_24 + 0x24))(local_24);" (assignment_expression "iVar2 = (**(code **)(*local_24 + 0x24))(local_24)" identifier = (call_expression "(**(code **)(*local_24 + 0x24))(local_24)" (parenthesized_expression "(**(code **)(*local_24 + 0x24))" ( (pointer_expression "**(code **)(*local_24 + 0x24)" * (pointer_expression "*(code **)(*local_24 + 0x24)" * (cast_expression "(code **)(*local_24 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*local_24 + 0x24)" ( (binary_expression "*local_24 + 0x24" (pointer_expression "*local_24" * identifier) + number_literal) ))))) )) (argument_list "(local_24)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) {\n      local_24 = (int *)0x0;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      local_24 = (int *)0x0;\n    }" { (expression_statement "local_24 = (int *)0x0;" (assignment_expression "local_24 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "bVar5 = iVar2 == -1 && bVar3;" (assignment_expression "bVar5 = iVar2 == -1 && bVar3" identifier = (binary_expression "iVar2 == -1 && bVar3" (binary_expression "iVar2 == -1" identifier == number_literal) && identifier)) ;) (expression_statement "piVar4 = local_24;" (assignment_expression "piVar4 = local_24" identifier = identifier) ;) })) (expression_statement "bVar3 = param_6 == -1;" (assignment_expression "bVar3 = param_6 == -1" identifier = (binary_expression "param_6 == -1" identifier == number_literal)) ;) (if_statement "if (((param_5 != (int *)0x0) && (bVar3)) && (bVar3 = false, (uint)param_5[3] <= (uint)param_5[2]))\n  {\n    iVar2 = (**(code **)(*param_5 + 0x24))(param_5);\n    bVar3 = iVar2 == -1;\n  }" if (parenthesized_expression "(((param_5 != (int *)0x0) && (bVar3)) && (bVar3 = false, (uint)param_5[3] <= (uint)param_5[2]))" ( (binary_expression "((param_5 != (int *)0x0) && (bVar3)) && (bVar3 = false, (uint)param_5[3] <= (uint)param_5[2])" (parenthesized_expression "((param_5 != (int *)0x0) && (bVar3))" ( (binary_expression "(param_5 != (int *)0x0) && (bVar3)" (parenthesized_expression "(param_5 != (int *)0x0)" ( (binary_expression "param_5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bVar3)" ( identifier ))) )) && (parenthesized_expression "(bVar3 = false, (uint)param_5[3] <= (uint)param_5[2])" ( (comma_expression "bVar3 = false, (uint)param_5[3] <= (uint)param_5[2]" (assignment_expression "bVar3 = false" identifier = false) , (binary_expression "(uint)param_5[3] <= (uint)param_5[2]" (cast_expression "(uint)param_5[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_5[3]" identifier [ number_literal ])) <= (cast_expression "(uint)param_5[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_5[2]" identifier [ number_literal ])))) ))) )) (compound_statement "{\n    iVar2 = (**(code **)(*param_5 + 0x24))(param_5);\n    bVar3 = iVar2 == -1;\n  }" { (expression_statement "iVar2 = (**(code **)(*param_5 + 0x24))(param_5);" (assignment_expression "iVar2 = (**(code **)(*param_5 + 0x24))(param_5)" identifier = (call_expression "(**(code **)(*param_5 + 0x24))(param_5)" (parenthesized_expression "(**(code **)(*param_5 + 0x24))" ( (pointer_expression "**(code **)(*param_5 + 0x24)" * (pointer_expression "*(code **)(*param_5 + 0x24)" * (cast_expression "(code **)(*param_5 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_5 + 0x24)" ( (binary_expression "*param_5 + 0x24" (pointer_expression "*param_5" * identifier) + number_literal) ))))) )) (argument_list "(param_5)" ( identifier )))) ;) (expression_statement "bVar3 = iVar2 == -1;" (assignment_expression "bVar3 = iVar2 == -1" identifier = (binary_expression "iVar2 == -1" identifier == number_literal)) ;) })) (if_statement "if (bVar5 == bVar3) {\n    *param_8 = *param_8 | 2;\n  }" if (parenthesized_expression "(bVar5 == bVar3)" ( (binary_expression "bVar5 == bVar3" identifier == identifier) )) (compound_statement "{\n    *param_8 = *param_8 | 2;\n  }" { (expression_statement "*param_8 = *param_8 | 2;" (assignment_expression "*param_8 = *param_8 | 2" (pointer_expression "*param_8" * identifier) = (binary_expression "*param_8 | 2" (pointer_expression "*param_8" * identifier) | number_literal)) ;) })) (expression_statement "*param_1 = piVar4;" (assignment_expression "*param_1 = piVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iStack_20;" (assignment_expression "param_1[1] = iStack_20" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_00265640(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,\n                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)\n\n{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  undefined4 *unaff_retaddr;\n  int *local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x265649;\n  iVar1 = FUN_001fd780(param_7 + 0x1b);\n  FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));\n  bVar3 = local_24[0] == -1;\n  bVar2 = local_28 != (int *)0x0 && bVar3;\n  if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }\n  bVar2 = param_5 == -1;\n  if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))\n  {\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }\n  if (bVar3 == bVar2) {\n    *param_7 = *param_7 | 2;\n  }\n  *unaff_retaddr = local_28;\n  unaff_retaddr[1] = local_24[0];\n  return;\n}\n\n" (function_definition "void FUN_00265640(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,\n                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)\n\n{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  undefined4 *unaff_retaddr;\n  int *local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x265649;\n  iVar1 = FUN_001fd780(param_7 + 0x1b);\n  FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));\n  bVar3 = local_24[0] == -1;\n  bVar2 = local_28 != (int *)0x0 && bVar3;\n  if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }\n  bVar2 = param_5 == -1;\n  if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))\n  {\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }\n  if (bVar3 == bVar2) {\n    *param_7 = *param_7 | 2;\n  }\n  *unaff_retaddr = local_28;\n  unaff_retaddr[1] = local_24[0];\n  return;\n}" primitive_type (function_declarator "FUN_00265640(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,\n                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,\n                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "uint *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  undefined4 *unaff_retaddr;\n  int *local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x265649;\n  iVar1 = FUN_001fd780(param_7 + 0x1b);\n  FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));\n  bVar3 = local_24[0] == -1;\n  bVar2 = local_28 != (int *)0x0 && bVar3;\n  if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }\n  bVar2 = param_5 == -1;\n  if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))\n  {\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }\n  if (bVar3 == bVar2) {\n    *param_7 = *param_7 | 2;\n  }\n  *unaff_retaddr = local_28;\n  unaff_retaddr[1] = local_24[0];\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "int *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24 [4];" primitive_type (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x265649;" (assignment_expression "uStack_14 = 0x265649" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_001fd780(param_7 + 0x1b);" (assignment_expression "iVar1 = FUN_001fd780(param_7 + 0x1b)" identifier = (call_expression "FUN_001fd780(param_7 + 0x1b)" identifier (argument_list "(param_7 + 0x1b)" ( (binary_expression "param_7 + 0x1b" identifier + number_literal) )))) ;) (expression_statement "FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));" (call_expression "FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8))" identifier (argument_list "(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8))" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(*(int *)(iVar1 + 8) + 8)" * (cast_expression "(undefined4 *)(*(int *)(iVar1 + 8) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 8) + 8)" ( (binary_expression "*(int *)(iVar1 + 8) + 8" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) + number_literal) )))) ))) ;) (expression_statement "bVar3 = local_24[0] == -1;" (assignment_expression "bVar3 = local_24[0] == -1" identifier = (binary_expression "local_24[0] == -1" (subscript_expression "local_24[0]" identifier [ number_literal ]) == number_literal)) ;) (expression_statement "bVar2 = local_28 != (int *)0x0 && bVar3;" (assignment_expression "bVar2 = local_28 != (int *)0x0 && bVar3" identifier = (binary_expression "local_28 != (int *)0x0 && bVar3" (binary_expression "local_28 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && identifier)) ;) (if_statement "if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }" if (parenthesized_expression "((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2]))" ( (binary_expression "(bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])" (parenthesized_expression "(bVar2)" ( identifier )) && (parenthesized_expression "(bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])" ( (comma_expression "bVar3 = false, (uint)local_28[3] <= (uint)local_28[2]" (assignment_expression "bVar3 = false" identifier = false) , (binary_expression "(uint)local_28[3] <= (uint)local_28[2]" (cast_expression "(uint)local_28[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_28[3]" identifier [ number_literal ])) <= (cast_expression "(uint)local_28[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_28[2]" identifier [ number_literal ])))) ))) )) (compound_statement "{\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }" { (expression_statement "iVar1 = (**(code **)(*local_28 + 0x24))(local_28);" (assignment_expression "iVar1 = (**(code **)(*local_28 + 0x24))(local_28)" identifier = (call_expression "(**(code **)(*local_28 + 0x24))(local_28)" (parenthesized_expression "(**(code **)(*local_28 + 0x24))" ( (pointer_expression "**(code **)(*local_28 + 0x24)" * (pointer_expression "*(code **)(*local_28 + 0x24)" * (cast_expression "(code **)(*local_28 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*local_28 + 0x24)" ( (binary_expression "*local_28 + 0x24" (pointer_expression "*local_28" * identifier) + number_literal) ))))) )) (argument_list "(local_28)" ( identifier )))) ;) (if_statement "if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      local_28 = (int *)0x0;\n    }" { (expression_statement "local_28 = (int *)0x0;" (assignment_expression "local_28 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "bVar3 = iVar1 == -1 && bVar2;" (assignment_expression "bVar3 = iVar1 == -1 && bVar2" identifier = (binary_expression "iVar1 == -1 && bVar2" (binary_expression "iVar1 == -1" identifier == number_literal) && identifier)) ;) })) (expression_statement "bVar2 = param_5 == -1;" (assignment_expression "bVar2 = param_5 == -1" identifier = (binary_expression "param_5 == -1" identifier == number_literal)) ;) (if_statement "if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))\n  {\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }" if (parenthesized_expression "(((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))" ( (binary_expression "((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2])" (parenthesized_expression "((param_4 != (int *)0x0) && (bVar2))" ( (binary_expression "(param_4 != (int *)0x0) && (bVar2)" (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bVar2)" ( identifier ))) )) && (parenthesized_expression "(bVar2 = false, (uint)param_4[3] <= (uint)param_4[2])" ( (comma_expression "bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]" (assignment_expression "bVar2 = false" identifier = false) , (binary_expression "(uint)param_4[3] <= (uint)param_4[2]" (cast_expression "(uint)param_4[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_4[3]" identifier [ number_literal ])) <= (cast_expression "(uint)param_4[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_4[2]" identifier [ number_literal ])))) ))) )) (compound_statement "{\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }" { (expression_statement "iVar1 = (**(code **)(*param_4 + 0x24))(param_4);" (assignment_expression "iVar1 = (**(code **)(*param_4 + 0x24))(param_4)" identifier = (call_expression "(**(code **)(*param_4 + 0x24))(param_4)" (parenthesized_expression "(**(code **)(*param_4 + 0x24))" ( (pointer_expression "**(code **)(*param_4 + 0x24)" * (pointer_expression "*(code **)(*param_4 + 0x24)" * (cast_expression "(code **)(*param_4 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 0x24)" ( (binary_expression "*param_4 + 0x24" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "bVar2 = iVar1 == -1;" (assignment_expression "bVar2 = iVar1 == -1" identifier = (binary_expression "iVar1 == -1" identifier == number_literal)) ;) })) (if_statement "if (bVar3 == bVar2) {\n    *param_7 = *param_7 | 2;\n  }" if (parenthesized_expression "(bVar3 == bVar2)" ( (binary_expression "bVar3 == bVar2" 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 "*unaff_retaddr = local_28;" (assignment_expression "*unaff_retaddr = local_28" (pointer_expression "*unaff_retaddr" * identifier) = identifier) ;) (expression_statement "unaff_retaddr[1] = local_24[0];" (assignment_expression "unaff_retaddr[1] = local_24[0]" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) = (subscript_expression "local_24[0]" identifier [ number_literal ])) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) == LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) && IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( IDENT )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = BOOL) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ))) )) (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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT == LIT) && IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( IDENT ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = BOOL) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ))) )) (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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (return_statement return ;) })))
(function_definition "void FUN_00265640(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,\n                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)\n\n{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  undefined4 *unaff_retaddr;\n  int *local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x265649;\n  iVar1 = FUN_001fd780(param_7 + 0x1b);\n  FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));\n  bVar3 = local_24[0] == -1;\n  bVar2 = local_28 != (int *)0x0 && bVar3;\n  if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }\n  bVar2 = param_5 == -1;\n  if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))\n  {\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }\n  if (bVar3 == bVar2) {\n    *param_7 = *param_7 | 2;\n  }\n  *unaff_retaddr = local_28;\n  unaff_retaddr[1] = local_24[0];\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00265640(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,\n                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)" (identifier "FUN_00265640") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,\n                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "uint *param_7" (type_identifier "uint") (pointer_declarator "*param_7" (* "*") (identifier "param_7"))) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) (, ",") (parameter_declaration "undefined4 param_9" (type_identifier "undefined4") (identifier "param_9")) () ")"))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  undefined4 *unaff_retaddr;\n  int *local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x265649;\n  iVar1 = FUN_001fd780(param_7 + 0x1b);\n  FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));\n  bVar3 = local_24[0] == -1;\n  bVar2 = local_28 != (int *)0x0 && bVar3;\n  if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }\n  bVar2 = param_5 == -1;\n  if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))\n  {\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }\n  if (bVar3 == bVar2) {\n    *param_7 = *param_7 | 2;\n  }\n  *unaff_retaddr = local_28;\n  unaff_retaddr[1] = local_24[0];\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (declaration "undefined4 *unaff_retaddr;" (type_identifier "undefined4") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (declaration "int *local_28;" (primitive_type "int") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "int local_24 [4];" (primitive_type "int") (array_declarator "local_24 [4]" (identifier "local_24") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x265649;" (assignment_expression "uStack_14 = 0x265649" (identifier "uStack_14") (= "=") (number_literal "0x265649")) (; ";")) (expression_statement "iVar1 = FUN_001fd780(param_7 + 0x1b);" (assignment_expression "iVar1 = FUN_001fd780(param_7 + 0x1b)" (identifier "iVar1") (= "=") (call_expression "FUN_001fd780(param_7 + 0x1b)" (identifier "FUN_001fd780") (argument_list "(param_7 + 0x1b)" (( "(") (binary_expression "param_7 + 0x1b" (identifier "param_7") (+ "+") (number_literal "0x1b")) () ")")))) (; ";")) (expression_statement "FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));" (call_expression "FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8))" (identifier "FUN_002645c0") (argument_list "(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,\n               *(undefined4 *)(*(int *)(iVar1 + 8) + 8))" (( "(") (identifier "local_24") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (identifier "param_9") (, ",") (pointer_expression "*(undefined4 *)(*(int *)(iVar1 + 8) + 8)" (* "*") (cast_expression "(undefined4 *)(*(int *)(iVar1 + 8) + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 8) + 8)" (( "(") (binary_expression "*(int *)(iVar1 + 8) + 8" (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "bVar3 = local_24[0] == -1;" (assignment_expression "bVar3 = local_24[0] == -1" (identifier "bVar3") (= "=") (binary_expression "local_24[0] == -1" (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) (== "==") (number_literal "-1"))) (; ";")) (expression_statement "bVar2 = local_28 != (int *)0x0 && bVar3;" (assignment_expression "bVar2 = local_28 != (int *)0x0 && bVar3" (identifier "bVar2") (= "=") (binary_expression "local_28 != (int *)0x0 && bVar3" (binary_expression "local_28 != (int *)0x0" (identifier "local_28") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (&& "&&") (identifier "bVar3"))) (; ";")) (if_statement "if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }" (if "if") (parenthesized_expression "((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2]))" (( "(") (binary_expression "(bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])" (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (&& "&&") (parenthesized_expression "(bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])" (( "(") (comma_expression "bVar3 = false, (uint)local_28[3] <= (uint)local_28[2]" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (, ",") (binary_expression "(uint)local_28[3] <= (uint)local_28[2]" (cast_expression "(uint)local_28[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "local_28[3]" (identifier "local_28") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (cast_expression "(uint)local_28[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "local_28[2]" (identifier "local_28") ([ "[") (number_literal "2") (] "]"))))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);\n    if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }\n    bVar3 = iVar1 == -1 && bVar2;\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(*local_28 + 0x24))(local_28);" (assignment_expression "iVar1 = (**(code **)(*local_28 + 0x24))(local_28)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(*local_28 + 0x24))(local_28)" (parenthesized_expression "(**(code **)(*local_28 + 0x24))" (( "(") (pointer_expression "**(code **)(*local_28 + 0x24)" (* "*") (pointer_expression "*(code **)(*local_28 + 0x24)" (* "*") (cast_expression "(code **)(*local_28 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*local_28 + 0x24)" (( "(") (binary_expression "*local_28 + 0x24" (pointer_expression "*local_28" (* "*") (identifier "local_28")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(local_28)" (( "(") (identifier "local_28") () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n      local_28 = (int *)0x0;\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      local_28 = (int *)0x0;\n    }" ({ "{") (expression_statement "local_28 = (int *)0x0;" (assignment_expression "local_28 = (int *)0x0" (identifier "local_28") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (expression_statement "bVar3 = iVar1 == -1 && bVar2;" (assignment_expression "bVar3 = iVar1 == -1 && bVar2" (identifier "bVar3") (= "=") (binary_expression "iVar1 == -1 && bVar2" (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) (&& "&&") (identifier "bVar2"))) (; ";")) (} "}"))) (expression_statement "bVar2 = param_5 == -1;" (assignment_expression "bVar2 = param_5 == -1" (identifier "bVar2") (= "=") (binary_expression "param_5 == -1" (identifier "param_5") (== "==") (number_literal "-1"))) (; ";")) (if_statement "if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))\n  {\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }" (if "if") (parenthesized_expression "(((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))" (( "(") (binary_expression "((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2])" (parenthesized_expression "((param_4 != (int *)0x0) && (bVar2))" (( "(") (binary_expression "(param_4 != (int *)0x0) && (bVar2)" (parenthesized_expression "(param_4 != (int *)0x0)" (( "(") (binary_expression "param_4 != (int *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")"))) () ")")) (&& "&&") (parenthesized_expression "(bVar2 = false, (uint)param_4[3] <= (uint)param_4[2])" (( "(") (comma_expression "bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (, ",") (binary_expression "(uint)param_4[3] <= (uint)param_4[2]" (cast_expression "(uint)param_4[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_4[3]" (identifier "param_4") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (cast_expression "(uint)param_4[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]"))))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);\n    bVar2 = iVar1 == -1;\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(*param_4 + 0x24))(param_4);" (assignment_expression "iVar1 = (**(code **)(*param_4 + 0x24))(param_4)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(*param_4 + 0x24))(param_4)" (parenthesized_expression "(**(code **)(*param_4 + 0x24))" (( "(") (pointer_expression "**(code **)(*param_4 + 0x24)" (* "*") (pointer_expression "*(code **)(*param_4 + 0x24)" (* "*") (cast_expression "(code **)(*param_4 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_4 + 0x24)" (( "(") (binary_expression "*param_4 + 0x24" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (expression_statement "bVar2 = iVar1 == -1;" (assignment_expression "bVar2 = iVar1 == -1" (identifier "bVar2") (= "=") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1"))) (; ";")) (} "}"))) (if_statement "if (bVar3 == bVar2) {\n    *param_7 = *param_7 | 2;\n  }" (if "if") (parenthesized_expression "(bVar3 == bVar2)" (( "(") (binary_expression "bVar3 == bVar2" (identifier "bVar3") (== "==") (identifier "bVar2")) () ")")) (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 "*unaff_retaddr = local_28;" (assignment_expression "*unaff_retaddr = local_28" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (= "=") (identifier "local_28")) (; ";")) (expression_statement "unaff_retaddr[1] = local_24[0];" (assignment_expression "unaff_retaddr[1] = local_24[0]" (subscript_expression "unaff_retaddr[1]" (identifier "unaff_retaddr") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::time_get<char, std::istreambuf_iterator<char, std::char_traits<char> >
   >::do_get_date(std::istreambuf_iterator<char, std::char_traits<char> >,
   std::istreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, tm*)
   const */

void var_2::time_get<char,var_2::istreambuf_iterator<char,var_2::char_traits<char>>>::do_get_date
               (type_1 *param_1,type_1 param_2,type_1 param_3,type_1 param_4,
               int *var_13,int var_12,int var_4,type_3 *param_8,type_1 param_9)

{
  __timepunct *var_6;
  int var_10;
  bool var_11;
  int *piVar4;
  bool var_9;
  int *var_8;
  int var_7;
  type_1 uStack_14;
  
  uStack_14 = 0x265649;
  var_6 = var_1<var_2::__timepunct<var_3>>((type_2 *)(var_4 + 0x6c));
  var_5
            (&var_8,param_2,param_3,param_4,var_13,var_12,var_4,param_8,param_9,
             *(type_1 *)(*(int *)(var_6 + 8) + 8));
  var_9 = var_7 == -1;
  var_11 = var_8 != (int *)0x0 && var_9;
  piVar4 = var_8;
  if ((var_11) && (var_9 = false, (type_3)var_8[3] <= (type_3)var_8[2])) {
    var_10 = (**(type_4 **)(*var_8 + 0x24))(var_8);
    if (var_10 == -1) {
      var_8 = (int *)0x0;
    }
    var_9 = var_10 == -1 && var_11;
    piVar4 = var_8;
  }
  var_11 = var_12 == -1;
  if (((var_13 != (int *)0x0) && (var_11)) && (var_11 = false, (type_3)var_13[3] <= (type_3)var_13[2]))
  {
    var_10 = (**(type_4 **)(*var_13 + 0x24))(var_13);
    var_11 = var_10 == -1;
  }
  if (var_9 == var_11) {
    *param_8 = *param_8 | 2;
  }
  *param_1 = piVar4;
  param_1[1] = var_7;
  return;
}


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

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

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,int param_5,
                 undefined4 param_6,uint *param_7,undefined4 param_8,undefined4 param_9)

{
  int iVar1;
  bool bVar2;
  bool bVar3;
  undefined4 *unaff_retaddr;
  int *local_28;
  int local_24 [4];
  undefined4 uStack_14;
  
  uStack_14 = 0x265649;
  iVar1 = FUN_001fd780(param_7 + 0x1b);
  FUN_002645c0(local_24,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,
               *(undefined4 *)(*(int *)(iVar1 + 8) + 8));
  bVar3 = local_24[0] == -1;
  bVar2 = local_28 != (int *)0x0 && bVar3;
  if ((bVar2) && (bVar3 = false, (uint)local_28[3] <= (uint)local_28[2])) {
    iVar1 = (**(code **)(*local_28 + 0x24))(local_28);
    if (iVar1 == -1) {
      local_28 = (int *)0x0;
    }
    bVar3 = iVar1 == -1 && bVar2;
  }
  bVar2 = param_5 == -1;
  if (((param_4 != (int *)0x0) && (bVar2)) && (bVar2 = false, (uint)param_4[3] <= (uint)param_4[2]))
  {
    iVar1 = (**(code **)(*param_4 + 0x24))(param_4);
    bVar2 = iVar1 == -1;
  }
  if (bVar3 == bVar2) {
    *param_7 = *param_7 | 2;
  }
  *unaff_retaddr = local_28;
  unaff_retaddr[1] = local_24[0];
  return;
}

