
_Bool parse_gid(parser_table *entry,char **argv,int *arg_ptr)

{
  predicate *ppVar1;
  float fVar2;
  
  ppVar1 = insert_num(argv,arg_ptr,entry);
  if (ppVar1 != (predicate *)0x0) {
    if (((ppVar1->args).exec_vec.ctl.posix_arg_size_max == 0) &&
       ((ppVar1->args).exec_vec.ctl.posix_arg_size_min < 100)) {
      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x934);
    }
    else {
      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x95c);
    }
    ppVar1->est_success_rate = fVar2;
    return true;
  }
  *arg_ptr = *arg_ptr + -1;
  return false;
}



undefined4 FUN_00021ff8(undefined4 param_1,undefined4 param_2,int *param_3)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = FUN_00021ca4(param_2,param_3,param_1);
  if (iVar1 != 0) {
    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {
      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);
    }
    else {
      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);
    }
    *(undefined4 *)(iVar1 + 0x1c) = uVar2;
    return 1;
  }
  *param_3 = *param_3 + -1;
  return 0;
}


lui gp,0x6
addiu gp,gp,-0x4a78
addu gp,gp,t9
lw t9,-0x7f18(gp)
addiu sp,sp,-0x20
or v0,a1,zero
or a1,a2,zero
addiu t9,t9,0x1ca4
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a2,zero
or a2,a0,zero
sw ra,0x1c(sp)
bal 0x00021ca4
_or a0,v0,zero
beq v0,zero,0x00022084
_lw gp,0x10(sp)
lw v1,0x30(v0)
beq v1,zero,0x00022068
_lw v1,-0x7fc8(gp)
lwc1 f0,-0x95c(v1)
lw ra,0x1c(sp)
li v1,0x1
swc1 f0,0x1c(v0)
lw s0,0x18(sp)
or v0,v1,zero
jr ra
_addiu sp,sp,0x20
lw v1,0x34(v0)
sltiu v1,v1,0x64
beq v1,zero,0x00022048
_lw v1,-0x7fc8(gp)
lw v1,-0x7fc8(gp)
b 0x0002204c
_lwc1 f0,-0x934(v1)
lw v0,0x0(s0)
or v1,zero,zero
lw ra,0x1c(sp)
addiu v0,v0,-0x1
sw v0,0x0(s0)
or v0,v1,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 FUN_00021ff8(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00021ca4(param_2,param_3,param_1);\n  if (iVar1 != 0) {\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }\n  *param_3 = *param_3 + -1;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00021ff8(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00021ca4(param_2,param_3,param_1);\n  if (iVar1 != 0) {\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }\n  *param_3 = *param_3 + -1;\n  return 0;\n}" type_identifier (function_declarator "FUN_00021ff8(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 identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00021ca4(param_2,param_3,param_1);\n  if (iVar1 != 0) {\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }\n  *param_3 = *param_3 + -1;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_00021ca4(param_2,param_3,param_1);" (assignment_expression "iVar1 = FUN_00021ca4(param_2,param_3,param_1)" identifier = (call_expression "FUN_00021ca4(param_2,param_3,param_1)" identifier (argument_list "(param_2,param_3,param_1)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }" { (if_statement "if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }" if (parenthesized_expression "((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100))" ( (binary_expression "(*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)" (parenthesized_expression "(*(int *)(iVar1 + 0x30) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x30) == 0" (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(*(uint *)(iVar1 + 0x34) < 100)" ( (binary_expression "*(uint *)(iVar1 + 0x34) < 100" (pointer_expression "*(uint *)(iVar1 + 0x34)" * (cast_expression "(uint *)(iVar1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) < number_literal) ))) )) (compound_statement "{\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }" { (expression_statement "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);" (assignment_expression "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934)" identifier = (pointer_expression "*(undefined4 *)(PTR_s_directory_000755b8 + -0x934)" * (cast_expression "(undefined4 *)(PTR_s_directory_000755b8 + -0x934)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_directory_000755b8 + -0x934)" ( (binary_expression "PTR_s_directory_000755b8 + -0x934" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }" else (compound_statement "{\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }" { (expression_statement "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);" (assignment_expression "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c)" identifier = (pointer_expression "*(undefined4 *)(PTR_s_directory_000755b8 + -0x95c)" * (cast_expression "(undefined4 *)(PTR_s_directory_000755b8 + -0x95c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_directory_000755b8 + -0x95c)" ( (binary_expression "PTR_s_directory_000755b8 + -0x95c" identifier + number_literal) ))))) ;) }))) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" * (cast_expression "(undefined4 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*param_3 = *param_3 + -1;" (assignment_expression "*param_3 = *param_3 + -1" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + -1" (pointer_expression "*param_3" * identifier) + number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "_Bool parse_gid(parser_table *entry,char **argv,int *arg_ptr)\n\n{\n  predicate *ppVar1;\n  float fVar2;\n  \n  ppVar1 = insert_num(argv,arg_ptr,entry);\n  if (ppVar1 != (predicate *)0x0) {\n    if (((ppVar1->args).exec_vec.ctl.posix_arg_size_max == 0) &&\n       ((ppVar1->args).exec_vec.ctl.posix_arg_size_min < 100)) {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    ppVar1->est_success_rate = fVar2;\n    return true;\n  }\n  *arg_ptr = *arg_ptr + -1;\n  return false;\n}\n\n" (function_definition "_Bool parse_gid(parser_table *entry,char **argv,int *arg_ptr)\n\n{\n  predicate *ppVar1;\n  float fVar2;\n  \n  ppVar1 = insert_num(argv,arg_ptr,entry);\n  if (ppVar1 != (predicate *)0x0) {\n    if (((ppVar1->args).exec_vec.ctl.posix_arg_size_max == 0) &&\n       ((ppVar1->args).exec_vec.ctl.posix_arg_size_min < 100)) {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    ppVar1->est_success_rate = fVar2;\n    return true;\n  }\n  *arg_ptr = *arg_ptr + -1;\n  return false;\n}" type_identifier (function_declarator "parse_gid(parser_table *entry,char **argv,int *arg_ptr)" identifier (parameter_list "(parser_table *entry,char **argv,int *arg_ptr)" ( (parameter_declaration "parser_table *entry" type_identifier (pointer_declarator "*entry" * identifier)) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) , (parameter_declaration "int *arg_ptr" primitive_type (pointer_declarator "*arg_ptr" * identifier)) ))) (compound_statement "{\n  predicate *ppVar1;\n  float fVar2;\n  \n  ppVar1 = insert_num(argv,arg_ptr,entry);\n  if (ppVar1 != (predicate *)0x0) {\n    if (((ppVar1->args).exec_vec.ctl.posix_arg_size_max == 0) &&\n       ((ppVar1->args).exec_vec.ctl.posix_arg_size_min < 100)) {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    ppVar1->est_success_rate = fVar2;\n    return true;\n  }\n  *arg_ptr = *arg_ptr + -1;\n  return false;\n}" { (declaration "predicate *ppVar1;" type_identifier (pointer_declarator "*ppVar1" * identifier) ;) (declaration "float fVar2;" primitive_type identifier ;) (expression_statement "ppVar1 = insert_num(argv,arg_ptr,entry);" (assignment_expression "ppVar1 = insert_num(argv,arg_ptr,entry)" identifier = (call_expression "insert_num(argv,arg_ptr,entry)" identifier (argument_list "(argv,arg_ptr,entry)" ( identifier , identifier , identifier )))) ;) (if_statement "if (ppVar1 != (predicate *)0x0) {\n    if (((ppVar1->args).exec_vec.ctl.posix_arg_size_max == 0) &&\n       ((ppVar1->args).exec_vec.ctl.posix_arg_size_min < 100)) {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    ppVar1->est_success_rate = fVar2;\n    return true;\n  }" if (parenthesized_expression "(ppVar1 != (predicate *)0x0)" ( (binary_expression "ppVar1 != (predicate *)0x0" identifier != (cast_expression "(predicate *)0x0" ( (type_descriptor "predicate *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (((ppVar1->args).exec_vec.ctl.posix_arg_size_max == 0) &&\n       ((ppVar1->args).exec_vec.ctl.posix_arg_size_min < 100)) {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    ppVar1->est_success_rate = fVar2;\n    return true;\n  }" { (if_statement "if (((ppVar1->args).exec_vec.ctl.posix_arg_size_max == 0) &&\n       ((ppVar1->args).exec_vec.ctl.posix_arg_size_min < 100)) {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x95c);\n    }" if (parenthesized_expression "(((ppVar1->args).exec_vec.ctl.posix_arg_size_max == 0) &&\n       ((ppVar1->args).exec_vec.ctl.posix_arg_size_min < 100))" ( (binary_expression "((ppVar1->args).exec_vec.ctl.posix_arg_size_max == 0) &&\n       ((ppVar1->args).exec_vec.ctl.posix_arg_size_min < 100)" (parenthesized_expression "((ppVar1->args).exec_vec.ctl.posix_arg_size_max == 0)" ( (binary_expression "(ppVar1->args).exec_vec.ctl.posix_arg_size_max == 0" (field_expression "(ppVar1->args).exec_vec.ctl.posix_arg_size_max" (field_expression "(ppVar1->args).exec_vec.ctl" (field_expression "(ppVar1->args).exec_vec" (parenthesized_expression "(ppVar1->args)" ( (field_expression "ppVar1->args" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) == number_literal) )) && (parenthesized_expression "((ppVar1->args).exec_vec.ctl.posix_arg_size_min < 100)" ( (binary_expression "(ppVar1->args).exec_vec.ctl.posix_arg_size_min < 100" (field_expression "(ppVar1->args).exec_vec.ctl.posix_arg_size_min" (field_expression "(ppVar1->args).exec_vec.ctl" (field_expression "(ppVar1->args).exec_vec" (parenthesized_expression "(ppVar1->args)" ( (field_expression "ppVar1->args" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) < number_literal) ))) )) (compound_statement "{\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x934);\n    }" { (expression_statement "fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x934);" (assignment_expression "fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x934)" identifier = (pointer_expression "*(float *)(PTR_s_directory_000755b8 + -0x934)" * (cast_expression "(float *)(PTR_s_directory_000755b8 + -0x934)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_directory_000755b8 + -0x934)" ( (binary_expression "PTR_s_directory_000755b8 + -0x934" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x95c);\n    }" else (compound_statement "{\n      fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x95c);\n    }" { (expression_statement "fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x95c);" (assignment_expression "fVar2 = *(float *)(PTR_s_directory_000755b8 + -0x95c)" identifier = (pointer_expression "*(float *)(PTR_s_directory_000755b8 + -0x95c)" * (cast_expression "(float *)(PTR_s_directory_000755b8 + -0x95c)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_directory_000755b8 + -0x95c)" ( (binary_expression "PTR_s_directory_000755b8 + -0x95c" identifier + number_literal) ))))) ;) }))) (expression_statement "ppVar1->est_success_rate = fVar2;" (assignment_expression "ppVar1->est_success_rate = fVar2" (field_expression "ppVar1->est_success_rate" identifier -> field_identifier) = identifier) ;) (return_statement "return true;" return true ;) })) (expression_statement "*arg_ptr = *arg_ptr + -1;" (assignment_expression "*arg_ptr = *arg_ptr + -1" (pointer_expression "*arg_ptr" * identifier) = (binary_expression "*arg_ptr + -1" (pointer_expression "*arg_ptr" * identifier) + number_literal)) ;) (return_statement "return false;" return false ;) })))
(translation_unit "undefined4 FUN_00021ff8(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00021ca4(param_2,param_3,param_1);\n  if (iVar1 != 0) {\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }\n  *param_3 = *param_3 + -1;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00021ff8(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00021ca4(param_2,param_3,param_1);\n  if (iVar1 != 0) {\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }\n  *param_3 = *param_3 + -1;\n  return 0;\n}" type_identifier (function_declarator "FUN_00021ff8(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 identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00021ca4(param_2,param_3,param_1);\n  if (iVar1 != 0) {\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }\n  *param_3 = *param_3 + -1;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_00021ca4(param_2,param_3,param_1);" (assignment_expression "iVar1 = FUN_00021ca4(param_2,param_3,param_1)" identifier = (call_expression "FUN_00021ca4(param_2,param_3,param_1)" identifier (argument_list "(param_2,param_3,param_1)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }" { (if_statement "if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }" if (parenthesized_expression "((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100))" ( (binary_expression "(*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)" (parenthesized_expression "(*(int *)(iVar1 + 0x30) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x30) == 0" (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(*(uint *)(iVar1 + 0x34) < 100)" ( (binary_expression "*(uint *)(iVar1 + 0x34) < 100" (pointer_expression "*(uint *)(iVar1 + 0x34)" * (cast_expression "(uint *)(iVar1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) < number_literal) ))) )) (compound_statement "{\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }" { (expression_statement "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);" (assignment_expression "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934)" identifier = (pointer_expression "*(undefined4 *)(PTR_s_directory_000755b8 + -0x934)" * (cast_expression "(undefined4 *)(PTR_s_directory_000755b8 + -0x934)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_directory_000755b8 + -0x934)" ( (binary_expression "PTR_s_directory_000755b8 + -0x934" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }" else (compound_statement "{\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }" { (expression_statement "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);" (assignment_expression "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c)" identifier = (pointer_expression "*(undefined4 *)(PTR_s_directory_000755b8 + -0x95c)" * (cast_expression "(undefined4 *)(PTR_s_directory_000755b8 + -0x95c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_directory_000755b8 + -0x95c)" ( (binary_expression "PTR_s_directory_000755b8 + -0x95c" identifier + number_literal) ))))) ;) }))) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" * (cast_expression "(undefined4 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*param_3 = *param_3 + -1;" (assignment_expression "*param_3 = *param_3 + -1" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + -1" (pointer_expression "*param_3" * identifier) + number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00021ff8(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00021ca4(param_2,param_3,param_1);\n  if (iVar1 != 0) {\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }\n  *param_3 = *param_3 + -1;\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00021ff8(undefined4 param_1,undefined4 param_2,int *param_3)" (identifier "FUN_00021ff8") (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00021ca4(param_2,param_3,param_1);\n  if (iVar1 != 0) {\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }\n  *param_3 = *param_3 + -1;\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = FUN_00021ca4(param_2,param_3,param_1);" (assignment_expression "iVar1 = FUN_00021ca4(param_2,param_3,param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_00021ca4(param_2,param_3,param_1)" (identifier "FUN_00021ca4") (argument_list "(param_2,param_3,param_1)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    return 1;\n  }" ({ "{") (if_statement "if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }\n    else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }" (if "if") (parenthesized_expression "((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100))" (( "(") (binary_expression "(*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)" (parenthesized_expression "(*(int *)(iVar1 + 0x30) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x30) == 0" (pointer_expression "*(int *)(iVar1 + 0x30)" (* "*") (cast_expression "(int *)(iVar1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")")))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(uint *)(iVar1 + 0x34) < 100)" (( "(") (binary_expression "*(uint *)(iVar1 + 0x34) < 100" (pointer_expression "*(uint *)(iVar1 + 0x34)" (* "*") (cast_expression "(uint *)(iVar1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x34)" (( "(") (binary_expression "iVar1 + 0x34" (identifier "iVar1") (+ "+") (number_literal "0x34")) () ")")))) (< "<") (number_literal "100")) () ")"))) () ")")) (compound_statement "{\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);\n    }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);" (assignment_expression "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(PTR_s_directory_000755b8 + -0x934)" (* "*") (cast_expression "(undefined4 *)(PTR_s_directory_000755b8 + -0x934)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_directory_000755b8 + -0x934)" (( "(") (binary_expression "PTR_s_directory_000755b8 + -0x934" (identifier "PTR_s_directory_000755b8") (+ "+") (number_literal "-0x934")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }" (else "else") (compound_statement "{\n      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);\n    }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);" (assignment_expression "uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(PTR_s_directory_000755b8 + -0x95c)" (* "*") (cast_expression "(undefined4 *)(PTR_s_directory_000755b8 + -0x95c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_directory_000755b8 + -0x95c)" (( "(") (binary_expression "PTR_s_directory_000755b8 + -0x95c" (identifier "PTR_s_directory_000755b8") (+ "+") (number_literal "-0x95c")) () ")"))))) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "*param_3 = *param_3 + -1;" (assignment_expression "*param_3 = *param_3 + -1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "*param_3 + -1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "-1"))) (; ";")) (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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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: (number_literal))) right: (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))))) consequence: (compound_statement (expression_statement (assignment_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)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_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)))))))))) (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: (identifier))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (return_statement (number_literal)))))

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

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = FUN_00021ca4(param_2,param_3,param_1);
  if (iVar1 != 0) {
    if ((*(int *)(iVar1 + 0x30) == 0) && (*(uint *)(iVar1 + 0x34) < 100)) {
      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x934);
    }
    else {
      uVar2 = *(undefined4 *)(PTR_s_directory_000755b8 + -0x95c);
    }
    *(undefined4 *)(iVar1 + 0x1c) = uVar2;
    return 1;
  }
  *param_3 = *param_3 + -1;
  return 0;
}

