
/* std::filebuf::_M_get_ext_pos(__mbstate_t&) */

int __thiscall std::filebuf::_M_get_ext_pos(filebuf *this,__mbstate_t *param_1)

{
  char cVar1;
  int iVar2;
  
  cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();
  if (cVar1 != '\0') {
    return (int)*(undefined8 *)(this + 0x10) - *(int *)(this + 0x18);
  }
  iVar2 = (**(code **)(**(long **)(this + 200) + 0x38))
                    (*(long **)(this + 200),param_1,*(undefined8 *)(this + 0xd0),
                     *(undefined8 *)(this + 0xe0),*(long *)(this + 0x10) - *(long *)(this + 8));
  return (iVar2 + (int)*(undefined8 *)(this + 0xd0)) - *(int *)(this + 0xe8);
}



int FUN_0029fb90(long param_1,undefined8 param_2)

{
  char cVar1;
  int iVar2;
  
  cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();
  if (cVar1 != '\0') {
    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);
  }
  iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))
                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),
                     *(undefined8 *)(param_1 + 0xe0),
                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));
  return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);
}


PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV RDI,qword ptr [RDI + 0xc8]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x30]
TEST AL,AL
JZ 0x0029fbc0
MOV RAX,qword ptr [RBX + 0x10]
SUB EAX,dword ptr [RBX + 0x18]
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV RDI,qword ptr [RBX + 0xc8]
MOV R8,qword ptr [RBX + 0x10]
MOV RSI,RBP
MOV RCX,qword ptr [RBX + 0xe0]
MOV RDX,qword ptr [RBX + 0xd0]
MOV RAX,qword ptr [RDI]
SUB R8,qword ptr [RBX + 0x8]
CALL qword ptr [RAX + 0x38]
CDQE
ADD RAX,qword ptr [RBX + 0xd0]
SUB EAX,dword ptr [RBX + 0xe8]
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "int FUN_0029fb90(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();\n  if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }\n  iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));\n  return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);\n}\n\n" (function_definition "int FUN_0029fb90(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();\n  if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }\n  iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));\n  return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);\n}" primitive_type (function_declarator "FUN_0029fb90(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();\n  if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }\n  iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));\n  return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();" (assignment_expression "cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))()" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x30)" * (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x30)" * (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 200) + 0x30)" ( (binary_expression "**(long **)(param_1 + 200) + 0x30" (pointer_expression "**(long **)(param_1 + 200)" * (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }" { (return_statement "return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);" return (binary_expression "(int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18)" (cast_expression "(int)*(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) - (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) })) (expression_statement "iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));" (assignment_expression "iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8))" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x38))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x38)" * (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x38)" * (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 200) + 0x38)" ( (binary_expression "**(long **)(param_1 + 200) + 0x38" (pointer_expression "**(long **)(param_1 + 200)" * (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8))" ( (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 0xe0)" * (cast_expression "(undefined8 *)(param_1 + 0xe0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) , (binary_expression "*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )))) ;) (return_statement "return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);" return (binary_expression "(iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8)" (parenthesized_expression "(iVar2 + (int)*(undefined8 *)(param_1 + 0xd0))" ( (binary_expression "iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)" identifier + (cast_expression "(int)*(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))))) )) - (pointer_expression "*(int *)(param_1 + 0xe8)" * (cast_expression "(int *)(param_1 + 0xe8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) ))))) ;) })))
(translation_unit "/* std::filebuf::_M_get_ext_pos(__mbstate_t&) */\n\nint __thiscall std::filebuf::_M_get_ext_pos(filebuf *this,__mbstate_t *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();\n  if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(this + 0x10) - *(int *)(this + 0x18);\n  }\n  iVar2 = (**(code **)(**(long **)(this + 200) + 0x38))\n                    (*(long **)(this + 200),param_1,*(undefined8 *)(this + 0xd0),\n                     *(undefined8 *)(this + 0xe0),*(long *)(this + 0x10) - *(long *)(this + 8));\n  return (iVar2 + (int)*(undefined8 *)(this + 0xd0)) - *(int *)(this + 0xe8);\n}\n\n" comment (function_definition "int __thiscall std::filebuf::_M_get_ext_pos(filebuf *this,__mbstate_t *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();\n  if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(this + 0x10) - *(int *)(this + 0x18);\n  }\n  iVar2 = (**(code **)(**(long **)(this + 200) + 0x38))\n                    (*(long **)(this + 200),param_1,*(undefined8 *)(this + 0xd0),\n                     *(undefined8 *)(this + 0xe0),*(long *)(this + 0x10) - *(long *)(this + 8));\n  return (iVar2 + (int)*(undefined8 *)(this + 0xd0)) - *(int *)(this + 0xe8);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::filebuf::" identifier : : identifier : :) (function_declarator "_M_get_ext_pos(filebuf *this,__mbstate_t *param_1)" identifier (parameter_list "(filebuf *this,__mbstate_t *param_1)" ( (parameter_declaration "filebuf *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "__mbstate_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();\n  if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(this + 0x10) - *(int *)(this + 0x18);\n  }\n  iVar2 = (**(code **)(**(long **)(this + 200) + 0x38))\n                    (*(long **)(this + 200),param_1,*(undefined8 *)(this + 0xd0),\n                     *(undefined8 *)(this + 0xe0),*(long *)(this + 0x10) - *(long *)(this + 8));\n  return (iVar2 + (int)*(undefined8 *)(this + 0xd0)) - *(int *)(this + 0xe8);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();" (assignment_expression "cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))()" identifier = (call_expression "(**(code **)(**(long **)(this + 200) + 0x30))()" (parenthesized_expression "(**(code **)(**(long **)(this + 200) + 0x30))" ( (pointer_expression "**(code **)(**(long **)(this + 200) + 0x30)" * (pointer_expression "*(code **)(**(long **)(this + 200) + 0x30)" * (cast_expression "(code **)(**(long **)(this + 200) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(this + 200) + 0x30)" ( (binary_expression "**(long **)(this + 200) + 0x30" (pointer_expression "**(long **)(this + 200)" * (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(this + 0x10) - *(int *)(this + 0x18);\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return (int)*(undefined8 *)(this + 0x10) - *(int *)(this + 0x18);\n  }" { (return_statement "return (int)*(undefined8 *)(this + 0x10) - *(int *)(this + 0x18);" return (binary_expression "(int)*(undefined8 *)(this + 0x10) - *(int *)(this + 0x18)" (cast_expression "(int)*(undefined8 *)(this + 0x10)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) - (pointer_expression "*(int *)(this + 0x18)" * (cast_expression "(int *)(this + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) ))))) ;) })) (expression_statement "iVar2 = (**(code **)(**(long **)(this + 200) + 0x38))\n                    (*(long **)(this + 200),param_1,*(undefined8 *)(this + 0xd0),\n                     *(undefined8 *)(this + 0xe0),*(long *)(this + 0x10) - *(long *)(this + 8));" (assignment_expression "iVar2 = (**(code **)(**(long **)(this + 200) + 0x38))\n                    (*(long **)(this + 200),param_1,*(undefined8 *)(this + 0xd0),\n                     *(undefined8 *)(this + 0xe0),*(long *)(this + 0x10) - *(long *)(this + 8))" identifier = (call_expression "(**(code **)(**(long **)(this + 200) + 0x38))\n                    (*(long **)(this + 200),param_1,*(undefined8 *)(this + 0xd0),\n                     *(undefined8 *)(this + 0xe0),*(long *)(this + 0x10) - *(long *)(this + 8))" (parenthesized_expression "(**(code **)(**(long **)(this + 200) + 0x38))" ( (pointer_expression "**(code **)(**(long **)(this + 200) + 0x38)" * (pointer_expression "*(code **)(**(long **)(this + 200) + 0x38)" * (cast_expression "(code **)(**(long **)(this + 200) + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(this + 200) + 0x38)" ( (binary_expression "**(long **)(this + 200) + 0x38" (pointer_expression "**(long **)(this + 200)" * (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(this + 200),param_1,*(undefined8 *)(this + 0xd0),\n                     *(undefined8 *)(this + 0xe0),*(long *)(this + 0x10) - *(long *)(this + 8))" ( (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined8 *)(this + 0xd0)" * (cast_expression "(undefined8 *)(this + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xd0)" ( (binary_expression "this + 0xd0" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(this + 0xe0)" * (cast_expression "(undefined8 *)(this + 0xe0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xe0)" ( (binary_expression "this + 0xe0" identifier + number_literal) )))) , (binary_expression "*(long *)(this + 0x10) - *(long *)(this + 8)" (pointer_expression "*(long *)(this + 0x10)" * (cast_expression "(long *)(this + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) - (pointer_expression "*(long *)(this + 8)" * (cast_expression "(long *)(this + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )))) ;) (return_statement "return (iVar2 + (int)*(undefined8 *)(this + 0xd0)) - *(int *)(this + 0xe8);" return (binary_expression "(iVar2 + (int)*(undefined8 *)(this + 0xd0)) - *(int *)(this + 0xe8)" (parenthesized_expression "(iVar2 + (int)*(undefined8 *)(this + 0xd0))" ( (binary_expression "iVar2 + (int)*(undefined8 *)(this + 0xd0)" identifier + (cast_expression "(int)*(undefined8 *)(this + 0xd0)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(undefined8 *)(this + 0xd0)" * (cast_expression "(undefined8 *)(this + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xd0)" ( (binary_expression "this + 0xd0" identifier + number_literal) )))))) )) - (pointer_expression "*(int *)(this + 0xe8)" * (cast_expression "(int *)(this + 0xe8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xe8)" ( (binary_expression "this + 0xe8" identifier + number_literal) ))))) ;) })))
(translation_unit "int FUN_0029fb90(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();\n  if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }\n  iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));\n  return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);\n}\n\n" (function_definition "int FUN_0029fb90(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();\n  if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }\n  iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));\n  return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);\n}" primitive_type (function_declarator "FUN_0029fb90(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();\n  if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }\n  iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));\n  return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();" (assignment_expression "cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))()" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x30)" * (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x30)" * (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 200) + 0x30)" ( (binary_expression "**(long **)(param_1 + 200) + 0x30" (pointer_expression "**(long **)(param_1 + 200)" * (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }" { (return_statement "return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);" return (binary_expression "(int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18)" (cast_expression "(int)*(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) - (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) })) (expression_statement "iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));" (assignment_expression "iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8))" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x38))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x38)" * (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x38)" * (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 200) + 0x38)" ( (binary_expression "**(long **)(param_1 + 200) + 0x38" (pointer_expression "**(long **)(param_1 + 200)" * (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8))" ( (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 0xe0)" * (cast_expression "(undefined8 *)(param_1 + 0xe0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) , (binary_expression "*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )))) ;) (return_statement "return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);" return (binary_expression "(iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8)" (parenthesized_expression "(iVar2 + (int)*(undefined8 *)(param_1 + 0xd0))" ( (binary_expression "iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)" identifier + (cast_expression "(int)*(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))))) )) - (pointer_expression "*(int *)(param_1 + 0xe8)" * (cast_expression "(int *)(param_1 + 0xe8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) ))))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })))
(function_definition "int FUN_0029fb90(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();\n  if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }\n  iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));\n  return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);\n}" (primitive_type "int") (function_declarator "FUN_0029fb90(long param_1,undefined8 param_2)" (identifier "FUN_0029fb90") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();\n  if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }\n  iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));\n  return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();" (assignment_expression "cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))()" (identifier "cVar1") (= "=") (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x30)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x30)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 200) + 0x30)" (( "(") (binary_expression "**(long **)(param_1 + 200) + 0x30" (pointer_expression "**(long **)(param_1 + 200)" (* "*") (pointer_expression "*(long **)(param_1 + 200)" (* "*") (cast_expression "(long **)(param_1 + 200)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 200)" (( "(") (binary_expression "param_1 + 200" (identifier "param_1") (+ "+") (number_literal "200")) () ")"))))) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);\n  }" ({ "{") (return_statement "return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);" (return "return") (binary_expression "(int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18)" (cast_expression "(int)*(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (- "-") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));" (assignment_expression "iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8))" (identifier "iVar2") (= "=") (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x38))\n                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x38))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x38)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x38)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x38)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 200) + 0x38)" (( "(") (binary_expression "**(long **)(param_1 + 200) + 0x38" (pointer_expression "**(long **)(param_1 + 200)" (* "*") (pointer_expression "*(long **)(param_1 + 200)" (* "*") (cast_expression "(long **)(param_1 + 200)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 200)" (( "(") (binary_expression "param_1 + 200" (identifier "param_1") (+ "+") (number_literal "200")) () ")"))))) (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (argument_list "(*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),\n                     *(undefined8 *)(param_1 + 0xe0),\n                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8))" (( "(") (pointer_expression "*(long **)(param_1 + 200)" (* "*") (cast_expression "(long **)(param_1 + 200)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 200)" (( "(") (binary_expression "param_1 + 200" (identifier "param_1") (+ "+") (number_literal "200")) () ")")))) (, ",") (identifier "param_2") (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xd0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0xe0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xe0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe0)" (( "(") (binary_expression "param_1 + 0xe0" (identifier "param_1") (+ "+") (number_literal "0xe0")) () ")")))) (, ",") (binary_expression "*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (- "-") (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")))) (; ";")) (return_statement "return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);" (return "return") (binary_expression "(iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8)" (parenthesized_expression "(iVar2 + (int)*(undefined8 *)(param_1 + 0xd0))" (( "(") (binary_expression "iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)" (identifier "iVar2") (+ "+") (cast_expression "(int)*(undefined8 *)(param_1 + 0xd0)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xd0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")")))))) () ")")) (- "-") (pointer_expression "*(int *)(param_1 + 0xe8)" (* "*") (cast_expression "(int *)(param_1 + 0xe8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe8)" (( "(") (binary_expression "param_1 + 0xe8" (identifier "param_1") (+ "+") (number_literal "0xe8")) () ")"))))) (; ";")) (} "}")))

