
/* std::ios::widen(char) const */

ulong __thiscall std::ios::widen(ios *this,char param_1)

{
  ctype<char> *this_00;
  ulong uVar1;
  undefined7 in_register_00000031;
  
  this_00 = *(ctype<char> **)(this + 0xf0);
  if (this_00 == (ctype<char> *)0x0) {
                    /* WARNING: Subroutine does not return */
    __throw_bad_cast();
  }
  uVar1 = CONCAT71(in_register_00000031,param_1) & 0xffffffff;
  if (this_00[0x38] == (ctype<char>)0x0) {
    ctype<char>::_M_widen_init(this_00);
    if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {
                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar1 = (**(code **)(*(long *)this_00 + 0x30))(this_00,(int)(char)uVar1);
      return uVar1;
    }
  }
  else {
    uVar1 = (ulong)(byte)this_00[(ulong)(byte)param_1 + 0x39];
  }
  return uVar1;
}



ulong FUN_00300af0(long param_1,ulong param_2)

{
  long *plVar1;
  ulong uVar2;
  
  plVar1 = *(long **)(param_1 + 0xf0);
  if (plVar1 == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_00319460();
  }
  uVar2 = param_2 & 0xffffffff;
  if ((char)plVar1[7] == '\0') {
    FUN_00319ad0(plVar1);
    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {
                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);
      return uVar2;
    }
  }
  else {
    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);
  }
  return uVar2;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,qword ptr [RDI + 0xf0]
