
/* std::__codecvt_utf16_base<char16_t>::do_max_length() const */

undefined4 __thiscall
std::__codecvt_utf16_base<char16_t>::do_max_length(__codecvt_utf16_base<char16_t> *this)

{
  undefined4 uVar1;
  
  uVar1 = 4;
  if ((*(uint *)(this + 0xc) & 4) == 0) {
    uVar1 = 2;
  }
  return uVar1;
}



undefined4 FUN_003d740c(int param_1)

{
  undefined4 uVar1;
  
  uVar1 = 4;
  if ((*(uint *)(param_1 + 0xc) & 4) == 0) {
    uVar1 = 2;
  }
  return uVar1;
}


lw v1,0xc(a0)
li v0,0x4
li a0,0x2
andi v1,v1,0x4
jr ra
_movz v0,a0,v1
(translation_unit "undefined4 FUN_003d740c(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 4;\n  if ((*(uint *)(param_1 + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_003d740c(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 4;\n  if ((*(uint *)(param_1 + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_003d740c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 4;\n  if ((*(uint *)(param_1 + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 4;" (assignment_expression "uVar1 = 4" identifier = number_literal) ;) (if_statement "if ((*(uint *)(param_1 + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0xc) & 4) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0xc) & 4) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0xc) & 4)" ( (binary_expression "*(uint *)(param_1 + 0xc) & 4" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = 2;\n  }" { (expression_statement "uVar1 = 2;" (assignment_expression "uVar1 = 2" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* std::__codecvt_utf16_base<char16_t>::do_max_length() const */\n\nundefined4 __thiscall\nstd::__codecvt_utf16_base<char16_t>::do_max_length(__codecvt_utf16_base<char16_t> *this)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 4;\n  if ((*(uint *)(this + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }\n  return uVar1;\n}\n\n" comment (function_definition "undefined4 __thiscall\nstd::__codecvt_utf16_base<char16_t>::do_max_length(__codecvt_utf16_base<char16_t> *this)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 4;\n  if ((*(uint *)(this + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }\n  return uVar1;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__codecvt_utf16_base<char16_t>::" identifier : : identifier < primitive_type > : :) (function_declarator "do_max_length(__codecvt_utf16_base<char16_t> *this)" identifier (parameter_list "(__codecvt_utf16_base<char16_t> *this)" ( (parameter_declaration "__codecvt_utf16_base<char16_t> *this" type_identifier (ERROR "<char16_t>" < primitive_type >) (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 4;\n  if ((*(uint *)(this + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 4;" (assignment_expression "uVar1 = 4" identifier = number_literal) ;) (if_statement "if ((*(uint *)(this + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }" if (parenthesized_expression "((*(uint *)(this + 0xc) & 4) == 0)" ( (binary_expression "(*(uint *)(this + 0xc) & 4) == 0" (parenthesized_expression "(*(uint *)(this + 0xc) & 4)" ( (binary_expression "*(uint *)(this + 0xc) & 4" (pointer_expression "*(uint *)(this + 0xc)" * (cast_expression "(uint *)(this + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = 2;\n  }" { (expression_statement "uVar1 = 2;" (assignment_expression "uVar1 = 2" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_003d740c(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 4;\n  if ((*(uint *)(param_1 + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_003d740c(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 4;\n  if ((*(uint *)(param_1 + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_003d740c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 4;\n  if ((*(uint *)(param_1 + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 4;" (assignment_expression "uVar1 = 4" identifier = number_literal) ;) (if_statement "if ((*(uint *)(param_1 + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0xc) & 4) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0xc) & 4) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0xc) & 4)" ( (binary_expression "*(uint *)(param_1 + 0xc) & 4" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = 2;\n  }" { (expression_statement "uVar1 = 2;" (assignment_expression "uVar1 = 2" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_003d740c(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 4;\n  if ((*(uint *)(param_1 + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_003d740c(int param_1)" (identifier "FUN_003d740c") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 4;\n  if ((*(uint *)(param_1 + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = 4;" (assignment_expression "uVar1 = 4" (identifier "uVar1") (= "=") (number_literal "4")) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0xc) & 4) == 0) {\n    uVar1 = 2;\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0xc) & 4) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0xc) & 4) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0xc) & 4)" (( "(") (binary_expression "*(uint *)(param_1 + 0xc) & 4" (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = 2;\n  }" ({ "{") (expression_statement "uVar1 = 2;" (assignment_expression "uVar1 = 2" (identifier "uVar1") (= "=") (number_literal "2")) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* std::__codecvt_utf16_base<char16_t>::do_max_length() const */

type_1 __thiscall
std::type_2<char16_t>::function_1(type_2<char16_t> *var_1)

{
  type_1 uVar1;
  
  uVar1 = 4;
  if ((*(type_3 *)(var_1 + 0xc) & 4) == 0) {
    uVar1 = 2;
  }
  return uVar1;
}


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

undefined4 MASKED(int param_1)

{
  undefined4 uVar1;
  
  uVar1 = 4;
  if ((*(uint *)(param_1 + 0xc) & 4) == 0) {
    uVar1 = 2;
  }
  return uVar1;
}

