
/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >::_M_get() const [clone .isra.45] */

ulong std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::_M_get(void)

{
  long *plVar1;
  ulong uVar2;
  uint in_ESI;
  long *in_RDI;
  
  uVar2 = (ulong)in_ESI;
  plVar1 = (long *)*in_RDI;
  if ((in_ESI == 0xffffffff) && (plVar1 != (long *)0x0)) {
    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {
      uVar2 = (ulong)*(uint *)plVar1[2];
    }
    else {
      uVar2 = (**(code **)(*plVar1 + 0x48))();
    }
    if ((int)uVar2 == -1) {
      *in_RDI = 0;
      return uVar2;
    }
  }
  return uVar2;
}



ulong FUN_00325370(long *param_1,uint param_2)

{
  long *plVar1;
  ulong uVar2;
  
  uVar2 = (ulong)param_2;
  plVar1 = (long *)*param_1;
  if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {
    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {
      uVar2 = (ulong)*(uint *)plVar1[2];
    }
    else {
      uVar2 = (**(code **)(*plVar1 + 0x48))();
    }
    if ((int)uVar2 == -1) {
      *param_1 = 0;
      return uVar2;
    }
  }
  return uVar2;
}


PUSH RBX
MOV EAX,ESI
MOV RBX,RDI
MOV RDI,qword ptr [RDI]
CMP ESI,-0x1
JNZ 0x00325383
TEST RDI,RDI
JNZ 0x00325388
POP RBX
RET
MOV RAX,qword ptr [RDI + 0x10]
CMP RAX,qword ptr [RDI + 0x18]
JNC 0x003253a8
MOV EAX,dword ptr [RAX]
CMP EAX,-0x1
JNZ 0x00325383
MOV qword ptr [RBX],0x0
POP RBX
RET
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x48]
JMP 0x00325394
(translation_unit "ulong FUN_00325370(long *param_1,uint param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_2;\n  plVar1 = (long *)*param_1;\n  if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong FUN_00325370(long *param_1,uint param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_2;\n  plVar1 = (long *)*param_1;\n  if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00325370(long *param_1,uint param_2)" identifier (parameter_list "(long *param_1,uint param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_2;\n  plVar1 = (long *)*param_1;\n  if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = (ulong)param_2;" (assignment_expression "uVar2 = (ulong)param_2" identifier = (cast_expression "(ulong)param_2" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "plVar1 = (long *)*param_1;" (assignment_expression "plVar1 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }" if (parenthesized_expression "((param_2 == 0xffffffff) && (plVar1 != (long *)0x0))" ( (binary_expression "(param_2 == 0xffffffff) && (plVar1 != (long *)0x0)" (parenthesized_expression "(param_2 == 0xffffffff)" ( (binary_expression "param_2 == 0xffffffff" identifier == number_literal) )) && (parenthesized_expression "(plVar1 != (long *)0x0)" ( (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }" { (if_statement "if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" if (parenthesized_expression "((uint *)plVar1[2] < (uint *)plVar1[3])" ( (binary_expression "(uint *)plVar1[2] < (uint *)plVar1[3]" (cast_expression "(uint *)plVar1[2]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) < (cast_expression "(uint *)plVar1[3]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }" { (expression_statement "uVar2 = (ulong)*(uint *)plVar1[2];" (assignment_expression "uVar2 = (ulong)*(uint *)plVar1[2]" identifier = (binary_expression "(ulong)*(uint *)plVar1[2]" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)plVar1[2]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" else (compound_statement "{\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" { (expression_statement "uVar2 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "uVar2 = (**(code **)(*plVar1 + 0x48))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }" if (parenthesized_expression "((int)uVar2 == -1)" ( (binary_expression "(int)uVar2 == -1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n      *param_1 = 0;\n      return uVar2;\n    }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >::_M_get() const [clone .isra.45] */\n\nulong std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::_M_get(void)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  uint in_ESI;\n  long *in_RDI;\n  \n  uVar2 = (ulong)in_ESI;\n  plVar1 = (long *)*in_RDI;\n  if ((in_ESI == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *in_RDI = 0;\n      return uVar2;\n    }\n  }\n  return uVar2;\n}\n\n" comment (declaration "ulong std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::_M_get(void)\n\n{\n  long *plVar1;" type_identifier (ERROR "std::istreambuf_iterator<" identifier : : identifier <) identifier , (ERROR "std::char_traits<wchar_t>>::_M_get(void)\n\n{\n  long" identifier : : identifier < identifier >> : : (function_declarator "_M_get(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) { long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "uint in_ESI;" type_identifier identifier ;) (declaration "long *in_RDI;" (sized_type_specifier "long" long) (pointer_declarator "*in_RDI" * identifier) ;) (expression_statement "uVar2 = (ulong)in_ESI;" (assignment_expression "uVar2 = (ulong)in_ESI" identifier = (cast_expression "(ulong)in_ESI" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "plVar1 = (long *)*in_RDI;" (assignment_expression "plVar1 = (long *)*in_RDI" identifier = (cast_expression "(long *)*in_RDI" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*in_RDI" * identifier))) ;) (if_statement "if ((in_ESI == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *in_RDI = 0;\n      return uVar2;\n    }\n  }" if (parenthesized_expression "((in_ESI == 0xffffffff) && (plVar1 != (long *)0x0))" ( (binary_expression "(in_ESI == 0xffffffff) && (plVar1 != (long *)0x0)" (parenthesized_expression "(in_ESI == 0xffffffff)" ( (binary_expression "in_ESI == 0xffffffff" identifier == number_literal) )) && (parenthesized_expression "(plVar1 != (long *)0x0)" ( (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *in_RDI = 0;\n      return uVar2;\n    }\n  }" { (if_statement "if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" if (parenthesized_expression "((uint *)plVar1[2] < (uint *)plVar1[3])" ( (binary_expression "(uint *)plVar1[2] < (uint *)plVar1[3]" (cast_expression "(uint *)plVar1[2]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) < (cast_expression "(uint *)plVar1[3]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }" { (expression_statement "uVar2 = (ulong)*(uint *)plVar1[2];" (assignment_expression "uVar2 = (ulong)*(uint *)plVar1[2]" identifier = (binary_expression "(ulong)*(uint *)plVar1[2]" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)plVar1[2]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" else (compound_statement "{\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" { (expression_statement "uVar2 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "uVar2 = (**(code **)(*plVar1 + 0x48))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if ((int)uVar2 == -1) {\n      *in_RDI = 0;\n      return uVar2;\n    }" if (parenthesized_expression "((int)uVar2 == -1)" ( (binary_expression "(int)uVar2 == -1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n      *in_RDI = 0;\n      return uVar2;\n    }" { (expression_statement "*in_RDI = 0;" (assignment_expression "*in_RDI = 0" (pointer_expression "*in_RDI" * identifier) = number_literal) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return uVar2;" return identifier ;) (ERROR "}" }))
(translation_unit "ulong FUN_00325370(long *param_1,uint param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_2;\n  plVar1 = (long *)*param_1;\n  if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong FUN_00325370(long *param_1,uint param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_2;\n  plVar1 = (long *)*param_1;\n  if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00325370(long *param_1,uint param_2)" identifier (parameter_list "(long *param_1,uint param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_2;\n  plVar1 = (long *)*param_1;\n  if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = (ulong)param_2;" (assignment_expression "uVar2 = (ulong)param_2" identifier = (cast_expression "(ulong)param_2" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "plVar1 = (long *)*param_1;" (assignment_expression "plVar1 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }" if (parenthesized_expression "((param_2 == 0xffffffff) && (plVar1 != (long *)0x0))" ( (binary_expression "(param_2 == 0xffffffff) && (plVar1 != (long *)0x0)" (parenthesized_expression "(param_2 == 0xffffffff)" ( (binary_expression "param_2 == 0xffffffff" identifier == number_literal) )) && (parenthesized_expression "(plVar1 != (long *)0x0)" ( (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }" { (if_statement "if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" if (parenthesized_expression "((uint *)plVar1[2] < (uint *)plVar1[3])" ( (binary_expression "(uint *)plVar1[2] < (uint *)plVar1[3]" (cast_expression "(uint *)plVar1[2]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) < (cast_expression "(uint *)plVar1[3]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }" { (expression_statement "uVar2 = (ulong)*(uint *)plVar1[2];" (assignment_expression "uVar2 = (ulong)*(uint *)plVar1[2]" identifier = (binary_expression "(ulong)*(uint *)plVar1[2]" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)plVar1[2]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" else (compound_statement "{\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" { (expression_statement "uVar2 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "uVar2 = (**(code **)(*plVar1 + 0x48))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }" if (parenthesized_expression "((int)uVar2 == -1)" ( (binary_expression "(int)uVar2 == -1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n      *param_1 = 0;\n      return uVar2;\n    }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) ))) )) (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 = (binary_expression (parenthesized_expression ( IDENT )) * (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 ( )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })) })) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_00325370(long *param_1,uint param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_2;\n  plVar1 = (long *)*param_1;\n  if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" (type_identifier "ulong") (function_declarator "FUN_00325370(long *param_1,uint param_2)" (identifier "FUN_00325370") (parameter_list "(long *param_1,uint param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_2;\n  plVar1 = (long *)*param_1;\n  if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = (ulong)param_2;" (assignment_expression "uVar2 = (ulong)param_2" (identifier "uVar2") (= "=") (cast_expression "(ulong)param_2" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "plVar1 = (long *)*param_1;" (assignment_expression "plVar1 = (long *)*param_1" (identifier "plVar1") (= "=") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }" (if "if") (parenthesized_expression "((param_2 == 0xffffffff) && (plVar1 != (long *)0x0))" (( "(") (binary_expression "(param_2 == 0xffffffff) && (plVar1 != (long *)0x0)" (parenthesized_expression "(param_2 == 0xffffffff)" (( "(") (binary_expression "param_2 == 0xffffffff" (identifier "param_2") (== "==") (number_literal "0xffffffff")) () ")")) (&& "&&") (parenthesized_expression "(plVar1 != (long *)0x0)" (( "(") (binary_expression "plVar1 != (long *)0x0" (identifier "plVar1") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }\n    if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }\n  }" ({ "{") (if_statement "if ((uint *)plVar1[2] < (uint *)plVar1[3]) {\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }\n    else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" (if "if") (parenthesized_expression "((uint *)plVar1[2] < (uint *)plVar1[3])" (( "(") (binary_expression "(uint *)plVar1[2] < (uint *)plVar1[3]" (cast_expression "(uint *)plVar1[2]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(uint *)plVar1[3]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n      uVar2 = (ulong)*(uint *)plVar1[2];\n    }" ({ "{") (expression_statement "uVar2 = (ulong)*(uint *)plVar1[2];" (assignment_expression "uVar2 = (ulong)*(uint *)plVar1[2]" (identifier "uVar2") (= "=") (binary_expression "(ulong)*(uint *)plVar1[2]" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(uint *)plVar1[2]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" (else "else") (compound_statement "{\n      uVar2 = (**(code **)(*plVar1 + 0x48))();\n    }" ({ "{") (expression_statement "uVar2 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "uVar2 = (**(code **)(*plVar1 + 0x48))()" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x48)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x48)" (* "*") (cast_expression "(code **)(*plVar1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x48)" (( "(") (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (if_statement "if ((int)uVar2 == -1) {\n      *param_1 = 0;\n      return uVar2;\n    }" (if "if") (parenthesized_expression "((int)uVar2 == -1)" (( "(") (binary_expression "(int)uVar2 == -1" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      *param_1 = 0;\n      return uVar2;\n    }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >::_M_get() const [clone .isra.45] */

type_1 std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::_M_get(void)

{
  long *var_2;
  type_1 uVar2;
  type_2 var_1;
  long *in_RDI;
  
  uVar2 = (type_1)var_1;
  var_2 = (long *)*in_RDI;
  if ((var_1 == 0xffffffff) && (var_2 != (long *)0x0)) {
    if ((type_2 *)var_2[2] < (type_2 *)var_2[3]) {
      uVar2 = (type_1)*(type_2 *)var_2[2];
    }
    else {
      uVar2 = (**(type_3 **)(*var_2 + 0x48))();
    }
    if ((int)uVar2 == -1) {
      *in_RDI = 0;
      return uVar2;
    }
  }
  return uVar2;
}


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

ulong MASKED(long *param_1,uint param_2)

{
  long *plVar1;
  ulong uVar2;
  
  uVar2 = (ulong)param_2;
  plVar1 = (long *)*param_1;
  if ((param_2 == 0xffffffff) && (plVar1 != (long *)0x0)) {
    if ((uint *)plVar1[2] < (uint *)plVar1[3]) {
      uVar2 = (ulong)*(uint *)plVar1[2];
    }
    else {
      uVar2 = (**(code **)(*plVar1 + 0x48))();
    }
    if ((int)uVar2 == -1) {
      *param_1 = 0;
      return uVar2;
    }
  }
  return uVar2;
}

