
/* std::(anonymous namespace)::ucs4_out(std::(anonymous namespace)::range<char32_t const, true>&,
   std::(anonymous namespace)::range<char, true>&, unsigned long, std::codecvt_mode) [clone
   .part.19] */

undefined4 std::(anonymous_namespace)::ucs4_out(int *param_1,range *param_2,wchar32 param_3)

{
  int iVar1;
  int iVar2;
  wchar32 wVar3;
  
  if ((wchar32 *)param_1[1] == (wchar32 *)*param_1) {
    return 0;
  }
  wVar3 = *(wchar32 *)*param_1;
  if ((uint)param_3 < (uint)wVar3) {
    return 2;
  }
  while( true ) {
    iVar1 = write_utf8_code_point(param_2,wVar3);
    if (iVar1 == 0) {
      return 1;
    }
    iVar2 = *param_1;
    iVar1 = iVar2 + 4;
    *param_1 = iVar1;
    if (param_1[1] == iVar1) break;
    wVar3 = *(wchar32 *)(iVar2 + 4);
    if ((uint)param_3 < (uint)wVar3) {
      return 2;
    }
  }
  return 0;
}



undefined4 FUN_003d7e58(int *param_1,undefined4 param_2,uint param_3)

{
  int iVar1;
  int iVar2;
  
  if ((uint *)param_1[1] == (uint *)*param_1) {
    return 0;
  }
  if (param_3 < *(uint *)*param_1) {
    return 2;
  }
  while( true ) {
    iVar1 = FUN_003d7a3c(param_2);
    if (iVar1 == 0) {
      return 1;
    }
    iVar2 = *param_1;
    iVar1 = iVar2 + 4;
    *param_1 = iVar1;
    if (param_1[1] == iVar1) break;
    if (param_3 < *(uint *)(iVar2 + 4)) {
      return 2;
    }
  }
  return 0;
}


