
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void button_clicked(GtkButton *button,gpointer data)

{
  code *pcVar1;
  undefined4 uVar2;
  void *e;
  tree234 *t;
  int *piVar3;
  
  uVar2 = gtk_widget_get_type();
  e = (void *)g_type_check_instance_cast(button,uVar2);
  t = *(tree234 **)((int)data + 4);
  if (t != (tree234 *)0x0) {
    while( true ) {
      piVar3 = (int *)find234(t,e,uctrl_cmp_bywidget_find);
      if (piVar3 != (int *)0x0) {
        (**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1);
        return;
      }
      e = (void *)gtk_widget_get_parent(e);
      if (e == (void *)0x0) break;
      t = *(tree234 **)((int)data + 4);
    }
  }
                    /* WARNING: Does not return */
  pcVar1 = (code *)invalidInstructionException();
  (*pcVar1)();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_000a37e0(undefined4 param_1,int param_2)

{
  code *pcVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  
  uVar2 = gtk_widget_get_type();
  iVar3 = g_type_check_instance_cast(param_1,uVar2);
  iVar4 = *(int *)(param_2 + 4);
  if (iVar4 != 0) {
    while( true ) {
      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);
      if (piVar5 != (int *)0x0) {
        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);
        return;
      }
      iVar3 = gtk_widget_get_parent(iVar3);
      if (iVar3 == 0) break;
      iVar4 = *(int *)(param_2 + 4);
    }
  }
                    /* WARNING: Does not return */
  pcVar1 = (code *)invalidInstructionException();
  (*pcVar1)();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c520
