
/* std::wstreambuf::sputbackc(wchar_t) */

int __thiscall std::wstreambuf::sputbackc(wstreambuf *this,wchar_t param_1)

{
  int iVar1;
  uint uVar2;
  undefined2 in_register_00000014;
  
  uVar2 = *(uint *)(this + 8);
  if (*(uint *)(this + 4) < uVar2) {
    if (*(int *)(uVar2 - 4) == CONCAT22(in_register_00000014,param_1)) {
      *(uint *)(this + 8) = uVar2 - 4;
      return CONCAT22(in_register_00000014,param_1);
    }
  }
  if (*(code **)(*(int *)this + 0x2c) == (code *)PTR_pbackfail_004c5304) {
    return -1;
  }
                    /* WARNING: Could not recover jumptable at 0x0033fed4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar1 = (**(code **)(*(int *)this + 0x2c))();
  return iVar1;
}



int FUN_0033fe84(int *param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  
  uVar2 = param_1[2];
  if ((uint)param_1[1] < uVar2) {
    if (*(int *)(uVar2 - 4) == param_2) {
      param_1[2] = uVar2 - 4;
      return param_2;
    }
  }
  if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {
    return -1;
  }
                    /* WARNING: Could not recover jumptable at 0x0033fed4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar1 = (**(code **)(*param_1 + 0x2c))();
  return iVar1;
}


lui gp,0x19
addiu gp,gp,-0x6c44
addu gp,gp,t9
lw v1,0x8(a0)
lw a2,0x4(a0)
sltu a2,a2,v1
beq a2,zero,0x0033feb8
_or v0,a1,zero
lw a2,-0x4(v1)
bne a2,a1,0x0033feb8
_addiu v1,v1,-0x4
jr ra
_sw v1,0x8(a0)
lw v1,0x0(a0)
lw v0,-0x3f3c(gp)
lw t9,0x2c(v1)
bne t9,v0,0x0033fed4
_li v0,-0x1
jr ra
_nop
jr t9
_nop
(translation_unit "int FUN_0033fe84(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1[2];\n  if ((uint)param_1[1] < uVar2) {\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }\n  if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0033fed4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (**(code **)(*param_1 + 0x2c))();\n  return iVar1;\n}\n\n" (function_definition "int FUN_0033fe84(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1[2];\n  if ((uint)param_1[1] < uVar2) {\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }\n  if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0033fed4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (**(code **)(*param_1 + 0x2c))();\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0033fe84(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1[2];\n  if ((uint)param_1[1] < uVar2) {\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }\n  if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0033fed4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (**(code **)(*param_1 + 0x2c))();\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if ((uint)param_1[1] < uVar2) {\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }" if (parenthesized_expression "((uint)param_1[1] < uVar2)" ( (binary_expression "(uint)param_1[1] < uVar2" (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }" { (if_statement "if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }" if (parenthesized_expression "(*(int *)(uVar2 - 4) == param_2)" ( (binary_expression "*(int *)(uVar2 - 4) == param_2" (pointer_expression "*(int *)(uVar2 - 4)" * (cast_expression "(int *)(uVar2 - 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 - 4)" ( (binary_expression "uVar2 - 4" identifier - number_literal) )))) == identifier) )) (compound_statement "{\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }" { (expression_statement "param_1[2] = uVar2 - 4;" (assignment_expression "param_1[2] = uVar2 - 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "uVar2 - 4" identifier - number_literal)) ;) (return_statement "return param_2;" return identifier ;) })) })) (if_statement "if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304)" ( (binary_expression "*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304" (pointer_expression "*(code **)(*param_1 + 0x2c)" * (cast_expression "(code **)(*param_1 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x2c)" ( (binary_expression "*param_1 + 0x2c" (pointer_expression "*param_1" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_pbackfail_004c5304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) comment comment (expression_statement "iVar1 = (**(code **)(*param_1 + 0x2c))();" (assignment_expression "iVar1 = (**(code **)(*param_1 + 0x2c))()" identifier = (call_expression "(**(code **)(*param_1 + 0x2c))()" (parenthesized_expression "(**(code **)(*param_1 + 0x2c))" ( (pointer_expression "**(code **)(*param_1 + 0x2c)" * (pointer_expression "*(code **)(*param_1 + 0x2c)" * (cast_expression "(code **)(*param_1 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x2c)" ( (binary_expression "*param_1 + 0x2c" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* std::wstreambuf::sputbackc(wchar_t) */\n\nint __thiscall std::wstreambuf::sputbackc(wstreambuf *this,wchar_t param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined2 in_register_00000014;\n  \n  uVar2 = *(uint *)(this + 8);\n  if (*(uint *)(this + 4) < uVar2) {\n    if (*(int *)(uVar2 - 4) == CONCAT22(in_register_00000014,param_1)) {\n      *(uint *)(this + 8) = uVar2 - 4;\n      return CONCAT22(in_register_00000014,param_1);\n    }\n  }\n  if (*(code **)(*(int *)this + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0033fed4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (**(code **)(*(int *)this + 0x2c))();\n  return iVar1;\n}\n\n" comment (function_definition "int __thiscall std::wstreambuf::sputbackc(wstreambuf *this,wchar_t param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined2 in_register_00000014;\n  \n  uVar2 = *(uint *)(this + 8);\n  if (*(uint *)(this + 4) < uVar2) {\n    if (*(int *)(uVar2 - 4) == CONCAT22(in_register_00000014,param_1)) {\n      *(uint *)(this + 8) = uVar2 - 4;\n      return CONCAT22(in_register_00000014,param_1);\n    }\n  }\n  if (*(code **)(*(int *)this + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0033fed4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (**(code **)(*(int *)this + 0x2c))();\n  return iVar1;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstreambuf::" identifier : : identifier : :) (function_declarator "sputbackc(wstreambuf *this,wchar_t param_1)" identifier (parameter_list "(wstreambuf *this,wchar_t param_1)" ( (parameter_declaration "wstreambuf *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined2 in_register_00000014;\n  \n  uVar2 = *(uint *)(this + 8);\n  if (*(uint *)(this + 4) < uVar2) {\n    if (*(int *)(uVar2 - 4) == CONCAT22(in_register_00000014,param_1)) {\n      *(uint *)(this + 8) = uVar2 - 4;\n      return CONCAT22(in_register_00000014,param_1);\n    }\n  }\n  if (*(code **)(*(int *)this + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0033fed4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (**(code **)(*(int *)this + 0x2c))();\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined2 in_register_00000014;" type_identifier identifier ;) (expression_statement "uVar2 = *(uint *)(this + 8);" (assignment_expression "uVar2 = *(uint *)(this + 8)" identifier = (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (if_statement "if (*(uint *)(this + 4) < uVar2) {\n    if (*(int *)(uVar2 - 4) == CONCAT22(in_register_00000014,param_1)) {\n      *(uint *)(this + 8) = uVar2 - 4;\n      return CONCAT22(in_register_00000014,param_1);\n    }\n  }" if (parenthesized_expression "(*(uint *)(this + 4) < uVar2)" ( (binary_expression "*(uint *)(this + 4) < uVar2" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n    if (*(int *)(uVar2 - 4) == CONCAT22(in_register_00000014,param_1)) {\n      *(uint *)(this + 8) = uVar2 - 4;\n      return CONCAT22(in_register_00000014,param_1);\n    }\n  }" { (if_statement "if (*(int *)(uVar2 - 4) == CONCAT22(in_register_00000014,param_1)) {\n      *(uint *)(this + 8) = uVar2 - 4;\n      return CONCAT22(in_register_00000014,param_1);\n    }" if (parenthesized_expression "(*(int *)(uVar2 - 4) == CONCAT22(in_register_00000014,param_1))" ( (binary_expression "*(int *)(uVar2 - 4) == CONCAT22(in_register_00000014,param_1)" (pointer_expression "*(int *)(uVar2 - 4)" * (cast_expression "(int *)(uVar2 - 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 - 4)" ( (binary_expression "uVar2 - 4" identifier - number_literal) )))) == (call_expression "CONCAT22(in_register_00000014,param_1)" identifier (argument_list "(in_register_00000014,param_1)" ( identifier , identifier )))) )) (compound_statement "{\n      *(uint *)(this + 8) = uVar2 - 4;\n      return CONCAT22(in_register_00000014,param_1);\n    }" { (expression_statement "*(uint *)(this + 8) = uVar2 - 4;" (assignment_expression "*(uint *)(this + 8) = uVar2 - 4" (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (binary_expression "uVar2 - 4" identifier - number_literal)) ;) (return_statement "return CONCAT22(in_register_00000014,param_1);" return (call_expression "CONCAT22(in_register_00000014,param_1)" identifier (argument_list "(in_register_00000014,param_1)" ( identifier , identifier ))) ;) })) })) (if_statement "if (*(code **)(*(int *)this + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }" if (parenthesized_expression "(*(code **)(*(int *)this + 0x2c) == (code *)PTR_pbackfail_004c5304)" ( (binary_expression "*(code **)(*(int *)this + 0x2c) == (code *)PTR_pbackfail_004c5304" (pointer_expression "*(code **)(*(int *)this + 0x2c)" * (cast_expression "(code **)(*(int *)this + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x2c)" ( (binary_expression "*(int *)this + 0x2c" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) == (cast_expression "(code *)PTR_pbackfail_004c5304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) comment comment (expression_statement "iVar1 = (**(code **)(*(int *)this + 0x2c))();" (assignment_expression "iVar1 = (**(code **)(*(int *)this + 0x2c))()" identifier = (call_expression "(**(code **)(*(int *)this + 0x2c))()" (parenthesized_expression "(**(code **)(*(int *)this + 0x2c))" ( (pointer_expression "**(code **)(*(int *)this + 0x2c)" * (pointer_expression "*(code **)(*(int *)this + 0x2c)" * (cast_expression "(code **)(*(int *)this + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x2c)" ( (binary_expression "*(int *)this + 0x2c" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0033fe84(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1[2];\n  if ((uint)param_1[1] < uVar2) {\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }\n  if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }\n                    \n                    \n  iVar1 = (**(code **)(*param_1 + 0x2c))();\n  return iVar1;\n}\n\n" (function_definition "int FUN_0033fe84(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1[2];\n  if ((uint)param_1[1] < uVar2) {\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }\n  if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }\n                    \n                    \n  iVar1 = (**(code **)(*param_1 + 0x2c))();\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0033fe84(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1[2];\n  if ((uint)param_1[1] < uVar2) {\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }\n  if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }\n                    \n                    \n  iVar1 = (**(code **)(*param_1 + 0x2c))();\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if ((uint)param_1[1] < uVar2) {\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }" if (parenthesized_expression "((uint)param_1[1] < uVar2)" ( (binary_expression "(uint)param_1[1] < uVar2" (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }" { (if_statement "if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }" if (parenthesized_expression "(*(int *)(uVar2 - 4) == param_2)" ( (binary_expression "*(int *)(uVar2 - 4) == param_2" (pointer_expression "*(int *)(uVar2 - 4)" * (cast_expression "(int *)(uVar2 - 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 - 4)" ( (binary_expression "uVar2 - 4" identifier - number_literal) )))) == identifier) )) (compound_statement "{\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }" { (expression_statement "param_1[2] = uVar2 - 4;" (assignment_expression "param_1[2] = uVar2 - 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "uVar2 - 4" identifier - number_literal)) ;) (return_statement "return param_2;" return identifier ;) })) })) (if_statement "if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304)" ( (binary_expression "*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304" (pointer_expression "*(code **)(*param_1 + 0x2c)" * (cast_expression "(code **)(*param_1 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x2c)" ( (binary_expression "*param_1 + 0x2c" (pointer_expression "*param_1" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_pbackfail_004c5304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar1 = (**(code **)(*param_1 + 0x2c))();" (assignment_expression "iVar1 = (**(code **)(*param_1 + 0x2c))()" identifier = (call_expression "(**(code **)(*param_1 + 0x2c))()" (parenthesized_expression "(**(code **)(*param_1 + 0x2c))" ( (pointer_expression "**(code **)(*param_1 + 0x2c)" * (pointer_expression "*(code **)(*param_1 + 0x2c)" * (cast_expression "(code **)(*param_1 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x2c)" ( (binary_expression "*param_1 + 0x2c" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (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) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT - LIT)) ;) (return_statement return 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 { (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 ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0033fe84(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1[2];\n  if ((uint)param_1[1] < uVar2) {\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }\n  if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }\n                    \n                    \n  iVar1 = (**(code **)(*param_1 + 0x2c))();\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0033fe84(int *param_1,int param_2)" (identifier "FUN_0033fe84") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1[2];\n  if ((uint)param_1[1] < uVar2) {\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }\n  if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }\n                    \n                    \n  iVar1 = (**(code **)(*param_1 + 0x2c))();\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" (identifier "uVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if ((uint)param_1[1] < uVar2) {\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }" (if "if") (parenthesized_expression "((uint)param_1[1] < uVar2)" (( "(") (binary_expression "(uint)param_1[1] < uVar2" (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n    if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }\n  }" ({ "{") (if_statement "if (*(int *)(uVar2 - 4) == param_2) {\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }" (if "if") (parenthesized_expression "(*(int *)(uVar2 - 4) == param_2)" (( "(") (binary_expression "*(int *)(uVar2 - 4) == param_2" (pointer_expression "*(int *)(uVar2 - 4)" (* "*") (cast_expression "(int *)(uVar2 - 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 - 4)" (( "(") (binary_expression "uVar2 - 4" (identifier "uVar2") (- "-") (number_literal "4")) () ")")))) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n      param_1[2] = uVar2 - 4;\n      return param_2;\n    }" ({ "{") (expression_statement "param_1[2] = uVar2 - 4;" (assignment_expression "param_1[2] = uVar2 - 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "uVar2 - 4" (identifier "uVar2") (- "-") (number_literal "4"))) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (} "}"))) (if_statement "if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {\n    return -1;\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304)" (( "(") (binary_expression "*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304" (pointer_expression "*(code **)(*param_1 + 0x2c)" (* "*") (cast_expression "(code **)(*param_1 + 0x2c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x2c)" (( "(") (binary_expression "*param_1 + 0x2c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x2c")) () ")")))) (== "==") (cast_expression "(code *)PTR_pbackfail_004c5304" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pbackfail_004c5304"))) () ")")) (compound_statement "{\n    return -1;\n  }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (expression_statement "iVar1 = (**(code **)(*param_1 + 0x2c))();" (assignment_expression "iVar1 = (**(code **)(*param_1 + 0x2c))()" (identifier "iVar1") (= "=") (call_expression "(**(code **)(*param_1 + 0x2c))()" (parenthesized_expression "(**(code **)(*param_1 + 0x2c))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x2c)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x2c)" (* "*") (cast_expression "(code **)(*param_1 + 0x2c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x2c)" (( "(") (binary_expression "*param_1 + 0x2c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x2c")) () ")"))))) () ")")) (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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier))) 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: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (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 (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)))) (return_statement (identifier)))))

int MASKED(int *param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  
  uVar2 = param_1[2];
  if ((uint)param_1[1] < uVar2) {
    if (*(int *)(uVar2 - 4) == param_2) {
      param_1[2] = uVar2 - 4;
      return param_2;
    }
  }
  if (*(code **)(*param_1 + 0x2c) == (code *)PTR_pbackfail_004c5304) {
    return -1;
  }
                    /* WARNING: Could not recover jumptable at 0x0033fed4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar1 = (**(code **)(*param_1 + 0x2c))();
  return iVar1;
}

