
/* get_adjusted_ptr(std::type_info const*, std::type_info const*, void**) */

void __regparm3 get_adjusted_ptr(type_info *param_1,type_info *param_2,void **param_3)

{
  char cVar1;
  undefined4 *local_10;
  
  local_10 = (undefined4 *)*param_3;
  cVar1 = (**(code **)(*(int *)param_2 + 8))(param_2);
  if (cVar1 != '\0') {
    local_10 = (undefined4 *)*local_10;
  }
  cVar1 = (**(code **)(*(int *)param_1 + 0x10))(param_1,param_2,&local_10,1);
  if (cVar1 != '\0') {
    *param_3 = local_10;
  }
  return;
}



void __regparm3 FUN_0017f1e0(int *param_1,int *param_2,undefined4 *param_3)

{
  char cVar1;
  undefined4 *local_10;
  
  local_10 = (undefined4 *)*param_3;
  cVar1 = (**(code **)(*param_2 + 8))(param_2);
  if (cVar1 != '\0') {
    local_10 = (undefined4 *)*local_10;
  }
  cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);
  if (cVar1 != '\0') {
    *param_3 = local_10;
  }
  return;
}


PUSH EDI
MOV EDI,ECX
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOV EBX,EDX
SUB ESP,0x1c
MOV EAX,dword ptr [ECX]
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [EDX]
PUSH EDX
CALL dword ptr [EAX + 0x8]
ADD ESP,0x10
TEST AL,AL
JZ 0x0017f209
MOV EAX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0xc],EAX
PUSH 0x1
MOV EAX,dword ptr [ESI]
LEA EDX,[ESP + 0x10]
PUSH EDX
PUSH EBX
PUSH ESI
CALL dword ptr [EAX + 0x10]
ADD ESP,0x10
TEST AL,AL
JZ 0x0017f224
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [EDI],EDX
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "void __regparm3 FUN_0017f1e0(int *param_1,int *param_2,undefined4 *param_3)\n\n{\n  char cVar1;\n  undefined4 *local_10;\n  \n  local_10 = (undefined4 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 8))(param_2);\n  if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0017f1e0(int *param_1,int *param_2,undefined4 *param_3)\n\n{\n  char cVar1;\n  undefined4 *local_10;\n  \n  local_10 = (undefined4 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 8))(param_2);\n  if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0017f1e0(int *param_1,int *param_2,undefined4 *param_3)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined4 *local_10;\n  \n  local_10 = (undefined4 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 8))(param_2);\n  if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 *local_10;" type_identifier (pointer_declarator "*local_10" * identifier) ;) (expression_statement "local_10 = (undefined4 *)*param_3;" (assignment_expression "local_10 = (undefined4 *)*param_3" identifier = (cast_expression "(undefined4 *)*param_3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "cVar1 = (**(code **)(*param_2 + 8))(param_2);" (assignment_expression "cVar1 = (**(code **)(*param_2 + 8))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 8))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 8))" ( (pointer_expression "**(code **)(*param_2 + 8)" * (pointer_expression "*(code **)(*param_2 + 8)" * (cast_expression "(code **)(*param_2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_10 = (undefined4 *)*local_10;\n  }" { (expression_statement "local_10 = (undefined4 *)*local_10;" (assignment_expression "local_10 = (undefined4 *)*local_10" identifier = (cast_expression "(undefined4 *)*local_10" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_10" * identifier))) ;) })) (expression_statement "cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);" (assignment_expression "cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1)" identifier = (call_expression "(**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" ( (pointer_expression "**(code **)(*param_1 + 0x10)" * (pointer_expression "*(code **)(*param_1 + 0x10)" * (cast_expression "(code **)(*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,&local_10,1)" ( identifier , identifier , (pointer_expression "&local_10" & identifier) , number_literal )))) ;) (if_statement "if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_3 = local_10;\n  }" { (expression_statement "*param_3 = local_10;" (assignment_expression "*param_3 = local_10" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* get_adjusted_ptr(std::type_info const*, std::type_info const*, void**) */\n\nvoid __regparm3 get_adjusted_ptr(type_info *param_1,type_info *param_2,void **param_3)\n\n{\n  char cVar1;\n  undefined4 *local_10;\n  \n  local_10 = (undefined4 *)*param_3;\n  cVar1 = (**(code **)(*(int *)param_2 + 8))(param_2);\n  if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }\n  cVar1 = (**(code **)(*(int *)param_1 + 0x10))(param_1,param_2,&local_10,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 get_adjusted_ptr(type_info *param_1,type_info *param_2,void **param_3)\n\n{\n  char cVar1;\n  undefined4 *local_10;\n  \n  local_10 = (undefined4 *)*param_3;\n  cVar1 = (**(code **)(*(int *)param_2 + 8))(param_2);\n  if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }\n  cVar1 = (**(code **)(*(int *)param_1 + 0x10))(param_1,param_2,&local_10,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "get_adjusted_ptr(type_info *param_1,type_info *param_2,void **param_3)" identifier (parameter_list "(type_info *param_1,type_info *param_2,void **param_3)" ( (parameter_declaration "type_info *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "type_info *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void **param_3" primitive_type (pointer_declarator "**param_3" * (pointer_declarator "*param_3" * identifier))) ))) (compound_statement "{\n  char cVar1;\n  undefined4 *local_10;\n  \n  local_10 = (undefined4 *)*param_3;\n  cVar1 = (**(code **)(*(int *)param_2 + 8))(param_2);\n  if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }\n  cVar1 = (**(code **)(*(int *)param_1 + 0x10))(param_1,param_2,&local_10,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 *local_10;" type_identifier (pointer_declarator "*local_10" * identifier) ;) (expression_statement "local_10 = (undefined4 *)*param_3;" (assignment_expression "local_10 = (undefined4 *)*param_3" identifier = (cast_expression "(undefined4 *)*param_3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "cVar1 = (**(code **)(*(int *)param_2 + 8))(param_2);" (assignment_expression "cVar1 = (**(code **)(*(int *)param_2 + 8))(param_2)" identifier = (call_expression "(**(code **)(*(int *)param_2 + 8))(param_2)" (parenthesized_expression "(**(code **)(*(int *)param_2 + 8))" ( (pointer_expression "**(code **)(*(int *)param_2 + 8)" * (pointer_expression "*(code **)(*(int *)param_2 + 8)" * (cast_expression "(code **)(*(int *)param_2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_2 + 8)" ( (binary_expression "*(int *)param_2 + 8" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_10 = (undefined4 *)*local_10;\n  }" { (expression_statement "local_10 = (undefined4 *)*local_10;" (assignment_expression "local_10 = (undefined4 *)*local_10" identifier = (cast_expression "(undefined4 *)*local_10" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_10" * identifier))) ;) })) (expression_statement "cVar1 = (**(code **)(*(int *)param_1 + 0x10))(param_1,param_2,&local_10,1);" (assignment_expression "cVar1 = (**(code **)(*(int *)param_1 + 0x10))(param_1,param_2,&local_10,1)" identifier = (call_expression "(**(code **)(*(int *)param_1 + 0x10))(param_1,param_2,&local_10,1)" (parenthesized_expression "(**(code **)(*(int *)param_1 + 0x10))" ( (pointer_expression "**(code **)(*(int *)param_1 + 0x10)" * (pointer_expression "*(code **)(*(int *)param_1 + 0x10)" * (cast_expression "(code **)(*(int *)param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_1 + 0x10)" ( (binary_expression "*(int *)param_1 + 0x10" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_1,param_2,&local_10,1)" ( identifier , identifier , (pointer_expression "&local_10" & identifier) , number_literal )))) ;) (if_statement "if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_3 = local_10;\n  }" { (expression_statement "*param_3 = local_10;" (assignment_expression "*param_3 = local_10" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0017f1e0(int *param_1,int *param_2,undefined4 *param_3)\n\n{\n  char cVar1;\n  undefined4 *local_10;\n  \n  local_10 = (undefined4 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 8))(param_2);\n  if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0017f1e0(int *param_1,int *param_2,undefined4 *param_3)\n\n{\n  char cVar1;\n  undefined4 *local_10;\n  \n  local_10 = (undefined4 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 8))(param_2);\n  if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0017f1e0(int *param_1,int *param_2,undefined4 *param_3)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined4 *local_10;\n  \n  local_10 = (undefined4 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 8))(param_2);\n  if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 *local_10;" type_identifier (pointer_declarator "*local_10" * identifier) ;) (expression_statement "local_10 = (undefined4 *)*param_3;" (assignment_expression "local_10 = (undefined4 *)*param_3" identifier = (cast_expression "(undefined4 *)*param_3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "cVar1 = (**(code **)(*param_2 + 8))(param_2);" (assignment_expression "cVar1 = (**(code **)(*param_2 + 8))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 8))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 8))" ( (pointer_expression "**(code **)(*param_2 + 8)" * (pointer_expression "*(code **)(*param_2 + 8)" * (cast_expression "(code **)(*param_2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_10 = (undefined4 *)*local_10;\n  }" { (expression_statement "local_10 = (undefined4 *)*local_10;" (assignment_expression "local_10 = (undefined4 *)*local_10" identifier = (cast_expression "(undefined4 *)*local_10" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_10" * identifier))) ;) })) (expression_statement "cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);" (assignment_expression "cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1)" identifier = (call_expression "(**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" ( (pointer_expression "**(code **)(*param_1 + 0x10)" * (pointer_expression "*(code **)(*param_1 + 0x10)" * (cast_expression "(code **)(*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,&local_10,1)" ( identifier , identifier , (pointer_expression "&local_10" & identifier) , number_literal )))) ;) (if_statement "if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_3 = local_10;\n  }" { (expression_statement "*param_3 = local_10;" (assignment_expression "*param_3 = local_10" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * 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 * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * 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 * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0017f1e0(int *param_1,int *param_2,undefined4 *param_3)\n\n{\n  char cVar1;\n  undefined4 *local_10;\n  \n  local_10 = (undefined4 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 8))(param_2);\n  if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0017f1e0(int *param_1,int *param_2,undefined4 *param_3)" (identifier "FUN_0017f1e0") (parameter_list "(int *param_1,int *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined4 *local_10;\n  \n  local_10 = (undefined4 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 8))(param_2);\n  if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined4 *local_10;" (type_identifier "undefined4") (pointer_declarator "*local_10" (* "*") (identifier "local_10")) (; ";")) (expression_statement "local_10 = (undefined4 *)*param_3;" (assignment_expression "local_10 = (undefined4 *)*param_3" (identifier "local_10") (= "=") (cast_expression "(undefined4 *)*param_3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (expression_statement "cVar1 = (**(code **)(*param_2 + 8))(param_2);" (assignment_expression "cVar1 = (**(code **)(*param_2 + 8))(param_2)" (identifier "cVar1") (= "=") (call_expression "(**(code **)(*param_2 + 8))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 8))" (( "(") (pointer_expression "**(code **)(*param_2 + 8)" (* "*") (pointer_expression "*(code **)(*param_2 + 8)" (* "*") (cast_expression "(code **)(*param_2 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 8)" (( "(") (binary_expression "*param_2 + 8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n    local_10 = (undefined4 *)*local_10;\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_10 = (undefined4 *)*local_10;\n  }" ({ "{") (expression_statement "local_10 = (undefined4 *)*local_10;" (assignment_expression "local_10 = (undefined4 *)*local_10" (identifier "local_10") (= "=") (cast_expression "(undefined4 *)*local_10" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*local_10" (* "*") (identifier "local_10")))) (; ";")) (} "}"))) (expression_statement "cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);" (assignment_expression "cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1)" (identifier "cVar1") (= "=") (call_expression "(**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x10)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x10)" (* "*") (cast_expression "(code **)(*param_1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x10)" (( "(") (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(param_1,param_2,&local_10,1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n    *param_3 = local_10;\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *param_3 = local_10;\n  }" ({ "{") (expression_statement "*param_3 = local_10;" (assignment_expression "*param_3 = local_10" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "local_10")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* get_adjusted_ptr(std::type_info const*, std::type_info const*, void**) */

void __regparm3 function_1(type_1 *param_1,type_1 *param_2,void **param_3)

{
  char var_1;
  type_2 *local_10;
  
  local_10 = (type_2 *)*param_3;
  var_1 = (**(type_3 **)(*(int *)param_2 + 8))(param_2);
  if (var_1 != '\0') {
    local_10 = (type_2 *)*local_10;
  }
  var_1 = (**(type_3 **)(*(int *)param_1 + 0x10))(param_1,param_2,&local_10,1);
  if (var_1 != '\0') {
    *param_3 = local_10;
  }
  return;
}


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

void __regparm3 MASKED(int *param_1,int *param_2,undefined4 *param_3)

{
  char cVar1;
  undefined4 *local_10;
  
  local_10 = (undefined4 *)*param_3;
  cVar1 = (**(code **)(*param_2 + 8))(param_2);
  if (cVar1 != '\0') {
    local_10 = (undefined4 *)*local_10;
  }
  cVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,&local_10,1);
  if (cVar1 != '\0') {
    *param_3 = local_10;
  }
  return;
}

