
void getoptsreset(char *value)

{
  uint uVar1;
  int iVar2;
  byte *pbVar3;
  int iVar4;
  
  iVar4 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;
  *(undefined4 *)(iVar4 + 4) = 1;
  uVar1 = (uint)(byte)*value;
  pbVar3 = (byte *)value;
  do {
    if (9 < uVar1 - 0x30) {
      *(undefined4 *)(iVar4 + 8) = 0xffffffff;
      return;
    }
    pbVar3 = pbVar3 + 1;
    uVar1 = (uint)*pbVar3;
  } while (uVar1 != 0);
  iVar2 = number(value);
  if (iVar2 == 0) {
    *(undefined4 *)(iVar4 + 4) = 1;
  }
  else {
    *(int *)(iVar4 + 4) = iVar2;
  }
  *(undefined4 *)(iVar4 + 8) = 0xffffffff;
  return;
}



void FUN_0006f4fc(byte *param_1)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;
  *(undefined4 *)(iVar3 + 4) = 1;
  uVar1 = (uint)*param_1;
  do {
    if (9 < uVar1 - 0x30) {
      *(undefined4 *)(iVar3 + 8) = 0xffffffff;
      return;
    }
    param_1 = param_1 + 1;
    uVar1 = (uint)*param_1;
  } while (uVar1 != 0);
  iVar2 = FUN_0006f494();
  if (iVar2 == 0) {
    *(undefined4 *)(iVar3 + 4) = 1;
  }
  else {
    *(int *)(iVar3 + 4) = iVar2;
  }
  *(undefined4 *)(iVar3 + 8) = 0xffffffff;
  return;
}


