
/* std::wstring::_S_copy_chars(wchar_t*, wchar_t const*, wchar_t const*) */

void std::wstring::_S_copy_chars(wchar_t *param_1,wchar_t *param_2,wchar_t *param_3)

{
  int iVar1;
  
  iVar1 = (int)param_3 - (int)param_2 >> 2;
  if (iVar1 == 1) {
    *(undefined4 *)param_1 = *(undefined4 *)param_2;
    return;
  }
  if (iVar1 == 0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x002bb298. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_wmemcpy_0043682c)();
  return;
}



void FUN_002bb268(undefined4 *param_1,undefined4 *param_2,int param_3)

{
  int iVar1;
  
  iVar1 = param_3 - (int)param_2 >> 2;
  if (iVar1 == 1) {
    *param_1 = *param_2;
    return;
  }
  if (iVar1 == 0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x002bb298. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_wmemcpy_0043682c)();
  return;
}


lui gp,0x18
addiu gp,gp,-0x1098
addu gp,gp,t9
subu a2,a2,a1
li v1,0x1
sra a2,a2,0x2
beq a2,v1,0x002bb2a0
_nop
bne a2,zero,0x002bb298
_lw t9,-0x39a4(gp)
jr ra
_nop
jr t9
_nop
lw v0,0x0(a1)
jr ra
_sw v0,0x0(a0)
(translation_unit "void FUN_002bb268(undefined4 *param_1,undefined4 *param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_3 - (int)param_2 >> 2;\n  if (iVar1 == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x002bb298. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_wmemcpy_0043682c)();\n  return;\n}\n\n" (function_definition "void FUN_002bb268(undefined4 *param_1,undefined4 *param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_3 - (int)param_2 >> 2;\n  if (iVar1 == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x002bb298. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_wmemcpy_0043682c)();\n  return;\n}" primitive_type (function_declarator "FUN_002bb268(undefined4 *param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_3 - (int)param_2 >> 2;\n  if (iVar1 == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x002bb298. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_wmemcpy_0043682c)();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = param_3 - (int)param_2 >> 2;" (assignment_expression "iVar1 = param_3 - (int)param_2 >> 2" identifier = (binary_expression "param_3 - (int)param_2 >> 2" (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (if_statement "if (iVar1 == 1) {\n    *param_1 = *param_2;\n    return;\n  }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n    *param_1 = *param_2;\n    return;\n  }" { (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment comment (expression_statement "(*(code *)PTR_wmemcpy_0043682c)();" (call_expression "(*(code *)PTR_wmemcpy_0043682c)()" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wstring::_S_copy_chars(wchar_t*, wchar_t const*, wchar_t const*) */\n\nvoid std::wstring::_S_copy_chars(wchar_t *param_1,wchar_t *param_2,wchar_t *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)param_3 - (int)param_2 >> 2;\n  if (iVar1 == 1) {\n    *(undefined4 *)param_1 = *(undefined4 *)param_2;\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x002bb298. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_wmemcpy_0043682c)();\n  return;\n}\n\n" comment (function_definition "void std::wstring::_S_copy_chars(wchar_t *param_1,wchar_t *param_2,wchar_t *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)param_3 - (int)param_2 >> 2;\n  if (iVar1 == 1) {\n    *(undefined4 *)param_1 = *(undefined4 *)param_2;\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x002bb298. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_wmemcpy_0043682c)();\n  return;\n}" primitive_type (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "_S_copy_chars(wchar_t *param_1,wchar_t *param_2,wchar_t *param_3)" identifier (parameter_list "(wchar_t *param_1,wchar_t *param_2,wchar_t *param_3)" ( (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "wchar_t *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (int)param_3 - (int)param_2 >> 2;\n  if (iVar1 == 1) {\n    *(undefined4 *)param_1 = *(undefined4 *)param_2;\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x002bb298. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_wmemcpy_0043682c)();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (int)param_3 - (int)param_2 >> 2;" (assignment_expression "iVar1 = (int)param_3 - (int)param_2 >> 2" identifier = (binary_expression "(int)param_3 - (int)param_2 >> 2" (binary_expression "(int)param_3 - (int)param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (if_statement "if (iVar1 == 1) {\n    *(undefined4 *)param_1 = *(undefined4 *)param_2;\n    return;\n  }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)param_1 = *(undefined4 *)param_2;\n    return;\n  }" { (expression_statement "*(undefined4 *)param_1 = *(undefined4 *)param_2;" (assignment_expression "*(undefined4 *)param_1 = *(undefined4 *)param_2" (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)param_2" * (cast_expression "(undefined4 *)param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment comment (expression_statement "(*(code *)PTR_wmemcpy_0043682c)();" (call_expression "(*(code *)PTR_wmemcpy_0043682c)()" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002bb268(undefined4 *param_1,undefined4 *param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_3 - (int)param_2 >> 2;\n  if (iVar1 == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n                    \n                    \n  (*(code *)PTR_wmemcpy_0043682c)();\n  return;\n}\n\n" (function_definition "void FUN_002bb268(undefined4 *param_1,undefined4 *param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_3 - (int)param_2 >> 2;\n  if (iVar1 == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n                    \n                    \n  (*(code *)PTR_wmemcpy_0043682c)();\n  return;\n}" primitive_type (function_declarator "FUN_002bb268(undefined4 *param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_3 - (int)param_2 >> 2;\n  if (iVar1 == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n                    \n                    \n  (*(code *)PTR_wmemcpy_0043682c)();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = param_3 - (int)param_2 >> 2;" (assignment_expression "iVar1 = param_3 - (int)param_2 >> 2" identifier = (binary_expression "param_3 - (int)param_2 >> 2" (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (if_statement "if (iVar1 == 1) {\n    *param_1 = *param_2;\n    return;\n  }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n    *param_1 = *param_2;\n    return;\n  }" { (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_wmemcpy_0043682c)();" (call_expression "(*(code *)PTR_wmemcpy_0043682c)()" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002bb268(undefined4 *param_1,undefined4 *param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_3 - (int)param_2 >> 2;\n  if (iVar1 == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n                    \n                    \n  (*(code *)PTR_wmemcpy_0043682c)();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002bb268(undefined4 *param_1,undefined4 *param_2,int param_3)" (identifier "FUN_002bb268") (parameter_list "(undefined4 *param_1,undefined4 *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_3 - (int)param_2 >> 2;\n  if (iVar1 == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n                    \n                    \n  (*(code *)PTR_wmemcpy_0043682c)();\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = param_3 - (int)param_2 >> 2;" (assignment_expression "iVar1 = param_3 - (int)param_2 >> 2" (identifier "iVar1") (= "=") (binary_expression "param_3 - (int)param_2 >> 2" (binary_expression "param_3 - (int)param_2" (identifier "param_3") (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (>> ">>") (number_literal "2"))) (; ";")) (if_statement "if (iVar1 == 1) {\n    *param_1 = *param_2;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 1)" (( "(") (binary_expression "iVar1 == 1" (identifier "iVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    *param_1 = *param_2;\n    return;\n  }" ({ "{") (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (iVar1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_wmemcpy_0043682c)();" (call_expression "(*(code *)PTR_wmemcpy_0043682c)()" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" (( "(") (pointer_expression "*(code *)PTR_wmemcpy_0043682c" (* "*") (cast_expression "(code *)PTR_wmemcpy_0043682c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wmemcpy_0043682c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wstring::_S_copy_chars(wchar_t*, wchar_t const*, wchar_t const*) */

void std::wstring::function_1(type_1 *param_1,type_1 *param_2,type_1 *param_3)

{
  int var_1;
  
  var_1 = (int)param_3 - (int)param_2 >> 2;
  if (var_1 == 1) {
    *(type_2 *)param_1 = *(type_2 *)param_2;
    return;
  }
  if (var_1 == 0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x002bb298. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(type_3 *)PTR_wmemcpy_0043682c)();
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (return_statement))))

void MASKED(undefined4 *param_1,undefined4 *param_2,int param_3)

{
  int iVar1;
  
  iVar1 = param_3 - (int)param_2 >> 2;
  if (iVar1 == 1) {
    *param_1 = *param_2;
    return;
  }
  if (iVar1 == 0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x002bb298. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_wmemcpy_0043682c)();
  return;
}

