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

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

{
  char cVar1;
  int iVar2;
  
  cVar1 = (**(code **)(**(int **)(this + 0x78) + 0x18))(*(int **)(this + 0x78));
  if (cVar1 != '\0') {
    return *(int *)(this + 8) - *(int *)(this + 0xc) >> 2;
  }
  iVar2 = (**(code **)(**(int **)(this + 0x78) + 0x1c))
                    (*(int **)(this + 0x78),param_1,*(undefined4 *)(this + 0x7c),
                     *(undefined4 *)(this + 0x84),*(int *)(this + 8) - *(int *)(this + 4) >> 2);
  return (iVar2 + *(int *)(this + 0x7c)) - *(int *)(this + 0x88);
}



int FUN_002159a0(int param_1,undefined4 param_2)

{
  char cVar1;
  int iVar2;
  
  cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));
  if (cVar1 != '\0') {
    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;
  }
  iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))
                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),
                     *(undefined4 *)(param_1 + 0x84),
                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);
  return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);
}


PUSH EBX
SUB ESP,0x14
MOV EBX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [EBX + 0x78]
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x18]
ADD ESP,0x10
TEST AL,AL
JZ 0x002159d0
MOV EAX,dword ptr [EBX + 0x8]
SUB EAX,dword ptr [EBX + 0xc]
ADD ESP,0x8
SAR EAX,0x2
POP EBX
RET
MOV EDX,dword ptr [EBX + 0x78]
MOV EAX,dword ptr [EBX + 0x8]
SUB ESP,0xc
SUB EAX,dword ptr [EBX + 0x4]
SAR EAX,0x2
MOV ECX,dword ptr [EDX]
PUSH EAX
PUSH dword ptr [EBX + 0x84]
PUSH dword ptr [EBX + 0x7c]
PUSH dword ptr [ESP + 0x2c]
PUSH EDX
CALL dword ptr [ECX + 0x1c]
ADD EAX,dword ptr [EBX + 0x7c]
SUB EAX,dword ptr [EBX + 0x88]
ADD ESP,0x20
ADD ESP,0x8
POP EBX
RET
(translation_unit "int FUN_002159a0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));\n  if (cVar1 != '\0') {\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }\n  iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);\n  return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);\n}\n\n" (function_definition "int FUN_002159a0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));\n  if (cVar1 != '\0') {\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }\n  iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);\n  return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);\n}" primitive_type (function_declarator "FUN_002159a0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));\n  if (cVar1 != '\0') {\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }\n  iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);\n  return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));" (assignment_expression "cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78))" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x18))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0x78) + 0x18)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0x78) + 0x18)" * (cast_expression "(code **)(**(int **)(param_1 + 0x78) + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0x78) + 0x18)" ( (binary_expression "**(int **)(param_1 + 0x78) + 0x18" (pointer_expression "**(int **)(param_1 + 0x78)" * (pointer_expression "*(int **)(param_1 + 0x78)" * (cast_expression "(int **)(param_1 + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0x78))" ( (pointer_expression "*(int **)(param_1 + 0x78)" * (cast_expression "(int **)(param_1 + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) )))) ;) (if_statement "if (cVar1 != '\0') {\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }" { (return_statement "return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;" return (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2" (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 0xc)" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) >> number_literal) ;) })) (expression_statement "iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);" (assignment_expression "iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2)" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x1c))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0x78) + 0x1c)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0x78) + 0x1c)" * (cast_expression "(code **)(**(int **)(param_1 + 0x78) + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0x78) + 0x1c)" ( (binary_expression "**(int **)(param_1 + 0x78) + 0x1c" (pointer_expression "**(int **)(param_1 + 0x78)" * (pointer_expression "*(int **)(param_1 + 0x78)" * (cast_expression "(int **)(param_1 + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2)" ( (pointer_expression "*(int **)(param_1 + 0x78)" * (cast_expression "(int **)(param_1 + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x84)" * (cast_expression "(undefined4 *)(param_1 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) , (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2" (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) >> number_literal) )))) ;) (return_statement "return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);" return (binary_expression "(iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88)" (parenthesized_expression "(iVar2 + *(int *)(param_1 + 0x7c))" ( (binary_expression "iVar2 + *(int *)(param_1 + 0x7c)" identifier + (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) )) - (pointer_expression "*(int *)(param_1 + 0x88)" * (cast_expression "(int *)(param_1 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))))) ;) })))
(translation_unit "/* std::wfilebuf::_M_get_ext_pos(__mbstate_t&) */\n\nint __thiscall std::wfilebuf::_M_get_ext_pos(wfilebuf *this,__mbstate_t *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(int **)(this + 0x78) + 0x18))(*(int **)(this + 0x78));\n  if (cVar1 != '\0') {\n    return *(int *)(this + 8) - *(int *)(this + 0xc) >> 2;\n  }\n  iVar2 = (**(code **)(**(int **)(this + 0x78) + 0x1c))\n                    (*(int **)(this + 0x78),param_1,*(undefined4 *)(this + 0x7c),\n                     *(undefined4 *)(this + 0x84),*(int *)(this + 8) - *(int *)(this + 4) >> 2);\n  return (iVar2 + *(int *)(this + 0x7c)) - *(int *)(this + 0x88);\n}\n\n" comment (function_definition "int __thiscall std::wfilebuf::_M_get_ext_pos(wfilebuf *this,__mbstate_t *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(int **)(this + 0x78) + 0x18))(*(int **)(this + 0x78));\n  if (cVar1 != '\0') {\n    return *(int *)(this + 8) - *(int *)(this + 0xc) >> 2;\n  }\n  iVar2 = (**(code **)(**(int **)(this + 0x78) + 0x1c))\n                    (*(int **)(this + 0x78),param_1,*(undefined4 *)(this + 0x7c),\n                     *(undefined4 *)(this + 0x84),*(int *)(this + 8) - *(int *)(this + 4) >> 2);\n  return (iVar2 + *(int *)(this + 0x7c)) - *(int *)(this + 0x88);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wfilebuf::" identifier : : identifier : :) (function_declarator "_M_get_ext_pos(wfilebuf *this,__mbstate_t *param_1)" identifier (parameter_list "(wfilebuf *this,__mbstate_t *param_1)" ( (parameter_declaration "wfilebuf *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 **)(**(int **)(this + 0x78) + 0x18))(*(int **)(this + 0x78));\n  if (cVar1 != '\0') {\n    return *(int *)(this + 8) - *(int *)(this + 0xc) >> 2;\n  }\n  iVar2 = (**(code **)(**(int **)(this + 0x78) + 0x1c))\n                    (*(int **)(this + 0x78),param_1,*(undefined4 *)(this + 0x7c),\n                     *(undefined4 *)(this + 0x84),*(int *)(this + 8) - *(int *)(this + 4) >> 2);\n  return (iVar2 + *(int *)(this + 0x7c)) - *(int *)(this + 0x88);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "cVar1 = (**(code **)(**(int **)(this + 0x78) + 0x18))(*(int **)(this + 0x78));" (assignment_expression "cVar1 = (**(code **)(**(int **)(this + 0x78) + 0x18))(*(int **)(this + 0x78))" identifier = (call_expression "(**(code **)(**(int **)(this + 0x78) + 0x18))(*(int **)(this + 0x78))" (parenthesized_expression "(**(code **)(**(int **)(this + 0x78) + 0x18))" ( (pointer_expression "**(code **)(**(int **)(this + 0x78) + 0x18)" * (pointer_expression "*(code **)(**(int **)(this + 0x78) + 0x18)" * (cast_expression "(code **)(**(int **)(this + 0x78) + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(this + 0x78) + 0x18)" ( (binary_expression "**(int **)(this + 0x78) + 0x18" (pointer_expression "**(int **)(this + 0x78)" * (pointer_expression "*(int **)(this + 0x78)" * (cast_expression "(int **)(this + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x78)" ( (binary_expression "this + 0x78" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(this + 0x78))" ( (pointer_expression "*(int **)(this + 0x78)" * (cast_expression "(int **)(this + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x78)" ( (binary_expression "this + 0x78" identifier + number_literal) )))) )))) ;) (if_statement "if (cVar1 != '\0') {\n    return *(int *)(this + 8) - *(int *)(this + 0xc) >> 2;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return *(int *)(this + 8) - *(int *)(this + 0xc) >> 2;\n  }" { (return_statement "return *(int *)(this + 8) - *(int *)(this + 0xc) >> 2;" return (binary_expression "*(int *)(this + 8) - *(int *)(this + 0xc) >> 2" (binary_expression "*(int *)(this + 8) - *(int *)(this + 0xc)" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) - (pointer_expression "*(int *)(this + 0xc)" * (cast_expression "(int *)(this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) >> number_literal) ;) })) (expression_statement "iVar2 = (**(code **)(**(int **)(this + 0x78) + 0x1c))\n                    (*(int **)(this + 0x78),param_1,*(undefined4 *)(this + 0x7c),\n                     *(undefined4 *)(this + 0x84),*(int *)(this + 8) - *(int *)(this + 4) >> 2);" (assignment_expression "iVar2 = (**(code **)(**(int **)(this + 0x78) + 0x1c))\n                    (*(int **)(this + 0x78),param_1,*(undefined4 *)(this + 0x7c),\n                     *(undefined4 *)(this + 0x84),*(int *)(this + 8) - *(int *)(this + 4) >> 2)" identifier = (call_expression "(**(code **)(**(int **)(this + 0x78) + 0x1c))\n                    (*(int **)(this + 0x78),param_1,*(undefined4 *)(this + 0x7c),\n                     *(undefined4 *)(this + 0x84),*(int *)(this + 8) - *(int *)(this + 4) >> 2)" (parenthesized_expression "(**(code **)(**(int **)(this + 0x78) + 0x1c))" ( (pointer_expression "**(code **)(**(int **)(this + 0x78) + 0x1c)" * (pointer_expression "*(code **)(**(int **)(this + 0x78) + 0x1c)" * (cast_expression "(code **)(**(int **)(this + 0x78) + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(this + 0x78) + 0x1c)" ( (binary_expression "**(int **)(this + 0x78) + 0x1c" (pointer_expression "**(int **)(this + 0x78)" * (pointer_expression "*(int **)(this + 0x78)" * (cast_expression "(int **)(this + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x78)" ( (binary_expression "this + 0x78" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(this + 0x78),param_1,*(undefined4 *)(this + 0x7c),\n                     *(undefined4 *)(this + 0x84),*(int *)(this + 8) - *(int *)(this + 4) >> 2)" ( (pointer_expression "*(int **)(this + 0x78)" * (cast_expression "(int **)(this + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x78)" ( (binary_expression "this + 0x78" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(this + 0x7c)" * (cast_expression "(undefined4 *)(this + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(this + 0x84)" * (cast_expression "(undefined4 *)(this + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x84)" ( (binary_expression "this + 0x84" identifier + number_literal) )))) , (binary_expression "*(int *)(this + 8) - *(int *)(this + 4) >> 2" (binary_expression "*(int *)(this + 8) - *(int *)(this + 4)" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) - (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) >> number_literal) )))) ;) (return_statement "return (iVar2 + *(int *)(this + 0x7c)) - *(int *)(this + 0x88);" return (binary_expression "(iVar2 + *(int *)(this + 0x7c)) - *(int *)(this + 0x88)" (parenthesized_expression "(iVar2 + *(int *)(this + 0x7c))" ( (binary_expression "iVar2 + *(int *)(this + 0x7c)" identifier + (pointer_expression "*(int *)(this + 0x7c)" * (cast_expression "(int *)(this + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" identifier + number_literal) ))))) )) - (pointer_expression "*(int *)(this + 0x88)" * (cast_expression "(int *)(this + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x88)" ( (binary_expression "this + 0x88" identifier + number_literal) ))))) ;) })))
(translation_unit "int FUN_002159a0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));\n  if (cVar1 != '\0') {\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }\n  iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);\n  return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);\n}\n\n" (function_definition "int FUN_002159a0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));\n  if (cVar1 != '\0') {\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }\n  iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);\n  return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);\n}" primitive_type (function_declarator "FUN_002159a0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));\n  if (cVar1 != '\0') {\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }\n  iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);\n  return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));" (assignment_expression "cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78))" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x18))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0x78) + 0x18)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0x78) + 0x18)" * (cast_expression "(code **)(**(int **)(param_1 + 0x78) + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0x78) + 0x18)" ( (binary_expression "**(int **)(param_1 + 0x78) + 0x18" (pointer_expression "**(int **)(param_1 + 0x78)" * (pointer_expression "*(int **)(param_1 + 0x78)" * (cast_expression "(int **)(param_1 + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0x78))" ( (pointer_expression "*(int **)(param_1 + 0x78)" * (cast_expression "(int **)(param_1 + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) )))) ;) (if_statement "if (cVar1 != '\0') {\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }" { (return_statement "return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;" return (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2" (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 0xc)" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) >> number_literal) ;) })) (expression_statement "iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);" (assignment_expression "iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2)" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x1c))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0x78) + 0x1c)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0x78) + 0x1c)" * (cast_expression "(code **)(**(int **)(param_1 + 0x78) + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0x78) + 0x1c)" ( (binary_expression "**(int **)(param_1 + 0x78) + 0x1c" (pointer_expression "**(int **)(param_1 + 0x78)" * (pointer_expression "*(int **)(param_1 + 0x78)" * (cast_expression "(int **)(param_1 + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2)" ( (pointer_expression "*(int **)(param_1 + 0x78)" * (cast_expression "(int **)(param_1 + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x84)" * (cast_expression "(undefined4 *)(param_1 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) , (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2" (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) >> number_literal) )))) ;) (return_statement "return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);" return (binary_expression "(iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88)" (parenthesized_expression "(iVar2 + *(int *)(param_1 + 0x7c))" ( (binary_expression "iVar2 + *(int *)(param_1 + 0x7c)" identifier + (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) )) - (pointer_expression "*(int *)(param_1 + 0x88)" * (cast_expression "(int *)(param_1 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE 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 TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return (binary_expression (binary_expression (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) ))))) >> 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 TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 (binary_expression (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) ))))) >> LIT) )))) ;) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression 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) ))))) ;) })))
(function_definition "int FUN_002159a0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));\n  if (cVar1 != '\0') {\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }\n  iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);\n  return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);\n}" (primitive_type "int") (function_declarator "FUN_002159a0(int param_1,undefined4 param_2)" (identifier "FUN_002159a0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));\n  if (cVar1 != '\0') {\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }\n  iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);\n  return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));" (assignment_expression "cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78))" (identifier "cVar1") (= "=") (call_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x18))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0x78) + 0x18)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0x78) + 0x18)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0x78) + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0x78) + 0x18)" (( "(") (binary_expression "**(int **)(param_1 + 0x78) + 0x18" (pointer_expression "**(int **)(param_1 + 0x78)" (* "*") (pointer_expression "*(int **)(param_1 + 0x78)" (* "*") (cast_expression "(int **)(param_1 + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")"))))) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0x78))" (( "(") (pointer_expression "*(int **)(param_1 + 0x78)" (* "*") (cast_expression "(int **)(param_1 + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")")))) () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;\n  }" ({ "{") (return_statement "return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;" (return "return") (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2" (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 0xc)" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (- "-") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (>> ">>") (number_literal "2")) (; ";")) (} "}"))) (expression_statement "iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);" (assignment_expression "iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x1c))\n                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x78) + 0x1c))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0x78) + 0x1c)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0x78) + 0x1c)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0x78) + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0x78) + 0x1c)" (( "(") (binary_expression "**(int **)(param_1 + 0x78) + 0x1c" (pointer_expression "**(int **)(param_1 + 0x78)" (* "*") (pointer_expression "*(int **)(param_1 + 0x78)" (* "*") (cast_expression "(int **)(param_1 + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")"))))) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),\n                     *(undefined4 *)(param_1 + 0x84),\n                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2)" (( "(") (pointer_expression "*(int **)(param_1 + 0x78)" (* "*") (cast_expression "(int **)(param_1 + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")")))) (, ",") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x7c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x84)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")")))) (, ",") (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2" (binary_expression "*(int *)(param_1 + 8) - *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (- "-") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (>> ">>") (number_literal "2")) () ")")))) (; ";")) (return_statement "return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);" (return "return") (binary_expression "(iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88)" (parenthesized_expression "(iVar2 + *(int *)(param_1 + 0x7c))" (( "(") (binary_expression "iVar2 + *(int *)(param_1 + 0x7c)" (identifier "iVar2") (+ "+") (pointer_expression "*(int *)(param_1 + 0x7c)" (* "*") (cast_expression "(int *)(param_1 + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) () ")")) (- "-") (pointer_expression "*(int *)(param_1 + 0x88)" (* "*") (cast_expression "(int *)(param_1 + 0x88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x88)" (( "(") (binary_expression "param_1 + 0x88" (identifier "param_1") (+ "+") (number_literal "0x88")) () ")"))))) (; ";")) (} "}")))

/* std::wfilebuf::_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 **)(**(int **)(var_1 + 0x78) + 0x18))(*(int **)(var_1 + 0x78));
  if (var_2 != '\0') {
    return *(int *)(var_1 + 8) - *(int *)(var_1 + 0xc) >> 2;
  }
  var_3 = (**(type_3 **)(**(int **)(var_1 + 0x78) + 0x1c))
                    (*(int **)(var_1 + 0x78),param_1,*(type_4 *)(var_1 + 0x7c),
                     *(type_4 *)(var_1 + 0x84),*(int *)(var_1 + 8) - *(int *)(var_1 + 4) >> 2);
  return (var_3 + *(int *)(var_1 + 0x7c)) - *(int *)(var_1 + 0x88);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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: (primitive_type) 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: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (binary_expression left: (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: (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: (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: (primitive_type) 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: (primitive_type) 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: (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: (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)))))) (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) 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))))))) 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(int param_1,undefined4 param_2)

{
  char cVar1;
  int iVar2;
  
  cVar1 = (**(code **)(**(int **)(param_1 + 0x78) + 0x18))(*(int **)(param_1 + 0x78));
  if (cVar1 != '\0') {
    return *(int *)(param_1 + 8) - *(int *)(param_1 + 0xc) >> 2;
  }
  iVar2 = (**(code **)(**(int **)(param_1 + 0x78) + 0x1c))
                    (*(int **)(param_1 + 0x78),param_2,*(undefined4 *)(param_1 + 0x7c),
                     *(undefined4 *)(param_1 + 0x84),
                     *(int *)(param_1 + 8) - *(int *)(param_1 + 4) >> 2);
  return (iVar2 + *(int *)(param_1 + 0x7c)) - *(int *)(param_1 + 0x88);
}