lui gp,0xf
addiu gp,gp,0x13e8
addu gp,gp,t9
lw v0,0x0(a0)
lw v1,0x4(a0)
beq v1,v0,0x003d7f04
_or t2,a1,zero
lw a1,0x0(v0)
sltu v0,a2,a1
bne v0,zero,0x003d7efc
_lw t9,-0x5ef4(gp)
addiu sp,sp,-0x20
or t1,a2,zero
or t0,a0,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
b 0x003d7ec4
_addiu t9,t9,0x7a3c
lw v1,0x0(t0)
lw a0,0x4(t0)
addiu v0,v1,0x4
beq a0,v0,0x003d7ee0
_sw v0,0x0(t0)
lw a1,0x4(v1)
sltu v0,t1,a1
bne v0,zero,0x003d7ef0
_lw ra,0x1c(sp)
bal 0x003d7a3c
_or a0,t2,zero
bne v0,zero,0x003d7ea0
_lw ra,0x1c(sp)
li v0,0x1
jr ra
_addiu sp,sp,0x20
lw ra,0x1c(sp)
or v0,zero,zero
jr ra
_addiu sp,sp,0x20
li v0,0x2
jr ra
_addiu sp,sp,0x20
jr ra
_li v0,0x2
jr ra
_or v0,zero,zero
(translation_unit "undefined4 FUN_003d7e58(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((uint *)param_1[1] == (uint *)*param_1) {\n    return 0;\n  }\n  if (param_3 < *(uint *)*param_1) {\n    return 2;\n  }\n  while( true ) {\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_003d7e58(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((uint *)param_1[1] == (uint *)*param_1) {\n    return 0;\n  }\n  if (param_3 < *(uint *)*param_1) {\n    return 2;\n  }\n  while( true ) {\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_003d7e58(int *param_1,undefined4 param_2,uint param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if ((uint *)param_1[1] == (uint *)*param_1) {\n    return 0;\n  }\n  if (param_3 < *(uint *)*param_1) {\n    return 2;\n  }\n  while( true ) {\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((uint *)param_1[1] == (uint *)*param_1) {\n    return 0;\n  }" if (parenthesized_expression "((uint *)param_1[1] == (uint *)*param_1)" ( (binary_expression "(uint *)param_1[1] == (uint *)*param_1" (cast_expression "(uint *)param_1[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 < *(uint *)*param_1) {\n    return 2;\n  }" if (parenthesized_expression "(param_3 < *(uint *)*param_1)" ( (binary_expression "param_3 < *(uint *)*param_1" identifier < (pointer_expression "*(uint *)*param_1" * (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)))) )) (compound_statement "{\n    return 2;\n  }" { (return_statement "return 2;" return number_literal ;) })) (while_statement "while( true ) {\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }" { (expression_statement "iVar1 = FUN_003d7a3c(param_2);" (assignment_expression "iVar1 = FUN_003d7a3c(param_2)" identifier = (call_expression "FUN_003d7a3c(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = iVar2 + 4;" (assignment_expression "iVar1 = iVar2 + 4" identifier = (binary_expression "iVar2 + 4" identifier + number_literal)) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (param_1[1] == iVar1) break;" if (parenthesized_expression "(param_1[1] == iVar1)" ( (binary_expression "param_1[1] == iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) == identifier) )) (break_statement "break;" break ;)) (if_statement "if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }" if (parenthesized_expression "(param_3 < *(uint *)(iVar2 + 4))" ( (binary_expression "param_3 < *(uint *)(iVar2 + 4)" identifier < (pointer_expression "*(uint *)(iVar2 + 4)" * (cast_expression "(uint *)(iVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n      return 2;\n    }" { (return_statement "return 2;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* std::(anonymous namespace)::ucs4_out(std::(anonymous namespace)::range<char32_t const, true>&,\n   std::(anonymous namespace)::range<char, true>&, unsigned long, std::codecvt_mode) [clone\n   .part.19] */\n\nundefined4 std::(anonymous_namespace)::ucs4_out(int *param_1,range *param_2,wchar32 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  wchar32 wVar3;\n  \n  if ((wchar32 *)param_1[1] == (wchar32 *)*param_1) {\n    return 0;\n  }\n  wVar3 = *(wchar32 *)*param_1;\n  if ((uint)param_3 < (uint)wVar3) {\n    return 2;\n  }\n  while( true ) {\n    iVar1 = write_utf8_code_point(param_2,wVar3);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    wVar3 = *(wchar32 *)(iVar2 + 4);\n    if ((uint)param_3 < (uint)wVar3) {\n      return 2;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 std::(anonymous_namespace)::ucs4_out(int *param_1,range *param_2,wchar32 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  wchar32 wVar3;\n  \n  if ((wchar32 *)param_1[1] == (wchar32 *)*param_1) {\n    return 0;\n  }\n  wVar3 = *(wchar32 *)*param_1;\n  if ((uint)param_3 < (uint)wVar3) {\n    return 2;\n  }\n  while( true ) {\n    iVar1 = write_utf8_code_point(param_2,wVar3);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    wVar3 = *(wchar32 *)(iVar2 + 4);\n    if ((uint)param_3 < (uint)wVar3) {\n      return 2;\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "std::(anonymous_namespace)::" identifier : : ( identifier ) : :) (function_declarator "ucs4_out(int *param_1,range *param_2,wchar32 param_3)" identifier (parameter_list "(int *param_1,range *param_2,wchar32 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "range *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "wchar32 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  wchar32 wVar3;\n  \n  if ((wchar32 *)param_1[1] == (wchar32 *)*param_1) {\n    return 0;\n  }\n  wVar3 = *(wchar32 *)*param_1;\n  if ((uint)param_3 < (uint)wVar3) {\n    return 2;\n  }\n  while( true ) {\n    iVar1 = write_utf8_code_point(param_2,wVar3);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    wVar3 = *(wchar32 *)(iVar2 + 4);\n    if ((uint)param_3 < (uint)wVar3) {\n      return 2;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "wchar32 wVar3;" type_identifier identifier ;) (if_statement "if ((wchar32 *)param_1[1] == (wchar32 *)*param_1) {\n    return 0;\n  }" if (parenthesized_expression "((wchar32 *)param_1[1] == (wchar32 *)*param_1)" ( (binary_expression "(wchar32 *)param_1[1] == (wchar32 *)*param_1" (cast_expression "(wchar32 *)param_1[1]" ( (type_descriptor "wchar32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (cast_expression "(wchar32 *)*param_1" ( (type_descriptor "wchar32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "wVar3 = *(wchar32 *)*param_1;" (assignment_expression "wVar3 = *(wchar32 *)*param_1" identifier = (pointer_expression "*(wchar32 *)*param_1" * (cast_expression "(wchar32 *)*param_1" ( (type_descriptor "wchar32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)))) ;) (if_statement "if ((uint)param_3 < (uint)wVar3) {\n    return 2;\n  }" if (parenthesized_expression "((uint)param_3 < (uint)wVar3)" ( (binary_expression "(uint)param_3 < (uint)wVar3" (cast_expression "(uint)param_3" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)wVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n    return 2;\n  }" { (return_statement "return 2;" return number_literal ;) })) (while_statement "while( true ) {\n    iVar1 = write_utf8_code_point(param_2,wVar3);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    wVar3 = *(wchar32 *)(iVar2 + 4);\n    if ((uint)param_3 < (uint)wVar3) {\n      return 2;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = write_utf8_code_point(param_2,wVar3);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    wVar3 = *(wchar32 *)(iVar2 + 4);\n    if ((uint)param_3 < (uint)wVar3) {\n      return 2;\n    }\n  }" { (expression_statement "iVar1 = write_utf8_code_point(param_2,wVar3);" (assignment_expression "iVar1 = write_utf8_code_point(param_2,wVar3)" identifier = (call_expression "write_utf8_code_point(param_2,wVar3)" identifier (argument_list "(param_2,wVar3)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = iVar2 + 4;" (assignment_expression "iVar1 = iVar2 + 4" identifier = (binary_expression "iVar2 + 4" identifier + number_literal)) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (param_1[1] == iVar1) break;" if (parenthesized_expression "(param_1[1] == iVar1)" ( (binary_expression "param_1[1] == iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) == identifier) )) (break_statement "break;" break ;)) (expression_statement "wVar3 = *(wchar32 *)(iVar2 + 4);" (assignment_expression "wVar3 = *(wchar32 *)(iVar2 + 4)" identifier = (pointer_expression "*(wchar32 *)(iVar2 + 4)" * (cast_expression "(wchar32 *)(iVar2 + 4)" ( (type_descriptor "wchar32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((uint)param_3 < (uint)wVar3) {\n      return 2;\n    }" if (parenthesized_expression "((uint)param_3 < (uint)wVar3)" ( (binary_expression "(uint)param_3 < (uint)wVar3" (cast_expression "(uint)param_3" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)wVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n      return 2;\n    }" { (return_statement "return 2;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_003d7e58(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((uint *)param_1[1] == (uint *)*param_1) {\n    return 0;\n  }\n  if (param_3 < *(uint *)*param_1) {\n    return 2;\n  }\n  while( true ) {\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_003d7e58(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((uint *)param_1[1] == (uint *)*param_1) {\n    return 0;\n  }\n  if (param_3 < *(uint *)*param_1) {\n    return 2;\n  }\n  while( true ) {\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_003d7e58(int *param_1,undefined4 param_2,uint param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if ((uint *)param_1[1] == (uint *)*param_1) {\n    return 0;\n  }\n  if (param_3 < *(uint *)*param_1) {\n    return 2;\n  }\n  while( true ) {\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((uint *)param_1[1] == (uint *)*param_1) {\n    return 0;\n  }" if (parenthesized_expression "((uint *)param_1[1] == (uint *)*param_1)" ( (binary_expression "(uint *)param_1[1] == (uint *)*param_1" (cast_expression "(uint *)param_1[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 < *(uint *)*param_1) {\n    return 2;\n  }" if (parenthesized_expression "(param_3 < *(uint *)*param_1)" ( (binary_expression "param_3 < *(uint *)*param_1" identifier < (pointer_expression "*(uint *)*param_1" * (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)))) )) (compound_statement "{\n    return 2;\n  }" { (return_statement "return 2;" return number_literal ;) })) (while_statement "while( true ) {\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }" { (expression_statement "iVar1 = FUN_003d7a3c(param_2);" (assignment_expression "iVar1 = FUN_003d7a3c(param_2)" identifier = (call_expression "FUN_003d7a3c(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = iVar2 + 4;" (assignment_expression "iVar1 = iVar2 + 4" identifier = (binary_expression "iVar2 + 4" identifier + number_literal)) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (param_1[1] == iVar1) break;" if (parenthesized_expression "(param_1[1] == iVar1)" ( (binary_expression "param_1[1] == iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) == identifier) )) (break_statement "break;" break ;)) (if_statement "if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }" if (parenthesized_expression "(param_3 < *(uint *)(iVar2 + 4))" ( (binary_expression "param_3 < *(uint *)(iVar2 + 4)" identifier < (pointer_expression "*(uint *)(iVar2 + 4)" * (cast_expression "(uint *)(iVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n      return 2;\n    }" { (return_statement "return 2;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) )) (compound_statement { (return_statement return LIT ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return LIT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_003d7e58(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((uint *)param_1[1] == (uint *)*param_1) {\n    return 0;\n  }\n  if (param_3 < *(uint *)*param_1) {\n    return 2;\n  }\n  while( true ) {\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_003d7e58(int *param_1,undefined4 param_2,uint param_3)" (identifier "FUN_003d7e58") (parameter_list "(int *param_1,undefined4 param_2,uint param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if ((uint *)param_1[1] == (uint *)*param_1) {\n    return 0;\n  }\n  if (param_3 < *(uint *)*param_1) {\n    return 2;\n  }\n  while( true ) {\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if ((uint *)param_1[1] == (uint *)*param_1) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((uint *)param_1[1] == (uint *)*param_1)" (( "(") (binary_expression "(uint *)param_1[1] == (uint *)*param_1" (cast_expression "(uint *)param_1[1]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (== "==") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_3 < *(uint *)*param_1) {\n    return 2;\n  }" (if "if") (parenthesized_expression "(param_3 < *(uint *)*param_1)" (( "(") (binary_expression "param_3 < *(uint *)*param_1" (identifier "param_3") (< "<") (pointer_expression "*(uint *)*param_1" (* "*") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))))) () ")")) (compound_statement "{\n    return 2;\n  }" ({ "{") (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (while_statement "while( true ) {\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar1 = FUN_003d7a3c(param_2);\n    if (iVar1 == 0) {\n      return 1;\n    }\n    iVar2 = *param_1;\n    iVar1 = iVar2 + 4;\n    *param_1 = iVar1;\n    if (param_1[1] == iVar1) break;\n    if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_003d7a3c(param_2);" (assignment_expression "iVar1 = FUN_003d7a3c(param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_003d7a3c(param_2)" (identifier "FUN_003d7a3c") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar1 = iVar2 + 4;" (assignment_expression "iVar1 = iVar2 + 4" (identifier "iVar1") (= "=") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (param_1[1] == iVar1) break;" (if "if") (parenthesized_expression "(param_1[1] == iVar1)" (( "(") (binary_expression "param_1[1] == iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "iVar1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (param_3 < *(uint *)(iVar2 + 4)) {\n      return 2;\n    }" (if "if") (parenthesized_expression "(param_3 < *(uint *)(iVar2 + 4))" (( "(") (binary_expression "param_3 < *(uint *)(iVar2 + 4)" (identifier "param_3") (< "<") (pointer_expression "*(uint *)(iVar2 + 4)" (* "*") (cast_expression "(uint *)(iVar2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n      return 2;\n    }" ({ "{") (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) consequence: (compound_statement (return_statement (number_literal)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))) consequence: (compound_statement (return_statement (number_literal)))))) (return_statement (number_literal)))))

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

{
  int iVar1;
  int iVar2;
  
  if ((uint *)param_1[1] == (uint *)*param_1) {
    return 0;
  }
  if (param_3 < *(uint *)*param_1) {
    return 2;
  }
  while( true ) {
    iVar1 = FUN_003d7a3c(param_2);
    if (iVar1 == 0) {
      return 1;
    }
    iVar2 = *param_1;
    iVar1 = iVar2 + 4;
    *param_1 = iVar1;
    if (param_1[1] == iVar1) break;
    if (param_3 < *(uint *)(iVar2 + 4)) {
      return 2;
    }
  }
  return 0;
}