/* std::filebuf::_M_get_ext_pos(__mbstate_t&) */

int __thiscall std::type_1::function_1(type_1 *var_1,type_2 *param_1)

{
  char var_2;
  int var_3;
  
  var_2 = (**(type_3 **)(**(long **)(var_1 + 200) + 0x30))();
  if (var_2 != '\0') {
    return (int)*(type_4 *)(var_1 + 0x10) - *(int *)(var_1 + 0x18);
  }
  var_3 = (**(type_3 **)(**(long **)(var_1 + 200) + 0x38))
                    (*(long **)(var_1 + 200),param_1,*(type_4 *)(var_1 + 0xd0),
                     *(type_4 *)(var_1 + 0xe0),*(long *)(var_1 + 0x10) - *(long *)(var_1 + 8));
  return (var_3 + (int)*(type_4 *)(var_1 + 0xd0)) - *(int *)(var_1 + 0xe8);
}


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

int MASKED(long param_1,undefined8 param_2)

{
  char cVar1;
  int iVar2;
  
  cVar1 = (**(code **)(**(long **)(param_1 + 200) + 0x30))();
  if (cVar1 != '\0') {
    return (int)*(undefined8 *)(param_1 + 0x10) - *(int *)(param_1 + 0x18);
  }
  iVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x38))
                    (*(long **)(param_1 + 200),param_2,*(undefined8 *)(param_1 + 0xd0),
                     *(undefined8 *)(param_1 + 0xe0),
                     *(long *)(param_1 + 0x10) - *(long *)(param_1 + 8));
  return (iVar2 + (int)*(undefined8 *)(param_1 + 0xd0)) - *(int *)(param_1 + 0xe8);
}

