
/* std::moneypunct<wchar_t, false>::positive_sign() const */

int * std::moneypunct<wchar_t,false>::positive_sign(void)

{
  int iVar1;
  int *in_a0;
  int *in_a1;
  int iVar2;
  
  if (*(code **)(*in_a1 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {
    iVar2 = *(int *)(in_a1[2] + 0x24);
    *in_a0 = (int)(in_a0 + 2);
    if (iVar2 == 0) {
      iVar1 = -4;
    }
    else {
      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);
      iVar1 = iVar2 + iVar1 * 4;
    }
    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(in_a0,iVar2,iVar1,0);
    return in_a0;
  }
  (**(code **)(*in_a1 + 0x18))();
  return in_a0;
}



int * FUN_003355a4(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  
  if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {
    iVar2 = *(int *)(param_2[2] + 0x24);
    *param_1 = (int)(param_1 + 2);
    if (iVar2 == 0) {
      iVar1 = -4;
    }
    else {
      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);
      iVar1 = iVar2 + iVar1 * 4;
    }
    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);
    return param_1;
  }
  (**(code **)(*param_2 + 0x18))();
  return param_1;
}


lui gp,0x10
addiu gp,gp,0x4c2c
addu gp,gp,t9
lw a2,0x0(a1)
addiu sp,sp,-0x28
lw v1,-0x652c(gp)
sw gp,0x10(sp)
sw s0,0x1c(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
lw t9,0x18(a2)
bne t9,v1,0x0033563c
_or s0,a0,zero
lw v1,0x8(a1)
addiu v0,a0,0x8
lw s1,0x24(v1)
beq s1,zero,0x00335634
_sw v0,0x0(a0)
lw t9,-0x3960(gp)
jalr t9
_or a0,s1,zero
sll v0,v0,0x2
lw gp,0x10(sp)
addu a2,s1,v0
or a3,zero,zero
lw t9,-0x6558(gp)
or a1,s1,zero
sll a3,a3,0x18
jalr t9
_or a0,s0,zero
or v0,s0,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
b 0x00335604
_li a2,-0x4
jalr t9
_nop
or v0,s0,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int * FUN_003355a4(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x18))();\n  return param_1;\n}\n\n" (function_definition "int * FUN_003355a4(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x18))();\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_003355a4(int *param_1,int *param_2)" * (function_declarator "FUN_003355a4(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 (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x18))();\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4)" ( (binary_expression "*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4" (pointer_expression "*(code **)(*param_2 + 0x18)" * (cast_expression "(code **)(*param_2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x18)" ( (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_positive_sign_00433ca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }" { (expression_statement "iVar2 = *(int *)(param_2[2] + 0x24);" (assignment_expression "iVar2 = *(int *)(param_2[2] + 0x24)" identifier = (pointer_expression "*(int *)(param_2[2] + 0x24)" * (cast_expression "(int *)(param_2[2] + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + 0x24)" ( (binary_expression "param_2[2] + 0x24" (subscript_expression "param_2[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = -4;\n    }" { (expression_statement "iVar1 = -4;" (assignment_expression "iVar1 = -4" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" else (compound_statement "{\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);" (assignment_expression "iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2)" identifier = (call_expression "(*(code *)PTR_wcslen_00436870)(iVar2)" (parenthesized_expression "(*(code *)PTR_wcslen_00436870)" ( (pointer_expression "*(code *)PTR_wcslen_00436870" * (cast_expression "(code *)PTR_wcslen_00436870" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "iVar1 = iVar2 + iVar1 * 4;" (assignment_expression "iVar1 = iVar2 + iVar1 * 4" identifier = (binary_expression "iVar2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal))) ;) }))) (expression_statement "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);" (call_expression "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0)" (parenthesized_expression "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)" ( (binary_expression "*(code *)PTR__M_construct<wchar_t_const*>_00433c78" (binary_expression "*(code *)PTR__M_construct<wchar_t_const" (pointer_expression "*(code *)PTR__M_construct" * (cast_expression "(code *)PTR__M_construct" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) < identifier) (ERROR "*" *) > identifier) )) (argument_list "(param_1,iVar2,iVar1,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "(**(code **)(*param_2 + 0x18))();" (call_expression "(**(code **)(*param_2 + 0x18))()" (parenthesized_expression "(**(code **)(*param_2 + 0x18))" ( (pointer_expression "**(code **)(*param_2 + 0x18)" * (pointer_expression "*(code **)(*param_2 + 0x18)" * (cast_expression "(code **)(*param_2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x18)" ( (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::moneypunct<wchar_t, false>::positive_sign() const */\n\nint * std::moneypunct<wchar_t,false>::positive_sign(void)\n\n{\n  int iVar1;\n  int *in_a0;\n  int *in_a1;\n  int iVar2;\n  \n  if (*(code **)(*in_a1 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(in_a1[2] + 0x24);\n    *in_a0 = (int)(in_a0 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(in_a0,iVar2,iVar1,0);\n    return in_a0;\n  }\n  (**(code **)(*in_a1 + 0x18))();\n  return in_a0;\n}\n\n" comment (declaration "int * std::moneypunct<wchar_t,false>::positive_sign(void)\n\n{\n  int iVar1;" primitive_type (pointer_declarator "* std::moneypunct<wchar_t" * (ERROR "std::moneypunct<" identifier : : identifier <) identifier) , (ERROR "false>::positive_sign(void)\n\n{\n  int" identifier > : : (function_declarator "positive_sign(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) { primitive_type) identifier ;) (declaration "int *in_a0;" primitive_type (pointer_declarator "*in_a0" * identifier) ;) (declaration "int *in_a1;" primitive_type (pointer_declarator "*in_a1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(code **)(*in_a1 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(in_a1[2] + 0x24);\n    *in_a0 = (int)(in_a0 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(in_a0,iVar2,iVar1,0);\n    return in_a0;\n  }" if (parenthesized_expression "(*(code **)(*in_a1 + 0x18) == (code *)PTR_do_positive_sign_00433ca4)" ( (binary_expression "*(code **)(*in_a1 + 0x18) == (code *)PTR_do_positive_sign_00433ca4" (pointer_expression "*(code **)(*in_a1 + 0x18)" * (cast_expression "(code **)(*in_a1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*in_a1 + 0x18)" ( (binary_expression "*in_a1 + 0x18" (pointer_expression "*in_a1" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_positive_sign_00433ca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    iVar2 = *(int *)(in_a1[2] + 0x24);\n    *in_a0 = (int)(in_a0 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(in_a0,iVar2,iVar1,0);\n    return in_a0;\n  }" { (expression_statement "iVar2 = *(int *)(in_a1[2] + 0x24);" (assignment_expression "iVar2 = *(int *)(in_a1[2] + 0x24)" identifier = (pointer_expression "*(int *)(in_a1[2] + 0x24)" * (cast_expression "(int *)(in_a1[2] + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a1[2] + 0x24)" ( (binary_expression "in_a1[2] + 0x24" (subscript_expression "in_a1[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*in_a0 = (int)(in_a0 + 2);" (assignment_expression "*in_a0 = (int)(in_a0 + 2)" (pointer_expression "*in_a0" * identifier) = (cast_expression "(int)(in_a0 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(in_a0 + 2)" ( (binary_expression "in_a0 + 2" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = -4;\n    }" { (expression_statement "iVar1 = -4;" (assignment_expression "iVar1 = -4" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" else (compound_statement "{\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);" (assignment_expression "iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2)" identifier = (call_expression "(*(code *)PTR_wcslen_00436870)(iVar2)" (parenthesized_expression "(*(code *)PTR_wcslen_00436870)" ( (pointer_expression "*(code *)PTR_wcslen_00436870" * (cast_expression "(code *)PTR_wcslen_00436870" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "iVar1 = iVar2 + iVar1 * 4;" (assignment_expression "iVar1 = iVar2 + iVar1 * 4" identifier = (binary_expression "iVar2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal))) ;) }))) (expression_statement "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(in_a0,iVar2,iVar1,0);" (call_expression "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(in_a0,iVar2,iVar1,0)" (parenthesized_expression "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)" ( (binary_expression "*(code *)PTR__M_construct<wchar_t_const*>_00433c78" (binary_expression "*(code *)PTR__M_construct<wchar_t_const" (pointer_expression "*(code *)PTR__M_construct" * (cast_expression "(code *)PTR__M_construct" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) < identifier) (ERROR "*" *) > identifier) )) (argument_list "(in_a0,iVar2,iVar1,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return in_a0;" return identifier ;) })) (expression_statement "(**(code **)(*in_a1 + 0x18))();" (call_expression "(**(code **)(*in_a1 + 0x18))()" (parenthesized_expression "(**(code **)(*in_a1 + 0x18))" ( (pointer_expression "**(code **)(*in_a1 + 0x18)" * (pointer_expression "*(code **)(*in_a1 + 0x18)" * (cast_expression "(code **)(*in_a1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*in_a1 + 0x18)" ( (binary_expression "*in_a1 + 0x18" (pointer_expression "*in_a1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return in_a0;" return identifier ;) (ERROR "}" }))
(translation_unit "int * FUN_003355a4(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x18))();\n  return param_1;\n}\n\n" (function_definition "int * FUN_003355a4(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x18))();\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_003355a4(int *param_1,int *param_2)" * (function_declarator "FUN_003355a4(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 (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x18))();\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4)" ( (binary_expression "*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4" (pointer_expression "*(code **)(*param_2 + 0x18)" * (cast_expression "(code **)(*param_2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x18)" ( (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_positive_sign_00433ca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }" { (expression_statement "iVar2 = *(int *)(param_2[2] + 0x24);" (assignment_expression "iVar2 = *(int *)(param_2[2] + 0x24)" identifier = (pointer_expression "*(int *)(param_2[2] + 0x24)" * (cast_expression "(int *)(param_2[2] + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + 0x24)" ( (binary_expression "param_2[2] + 0x24" (subscript_expression "param_2[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = -4;\n    }" { (expression_statement "iVar1 = -4;" (assignment_expression "iVar1 = -4" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" else (compound_statement "{\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);" (assignment_expression "iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2)" identifier = (call_expression "(*(code *)PTR_wcslen_00436870)(iVar2)" (parenthesized_expression "(*(code *)PTR_wcslen_00436870)" ( (pointer_expression "*(code *)PTR_wcslen_00436870" * (cast_expression "(code *)PTR_wcslen_00436870" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "iVar1 = iVar2 + iVar1 * 4;" (assignment_expression "iVar1 = iVar2 + iVar1 * 4" identifier = (binary_expression "iVar2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal))) ;) }))) (expression_statement "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);" (call_expression "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0)" (parenthesized_expression "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)" ( (binary_expression "*(code *)PTR__M_construct<wchar_t_const*>_00433c78" (binary_expression "*(code *)PTR__M_construct<wchar_t_const" (pointer_expression "*(code *)PTR__M_construct" * (cast_expression "(code *)PTR__M_construct" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) < identifier) (ERROR "*" *) > identifier) )) (argument_list "(param_1,iVar2,iVar1,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "(**(code **)(*param_2 + 0x18))();" (call_expression "(**(code **)(*param_2 + 0x18))()" (parenthesized_expression "(**(code **)(*param_2 + 0x18))" ( (pointer_expression "**(code **)(*param_2 + 0x18)" * (pointer_expression "*(code **)(*param_2 + 0x18)" * (cast_expression "(code **)(*param_2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x18)" ( (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) < IDENT) (ERROR *) > IDENT) )) (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (return_statement return IDENT ;) })) (expression_statement (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_003355a4(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x18))();\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_003355a4(int *param_1,int *param_2)" (* "*") (function_declarator "FUN_003355a4(int *param_1,int *param_2)" (identifier "FUN_003355a4") (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") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x18))();\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4)" (( "(") (binary_expression "*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4" (pointer_expression "*(code **)(*param_2 + 0x18)" (* "*") (cast_expression "(code **)(*param_2 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x18)" (( "(") (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x18")) () ")")))) (== "==") (cast_expression "(code *)PTR_do_positive_sign_00433ca4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_do_positive_sign_00433ca4"))) () ")")) (compound_statement "{\n    iVar2 = *(int *)(param_2[2] + 0x24);\n    *param_1 = (int)(param_1 + 2);\n    if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }\n    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);\n    return param_1;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_2[2] + 0x24);" (assignment_expression "iVar2 = *(int *)(param_2[2] + 0x24)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_2[2] + 0x24)" (* "*") (cast_expression "(int *)(param_2[2] + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[2] + 0x24)" (( "(") (binary_expression "param_2[2] + 0x24" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(param_1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar1 = -4;\n    }\n    else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = -4;\n    }" ({ "{") (expression_statement "iVar1 = -4;" (assignment_expression "iVar1 = -4" (identifier "iVar1") (= "=") (number_literal "-4")) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" (else "else") (compound_statement "{\n      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);\n      iVar1 = iVar2 + iVar1 * 4;\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);" (assignment_expression "iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_wcslen_00436870)(iVar2)" (parenthesized_expression "(*(code *)PTR_wcslen_00436870)" (( "(") (pointer_expression "*(code *)PTR_wcslen_00436870" (* "*") (cast_expression "(code *)PTR_wcslen_00436870" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wcslen_00436870"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "iVar1 = iVar2 + iVar1 * 4;" (assignment_expression "iVar1 = iVar2 + iVar1 * 4" (identifier "iVar1") (= "=") (binary_expression "iVar2 + iVar1 * 4" (identifier "iVar2") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4")))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);" (call_expression "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0)" (parenthesized_expression "(*(code *)PTR__M_construct<wchar_t_const*>_00433c78)" (( "(") (binary_expression "*(code *)PTR__M_construct<wchar_t_const*>_00433c78" (binary_expression "*(code *)PTR__M_construct<wchar_t_const" (pointer_expression "*(code *)PTR__M_construct" (* "*") (cast_expression "(code *)PTR__M_construct" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_construct"))) (< "<") (identifier "wchar_t_const")) (ERROR "*" (* "*")) (> ">") (identifier "_00433c78")) () ")")) (argument_list "(param_1,iVar2,iVar1,0)" (( "(") (identifier "param_1") (, ",") (identifier "iVar2") (, ",") (identifier "iVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "(**(code **)(*param_2 + 0x18))();" (call_expression "(**(code **)(*param_2 + 0x18))()" (parenthesized_expression "(**(code **)(*param_2 + 0x18))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x18)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x18)" (* "*") (cast_expression "(code **)(*param_2 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x18)" (( "(") (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::moneypunct<wchar_t, false>::positive_sign() const */

int * std::moneypunct<wchar_t,false>::positive_sign(void)

{
  int var_3;
  int *var_1;
  int *in_a1;
  int var_2;
  
  if (*(type_1 **)(*in_a1 + 0x18) == (type_1 *)PTR_do_positive_sign_00433ca4) {
    var_2 = *(int *)(in_a1[2] + 0x24);
    *var_1 = (int)(var_1 + 2);
    if (var_2 == 0) {
      var_3 = -4;
    }
    else {
      var_3 = (*(type_1 *)PTR_wcslen_00436870)(var_2);
      var_3 = var_2 + var_3 * 4;
    }
    (*(type_1 *)PTR__M_construct<var_4*>var_5)(var_1,var_2,var_3,0);
    return var_1;
  }
  (**(type_1 **)(*in_a1 + 0x18))();
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)) (ERROR) right: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (return_statement (identifier)))) (expression_statement (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;
  int iVar2;
  
  if (*(code **)(*param_2 + 0x18) == (code *)PTR_do_positive_sign_00433ca4) {
    iVar2 = *(int *)(param_2[2] + 0x24);
    *param_1 = (int)(param_1 + 2);
    if (iVar2 == 0) {
      iVar1 = -4;
    }
    else {
      iVar1 = (*(code *)PTR_wcslen_00436870)(iVar2);
      iVar1 = iVar2 + iVar1 * 4;
    }
    (*(code *)PTR__M_construct<wchar_t_const*>_00433c78)(param_1,iVar2,iVar1,0);
    return param_1;
  }
  (**(code **)(*param_2 + 0x18))();
  return param_1;
}

