
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::messages<wchar_t> const& std::use_facet<std::messages<wchar_t> >(std::locale const&) */

messages * std::use_facet<std::messages<wchar_t>>(locale *param_1)

{
  uint uVar1;
  messages *pmVar2;
  int *piVar3;
  int iVar4;
  undefined *puVar5;
  
  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);
  if ((*(uint *)(*(int *)param_1 + 8) <= uVar1) ||
     (piVar3 = *(int **)(*(int *)(*(int *)param_1 + 4) + uVar1 * 4), piVar3 == (int *)0x0)) {
                    /* WARNING: Subroutine does not return */
    __throw_bad_cast();
  }
  pmVar2 = (messages *)__dynamic_cast(piVar3,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);
  if (pmVar2 != (messages *)0x0) {
    return pmVar2;
  }
  puVar5 = PTR___cxa_bad_cast_004c2c80;
  (*(code *)PTR___cxa_bad_cast_004c2c80)();
  uVar1 = (**(code **)(puVar5 + 0x123794))(*(undefined4 *)(puVar5 + 0x123a58));
  if ((uVar1 < *(uint *)(*piVar3 + 8)) &&
     (iVar4 = *(int *)(*(int *)(*piVar3 + 4) + uVar1 * 4), iVar4 != 0)) {
    iVar4 = __dynamic_cast(iVar4,*(undefined4 *)(puVar5 + 0x121e84),
                           *(undefined4 *)(puVar5 + 0x123a5c),0);
    return (messages *)(uint)(iVar4 != 0);
  }
  return (messages *)0x0;
}



uint FUN_0039f444(int *param_1)

{
  uint uVar1;
  int *piVar2;
  int iVar3;
  undefined *puVar4;
  
  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);
  if ((*(uint *)(*param_1 + 8) <= uVar1) ||
     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {
                    /* WARNING: Subroutine does not return */
    std::__throw_bad_cast();
  }
  uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);
  if (uVar1 != 0) {
    return uVar1;
  }
  puVar4 = PTR___cxa_bad_cast_004c2c80;
  (*(code *)PTR___cxa_bad_cast_004c2c80)();
  uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));
  if ((uVar1 < *(uint *)(*piVar2 + 8)) &&
     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {
    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),
                           *(undefined4 *)(puVar4 + 0x123a5c),0);
    return (uint)(iVar3 != 0);
  }
  return 0;
}