lui gp,0xc
addiu gp,gp,0x2c54
addu gp,gp,t9
lw v0,-0x7900(gp)
addiu sp,sp,-0x20
or v1,a0,zero
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw s0,0x0(v0)
li v0,0x1
sw v0,0x4(s0)
lbu v0,0x0(a0)
addiu v0,v0,-0x30
sltiu v0,v0,0xa
bne v0,zero,0x0006f554
_lw ra,0x1c(sp)
li v0,-0x1
sw v0,0x8(s0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
addiu v1,v1,0x1
lbu v0,0x0(v1)
bne v0,zero,0x0006f530
_lw t9,-0x793c(gp)
addiu t9,t9,-0xb6c
bal 0x0006f494
_nop
beq v0,zero,0x0006f594
_nop
sw v0,0x4(s0)
lw ra,0x1c(sp)
li v0,-0x1
sw v0,0x8(s0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
li v0,0x1
b 0x0006f57c
_sw v0,0x4(s0)
(translation_unit "void FUN_0006f4fc(byte *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;\n  *(undefined4 *)(iVar3 + 4) = 1;\n  uVar1 = (uint)*param_1;\n  do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  } while (uVar1 != 0);\n  iVar2 = FUN_0006f494();\n  if (iVar2 == 0) {\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }\n  *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n  return;\n}\n\n" (function_definition "void FUN_0006f4fc(byte *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;\n  *(undefined4 *)(iVar3 + 4) = 1;\n  uVar1 = (uint)*param_1;\n  do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  } while (uVar1 != 0);\n  iVar2 = FUN_0006f494();\n  if (iVar2 == 0) {\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }\n  *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n  return;\n}" primitive_type (function_declarator "FUN_0006f4fc(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;\n  *(undefined4 *)(iVar3 + 4) = 1;\n  uVar1 = (uint)*param_1;\n  do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  } while (uVar1 != 0);\n  iVar2 = FUN_0006f494();\n  if (iVar2 == 0) {\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }\n  *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;" (assignment_expression "iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850" identifier = (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_0012a850" * (cast_expression "(int *)PTR_ash_ptr_to_globals_var_0012a850" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(iVar3 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (do_statement "do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  } while (uVar1 != 0);" do (compound_statement "{\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  }" { (if_statement "if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }" if (parenthesized_expression "(9 < uVar1 - 0x30)" ( (binary_expression "9 < uVar1 - 0x30" number_literal < (binary_expression "uVar1 - 0x30" identifier - number_literal)) )) (compound_statement "{\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }" { (expression_statement "*(undefined4 *)(iVar3 + 8) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar3 + 8)" * (cast_expression "(undefined4 *)(iVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) while (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) ;) (expression_statement "iVar2 = FUN_0006f494();" (assignment_expression "iVar2 = FUN_0006f494()" identifier = (call_expression "FUN_0006f494()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }" { (expression_statement "*(undefined4 *)(iVar3 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }" else (compound_statement "{\n    *(int *)(iVar3 + 4) = iVar2;\n  }" { (expression_statement "*(int *)(iVar3 + 4) = iVar2;" (assignment_expression "*(int *)(iVar3 + 4) = iVar2" (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*(undefined4 *)(iVar3 + 8) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar3 + 8)" * (cast_expression "(undefined4 *)(iVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void getoptsreset(char *value)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  \n  iVar4 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;\n  *(undefined4 *)(iVar4 + 4) = 1;\n  uVar1 = (uint)(byte)*value;\n  pbVar3 = (byte *)value;\n  do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar4 + 8) = 0xffffffff;\n      return;\n    }\n    pbVar3 = pbVar3 + 1;\n    uVar1 = (uint)*pbVar3;\n  } while (uVar1 != 0);\n  iVar2 = number(value);\n  if (iVar2 == 0) {\n    *(undefined4 *)(iVar4 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar4 + 4) = iVar2;\n  }\n  *(undefined4 *)(iVar4 + 8) = 0xffffffff;\n  return;\n}\n\n" (function_definition "void getoptsreset(char *value)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  \n  iVar4 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;\n  *(undefined4 *)(iVar4 + 4) = 1;\n  uVar1 = (uint)(byte)*value;\n  pbVar3 = (byte *)value;\n  do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar4 + 8) = 0xffffffff;\n      return;\n    }\n    pbVar3 = pbVar3 + 1;\n    uVar1 = (uint)*pbVar3;\n  } while (uVar1 != 0);\n  iVar2 = number(value);\n  if (iVar2 == 0) {\n    *(undefined4 *)(iVar4 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar4 + 4) = iVar2;\n  }\n  *(undefined4 *)(iVar4 + 8) = 0xffffffff;\n  return;\n}" primitive_type (function_declarator "getoptsreset(char *value)" identifier (parameter_list "(char *value)" ( (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  \n  iVar4 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;\n  *(undefined4 *)(iVar4 + 4) = 1;\n  uVar1 = (uint)(byte)*value;\n  pbVar3 = (byte *)value;\n  do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar4 + 8) = 0xffffffff;\n      return;\n    }\n    pbVar3 = pbVar3 + 1;\n    uVar1 = (uint)*pbVar3;\n  } while (uVar1 != 0);\n  iVar2 = number(value);\n  if (iVar2 == 0) {\n    *(undefined4 *)(iVar4 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar4 + 4) = iVar2;\n  }\n  *(undefined4 *)(iVar4 + 8) = 0xffffffff;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar4 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;" (assignment_expression "iVar4 = *(int *)PTR_ash_ptr_to_globals_var_0012a850" identifier = (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_0012a850" * (cast_expression "(int *)PTR_ash_ptr_to_globals_var_0012a850" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(iVar4 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = (uint)(byte)*value;" (assignment_expression "uVar1 = (uint)(byte)*value" identifier = (binary_expression "(uint)(byte)*value" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier)) ;) (expression_statement "pbVar3 = (byte *)value;" (assignment_expression "pbVar3 = (byte *)value" identifier = (cast_expression "(byte *)value" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar4 + 8) = 0xffffffff;\n      return;\n    }\n    pbVar3 = pbVar3 + 1;\n    uVar1 = (uint)*pbVar3;\n  } while (uVar1 != 0);" do (compound_statement "{\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar4 + 8) = 0xffffffff;\n      return;\n    }\n    pbVar3 = pbVar3 + 1;\n    uVar1 = (uint)*pbVar3;\n  }" { (if_statement "if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar4 + 8) = 0xffffffff;\n      return;\n    }" if (parenthesized_expression "(9 < uVar1 - 0x30)" ( (binary_expression "9 < uVar1 - 0x30" number_literal < (binary_expression "uVar1 - 0x30" identifier - number_literal)) )) (compound_statement "{\n      *(undefined4 *)(iVar4 + 8) = 0xffffffff;\n      return;\n    }" { (expression_statement "*(undefined4 *)(iVar4 + 8) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar4 + 8) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = (uint)*pbVar3;" (assignment_expression "uVar1 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) while (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) ;) (expression_statement "iVar2 = number(value);" (assignment_expression "iVar2 = number(value)" identifier = (call_expression "number(value)" identifier (argument_list "(value)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    *(undefined4 *)(iVar4 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar4 + 4) = iVar2;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar4 + 4) = 1;\n  }" { (expression_statement "*(undefined4 *)(iVar4 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    *(int *)(iVar4 + 4) = iVar2;\n  }" else (compound_statement "{\n    *(int *)(iVar4 + 4) = iVar2;\n  }" { (expression_statement "*(int *)(iVar4 + 4) = iVar2;" (assignment_expression "*(int *)(iVar4 + 4) = iVar2" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*(undefined4 *)(iVar4 + 8) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar4 + 8) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0006f4fc(byte *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;\n  *(undefined4 *)(iVar3 + 4) = 1;\n  uVar1 = (uint)*param_1;\n  do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  } while (uVar1 != 0);\n  iVar2 = FUN_0006f494();\n  if (iVar2 == 0) {\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }\n  *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n  return;\n}\n\n" (function_definition "void FUN_0006f4fc(byte *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;\n  *(undefined4 *)(iVar3 + 4) = 1;\n  uVar1 = (uint)*param_1;\n  do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  } while (uVar1 != 0);\n  iVar2 = FUN_0006f494();\n  if (iVar2 == 0) {\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }\n  *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n  return;\n}" primitive_type (function_declarator "FUN_0006f4fc(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;\n  *(undefined4 *)(iVar3 + 4) = 1;\n  uVar1 = (uint)*param_1;\n  do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  } while (uVar1 != 0);\n  iVar2 = FUN_0006f494();\n  if (iVar2 == 0) {\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }\n  *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;" (assignment_expression "iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850" identifier = (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_0012a850" * (cast_expression "(int *)PTR_ash_ptr_to_globals_var_0012a850" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(iVar3 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (do_statement "do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  } while (uVar1 != 0);" do (compound_statement "{\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  }" { (if_statement "if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }" if (parenthesized_expression "(9 < uVar1 - 0x30)" ( (binary_expression "9 < uVar1 - 0x30" number_literal < (binary_expression "uVar1 - 0x30" identifier - number_literal)) )) (compound_statement "{\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }" { (expression_statement "*(undefined4 *)(iVar3 + 8) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar3 + 8)" * (cast_expression "(undefined4 *)(iVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) while (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) ;) (expression_statement "iVar2 = FUN_0006f494();" (assignment_expression "iVar2 = FUN_0006f494()" identifier = (call_expression "FUN_0006f494()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }" { (expression_statement "*(undefined4 *)(iVar3 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }" else (compound_statement "{\n    *(int *)(iVar3 + 4) = iVar2;\n  }" { (expression_statement "*(int *)(iVar3 + 4) = iVar2;" (assignment_expression "*(int *)(iVar3 + 4) = iVar2" (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*(undefined4 *)(iVar3 + 8) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar3 + 8)" * (cast_expression "(undefined4 *)(iVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_0006f4fc(byte *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;\n  *(undefined4 *)(iVar3 + 4) = 1;\n  uVar1 = (uint)*param_1;\n  do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  } while (uVar1 != 0);\n  iVar2 = FUN_0006f494();\n  if (iVar2 == 0) {\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }\n  *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0006f4fc(byte *param_1)" (identifier "FUN_0006f4fc") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;\n  *(undefined4 *)(iVar3 + 4) = 1;\n  uVar1 = (uint)*param_1;\n  do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  } while (uVar1 != 0);\n  iVar2 = FUN_0006f494();\n  if (iVar2 == 0) {\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }\n  *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;" (assignment_expression "iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850" (identifier "iVar3") (= "=") (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_0012a850" (* "*") (cast_expression "(int *)PTR_ash_ptr_to_globals_var_0012a850" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ash_ptr_to_globals_var_0012a850")))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" (identifier "uVar1") (= "=") (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1"))) (; ";")) (do_statement "do {\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  } while (uVar1 != 0);" (do "do") (compound_statement "{\n    if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }\n    param_1 = param_1 + 1;\n    uVar1 = (uint)*param_1;\n  }" ({ "{") (if_statement "if (9 < uVar1 - 0x30) {\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }" (if "if") (parenthesized_expression "(9 < uVar1 - 0x30)" (( "(") (binary_expression "9 < uVar1 - 0x30" (number_literal "9") (< "<") (binary_expression "uVar1 - 0x30" (identifier "uVar1") (- "-") (number_literal "0x30"))) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar3 + 8) = 0xffffffff;\n      return;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar3 + 8) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar3 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" (identifier "uVar1") (= "=") (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar2 = FUN_0006f494();" (assignment_expression "iVar2 = FUN_0006f494()" (identifier "iVar2") (= "=") (call_expression "FUN_0006f494()" (identifier "FUN_0006f494") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }\n  else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar3 + 4) = 1;\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar3 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    *(int *)(iVar3 + 4) = iVar2;\n  }" (else "else") (compound_statement "{\n    *(int *)(iVar3 + 4) = iVar2;\n  }" ({ "{") (expression_statement "*(int *)(iVar3 + 4) = iVar2;" (assignment_expression "*(int *)(iVar3 + 4) = iVar2" (pointer_expression "*(int *)(iVar3 + 4)" (* "*") (cast_expression "(int *)(iVar3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(iVar3 + 8) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar3 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (return_statement "return;" (return "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))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_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))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_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))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (expression_statement (assignment_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))) (return_statement))))

void MASKED(byte *param_1)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *(int *)PTR_ash_ptr_to_globals_var_0012a850;
  *(undefined4 *)(iVar3 + 4) = 1;
  uVar1 = (uint)*param_1;
  do {
    if (9 < uVar1 - 0x30) {
      *(undefined4 *)(iVar3 + 8) = 0xffffffff;
      return;
    }
    param_1 = param_1 + 1;
    uVar1 = (uint)*param_1;
  } while (uVar1 != 0);
  iVar2 = FUN_0006f494();
  if (iVar2 == 0) {
    *(undefined4 *)(iVar3 + 4) = 1;
  }
  else {
    *(int *)(iVar3 + 4) = iVar2;
  }
  *(undefined4 *)(iVar3 + 8) = 0xffffffff;
  return;
}