ADD EBX,0x96f67
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x24]
CALL 0x0001a580
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x0001a5e0
ADD ESP,0x10
MOV EBP,EAX
MOV EAX,dword ptr [ESI + 0x4]
TEST EAX,EAX
JZ 0x0001c1a8
LEA EDI,[EBX + 0xfff68390]
JMP 0x000a3839
SUB ESP,0xc
PUSH EBP
CALL 0x0001bed0
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x0001c1a8
MOV EAX,dword ptr [ESI + 0x4]
SUB ESP,0x4
PUSH EDI
PUSH EBP
PUSH EAX
CALL 0x0009ee90
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000a3820
MOV EAX,dword ptr [EAX]
PUSH 0x1
PUSH dword ptr [ESI + 0x8]
PUSH ESI
PUSH EAX
CALL dword ptr [EAX + 0x10]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000a37e0(undefined4 param_1,int param_2)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  uVar2 = gtk_widget_get_type();\n  iVar3 = g_type_check_instance_cast(param_1,uVar2);\n  iVar4 = *(int *)(param_2 + 4);\n  if (iVar4 != 0) {\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }\n                    /* WARNING: Does not return */\n  pcVar1 = (code *)invalidInstructionException();\n  (*pcVar1)();\n}\n\n" comment (function_definition "void FUN_000a37e0(undefined4 param_1,int param_2)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  uVar2 = gtk_widget_get_type();\n  iVar3 = g_type_check_instance_cast(param_1,uVar2);\n  iVar4 = *(int *)(param_2 + 4);\n  if (iVar4 != 0) {\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }\n                    /* WARNING: Does not return */\n  pcVar1 = (code *)invalidInstructionException();\n  (*pcVar1)();\n}" primitive_type (function_declarator "FUN_000a37e0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  uVar2 = gtk_widget_get_type();\n  iVar3 = g_type_check_instance_cast(param_1,uVar2);\n  iVar4 = *(int *)(param_2 + 4);\n  if (iVar4 != 0) {\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }\n                    /* WARNING: Does not return */\n  pcVar1 = (code *)invalidInstructionException();\n  (*pcVar1)();\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = g_type_check_instance_cast(param_1,uVar2);" (assignment_expression "iVar3 = g_type_check_instance_cast(param_1,uVar2)" identifier = (call_expression "g_type_check_instance_cast(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = *(int *)(param_2 + 4);" (assignment_expression "iVar4 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 != 0) {\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }" { (while_statement "while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }" { (expression_statement "piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);" (assignment_expression "piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0)" identifier = (cast_expression "(int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0)" identifier (argument_list "(iVar4,iVar3,FUN_000a2ae0)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }" { (expression_statement "(**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);" (call_expression "(**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1)" (parenthesized_expression "(**(code **)(*piVar5 + 0x10))" ( (pointer_expression "**(code **)(*piVar5 + 0x10)" * (pointer_expression "*(code **)(*piVar5 + 0x10)" * (cast_expression "(code **)(*piVar5 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar5 + 0x10)" ( (binary_expression "*piVar5 + 0x10" (pointer_expression "*piVar5" * identifier) + number_literal) ))))) )) (argument_list "(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1)" ( (pointer_expression "*piVar5" * identifier) , identifier , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = gtk_widget_get_parent(iVar3);" (assignment_expression "iVar3 = gtk_widget_get_parent(iVar3)" identifier = (call_expression "gtk_widget_get_parent(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *(int *)(param_2 + 4);" (assignment_expression "iVar4 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) })) })) comment (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid button_clicked(GtkButton *button,gpointer data)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  void *e;\n  tree234 *t;\n  int *piVar3;\n  \n  uVar2 = gtk_widget_get_type();\n  e = (void *)g_type_check_instance_cast(button,uVar2);\n  t = *(tree234 **)((int)data + 4);\n  if (t != (tree234 *)0x0) {\n    while( true ) {\n      piVar3 = (int *)find234(t,e,uctrl_cmp_bywidget_find);\n      if (piVar3 != (int *)0x0) {\n        (**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1);\n        return;\n      }\n      e = (void *)gtk_widget_get_parent(e);\n      if (e == (void *)0x0) break;\n      t = *(tree234 **)((int)data + 4);\n    }\n  }\n                    /* WARNING: Does not return */\n  pcVar1 = (code *)invalidInstructionException();\n  (*pcVar1)();\n}\n\n" comment comment (function_definition "void button_clicked(GtkButton *button,gpointer data)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  void *e;\n  tree234 *t;\n  int *piVar3;\n  \n  uVar2 = gtk_widget_get_type();\n  e = (void *)g_type_check_instance_cast(button,uVar2);\n  t = *(tree234 **)((int)data + 4);\n  if (t != (tree234 *)0x0) {\n    while( true ) {\n      piVar3 = (int *)find234(t,e,uctrl_cmp_bywidget_find);\n      if (piVar3 != (int *)0x0) {\n        (**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1);\n        return;\n      }\n      e = (void *)gtk_widget_get_parent(e);\n      if (e == (void *)0x0) break;\n      t = *(tree234 **)((int)data + 4);\n    }\n  }\n                    /* WARNING: Does not return */\n  pcVar1 = (code *)invalidInstructionException();\n  (*pcVar1)();\n}" primitive_type (function_declarator "button_clicked(GtkButton *button,gpointer data)" identifier (parameter_list "(GtkButton *button,gpointer data)" ( (parameter_declaration "GtkButton *button" type_identifier (pointer_declarator "*button" * identifier)) , (parameter_declaration "gpointer data" type_identifier identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  void *e;\n  tree234 *t;\n  int *piVar3;\n  \n  uVar2 = gtk_widget_get_type();\n  e = (void *)g_type_check_instance_cast(button,uVar2);\n  t = *(tree234 **)((int)data + 4);\n  if (t != (tree234 *)0x0) {\n    while( true ) {\n      piVar3 = (int *)find234(t,e,uctrl_cmp_bywidget_find);\n      if (piVar3 != (int *)0x0) {\n        (**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1);\n        return;\n      }\n      e = (void *)gtk_widget_get_parent(e);\n      if (e == (void *)0x0) break;\n      t = *(tree234 **)((int)data + 4);\n    }\n  }\n                    /* WARNING: Does not return */\n  pcVar1 = (code *)invalidInstructionException();\n  (*pcVar1)();\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "void *e;" primitive_type (pointer_declarator "*e" * identifier) ;) (declaration "tree234 *t;" type_identifier (pointer_declarator "*t" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "e = (void *)g_type_check_instance_cast(button,uVar2);" (assignment_expression "e = (void *)g_type_check_instance_cast(button,uVar2)" identifier = (cast_expression "(void *)g_type_check_instance_cast(button,uVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "g_type_check_instance_cast(button,uVar2)" identifier (argument_list "(button,uVar2)" ( identifier , identifier ))))) ;) (expression_statement "t = *(tree234 **)((int)data + 4);" (assignment_expression "t = *(tree234 **)((int)data + 4)" identifier = (pointer_expression "*(tree234 **)((int)data + 4)" * (cast_expression "(tree234 **)((int)data + 4)" ( (type_descriptor "tree234 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (t != (tree234 *)0x0) {\n    while( true ) {\n      piVar3 = (int *)find234(t,e,uctrl_cmp_bywidget_find);\n      if (piVar3 != (int *)0x0) {\n        (**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1);\n        return;\n      }\n      e = (void *)gtk_widget_get_parent(e);\n      if (e == (void *)0x0) break;\n      t = *(tree234 **)((int)data + 4);\n    }\n  }" if (parenthesized_expression "(t != (tree234 *)0x0)" ( (binary_expression "t != (tree234 *)0x0" identifier != (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    while( true ) {\n      piVar3 = (int *)find234(t,e,uctrl_cmp_bywidget_find);\n      if (piVar3 != (int *)0x0) {\n        (**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1);\n        return;\n      }\n      e = (void *)gtk_widget_get_parent(e);\n      if (e == (void *)0x0) break;\n      t = *(tree234 **)((int)data + 4);\n    }\n  }" { (while_statement "while( true ) {\n      piVar3 = (int *)find234(t,e,uctrl_cmp_bywidget_find);\n      if (piVar3 != (int *)0x0) {\n        (**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1);\n        return;\n      }\n      e = (void *)gtk_widget_get_parent(e);\n      if (e == (void *)0x0) break;\n      t = *(tree234 **)((int)data + 4);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar3 = (int *)find234(t,e,uctrl_cmp_bywidget_find);\n      if (piVar3 != (int *)0x0) {\n        (**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1);\n        return;\n      }\n      e = (void *)gtk_widget_get_parent(e);\n      if (e == (void *)0x0) break;\n      t = *(tree234 **)((int)data + 4);\n    }" { (expression_statement "piVar3 = (int *)find234(t,e,uctrl_cmp_bywidget_find);" (assignment_expression "piVar3 = (int *)find234(t,e,uctrl_cmp_bywidget_find)" identifier = (cast_expression "(int *)find234(t,e,uctrl_cmp_bywidget_find)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "find234(t,e,uctrl_cmp_bywidget_find)" identifier (argument_list "(t,e,uctrl_cmp_bywidget_find)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n        (**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1);\n        return;\n      }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1);\n        return;\n      }" { (expression_statement "(**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1);" (call_expression "(**(code **)(*piVar3 + 0x10))(*piVar3,data,*(undefined4 *)((int)data + 8),1)" (parenthesized_expression "(**(code **)(*piVar3 + 0x10))" ( (pointer_expression "**(code **)(*piVar3 + 0x10)" * (pointer_expression "*(code **)(*piVar3 + 0x10)" * (cast_expression "(code **)(*piVar3 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x10)" ( (binary_expression "*piVar3 + 0x10" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(*piVar3,data,*(undefined4 *)((int)data + 8),1)" ( (pointer_expression "*piVar3" * identifier) , identifier , (pointer_expression "*(undefined4 *)((int)data + 8)" * (cast_expression "(undefined4 *)((int)data + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 8)" ( (binary_expression "(int)data + 8" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "e = (void *)gtk_widget_get_parent(e);" (assignment_expression "e = (void *)gtk_widget_get_parent(e)" identifier = (cast_expression "(void *)gtk_widget_get_parent(e)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_widget_get_parent(e)" identifier (argument_list "(e)" ( identifier ))))) ;) (if_statement "if (e == (void *)0x0) break;" if (parenthesized_expression "(e == (void *)0x0)" ( (binary_expression "e == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "t = *(tree234 **)((int)data + 4);" (assignment_expression "t = *(tree234 **)((int)data + 4)" identifier = (pointer_expression "*(tree234 **)((int)data + 4)" * (cast_expression "(tree234 **)((int)data + 4)" ( (type_descriptor "tree234 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) })) })) comment (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_000a37e0(undefined4 param_1,int param_2)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  uVar2 = gtk_widget_get_type();\n  iVar3 = g_type_check_instance_cast(param_1,uVar2);\n  iVar4 = *(int *)(param_2 + 4);\n  if (iVar4 != 0) {\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }\n                    \n  pcVar1 = (code *)invalidInstructionException();\n  (*pcVar1)();\n}\n\n" (function_definition "void FUN_000a37e0(undefined4 param_1,int param_2)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  uVar2 = gtk_widget_get_type();\n  iVar3 = g_type_check_instance_cast(param_1,uVar2);\n  iVar4 = *(int *)(param_2 + 4);\n  if (iVar4 != 0) {\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }\n                    \n  pcVar1 = (code *)invalidInstructionException();\n  (*pcVar1)();\n}" primitive_type (function_declarator "FUN_000a37e0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  uVar2 = gtk_widget_get_type();\n  iVar3 = g_type_check_instance_cast(param_1,uVar2);\n  iVar4 = *(int *)(param_2 + 4);\n  if (iVar4 != 0) {\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }\n                    \n  pcVar1 = (code *)invalidInstructionException();\n  (*pcVar1)();\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = g_type_check_instance_cast(param_1,uVar2);" (assignment_expression "iVar3 = g_type_check_instance_cast(param_1,uVar2)" identifier = (call_expression "g_type_check_instance_cast(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = *(int *)(param_2 + 4);" (assignment_expression "iVar4 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 != 0) {\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }" { (while_statement "while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }" { (expression_statement "piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);" (assignment_expression "piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0)" identifier = (cast_expression "(int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0)" identifier (argument_list "(iVar4,iVar3,FUN_000a2ae0)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }" { (expression_statement "(**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);" (call_expression "(**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1)" (parenthesized_expression "(**(code **)(*piVar5 + 0x10))" ( (pointer_expression "**(code **)(*piVar5 + 0x10)" * (pointer_expression "*(code **)(*piVar5 + 0x10)" * (cast_expression "(code **)(*piVar5 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar5 + 0x10)" ( (binary_expression "*piVar5 + 0x10" (pointer_expression "*piVar5" * identifier) + number_literal) ))))) )) (argument_list "(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1)" ( (pointer_expression "*piVar5" * identifier) , identifier , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = gtk_widget_get_parent(iVar3);" (assignment_expression "iVar3 = gtk_widget_get_parent(iVar3)" identifier = (call_expression "gtk_widget_get_parent(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *(int *)(param_2 + 4);" (assignment_expression "iVar4 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) })) })) (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (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 IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })))
(function_definition "void FUN_000a37e0(undefined4 param_1,int param_2)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  uVar2 = gtk_widget_get_type();\n  iVar3 = g_type_check_instance_cast(param_1,uVar2);\n  iVar4 = *(int *)(param_2 + 4);\n  if (iVar4 != 0) {\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }\n                    \n  pcVar1 = (code *)invalidInstructionException();\n  (*pcVar1)();\n}" (primitive_type "void") (function_declarator "FUN_000a37e0(undefined4 param_1,int param_2)" (identifier "FUN_000a37e0") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  uVar2 = gtk_widget_get_type();\n  iVar3 = g_type_check_instance_cast(param_1,uVar2);\n  iVar4 = *(int *)(param_2 + 4);\n  if (iVar4 != 0) {\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }\n                    \n  pcVar1 = (code *)invalidInstructionException();\n  (*pcVar1)();\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" (identifier "uVar2") (= "=") (call_expression "gtk_widget_get_type()" (identifier "gtk_widget_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = g_type_check_instance_cast(param_1,uVar2);" (assignment_expression "iVar3 = g_type_check_instance_cast(param_1,uVar2)" (identifier "iVar3") (= "=") (call_expression "g_type_check_instance_cast(param_1,uVar2)" (identifier "g_type_check_instance_cast") (argument_list "(param_1,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "iVar4 = *(int *)(param_2 + 4);" (assignment_expression "iVar4 = *(int *)(param_2 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar4 != 0) {\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);\n      if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }\n      iVar3 = gtk_widget_get_parent(iVar3);\n      if (iVar3 == 0) break;\n      iVar4 = *(int *)(param_2 + 4);\n    }" ({ "{") (expression_statement "piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);" (assignment_expression "piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0)" (identifier "piVar5") (= "=") (cast_expression "(int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0)" (identifier "FUN_0009ee90") (argument_list "(iVar4,iVar3,FUN_000a2ae0)" (( "(") (identifier "iVar4") (, ",") (identifier "iVar3") (, ",") (identifier "FUN_000a2ae0") () ")"))))) (; ";")) (if_statement "if (piVar5 != (int *)0x0) {\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }" (if "if") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);\n        return;\n      }" ({ "{") (expression_statement "(**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);" (call_expression "(**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1)" (parenthesized_expression "(**(code **)(*piVar5 + 0x10))" (( "(") (pointer_expression "**(code **)(*piVar5 + 0x10)" (* "*") (pointer_expression "*(code **)(*piVar5 + 0x10)" (* "*") (cast_expression "(code **)(*piVar5 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar5 + 0x10)" (( "(") (binary_expression "*piVar5 + 0x10" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1)" (( "(") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (, ",") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (, ",") (number_literal "1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar3 = gtk_widget_get_parent(iVar3);" (assignment_expression "iVar3 = gtk_widget_get_parent(iVar3)" (identifier "iVar3") (= "=") (call_expression "gtk_widget_get_parent(iVar3)" (identifier "gtk_widget_get_parent") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = *(int *)(param_2 + 4);" (assignment_expression "iVar4 = *(int *)(param_2 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" (identifier "pcVar1") (= "=") (cast_expression "(code *)invalidInstructionException()" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "invalidInstructionException()" (identifier "invalidInstructionException") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(type_1 *button,type_2 data)

{
  type_3 *pcVar1;
  type_4 uVar2;
  void *var_7;
  type_5 *var_3;
  int *var_5;
  
  uVar2 = var_1();
  var_7 = (void *)var_2(button,uVar2);
  var_3 = *(type_5 **)((int)data + 4);
  if (var_3 != (type_5 *)0x0) {
    while( true ) {
      var_5 = (int *)var_4(var_3,var_7,uctrl_cmp_bywidget_find);
      if (var_5 != (int *)0x0) {
        (**(type_3 **)(*var_5 + 0x10))(*var_5,data,*(type_4 *)((int)data + 8),1);
        return;
      }
      var_7 = (void *)var_6(var_7);
      if (var_7 == (void *)0x0) break;
      var_3 = *(type_5 **)((int)data + 4);
    }
  }
                    /* WARNING: Does not return */
  pcVar1 = (type_3 *)var_8();
  (*pcVar1)();
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(undefined4 param_1,int param_2)

{
  code *pcVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  
  uVar2 = gtk_widget_get_type();
  iVar3 = g_type_check_instance_cast(param_1,uVar2);
  iVar4 = *(int *)(param_2 + 4);
  if (iVar4 != 0) {
    while( true ) {
      piVar5 = (int *)FUN_0009ee90(iVar4,iVar3,FUN_000a2ae0);
      if (piVar5 != (int *)0x0) {
        (**(code **)(*piVar5 + 0x10))(*piVar5,param_2,*(undefined4 *)(param_2 + 8),1);
        return;
      }
      iVar3 = gtk_widget_get_parent(iVar3);
      if (iVar3 == 0) break;
      iVar4 = *(int *)(param_2 + 4);
    }
  }
                    /* WARNING: Does not return */
  pcVar1 = (code *)invalidInstructionException();
  (*pcVar1)();
}