lui gp,0x13
addiu gp,gp,-0x6204
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x65cc(gp)
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw a0,-0x7e9c(gp)
jalr t9
_nop
lw a0,0x0(s0)
lw gp,0x10(sp)
lw v1,0x8(a0)
sltu v1,v0,v1
beq v1,zero,0x0039f4c8
_lw a0,0x4(a0)
sll v0,v0,0x2
addu v0,a0,v0
lw a0,0x0(v0)
beq a0,zero,0x0039f4c8
_lw t9,-0x7ee4(gp)
lw a2,-0x62a4(gp)
lw a1,-0x7edc(gp)
bal 0x0038cef0
_or a3,zero,zero
beq v0,zero,0x0039f4d4
_lw gp,0x10(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x6f84(gp)
bal 0x00389530
_nop
lw t9,-0x65c0(gp)
jalr t9
_nop
(translation_unit "uint FUN_0039f444(int *param_1)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);\n  if ((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_bad_cast();\n  }\n  uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);\n  if (uVar1 != 0) {\n    return uVar1;\n  }\n  puVar4 = PTR___cxa_bad_cast_004c2c80;\n  (*(code *)PTR___cxa_bad_cast_004c2c80)();\n  uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));\n  if ((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_0039f444(int *param_1)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);\n  if ((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_bad_cast();\n  }\n  uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);\n  if (uVar1 != 0) {\n    return uVar1;\n  }\n  puVar4 = PTR___cxa_bad_cast_004c2c80;\n  (*(code *)PTR___cxa_bad_cast_004c2c80)();\n  uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));\n  if ((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0039f444(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);\n  if ((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_bad_cast();\n  }\n  uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);\n  if (uVar1 != 0) {\n    return uVar1;\n  }\n  puVar4 = PTR___cxa_bad_cast_004c2c80;\n  (*(code *)PTR___cxa_bad_cast_004c2c80)();\n  uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));\n  if ((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);" (assignment_expression "uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4)" identifier = (call_expression "(*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4)" (parenthesized_expression "(*(code *)PTR__M_id_004c2c74)" ( (pointer_expression "*(code *)PTR__M_id_004c2c74" * (cast_expression "(code *)PTR__M_id_004c2c74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_id_004c13a4)" ( identifier )))) ;) (if_statement "if ((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_bad_cast();\n  }" if (parenthesized_expression "((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0))" ( (binary_expression "(*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)" (parenthesized_expression "(*(uint *)(*param_1 + 8) <= uVar1)" ( (binary_expression "*(uint *)(*param_1 + 8) <= uVar1" (pointer_expression "*(uint *)(*param_1 + 8)" * (cast_expression "(uint *)(*param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) <= identifier) )) || (parenthesized_expression "(piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)" ( (comma_expression "piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0" (assignment_expression "piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(*param_1 + 4) + uVar1 * 4)" * (cast_expression "(int **)(*(int *)(*param_1 + 4) + uVar1 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*param_1 + 4) + uVar1 * 4)" ( (binary_expression "*(int *)(*param_1 + 4) + uVar1 * 4" (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" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) , (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    std::__throw_bad_cast();\n  }" { comment (labeled_statement "std::__throw_bad_cast();" statement_identifier : (ERROR ":" :) (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);" (assignment_expression "uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" identifier = (call_expression "__dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" identifier (argument_list "(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (uVar1 != 0) {\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "puVar4 = PTR___cxa_bad_cast_004c2c80;" (assignment_expression "puVar4 = PTR___cxa_bad_cast_004c2c80" identifier = identifier) ;) (expression_statement "(*(code *)PTR___cxa_bad_cast_004c2c80)();" (call_expression "(*(code *)PTR___cxa_bad_cast_004c2c80)()" (parenthesized_expression "(*(code *)PTR___cxa_bad_cast_004c2c80)" ( (pointer_expression "*(code *)PTR___cxa_bad_cast_004c2c80" * (cast_expression "(code *)PTR___cxa_bad_cast_004c2c80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));" (assignment_expression "uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58))" identifier = (call_expression "(**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58))" (parenthesized_expression "(**(code **)(puVar4 + 0x123794))" ( (pointer_expression "**(code **)(puVar4 + 0x123794)" * (pointer_expression "*(code **)(puVar4 + 0x123794)" * (cast_expression "(code **)(puVar4 + 0x123794)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x123794)" ( (binary_expression "puVar4 + 0x123794" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(puVar4 + 0x123a58))" ( (pointer_expression "*(undefined4 *)(puVar4 + 0x123a58)" * (cast_expression "(undefined4 *)(puVar4 + 0x123a58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x123a58)" ( (binary_expression "puVar4 + 0x123a58" identifier + number_literal) )))) )))) ;) (if_statement "if ((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }" if (parenthesized_expression "((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0))" ( (binary_expression "(uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)" (parenthesized_expression "(uVar1 < *(uint *)(*piVar2 + 8))" ( (binary_expression "uVar1 < *(uint *)(*piVar2 + 8)" identifier < (pointer_expression "*(uint *)(*piVar2 + 8)" * (cast_expression "(uint *)(*piVar2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 8)" ( (binary_expression "*piVar2 + 8" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) && (parenthesized_expression "(iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)" ( (comma_expression "iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0" (assignment_expression "iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4)" * (cast_expression "(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*piVar2 + 4) + uVar1 * 4)" ( (binary_expression "*(int *)(*piVar2 + 4) + uVar1 * 4" (pointer_expression "*(int *)(*piVar2 + 4)" * (cast_expression "(int *)(*piVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) )))) + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }" { (expression_statement "iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);" (assignment_expression "iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0)" identifier = (call_expression "__dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0)" identifier (argument_list "(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0)" ( identifier , (pointer_expression "*(undefined4 *)(puVar4 + 0x121e84)" * (cast_expression "(undefined4 *)(puVar4 + 0x121e84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x121e84)" ( (binary_expression "puVar4 + 0x121e84" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(puVar4 + 0x123a5c)" * (cast_expression "(undefined4 *)(puVar4 + 0x123a5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x123a5c)" ( (binary_expression "puVar4 + 0x123a5c" identifier + number_literal) )))) , number_literal )))) ;) (return_statement "return (uint)(iVar3 != 0);" return (call_expression "(uint)(iVar3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::messages<wchar_t> const& std::use_facet<std::messages<wchar_t> >(std::locale const&) */\n\nmessages * std::use_facet<std::messages<wchar_t>>(locale *param_1)\n\n{\n  uint uVar1;\n  messages *pmVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);\n  if ((*(uint *)(*(int *)param_1 + 8) <= uVar1) ||\n     (piVar3 = *(int **)(*(int *)(*(int *)param_1 + 4) + uVar1 * 4), piVar3 == (int *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }\n  pmVar2 = (messages *)__dynamic_cast(piVar3,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);\n  if (pmVar2 != (messages *)0x0) {\n    return pmVar2;\n  }\n  puVar5 = PTR___cxa_bad_cast_004c2c80;\n  (*(code *)PTR___cxa_bad_cast_004c2c80)();\n  uVar1 = (**(code **)(puVar5 + 0x123794))(*(undefined4 *)(puVar5 + 0x123a58));\n  if ((uVar1 < *(uint *)(*piVar3 + 8)) &&\n     (iVar4 = *(int *)(*(int *)(*piVar3 + 4) + uVar1 * 4), iVar4 != 0)) {\n    iVar4 = __dynamic_cast(iVar4,*(undefined4 *)(puVar5 + 0x121e84),\n                           *(undefined4 *)(puVar5 + 0x123a5c),0);\n    return (messages *)(uint)(iVar4 != 0);\n  }\n  return (messages *)0x0;\n}\n\n" comment comment (ERROR "messages * std::use_facet<std::messages<wchar_t>>(locale *param_1)" (binary_expression "messages * std::use_facet<std::messages<wchar_t>>(locale *param_1)" (binary_expression "messages * std::use_facet<std" (binary_expression "messages * std" identifier * identifier) (ERROR "::use_facet" : : identifier) < identifier) (ERROR "::messages" : : identifier) < (binary_expression "wchar_t>>(locale *param_1)" identifier >> (parenthesized_expression "(locale *param_1)" ( (binary_expression "locale *param_1" identifier * identifier) ))))) (compound_statement "{\n  uint uVar1;\n  messages *pmVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);\n  if ((*(uint *)(*(int *)param_1 + 8) <= uVar1) ||\n     (piVar3 = *(int **)(*(int *)(*(int *)param_1 + 4) + uVar1 * 4), piVar3 == (int *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }\n  pmVar2 = (messages *)__dynamic_cast(piVar3,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);\n  if (pmVar2 != (messages *)0x0) {\n    return pmVar2;\n  }\n  puVar5 = PTR___cxa_bad_cast_004c2c80;\n  (*(code *)PTR___cxa_bad_cast_004c2c80)();\n  uVar1 = (**(code **)(puVar5 + 0x123794))(*(undefined4 *)(puVar5 + 0x123a58));\n  if ((uVar1 < *(uint *)(*piVar3 + 8)) &&\n     (iVar4 = *(int *)(*(int *)(*piVar3 + 4) + uVar1 * 4), iVar4 != 0)) {\n    iVar4 = __dynamic_cast(iVar4,*(undefined4 *)(puVar5 + 0x121e84),\n                           *(undefined4 *)(puVar5 + 0x123a5c),0);\n    return (messages *)(uint)(iVar4 != 0);\n  }\n  return (messages *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "messages *pmVar2;" type_identifier (pointer_declarator "*pmVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);" (assignment_expression "uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4)" identifier = (call_expression "(*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4)" (parenthesized_expression "(*(code *)PTR__M_id_004c2c74)" ( (pointer_expression "*(code *)PTR__M_id_004c2c74" * (cast_expression "(code *)PTR__M_id_004c2c74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_id_004c13a4)" ( identifier )))) ;) (if_statement "if ((*(uint *)(*(int *)param_1 + 8) <= uVar1) ||\n     (piVar3 = *(int **)(*(int *)(*(int *)param_1 + 4) + uVar1 * 4), piVar3 == (int *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }" if (parenthesized_expression "((*(uint *)(*(int *)param_1 + 8) <= uVar1) ||\n     (piVar3 = *(int **)(*(int *)(*(int *)param_1 + 4) + uVar1 * 4), piVar3 == (int *)0x0))" ( (binary_expression "(*(uint *)(*(int *)param_1 + 8) <= uVar1) ||\n     (piVar3 = *(int **)(*(int *)(*(int *)param_1 + 4) + uVar1 * 4), piVar3 == (int *)0x0)" (parenthesized_expression "(*(uint *)(*(int *)param_1 + 8) <= uVar1)" ( (binary_expression "*(uint *)(*(int *)param_1 + 8) <= uVar1" (pointer_expression "*(uint *)(*(int *)param_1 + 8)" * (cast_expression "(uint *)(*(int *)param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + 8)" ( (binary_expression "*(int *)param_1 + 8" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) <= identifier) )) || (parenthesized_expression "(piVar3 = *(int **)(*(int *)(*(int *)param_1 + 4) + uVar1 * 4), piVar3 == (int *)0x0)" ( (comma_expression "piVar3 = *(int **)(*(int *)(*(int *)param_1 + 4) + uVar1 * 4), piVar3 == (int *)0x0" (assignment_expression "piVar3 = *(int **)(*(int *)(*(int *)param_1 + 4) + uVar1 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(*(int *)param_1 + 4) + uVar1 * 4)" * (cast_expression "(int **)(*(int *)(*(int *)param_1 + 4) + uVar1 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)param_1 + 4) + uVar1 * 4)" ( (binary_expression "*(int *)(*(int *)param_1 + 4) + uVar1 * 4" (pointer_expression "*(int *)(*(int *)param_1 + 4)" * (cast_expression "(int *)(*(int *)param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + 4)" ( (binary_expression "*(int *)param_1 + 4" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) , (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }" { comment (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "pmVar2 = (messages *)__dynamic_cast(piVar3,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);" (assignment_expression "pmVar2 = (messages *)__dynamic_cast(piVar3,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" identifier = (cast_expression "(messages *)__dynamic_cast(piVar3,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" ( (type_descriptor "messages *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__dynamic_cast(piVar3,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" identifier (argument_list "(piVar3,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" ( identifier , identifier , identifier , number_literal ))))) ;) (if_statement "if (pmVar2 != (messages *)0x0) {\n    return pmVar2;\n  }" if (parenthesized_expression "(pmVar2 != (messages *)0x0)" ( (binary_expression "pmVar2 != (messages *)0x0" identifier != (cast_expression "(messages *)0x0" ( (type_descriptor "messages *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return pmVar2;\n  }" { (return_statement "return pmVar2;" return identifier ;) })) (expression_statement "puVar5 = PTR___cxa_bad_cast_004c2c80;" (assignment_expression "puVar5 = PTR___cxa_bad_cast_004c2c80" identifier = identifier) ;) (expression_statement "(*(code *)PTR___cxa_bad_cast_004c2c80)();" (call_expression "(*(code *)PTR___cxa_bad_cast_004c2c80)()" (parenthesized_expression "(*(code *)PTR___cxa_bad_cast_004c2c80)" ( (pointer_expression "*(code *)PTR___cxa_bad_cast_004c2c80" * (cast_expression "(code *)PTR___cxa_bad_cast_004c2c80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = (**(code **)(puVar5 + 0x123794))(*(undefined4 *)(puVar5 + 0x123a58));" (assignment_expression "uVar1 = (**(code **)(puVar5 + 0x123794))(*(undefined4 *)(puVar5 + 0x123a58))" identifier = (call_expression "(**(code **)(puVar5 + 0x123794))(*(undefined4 *)(puVar5 + 0x123a58))" (parenthesized_expression "(**(code **)(puVar5 + 0x123794))" ( (pointer_expression "**(code **)(puVar5 + 0x123794)" * (pointer_expression "*(code **)(puVar5 + 0x123794)" * (cast_expression "(code **)(puVar5 + 0x123794)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x123794)" ( (binary_expression "puVar5 + 0x123794" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(puVar5 + 0x123a58))" ( (pointer_expression "*(undefined4 *)(puVar5 + 0x123a58)" * (cast_expression "(undefined4 *)(puVar5 + 0x123a58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x123a58)" ( (binary_expression "puVar5 + 0x123a58" identifier + number_literal) )))) )))) ;) (if_statement "if ((uVar1 < *(uint *)(*piVar3 + 8)) &&\n     (iVar4 = *(int *)(*(int *)(*piVar3 + 4) + uVar1 * 4), iVar4 != 0)) {\n    iVar4 = __dynamic_cast(iVar4,*(undefined4 *)(puVar5 + 0x121e84),\n                           *(undefined4 *)(puVar5 + 0x123a5c),0);\n    return (messages *)(uint)(iVar4 != 0);\n  }" if (parenthesized_expression "((uVar1 < *(uint *)(*piVar3 + 8)) &&\n     (iVar4 = *(int *)(*(int *)(*piVar3 + 4) + uVar1 * 4), iVar4 != 0))" ( (binary_expression "(uVar1 < *(uint *)(*piVar3 + 8)) &&\n     (iVar4 = *(int *)(*(int *)(*piVar3 + 4) + uVar1 * 4), iVar4 != 0)" (parenthesized_expression "(uVar1 < *(uint *)(*piVar3 + 8))" ( (binary_expression "uVar1 < *(uint *)(*piVar3 + 8)" identifier < (pointer_expression "*(uint *)(*piVar3 + 8)" * (cast_expression "(uint *)(*piVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 8)" ( (binary_expression "*piVar3 + 8" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) && (parenthesized_expression "(iVar4 = *(int *)(*(int *)(*piVar3 + 4) + uVar1 * 4), iVar4 != 0)" ( (comma_expression "iVar4 = *(int *)(*(int *)(*piVar3 + 4) + uVar1 * 4), iVar4 != 0" (assignment_expression "iVar4 = *(int *)(*(int *)(*piVar3 + 4) + uVar1 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(*piVar3 + 4) + uVar1 * 4)" * (cast_expression "(int *)(*(int *)(*piVar3 + 4) + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*piVar3 + 4) + uVar1 * 4)" ( (binary_expression "*(int *)(*piVar3 + 4) + uVar1 * 4" (pointer_expression "*(int *)(*piVar3 + 4)" * (cast_expression "(int *)(*piVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 4)" ( (binary_expression "*piVar3 + 4" (pointer_expression "*piVar3" * identifier) + number_literal) )))) + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar4 = __dynamic_cast(iVar4,*(undefined4 *)(puVar5 + 0x121e84),\n                           *(undefined4 *)(puVar5 + 0x123a5c),0);\n    return (messages *)(uint)(iVar4 != 0);\n  }" { (expression_statement "iVar4 = __dynamic_cast(iVar4,*(undefined4 *)(puVar5 + 0x121e84),\n                           *(undefined4 *)(puVar5 + 0x123a5c),0);" (assignment_expression "iVar4 = __dynamic_cast(iVar4,*(undefined4 *)(puVar5 + 0x121e84),\n                           *(undefined4 *)(puVar5 + 0x123a5c),0)" identifier = (call_expression "__dynamic_cast(iVar4,*(undefined4 *)(puVar5 + 0x121e84),\n                           *(undefined4 *)(puVar5 + 0x123a5c),0)" identifier (argument_list "(iVar4,*(undefined4 *)(puVar5 + 0x121e84),\n                           *(undefined4 *)(puVar5 + 0x123a5c),0)" ( identifier , (pointer_expression "*(undefined4 *)(puVar5 + 0x121e84)" * (cast_expression "(undefined4 *)(puVar5 + 0x121e84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x121e84)" ( (binary_expression "puVar5 + 0x121e84" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(puVar5 + 0x123a5c)" * (cast_expression "(undefined4 *)(puVar5 + 0x123a5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x123a5c)" ( (binary_expression "puVar5 + 0x123a5c" identifier + number_literal) )))) , number_literal )))) ;) (return_statement "return (messages *)(uint)(iVar4 != 0);" return (cast_expression "(messages *)(uint)(iVar4 != 0)" ( (type_descriptor "messages *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(iVar4 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )))) ;) })) (return_statement "return (messages *)0x0;" return (cast_expression "(messages *)0x0" ( (type_descriptor "messages *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "uint FUN_0039f444(int *param_1)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);\n  if ((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {\n                    \n    std::__throw_bad_cast();\n  }\n  uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);\n  if (uVar1 != 0) {\n    return uVar1;\n  }\n  puVar4 = PTR___cxa_bad_cast_004c2c80;\n  (*(code *)PTR___cxa_bad_cast_004c2c80)();\n  uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));\n  if ((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_0039f444(int *param_1)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);\n  if ((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {\n                    \n    std::__throw_bad_cast();\n  }\n  uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);\n  if (uVar1 != 0) {\n    return uVar1;\n  }\n  puVar4 = PTR___cxa_bad_cast_004c2c80;\n  (*(code *)PTR___cxa_bad_cast_004c2c80)();\n  uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));\n  if ((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0039f444(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);\n  if ((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {\n                    \n    std::__throw_bad_cast();\n  }\n  uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);\n  if (uVar1 != 0) {\n    return uVar1;\n  }\n  puVar4 = PTR___cxa_bad_cast_004c2c80;\n  (*(code *)PTR___cxa_bad_cast_004c2c80)();\n  uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));\n  if ((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);" (assignment_expression "uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4)" identifier = (call_expression "(*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4)" (parenthesized_expression "(*(code *)PTR__M_id_004c2c74)" ( (pointer_expression "*(code *)PTR__M_id_004c2c74" * (cast_expression "(code *)PTR__M_id_004c2c74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_id_004c13a4)" ( identifier )))) ;) (if_statement "if ((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {\n                    \n    std::__throw_bad_cast();\n  }" if (parenthesized_expression "((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0))" ( (binary_expression "(*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)" (parenthesized_expression "(*(uint *)(*param_1 + 8) <= uVar1)" ( (binary_expression "*(uint *)(*param_1 + 8) <= uVar1" (pointer_expression "*(uint *)(*param_1 + 8)" * (cast_expression "(uint *)(*param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) <= identifier) )) || (parenthesized_expression "(piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)" ( (comma_expression "piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0" (assignment_expression "piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(*param_1 + 4) + uVar1 * 4)" * (cast_expression "(int **)(*(int *)(*param_1 + 4) + uVar1 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*param_1 + 4) + uVar1 * 4)" ( (binary_expression "*(int *)(*param_1 + 4) + uVar1 * 4" (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" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) , (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n                    \n    std::__throw_bad_cast();\n  }" { (labeled_statement "std::__throw_bad_cast();" statement_identifier : (ERROR ":" :) (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);" (assignment_expression "uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" identifier = (call_expression "__dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" identifier (argument_list "(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (uVar1 != 0) {\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "puVar4 = PTR___cxa_bad_cast_004c2c80;" (assignment_expression "puVar4 = PTR___cxa_bad_cast_004c2c80" identifier = identifier) ;) (expression_statement "(*(code *)PTR___cxa_bad_cast_004c2c80)();" (call_expression "(*(code *)PTR___cxa_bad_cast_004c2c80)()" (parenthesized_expression "(*(code *)PTR___cxa_bad_cast_004c2c80)" ( (pointer_expression "*(code *)PTR___cxa_bad_cast_004c2c80" * (cast_expression "(code *)PTR___cxa_bad_cast_004c2c80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));" (assignment_expression "uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58))" identifier = (call_expression "(**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58))" (parenthesized_expression "(**(code **)(puVar4 + 0x123794))" ( (pointer_expression "**(code **)(puVar4 + 0x123794)" * (pointer_expression "*(code **)(puVar4 + 0x123794)" * (cast_expression "(code **)(puVar4 + 0x123794)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x123794)" ( (binary_expression "puVar4 + 0x123794" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(puVar4 + 0x123a58))" ( (pointer_expression "*(undefined4 *)(puVar4 + 0x123a58)" * (cast_expression "(undefined4 *)(puVar4 + 0x123a58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x123a58)" ( (binary_expression "puVar4 + 0x123a58" identifier + number_literal) )))) )))) ;) (if_statement "if ((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }" if (parenthesized_expression "((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0))" ( (binary_expression "(uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)" (parenthesized_expression "(uVar1 < *(uint *)(*piVar2 + 8))" ( (binary_expression "uVar1 < *(uint *)(*piVar2 + 8)" identifier < (pointer_expression "*(uint *)(*piVar2 + 8)" * (cast_expression "(uint *)(*piVar2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 8)" ( (binary_expression "*piVar2 + 8" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) && (parenthesized_expression "(iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)" ( (comma_expression "iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0" (assignment_expression "iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4)" * (cast_expression "(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*piVar2 + 4) + uVar1 * 4)" ( (binary_expression "*(int *)(*piVar2 + 4) + uVar1 * 4" (pointer_expression "*(int *)(*piVar2 + 4)" * (cast_expression "(int *)(*piVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) )))) + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }" { (expression_statement "iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);" (assignment_expression "iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0)" identifier = (call_expression "__dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0)" identifier (argument_list "(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0)" ( identifier , (pointer_expression "*(undefined4 *)(puVar4 + 0x121e84)" * (cast_expression "(undefined4 *)(puVar4 + 0x121e84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x121e84)" ( (binary_expression "puVar4 + 0x121e84" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(puVar4 + 0x123a5c)" * (cast_expression "(undefined4 *)(puVar4 + 0x123a5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x123a5c)" ( (binary_expression "puVar4 + 0x123a5c" identifier + number_literal) )))) , number_literal )))) ;) (return_statement "return (uint)(iVar3 != 0);" return (call_expression "(uint)(iVar3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) <= IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (binary_expression IDENT * LIT)) ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (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 IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (binary_expression IDENT * LIT)) ))))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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) )))) , LIT )))) ;) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) ))) ;) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_0039f444(int *param_1)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);\n  if ((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {\n                    \n    std::__throw_bad_cast();\n  }\n  uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);\n  if (uVar1 != 0) {\n    return uVar1;\n  }\n  puVar4 = PTR___cxa_bad_cast_004c2c80;\n  (*(code *)PTR___cxa_bad_cast_004c2c80)();\n  uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));\n  if ((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "FUN_0039f444(int *param_1)" (identifier "FUN_0039f444") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);\n  if ((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {\n                    \n    std::__throw_bad_cast();\n  }\n  uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);\n  if (uVar1 != 0) {\n    return uVar1;\n  }\n  puVar4 = PTR___cxa_bad_cast_004c2c80;\n  (*(code *)PTR___cxa_bad_cast_004c2c80)();\n  uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));\n  if ((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);" (assignment_expression "uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4)" (parenthesized_expression "(*(code *)PTR__M_id_004c2c74)" (( "(") (pointer_expression "*(code *)PTR__M_id_004c2c74" (* "*") (cast_expression "(code *)PTR__M_id_004c2c74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_id_004c2c74"))) () ")")) (argument_list "(PTR_id_004c13a4)" (( "(") (identifier "PTR_id_004c13a4") () ")")))) (; ";")) (if_statement "if ((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {\n                    \n    std::__throw_bad_cast();\n  }" (if "if") (parenthesized_expression "((*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0))" (( "(") (binary_expression "(*(uint *)(*param_1 + 8) <= uVar1) ||\n     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)" (parenthesized_expression "(*(uint *)(*param_1 + 8) <= uVar1)" (( "(") (binary_expression "*(uint *)(*param_1 + 8) <= uVar1" (pointer_expression "*(uint *)(*param_1 + 8)" (* "*") (cast_expression "(uint *)(*param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 8)" (( "(") (binary_expression "*param_1 + 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "8")) () ")")))) (<= "<=") (identifier "uVar1")) () ")")) (|| "||") (parenthesized_expression "(piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)" (( "(") (comma_expression "piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0" (assignment_expression "piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(*(int *)(*param_1 + 4) + uVar1 * 4)" (* "*") (cast_expression "(int **)(*(int *)(*param_1 + 4) + uVar1 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(*param_1 + 4) + uVar1 * 4)" (( "(") (binary_expression "*(int *)(*param_1 + 4) + uVar1 * 4" (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" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")"))))) (, ",") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n                    \n    std::__throw_bad_cast();\n  }" ({ "{") (labeled_statement "std::__throw_bad_cast();" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" (identifier "__throw_bad_cast") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (expression_statement "uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);" (assignment_expression "uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" (identifier "uVar1") (= "=") (call_expression "__dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" (identifier "__dynamic_cast") (argument_list "(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0)" (( "(") (identifier "piVar2") (, ",") (identifier "PTR_PTR_004c1364") (, ",") (identifier "PTR_PTR_004c2f9c") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (uVar1 != 0) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "puVar4 = PTR___cxa_bad_cast_004c2c80;" (assignment_expression "puVar4 = PTR___cxa_bad_cast_004c2c80" (identifier "puVar4") (= "=") (identifier "PTR___cxa_bad_cast_004c2c80")) (; ";")) (expression_statement "(*(code *)PTR___cxa_bad_cast_004c2c80)();" (call_expression "(*(code *)PTR___cxa_bad_cast_004c2c80)()" (parenthesized_expression "(*(code *)PTR___cxa_bad_cast_004c2c80)" (( "(") (pointer_expression "*(code *)PTR___cxa_bad_cast_004c2c80" (* "*") (cast_expression "(code *)PTR___cxa_bad_cast_004c2c80" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___cxa_bad_cast_004c2c80"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));" (assignment_expression "uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58))" (identifier "uVar1") (= "=") (call_expression "(**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58))" (parenthesized_expression "(**(code **)(puVar4 + 0x123794))" (( "(") (pointer_expression "**(code **)(puVar4 + 0x123794)" (* "*") (pointer_expression "*(code **)(puVar4 + 0x123794)" (* "*") (cast_expression "(code **)(puVar4 + 0x123794)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x123794)" (( "(") (binary_expression "puVar4 + 0x123794" (identifier "puVar4") (+ "+") (number_literal "0x123794")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(puVar4 + 0x123a58))" (( "(") (pointer_expression "*(undefined4 *)(puVar4 + 0x123a58)" (* "*") (cast_expression "(undefined4 *)(puVar4 + 0x123a58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x123a58)" (( "(") (binary_expression "puVar4 + 0x123a58" (identifier "puVar4") (+ "+") (number_literal "0x123a58")) () ")")))) () ")")))) (; ";")) (if_statement "if ((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }" (if "if") (parenthesized_expression "((uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0))" (( "(") (binary_expression "(uVar1 < *(uint *)(*piVar2 + 8)) &&\n     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)" (parenthesized_expression "(uVar1 < *(uint *)(*piVar2 + 8))" (( "(") (binary_expression "uVar1 < *(uint *)(*piVar2 + 8)" (identifier "uVar1") (< "<") (pointer_expression "*(uint *)(*piVar2 + 8)" (* "*") (cast_expression "(uint *)(*piVar2 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + 8)" (( "(") (binary_expression "*piVar2 + 8" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)" (( "(") (comma_expression "iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0" (assignment_expression "iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4)" (* "*") (cast_expression "(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*piVar2 + 4) + uVar1 * 4)" (( "(") (binary_expression "*(int *)(*piVar2 + 4) + uVar1 * 4" (pointer_expression "*(int *)(*piVar2 + 4)" (* "*") (cast_expression "(int *)(*piVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + 4)" (( "(") (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "4")) () ")")))) (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")"))))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);\n    return (uint)(iVar3 != 0);\n  }" ({ "{") (expression_statement "iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0);" (assignment_expression "iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0)" (identifier "iVar3") (= "=") (call_expression "__dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0)" (identifier "__dynamic_cast") (argument_list "(iVar3,*(undefined4 *)(puVar4 + 0x121e84),\n                           *(undefined4 *)(puVar4 + 0x123a5c),0)" (( "(") (identifier "iVar3") (, ",") (pointer_expression "*(undefined4 *)(puVar4 + 0x121e84)" (* "*") (cast_expression "(undefined4 *)(puVar4 + 0x121e84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x121e84)" (( "(") (binary_expression "puVar4 + 0x121e84" (identifier "puVar4") (+ "+") (number_literal "0x121e84")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(puVar4 + 0x123a5c)" (* "*") (cast_expression "(undefined4 *)(puVar4 + 0x123a5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x123a5c)" (( "(") (binary_expression "puVar4 + 0x123a5c" (identifier "puVar4") (+ "+") (number_literal "0x123a5c")) () ")")))) (, ",") (number_literal "0") () ")")))) (; ";")) (return_statement "return (uint)(iVar3 != 0);" (return "return") (call_expression "(uint)(iVar3 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::messages<wchar_t> const& std::use_facet<std::messages<wchar_t> >(std::locale const&) */

type_2 * std::use_facet<std::type_2<wchar_t>>(locale *param_1)

{
  type_1 var_1;
  type_2 *var_5;
  int *var_2;
  int var_7;
  type_3 *var_6;
  
  var_1 = (*(type_4 *)PTR__M_id_004c2c74)(PTR_id_004c13a4);
  if ((*(type_1 *)(*(int *)param_1 + 8) <= var_1) ||
     (var_2 = *(int **)(*(int *)(*(int *)param_1 + 4) + var_1 * 4), var_2 == (int *)0x0)) {
                    /* WARNING: Subroutine does not return */
    var_3();
  }
  var_5 = (type_2 *)var_4(var_2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);
  if (var_5 != (type_2 *)0x0) {
    return var_5;
  }
  var_6 = PTR___cxa_bad_cast_004c2c80;
  (*(type_4 *)PTR___cxa_bad_cast_004c2c80)();
  var_1 = (**(type_4 **)(var_6 + 0x123794))(*(type_5 *)(var_6 + 0x123a58));
  if ((var_1 < *(type_1 *)(*var_2 + 8)) &&
     (var_7 = *(int *)(*(int *)(*var_2 + 4) + var_1 * 4), var_7 != 0)) {
    var_7 = var_4(var_7,*(type_5 *)(var_6 + 0x121e84),
                           *(type_5 *)(var_6 + 0x123a5c),0);
    return (type_2 *)(type_1)(var_7 != 0);
  }
  return (type_2 *)0x0;
}


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

uint MASKED(int *param_1)

{
  uint uVar1;
  int *piVar2;
  int iVar3;
  undefined *puVar4;
  
  uVar1 = (*(code *)PTR__M_id_004c2c74)(PTR_id_004c13a4);
  if ((*(uint *)(*param_1 + 8) <= uVar1) ||
     (piVar2 = *(int **)(*(int *)(*param_1 + 4) + uVar1 * 4), piVar2 == (int *)0x0)) {
                    /* WARNING: Subroutine does not return */
    std::__throw_bad_cast();
  }
  uVar1 = __dynamic_cast(piVar2,PTR_PTR_004c1364,PTR_PTR_004c2f9c,0);
  if (uVar1 != 0) {
    return uVar1;
  }
  puVar4 = PTR___cxa_bad_cast_004c2c80;
  (*(code *)PTR___cxa_bad_cast_004c2c80)();
  uVar1 = (**(code **)(puVar4 + 0x123794))(*(undefined4 *)(puVar4 + 0x123a58));
  if ((uVar1 < *(uint *)(*piVar2 + 8)) &&
     (iVar3 = *(int *)(*(int *)(*piVar2 + 4) + uVar1 * 4), iVar3 != 0)) {
    iVar3 = __dynamic_cast(iVar3,*(undefined4 *)(puVar4 + 0x121e84),
                           *(undefined4 *)(puVar4 + 0x123a5c),0);
    return (uint)(iVar3 != 0);
  }
  return 0;
}

