
int hist_pattern(int search_type)

{
  char *pattern;
  int iVar1;
  
  set_mlist(*(void **)PTR_LOOP_0004ee78,0);
  pattern = cmd_lastpattern();
  if ((pattern != (char *)0x0) &&
     (iVar1 = set_pattern((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type),
     -1 < iVar1)) {
    if ((*(int *)PTR_hilite_search_0004ed44 == 2) &&
       (*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0) == 0)) {
      hilite_screen();
    }
    return 1;
  }
  return 0;
}



undefined4 FUN_0003316c(undefined4 param_1)

{
  int iVar1;
  
  set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);
  iVar1 = cmd_lastpattern();
  if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {
    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {
      FUN_00033030();
    }
    return 1;
  }
  return 0;
}


lui gp,0x2
addiu gp,gp,0x3a64
addu gp,gp,t9
lw v0,-0x7d58(gp)
addiu sp,sp,-0x20
lw t9,-0x7d54(gp)
or a1,zero,zero
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
bal 0x0001bf74
_lw a0,0x0(v0)
lw gp,0x10(sp)
lw t9,-0x799c(gp)
bal 0x0001ce0c
_nop
beq v0,zero,0x00033204
_lw gp,0x10(sp)
lw a0,-0x7fd8(gp)
or a2,s0,zero
lw t9,-0x7fc8(gp)
or a1,v0,zero
addiu t9,t9,0x9e0
bal 0x000309e0
_addiu a0,a0,0x329c
bltz v0,0x00033204
_lw gp,0x10(sp)
lw v1,-0x7e8c(gp)
li v0,0x2
lw v1,0x0(v1)
beq v1,v0,0x00033218
_lw v0,-0x7fd8(gp)
li v0,0x1
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw ra,0x1c(sp)
or v0,zero,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw v0,0x32e0(v0)
bne v0,zero,0x000331f0
_lw t9,-0x7fc8(gp)
addiu t9,t9,0x3030
bal 0x00033030
_nop
b 0x000331f4
_li v0,0x1
(translation_unit "undefined4 FUN_0003316c(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);\n  iVar1 = cmd_lastpattern();\n  if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0003316c(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);\n  iVar1 = cmd_lastpattern();\n  if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003316c(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);\n  iVar1 = cmd_lastpattern();\n  if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);" (call_expression "set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0)" identifier (argument_list "(*(undefined4 *)PTR_LOOP_0004ee78,0)" ( (pointer_expression "*(undefined4 *)PTR_LOOP_0004ee78" * (cast_expression "(undefined4 *)PTR_LOOP_0004ee78" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal ))) ;) (expression_statement "iVar1 = cmd_lastpattern();" (assignment_expression "iVar1 = cmd_lastpattern()" identifier = (call_expression "cmd_lastpattern()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1))" ( (binary_expression "(iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)" ( (comma_expression "iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1" (assignment_expression "iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1)" identifier = (call_expression "FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1)" identifier (argument_list "(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1)" ( (binary_expression "PTR_DAT_0004ebf8 + 0x329c" identifier + number_literal) , identifier , identifier )))) , (binary_expression "-1 < iVar1" number_literal < identifier)) ))) )) (compound_statement "{\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }" { (if_statement "if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }" if (parenthesized_expression "((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0))" ( (binary_expression "(*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)" (parenthesized_expression "(*(int *)PTR_hilite_search_0004ed44 == 2)" ( (binary_expression "*(int *)PTR_hilite_search_0004ed44 == 2" (pointer_expression "*(int *)PTR_hilite_search_0004ed44" * (cast_expression "(int *)PTR_hilite_search_0004ed44" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) && (parenthesized_expression "(*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)" ( (binary_expression "*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0" (pointer_expression "*(int *)(PTR_DAT_0004ebf8 + 0x32e0)" * (cast_expression "(int *)(PTR_DAT_0004ebf8 + 0x32e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0004ebf8 + 0x32e0)" ( (binary_expression "PTR_DAT_0004ebf8 + 0x32e0" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      FUN_00033030();\n    }" { (expression_statement "FUN_00033030();" (call_expression "FUN_00033030()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int hist_pattern(int search_type)\n\n{\n  char *pattern;\n  int iVar1;\n  \n  set_mlist(*(void **)PTR_LOOP_0004ee78,0);\n  pattern = cmd_lastpattern();\n  if ((pattern != (char *)0x0) &&\n     (iVar1 = set_pattern((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type),\n     -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) &&\n       (*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0) == 0)) {\n      hilite_screen();\n    }\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "int hist_pattern(int search_type)\n\n{\n  char *pattern;\n  int iVar1;\n  \n  set_mlist(*(void **)PTR_LOOP_0004ee78,0);\n  pattern = cmd_lastpattern();\n  if ((pattern != (char *)0x0) &&\n     (iVar1 = set_pattern((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type),\n     -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) &&\n       (*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0) == 0)) {\n      hilite_screen();\n    }\n    return 1;\n  }\n  return 0;\n}" primitive_type (function_declarator "hist_pattern(int search_type)" identifier (parameter_list "(int search_type)" ( (parameter_declaration "int search_type" primitive_type identifier) ))) (compound_statement "{\n  char *pattern;\n  int iVar1;\n  \n  set_mlist(*(void **)PTR_LOOP_0004ee78,0);\n  pattern = cmd_lastpattern();\n  if ((pattern != (char *)0x0) &&\n     (iVar1 = set_pattern((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type),\n     -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) &&\n       (*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0) == 0)) {\n      hilite_screen();\n    }\n    return 1;\n  }\n  return 0;\n}" { (declaration "char *pattern;" primitive_type (pointer_declarator "*pattern" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "set_mlist(*(void **)PTR_LOOP_0004ee78,0);" (call_expression "set_mlist(*(void **)PTR_LOOP_0004ee78,0)" identifier (argument_list "(*(void **)PTR_LOOP_0004ee78,0)" ( (pointer_expression "*(void **)PTR_LOOP_0004ee78" * (cast_expression "(void **)PTR_LOOP_0004ee78" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , number_literal ))) ;) (expression_statement "pattern = cmd_lastpattern();" (assignment_expression "pattern = cmd_lastpattern()" identifier = (call_expression "cmd_lastpattern()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((pattern != (char *)0x0) &&\n     (iVar1 = set_pattern((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type),\n     -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) &&\n       (*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0) == 0)) {\n      hilite_screen();\n    }\n    return 1;\n  }" if (parenthesized_expression "((pattern != (char *)0x0) &&\n     (iVar1 = set_pattern((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type),\n     -1 < iVar1))" ( (binary_expression "(pattern != (char *)0x0) &&\n     (iVar1 = set_pattern((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type),\n     -1 < iVar1)" (parenthesized_expression "(pattern != (char *)0x0)" ( (binary_expression "pattern != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = set_pattern((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type),\n     -1 < iVar1)" ( (comma_expression "iVar1 = set_pattern((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type),\n     -1 < iVar1" (assignment_expression "iVar1 = set_pattern((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type)" identifier = (call_expression "set_pattern((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type)" identifier (argument_list "((pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c),pattern,search_type)" ( (cast_expression "(pattern_info *)(PTR_CHAR_ARRAY_0004ebf8 + 0x329c)" ( (type_descriptor "pattern_info *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_CHAR_ARRAY_0004ebf8 + 0x329c)" ( (binary_expression "PTR_CHAR_ARRAY_0004ebf8 + 0x329c" identifier + number_literal) ))) , identifier , identifier )))) , (binary_expression "-1 < iVar1" number_literal < identifier)) ))) )) (compound_statement "{\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) &&\n       (*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0) == 0)) {\n      hilite_screen();\n    }\n    return 1;\n  }" { (if_statement "if ((*(int *)PTR_hilite_search_0004ed44 == 2) &&\n       (*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0) == 0)) {\n      hilite_screen();\n    }" if (parenthesized_expression "((*(int *)PTR_hilite_search_0004ed44 == 2) &&\n       (*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0) == 0))" ( (binary_expression "(*(int *)PTR_hilite_search_0004ed44 == 2) &&\n       (*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0) == 0)" (parenthesized_expression "(*(int *)PTR_hilite_search_0004ed44 == 2)" ( (binary_expression "*(int *)PTR_hilite_search_0004ed44 == 2" (pointer_expression "*(int *)PTR_hilite_search_0004ed44" * (cast_expression "(int *)PTR_hilite_search_0004ed44" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) && (parenthesized_expression "(*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0) == 0)" ( (binary_expression "*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0) == 0" (pointer_expression "*(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0)" * (cast_expression "(int *)(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_CHAR_ARRAY_0004ebf8 + 0x32e0)" ( (binary_expression "PTR_CHAR_ARRAY_0004ebf8 + 0x32e0" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      hilite_screen();\n    }" { (expression_statement "hilite_screen();" (call_expression "hilite_screen()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0003316c(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);\n  iVar1 = cmd_lastpattern();\n  if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0003316c(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);\n  iVar1 = cmd_lastpattern();\n  if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003316c(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);\n  iVar1 = cmd_lastpattern();\n  if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);" (call_expression "set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0)" identifier (argument_list "(*(undefined4 *)PTR_LOOP_0004ee78,0)" ( (pointer_expression "*(undefined4 *)PTR_LOOP_0004ee78" * (cast_expression "(undefined4 *)PTR_LOOP_0004ee78" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal ))) ;) (expression_statement "iVar1 = cmd_lastpattern();" (assignment_expression "iVar1 = cmd_lastpattern()" identifier = (call_expression "cmd_lastpattern()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1))" ( (binary_expression "(iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)" ( (comma_expression "iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1" (assignment_expression "iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1)" identifier = (call_expression "FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1)" identifier (argument_list "(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1)" ( (binary_expression "PTR_DAT_0004ebf8 + 0x329c" identifier + number_literal) , identifier , identifier )))) , (binary_expression "-1 < iVar1" number_literal < identifier)) ))) )) (compound_statement "{\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }" { (if_statement "if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }" if (parenthesized_expression "((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0))" ( (binary_expression "(*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)" (parenthesized_expression "(*(int *)PTR_hilite_search_0004ed44 == 2)" ( (binary_expression "*(int *)PTR_hilite_search_0004ed44 == 2" (pointer_expression "*(int *)PTR_hilite_search_0004ed44" * (cast_expression "(int *)PTR_hilite_search_0004ed44" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) && (parenthesized_expression "(*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)" ( (binary_expression "*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0" (pointer_expression "*(int *)(PTR_DAT_0004ebf8 + 0x32e0)" * (cast_expression "(int *)(PTR_DAT_0004ebf8 + 0x32e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0004ebf8 + 0x32e0)" ( (binary_expression "PTR_DAT_0004ebf8 + 0x32e0" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      FUN_00033030();\n    }" { (expression_statement "FUN_00033030();" (call_expression "FUN_00033030()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == 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 (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0003316c(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);\n  iVar1 = cmd_lastpattern();\n  if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0003316c(undefined4 param_1)" (identifier "FUN_0003316c") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);\n  iVar1 = cmd_lastpattern();\n  if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);" (call_expression "set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0)" (identifier "set_mlist") (argument_list "(*(undefined4 *)PTR_LOOP_0004ee78,0)" (( "(") (pointer_expression "*(undefined4 *)PTR_LOOP_0004ee78" (* "*") (cast_expression "(undefined4 *)PTR_LOOP_0004ee78" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LOOP_0004ee78"))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar1 = cmd_lastpattern();" (assignment_expression "iVar1 = cmd_lastpattern()" (identifier "iVar1") (= "=") (call_expression "cmd_lastpattern()" (identifier "cmd_lastpattern") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1))" (( "(") (binary_expression "(iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)" (( "(") (comma_expression "iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1" (assignment_expression "iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1)" (identifier "FUN_000309e0") (argument_list "(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1)" (( "(") (binary_expression "PTR_DAT_0004ebf8 + 0x329c" (identifier "PTR_DAT_0004ebf8") (+ "+") (number_literal "0x329c")) (, ",") (identifier "iVar1") (, ",") (identifier "param_1") () ")")))) (, ",") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1"))) () ")"))) () ")")) (compound_statement "{\n    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }\n    return 1;\n  }" ({ "{") (if_statement "if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {\n      FUN_00033030();\n    }" (if "if") (parenthesized_expression "((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0))" (( "(") (binary_expression "(*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)" (parenthesized_expression "(*(int *)PTR_hilite_search_0004ed44 == 2)" (( "(") (binary_expression "*(int *)PTR_hilite_search_0004ed44 == 2" (pointer_expression "*(int *)PTR_hilite_search_0004ed44" (* "*") (cast_expression "(int *)PTR_hilite_search_0004ed44" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_hilite_search_0004ed44"))) (== "==") (number_literal "2")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)" (( "(") (binary_expression "*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0" (pointer_expression "*(int *)(PTR_DAT_0004ebf8 + 0x32e0)" (* "*") (cast_expression "(int *)(PTR_DAT_0004ebf8 + 0x32e0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0004ebf8 + 0x32e0)" (( "(") (binary_expression "PTR_DAT_0004ebf8 + 0x32e0" (identifier "PTR_DAT_0004ebf8") (+ "+") (number_literal "0x32e0")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      FUN_00033030();\n    }" ({ "{") (expression_statement "FUN_00033030();" (call_expression "FUN_00033030()" (identifier "FUN_00033030") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(int search_type)

{
  char *var_3;
  int var_6;
  
  var_1(*(void **)PTR_LOOP_0004ee78,0);
  var_3 = var_2();
  if ((var_3 != (char *)0x0) &&
     (var_6 = var_4((type_1 *)(var_5 + 0x329c),var_3,search_type),
     -1 < var_6)) {
    if ((*(int *)PTR_hilite_search_0004ed44 == 2) &&
       (*(int *)(var_5 + 0x32e0) == 0)) {
      var_7();
    }
    return 1;
  }
  return 0;
}


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

undefined4 MASKED(undefined4 param_1)

{
  int iVar1;
  
  set_mlist(*(undefined4 *)PTR_LOOP_0004ee78,0);
  iVar1 = cmd_lastpattern();
  if ((iVar1 != 0) && (iVar1 = FUN_000309e0(PTR_DAT_0004ebf8 + 0x329c,iVar1,param_1), -1 < iVar1)) {
    if ((*(int *)PTR_hilite_search_0004ed44 == 2) && (*(int *)(PTR_DAT_0004ebf8 + 0x32e0) == 0)) {
      FUN_00033030();
    }
    return 1;
  }
  return 0;
}

