
/* __cxxabiv1::__class_type_info::__do_upcast(__cxxabiv1::__class_type_info const*, void const*,
   __cxxabiv1::__class_type_info::__upcast_result&) const */

undefined8 __thiscall
__cxxabiv1::__class_type_info::__do_upcast
          (__class_type_info *this,__class_type_info *param_1,void *param_2,__upcast_result *param_3
          )

{
  char *__s1;
  int iVar1;
  
  __s1 = *(char **)(this + 8);
  if (__s1 != *(char **)(param_1 + 8)) {
    if (*__s1 == '*') {
      return 0;
    }
    iVar1 = strcmp(__s1,*(char **)(param_1 + 8));
    if (iVar1 != 0) {
      return 0;
    }
  }
  *(void **)param_3 = param_2;
  *(undefined8 *)(param_3 + 0x10) = 0x10;
  *(undefined4 *)(param_3 + 8) = 6;
  return 1;
}



undefined8 FUN_002f00d0(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)

{
  char *__s1;
  int iVar1;
  
  __s1 = *(char **)(param_1 + 8);
  if (__s1 != *(char **)(param_2 + 8)) {
    if (*__s1 == '*') {
      return 0;
    }
    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));
    if (iVar1 != 0) {
      return 0;
    }
  }
  *param_4 = param_3;
  param_4[2] = 0x10;
  *(undefined4 *)(param_4 + 1) = 6;
  return 1;
}


