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

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

{
  char cVar1;
  undefined8 *local_20;
  
  local_20 = (undefined8 *)*param_3;
  cVar1 = (**(code **)(*(long *)param_2 + 0x10))(param_2);
  if (cVar1 != '\0') {
    local_20 = (undefined8 *)*local_20;
  }
  cVar1 = (**(code **)(*(long *)param_1 + 0x20))(param_1,param_2,&local_20,1);
  if (cVar1 != '\0') {
    *param_3 = local_20;
  }
  return;
}



void FUN_002d9980(long *param_1,long *param_2,undefined8 *param_3)

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


PUSH R12
MOV R12,RDX
PUSH RBP
MOV RBP,RDI
MOV RDI,RSI
PUSH RBX
MOV RBX,RSI
SUB RSP,0x10
MOV RAX,qword ptr [RDX]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSI]
CALL qword ptr [RAX + 0x10]
TEST AL,AL
JZ 0x002d99b3
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RBP]
LEA RDX,[RSP + 0x8]
MOV RSI,RBX
MOV RDI,RBP
MOV ECX,0x1
CALL qword ptr [RAX + 0x20]
TEST AL,AL
JZ 0x002d99d7
MOV RDX,qword ptr [RSP + 0x8]
MOV qword ptr [R12],RDX
ADD RSP,0x10
POP RBX
POP RBP
POP R12
RET
(translation_unit "void FUN_002d9980(long *param_1,long *param_2,undefined8 *param_3)\n\n{\n  char cVar1;\n  undefined8 *local_20;\n  \n  local_20 = (undefined8 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 0x10))(param_2);\n  if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }\n  return;\n}\n\n" (function_definition "void FUN_002d9980(long *param_1,long *param_2,undefined8 *param_3)\n\n{\n  char cVar1;\n  undefined8 *local_20;\n  \n  local_20 = (undefined8 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 0x10))(param_2);\n  if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002d9980(long *param_1,long *param_2,undefined8 *param_3)" identifier (parameter_list "(long *param_1,long *param_2,undefined8 *param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined8 *local_20;\n  \n  local_20 = (undefined8 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 0x10))(param_2);\n  if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined8 *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (undefined8 *)*param_3;" (assignment_expression "local_20 = (undefined8 *)*param_3" identifier = (cast_expression "(undefined8 *)*param_3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "cVar1 = (**(code **)(*param_2 + 0x10))(param_2);" (assignment_expression "cVar1 = (**(code **)(*param_2 + 0x10))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 0x10))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x10))" ( (pointer_expression "**(code **)(*param_2 + 0x10)" * (pointer_expression "*(code **)(*param_2 + 0x10)" * (cast_expression "(code **)(*param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_20 = (undefined8 *)*local_20;\n  }" { (expression_statement "local_20 = (undefined8 *)*local_20;" (assignment_expression "local_20 = (undefined8 *)*local_20" identifier = (cast_expression "(undefined8 *)*local_20" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_20" * identifier))) ;) })) (expression_statement "cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1);" (assignment_expression "cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1)" identifier = (call_expression "(**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1)" (parenthesized_expression "(**(code **)(*param_1 + 0x20))" ( (pointer_expression "**(code **)(*param_1 + 0x20)" * (pointer_expression "*(code **)(*param_1 + 0x20)" * (cast_expression "(code **)(*param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x20)" ( (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,&local_20,1)" ( identifier , identifier , (pointer_expression "&local_20" & identifier) , number_literal )))) ;) (if_statement "if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_3 = local_20;\n  }" { (expression_statement "*param_3 = local_20;" (assignment_expression "*param_3 = local_20" (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 get_adjusted_ptr(type_info *param_1,type_info *param_2,void **param_3)\n\n{\n  char cVar1;\n  undefined8 *local_20;\n  \n  local_20 = (undefined8 *)*param_3;\n  cVar1 = (**(code **)(*(long *)param_2 + 0x10))(param_2);\n  if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }\n  cVar1 = (**(code **)(*(long *)param_1 + 0x20))(param_1,param_2,&local_20,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }\n  return;\n}\n\n" comment (function_definition "void get_adjusted_ptr(type_info *param_1,type_info *param_2,void **param_3)\n\n{\n  char cVar1;\n  undefined8 *local_20;\n  \n  local_20 = (undefined8 *)*param_3;\n  cVar1 = (**(code **)(*(long *)param_2 + 0x10))(param_2);\n  if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }\n  cVar1 = (**(code **)(*(long *)param_1 + 0x20))(param_1,param_2,&local_20,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }\n  return;\n}" primitive_type (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  undefined8 *local_20;\n  \n  local_20 = (undefined8 *)*param_3;\n  cVar1 = (**(code **)(*(long *)param_2 + 0x10))(param_2);\n  if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }\n  cVar1 = (**(code **)(*(long *)param_1 + 0x20))(param_1,param_2,&local_20,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined8 *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (undefined8 *)*param_3;" (assignment_expression "local_20 = (undefined8 *)*param_3" identifier = (cast_expression "(undefined8 *)*param_3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "cVar1 = (**(code **)(*(long *)param_2 + 0x10))(param_2);" (assignment_expression "cVar1 = (**(code **)(*(long *)param_2 + 0x10))(param_2)" identifier = (call_expression "(**(code **)(*(long *)param_2 + 0x10))(param_2)" (parenthesized_expression "(**(code **)(*(long *)param_2 + 0x10))" ( (pointer_expression "**(code **)(*(long *)param_2 + 0x10)" * (pointer_expression "*(code **)(*(long *)param_2 + 0x10)" * (cast_expression "(code **)(*(long *)param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_2 + 0x10)" ( (binary_expression "*(long *)param_2 + 0x10" (pointer_expression "*(long *)param_2" * (cast_expression "(long *)param_2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_20 = (undefined8 *)*local_20;\n  }" { (expression_statement "local_20 = (undefined8 *)*local_20;" (assignment_expression "local_20 = (undefined8 *)*local_20" identifier = (cast_expression "(undefined8 *)*local_20" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_20" * identifier))) ;) })) (expression_statement "cVar1 = (**(code **)(*(long *)param_1 + 0x20))(param_1,param_2,&local_20,1);" (assignment_expression "cVar1 = (**(code **)(*(long *)param_1 + 0x20))(param_1,param_2,&local_20,1)" identifier = (call_expression "(**(code **)(*(long *)param_1 + 0x20))(param_1,param_2,&local_20,1)" (parenthesized_expression "(**(code **)(*(long *)param_1 + 0x20))" ( (pointer_expression "**(code **)(*(long *)param_1 + 0x20)" * (pointer_expression "*(code **)(*(long *)param_1 + 0x20)" * (cast_expression "(code **)(*(long *)param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1 + 0x20)" ( (binary_expression "*(long *)param_1 + 0x20" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_1,param_2,&local_20,1)" ( identifier , identifier , (pointer_expression "&local_20" & identifier) , number_literal )))) ;) (if_statement "if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_3 = local_20;\n  }" { (expression_statement "*param_3 = local_20;" (assignment_expression "*param_3 = local_20" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002d9980(long *param_1,long *param_2,undefined8 *param_3)\n\n{\n  char cVar1;\n  undefined8 *local_20;\n  \n  local_20 = (undefined8 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 0x10))(param_2);\n  if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }\n  return;\n}\n\n" (function_definition "void FUN_002d9980(long *param_1,long *param_2,undefined8 *param_3)\n\n{\n  char cVar1;\n  undefined8 *local_20;\n  \n  local_20 = (undefined8 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 0x10))(param_2);\n  if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002d9980(long *param_1,long *param_2,undefined8 *param_3)" identifier (parameter_list "(long *param_1,long *param_2,undefined8 *param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined8 *local_20;\n  \n  local_20 = (undefined8 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 0x10))(param_2);\n  if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined8 *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (undefined8 *)*param_3;" (assignment_expression "local_20 = (undefined8 *)*param_3" identifier = (cast_expression "(undefined8 *)*param_3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "cVar1 = (**(code **)(*param_2 + 0x10))(param_2);" (assignment_expression "cVar1 = (**(code **)(*param_2 + 0x10))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 0x10))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x10))" ( (pointer_expression "**(code **)(*param_2 + 0x10)" * (pointer_expression "*(code **)(*param_2 + 0x10)" * (cast_expression "(code **)(*param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_20 = (undefined8 *)*local_20;\n  }" { (expression_statement "local_20 = (undefined8 *)*local_20;" (assignment_expression "local_20 = (undefined8 *)*local_20" identifier = (cast_expression "(undefined8 *)*local_20" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_20" * identifier))) ;) })) (expression_statement "cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1);" (assignment_expression "cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1)" identifier = (call_expression "(**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1)" (parenthesized_expression "(**(code **)(*param_1 + 0x20))" ( (pointer_expression "**(code **)(*param_1 + 0x20)" * (pointer_expression "*(code **)(*param_1 + 0x20)" * (cast_expression "(code **)(*param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x20)" ( (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,&local_20,1)" ( identifier , identifier , (pointer_expression "&local_20" & identifier) , number_literal )))) ;) (if_statement "if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_3 = local_20;\n  }" { (expression_statement "*param_3 = local_20;" (assignment_expression "*param_3 = local_20" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (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 FUN_002d9980(long *param_1,long *param_2,undefined8 *param_3)\n\n{\n  char cVar1;\n  undefined8 *local_20;\n  \n  local_20 = (undefined8 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 0x10))(param_2);\n  if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002d9980(long *param_1,long *param_2,undefined8 *param_3)" (identifier "FUN_002d9980") (parameter_list "(long *param_1,long *param_2,undefined8 *param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 *param_3" (type_identifier "undefined8") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined8 *local_20;\n  \n  local_20 = (undefined8 *)*param_3;\n  cVar1 = (**(code **)(*param_2 + 0x10))(param_2);\n  if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }\n  cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1);\n  if (cVar1 != '\0') {\n    *param_3 = local_20;\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined8 *local_20;" (type_identifier "undefined8") (pointer_declarator "*local_20" (* "*") (identifier "local_20")) (; ";")) (expression_statement "local_20 = (undefined8 *)*param_3;" (assignment_expression "local_20 = (undefined8 *)*param_3" (identifier "local_20") (= "=") (cast_expression "(undefined8 *)*param_3" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (expression_statement "cVar1 = (**(code **)(*param_2 + 0x10))(param_2);" (assignment_expression "cVar1 = (**(code **)(*param_2 + 0x10))(param_2)" (identifier "cVar1") (= "=") (call_expression "(**(code **)(*param_2 + 0x10))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x10))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x10)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x10)" (* "*") (cast_expression "(code **)(*param_2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x10)" (( "(") (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n    local_20 = (undefined8 *)*local_20;\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_20 = (undefined8 *)*local_20;\n  }" ({ "{") (expression_statement "local_20 = (undefined8 *)*local_20;" (assignment_expression "local_20 = (undefined8 *)*local_20" (identifier "local_20") (= "=") (cast_expression "(undefined8 *)*local_20" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*local_20" (* "*") (identifier "local_20")))) (; ";")) (} "}"))) (expression_statement "cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1);" (assignment_expression "cVar1 = (**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1)" (identifier "cVar1") (= "=") (call_expression "(**(code **)(*param_1 + 0x20))(param_1,param_2,&local_20,1)" (parenthesized_expression "(**(code **)(*param_1 + 0x20))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x20)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x20)" (* "*") (cast_expression "(code **)(*param_1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x20)" (( "(") (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(param_1,param_2,&local_20,1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_20" (& "&") (identifier "local_20")) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n    *param_3 = local_20;\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_20;\n  }" ({ "{") (expression_statement "*param_3 = local_20;" (assignment_expression "*param_3 = local_20" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "local_20")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

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


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) 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 MASKED(long *param_1,long *param_2,undefined8 *param_3)

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

