
int ctrl_find_path(controlbox *b,char *path,int index)

{
  int iVar1;
  controlbox *in_a3;
  controlbox *b_00;
  int iVar2;
  
  b_00 = (controlbox *)b->nctrlsets;
  if (index < 0) {
    iVar2 = ctrl_find_set(b_00,(char *)&b->ctrlsets,(int)path,in_a3);
  }
  else {
    iVar2 = index + 1;
  }
  if (iVar2 < (int)b_00) {
    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(path,b->ctrlsets[iVar2]->pathname);
    if (iVar1 != 0) {
      iVar2 = -1;
    }
  }
  else {
    iVar2 = -1;
  }
  return iVar2;
}



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

{
  int iVar1;
  
  iVar1 = *param_1;
  if (param_3 < 0) {
    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);
  }
  else {
    param_3 = param_3 + 1;
  }
  if (param_3 < iVar1) {
    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));
    if (iVar1 != 0) {
      param_3 = -1;
    }
  }
  else {
    param_3 = -1;
  }
  return param_3;
}


lui gp,0x8
addiu gp,gp,0x2724
addu gp,gp,t9
addiu sp,sp,-0x20
lw t6,0x0(a0)
or t7,a0,zero
or t8,a1,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
bltz a2,0x0002c9e0
_sw s0,0x18(sp)
addiu s0,a2,0x1
slt t6,s0,t6
beq t6,zero,0x0002ca04
_sll v1,s0,0x2
lw v0,0x8(t7)
lw t9,-0x7344(gp)
or a0,t8,zero
addu v0,v0,v1
lw v0,0x0(v0)
jalr t9
_lw a1,0x0(v0)
li v1,-0x1
movn s0,v1,v0
or v0,s0,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7d44(gp)
addiu a1,a0,0x8
or a2,t8,zero
addiu t9,t9,-0x376c
bal 0x0002c894
_or a0,t6,zero
lw gp,0x10(sp)
b 0x0002c99c
_or s0,v0,zero
b 0x0002c9cc
_li s0,-0x1
(translation_unit "int FUN_0002c96c(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_1;\n  if (param_3 < 0) {\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }\n  else {\n    param_3 = param_3 + 1;\n  }\n  if (param_3 < iVar1) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }\n  else {\n    param_3 = -1;\n  }\n  return param_3;\n}\n\n" (function_definition "int FUN_0002c96c(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_1;\n  if (param_3 < 0) {\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }\n  else {\n    param_3 = param_3 + 1;\n  }\n  if (param_3 < iVar1) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }\n  else {\n    param_3 = -1;\n  }\n  return param_3;\n}" primitive_type (function_declarator "FUN_0002c96c(int *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_1;\n  if (param_3 < 0) {\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }\n  else {\n    param_3 = param_3 + 1;\n  }\n  if (param_3 < iVar1) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }\n  else {\n    param_3 = -1;\n  }\n  return param_3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (param_3 < 0) {\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }\n  else {\n    param_3 = param_3 + 1;\n  }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }" { (expression_statement "param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);" (assignment_expression "param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2)" identifier = (call_expression "FUN_0002c894(iVar1,param_1 + 2,param_2)" identifier (argument_list "(iVar1,param_1 + 2,param_2)" ( identifier , (binary_expression "param_1 + 2" identifier + number_literal) , identifier )))) ;) }) (else_clause "else {\n    param_3 = param_3 + 1;\n  }" else (compound_statement "{\n    param_3 = param_3 + 1;\n  }" { (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) }))) (if_statement "if (param_3 < iVar1) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }\n  else {\n    param_3 = -1;\n  }" if (parenthesized_expression "(param_3 < iVar1)" ( (binary_expression "param_3 < iVar1" identifier < identifier) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4))" identifier = (call_expression "(*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4))" (parenthesized_expression "(*(code *)PTR_strcmp_000a7d4c)" ( (pointer_expression "*(code *)PTR_strcmp_000a7d4c" * (cast_expression "(code *)PTR_strcmp_000a7d4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,**(undefined4 **)(param_1[2] + param_3 * 4))" ( identifier , (pointer_expression "**(undefined4 **)(param_1[2] + param_3 * 4)" * (pointer_expression "*(undefined4 **)(param_1[2] + param_3 * 4)" * (cast_expression "(undefined4 **)(param_1[2] + param_3 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[2] + param_3 * 4)" ( (binary_expression "param_1[2] + param_3 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) )))) ;) (if_statement "if (iVar1 != 0) {\n      param_3 = -1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      param_3 = -1;\n    }" { (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) })) }) (else_clause "else {\n    param_3 = -1;\n  }" else (compound_statement "{\n    param_3 = -1;\n  }" { (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) }))) (return_statement "return param_3;" return identifier ;) })))
(translation_unit "int ctrl_find_path(controlbox *b,char *path,int index)\n\n{\n  int iVar1;\n  controlbox *in_a3;\n  controlbox *b_00;\n  int iVar2;\n  \n  b_00 = (controlbox *)b->nctrlsets;\n  if (index < 0) {\n    iVar2 = ctrl_find_set(b_00,(char *)&b->ctrlsets,(int)path,in_a3);\n  }\n  else {\n    iVar2 = index + 1;\n  }\n  if (iVar2 < (int)b_00) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(path,b->ctrlsets[iVar2]->pathname);\n    if (iVar1 != 0) {\n      iVar2 = -1;\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}\n\n" (function_definition "int ctrl_find_path(controlbox *b,char *path,int index)\n\n{\n  int iVar1;\n  controlbox *in_a3;\n  controlbox *b_00;\n  int iVar2;\n  \n  b_00 = (controlbox *)b->nctrlsets;\n  if (index < 0) {\n    iVar2 = ctrl_find_set(b_00,(char *)&b->ctrlsets,(int)path,in_a3);\n  }\n  else {\n    iVar2 = index + 1;\n  }\n  if (iVar2 < (int)b_00) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(path,b->ctrlsets[iVar2]->pathname);\n    if (iVar1 != 0) {\n      iVar2 = -1;\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "ctrl_find_path(controlbox *b,char *path,int index)" identifier (parameter_list "(controlbox *b,char *path,int index)" ( (parameter_declaration "controlbox *b" type_identifier (pointer_declarator "*b" * identifier)) , (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) , (parameter_declaration "int index" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  controlbox *in_a3;\n  controlbox *b_00;\n  int iVar2;\n  \n  b_00 = (controlbox *)b->nctrlsets;\n  if (index < 0) {\n    iVar2 = ctrl_find_set(b_00,(char *)&b->ctrlsets,(int)path,in_a3);\n  }\n  else {\n    iVar2 = index + 1;\n  }\n  if (iVar2 < (int)b_00) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(path,b->ctrlsets[iVar2]->pathname);\n    if (iVar1 != 0) {\n      iVar2 = -1;\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "controlbox *in_a3;" type_identifier (pointer_declarator "*in_a3" * identifier) ;) (declaration "controlbox *b_00;" type_identifier (pointer_declarator "*b_00" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "b_00 = (controlbox *)b->nctrlsets;" (assignment_expression "b_00 = (controlbox *)b->nctrlsets" identifier = (cast_expression "(controlbox *)b->nctrlsets" ( (type_descriptor "controlbox *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "b->nctrlsets" identifier -> field_identifier))) ;) (if_statement "if (index < 0) {\n    iVar2 = ctrl_find_set(b_00,(char *)&b->ctrlsets,(int)path,in_a3);\n  }\n  else {\n    iVar2 = index + 1;\n  }" if (parenthesized_expression "(index < 0)" ( (binary_expression "index < 0" identifier < number_literal) )) (compound_statement "{\n    iVar2 = ctrl_find_set(b_00,(char *)&b->ctrlsets,(int)path,in_a3);\n  }" { (expression_statement "iVar2 = ctrl_find_set(b_00,(char *)&b->ctrlsets,(int)path,in_a3);" (assignment_expression "iVar2 = ctrl_find_set(b_00,(char *)&b->ctrlsets,(int)path,in_a3)" identifier = (call_expression "ctrl_find_set(b_00,(char *)&b->ctrlsets,(int)path,in_a3)" identifier (argument_list "(b_00,(char *)&b->ctrlsets,(int)path,in_a3)" ( identifier , (cast_expression "(char *)&b->ctrlsets" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&b->ctrlsets" & (field_expression "b->ctrlsets" identifier -> field_identifier))) , (cast_expression "(int)path" ( (type_descriptor "int" primitive_type) ) identifier) , identifier )))) ;) }) (else_clause "else {\n    iVar2 = index + 1;\n  }" else (compound_statement "{\n    iVar2 = index + 1;\n  }" { (expression_statement "iVar2 = index + 1;" (assignment_expression "iVar2 = index + 1" identifier = (binary_expression "index + 1" identifier + number_literal)) ;) }))) (if_statement "if (iVar2 < (int)b_00) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(path,b->ctrlsets[iVar2]->pathname);\n    if (iVar1 != 0) {\n      iVar2 = -1;\n    }\n  }\n  else {\n    iVar2 = -1;\n  }" if (parenthesized_expression "(iVar2 < (int)b_00)" ( (binary_expression "iVar2 < (int)b_00" identifier < (cast_expression "(int)b_00" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(path,b->ctrlsets[iVar2]->pathname);\n    if (iVar1 != 0) {\n      iVar2 = -1;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcmp_000a7d4c)(path,b->ctrlsets[iVar2]->pathname);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_000a7d4c)(path,b->ctrlsets[iVar2]->pathname)" identifier = (call_expression "(*(code *)PTR_strcmp_000a7d4c)(path,b->ctrlsets[iVar2]->pathname)" (parenthesized_expression "(*(code *)PTR_strcmp_000a7d4c)" ( (pointer_expression "*(code *)PTR_strcmp_000a7d4c" * (cast_expression "(code *)PTR_strcmp_000a7d4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path,b->ctrlsets[iVar2]->pathname)" ( identifier , (field_expression "b->ctrlsets[iVar2]->pathname" (subscript_expression "b->ctrlsets[iVar2]" (field_expression "b->ctrlsets" identifier -> field_identifier) [ identifier ]) -> field_identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n      iVar2 = -1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = -1;\n    }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) })) }) (else_clause "else {\n    iVar2 = -1;\n  }" else (compound_statement "{\n    iVar2 = -1;\n  }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int FUN_0002c96c(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_1;\n  if (param_3 < 0) {\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }\n  else {\n    param_3 = param_3 + 1;\n  }\n  if (param_3 < iVar1) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }\n  else {\n    param_3 = -1;\n  }\n  return param_3;\n}\n\n" (function_definition "int FUN_0002c96c(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_1;\n  if (param_3 < 0) {\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }\n  else {\n    param_3 = param_3 + 1;\n  }\n  if (param_3 < iVar1) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }\n  else {\n    param_3 = -1;\n  }\n  return param_3;\n}" primitive_type (function_declarator "FUN_0002c96c(int *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_1;\n  if (param_3 < 0) {\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }\n  else {\n    param_3 = param_3 + 1;\n  }\n  if (param_3 < iVar1) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }\n  else {\n    param_3 = -1;\n  }\n  return param_3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (param_3 < 0) {\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }\n  else {\n    param_3 = param_3 + 1;\n  }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }" { (expression_statement "param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);" (assignment_expression "param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2)" identifier = (call_expression "FUN_0002c894(iVar1,param_1 + 2,param_2)" identifier (argument_list "(iVar1,param_1 + 2,param_2)" ( identifier , (binary_expression "param_1 + 2" identifier + number_literal) , identifier )))) ;) }) (else_clause "else {\n    param_3 = param_3 + 1;\n  }" else (compound_statement "{\n    param_3 = param_3 + 1;\n  }" { (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) }))) (if_statement "if (param_3 < iVar1) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }\n  else {\n    param_3 = -1;\n  }" if (parenthesized_expression "(param_3 < iVar1)" ( (binary_expression "param_3 < iVar1" identifier < identifier) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4))" identifier = (call_expression "(*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4))" (parenthesized_expression "(*(code *)PTR_strcmp_000a7d4c)" ( (pointer_expression "*(code *)PTR_strcmp_000a7d4c" * (cast_expression "(code *)PTR_strcmp_000a7d4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,**(undefined4 **)(param_1[2] + param_3 * 4))" ( identifier , (pointer_expression "**(undefined4 **)(param_1[2] + param_3 * 4)" * (pointer_expression "*(undefined4 **)(param_1[2] + param_3 * 4)" * (cast_expression "(undefined4 **)(param_1[2] + param_3 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[2] + param_3 * 4)" ( (binary_expression "param_1[2] + param_3 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) )))) ;) (if_statement "if (iVar1 != 0) {\n      param_3 = -1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      param_3 = -1;\n    }" { (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) })) }) (else_clause "else {\n    param_3 = -1;\n  }" else (compound_statement "{\n    param_3 = -1;\n  }" { (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) }))) (return_statement "return param_3;" return identifier ;) })))
(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 ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) ))))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0002c96c(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_1;\n  if (param_3 < 0) {\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }\n  else {\n    param_3 = param_3 + 1;\n  }\n  if (param_3 < iVar1) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }\n  else {\n    param_3 = -1;\n  }\n  return param_3;\n}" (primitive_type "int") (function_declarator "FUN_0002c96c(int *param_1,undefined4 param_2,int param_3)" (identifier "FUN_0002c96c") (parameter_list "(int *param_1,undefined4 param_2,int 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 "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_1;\n  if (param_3 < 0) {\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }\n  else {\n    param_3 = param_3 + 1;\n  }\n  if (param_3 < iVar1) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }\n  else {\n    param_3 = -1;\n  }\n  return param_3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (param_3 < 0) {\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }\n  else {\n    param_3 = param_3 + 1;\n  }" (if "if") (parenthesized_expression "(param_3 < 0)" (( "(") (binary_expression "param_3 < 0" (identifier "param_3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);\n  }" ({ "{") (expression_statement "param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);" (assignment_expression "param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2)" (identifier "param_3") (= "=") (call_expression "FUN_0002c894(iVar1,param_1 + 2,param_2)" (identifier "FUN_0002c894") (argument_list "(iVar1,param_1 + 2,param_2)" (( "(") (identifier "iVar1") (, ",") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    param_3 = param_3 + 1;\n  }" (else "else") (compound_statement "{\n    param_3 = param_3 + 1;\n  }" ({ "{") (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (if_statement "if (param_3 < iVar1) {\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }\n  else {\n    param_3 = -1;\n  }" (if "if") (parenthesized_expression "(param_3 < iVar1)" (( "(") (binary_expression "param_3 < iVar1" (identifier "param_3") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));\n    if (iVar1 != 0) {\n      param_3 = -1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4))" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4))" (parenthesized_expression "(*(code *)PTR_strcmp_000a7d4c)" (( "(") (pointer_expression "*(code *)PTR_strcmp_000a7d4c" (* "*") (cast_expression "(code *)PTR_strcmp_000a7d4c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_000a7d4c"))) () ")")) (argument_list "(param_2,**(undefined4 **)(param_1[2] + param_3 * 4))" (( "(") (identifier "param_2") (, ",") (pointer_expression "**(undefined4 **)(param_1[2] + param_3 * 4)" (* "*") (pointer_expression "*(undefined4 **)(param_1[2] + param_3 * 4)" (* "*") (cast_expression "(undefined4 **)(param_1[2] + param_3 * 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1[2] + param_3 * 4)" (( "(") (binary_expression "param_1[2] + param_3 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4"))) () ")"))))) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      param_3 = -1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      param_3 = -1;\n    }" ({ "{") (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" (identifier "param_3") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    param_3 = -1;\n  }" (else "else") (compound_statement "{\n    param_3 = -1;\n  }" ({ "{") (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" (identifier "param_3") (= "=") (number_literal "-1")) (; ";")) (} "}")))) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))

int function_1(type_1 *b,char *path,int var_1)

{
  int var_4;
  type_1 *in_a3;
  type_1 *b_00;
  int var_3;
  
  b_00 = (type_1 *)b->nctrlsets;
  if (var_1 < 0) {
    var_3 = var_2(b_00,(char *)&b->ctrlsets,(int)path,in_a3);
  }
  else {
    var_3 = var_1 + 1;
  }
  if (var_3 < (int)b_00) {
    var_4 = (*(type_2 *)PTR_strcmp_000a7d4c)(path,b->ctrlsets[var_3]->pathname);
    if (var_4 != 0) {
      var_3 = -1;
    }
  }
  else {
    var_3 = -1;
  }
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) 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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

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

{
  int iVar1;
  
  iVar1 = *param_1;
  if (param_3 < 0) {
    param_3 = FUN_0002c894(iVar1,param_1 + 2,param_2);
  }
  else {
    param_3 = param_3 + 1;
  }
  if (param_3 < iVar1) {
    iVar1 = (*(code *)PTR_strcmp_000a7d4c)(param_2,**(undefined4 **)(param_1[2] + param_3 * 4));
    if (iVar1 != 0) {
      param_3 = -1;
    }
  }
  else {
    param_3 = -1;
  }
  return param_3;
}