PUSH R12
MOV R12,RDX
PUSH RBP
PUSH RBX
MOV RDI,qword ptr [RDI + 0x8]
MOV RBX,RCX
MOV RSI,qword ptr [RSI + 0x8]
CMP RDI,RSI
JZ 0x002f00f7
XOR EBP,EBP
CMP byte ptr [RDI],0x2a
JZ 0x002f010e
CALL 0x00149790
TEST EAX,EAX
JNZ 0x002f010e
MOV qword ptr [RBX],R12
MOV EBP,0x1
MOV qword ptr [RBX + 0x10],0x10
MOV dword ptr [RBX + 0x8],0x6
MOV EAX,EBP
POP RBX
POP RBP
POP R12
RET
(translation_unit "undefined8 FUN_002f00d0(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)\n\n{\n  char *__s1;\n  int iVar1;\n  \n  __s1 = *(char **)(param_1 + 8);\n  if (__s1 != *(char **)(param_2 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }\n  *param_4 = param_3;\n  param_4[2] = 0x10;\n  *(undefined4 *)(param_4 + 1) = 6;\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_002f00d0(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)\n\n{\n  char *__s1;\n  int iVar1;\n  \n  __s1 = *(char **)(param_1 + 8);\n  if (__s1 != *(char **)(param_2 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }\n  *param_4 = param_3;\n  param_4[2] = 0x10;\n  *(undefined4 *)(param_4 + 1) = 6;\n  return 1;\n}" type_identifier (function_declarator "FUN_002f00d0(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)" identifier (parameter_list "(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  char *__s1;\n  int iVar1;\n  \n  __s1 = *(char **)(param_1 + 8);\n  if (__s1 != *(char **)(param_2 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }\n  *param_4 = param_3;\n  param_4[2] = 0x10;\n  *(undefined4 *)(param_4 + 1) = 6;\n  return 1;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "__s1 = *(char **)(param_1 + 8);" (assignment_expression "__s1 = *(char **)(param_1 + 8)" identifier = (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (__s1 != *(char **)(param_2 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(__s1 != *(char **)(param_2 + 8))" ( (binary_expression "__s1 != *(char **)(param_2 + 8)" identifier != (pointer_expression "*(char **)(param_2 + 8)" * (cast_expression "(char **)(param_2 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }" { (if_statement "if (*__s1 == '*') {\n      return 0;\n    }" if (parenthesized_expression "(*__s1 == '*')" ( (binary_expression "*__s1 == '*'" (pointer_expression "*__s1" * identifier) == (char_literal "'*'" ' character ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = strcmp(__s1,*(char **)(param_2 + 8));" (assignment_expression "iVar1 = strcmp(__s1,*(char **)(param_2 + 8))" identifier = (call_expression "strcmp(__s1,*(char **)(param_2 + 8))" identifier (argument_list "(__s1,*(char **)(param_2 + 8))" ( identifier , (pointer_expression "*(char **)(param_2 + 8)" * (cast_expression "(char **)(param_2 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "*param_4 = param_3;" (assignment_expression "*param_4 = param_3" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "param_4[2] = 0x10;" (assignment_expression "param_4[2] = 0x10" (subscript_expression "param_4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(param_4 + 1) = 6;" (assignment_expression "*(undefined4 *)(param_4 + 1) = 6" (pointer_expression "*(undefined4 *)(param_4 + 1)" * (cast_expression "(undefined4 *)(param_4 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* __cxxabiv1::__class_type_info::__do_upcast(__cxxabiv1::__class_type_info const*, void const*,\n   __cxxabiv1::__class_type_info::__upcast_result&) const */\n\nundefined8 __thiscall\n__cxxabiv1::__class_type_info::__do_upcast\n          (__class_type_info *this,__class_type_info *param_1,void *param_2,__upcast_result *param_3\n          )\n\n{\n  char *__s1;\n  int iVar1;\n  \n  __s1 = *(char **)(this + 8);\n  if (__s1 != *(char **)(param_1 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_1 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }\n  *(void **)param_3 = param_2;\n  *(undefined8 *)(param_3 + 0x10) = 0x10;\n  *(undefined4 *)(param_3 + 8) = 6;\n  return 1;\n}\n\n" comment (function_definition "undefined8 __thiscall\n__cxxabiv1::__class_type_info::__do_upcast\n          (__class_type_info *this,__class_type_info *param_1,void *param_2,__upcast_result *param_3\n          )\n\n{\n  char *__s1;\n  int iVar1;\n  \n  __s1 = *(char **)(this + 8);\n  if (__s1 != *(char **)(param_1 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_1 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }\n  *(void **)param_3 = param_2;\n  *(undefined8 *)(param_3 + 0x10) = 0x10;\n  *(undefined4 *)(param_3 + 8) = 6;\n  return 1;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "__cxxabiv1::__class_type_info::" identifier : : identifier : :) (function_declarator "__do_upcast\n          (__class_type_info *this,__class_type_info *param_1,void *param_2,__upcast_result *param_3\n          )" identifier (parameter_list "(__class_type_info *this,__class_type_info *param_1,void *param_2,__upcast_result *param_3\n          )" ( (parameter_declaration "__class_type_info *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "__class_type_info *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "__upcast_result *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char *__s1;\n  int iVar1;\n  \n  __s1 = *(char **)(this + 8);\n  if (__s1 != *(char **)(param_1 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_1 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }\n  *(void **)param_3 = param_2;\n  *(undefined8 *)(param_3 + 0x10) = 0x10;\n  *(undefined4 *)(param_3 + 8) = 6;\n  return 1;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "__s1 = *(char **)(this + 8);" (assignment_expression "__s1 = *(char **)(this + 8)" identifier = (pointer_expression "*(char **)(this + 8)" * (cast_expression "(char **)(this + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (if_statement "if (__s1 != *(char **)(param_1 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_1 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(__s1 != *(char **)(param_1 + 8))" ( (binary_expression "__s1 != *(char **)(param_1 + 8)" identifier != (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_1 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }" { (if_statement "if (*__s1 == '*') {\n      return 0;\n    }" if (parenthesized_expression "(*__s1 == '*')" ( (binary_expression "*__s1 == '*'" (pointer_expression "*__s1" * identifier) == (char_literal "'*'" ' character ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = strcmp(__s1,*(char **)(param_1 + 8));" (assignment_expression "iVar1 = strcmp(__s1,*(char **)(param_1 + 8))" identifier = (call_expression "strcmp(__s1,*(char **)(param_1 + 8))" identifier (argument_list "(__s1,*(char **)(param_1 + 8))" ( identifier , (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "*(void **)param_3 = param_2;" (assignment_expression "*(void **)param_3 = param_2" (pointer_expression "*(void **)param_3" * (cast_expression "(void **)param_3" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(undefined8 *)(param_3 + 0x10) = 0x10;" (assignment_expression "*(undefined8 *)(param_3 + 0x10) = 0x10" (pointer_expression "*(undefined8 *)(param_3 + 0x10)" * (cast_expression "(undefined8 *)(param_3 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 8) = 6;" (assignment_expression "*(undefined4 *)(param_3 + 8) = 6" (pointer_expression "*(undefined4 *)(param_3 + 8)" * (cast_expression "(undefined4 *)(param_3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined8 FUN_002f00d0(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)\n\n{\n  char *__s1;\n  int iVar1;\n  \n  __s1 = *(char **)(param_1 + 8);\n  if (__s1 != *(char **)(param_2 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }\n  *param_4 = param_3;\n  param_4[2] = 0x10;\n  *(undefined4 *)(param_4 + 1) = 6;\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_002f00d0(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)\n\n{\n  char *__s1;\n  int iVar1;\n  \n  __s1 = *(char **)(param_1 + 8);\n  if (__s1 != *(char **)(param_2 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }\n  *param_4 = param_3;\n  param_4[2] = 0x10;\n  *(undefined4 *)(param_4 + 1) = 6;\n  return 1;\n}" type_identifier (function_declarator "FUN_002f00d0(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)" identifier (parameter_list "(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  char *__s1;\n  int iVar1;\n  \n  __s1 = *(char **)(param_1 + 8);\n  if (__s1 != *(char **)(param_2 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }\n  *param_4 = param_3;\n  param_4[2] = 0x10;\n  *(undefined4 *)(param_4 + 1) = 6;\n  return 1;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "__s1 = *(char **)(param_1 + 8);" (assignment_expression "__s1 = *(char **)(param_1 + 8)" identifier = (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (__s1 != *(char **)(param_2 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(__s1 != *(char **)(param_2 + 8))" ( (binary_expression "__s1 != *(char **)(param_2 + 8)" identifier != (pointer_expression "*(char **)(param_2 + 8)" * (cast_expression "(char **)(param_2 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }" { (if_statement "if (*__s1 == '*') {\n      return 0;\n    }" if (parenthesized_expression "(*__s1 == '*')" ( (binary_expression "*__s1 == '*'" (pointer_expression "*__s1" * identifier) == (char_literal "'*'" ' character ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = strcmp(__s1,*(char **)(param_2 + 8));" (assignment_expression "iVar1 = strcmp(__s1,*(char **)(param_2 + 8))" identifier = (call_expression "strcmp(__s1,*(char **)(param_2 + 8))" identifier (argument_list "(__s1,*(char **)(param_2 + 8))" ( identifier , (pointer_expression "*(char **)(param_2 + 8)" * (cast_expression "(char **)(param_2 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "*param_4 = param_3;" (assignment_expression "*param_4 = param_3" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "param_4[2] = 0x10;" (assignment_expression "param_4[2] = 0x10" (subscript_expression "param_4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(param_4 + 1) = 6;" (assignment_expression "*(undefined4 *)(param_4 + 1) = 6" (pointer_expression "*(undefined4 *)(param_4 + 1)" * (cast_expression "(undefined4 *)(param_4 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (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 != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (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 != LIT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_002f00d0(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)\n\n{\n  char *__s1;\n  int iVar1;\n  \n  __s1 = *(char **)(param_1 + 8);\n  if (__s1 != *(char **)(param_2 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }\n  *param_4 = param_3;\n  param_4[2] = 0x10;\n  *(undefined4 *)(param_4 + 1) = 6;\n  return 1;\n}" (type_identifier "undefined8") (function_declarator "FUN_002f00d0(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)" (identifier "FUN_002f00d0") (parameter_list "(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 *param_4" (type_identifier "undefined8") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  char *__s1;\n  int iVar1;\n  \n  __s1 = *(char **)(param_1 + 8);\n  if (__s1 != *(char **)(param_2 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }\n  *param_4 = param_3;\n  param_4[2] = 0x10;\n  *(undefined4 *)(param_4 + 1) = 6;\n  return 1;\n}" ({ "{") (declaration "char *__s1;" (primitive_type "char") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "__s1 = *(char **)(param_1 + 8);" (assignment_expression "__s1 = *(char **)(param_1 + 8)" (identifier "__s1") (= "=") (pointer_expression "*(char **)(param_1 + 8)" (* "*") (cast_expression "(char **)(param_1 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (__s1 != *(char **)(param_2 + 8)) {\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(__s1 != *(char **)(param_2 + 8))" (( "(") (binary_expression "__s1 != *(char **)(param_2 + 8)" (identifier "__s1") (!= "!=") (pointer_expression "*(char **)(param_2 + 8)" (* "*") (cast_expression "(char **)(param_2 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n    if (*__s1 == '*') {\n      return 0;\n    }\n    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));\n    if (iVar1 != 0) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (*__s1 == '*') {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*__s1 == '*')" (( "(") (binary_expression "*__s1 == '*'" (pointer_expression "*__s1" (* "*") (identifier "__s1")) (== "==") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = strcmp(__s1,*(char **)(param_2 + 8));" (assignment_expression "iVar1 = strcmp(__s1,*(char **)(param_2 + 8))" (identifier "iVar1") (= "=") (call_expression "strcmp(__s1,*(char **)(param_2 + 8))" (identifier "strcmp") (argument_list "(__s1,*(char **)(param_2 + 8))" (( "(") (identifier "__s1") (, ",") (pointer_expression "*(char **)(param_2 + 8)" (* "*") (cast_expression "(char **)(param_2 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_4 = param_3;" (assignment_expression "*param_4 = param_3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "param_4[2] = 0x10;" (assignment_expression "param_4[2] = 0x10" (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0x10")) (; ";")) (expression_statement "*(undefined4 *)(param_4 + 1) = 6;" (assignment_expression "*(undefined4 *)(param_4 + 1) = 6" (pointer_expression "*(undefined4 *)(param_4 + 1)" (* "*") (cast_expression "(undefined4 *)(param_4 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 1)" (( "(") (binary_expression "param_4 + 1" (identifier "param_4") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "6")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* __cxxabiv1::__class_type_info::__do_upcast(__cxxabiv1::__class_type_info const*, void const*,
   __cxxabiv1::__class_type_info::__upcast_result&) const */

type_1 __thiscall
__cxxabiv1::type_2::function_1
          (type_2 *var_1,type_2 *var_3,void *param_2,type_3 *var_6
          )

{
  char *var_2;
  int var_5;
  
  var_2 = *(char **)(var_1 + 8);
  if (var_2 != *(char **)(var_3 + 8)) {
    if (*var_2 == '*') {
      return 0;
    }
    var_5 = var_4(var_2,*(char **)(var_3 + 8));
    if (var_5 != 0) {
      return 0;
    }
  }
  *(void **)var_6 = param_2;
  *(type_1 *)(var_6 + 0x10) = 0x10;
  *(type_4 *)(var_6 + 8) = 6;
  return 1;
}


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

undefined8 MASKED(long param_1,long param_2,undefined8 param_3,undefined8 *param_4)

{
  char *__s1;
  int iVar1;
  
  __s1 = *(char **)(param_1 + 8);
  if (__s1 != *(char **)(param_2 + 8)) {
    if (*__s1 == '*') {
      return 0;
    }
    iVar1 = strcmp(__s1,*(char **)(param_2 + 8));
    if (iVar1 != 0) {
      return 0;
    }
  }
  *param_4 = param_3;
  param_4[2] = 0x10;
  *(undefined4 *)(param_4 + 1) = 6;
  return 1;
}

