
/* std::ios::fill() const */

int __thiscall std::ios::fill(ios *this)

{
  int iVar1;
  int *piVar2;
  
  if (this[0x75] != (ios)0x0) {
    return (int)(char)this[0x74];
  }
  piVar2 = *(int **)(this + 0x7c);
  if (piVar2 != (int *)0x0) {
    if (*(char *)(piVar2 + 7) == '\0') {
      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);
      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {
        this[0x74] = (ios)0x20;
        this[0x75] = (ios)0x1;
        return 0x20;
      }
      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);
      this[0x74] = SUB41(iVar1,0);
    }
    else {
      iVar1 = (int)(char)*(ios *)((int)piVar2 + 0x3d);
      this[0x74] = *(ios *)((int)piVar2 + 0x3d);
    }
    this[0x75] = (ios)0x1;
    return iVar1;
  }
  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();
  return iVar1;
}



int FUN_00365ca4(int param_1)

{
  int iVar1;
  int *piVar2;
  
  if (*(char *)(param_1 + 0x75) != '\0') {
    return (int)*(char *)(param_1 + 0x74);
  }
  piVar2 = *(int **)(param_1 + 0x7c);
  if (piVar2 != (int *)0x0) {
    if (*(char *)(piVar2 + 7) == '\0') {
      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);
      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {
        *(undefined1 *)(param_1 + 0x74) = 0x20;
        *(undefined1 *)(param_1 + 0x75) = 1;
        return 0x20;
      }
      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);
      *(char *)(param_1 + 0x74) = (char)iVar1;
    }
    else {
      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);
      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);
    }
    *(undefined1 *)(param_1 + 0x75) = 1;
    return iVar1;
  }
  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();
  return iVar1;
}