TEST RBX,RBX
JZ 0x00300b49
CMP byte ptr [RBX + 0x38],0x0
MOV EBP,ESI
JZ 0x00300b20
MOVZX EBP,SIL
MOVZX EAX,byte ptr [RBX + RBP*0x1 + 0x39]
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV RDI,RBX
CALL 0x00319ad0
MOV RAX,qword ptr [RBX]
MOV RDX,qword ptr [RAX + 0x30]
CMP RDX,qword ptr [0x0043dfd8]
MOV EAX,EBP
JZ 0x00300b13
ADD RSP,0x8
MOVSX ESI,BPL
MOV RDI,RBX
POP RBX
POP RBP
JMP RDX
CALL 0x00319460
(translation_unit "ulong FUN_00300af0(long param_1,ulong param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00319460();\n  }\n  uVar2 = param_2 & 0xffffffff;\n  if ((char)plVar1[7] == '\0') {\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }\n  else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong FUN_00300af0(long param_1,ulong param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00319460();\n  }\n  uVar2 = param_2 & 0xffffffff;\n  if ((char)plVar1[7] == '\0') {\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }\n  else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00300af0(long param_1,ulong param_2)" identifier (parameter_list "(long param_1,ulong param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00319460();\n  }\n  uVar2 = param_2 & 0xffffffff;\n  if ((char)plVar1[7] == '\0') {\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }\n  else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }\n  return uVar2;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "plVar1 = *(long **)(param_1 + 0xf0);" (assignment_expression "plVar1 = *(long **)(param_1 + 0xf0)" identifier = (pointer_expression "*(long **)(param_1 + 0xf0)" * (cast_expression "(long **)(param_1 + 0xf0)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) ))))) ;) (if_statement "if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00319460();\n  }" if (parenthesized_expression "(plVar1 == (long *)0x0)" ( (binary_expression "plVar1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00319460();\n  }" { comment (expression_statement "FUN_00319460();" (call_expression "FUN_00319460()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar2 = param_2 & 0xffffffff;" (assignment_expression "uVar2 = param_2 & 0xffffffff" identifier = (binary_expression "param_2 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if ((char)plVar1[7] == '\0') {\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }\n  else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }" if (parenthesized_expression "((char)plVar1[7] == '\0')" ( (binary_expression "(char)plVar1[7] == '\0'" (cast_expression "(char)plVar1[7]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "plVar1[7]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }" { (expression_statement "FUN_00319ad0(plVar1);" (call_expression "FUN_00319ad0(plVar1)" identifier (argument_list "(plVar1)" ( identifier ))) ;) (if_statement "if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }" if (parenthesized_expression "(*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8)" ( (binary_expression "*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8" (pointer_expression "*(code **)(*plVar1 + 0x30)" * (cast_expression "(code **)(*plVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x30)" ( (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" * identifier) + number_literal) )))) != (cast_expression "(code *)PTR_FUN_0043dfd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }" { comment comment (expression_statement "uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);" (assignment_expression "uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2)" identifier = (call_expression "(**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x30))" ( (pointer_expression "**(code **)(*plVar1 + 0x30)" * (pointer_expression "*(code **)(*plVar1 + 0x30)" * (cast_expression "(code **)(*plVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x30)" ( (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,(int)(char)uVar2)" ( identifier , (cast_expression "(int)(char)uVar2" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier)) )))) ;) (return_statement "return uVar2;" return identifier ;) })) }) (else_clause "else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }" else (compound_statement "{\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }" { (expression_statement "uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);" (assignment_expression "uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39)" identifier = (binary_expression "(ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar1 + (param_2 & 0xff) + 0x39)" ( (binary_expression "(long)plVar1 + (param_2 & 0xff) + 0x39" (binary_expression "(long)plVar1 + (param_2 & 0xff)" (cast_expression "(long)plVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "(param_2 & 0xff)" ( (binary_expression "param_2 & 0xff" identifier & number_literal) ))) + number_literal) ))))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* std::ios::widen(char) const */\n\nulong __thiscall std::ios::widen(ios *this,char param_1)\n\n{\n  ctype<char> *this_00;\n  ulong uVar1;\n  undefined7 in_register_00000031;\n  \n  this_00 = *(ctype<char> **)(this + 0xf0);\n  if (this_00 == (ctype<char> *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }\n  uVar1 = CONCAT71(in_register_00000031,param_1) & 0xffffffff;\n  if (this_00[0x38] == (ctype<char>)0x0) {\n    ctype<char>::_M_widen_init(this_00);\n    if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(long *)this_00 + 0x30))(this_00,(int)(char)uVar1);\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (ulong)(byte)this_00[(ulong)(byte)param_1 + 0x39];\n  }\n  return uVar1;\n}\n\n" comment (function_definition "ulong __thiscall std::ios::widen(ios *this,char param_1)\n\n{\n  ctype<char> *this_00;\n  ulong uVar1;\n  undefined7 in_register_00000031;\n  \n  this_00 = *(ctype<char> **)(this + 0xf0);\n  if (this_00 == (ctype<char> *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }\n  uVar1 = CONCAT71(in_register_00000031,param_1) & 0xffffffff;\n  if (this_00[0x38] == (ctype<char>)0x0) {\n    ctype<char>::_M_widen_init(this_00);\n    if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(long *)this_00 + 0x30))(this_00,(int)(char)uVar1);\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (ulong)(byte)this_00[(ulong)(byte)param_1 + 0x39];\n  }\n  return uVar1;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios::" identifier : : identifier : :) (function_declarator "widen(ios *this,char param_1)" identifier (parameter_list "(ios *this,char param_1)" ( (parameter_declaration "ios *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char param_1" primitive_type identifier) ))) (compound_statement "{\n  ctype<char> *this_00;\n  ulong uVar1;\n  undefined7 in_register_00000031;\n  \n  this_00 = *(ctype<char> **)(this + 0xf0);\n  if (this_00 == (ctype<char> *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }\n  uVar1 = CONCAT71(in_register_00000031,param_1) & 0xffffffff;\n  if (this_00[0x38] == (ctype<char>)0x0) {\n    ctype<char>::_M_widen_init(this_00);\n    if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(long *)this_00 + 0x30))(this_00,(int)(char)uVar1);\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (ulong)(byte)this_00[(ulong)(byte)param_1 + 0x39];\n  }\n  return uVar1;\n}" { (expression_statement "ctype<char> *this_00;" (binary_expression "ctype<char> *this_00" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "*this_00" * identifier)) ;) (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "undefined7 in_register_00000031;" type_identifier identifier ;) (expression_statement "this_00 = *(ctype<char> **)(this + 0xf0);" (assignment_expression "this_00 = *(ctype<char> **)(this + 0xf0)" identifier = (pointer_expression "*(ctype<char> **)(this + 0xf0)" * (call_expression "(ctype<char> **)(this + 0xf0)" (parenthesized_expression "(ctype<char> **)" ( (binary_expression "ctype<char> **" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "**" * (pointer_expression "*" * identifier))) )) (argument_list "(this + 0xf0)" ( (binary_expression "this + 0xf0" identifier + number_literal) ))))) ;) (if_statement "if (this_00 == (ctype<char> *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }" if (parenthesized_expression "(this_00 == (ctype<char> *)0x0)" ( (binary_expression "this_00 == (ctype<char> *)0x0)" identifier == (parenthesized_expression "(ctype<char> *)0x0)" ( (binary_expression "ctype<char> *)0x0" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "*)0x0" * (ERROR ")" )) 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 "uVar1 = CONCAT71(in_register_00000031,param_1) & 0xffffffff;" (assignment_expression "uVar1 = CONCAT71(in_register_00000031,param_1) & 0xffffffff" identifier = (binary_expression "CONCAT71(in_register_00000031,param_1) & 0xffffffff" (call_expression "CONCAT71(in_register_00000031,param_1)" identifier (argument_list "(in_register_00000031,param_1)" ( identifier , identifier ))) & number_literal)) ;) (if_statement "if (this_00[0x38] == (ctype<char>)0x0) {\n    ctype<char>::_M_widen_init(this_00);\n    if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(long *)this_00 + 0x30))(this_00,(int)(char)uVar1);\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (ulong)(byte)this_00[(ulong)(byte)param_1 + 0x39];\n  }" if (parenthesized_expression "(this_00[0x38] == (ctype<char>)0x0)" ( (binary_expression "this_00[0x38] == (ctype<char>)0x0)" (subscript_expression "this_00[0x38]" identifier [ number_literal ]) == (parenthesized_expression "(ctype<char>)0x0)" ( (binary_expression "ctype<char>)0x0" (binary_expression "ctype<char" identifier < identifier) > (ERROR ")" )) number_literal) ))) )) (compound_statement "{\n    ctype<char>::_M_widen_init(this_00);\n    if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(long *)this_00 + 0x30))(this_00,(int)(char)uVar1);\n      return uVar1;\n    }\n  }" { (expression_statement "ctype<char>::_M_widen_init(this_00);" (binary_expression "ctype<char>::_M_widen_init(this_00)" (binary_expression "ctype<char" identifier < identifier) > (ERROR "::" : :) (call_expression "_M_widen_init(this_00)" identifier (argument_list "(this_00)" ( identifier )))) ;) (if_statement "if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(long *)this_00 + 0x30))(this_00,(int)(char)uVar1);\n      return uVar1;\n    }" if (parenthesized_expression "(*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8)" ( (binary_expression "*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8" (pointer_expression "*(code **)(*(long *)this_00 + 0x30)" * (cast_expression "(code **)(*(long *)this_00 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this_00 + 0x30)" ( (binary_expression "*(long *)this_00 + 0x30" (pointer_expression "*(long *)this_00" * (cast_expression "(long *)this_00" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) != (cast_expression "(code *)PTR_do_widen_0043dfd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(long *)this_00 + 0x30))(this_00,(int)(char)uVar1);\n      return uVar1;\n    }" { comment comment (expression_statement "uVar1 = (**(code **)(*(long *)this_00 + 0x30))(this_00,(int)(char)uVar1);" (assignment_expression "uVar1 = (**(code **)(*(long *)this_00 + 0x30))(this_00,(int)(char)uVar1)" identifier = (call_expression "(**(code **)(*(long *)this_00 + 0x30))(this_00,(int)(char)uVar1)" (parenthesized_expression "(**(code **)(*(long *)this_00 + 0x30))" ( (pointer_expression "**(code **)(*(long *)this_00 + 0x30)" * (pointer_expression "*(code **)(*(long *)this_00 + 0x30)" * (cast_expression "(code **)(*(long *)this_00 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this_00 + 0x30)" ( (binary_expression "*(long *)this_00 + 0x30" (pointer_expression "*(long *)this_00" * (cast_expression "(long *)this_00" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(this_00,(int)(char)uVar1)" ( identifier , (cast_expression "(int)(char)uVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier)) )))) ;) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else {\n    uVar1 = (ulong)(byte)this_00[(ulong)(byte)param_1 + 0x39];\n  }" else (compound_statement "{\n    uVar1 = (ulong)(byte)this_00[(ulong)(byte)param_1 + 0x39];\n  }" { (expression_statement "uVar1 = (ulong)(byte)this_00[(ulong)(byte)param_1 + 0x39];" (assignment_expression "uVar1 = (ulong)(byte)this_00[(ulong)(byte)param_1 + 0x39]" identifier = (cast_expression "(ulong)(byte)this_00[(ulong)(byte)param_1 + 0x39]" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(byte)this_00[(ulong)(byte)param_1 + 0x39]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "this_00[(ulong)(byte)param_1 + 0x39]" identifier [ (binary_expression "(ulong)(byte)param_1 + 0x39" (cast_expression "(ulong)(byte)param_1" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(byte)param_1" ( (type_descriptor "byte" type_identifier) ) identifier)) + number_literal) ])))) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "ulong FUN_00300af0(long param_1,ulong param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 == (long *)0x0) {\n                    \n    FUN_00319460();\n  }\n  uVar2 = param_2 & 0xffffffff;\n  if ((char)plVar1[7] == '\0') {\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }\n  else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong FUN_00300af0(long param_1,ulong param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 == (long *)0x0) {\n                    \n    FUN_00319460();\n  }\n  uVar2 = param_2 & 0xffffffff;\n  if ((char)plVar1[7] == '\0') {\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }\n  else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00300af0(long param_1,ulong param_2)" identifier (parameter_list "(long param_1,ulong param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 == (long *)0x0) {\n                    \n    FUN_00319460();\n  }\n  uVar2 = param_2 & 0xffffffff;\n  if ((char)plVar1[7] == '\0') {\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }\n  else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }\n  return uVar2;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "plVar1 = *(long **)(param_1 + 0xf0);" (assignment_expression "plVar1 = *(long **)(param_1 + 0xf0)" identifier = (pointer_expression "*(long **)(param_1 + 0xf0)" * (cast_expression "(long **)(param_1 + 0xf0)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) ))))) ;) (if_statement "if (plVar1 == (long *)0x0) {\n                    \n    FUN_00319460();\n  }" if (parenthesized_expression "(plVar1 == (long *)0x0)" ( (binary_expression "plVar1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    FUN_00319460();\n  }" { (expression_statement "FUN_00319460();" (call_expression "FUN_00319460()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar2 = param_2 & 0xffffffff;" (assignment_expression "uVar2 = param_2 & 0xffffffff" identifier = (binary_expression "param_2 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if ((char)plVar1[7] == '\0') {\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }\n  else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }" if (parenthesized_expression "((char)plVar1[7] == '\0')" ( (binary_expression "(char)plVar1[7] == '\0'" (cast_expression "(char)plVar1[7]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "plVar1[7]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }" { (expression_statement "FUN_00319ad0(plVar1);" (call_expression "FUN_00319ad0(plVar1)" identifier (argument_list "(plVar1)" ( identifier ))) ;) (if_statement "if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }" if (parenthesized_expression "(*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8)" ( (binary_expression "*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8" (pointer_expression "*(code **)(*plVar1 + 0x30)" * (cast_expression "(code **)(*plVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x30)" ( (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" * identifier) + number_literal) )))) != (cast_expression "(code *)PTR_FUN_0043dfd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }" { (expression_statement "uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);" (assignment_expression "uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2)" identifier = (call_expression "(**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x30))" ( (pointer_expression "**(code **)(*plVar1 + 0x30)" * (pointer_expression "*(code **)(*plVar1 + 0x30)" * (cast_expression "(code **)(*plVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x30)" ( (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,(int)(char)uVar2)" ( identifier , (cast_expression "(int)(char)uVar2" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier)) )))) ;) (return_statement "return uVar2;" return identifier ;) })) }) (else_clause "else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }" else (compound_statement "{\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }" { (expression_statement "uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);" (assignment_expression "uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39)" identifier = (binary_expression "(ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar1 + (param_2 & 0xff) + 0x39)" ( (binary_expression "(long)plVar1 + (param_2 & 0xff) + 0x39" (binary_expression "(long)plVar1 + (param_2 & 0xff)" (cast_expression "(long)plVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "(param_2 & 0xff)" ( (binary_expression "param_2 & 0xff" identifier & number_literal) ))) + number_literal) ))))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression 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 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 , (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT & LIT) ))) + LIT) ))))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_00300af0(long param_1,ulong param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 == (long *)0x0) {\n                    \n    FUN_00319460();\n  }\n  uVar2 = param_2 & 0xffffffff;\n  if ((char)plVar1[7] == '\0') {\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }\n  else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }\n  return uVar2;\n}" (type_identifier "ulong") (function_declarator "FUN_00300af0(long param_1,ulong param_2)" (identifier "FUN_00300af0") (parameter_list "(long param_1,ulong param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) () ")"))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 == (long *)0x0) {\n                    \n    FUN_00319460();\n  }\n  uVar2 = param_2 & 0xffffffff;\n  if ((char)plVar1[7] == '\0') {\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }\n  else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }\n  return uVar2;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (expression_statement "plVar1 = *(long **)(param_1 + 0xf0);" (assignment_expression "plVar1 = *(long **)(param_1 + 0xf0)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)(param_1 + 0xf0)" (* "*") (cast_expression "(long **)(param_1 + 0xf0)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xf0)" (( "(") (binary_expression "param_1 + 0xf0" (identifier "param_1") (+ "+") (number_literal "0xf0")) () ")"))))) (; ";")) (if_statement "if (plVar1 == (long *)0x0) {\n                    \n    FUN_00319460();\n  }" (if "if") (parenthesized_expression "(plVar1 == (long *)0x0)" (( "(") (binary_expression "plVar1 == (long *)0x0" (identifier "plVar1") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    FUN_00319460();\n  }" ({ "{") (expression_statement "FUN_00319460();" (call_expression "FUN_00319460()" (identifier "FUN_00319460") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = param_2 & 0xffffffff;" (assignment_expression "uVar2 = param_2 & 0xffffffff" (identifier "uVar2") (= "=") (binary_expression "param_2 & 0xffffffff" (identifier "param_2") (& "&") (number_literal "0xffffffff"))) (; ";")) (if_statement "if ((char)plVar1[7] == '\0') {\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }\n  else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }" (if "if") (parenthesized_expression "((char)plVar1[7] == '\0')" (( "(") (binary_expression "(char)plVar1[7] == '\0'" (cast_expression "(char)plVar1[7]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "plVar1[7]" (identifier "plVar1") ([ "[") (number_literal "7") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_00319ad0(plVar1);\n    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }\n  }" ({ "{") (expression_statement "FUN_00319ad0(plVar1);" (call_expression "FUN_00319ad0(plVar1)" (identifier "FUN_00319ad0") (argument_list "(plVar1)" (( "(") (identifier "plVar1") () ")"))) (; ";")) (if_statement "if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8)" (( "(") (binary_expression "*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8" (pointer_expression "*(code **)(*plVar1 + 0x30)" (* "*") (cast_expression "(code **)(*plVar1 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x30)" (( "(") (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x30")) () ")")))) (!= "!=") (cast_expression "(code *)PTR_FUN_0043dfd8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0043dfd8"))) () ")")) (compound_statement "{\n                    \n                    \n      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);" (assignment_expression "uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x30))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x30)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x30)" (* "*") (cast_expression "(code **)(*plVar1 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x30)" (( "(") (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(plVar1,(int)(char)uVar2)" (( "(") (identifier "plVar1") (, ",") (cast_expression "(int)(char)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)uVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar2"))) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }" (else "else") (compound_statement "{\n    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);\n  }" ({ "{") (expression_statement "uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);" (assignment_expression "uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39)" (identifier "uVar2") (= "=") (binary_expression "(ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar1 + (param_2 & 0xff) + 0x39)" (( "(") (binary_expression "(long)plVar1 + (param_2 & 0xff) + 0x39" (binary_expression "(long)plVar1 + (param_2 & 0xff)" (cast_expression "(long)plVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar1")) (+ "+") (parenthesized_expression "(param_2 & 0xff)" (( "(") (binary_expression "param_2 & 0xff" (identifier "param_2") (& "&") (number_literal "0xff")) () ")"))) (+ "+") (number_literal "0x39")) () ")"))))) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* std::ios::widen(char) const */

type_1 __thiscall std::type_2::function_1(type_2 *var_3,char param_1)

{
  var_1<var_2> *var_4;
  type_1 uVar1;
  type_3 in_register_00000031;
  
  var_4 = *(var_1<var_2> **)(var_3 + 0xf0);
  if (var_4 == (var_1<var_2> *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_5();
  }
  uVar1 = var_6(in_register_00000031,param_1) & 0xffffffff;
  if (var_4[0x38] == (var_1<var_2>)0x0) {
    var_1<var_2>::var_7(var_4);
    if (*(type_4 **)(*(long *)var_4 + 0x30) != (type_4 *)PTR_do_widen_0043dfd8) {
                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar1 = (**(type_4 **)(*(long *)var_4 + 0x30))(var_4,(int)(char)uVar1);
      return uVar1;
    }
  }
  else {
    uVar1 = (type_1)(type_5)var_4[(type_1)(type_5)param_1 + 0x39];
  }
  return uVar1;
}


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

ulong MASKED(long param_1,ulong param_2)

{
  long *plVar1;
  ulong uVar2;
  
  plVar1 = *(long **)(param_1 + 0xf0);
  if (plVar1 == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_00319460();
  }
  uVar2 = param_2 & 0xffffffff;
  if ((char)plVar1[7] == '\0') {
    FUN_00319ad0(plVar1);
    if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {
                    /* WARNING: Could not recover jumptable at 0x00300b47. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,(int)(char)uVar2);
      return uVar2;
    }
  }
  else {
    uVar2 = (ulong)*(byte *)((long)plVar1 + (param_2 & 0xff) + 0x39);
  }
  return uVar2;
}

