
uctrl * dlg_find_bywidget(dlgparam *dp,GtkWidget *w)

{
  uctrl *e;
  uctrl *puVar1;
  int iVar2;
  int in_t9;
  
  e = (uctrl *)dp->bywidget;
  if (e != (uctrl *)0x0) {
    iVar2 = *(int *)(in_t9 + 0x60a64);
    e = (uctrl *)w;
    do {
      puVar1 = (uctrl *)find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8));
      if (puVar1 != (uctrl *)0x0) {
        return puVar1;
      }
      e = (uctrl *)(**(code **)(in_t9 + 0x60e20))(e);
    } while (e != (uctrl *)0x0);
  }
  return e;
}



void FUN_0005cc98(int param_1,int param_2)

{
  int iVar1;
  undefined *puVar2;
  
  if (*(int *)(param_1 + 4) != 0) {
    puVar2 = PTR_LAB_000bd6fc + -0x38e8;
    do {
      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);
      if (iVar1 != 0) {
        return;
      }
      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);
    } while (param_2 != 0);
  }
  return;
}


lui gp,0x7
addiu gp,gp,-0x7ac8
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
lw v0,0x4(a0)
beq v0,zero,0x0005cd10
_or s2,a0,zero
or s0,a1,zero
lw s1,-0x7ad4(gp)
addiu s1,s1,-0x38e8
or a2,s1,zero
or a1,s0,zero
lw a0,0x4(s2)
lw t9,-0x7ee4(gp)
bal 0x00058480
_nop
lw gp,0x10(sp)
bne v0,zero,0x0005cd10
_or a0,s0,zero
lw t9,-0x7718(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne v0,zero,0x0005ccd4
_or s0,v0,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_0005cc98(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (*(int *)(param_1 + 4) != 0) {\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005cc98(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (*(int *)(param_1 + 4) != 0) {\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005cc98(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (*(int *)(param_1 + 4) != 0) {\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }" { (expression_statement "puVar2 = PTR_LAB_000bd6fc + -0x38e8;" (assignment_expression "puVar2 = PTR_LAB_000bd6fc + -0x38e8" identifier = (binary_expression "PTR_LAB_000bd6fc + -0x38e8" identifier + number_literal)) ;) (do_statement "do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);" do (compound_statement "{\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    }" { (expression_statement "iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);" (assignment_expression "iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2)" identifier = (call_expression "find234(*(undefined4 *)(param_1 + 4),param_2,puVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),param_2,puVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        return;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);" (assignment_expression "param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2)" identifier = (call_expression "(*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2)" (parenthesized_expression "(*(code *)PTR_gtk_widget_get_parent_000bdab8)" ( (pointer_expression "*(code *)PTR_gtk_widget_get_parent_000bdab8" * (cast_expression "(code *)PTR_gtk_widget_get_parent_000bdab8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "uctrl * dlg_find_bywidget(dlgparam *dp,GtkWidget *w)\n\n{\n  uctrl *e;\n  uctrl *puVar1;\n  int iVar2;\n  int in_t9;\n  \n  e = (uctrl *)dp->bywidget;\n  if (e != (uctrl *)0x0) {\n    iVar2 = *(int *)(in_t9 + 0x60a64);\n    e = (uctrl *)w;\n    do {\n      puVar1 = (uctrl *)find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8));\n      if (puVar1 != (uctrl *)0x0) {\n        return puVar1;\n      }\n      e = (uctrl *)(**(code **)(in_t9 + 0x60e20))(e);\n    } while (e != (uctrl *)0x0);\n  }\n  return e;\n}\n\n" (function_definition "uctrl * dlg_find_bywidget(dlgparam *dp,GtkWidget *w)\n\n{\n  uctrl *e;\n  uctrl *puVar1;\n  int iVar2;\n  int in_t9;\n  \n  e = (uctrl *)dp->bywidget;\n  if (e != (uctrl *)0x0) {\n    iVar2 = *(int *)(in_t9 + 0x60a64);\n    e = (uctrl *)w;\n    do {\n      puVar1 = (uctrl *)find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8));\n      if (puVar1 != (uctrl *)0x0) {\n        return puVar1;\n      }\n      e = (uctrl *)(**(code **)(in_t9 + 0x60e20))(e);\n    } while (e != (uctrl *)0x0);\n  }\n  return e;\n}" type_identifier (pointer_declarator "* dlg_find_bywidget(dlgparam *dp,GtkWidget *w)" * (function_declarator "dlg_find_bywidget(dlgparam *dp,GtkWidget *w)" identifier (parameter_list "(dlgparam *dp,GtkWidget *w)" ( (parameter_declaration "dlgparam *dp" type_identifier (pointer_declarator "*dp" * identifier)) , (parameter_declaration "GtkWidget *w" type_identifier (pointer_declarator "*w" * identifier)) )))) (compound_statement "{\n  uctrl *e;\n  uctrl *puVar1;\n  int iVar2;\n  int in_t9;\n  \n  e = (uctrl *)dp->bywidget;\n  if (e != (uctrl *)0x0) {\n    iVar2 = *(int *)(in_t9 + 0x60a64);\n    e = (uctrl *)w;\n    do {\n      puVar1 = (uctrl *)find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8));\n      if (puVar1 != (uctrl *)0x0) {\n        return puVar1;\n      }\n      e = (uctrl *)(**(code **)(in_t9 + 0x60e20))(e);\n    } while (e != (uctrl *)0x0);\n  }\n  return e;\n}" { (declaration "uctrl *e;" type_identifier (pointer_declarator "*e" * identifier) ;) (declaration "uctrl *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (expression_statement "e = (uctrl *)dp->bywidget;" (assignment_expression "e = (uctrl *)dp->bywidget" identifier = (cast_expression "(uctrl *)dp->bywidget" ( (type_descriptor "uctrl *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "dp->bywidget" identifier -> field_identifier))) ;) (if_statement "if (e != (uctrl *)0x0) {\n    iVar2 = *(int *)(in_t9 + 0x60a64);\n    e = (uctrl *)w;\n    do {\n      puVar1 = (uctrl *)find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8));\n      if (puVar1 != (uctrl *)0x0) {\n        return puVar1;\n      }\n      e = (uctrl *)(**(code **)(in_t9 + 0x60e20))(e);\n    } while (e != (uctrl *)0x0);\n  }" if (parenthesized_expression "(e != (uctrl *)0x0)" ( (binary_expression "e != (uctrl *)0x0" identifier != (cast_expression "(uctrl *)0x0" ( (type_descriptor "uctrl *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = *(int *)(in_t9 + 0x60a64);\n    e = (uctrl *)w;\n    do {\n      puVar1 = (uctrl *)find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8));\n      if (puVar1 != (uctrl *)0x0) {\n        return puVar1;\n      }\n      e = (uctrl *)(**(code **)(in_t9 + 0x60e20))(e);\n    } while (e != (uctrl *)0x0);\n  }" { (expression_statement "iVar2 = *(int *)(in_t9 + 0x60a64);" (assignment_expression "iVar2 = *(int *)(in_t9 + 0x60a64)" identifier = (pointer_expression "*(int *)(in_t9 + 0x60a64)" * (cast_expression "(int *)(in_t9 + 0x60a64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x60a64)" ( (binary_expression "in_t9 + 0x60a64" identifier + number_literal) ))))) ;) (expression_statement "e = (uctrl *)w;" (assignment_expression "e = (uctrl *)w" identifier = (cast_expression "(uctrl *)w" ( (type_descriptor "uctrl *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      puVar1 = (uctrl *)find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8));\n      if (puVar1 != (uctrl *)0x0) {\n        return puVar1;\n      }\n      e = (uctrl *)(**(code **)(in_t9 + 0x60e20))(e);\n    } while (e != (uctrl *)0x0);" do (compound_statement "{\n      puVar1 = (uctrl *)find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8));\n      if (puVar1 != (uctrl *)0x0) {\n        return puVar1;\n      }\n      e = (uctrl *)(**(code **)(in_t9 + 0x60e20))(e);\n    }" { (expression_statement "puVar1 = (uctrl *)find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8));" (assignment_expression "puVar1 = (uctrl *)find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8))" identifier = (cast_expression "(uctrl *)find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8))" ( (type_descriptor "uctrl *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "find234(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8))" identifier (argument_list "(dp->bywidget,e,(cmpfn234)(iVar2 + -0x38e8))" ( (field_expression "dp->bywidget" identifier -> field_identifier) , identifier , (call_expression "(cmpfn234)(iVar2 + -0x38e8)" (parenthesized_expression "(cmpfn234)" ( identifier )) (argument_list "(iVar2 + -0x38e8)" ( (binary_expression "iVar2 + -0x38e8" identifier + number_literal) ))) ))))) ;) (if_statement "if (puVar1 != (uctrl *)0x0) {\n        return puVar1;\n      }" if (parenthesized_expression "(puVar1 != (uctrl *)0x0)" ( (binary_expression "puVar1 != (uctrl *)0x0" identifier != (cast_expression "(uctrl *)0x0" ( (type_descriptor "uctrl *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return puVar1;\n      }" { (return_statement "return puVar1;" return identifier ;) })) (expression_statement "e = (uctrl *)(**(code **)(in_t9 + 0x60e20))(e);" (assignment_expression "e = (uctrl *)(**(code **)(in_t9 + 0x60e20))(e)" identifier = (cast_expression "(uctrl *)(**(code **)(in_t9 + 0x60e20))(e)" ( (type_descriptor "uctrl *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(in_t9 + 0x60e20))(e)" (parenthesized_expression "(**(code **)(in_t9 + 0x60e20))" ( (pointer_expression "**(code **)(in_t9 + 0x60e20)" * (pointer_expression "*(code **)(in_t9 + 0x60e20)" * (cast_expression "(code **)(in_t9 + 0x60e20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x60e20)" ( (binary_expression "in_t9 + 0x60e20" identifier + number_literal) ))))) )) (argument_list "(e)" ( identifier ))))) ;) }) while (parenthesized_expression "(e != (uctrl *)0x0)" ( (binary_expression "e != (uctrl *)0x0" identifier != (cast_expression "(uctrl *)0x0" ( (type_descriptor "uctrl *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return e;" return identifier ;) })))
(translation_unit "void FUN_0005cc98(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (*(int *)(param_1 + 4) != 0) {\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005cc98(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (*(int *)(param_1 + 4) != 0) {\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005cc98(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (*(int *)(param_1 + 4) != 0) {\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }" { (expression_statement "puVar2 = PTR_LAB_000bd6fc + -0x38e8;" (assignment_expression "puVar2 = PTR_LAB_000bd6fc + -0x38e8" identifier = (binary_expression "PTR_LAB_000bd6fc + -0x38e8" identifier + number_literal)) ;) (do_statement "do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);" do (compound_statement "{\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    }" { (expression_statement "iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);" (assignment_expression "iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2)" identifier = (call_expression "find234(*(undefined4 *)(param_1 + 4),param_2,puVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),param_2,puVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        return;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);" (assignment_expression "param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2)" identifier = (call_expression "(*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2)" (parenthesized_expression "(*(code *)PTR_gtk_widget_get_parent_000bdab8)" ( (pointer_expression "*(code *)PTR_gtk_widget_get_parent_000bdab8" * (cast_expression "(code *)PTR_gtk_widget_get_parent_000bdab8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (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 = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0005cc98(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (*(int *)(param_1 + 4) != 0) {\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0005cc98(int param_1,int param_2)" (identifier "FUN_0005cc98") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (*(int *)(param_1 + 4) != 0) {\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = PTR_LAB_000bd6fc + -0x38e8;\n    do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);\n  }" ({ "{") (expression_statement "puVar2 = PTR_LAB_000bd6fc + -0x38e8;" (assignment_expression "puVar2 = PTR_LAB_000bd6fc + -0x38e8" (identifier "puVar2") (= "=") (binary_expression "PTR_LAB_000bd6fc + -0x38e8" (identifier "PTR_LAB_000bd6fc") (+ "+") (number_literal "-0x38e8"))) (; ";")) (do_statement "do {\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    } while (param_2 != 0);" (do "do") (compound_statement "{\n      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);\n      if (iVar1 != 0) {\n        return;\n      }\n      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);\n    }" ({ "{") (expression_statement "iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);" (assignment_expression "iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2)" (identifier "iVar1") (= "=") (call_expression "find234(*(undefined4 *)(param_1 + 4),param_2,puVar2)" (identifier "find234") (argument_list "(*(undefined4 *)(param_1 + 4),param_2,puVar2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "param_2") (, ",") (identifier "puVar2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);" (assignment_expression "param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2)" (identifier "param_2") (= "=") (call_expression "(*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2)" (parenthesized_expression "(*(code *)PTR_gtk_widget_get_parent_000bdab8)" (( "(") (pointer_expression "*(code *)PTR_gtk_widget_get_parent_000bdab8" (* "*") (cast_expression "(code *)PTR_gtk_widget_get_parent_000bdab8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gtk_widget_get_parent_000bdab8"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

type_1 * function_1(type_2 *dp,type_3 *w)

{
  type_1 *var_1;
  type_1 *var_5;
  int var_4;
  int var_2;
  
  var_1 = (type_1 *)dp->bywidget;
  if (var_1 != (type_1 *)0x0) {
    var_4 = *(int *)(var_2 + 0x60a64);
    var_1 = (type_1 *)w;
    do {
      var_5 = (type_1 *)var_3(dp->bywidget,var_1,(cmpfn234)(var_4 + -0x38e8));
      if (var_5 != (type_1 *)0x0) {
        return var_5;
      }
      var_1 = (type_1 *)(**(type_4 **)(var_2 + 0x60e20))(var_1);
    } while (var_1 != (type_1 *)0x0);
  }
  return var_1;
}


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

void MASKED(int param_1,int param_2)

{
  int iVar1;
  undefined *puVar2;
  
  if (*(int *)(param_1 + 4) != 0) {
    puVar2 = PTR_LAB_000bd6fc + -0x38e8;
    do {
      iVar1 = find234(*(undefined4 *)(param_1 + 4),param_2,puVar2);
      if (iVar1 != 0) {
        return;
      }
      param_2 = (*(code *)PTR_gtk_widget_get_parent_000bdab8)(param_2);
    } while (param_2 != 0);
  }
  return;
}