lui gp,0x16
addiu gp,gp,0x359c
addu gp,gp,t9
lbu v0,0x75(a0)
beq v0,zero,0x00365cc4
_nop
jr ra
_lb v0,0x74(a0)
addiu sp,sp,-0x28
sw s1,0x20(sp)
sw gp,0x10(sp)
sw s0,0x1c(sp)
sw ra,0x24(sp)
lw s1,0x7c(a0)
beq s1,zero,0x00365d68
_or s0,a0,zero
lb v0,0x1c(s1)
beq v0,zero,0x00365d14
_lw t9,-0x6f80(gp)
lb v0,0x3d(s1)
sb v0,0x74(s0)
li v1,0x1
lw ra,0x24(sp)
lw s1,0x20(sp)
sb v1,0x75(s0)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
jalr t9
_or a0,s1,zero
lw gp,0x10(sp)
lw v1,0x0(s1)
lw v0,-0x6f6c(gp)
lw t9,0x18(v1)
bne t9,v0,0x00365d54
_li v1,0x1
li v0,0x20
sb v0,0x74(s0)
sb v1,0x75(s0)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
li a1,0x20
jalr t9
_or a0,s1,zero
b 0x00365cf8
_sb v0,0x74(s0)
lw t9,-0x6f84(gp)
jalr t9
_nop
(translation_unit "int FUN_00365ca4(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(char *)(param_1 + 0x75) != '\0') {\n    return (int)*(char *)(param_1 + 0x74);\n  }\n  piVar2 = *(int **)(param_1 + 0x7c);\n  if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();\n  return iVar1;\n}\n\n" (function_definition "int FUN_00365ca4(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(char *)(param_1 + 0x75) != '\0') {\n    return (int)*(char *)(param_1 + 0x74);\n  }\n  piVar2 = *(int **)(param_1 + 0x7c);\n  if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00365ca4(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(char *)(param_1 + 0x75) != '\0') {\n    return (int)*(char *)(param_1 + 0x74);\n  }\n  piVar2 = *(int **)(param_1 + 0x7c);\n  if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (*(char *)(param_1 + 0x75) != '\0') {\n    return (int)*(char *)(param_1 + 0x74);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x75) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x75) != '\0'" (pointer_expression "*(char *)(param_1 + 0x75)" * (cast_expression "(char *)(param_1 + 0x75)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x75)" ( (binary_expression "param_1 + 0x75" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return (int)*(char *)(param_1 + 0x74);\n  }" { (return_statement "return (int)*(char *)(param_1 + 0x74);" return (cast_expression "(int)*(char *)(param_1 + 0x74)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)(param_1 + 0x74)" * (cast_expression "(char *)(param_1 + 0x74)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) })) (expression_statement "piVar2 = *(int **)(param_1 + 0x7c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x7c)" identifier = (pointer_expression "*(int **)(param_1 + 0x7c)" * (cast_expression "(int **)(param_1 + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }" { (if_statement "if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }" if (parenthesized_expression "(*(char *)(piVar2 + 7) == '\0')" ( (binary_expression "*(char *)(piVar2 + 7) == '\0'" (pointer_expression "*(char *)(piVar2 + 7)" * (cast_expression "(char *)(piVar2 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 7)" ( (binary_expression "piVar2 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }" { (expression_statement "(*(code *)PTR__M_widen_init_004c22c0)(piVar2);" (call_expression "(*(code *)PTR__M_widen_init_004c22c0)(piVar2)" (parenthesized_expression "(*(code *)PTR__M_widen_init_004c22c0)" ( (pointer_expression "*(code *)PTR__M_widen_init_004c22c0" * (cast_expression "(code *)PTR__M_widen_init_004c22c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2)" ( identifier ))) ;) (if_statement "if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }" if (parenthesized_expression "(*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4)" ( (binary_expression "*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4" (pointer_expression "*(code **)(*piVar2 + 0x18)" * (cast_expression "(code **)(*piVar2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x18)" ( (binary_expression "*piVar2 + 0x18" (pointer_expression "*piVar2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_widen_004c22d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0x74) = 0x20;" (assignment_expression "*(undefined1 *)(param_1 + 0x74) = 0x20" (pointer_expression "*(undefined1 *)(param_1 + 0x74)" * (cast_expression "(undefined1 *)(param_1 + 0x74)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0x75) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x75) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x75)" * (cast_expression "(undefined1 *)(param_1 + 0x75)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x75)" ( (binary_expression "param_1 + 0x75" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0x20;" return number_literal ;) })) (expression_statement "iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);" (assignment_expression "iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20)" identifier = (call_expression "(**(code **)(*piVar2 + 0x18))(piVar2,0x20)" (parenthesized_expression "(**(code **)(*piVar2 + 0x18))" ( (pointer_expression "**(code **)(*piVar2 + 0x18)" * (pointer_expression "*(code **)(*piVar2 + 0x18)" * (cast_expression "(code **)(*piVar2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x18)" ( (binary_expression "*piVar2 + 0x18" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(char *)(param_1 + 0x74) = (char)iVar1;" (assignment_expression "*(char *)(param_1 + 0x74) = (char)iVar1" (pointer_expression "*(char *)(param_1 + 0x74)" * (cast_expression "(char *)(param_1 + 0x74)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }" else (compound_statement "{\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }" { (expression_statement "iVar1 = (int)*(char *)((int)piVar2 + 0x3d);" (assignment_expression "iVar1 = (int)*(char *)((int)piVar2 + 0x3d)" identifier = (cast_expression "(int)*(char *)((int)piVar2 + 0x3d)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)((int)piVar2 + 0x3d)" * (cast_expression "(char *)((int)piVar2 + 0x3d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + 0x3d)" ( (binary_expression "(int)piVar2 + 0x3d" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) (expression_statement "*(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);" (assignment_expression "*(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d)" (pointer_expression "*(char *)(param_1 + 0x74)" * (cast_expression "(char *)(param_1 + 0x74)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (pointer_expression "*(char *)((int)piVar2 + 0x3d)" * (cast_expression "(char *)((int)piVar2 + 0x3d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + 0x3d)" ( (binary_expression "(int)piVar2 + 0x3d" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) (expression_statement "*(undefined1 *)(param_1 + 0x75) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x75) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x75)" * (cast_expression "(undefined1 *)(param_1 + 0x75)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x75)" ( (binary_expression "param_1 + 0x75" identifier + number_literal) )))) = number_literal) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" ( (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" * (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* std::ios::fill() const */\n\nint __thiscall std::ios::fill(ios *this)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (this[0x75] != (ios)0x0) {\n    return (int)(char)this[0x74];\n  }\n  piVar2 = *(int **)(this + 0x7c);\n  if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        this[0x74] = (ios)0x20;\n        this[0x75] = (ios)0x1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      this[0x74] = SUB41(iVar1,0);\n    }\n    else {\n      iVar1 = (int)(char)*(ios *)((int)piVar2 + 0x3d);\n      this[0x74] = *(ios *)((int)piVar2 + 0x3d);\n    }\n    this[0x75] = (ios)0x1;\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();\n  return iVar1;\n}\n\n" comment (function_definition "int __thiscall std::ios::fill(ios *this)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (this[0x75] != (ios)0x0) {\n    return (int)(char)this[0x74];\n  }\n  piVar2 = *(int **)(this + 0x7c);\n  if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        this[0x74] = (ios)0x20;\n        this[0x75] = (ios)0x1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      this[0x74] = SUB41(iVar1,0);\n    }\n    else {\n      iVar1 = (int)(char)*(ios *)((int)piVar2 + 0x3d);\n      this[0x74] = *(ios *)((int)piVar2 + 0x3d);\n    }\n    this[0x75] = (ios)0x1;\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();\n  return iVar1;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios::" identifier : : identifier : :) (function_declarator "fill(ios *this)" identifier (parameter_list "(ios *this)" ( (parameter_declaration "ios *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (this[0x75] != (ios)0x0) {\n    return (int)(char)this[0x74];\n  }\n  piVar2 = *(int **)(this + 0x7c);\n  if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        this[0x74] = (ios)0x20;\n        this[0x75] = (ios)0x1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      this[0x74] = SUB41(iVar1,0);\n    }\n    else {\n      iVar1 = (int)(char)*(ios *)((int)piVar2 + 0x3d);\n      this[0x74] = *(ios *)((int)piVar2 + 0x3d);\n    }\n    this[0x75] = (ios)0x1;\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (this[0x75] != (ios)0x0) {\n    return (int)(char)this[0x74];\n  }" if (parenthesized_expression "(this[0x75] != (ios)0x0)" ( (binary_expression "this[0x75] != (ios)0x0" (subscript_expression "this[0x75]" identifier [ number_literal ]) != (cast_expression "(ios)0x0" ( (type_descriptor "ios" type_identifier) ) number_literal)) )) (compound_statement "{\n    return (int)(char)this[0x74];\n  }" { (return_statement "return (int)(char)this[0x74];" return (cast_expression "(int)(char)this[0x74]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)this[0x74]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "this[0x74]" identifier [ number_literal ]))) ;) })) (expression_statement "piVar2 = *(int **)(this + 0x7c);" (assignment_expression "piVar2 = *(int **)(this + 0x7c)" identifier = (pointer_expression "*(int **)(this + 0x7c)" * (cast_expression "(int **)(this + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        this[0x74] = (ios)0x20;\n        this[0x75] = (ios)0x1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      this[0x74] = SUB41(iVar1,0);\n    }\n    else {\n      iVar1 = (int)(char)*(ios *)((int)piVar2 + 0x3d);\n      this[0x74] = *(ios *)((int)piVar2 + 0x3d);\n    }\n    this[0x75] = (ios)0x1;\n    return iVar1;\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        this[0x74] = (ios)0x20;\n        this[0x75] = (ios)0x1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      this[0x74] = SUB41(iVar1,0);\n    }\n    else {\n      iVar1 = (int)(char)*(ios *)((int)piVar2 + 0x3d);\n      this[0x74] = *(ios *)((int)piVar2 + 0x3d);\n    }\n    this[0x75] = (ios)0x1;\n    return iVar1;\n  }" { (if_statement "if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        this[0x74] = (ios)0x20;\n        this[0x75] = (ios)0x1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      this[0x74] = SUB41(iVar1,0);\n    }\n    else {\n      iVar1 = (int)(char)*(ios *)((int)piVar2 + 0x3d);\n      this[0x74] = *(ios *)((int)piVar2 + 0x3d);\n    }" if (parenthesized_expression "(*(char *)(piVar2 + 7) == '\0')" ( (binary_expression "*(char *)(piVar2 + 7) == '\0'" (pointer_expression "*(char *)(piVar2 + 7)" * (cast_expression "(char *)(piVar2 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 7)" ( (binary_expression "piVar2 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        this[0x74] = (ios)0x20;\n        this[0x75] = (ios)0x1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      this[0x74] = SUB41(iVar1,0);\n    }" { (expression_statement "(*(code *)PTR__M_widen_init_004c22c0)(piVar2);" (call_expression "(*(code *)PTR__M_widen_init_004c22c0)(piVar2)" (parenthesized_expression "(*(code *)PTR__M_widen_init_004c22c0)" ( (pointer_expression "*(code *)PTR__M_widen_init_004c22c0" * (cast_expression "(code *)PTR__M_widen_init_004c22c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2)" ( identifier ))) ;) (if_statement "if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        this[0x74] = (ios)0x20;\n        this[0x75] = (ios)0x1;\n        return 0x20;\n      }" if (parenthesized_expression "(*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4)" ( (binary_expression "*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4" (pointer_expression "*(code **)(*piVar2 + 0x18)" * (cast_expression "(code **)(*piVar2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x18)" ( (binary_expression "*piVar2 + 0x18" (pointer_expression "*piVar2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_widen_004c22d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        this[0x74] = (ios)0x20;\n        this[0x75] = (ios)0x1;\n        return 0x20;\n      }" { (expression_statement "this[0x74] = (ios)0x20;" (assignment_expression "this[0x74] = (ios)0x20" (subscript_expression "this[0x74]" identifier [ number_literal ]) = (cast_expression "(ios)0x20" ( (type_descriptor "ios" type_identifier) ) number_literal)) ;) (expression_statement "this[0x75] = (ios)0x1;" (assignment_expression "this[0x75] = (ios)0x1" (subscript_expression "this[0x75]" identifier [ number_literal ]) = (cast_expression "(ios)0x1" ( (type_descriptor "ios" type_identifier) ) number_literal)) ;) (return_statement "return 0x20;" return number_literal ;) })) (expression_statement "iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);" (assignment_expression "iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20)" identifier = (call_expression "(**(code **)(*piVar2 + 0x18))(piVar2,0x20)" (parenthesized_expression "(**(code **)(*piVar2 + 0x18))" ( (pointer_expression "**(code **)(*piVar2 + 0x18)" * (pointer_expression "*(code **)(*piVar2 + 0x18)" * (cast_expression "(code **)(*piVar2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x18)" ( (binary_expression "*piVar2 + 0x18" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x20)" ( identifier , number_literal )))) ;) (expression_statement "this[0x74] = SUB41(iVar1,0);" (assignment_expression "this[0x74] = SUB41(iVar1,0)" (subscript_expression "this[0x74]" identifier [ number_literal ]) = (call_expression "SUB41(iVar1,0)" identifier (argument_list "(iVar1,0)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n      iVar1 = (int)(char)*(ios *)((int)piVar2 + 0x3d);\n      this[0x74] = *(ios *)((int)piVar2 + 0x3d);\n    }" else (compound_statement "{\n      iVar1 = (int)(char)*(ios *)((int)piVar2 + 0x3d);\n      this[0x74] = *(ios *)((int)piVar2 + 0x3d);\n    }" { (expression_statement "iVar1 = (int)(char)*(ios *)((int)piVar2 + 0x3d);" (assignment_expression "iVar1 = (int)(char)*(ios *)((int)piVar2 + 0x3d)" identifier = (cast_expression "(int)(char)*(ios *)((int)piVar2 + 0x3d)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)*(ios *)((int)piVar2 + 0x3d)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(ios *)((int)piVar2 + 0x3d)" * (cast_expression "(ios *)((int)piVar2 + 0x3d)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + 0x3d)" ( (binary_expression "(int)piVar2 + 0x3d" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))))) ;) (expression_statement "this[0x74] = *(ios *)((int)piVar2 + 0x3d);" (assignment_expression "this[0x74] = *(ios *)((int)piVar2 + 0x3d)" (subscript_expression "this[0x74]" identifier [ number_literal ]) = (pointer_expression "*(ios *)((int)piVar2 + 0x3d)" * (cast_expression "(ios *)((int)piVar2 + 0x3d)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + 0x3d)" ( (binary_expression "(int)piVar2 + 0x3d" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) (expression_statement "this[0x75] = (ios)0x1;" (assignment_expression "this[0x75] = (ios)0x1" (subscript_expression "this[0x75]" identifier [ number_literal ]) = (cast_expression "(ios)0x1" ( (type_descriptor "ios" type_identifier) ) number_literal)) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" ( (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" * (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_00365ca4(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(char *)(param_1 + 0x75) != '\0') {\n    return (int)*(char *)(param_1 + 0x74);\n  }\n  piVar2 = *(int **)(param_1 + 0x7c);\n  if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();\n  return iVar1;\n}\n\n" (function_definition "int FUN_00365ca4(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(char *)(param_1 + 0x75) != '\0') {\n    return (int)*(char *)(param_1 + 0x74);\n  }\n  piVar2 = *(int **)(param_1 + 0x7c);\n  if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00365ca4(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(char *)(param_1 + 0x75) != '\0') {\n    return (int)*(char *)(param_1 + 0x74);\n  }\n  piVar2 = *(int **)(param_1 + 0x7c);\n  if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (*(char *)(param_1 + 0x75) != '\0') {\n    return (int)*(char *)(param_1 + 0x74);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x75) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x75) != '\0'" (pointer_expression "*(char *)(param_1 + 0x75)" * (cast_expression "(char *)(param_1 + 0x75)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x75)" ( (binary_expression "param_1 + 0x75" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return (int)*(char *)(param_1 + 0x74);\n  }" { (return_statement "return (int)*(char *)(param_1 + 0x74);" return (cast_expression "(int)*(char *)(param_1 + 0x74)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)(param_1 + 0x74)" * (cast_expression "(char *)(param_1 + 0x74)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) })) (expression_statement "piVar2 = *(int **)(param_1 + 0x7c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x7c)" identifier = (pointer_expression "*(int **)(param_1 + 0x7c)" * (cast_expression "(int **)(param_1 + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }" { (if_statement "if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }" if (parenthesized_expression "(*(char *)(piVar2 + 7) == '\0')" ( (binary_expression "*(char *)(piVar2 + 7) == '\0'" (pointer_expression "*(char *)(piVar2 + 7)" * (cast_expression "(char *)(piVar2 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 7)" ( (binary_expression "piVar2 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }" { (expression_statement "(*(code *)PTR__M_widen_init_004c22c0)(piVar2);" (call_expression "(*(code *)PTR__M_widen_init_004c22c0)(piVar2)" (parenthesized_expression "(*(code *)PTR__M_widen_init_004c22c0)" ( (pointer_expression "*(code *)PTR__M_widen_init_004c22c0" * (cast_expression "(code *)PTR__M_widen_init_004c22c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2)" ( identifier ))) ;) (if_statement "if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }" if (parenthesized_expression "(*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4)" ( (binary_expression "*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4" (pointer_expression "*(code **)(*piVar2 + 0x18)" * (cast_expression "(code **)(*piVar2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x18)" ( (binary_expression "*piVar2 + 0x18" (pointer_expression "*piVar2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_widen_004c22d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0x74) = 0x20;" (assignment_expression "*(undefined1 *)(param_1 + 0x74) = 0x20" (pointer_expression "*(undefined1 *)(param_1 + 0x74)" * (cast_expression "(undefined1 *)(param_1 + 0x74)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0x75) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x75) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x75)" * (cast_expression "(undefined1 *)(param_1 + 0x75)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x75)" ( (binary_expression "param_1 + 0x75" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0x20;" return number_literal ;) })) (expression_statement "iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);" (assignment_expression "iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20)" identifier = (call_expression "(**(code **)(*piVar2 + 0x18))(piVar2,0x20)" (parenthesized_expression "(**(code **)(*piVar2 + 0x18))" ( (pointer_expression "**(code **)(*piVar2 + 0x18)" * (pointer_expression "*(code **)(*piVar2 + 0x18)" * (cast_expression "(code **)(*piVar2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x18)" ( (binary_expression "*piVar2 + 0x18" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(char *)(param_1 + 0x74) = (char)iVar1;" (assignment_expression "*(char *)(param_1 + 0x74) = (char)iVar1" (pointer_expression "*(char *)(param_1 + 0x74)" * (cast_expression "(char *)(param_1 + 0x74)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }" else (compound_statement "{\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }" { (expression_statement "iVar1 = (int)*(char *)((int)piVar2 + 0x3d);" (assignment_expression "iVar1 = (int)*(char *)((int)piVar2 + 0x3d)" identifier = (cast_expression "(int)*(char *)((int)piVar2 + 0x3d)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)((int)piVar2 + 0x3d)" * (cast_expression "(char *)((int)piVar2 + 0x3d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + 0x3d)" ( (binary_expression "(int)piVar2 + 0x3d" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) (expression_statement "*(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);" (assignment_expression "*(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d)" (pointer_expression "*(char *)(param_1 + 0x74)" * (cast_expression "(char *)(param_1 + 0x74)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (pointer_expression "*(char *)((int)piVar2 + 0x3d)" * (cast_expression "(char *)((int)piVar2 + 0x3d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + 0x3d)" ( (binary_expression "(int)piVar2 + 0x3d" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) (expression_statement "*(undefined1 *)(param_1 + 0x75) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x75) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x75)" * (cast_expression "(undefined1 *)(param_1 + 0x75)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x75)" ( (binary_expression "param_1 + 0x75" identifier + number_literal) )))) = number_literal) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" ( (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" * (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) (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 , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_00365ca4(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(char *)(param_1 + 0x75) != '\0') {\n    return (int)*(char *)(param_1 + 0x74);\n  }\n  piVar2 = *(int **)(param_1 + 0x7c);\n  if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00365ca4(int param_1)" (identifier "FUN_00365ca4") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(char *)(param_1 + 0x75) != '\0') {\n    return (int)*(char *)(param_1 + 0x74);\n  }\n  piVar2 = *(int **)(param_1 + 0x7c);\n  if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (if_statement "if (*(char *)(param_1 + 0x75) != '\0') {\n    return (int)*(char *)(param_1 + 0x74);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x75) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x75) != '\0'" (pointer_expression "*(char *)(param_1 + 0x75)" (* "*") (cast_expression "(char *)(param_1 + 0x75)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x75)" (( "(") (binary_expression "param_1 + 0x75" (identifier "param_1") (+ "+") (number_literal "0x75")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return (int)*(char *)(param_1 + 0x74);\n  }" ({ "{") (return_statement "return (int)*(char *)(param_1 + 0x74);" (return "return") (cast_expression "(int)*(char *)(param_1 + 0x74)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(char *)(param_1 + 0x74)" (* "*") (cast_expression "(char *)(param_1 + 0x74)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (} "}"))) (expression_statement "piVar2 = *(int **)(param_1 + 0x7c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x7c)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x7c)" (* "*") (cast_expression "(int **)(param_1 + 0x7c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (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    if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }\n    *(undefined1 *)(param_1 + 0x75) = 1;\n    return iVar1;\n  }" ({ "{") (if_statement "if (*(char *)(piVar2 + 7) == '\0') {\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }\n    else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }" (if "if") (parenthesized_expression "(*(char *)(piVar2 + 7) == '\0')" (( "(") (binary_expression "*(char *)(piVar2 + 7) == '\0'" (pointer_expression "*(char *)(piVar2 + 7)" (* "*") (cast_expression "(char *)(piVar2 + 7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 7)" (( "(") (binary_expression "piVar2 + 7" (identifier "piVar2") (+ "+") (number_literal "7")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);\n      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }\n      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);\n      *(char *)(param_1 + 0x74) = (char)iVar1;\n    }" ({ "{") (expression_statement "(*(code *)PTR__M_widen_init_004c22c0)(piVar2);" (call_expression "(*(code *)PTR__M_widen_init_004c22c0)(piVar2)" (parenthesized_expression "(*(code *)PTR__M_widen_init_004c22c0)" (( "(") (pointer_expression "*(code *)PTR__M_widen_init_004c22c0" (* "*") (cast_expression "(code *)PTR__M_widen_init_004c22c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_widen_init_004c22c0"))) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (if_statement "if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }" (if "if") (parenthesized_expression "(*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4)" (( "(") (binary_expression "*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4" (pointer_expression "*(code **)(*piVar2 + 0x18)" (* "*") (cast_expression "(code **)(*piVar2 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x18)" (( "(") (binary_expression "*piVar2 + 0x18" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x18")) () ")")))) (== "==") (cast_expression "(code *)PTR_do_widen_004c22d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_do_widen_004c22d4"))) () ")")) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x74) = 0x20;\n        *(undefined1 *)(param_1 + 0x75) = 1;\n        return 0x20;\n      }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0x74) = 0x20;" (assignment_expression "*(undefined1 *)(param_1 + 0x74) = 0x20" (pointer_expression "*(undefined1 *)(param_1 + 0x74)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x74)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (number_literal "0x20")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x75) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x75) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x75)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x75)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x75)" (( "(") (binary_expression "param_1 + 0x75" (identifier "param_1") (+ "+") (number_literal "0x75")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return 0x20;" (return "return") (number_literal "0x20") (; ";")) (} "}"))) (expression_statement "iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);" (assignment_expression "iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(*piVar2 + 0x18))(piVar2,0x20)" (parenthesized_expression "(**(code **)(*piVar2 + 0x18))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0x18)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0x18)" (* "*") (cast_expression "(code **)(*piVar2 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x18)" (( "(") (binary_expression "*piVar2 + 0x18" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(piVar2,0x20)" (( "(") (identifier "piVar2") (, ",") (number_literal "0x20") () ")")))) (; ";")) (expression_statement "*(char *)(param_1 + 0x74) = (char)iVar1;" (assignment_expression "*(char *)(param_1 + 0x74) = (char)iVar1" (pointer_expression "*(char *)(param_1 + 0x74)" (* "*") (cast_expression "(char *)(param_1 + 0x74)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (cast_expression "(char)iVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar1"))) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }" (else "else") (compound_statement "{\n      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);\n      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);\n    }" ({ "{") (expression_statement "iVar1 = (int)*(char *)((int)piVar2 + 0x3d);" (assignment_expression "iVar1 = (int)*(char *)((int)piVar2 + 0x3d)" (identifier "iVar1") (= "=") (cast_expression "(int)*(char *)((int)piVar2 + 0x3d)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(char *)((int)piVar2 + 0x3d)" (* "*") (cast_expression "(char *)((int)piVar2 + 0x3d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar2 + 0x3d)" (( "(") (binary_expression "(int)piVar2 + 0x3d" (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2")) (+ "+") (number_literal "0x3d")) () ")")))))) (; ";")) (expression_statement "*(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);" (assignment_expression "*(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d)" (pointer_expression "*(char *)(param_1 + 0x74)" (* "*") (cast_expression "(char *)(param_1 + 0x74)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (pointer_expression "*(char *)((int)piVar2 + 0x3d)" (* "*") (cast_expression "(char *)((int)piVar2 + 0x3d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar2 + 0x3d)" (( "(") (binary_expression "(int)piVar2 + 0x3d" (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2")) (+ "+") (number_literal "0x3d")) () ")"))))) (; ";")) (} "}")))) (expression_statement "*(undefined1 *)(param_1 + 0x75) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x75) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x75)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x75)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x75)" (( "(") (binary_expression "param_1 + 0x75" (identifier "param_1") (+ "+") (number_literal "0x75")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" (( "(") (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" (* "*") (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___throw_bad_cast_004c22bc"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (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: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (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: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (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 (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (number_literal)))) (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) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (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)))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  int iVar1;
  int *piVar2;
  
  if (*(char *)(param_1 + 0x75) != '\0') {
    return (int)*(char *)(param_1 + 0x74);
  }
  piVar2 = *(int **)(param_1 + 0x7c);
  if (piVar2 != (int *)0x0) {
    if (*(char *)(piVar2 + 7) == '\0') {
      (*(code *)PTR__M_widen_init_004c22c0)(piVar2);
      if (*(code **)(*piVar2 + 0x18) == (code *)PTR_do_widen_004c22d4) {
        *(undefined1 *)(param_1 + 0x74) = 0x20;
        *(undefined1 *)(param_1 + 0x75) = 1;
        return 0x20;
      }
      iVar1 = (**(code **)(*piVar2 + 0x18))(piVar2,0x20);
      *(char *)(param_1 + 0x74) = (char)iVar1;
    }
    else {
      iVar1 = (int)*(char *)((int)piVar2 + 0x3d);
      *(char *)(param_1 + 0x74) = *(char *)((int)piVar2 + 0x3d);
    }
    *(undefined1 *)(param_1 + 0x75) = 1;
    return iVar1;
  }
  iVar1 = (*(code *)PTR___throw_bad_cast_004c22bc)();
  return iVar1;
}

