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

void filefont_clicked(GtkButton *button,gpointer data)

{
  code *pcVar1;
  undefined4 uVar2;
  void *e;
  tree234 *t;
  int *piVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  char *fontname;
  unifontsel *fontsel;
  
  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) {
        iVar6 = *(int *)*piVar3;
        if (iVar6 == 7) {
          iVar6 = ((int *)*piVar3)[9];
          uVar4 = gtk_window_get_type();
          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);
          uVar5 = gtk_file_chooser_dialog_new
                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,
                             "_Open",0xfffffffd,0);
          uVar4 = g_type_check_instance_cast(uVar5,uVar4);
          gtk_window_set_modal(uVar4,1);
          uVar4 = g_type_check_instance_cast(uVar5,0x50);
          g_object_set_data(uVar4,"user-data",piVar3);
          uVar4 = g_type_check_instance_cast(uVar5,0x50);
          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);
          gtk_widget_show(uVar5);
          iVar6 = *(int *)*piVar3;
        }
        if (iVar6 == 8) {
          uVar4 = gtk_entry_get_type();
          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);
          fontname = (char *)gtk_entry_get_text(uVar4);
          fontsel = unifontsel_new("Select a font");
          gtk_window_set_modal(fontsel->window,1);
          unifontsel_set_name(fontsel,fontname);
          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);
          g_object_set_data(uVar4,"user-data",fontsel);
          fontsel->user_data = piVar3;
          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);
          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);
          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);
          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);
          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);
          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);
          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);
          gtk_widget_show(uVar2);
          return;
        }
        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_000a2ed0(undefined4 param_1,int param_2)

{
  code *pcVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  
  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) {
        iVar4 = *(int *)*piVar5;
        if (iVar4 == 7) {
          iVar4 = ((int *)*piVar5)[9];
          uVar6 = gtk_window_get_type();
          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);
          uVar7 = gtk_file_chooser_dialog_new
                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,
                             "_Open",0xfffffffd,0);
          uVar6 = g_type_check_instance_cast(uVar7,uVar6);
          gtk_window_set_modal(uVar6,1);
          uVar6 = g_type_check_instance_cast(uVar7,0x50);
          g_object_set_data(uVar6,"user-data",piVar5);
          uVar6 = g_type_check_instance_cast(uVar7,0x50);
          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);
          gtk_widget_show(uVar7);
          iVar4 = *(int *)*piVar5;
        }
        if (iVar4 == 8) {
          uVar6 = gtk_entry_get_type();
          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);
          uVar6 = gtk_entry_get_text(uVar6);
          puVar8 = (undefined4 *)FUN_000aef90("Select a font");
          gtk_window_set_modal(puVar8[1],1);
          FUN_000afd60(puVar8,uVar6);
          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);
          g_object_set_data(uVar6,"user-data",puVar8);
          *puVar8 = piVar5;
          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);
          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);
          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);
          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);
          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);
          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);
          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);
          gtk_widget_show(uVar2);
          return;
        }
        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,0x97877
SUB ESP,0x1c
CALL 0x0001a580
SUB ESP,0x8
PUSH EAX
MOV EBP,EAX
PUSH dword ptr [ESP + 0x3c]
CALL 0x0001a5e0
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x44]
ADD ESP,0x10
MOV EAX,dword ptr [EAX + 0x4]
TEST EAX,EAX
JZ 0x0001c190
LEA EDI,[EBX + 0xfff68390]
MOV ESI,ECX
JMP 0x000a2f35
SUB ESP,0xc
PUSH ESI
CALL 0x0001bed0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0001c190
MOV EAX,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [EAX + 0x4]
SUB ESP,0x4
PUSH EDI
PUSH ESI
PUSH EAX
CALL 0x0009ee90
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000a2f18
MOV ECX,dword ptr [EAX]
MOV ESI,EAX
MOV EAX,dword ptr [ECX]
CMP EAX,0x7
JNZ 0x000a300d
MOV EDI,dword ptr [ECX + 0x24]
XOR EAX,EAX
TEST EDI,EDI
LEA EDI,[EBX + 0xfffb347a]
SETNZ AL
MOV dword ptr [ESP + 0x8],EAX
CALL 0x0001c060
SUB ESP,0x8
PUSH EAX
MOV EDX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x18],EAX
PUSH dword ptr [EDX + 0x18]
CALL 0x0001a5e0
PUSH 0x0
PUSH -0x3
PUSH EDI
LEA EDI,[EBX + 0xfffb3480]
PUSH -0x6
PUSH EDI
PUSH dword ptr [ESP + 0x2c]
PUSH EAX
MOV EAX,dword ptr [ESI]
PUSH dword ptr [EAX + 0x28]
CALL 0x0001b7d0
ADD ESP,0x28
MOV ECX,dword ptr [ESP + 0x14]
MOV EDI,EAX
PUSH ECX
PUSH EAX
CALL 0x0001a5e0
POP EDX
POP ECX
PUSH 0x1
PUSH EAX
CALL 0x0001bbb0
POP EAX
POP EDX
PUSH 0x50
PUSH EDI
CALL 0x0001a5e0
ADD ESP,0xc
LEA ECX,[EBX + 0xfffb3452]
PUSH ESI
PUSH ECX
PUSH EAX
CALL 0x0001b800
POP ECX
POP EAX
PUSH 0x50
PUSH EDI
CALL 0x0001a5e0
POP EDX
POP ECX
LEA ECX,[EBX + 0xfff68540]
PUSH 0x0
PUSH 0x0
PUSH dword ptr [ESP + 0x44]
PUSH ECX
LEA ECX,[EBX + 0xfffa74e7]
PUSH ECX
PUSH EAX
CALL 0x0001afe0
ADD ESP,0x14
PUSH EDI
CALL 0x0001b8b0
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
MOV EAX,dword ptr [EAX]
CMP EAX,0x8
JZ 0x000a3020
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0001ba00
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESI + 0x10]
CALL 0x0001a5e0
MOV dword ptr [ESP],EAX
CALL 0x0001a740
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[EBX + 0xfffb3488]
MOV dword ptr [ESP],EAX
CALL 0x000aef90
MOV EDI,EAX
POP EAX
POP EDX
PUSH 0x1
PUSH dword ptr [EDI + 0x4]
CALL 0x0001bbb0
POP ECX
POP EAX
MOV ECX,dword ptr [ESP + 0x10]
PUSH ECX
PUSH EDI
CALL 0x000afd60
POP EAX
POP EDX
PUSH 0x50
PUSH dword ptr [EDI + 0x8]
CALL 0x0001a5e0
ADD ESP,0xc
LEA ECX,[EBX + 0xfffb3452]
PUSH EDI
PUSH ECX
PUSH EAX
CALL 0x0001b800
MOV dword ptr [EDI],ESI
POP ECX
POP ESI
PUSH 0x50
LEA ESI,[EBX + 0xfffb3496]
PUSH dword ptr [EDI + 0x8]
CALL 0x0001a5e0
POP EDX
LEA EDX,[EBX + 0xfff689d0]
POP ECX
PUSH 0x0
PUSH 0x0
PUSH dword ptr [ESP + 0x44]
PUSH EDX
PUSH ESI
PUSH EAX
CALL 0x0001afe0
ADD ESP,0x18
PUSH 0x50
PUSH dword ptr [EDI + 0x8]
CALL 0x0001a5e0
POP EDX
LEA EDX,[EBX + 0xfff75590]
POP ECX
PUSH 0x2
PUSH 0x0
PUSH EDI
PUSH EDX
MOV dword ptr [ESP + 0x20],EDX
PUSH ESI
PUSH EAX
CALL 0x0001afe0
ADD ESP,0x18
PUSH 0x50
PUSH dword ptr [EDI + 0xc]
CALL 0x0001a5e0
POP EDX
POP ECX
PUSH 0x2
PUSH 0x0
PUSH EDI
MOV EDX,dword ptr [ESP + 0x1c]
PUSH EDX
PUSH ESI
PUSH EAX
CALL 0x0001afe0
ADD ESP,0x18
PUSH EBP
PUSH dword ptr [EDI + 0x4]
CALL 0x0001a5e0
MOV dword ptr [ESP],EAX
CALL 0x0001b8b0
ADD ESP,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_000a2ed0(undefined4 param_1,int param_2)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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_000a2ed0(undefined4 param_1,int param_2)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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_000a2ed0(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  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * 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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\n        return;\n      }" { (expression_statement "iVar4 = *(int *)*piVar5;" (assignment_expression "iVar4 = *(int *)*piVar5" identifier = (pointer_expression "*(int *)*piVar5" * (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier)))) ;) (if_statement "if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }" if (parenthesized_expression "(iVar4 == 7)" ( (binary_expression "iVar4 == 7" identifier == number_literal) )) (compound_statement "{\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }" { (expression_statement "iVar4 = ((int *)*piVar5)[9];" (assignment_expression "iVar4 = ((int *)*piVar5)[9]" identifier = (subscript_expression "((int *)*piVar5)[9]" (parenthesized_expression "((int *)*piVar5)" ( (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier)) )) [ number_literal ])) ;) (expression_statement "uVar6 = gtk_window_get_type();" (assignment_expression "uVar6 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);" (assignment_expression "uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x18),uVar6)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);" (assignment_expression "uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" identifier = (call_expression "gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" identifier (argument_list "(*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" ( (pointer_expression "*(undefined4 *)(*piVar5 + 0x28)" * (cast_expression "(undefined4 *)(*piVar5 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar5 + 0x28)" ( (binary_expression "*piVar5 + 0x28" (pointer_expression "*piVar5" * identifier) + number_literal) )))) , identifier , (binary_expression "iVar4 != 0" identifier != number_literal) , (string_literal ""_Cancel"" " string_content ") , number_literal , (string_literal ""_Open"" " string_content ") , number_literal , number_literal )))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(uVar7,uVar6);" (assignment_expression "uVar6 = g_type_check_instance_cast(uVar7,uVar6)" identifier = (call_expression "g_type_check_instance_cast(uVar7,uVar6)" identifier (argument_list "(uVar7,uVar6)" ( identifier , identifier )))) ;) (expression_statement "gtk_window_set_modal(uVar6,1);" (call_expression "gtk_window_set_modal(uVar6,1)" identifier (argument_list "(uVar6,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(uVar7,0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(uVar7,0x50)" identifier = (call_expression "g_type_check_instance_cast(uVar7,0x50)" identifier (argument_list "(uVar7,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_object_set_data(uVar6,"user-data",piVar5);" (call_expression "g_object_set_data(uVar6,"user-data",piVar5)" identifier (argument_list "(uVar6,"user-data",piVar5)" ( identifier , (string_literal ""user-data"" " string_content ") , identifier ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(uVar7,0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(uVar7,0x50)" identifier = (call_expression "g_type_check_instance_cast(uVar7,0x50)" identifier (argument_list "(uVar7,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);" (call_expression "g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0)" identifier (argument_list "(uVar6,"response",FUN_000a2c90,param_2,0,0)" ( identifier , (string_literal ""response"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "gtk_widget_show(uVar7);" (call_expression "gtk_widget_show(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "iVar4 = *(int *)*piVar5;" (assignment_expression "iVar4 = *(int *)*piVar5" identifier = (pointer_expression "*(int *)*piVar5" * (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier)))) ;) })) (if_statement "if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }" if (parenthesized_expression "(iVar4 == 8)" ( (binary_expression "iVar4 == 8" identifier == number_literal) )) (compound_statement "{\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }" { (expression_statement "uVar6 = gtk_entry_get_type();" (assignment_expression "uVar6 = gtk_entry_get_type()" identifier = (call_expression "gtk_entry_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);" (assignment_expression "uVar6 = g_type_check_instance_cast(piVar5[4],uVar6)" identifier = (call_expression "g_type_check_instance_cast(piVar5[4],uVar6)" identifier (argument_list "(piVar5[4],uVar6)" ( (subscript_expression "piVar5[4]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "uVar6 = gtk_entry_get_text(uVar6);" (assignment_expression "uVar6 = gtk_entry_get_text(uVar6)" identifier = (call_expression "gtk_entry_get_text(uVar6)" identifier (argument_list "(uVar6)" ( identifier )))) ;) (expression_statement "puVar8 = (undefined4 *)FUN_000aef90("Select a font");" (assignment_expression "puVar8 = (undefined4 *)FUN_000aef90("Select a font")" identifier = (cast_expression "(undefined4 *)FUN_000aef90("Select a font")" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000aef90("Select a font")" identifier (argument_list "("Select a font")" ( (string_literal ""Select a font"" " string_content ") ))))) ;) (expression_statement "gtk_window_set_modal(puVar8[1],1);" (call_expression "gtk_window_set_modal(puVar8[1],1)" identifier (argument_list "(puVar8[1],1)" ( (subscript_expression "puVar8[1]" identifier [ number_literal ]) , number_literal ))) ;) (expression_statement "FUN_000afd60(puVar8,uVar6);" (call_expression "FUN_000afd60(puVar8,uVar6)" identifier (argument_list "(puVar8,uVar6)" ( identifier , identifier ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[2],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[2],0x50)" identifier = (call_expression "g_type_check_instance_cast(puVar8[2],0x50)" identifier (argument_list "(puVar8[2],0x50)" ( (subscript_expression "puVar8[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "g_object_set_data(uVar6,"user-data",puVar8);" (call_expression "g_object_set_data(uVar6,"user-data",puVar8)" identifier (argument_list "(uVar6,"user-data",puVar8)" ( identifier , (string_literal ""user-data"" " string_content ") , identifier ))) ;) (expression_statement "*puVar8 = piVar5;" (assignment_expression "*puVar8 = piVar5" (pointer_expression "*puVar8" * identifier) = identifier) ;) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[2],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[2],0x50)" identifier = (call_expression "g_type_check_instance_cast(puVar8[2],0x50)" identifier (argument_list "(puVar8[2],0x50)" ( (subscript_expression "puVar8[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);" (call_expression "g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0)" identifier (argument_list "(uVar6,"clicked",FUN_000a3120,param_2,0,0)" ( identifier , (string_literal ""clicked"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[2],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[2],0x50)" identifier = (call_expression "g_type_check_instance_cast(puVar8[2],0x50)" identifier (argument_list "(puVar8[2],0x50)" ( (subscript_expression "puVar8[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);" (call_expression "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" identifier (argument_list "(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" ( identifier , (string_literal ""clicked"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[3],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[3],0x50)" identifier = (call_expression "g_type_check_instance_cast(puVar8[3],0x50)" identifier (argument_list "(puVar8[3],0x50)" ( (subscript_expression "puVar8[3]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);" (call_expression "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" identifier (argument_list "(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" ( identifier , (string_literal ""clicked"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(puVar8[1],uVar2)" identifier = (call_expression "g_type_check_instance_cast(puVar8[1],uVar2)" identifier (argument_list "(puVar8[1],uVar2)" ( (subscript_expression "puVar8[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "gtk_widget_show(uVar2);" (call_expression "gtk_widget_show(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (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 filefont_clicked(GtkButton *button,gpointer data)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  void *e;\n  tree234 *t;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  char *fontname;\n  unifontsel *fontsel;\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        iVar6 = *(int *)*piVar3;\n        if (iVar6 == 7) {\n          iVar6 = ((int *)*piVar3)[9];\n          uVar4 = gtk_window_get_type();\n          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);\n          uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar4 = g_type_check_instance_cast(uVar5,uVar4);\n          gtk_window_set_modal(uVar4,1);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_object_set_data(uVar4,"user-data",piVar3);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);\n          gtk_widget_show(uVar5);\n          iVar6 = *(int *)*piVar3;\n        }\n        if (iVar6 == 8) {\n          uVar4 = gtk_entry_get_type();\n          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);\n          fontname = (char *)gtk_entry_get_text(uVar4);\n          fontsel = unifontsel_new("Select a font");\n          gtk_window_set_modal(fontsel->window,1);\n          unifontsel_set_name(fontsel,fontname);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_object_set_data(uVar4,"user-data",fontsel);\n          fontsel->user_data = piVar3;\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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 filefont_clicked(GtkButton *button,gpointer data)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  void *e;\n  tree234 *t;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  char *fontname;\n  unifontsel *fontsel;\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        iVar6 = *(int *)*piVar3;\n        if (iVar6 == 7) {\n          iVar6 = ((int *)*piVar3)[9];\n          uVar4 = gtk_window_get_type();\n          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);\n          uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar4 = g_type_check_instance_cast(uVar5,uVar4);\n          gtk_window_set_modal(uVar4,1);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_object_set_data(uVar4,"user-data",piVar3);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);\n          gtk_widget_show(uVar5);\n          iVar6 = *(int *)*piVar3;\n        }\n        if (iVar6 == 8) {\n          uVar4 = gtk_entry_get_type();\n          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);\n          fontname = (char *)gtk_entry_get_text(uVar4);\n          fontsel = unifontsel_new("Select a font");\n          gtk_window_set_modal(fontsel->window,1);\n          unifontsel_set_name(fontsel,fontname);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_object_set_data(uVar4,"user-data",fontsel);\n          fontsel->user_data = piVar3;\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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 "filefont_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  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  char *fontname;\n  unifontsel *fontsel;\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        iVar6 = *(int *)*piVar3;\n        if (iVar6 == 7) {\n          iVar6 = ((int *)*piVar3)[9];\n          uVar4 = gtk_window_get_type();\n          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);\n          uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar4 = g_type_check_instance_cast(uVar5,uVar4);\n          gtk_window_set_modal(uVar4,1);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_object_set_data(uVar4,"user-data",piVar3);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);\n          gtk_widget_show(uVar5);\n          iVar6 = *(int *)*piVar3;\n        }\n        if (iVar6 == 8) {\n          uVar4 = gtk_entry_get_type();\n          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);\n          fontname = (char *)gtk_entry_get_text(uVar4);\n          fontsel = unifontsel_new("Select a font");\n          gtk_window_set_modal(fontsel->window,1);\n          unifontsel_set_name(fontsel,fontname);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_object_set_data(uVar4,"user-data",fontsel);\n          fontsel->user_data = piVar3;\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *fontname;" primitive_type (pointer_declarator "*fontname" * identifier) ;) (declaration "unifontsel *fontsel;" type_identifier (pointer_declarator "*fontsel" * 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        iVar6 = *(int *)*piVar3;\n        if (iVar6 == 7) {\n          iVar6 = ((int *)*piVar3)[9];\n          uVar4 = gtk_window_get_type();\n          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);\n          uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar4 = g_type_check_instance_cast(uVar5,uVar4);\n          gtk_window_set_modal(uVar4,1);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_object_set_data(uVar4,"user-data",piVar3);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);\n          gtk_widget_show(uVar5);\n          iVar6 = *(int *)*piVar3;\n        }\n        if (iVar6 == 8) {\n          uVar4 = gtk_entry_get_type();\n          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);\n          fontname = (char *)gtk_entry_get_text(uVar4);\n          fontsel = unifontsel_new("Select a font");\n          gtk_window_set_modal(fontsel->window,1);\n          unifontsel_set_name(fontsel,fontname);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_object_set_data(uVar4,"user-data",fontsel);\n          fontsel->user_data = piVar3;\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar6 = *(int *)*piVar3;\n        if (iVar6 == 7) {\n          iVar6 = ((int *)*piVar3)[9];\n          uVar4 = gtk_window_get_type();\n          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);\n          uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar4 = g_type_check_instance_cast(uVar5,uVar4);\n          gtk_window_set_modal(uVar4,1);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_object_set_data(uVar4,"user-data",piVar3);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);\n          gtk_widget_show(uVar5);\n          iVar6 = *(int *)*piVar3;\n        }\n        if (iVar6 == 8) {\n          uVar4 = gtk_entry_get_type();\n          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);\n          fontname = (char *)gtk_entry_get_text(uVar4);\n          fontsel = unifontsel_new("Select a font");\n          gtk_window_set_modal(fontsel->window,1);\n          unifontsel_set_name(fontsel,fontname);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_object_set_data(uVar4,"user-data",fontsel);\n          fontsel->user_data = piVar3;\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar6 = *(int *)*piVar3;\n        if (iVar6 == 7) {\n          iVar6 = ((int *)*piVar3)[9];\n          uVar4 = gtk_window_get_type();\n          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);\n          uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar4 = g_type_check_instance_cast(uVar5,uVar4);\n          gtk_window_set_modal(uVar4,1);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_object_set_data(uVar4,"user-data",piVar3);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);\n          gtk_widget_show(uVar5);\n          iVar6 = *(int *)*piVar3;\n        }\n        if (iVar6 == 8) {\n          uVar4 = gtk_entry_get_type();\n          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);\n          fontname = (char *)gtk_entry_get_text(uVar4);\n          fontsel = unifontsel_new("Select a font");\n          gtk_window_set_modal(fontsel->window,1);\n          unifontsel_set_name(fontsel,fontname);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_object_set_data(uVar4,"user-data",fontsel);\n          fontsel->user_data = piVar3;\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar6 = *(int *)*piVar3;\n        if (iVar6 == 7) {\n          iVar6 = ((int *)*piVar3)[9];\n          uVar4 = gtk_window_get_type();\n          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);\n          uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar4 = g_type_check_instance_cast(uVar5,uVar4);\n          gtk_window_set_modal(uVar4,1);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_object_set_data(uVar4,"user-data",piVar3);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);\n          gtk_widget_show(uVar5);\n          iVar6 = *(int *)*piVar3;\n        }\n        if (iVar6 == 8) {\n          uVar4 = gtk_entry_get_type();\n          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);\n          fontname = (char *)gtk_entry_get_text(uVar4);\n          fontsel = unifontsel_new("Select a font");\n          gtk_window_set_modal(fontsel->window,1);\n          unifontsel_set_name(fontsel,fontname);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_object_set_data(uVar4,"user-data",fontsel);\n          fontsel->user_data = piVar3;\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar6 = *(int *)*piVar3;\n        if (iVar6 == 7) {\n          iVar6 = ((int *)*piVar3)[9];\n          uVar4 = gtk_window_get_type();\n          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);\n          uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar4 = g_type_check_instance_cast(uVar5,uVar4);\n          gtk_window_set_modal(uVar4,1);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_object_set_data(uVar4,"user-data",piVar3);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);\n          gtk_widget_show(uVar5);\n          iVar6 = *(int *)*piVar3;\n        }\n        if (iVar6 == 8) {\n          uVar4 = gtk_entry_get_type();\n          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);\n          fontname = (char *)gtk_entry_get_text(uVar4);\n          fontsel = unifontsel_new("Select a font");\n          gtk_window_set_modal(fontsel->window,1);\n          unifontsel_set_name(fontsel,fontname);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_object_set_data(uVar4,"user-data",fontsel);\n          fontsel->user_data = piVar3;\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar6 = *(int *)*piVar3;\n        if (iVar6 == 7) {\n          iVar6 = ((int *)*piVar3)[9];\n          uVar4 = gtk_window_get_type();\n          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);\n          uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar4 = g_type_check_instance_cast(uVar5,uVar4);\n          gtk_window_set_modal(uVar4,1);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_object_set_data(uVar4,"user-data",piVar3);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);\n          gtk_widget_show(uVar5);\n          iVar6 = *(int *)*piVar3;\n        }\n        if (iVar6 == 8) {\n          uVar4 = gtk_entry_get_type();\n          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);\n          fontname = (char *)gtk_entry_get_text(uVar4);\n          fontsel = unifontsel_new("Select a font");\n          gtk_window_set_modal(fontsel->window,1);\n          unifontsel_set_name(fontsel,fontname);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_object_set_data(uVar4,"user-data",fontsel);\n          fontsel->user_data = piVar3;\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\n        return;\n      }" { (expression_statement "iVar6 = *(int *)*piVar3;" (assignment_expression "iVar6 = *(int *)*piVar3" identifier = (pointer_expression "*(int *)*piVar3" * (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier)))) ;) (if_statement "if (iVar6 == 7) {\n          iVar6 = ((int *)*piVar3)[9];\n          uVar4 = gtk_window_get_type();\n          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);\n          uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar4 = g_type_check_instance_cast(uVar5,uVar4);\n          gtk_window_set_modal(uVar4,1);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_object_set_data(uVar4,"user-data",piVar3);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);\n          gtk_widget_show(uVar5);\n          iVar6 = *(int *)*piVar3;\n        }" if (parenthesized_expression "(iVar6 == 7)" ( (binary_expression "iVar6 == 7" identifier == number_literal) )) (compound_statement "{\n          iVar6 = ((int *)*piVar3)[9];\n          uVar4 = gtk_window_get_type();\n          uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);\n          uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar4 = g_type_check_instance_cast(uVar5,uVar4);\n          gtk_window_set_modal(uVar4,1);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_object_set_data(uVar4,"user-data",piVar3);\n          uVar4 = g_type_check_instance_cast(uVar5,0x50);\n          g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);\n          gtk_widget_show(uVar5);\n          iVar6 = *(int *)*piVar3;\n        }" { (expression_statement "iVar6 = ((int *)*piVar3)[9];" (assignment_expression "iVar6 = ((int *)*piVar3)[9]" identifier = (subscript_expression "((int *)*piVar3)[9]" (parenthesized_expression "((int *)*piVar3)" ( (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier)) )) [ number_literal ])) ;) (expression_statement "uVar4 = gtk_window_get_type();" (assignment_expression "uVar4 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4);" (assignment_expression "uVar5 = g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)((int)data + 0x18),uVar4)" identifier (argument_list "(*(undefined4 *)((int)data + 0x18),uVar4)" ( (pointer_expression "*(undefined4 *)((int)data + 0x18)" * (cast_expression "(undefined4 *)((int)data + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x18)" ( (binary_expression "(int)data + 0x18" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier )))) ;) (expression_statement "uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);" (assignment_expression "uVar5 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" identifier = (call_expression "gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" identifier (argument_list "(*(undefined4 *)(*piVar3 + 0x28),uVar5,iVar6 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" ( (pointer_expression "*(undefined4 *)(*piVar3 + 0x28)" * (cast_expression "(undefined4 *)(*piVar3 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 0x28)" ( (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" * identifier) + number_literal) )))) , identifier , (binary_expression "iVar6 != 0" identifier != number_literal) , (string_literal ""_Cancel"" " string_content ") , number_literal , (string_literal ""_Open"" " string_content ") , number_literal , number_literal )))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(uVar5,uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(uVar5,uVar4)" identifier = (call_expression "g_type_check_instance_cast(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier )))) ;) (expression_statement "gtk_window_set_modal(uVar4,1);" (call_expression "gtk_window_set_modal(uVar4,1)" identifier (argument_list "(uVar4,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(uVar5,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(uVar5,0x50)" identifier = (call_expression "g_type_check_instance_cast(uVar5,0x50)" identifier (argument_list "(uVar5,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_object_set_data(uVar4,"user-data",piVar3);" (call_expression "g_object_set_data(uVar4,"user-data",piVar3)" identifier (argument_list "(uVar4,"user-data",piVar3)" ( identifier , (string_literal ""user-data"" " string_content ") , identifier ))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(uVar5,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(uVar5,0x50)" identifier = (call_expression "g_type_check_instance_cast(uVar5,0x50)" identifier (argument_list "(uVar5,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0);" (call_expression "g_signal_connect_data(uVar4,"response",filechoose_response,data,0,0)" identifier (argument_list "(uVar4,"response",filechoose_response,data,0,0)" ( identifier , (string_literal ""response"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "gtk_widget_show(uVar5);" (call_expression "gtk_widget_show(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "iVar6 = *(int *)*piVar3;" (assignment_expression "iVar6 = *(int *)*piVar3" identifier = (pointer_expression "*(int *)*piVar3" * (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier)))) ;) })) (if_statement "if (iVar6 == 8) {\n          uVar4 = gtk_entry_get_type();\n          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);\n          fontname = (char *)gtk_entry_get_text(uVar4);\n          fontsel = unifontsel_new("Select a font");\n          gtk_window_set_modal(fontsel->window,1);\n          unifontsel_set_name(fontsel,fontname);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_object_set_data(uVar4,"user-data",fontsel);\n          fontsel->user_data = piVar3;\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }" if (parenthesized_expression "(iVar6 == 8)" ( (binary_expression "iVar6 == 8" identifier == number_literal) )) (compound_statement "{\n          uVar4 = gtk_entry_get_type();\n          uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);\n          fontname = (char *)gtk_entry_get_text(uVar4);\n          fontsel = unifontsel_new("Select a font");\n          gtk_window_set_modal(fontsel->window,1);\n          unifontsel_set_name(fontsel,fontname);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_object_set_data(uVar4,"user-data",fontsel);\n          fontsel->user_data = piVar3;\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);\n          uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);\n          g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);\n          uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }" { (expression_statement "uVar4 = gtk_entry_get_type();" (assignment_expression "uVar4 = gtk_entry_get_type()" identifier = (call_expression "gtk_entry_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(piVar3[4],uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(piVar3[4],uVar4)" identifier = (call_expression "g_type_check_instance_cast(piVar3[4],uVar4)" identifier (argument_list "(piVar3[4],uVar4)" ( (subscript_expression "piVar3[4]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "fontname = (char *)gtk_entry_get_text(uVar4);" (assignment_expression "fontname = (char *)gtk_entry_get_text(uVar4)" identifier = (cast_expression "(char *)gtk_entry_get_text(uVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_entry_get_text(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))))) ;) (expression_statement "fontsel = unifontsel_new("Select a font");" (assignment_expression "fontsel = unifontsel_new("Select a font")" identifier = (call_expression "unifontsel_new("Select a font")" identifier (argument_list "("Select a font")" ( (string_literal ""Select a font"" " string_content ") )))) ;) (expression_statement "gtk_window_set_modal(fontsel->window,1);" (call_expression "gtk_window_set_modal(fontsel->window,1)" identifier (argument_list "(fontsel->window,1)" ( (field_expression "fontsel->window" identifier -> field_identifier) , number_literal ))) ;) (expression_statement "unifontsel_set_name(fontsel,fontname);" (call_expression "unifontsel_set_name(fontsel,fontname)" identifier (argument_list "(fontsel,fontname)" ( identifier , identifier ))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50)" identifier = (call_expression "g_type_check_instance_cast(fontsel->ok_button,0x50)" identifier (argument_list "(fontsel->ok_button,0x50)" ( (field_expression "fontsel->ok_button" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "g_object_set_data(uVar4,"user-data",fontsel);" (call_expression "g_object_set_data(uVar4,"user-data",fontsel)" identifier (argument_list "(uVar4,"user-data",fontsel)" ( identifier , (string_literal ""user-data"" " string_content ") , identifier ))) ;) (expression_statement "fontsel->user_data = piVar3;" (assignment_expression "fontsel->user_data = piVar3" (field_expression "fontsel->user_data" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50)" identifier = (call_expression "g_type_check_instance_cast(fontsel->ok_button,0x50)" identifier (argument_list "(fontsel->ok_button,0x50)" ( (field_expression "fontsel->ok_button" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0);" (call_expression "g_signal_connect_data(uVar4,"clicked",fontsel_ok,data,0,0)" identifier (argument_list "(uVar4,"clicked",fontsel_ok,data,0,0)" ( identifier , (string_literal ""clicked"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(fontsel->ok_button,0x50)" identifier = (call_expression "g_type_check_instance_cast(fontsel->ok_button,0x50)" identifier (argument_list "(fontsel->ok_button,0x50)" ( (field_expression "fontsel->ok_button" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);" (call_expression "g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2)" identifier (argument_list "(uVar4,"clicked",unifontsel_destroy,fontsel,0,2)" ( identifier , (string_literal ""clicked"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(fontsel->cancel_button,0x50)" identifier = (call_expression "g_type_check_instance_cast(fontsel->cancel_button,0x50)" identifier (argument_list "(fontsel->cancel_button,0x50)" ( (field_expression "fontsel->cancel_button" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);" (call_expression "g_signal_connect_data(uVar4,"clicked",unifontsel_destroy,fontsel,0,2)" identifier (argument_list "(uVar4,"clicked",unifontsel_destroy,fontsel,0,2)" ( identifier , (string_literal ""clicked"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(fontsel->window,uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(fontsel->window,uVar2)" identifier = (call_expression "g_type_check_instance_cast(fontsel->window,uVar2)" identifier (argument_list "(fontsel->window,uVar2)" ( (field_expression "fontsel->window" identifier -> field_identifier) , identifier )))) ;) (expression_statement "gtk_widget_show(uVar2);" (call_expression "gtk_widget_show(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (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_000a2ed0(undefined4 param_1,int param_2)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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_000a2ed0(undefined4 param_1,int param_2)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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_000a2ed0(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  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * 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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\n        return;\n      }" { (expression_statement "iVar4 = *(int *)*piVar5;" (assignment_expression "iVar4 = *(int *)*piVar5" identifier = (pointer_expression "*(int *)*piVar5" * (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier)))) ;) (if_statement "if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }" if (parenthesized_expression "(iVar4 == 7)" ( (binary_expression "iVar4 == 7" identifier == number_literal) )) (compound_statement "{\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }" { (expression_statement "iVar4 = ((int *)*piVar5)[9];" (assignment_expression "iVar4 = ((int *)*piVar5)[9]" identifier = (subscript_expression "((int *)*piVar5)[9]" (parenthesized_expression "((int *)*piVar5)" ( (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier)) )) [ number_literal ])) ;) (expression_statement "uVar6 = gtk_window_get_type();" (assignment_expression "uVar6 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);" (assignment_expression "uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x18),uVar6)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);" (assignment_expression "uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" identifier = (call_expression "gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" identifier (argument_list "(*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" ( (pointer_expression "*(undefined4 *)(*piVar5 + 0x28)" * (cast_expression "(undefined4 *)(*piVar5 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar5 + 0x28)" ( (binary_expression "*piVar5 + 0x28" (pointer_expression "*piVar5" * identifier) + number_literal) )))) , identifier , (binary_expression "iVar4 != 0" identifier != number_literal) , (string_literal ""_Cancel"" " string_content ") , number_literal , (string_literal ""_Open"" " string_content ") , number_literal , number_literal )))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(uVar7,uVar6);" (assignment_expression "uVar6 = g_type_check_instance_cast(uVar7,uVar6)" identifier = (call_expression "g_type_check_instance_cast(uVar7,uVar6)" identifier (argument_list "(uVar7,uVar6)" ( identifier , identifier )))) ;) (expression_statement "gtk_window_set_modal(uVar6,1);" (call_expression "gtk_window_set_modal(uVar6,1)" identifier (argument_list "(uVar6,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(uVar7,0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(uVar7,0x50)" identifier = (call_expression "g_type_check_instance_cast(uVar7,0x50)" identifier (argument_list "(uVar7,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_object_set_data(uVar6,"user-data",piVar5);" (call_expression "g_object_set_data(uVar6,"user-data",piVar5)" identifier (argument_list "(uVar6,"user-data",piVar5)" ( identifier , (string_literal ""user-data"" " string_content ") , identifier ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(uVar7,0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(uVar7,0x50)" identifier = (call_expression "g_type_check_instance_cast(uVar7,0x50)" identifier (argument_list "(uVar7,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);" (call_expression "g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0)" identifier (argument_list "(uVar6,"response",FUN_000a2c90,param_2,0,0)" ( identifier , (string_literal ""response"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "gtk_widget_show(uVar7);" (call_expression "gtk_widget_show(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "iVar4 = *(int *)*piVar5;" (assignment_expression "iVar4 = *(int *)*piVar5" identifier = (pointer_expression "*(int *)*piVar5" * (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier)))) ;) })) (if_statement "if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }" if (parenthesized_expression "(iVar4 == 8)" ( (binary_expression "iVar4 == 8" identifier == number_literal) )) (compound_statement "{\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }" { (expression_statement "uVar6 = gtk_entry_get_type();" (assignment_expression "uVar6 = gtk_entry_get_type()" identifier = (call_expression "gtk_entry_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);" (assignment_expression "uVar6 = g_type_check_instance_cast(piVar5[4],uVar6)" identifier = (call_expression "g_type_check_instance_cast(piVar5[4],uVar6)" identifier (argument_list "(piVar5[4],uVar6)" ( (subscript_expression "piVar5[4]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "uVar6 = gtk_entry_get_text(uVar6);" (assignment_expression "uVar6 = gtk_entry_get_text(uVar6)" identifier = (call_expression "gtk_entry_get_text(uVar6)" identifier (argument_list "(uVar6)" ( identifier )))) ;) (expression_statement "puVar8 = (undefined4 *)FUN_000aef90("Select a font");" (assignment_expression "puVar8 = (undefined4 *)FUN_000aef90("Select a font")" identifier = (cast_expression "(undefined4 *)FUN_000aef90("Select a font")" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000aef90("Select a font")" identifier (argument_list "("Select a font")" ( (string_literal ""Select a font"" " string_content ") ))))) ;) (expression_statement "gtk_window_set_modal(puVar8[1],1);" (call_expression "gtk_window_set_modal(puVar8[1],1)" identifier (argument_list "(puVar8[1],1)" ( (subscript_expression "puVar8[1]" identifier [ number_literal ]) , number_literal ))) ;) (expression_statement "FUN_000afd60(puVar8,uVar6);" (call_expression "FUN_000afd60(puVar8,uVar6)" identifier (argument_list "(puVar8,uVar6)" ( identifier , identifier ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[2],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[2],0x50)" identifier = (call_expression "g_type_check_instance_cast(puVar8[2],0x50)" identifier (argument_list "(puVar8[2],0x50)" ( (subscript_expression "puVar8[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "g_object_set_data(uVar6,"user-data",puVar8);" (call_expression "g_object_set_data(uVar6,"user-data",puVar8)" identifier (argument_list "(uVar6,"user-data",puVar8)" ( identifier , (string_literal ""user-data"" " string_content ") , identifier ))) ;) (expression_statement "*puVar8 = piVar5;" (assignment_expression "*puVar8 = piVar5" (pointer_expression "*puVar8" * identifier) = identifier) ;) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[2],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[2],0x50)" identifier = (call_expression "g_type_check_instance_cast(puVar8[2],0x50)" identifier (argument_list "(puVar8[2],0x50)" ( (subscript_expression "puVar8[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);" (call_expression "g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0)" identifier (argument_list "(uVar6,"clicked",FUN_000a3120,param_2,0,0)" ( identifier , (string_literal ""clicked"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[2],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[2],0x50)" identifier = (call_expression "g_type_check_instance_cast(puVar8[2],0x50)" identifier (argument_list "(puVar8[2],0x50)" ( (subscript_expression "puVar8[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);" (call_expression "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" identifier (argument_list "(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" ( identifier , (string_literal ""clicked"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[3],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[3],0x50)" identifier = (call_expression "g_type_check_instance_cast(puVar8[3],0x50)" identifier (argument_list "(puVar8[3],0x50)" ( (subscript_expression "puVar8[3]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);" (call_expression "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" identifier (argument_list "(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" ( identifier , (string_literal ""clicked"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(puVar8[1],uVar2)" identifier = (call_expression "g_type_check_instance_cast(puVar8[1],uVar2)" identifier (argument_list "(puVar8[1],uVar2)" ( (subscript_expression "puVar8[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "gtk_widget_show(uVar2);" (call_expression "gtk_widget_show(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (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) ;) (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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )) [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) , IDENT , (binary_expression IDENT != LIT) , (string_literal " string_content ") , LIT , (string_literal " string_content ") , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (string_literal " string_content ") ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (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_000a2ed0(undefined4 param_1,int param_2)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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_000a2ed0(undefined4 param_1,int param_2)" (identifier "FUN_000a2ed0") (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  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\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        iVar4 = *(int *)*piVar5;\n        if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }\n        if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }\n        return;\n      }" ({ "{") (expression_statement "iVar4 = *(int *)*piVar5;" (assignment_expression "iVar4 = *(int *)*piVar5" (identifier "iVar4") (= "=") (pointer_expression "*(int *)*piVar5" (* "*") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))))) (; ";")) (if_statement "if (iVar4 == 7) {\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }" (if "if") (parenthesized_expression "(iVar4 == 7)" (( "(") (binary_expression "iVar4 == 7" (identifier "iVar4") (== "==") (number_literal "7")) () ")")) (compound_statement "{\n          iVar4 = ((int *)*piVar5)[9];\n          uVar6 = gtk_window_get_type();\n          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);\n          uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);\n          uVar6 = g_type_check_instance_cast(uVar7,uVar6);\n          gtk_window_set_modal(uVar6,1);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_object_set_data(uVar6,"user-data",piVar5);\n          uVar6 = g_type_check_instance_cast(uVar7,0x50);\n          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);\n          gtk_widget_show(uVar7);\n          iVar4 = *(int *)*piVar5;\n        }" ({ "{") (expression_statement "iVar4 = ((int *)*piVar5)[9];" (assignment_expression "iVar4 = ((int *)*piVar5)[9]" (identifier "iVar4") (= "=") (subscript_expression "((int *)*piVar5)[9]" (parenthesized_expression "((int *)*piVar5)" (( "(") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) () ")")) ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "uVar6 = gtk_window_get_type();" (assignment_expression "uVar6 = gtk_window_get_type()" (identifier "uVar6") (= "=") (call_expression "gtk_window_get_type()" (identifier "gtk_window_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);" (assignment_expression "uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6)" (identifier "uVar7") (= "=") (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined4 *)(param_2 + 0x18),uVar6)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (identifier "uVar6") () ")")))) (; ";")) (expression_statement "uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0);" (assignment_expression "uVar7 = gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" (identifier "uVar7") (= "=") (call_expression "gtk_file_chooser_dialog_new\n                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" (identifier "gtk_file_chooser_dialog_new") (argument_list "(*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,\n                             "_Open",0xfffffffd,0)" (( "(") (pointer_expression "*(undefined4 *)(*piVar5 + 0x28)" (* "*") (cast_expression "(undefined4 *)(*piVar5 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar5 + 0x28)" (( "(") (binary_expression "*piVar5 + 0x28" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (+ "+") (number_literal "0x28")) () ")")))) (, ",") (identifier "uVar7") (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) (, ",") (string_literal ""_Cancel"" (" """) (string_content "_Cancel") (" """)) (, ",") (number_literal "0xfffffffa") (, ",") (string_literal ""_Open"" (" """) (string_content "_Open") (" """)) (, ",") (number_literal "0xfffffffd") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "uVar6 = g_type_check_instance_cast(uVar7,uVar6);" (assignment_expression "uVar6 = g_type_check_instance_cast(uVar7,uVar6)" (identifier "uVar6") (= "=") (call_expression "g_type_check_instance_cast(uVar7,uVar6)" (identifier "g_type_check_instance_cast") (argument_list "(uVar7,uVar6)" (( "(") (identifier "uVar7") (, ",") (identifier "uVar6") () ")")))) (; ";")) (expression_statement "gtk_window_set_modal(uVar6,1);" (call_expression "gtk_window_set_modal(uVar6,1)" (identifier "gtk_window_set_modal") (argument_list "(uVar6,1)" (( "(") (identifier "uVar6") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "uVar6 = g_type_check_instance_cast(uVar7,0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(uVar7,0x50)" (identifier "uVar6") (= "=") (call_expression "g_type_check_instance_cast(uVar7,0x50)" (identifier "g_type_check_instance_cast") (argument_list "(uVar7,0x50)" (( "(") (identifier "uVar7") (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_object_set_data(uVar6,"user-data",piVar5);" (call_expression "g_object_set_data(uVar6,"user-data",piVar5)" (identifier "g_object_set_data") (argument_list "(uVar6,"user-data",piVar5)" (( "(") (identifier "uVar6") (, ",") (string_literal ""user-data"" (" """) (string_content "user-data") (" """)) (, ",") (identifier "piVar5") () ")"))) (; ";")) (expression_statement "uVar6 = g_type_check_instance_cast(uVar7,0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(uVar7,0x50)" (identifier "uVar6") (= "=") (call_expression "g_type_check_instance_cast(uVar7,0x50)" (identifier "g_type_check_instance_cast") (argument_list "(uVar7,0x50)" (( "(") (identifier "uVar7") (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);" (call_expression "g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0)" (identifier "g_signal_connect_data") (argument_list "(uVar6,"response",FUN_000a2c90,param_2,0,0)" (( "(") (identifier "uVar6") (, ",") (string_literal ""response"" (" """) (string_content "response") (" """)) (, ",") (identifier "FUN_000a2c90") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "gtk_widget_show(uVar7);" (call_expression "gtk_widget_show(uVar7)" (identifier "gtk_widget_show") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)*piVar5;" (assignment_expression "iVar4 = *(int *)*piVar5" (identifier "iVar4") (= "=") (pointer_expression "*(int *)*piVar5" (* "*") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))))) (; ";")) (} "}"))) (if_statement "if (iVar4 == 8) {\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }" (if "if") (parenthesized_expression "(iVar4 == 8)" (( "(") (binary_expression "iVar4 == 8" (identifier "iVar4") (== "==") (number_literal "8")) () ")")) (compound_statement "{\n          uVar6 = gtk_entry_get_type();\n          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);\n          uVar6 = gtk_entry_get_text(uVar6);\n          puVar8 = (undefined4 *)FUN_000aef90("Select a font");\n          gtk_window_set_modal(puVar8[1],1);\n          FUN_000afd60(puVar8,uVar6);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_object_set_data(uVar6,"user-data",puVar8);\n          *puVar8 = piVar5;\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);\n          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);\n          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);\n          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);\n          gtk_widget_show(uVar2);\n          return;\n        }" ({ "{") (expression_statement "uVar6 = gtk_entry_get_type();" (assignment_expression "uVar6 = gtk_entry_get_type()" (identifier "uVar6") (= "=") (call_expression "gtk_entry_get_type()" (identifier "gtk_entry_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);" (assignment_expression "uVar6 = g_type_check_instance_cast(piVar5[4],uVar6)" (identifier "uVar6") (= "=") (call_expression "g_type_check_instance_cast(piVar5[4],uVar6)" (identifier "g_type_check_instance_cast") (argument_list "(piVar5[4],uVar6)" (( "(") (subscript_expression "piVar5[4]" (identifier "piVar5") ([ "[") (number_literal "4") (] "]")) (, ",") (identifier "uVar6") () ")")))) (; ";")) (expression_statement "uVar6 = gtk_entry_get_text(uVar6);" (assignment_expression "uVar6 = gtk_entry_get_text(uVar6)" (identifier "uVar6") (= "=") (call_expression "gtk_entry_get_text(uVar6)" (identifier "gtk_entry_get_text") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")")))) (; ";")) (expression_statement "puVar8 = (undefined4 *)FUN_000aef90("Select a font");" (assignment_expression "puVar8 = (undefined4 *)FUN_000aef90("Select a font")" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)FUN_000aef90("Select a font")" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000aef90("Select a font")" (identifier "FUN_000aef90") (argument_list "("Select a font")" (( "(") (string_literal ""Select a font"" (" """) (string_content "Select a font") (" """)) () ")"))))) (; ";")) (expression_statement "gtk_window_set_modal(puVar8[1],1);" (call_expression "gtk_window_set_modal(puVar8[1],1)" (identifier "gtk_window_set_modal") (argument_list "(puVar8[1],1)" (( "(") (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]")) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "FUN_000afd60(puVar8,uVar6);" (call_expression "FUN_000afd60(puVar8,uVar6)" (identifier "FUN_000afd60") (argument_list "(puVar8,uVar6)" (( "(") (identifier "puVar8") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[2],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[2],0x50)" (identifier "uVar6") (= "=") (call_expression "g_type_check_instance_cast(puVar8[2],0x50)" (identifier "g_type_check_instance_cast") (argument_list "(puVar8[2],0x50)" (( "(") (subscript_expression "puVar8[2]" (identifier "puVar8") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_object_set_data(uVar6,"user-data",puVar8);" (call_expression "g_object_set_data(uVar6,"user-data",puVar8)" (identifier "g_object_set_data") (argument_list "(uVar6,"user-data",puVar8)" (( "(") (identifier "uVar6") (, ",") (string_literal ""user-data"" (" """) (string_content "user-data") (" """)) (, ",") (identifier "puVar8") () ")"))) (; ";")) (expression_statement "*puVar8 = piVar5;" (assignment_expression "*puVar8 = piVar5" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (identifier "piVar5")) (; ";")) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[2],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[2],0x50)" (identifier "uVar6") (= "=") (call_expression "g_type_check_instance_cast(puVar8[2],0x50)" (identifier "g_type_check_instance_cast") (argument_list "(puVar8[2],0x50)" (( "(") (subscript_expression "puVar8[2]" (identifier "puVar8") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);" (call_expression "g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0)" (identifier "g_signal_connect_data") (argument_list "(uVar6,"clicked",FUN_000a3120,param_2,0,0)" (( "(") (identifier "uVar6") (, ",") (string_literal ""clicked"" (" """) (string_content "clicked") (" """)) (, ",") (identifier "FUN_000a3120") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[2],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[2],0x50)" (identifier "uVar6") (= "=") (call_expression "g_type_check_instance_cast(puVar8[2],0x50)" (identifier "g_type_check_instance_cast") (argument_list "(puVar8[2],0x50)" (( "(") (subscript_expression "puVar8[2]" (identifier "puVar8") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);" (call_expression "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" (identifier "g_signal_connect_data") (argument_list "(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" (( "(") (identifier "uVar6") (, ",") (string_literal ""clicked"" (" """) (string_content "clicked") (" """)) (, ",") (identifier "FUN_000afce0") (, ",") (identifier "puVar8") (, ",") (number_literal "0") (, ",") (number_literal "2") () ")"))) (; ";")) (expression_statement "uVar6 = g_type_check_instance_cast(puVar8[3],0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(puVar8[3],0x50)" (identifier "uVar6") (= "=") (call_expression "g_type_check_instance_cast(puVar8[3],0x50)" (identifier "g_type_check_instance_cast") (argument_list "(puVar8[3],0x50)" (( "(") (subscript_expression "puVar8[3]" (identifier "puVar8") ([ "[") (number_literal "3") (] "]")) (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);" (call_expression "g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" (identifier "g_signal_connect_data") (argument_list "(uVar6,"clicked",FUN_000afce0,puVar8,0,2)" (( "(") (identifier "uVar6") (, ",") (string_literal ""clicked"" (" """) (string_content "clicked") (" """)) (, ",") (identifier "FUN_000afce0") (, ",") (identifier "puVar8") (, ",") (number_literal "0") (, ",") (number_literal "2") () ")"))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(puVar8[1],uVar2)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(puVar8[1],uVar2)" (identifier "g_type_check_instance_cast") (argument_list "(puVar8[1],uVar2)" (( "(") (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "gtk_widget_show(uVar2);" (call_expression "gtk_widget_show(uVar2)" (identifier "gtk_widget_show") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (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_18;
  type_5 *var_3;
  int *var_5;
  type_4 uVar4;
  type_4 uVar5;
  int var_6;
  char *fontname;
  type_6 *fontsel;
  
  uVar2 = var_1();
  var_18 = (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_18,uctrl_cmp_bywidget_find);
      if (var_5 != (int *)0x0) {
        var_6 = *(int *)*var_5;
        if (var_6 == 7) {
          var_6 = ((int *)*var_5)[9];
          uVar4 = var_7();
          uVar5 = var_2(*(type_4 *)((int)data + 0x18),uVar4);
          uVar5 = var_8
                            (*(type_4 *)(*var_5 + 0x28),uVar5,var_6 != 0,"_Cancel",0xfffffffa,
                             "_Open",0xfffffffd,0);
          uVar4 = var_2(uVar5,uVar4);
          var_9(uVar4,1);
          uVar4 = var_2(uVar5,0x50);
          var_10(uVar4,"user-data",var_5);
          uVar4 = var_2(uVar5,0x50);
          var_11(uVar4,"response",filechoose_response,data,0,0);
          var_12(uVar5);
          var_6 = *(int *)*var_5;
        }
        if (var_6 == 8) {
          uVar4 = var_13();
          uVar4 = var_2(var_5[4],uVar4);
          fontname = (char *)var_14(uVar4);
          fontsel = var_15("Select a font");
          var_9(fontsel->window,1);
          var_16(fontsel,fontname);
          uVar4 = var_2(fontsel->ok_button,0x50);
          var_10(uVar4,"user-data",fontsel);
          fontsel->user_data = var_5;
          uVar4 = var_2(fontsel->ok_button,0x50);
          var_11(uVar4,"clicked",fontsel_ok,data,0,0);
          uVar4 = var_2(fontsel->ok_button,0x50);
          var_11(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);
          uVar4 = var_2(fontsel->cancel_button,0x50);
          var_11(uVar4,"clicked",unifontsel_destroy,fontsel,0,2);
          uVar2 = var_2(fontsel->window,uVar2);
          var_12(uVar2);
          return;
        }
        return;
      }
      var_18 = (void *)var_17(var_18);
      if (var_18 == (void *)0x0) break;
      var_3 = *(type_5 **)((int)data + 4);
    }
  }
                    /* WARNING: Does not return */
  pcVar1 = (type_3 *)var_19();
  (*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))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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 (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) index: (number_literal)))) (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 (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))))) (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: (pointer_expression argument: (identifier)) right: (number_literal))))) (identifier) (binary_expression left: (identifier) right: (number_literal)) (string_literal (string_content)) (number_literal) (string_literal (string_content)) (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier) (number_literal) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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 (string_literal (string_content))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (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;
  undefined4 uVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  
  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) {
        iVar4 = *(int *)*piVar5;
        if (iVar4 == 7) {
          iVar4 = ((int *)*piVar5)[9];
          uVar6 = gtk_window_get_type();
          uVar7 = g_type_check_instance_cast(*(undefined4 *)(param_2 + 0x18),uVar6);
          uVar7 = gtk_file_chooser_dialog_new
                            (*(undefined4 *)(*piVar5 + 0x28),uVar7,iVar4 != 0,"_Cancel",0xfffffffa,
                             "_Open",0xfffffffd,0);
          uVar6 = g_type_check_instance_cast(uVar7,uVar6);
          gtk_window_set_modal(uVar6,1);
          uVar6 = g_type_check_instance_cast(uVar7,0x50);
          g_object_set_data(uVar6,"user-data",piVar5);
          uVar6 = g_type_check_instance_cast(uVar7,0x50);
          g_signal_connect_data(uVar6,"response",FUN_000a2c90,param_2,0,0);
          gtk_widget_show(uVar7);
          iVar4 = *(int *)*piVar5;
        }
        if (iVar4 == 8) {
          uVar6 = gtk_entry_get_type();
          uVar6 = g_type_check_instance_cast(piVar5[4],uVar6);
          uVar6 = gtk_entry_get_text(uVar6);
          puVar8 = (undefined4 *)FUN_000aef90("Select a font");
          gtk_window_set_modal(puVar8[1],1);
          FUN_000afd60(puVar8,uVar6);
          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);
          g_object_set_data(uVar6,"user-data",puVar8);
          *puVar8 = piVar5;
          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);
          g_signal_connect_data(uVar6,"clicked",FUN_000a3120,param_2,0,0);
          uVar6 = g_type_check_instance_cast(puVar8[2],0x50);
          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);
          uVar6 = g_type_check_instance_cast(puVar8[3],0x50);
          g_signal_connect_data(uVar6,"clicked",FUN_000afce0,puVar8,0,2);
          uVar2 = g_type_check_instance_cast(puVar8[1],uVar2);
          gtk_widget_show(uVar2);
          return;
        }
        return;
      }
      iVar3 = gtk_widget_get_parent(iVar3);
      if (iVar3 == 0) break;
      iVar4 = *(int *)(param_2 + 4);
    }
  }
                    /* WARNING: Does not return */
  pcVar1 = (code *)invalidInstructionException();
  (*pcVar1)();
}

