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

void treeselection_changed(GtkTreeSelection *treeselection,gpointer data)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int *piVar6;
  int *piVar7;
  int in_GS_OFFSET;
  GtkTreeModel *treemodel;
  gint spindex;
  GtkTreeIter treeiter;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar4 = gtk_tree_selection_get_selected(treeselection,&treemodel,&treeiter);
  if (iVar4 != 0) {
    iVar4 = 0;
    gtk_tree_model_get(treemodel,&treeiter,1,&spindex,0xffffffff);
    piVar7 = (int *)((int)data + spindex * 0x614);
    uVar5 = gtk_notebook_page_num(piVar7[1],piVar7[2]);
    gtk_notebook_set_current_page(piVar7[1],uVar5);
    puVar2 = (undefined4 *)*piVar7;
    while( true ) {
      piVar6 = (int *)index234((tree234 *)*puVar2,iVar4);
      if (piVar6 == (int *)0x0) break;
      iVar3 = *piVar6;
      if (iVar3 == 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");
      }
      if (*(code **)(iVar3 + 0x10) != (code *)0x0) {
        (**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0);
      }
      iVar4 = iVar4 + 1;
    }
    *(int **)(*piVar7 + 0x14) = piVar7 + 5;
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_000591c0(undefined4 param_1,int param_2)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int *piVar5;
  int *piVar6;
  int in_GS_OFFSET;
  undefined4 local_38;
  int local_34;
  undefined1 local_30 [16];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x591c9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);
  if (iVar3 != 0) {
    iVar3 = 0;
    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);
    piVar6 = (int *)(param_2 + local_34 * 0x614);
    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);
    gtk_notebook_set_current_page(piVar6[1],uVar4);
    puVar1 = (undefined4 *)*piVar6;
    while( true ) {
      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);
      if (piVar5 == (int *)0x0) break;
      iVar2 = *piVar5;
      if (iVar2 == 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");
      }
      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {
        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);
      }
      iVar3 = iVar3 + 1;
    }
    *(int **)(*piVar6 + 0x14) = piVar6 + 5;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00077880();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001b410
ADD EBX,0x6c5db
SUB ESP,0x30
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x20],EAX
XOR EAX,EAX
LEA EDI,[ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x48]
PUSH EDI
LEA EAX,[ESP + 0xc]
PUSH EAX
PUSH dword ptr [ESP + 0x4c]
CALL 0x0001a3d0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00059218
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000592bb
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH -0x1
LEA EAX,[ESP + 0x18]
PUSH EAX
PUSH 0x1
PUSH EDI
XOR EDI,EDI
PUSH dword ptr [ESP + 0x20]
CALL 0x0001adb0
IMUL EAX,dword ptr [ESP + 0x28],0x614
ADD ESP,0x18
ADD ESI,EAX
PUSH dword ptr [ESI + 0x8]
PUSH dword ptr [ESI + 0x4]
CALL 0x0001aa90
POP EDX
POP ECX
PUSH EAX
PUSH dword ptr [ESI + 0x4]
CALL 0x00019e80
MOV EBP,dword ptr [ESI]
ADD ESP,0x10
JMP 0x0005927c
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0005929c
MOV EDX,dword ptr [EAX + 0x10]
TEST EDX,EDX
JZ 0x00059279
PUSH 0x0
PUSH dword ptr [EBP + 0x8]
PUSH EBP
PUSH EAX
CALL EDX
ADD ESP,0x10
ADD EDI,0x1
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [EBP]
CALL 0x00054040
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00059260
MOV EAX,dword ptr [ESI]
ADD ESI,0x14
MOV dword ptr [EAX + 0x14],ESI
JMP 0x000591fc
LEA EAX,[EBX + 0xfffcf580]
PUSH EAX
LEA EAX,[EBX + 0xfffce278]
PUSH 0x481
PUSH EAX
LEA EAX,[EBX + 0xfffce2d9]
PUSH EAX
CALL 0x0001af20
CALL 0x00077880
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000591c0(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int *piVar6;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  int local_34;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x591c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);\n  if (iVar3 != 0) {\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}\n\n" comment (function_definition "void FUN_000591c0(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int *piVar6;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  int local_34;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x591c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);\n  if (iVar3 != 0) {\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}" primitive_type (function_declarator "FUN_000591c0(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  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int *piVar6;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  int local_34;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x591c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);\n  if (iVar3 != 0) {\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "undefined1 local_30 [16];" type_identifier (array_declarator "local_30 [16]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x591c9;" (assignment_expression "uStack_14 = 0x591c9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);" (assignment_expression "iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30)" identifier = (call_expression "gtk_tree_selection_get_selected(param_1,&local_38,local_30)" identifier (argument_list "(param_1,&local_38,local_30)" ( identifier , (pointer_expression "&local_38" & identifier) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);" (call_expression "gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff)" identifier (argument_list "(local_38,local_30,1,&local_34,0xffffffff)" ( identifier , identifier , number_literal , (pointer_expression "&local_34" & identifier) , number_literal ))) ;) (expression_statement "piVar6 = (int *)(param_2 + local_34 * 0x614);" (assignment_expression "piVar6 = (int *)(param_2 + local_34 * 0x614)" identifier = (cast_expression "(int *)(param_2 + local_34 * 0x614)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + local_34 * 0x614)" ( (binary_expression "param_2 + local_34 * 0x614" identifier + (binary_expression "local_34 * 0x614" identifier * number_literal)) )))) ;) (expression_statement "uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);" (assignment_expression "uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2])" identifier = (call_expression "gtk_notebook_page_num(piVar6[1],piVar6[2])" identifier (argument_list "(piVar6[1],piVar6[2])" ( (subscript_expression "piVar6[1]" identifier [ number_literal ]) , (subscript_expression "piVar6[2]" identifier [ number_literal ]) )))) ;) (expression_statement "gtk_notebook_set_current_page(piVar6[1],uVar4);" (call_expression "gtk_notebook_set_current_page(piVar6[1],uVar4)" identifier (argument_list "(piVar6[1],uVar4)" ( (subscript_expression "piVar6[1]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "puVar1 = (undefined4 *)*piVar6;" (assignment_expression "puVar1 = (undefined4 *)*piVar6" identifier = (cast_expression "(undefined4 *)*piVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar6" * identifier))) ;) (while_statement "while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "piVar5 = (int *)FUN_00054040(*puVar1,iVar3);" (assignment_expression "piVar5 = (int *)FUN_00054040(*puVar1,iVar3)" identifier = (cast_expression "(int *)FUN_00054040(*puVar1,iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00054040(*puVar1,iVar3)" identifier (argument_list "(*puVar1,iVar3)" ( (pointer_expression "*puVar1" * identifier) , identifier ))))) ;) (if_statement "if (piVar5 == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }" { comment (expression_statement "__assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");" (call_expression "__assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh")" identifier (argument_list "("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh")" ( (string_literal ""uc->ctrl != NULL"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_refresh"" " string_content ") ))) ;) })) (if_statement "if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }" if (parenthesized_expression "(*(code **)(iVar2 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(iVar2 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(iVar2 + 0x10)" * (cast_expression "(code **)(iVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }" { (expression_statement "(**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);" (call_expression "(**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0)" (parenthesized_expression "(**(code **)(iVar2 + 0x10))" ( (pointer_expression "**(code **)(iVar2 + 0x10)" * (pointer_expression "*(code **)(iVar2 + 0x10)" * (cast_expression "(code **)(iVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) )) (argument_list "(iVar2,puVar1,puVar1[2],0)" ( identifier , identifier , (subscript_expression "puVar1[2]" identifier [ number_literal ]) , number_literal ))) ;) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*(int **)(*piVar6 + 0x14) = piVar6 + 5;" (assignment_expression "*(int **)(*piVar6 + 0x14) = piVar6 + 5" (pointer_expression "*(int **)(*piVar6 + 0x14)" * (cast_expression "(int **)(*piVar6 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x14)" ( (binary_expression "*piVar6 + 0x14" (pointer_expression "*piVar6" * identifier) + number_literal) )))) = (binary_expression "piVar6 + 5" identifier + number_literal)) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00077880();" (call_expression "FUN_00077880()" 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 treeselection_changed(GtkTreeSelection *treeselection,gpointer data)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  int *piVar7;\n  int in_GS_OFFSET;\n  GtkTreeModel *treemodel;\n  gint spindex;\n  GtkTreeIter treeiter;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = gtk_tree_selection_get_selected(treeselection,&treemodel,&treeiter);\n  if (iVar4 != 0) {\n    iVar4 = 0;\n    gtk_tree_model_get(treemodel,&treeiter,1,&spindex,0xffffffff);\n    piVar7 = (int *)((int)data + spindex * 0x614);\n    uVar5 = gtk_notebook_page_num(piVar7[1],piVar7[2]);\n    gtk_notebook_set_current_page(piVar7[1],uVar5);\n    puVar2 = (undefined4 *)*piVar7;\n    while( true ) {\n      piVar6 = (int *)index234((tree234 *)*puVar2,iVar4);\n      if (piVar6 == (int *)0x0) break;\n      iVar3 = *piVar6;\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0);\n      }\n      iVar4 = iVar4 + 1;\n    }\n    *(int **)(*piVar7 + 0x14) = piVar7 + 5;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void treeselection_changed(GtkTreeSelection *treeselection,gpointer data)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  int *piVar7;\n  int in_GS_OFFSET;\n  GtkTreeModel *treemodel;\n  gint spindex;\n  GtkTreeIter treeiter;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = gtk_tree_selection_get_selected(treeselection,&treemodel,&treeiter);\n  if (iVar4 != 0) {\n    iVar4 = 0;\n    gtk_tree_model_get(treemodel,&treeiter,1,&spindex,0xffffffff);\n    piVar7 = (int *)((int)data + spindex * 0x614);\n    uVar5 = gtk_notebook_page_num(piVar7[1],piVar7[2]);\n    gtk_notebook_set_current_page(piVar7[1],uVar5);\n    puVar2 = (undefined4 *)*piVar7;\n    while( true ) {\n      piVar6 = (int *)index234((tree234 *)*puVar2,iVar4);\n      if (piVar6 == (int *)0x0) break;\n      iVar3 = *piVar6;\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0);\n      }\n      iVar4 = iVar4 + 1;\n    }\n    *(int **)(*piVar7 + 0x14) = piVar7 + 5;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "treeselection_changed(GtkTreeSelection *treeselection,gpointer data)" identifier (parameter_list "(GtkTreeSelection *treeselection,gpointer data)" ( (parameter_declaration "GtkTreeSelection *treeselection" type_identifier (pointer_declarator "*treeselection" * identifier)) , (parameter_declaration "gpointer data" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  int *piVar7;\n  int in_GS_OFFSET;\n  GtkTreeModel *treemodel;\n  gint spindex;\n  GtkTreeIter treeiter;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = gtk_tree_selection_get_selected(treeselection,&treemodel,&treeiter);\n  if (iVar4 != 0) {\n    iVar4 = 0;\n    gtk_tree_model_get(treemodel,&treeiter,1,&spindex,0xffffffff);\n    piVar7 = (int *)((int)data + spindex * 0x614);\n    uVar5 = gtk_notebook_page_num(piVar7[1],piVar7[2]);\n    gtk_notebook_set_current_page(piVar7[1],uVar5);\n    puVar2 = (undefined4 *)*piVar7;\n    while( true ) {\n      piVar6 = (int *)index234((tree234 *)*puVar2,iVar4);\n      if (piVar6 == (int *)0x0) break;\n      iVar3 = *piVar6;\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0);\n      }\n      iVar4 = iVar4 + 1;\n    }\n    *(int **)(*piVar7 + 0x14) = piVar7 + 5;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "GtkTreeModel *treemodel;" type_identifier (pointer_declarator "*treemodel" * identifier) ;) (declaration "gint spindex;" type_identifier identifier ;) (declaration "GtkTreeIter treeiter;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = gtk_tree_selection_get_selected(treeselection,&treemodel,&treeiter);" (assignment_expression "iVar4 = gtk_tree_selection_get_selected(treeselection,&treemodel,&treeiter)" identifier = (call_expression "gtk_tree_selection_get_selected(treeselection,&treemodel,&treeiter)" identifier (argument_list "(treeselection,&treemodel,&treeiter)" ( identifier , (pointer_expression "&treemodel" & identifier) , (pointer_expression "&treeiter" & identifier) )))) ;) (if_statement "if (iVar4 != 0) {\n    iVar4 = 0;\n    gtk_tree_model_get(treemodel,&treeiter,1,&spindex,0xffffffff);\n    piVar7 = (int *)((int)data + spindex * 0x614);\n    uVar5 = gtk_notebook_page_num(piVar7[1],piVar7[2]);\n    gtk_notebook_set_current_page(piVar7[1],uVar5);\n    puVar2 = (undefined4 *)*piVar7;\n    while( true ) {\n      piVar6 = (int *)index234((tree234 *)*puVar2,iVar4);\n      if (piVar6 == (int *)0x0) break;\n      iVar3 = *piVar6;\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0);\n      }\n      iVar4 = iVar4 + 1;\n    }\n    *(int **)(*piVar7 + 0x14) = piVar7 + 5;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = 0;\n    gtk_tree_model_get(treemodel,&treeiter,1,&spindex,0xffffffff);\n    piVar7 = (int *)((int)data + spindex * 0x614);\n    uVar5 = gtk_notebook_page_num(piVar7[1],piVar7[2]);\n    gtk_notebook_set_current_page(piVar7[1],uVar5);\n    puVar2 = (undefined4 *)*piVar7;\n    while( true ) {\n      piVar6 = (int *)index234((tree234 *)*puVar2,iVar4);\n      if (piVar6 == (int *)0x0) break;\n      iVar3 = *piVar6;\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0);\n      }\n      iVar4 = iVar4 + 1;\n    }\n    *(int **)(*piVar7 + 0x14) = piVar7 + 5;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "gtk_tree_model_get(treemodel,&treeiter,1,&spindex,0xffffffff);" (call_expression "gtk_tree_model_get(treemodel,&treeiter,1,&spindex,0xffffffff)" identifier (argument_list "(treemodel,&treeiter,1,&spindex,0xffffffff)" ( identifier , (pointer_expression "&treeiter" & identifier) , number_literal , (pointer_expression "&spindex" & identifier) , number_literal ))) ;) (expression_statement "piVar7 = (int *)((int)data + spindex * 0x614);" (assignment_expression "piVar7 = (int *)((int)data + spindex * 0x614)" identifier = (cast_expression "(int *)((int)data + spindex * 0x614)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + spindex * 0x614)" ( (binary_expression "(int)data + spindex * 0x614" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "spindex * 0x614" identifier * number_literal)) )))) ;) (expression_statement "uVar5 = gtk_notebook_page_num(piVar7[1],piVar7[2]);" (assignment_expression "uVar5 = gtk_notebook_page_num(piVar7[1],piVar7[2])" identifier = (call_expression "gtk_notebook_page_num(piVar7[1],piVar7[2])" identifier (argument_list "(piVar7[1],piVar7[2])" ( (subscript_expression "piVar7[1]" identifier [ number_literal ]) , (subscript_expression "piVar7[2]" identifier [ number_literal ]) )))) ;) (expression_statement "gtk_notebook_set_current_page(piVar7[1],uVar5);" (call_expression "gtk_notebook_set_current_page(piVar7[1],uVar5)" identifier (argument_list "(piVar7[1],uVar5)" ( (subscript_expression "piVar7[1]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)*piVar7;" (assignment_expression "puVar2 = (undefined4 *)*piVar7" identifier = (cast_expression "(undefined4 *)*piVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar7" * identifier))) ;) (while_statement "while( true ) {\n      piVar6 = (int *)index234((tree234 *)*puVar2,iVar4);\n      if (piVar6 == (int *)0x0) break;\n      iVar3 = *piVar6;\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0);\n      }\n      iVar4 = iVar4 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar6 = (int *)index234((tree234 *)*puVar2,iVar4);\n      if (piVar6 == (int *)0x0) break;\n      iVar3 = *piVar6;\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0);\n      }\n      iVar4 = iVar4 + 1;\n    }" { (expression_statement "piVar6 = (int *)index234((tree234 *)*puVar2,iVar4);" (assignment_expression "piVar6 = (int *)index234((tree234 *)*puVar2,iVar4)" identifier = (cast_expression "(int *)index234((tree234 *)*puVar2,iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "index234((tree234 *)*puVar2,iVar4)" identifier (argument_list "((tree234 *)*puVar2,iVar4)" ( (cast_expression "(tree234 *)*puVar2" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier)) , identifier ))))) ;) (if_statement "if (piVar6 == (int *)0x0) break;" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = *piVar6;" (assignment_expression "iVar3 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (if_statement "if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }" { comment (expression_statement "__assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");" (call_expression "__assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh")" identifier (argument_list "("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh")" ( (string_literal ""uc->ctrl != NULL"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_refresh"" " string_content ") ))) ;) })) (if_statement "if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0);\n      }" if (parenthesized_expression "(*(code **)(iVar3 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(iVar3 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(iVar3 + 0x10)" * (cast_expression "(code **)(iVar3 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0);\n      }" { (expression_statement "(**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0);" (call_expression "(**(code **)(iVar3 + 0x10))(iVar3,puVar2,puVar2[2],0)" (parenthesized_expression "(**(code **)(iVar3 + 0x10))" ( (pointer_expression "**(code **)(iVar3 + 0x10)" * (pointer_expression "*(code **)(iVar3 + 0x10)" * (cast_expression "(code **)(iVar3 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) )) (argument_list "(iVar3,puVar2,puVar2[2],0)" ( identifier , identifier , (subscript_expression "puVar2[2]" identifier [ number_literal ]) , number_literal ))) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "*(int **)(*piVar7 + 0x14) = piVar7 + 5;" (assignment_expression "*(int **)(*piVar7 + 0x14) = piVar7 + 5" (pointer_expression "*(int **)(*piVar7 + 0x14)" * (cast_expression "(int **)(*piVar7 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x14)" ( (binary_expression "*piVar7 + 0x14" (pointer_expression "*piVar7" * identifier) + number_literal) )))) = (binary_expression "piVar7 + 5" identifier + number_literal)) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_000591c0(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int *piVar6;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  int local_34;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x591c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);\n  if (iVar3 != 0) {\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}\n\n" (function_definition "void FUN_000591c0(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int *piVar6;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  int local_34;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x591c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);\n  if (iVar3 != 0) {\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" primitive_type (function_declarator "FUN_000591c0(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  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int *piVar6;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  int local_34;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x591c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);\n  if (iVar3 != 0) {\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "undefined1 local_30 [16];" type_identifier (array_declarator "local_30 [16]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x591c9;" (assignment_expression "uStack_14 = 0x591c9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);" (assignment_expression "iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30)" identifier = (call_expression "gtk_tree_selection_get_selected(param_1,&local_38,local_30)" identifier (argument_list "(param_1,&local_38,local_30)" ( identifier , (pointer_expression "&local_38" & identifier) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);" (call_expression "gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff)" identifier (argument_list "(local_38,local_30,1,&local_34,0xffffffff)" ( identifier , identifier , number_literal , (pointer_expression "&local_34" & identifier) , number_literal ))) ;) (expression_statement "piVar6 = (int *)(param_2 + local_34 * 0x614);" (assignment_expression "piVar6 = (int *)(param_2 + local_34 * 0x614)" identifier = (cast_expression "(int *)(param_2 + local_34 * 0x614)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + local_34 * 0x614)" ( (binary_expression "param_2 + local_34 * 0x614" identifier + (binary_expression "local_34 * 0x614" identifier * number_literal)) )))) ;) (expression_statement "uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);" (assignment_expression "uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2])" identifier = (call_expression "gtk_notebook_page_num(piVar6[1],piVar6[2])" identifier (argument_list "(piVar6[1],piVar6[2])" ( (subscript_expression "piVar6[1]" identifier [ number_literal ]) , (subscript_expression "piVar6[2]" identifier [ number_literal ]) )))) ;) (expression_statement "gtk_notebook_set_current_page(piVar6[1],uVar4);" (call_expression "gtk_notebook_set_current_page(piVar6[1],uVar4)" identifier (argument_list "(piVar6[1],uVar4)" ( (subscript_expression "piVar6[1]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "puVar1 = (undefined4 *)*piVar6;" (assignment_expression "puVar1 = (undefined4 *)*piVar6" identifier = (cast_expression "(undefined4 *)*piVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar6" * identifier))) ;) (while_statement "while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "piVar5 = (int *)FUN_00054040(*puVar1,iVar3);" (assignment_expression "piVar5 = (int *)FUN_00054040(*puVar1,iVar3)" identifier = (cast_expression "(int *)FUN_00054040(*puVar1,iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00054040(*puVar1,iVar3)" identifier (argument_list "(*puVar1,iVar3)" ( (pointer_expression "*puVar1" * identifier) , identifier ))))) ;) (if_statement "if (piVar5 == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }" { (expression_statement "__assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");" (call_expression "__assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh")" identifier (argument_list "("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh")" ( (string_literal ""uc->ctrl != NULL"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_refresh"" " string_content ") ))) ;) })) (if_statement "if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }" if (parenthesized_expression "(*(code **)(iVar2 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(iVar2 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(iVar2 + 0x10)" * (cast_expression "(code **)(iVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }" { (expression_statement "(**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);" (call_expression "(**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0)" (parenthesized_expression "(**(code **)(iVar2 + 0x10))" ( (pointer_expression "**(code **)(iVar2 + 0x10)" * (pointer_expression "*(code **)(iVar2 + 0x10)" * (cast_expression "(code **)(iVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) )) (argument_list "(iVar2,puVar1,puVar1[2],0)" ( identifier , identifier , (subscript_expression "puVar1[2]" identifier [ number_literal ]) , number_literal ))) ;) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*(int **)(*piVar6 + 0x14) = piVar6 + 5;" (assignment_expression "*(int **)(*piVar6 + 0x14) = piVar6 + 5" (pointer_expression "*(int **)(*piVar6 + 0x14)" * (cast_expression "(int **)(*piVar6 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x14)" ( (binary_expression "*piVar6 + 0x14" (pointer_expression "*piVar6" * identifier) + number_literal) )))) = (binary_expression "piVar6 + 5" identifier + number_literal)) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00077880();" (call_expression "FUN_00077880()" 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (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 ( (pointer_expression * IDENT) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_000591c0(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int *piVar6;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  int local_34;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x591c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);\n  if (iVar3 != 0) {\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" (primitive_type "void") (function_declarator "FUN_000591c0(undefined4 param_1,int param_2)" (identifier "FUN_000591c0") (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  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int *piVar6;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  int local_34;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x591c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);\n  if (iVar3 != 0) {\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_38;" (type_identifier "undefined4") (identifier "local_38") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "undefined1 local_30 [16];" (type_identifier "undefined1") (array_declarator "local_30 [16]" (identifier "local_30") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x591c9;" (assignment_expression "uStack_14 = 0x591c9" (identifier "uStack_14") (= "=") (number_literal "0x591c9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);" (assignment_expression "iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30)" (identifier "iVar3") (= "=") (call_expression "gtk_tree_selection_get_selected(param_1,&local_38,local_30)" (identifier "gtk_tree_selection_get_selected") (argument_list "(param_1,&local_38,local_30)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) (, ",") (identifier "local_30") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = 0;\n    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);\n    piVar6 = (int *)(param_2 + local_34 * 0x614);\n    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);\n    gtk_notebook_set_current_page(piVar6[1],uVar4);\n    puVar1 = (undefined4 *)*piVar6;\n    while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n    *(int **)(*piVar6 + 0x14) = piVar6 + 5;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);" (call_expression "gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff)" (identifier "gtk_tree_model_get") (argument_list "(local_38,local_30,1,&local_34,0xffffffff)" (( "(") (identifier "local_38") (, ",") (identifier "local_30") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (expression_statement "piVar6 = (int *)(param_2 + local_34 * 0x614);" (assignment_expression "piVar6 = (int *)(param_2 + local_34 * 0x614)" (identifier "piVar6") (= "=") (cast_expression "(int *)(param_2 + local_34 * 0x614)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + local_34 * 0x614)" (( "(") (binary_expression "param_2 + local_34 * 0x614" (identifier "param_2") (+ "+") (binary_expression "local_34 * 0x614" (identifier "local_34") (* "*") (number_literal "0x614"))) () ")")))) (; ";")) (expression_statement "uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);" (assignment_expression "uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2])" (identifier "uVar4") (= "=") (call_expression "gtk_notebook_page_num(piVar6[1],piVar6[2])" (identifier "gtk_notebook_page_num") (argument_list "(piVar6[1],piVar6[2])" (( "(") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (expression_statement "gtk_notebook_set_current_page(piVar6[1],uVar4);" (call_expression "gtk_notebook_set_current_page(piVar6[1],uVar4)" (identifier "gtk_notebook_set_current_page") (argument_list "(piVar6[1],uVar4)" (( "(") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)*piVar6;" (assignment_expression "puVar1 = (undefined4 *)*piVar6" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*piVar6" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")))) (; ";")) (while_statement "while( true ) {\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);\n      if (piVar5 == (int *)0x0) break;\n      iVar2 = *piVar5;\n      if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" ({ "{") (expression_statement "piVar5 = (int *)FUN_00054040(*puVar1,iVar3);" (assignment_expression "piVar5 = (int *)FUN_00054040(*puVar1,iVar3)" (identifier "piVar5") (= "=") (cast_expression "(int *)FUN_00054040(*puVar1,iVar3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00054040(*puVar1,iVar3)" (identifier "FUN_00054040") (argument_list "(*puVar1,iVar3)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (identifier "iVar3") () ")"))))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) break;" (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"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" (identifier "iVar2") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (if_statement "if (iVar2 == 0) {\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");\n      }" ({ "{") (expression_statement "__assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");" (call_expression "__assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh")" (identifier "__assert_fail") (argument_list "("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh")" (( "(") (string_literal ""uc->ctrl != NULL"" (" """) (string_content "uc->ctrl != NULL") (" """)) (, ",") (string_literal ""unix/gtkdlg.c"" (" """) (string_content "unix/gtkdlg.c") (" """)) (, ",") (number_literal "0x481") (, ",") (string_literal ""dlg_refresh"" (" """) (string_content "dlg_refresh") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }" (if "if") (parenthesized_expression "(*(code **)(iVar2 + 0x10) != (code *)0x0)" (( "(") (binary_expression "*(code **)(iVar2 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(iVar2 + 0x10)" (* "*") (cast_expression "(code **)(iVar2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);\n      }" ({ "{") (expression_statement "(**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);" (call_expression "(**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0)" (parenthesized_expression "(**(code **)(iVar2 + 0x10))" (( "(") (pointer_expression "**(code **)(iVar2 + 0x10)" (* "*") (pointer_expression "*(code **)(iVar2 + 0x10)" (* "*") (cast_expression "(code **)(iVar2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(iVar2,puVar1,puVar1[2],0)" (( "(") (identifier "iVar2") (, ",") (identifier "puVar1") (, ",") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(int **)(*piVar6 + 0x14) = piVar6 + 5;" (assignment_expression "*(int **)(*piVar6 + 0x14) = piVar6 + 5" (pointer_expression "*(int **)(*piVar6 + 0x14)" (* "*") (cast_expression "(int **)(*piVar6 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 0x14)" (( "(") (binary_expression "*piVar6 + 0x14" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "piVar6 + 5" (identifier "piVar6") (+ "+") (number_literal "5"))) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00077880();" (call_expression "FUN_00077880()" (identifier "FUN_00077880") (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 *treeselection,type_2 data)

{
  int var_13;
  type_3 *puVar2;
  int var_10;
  int var_3;
  type_3 uVar5;
  int *var_9;
  int *var_12;
  int var_1;
  type_4 *treemodel;
  type_5 var_5;
  type_6 treeiter;
  
  var_13 = *(int *)(var_1 + 0x14);
  var_3 = var_2(treeselection,&treemodel,&treeiter);
  if (var_3 != 0) {
    var_3 = 0;
    var_4(treemodel,&treeiter,1,&var_5,0xffffffff);
    var_12 = (int *)((int)data + var_5 * 0x614);
    uVar5 = var_6(var_12[1],var_12[2]);
    var_7(var_12[1],uVar5);
    puVar2 = (type_3 *)*var_12;
    while( true ) {
      var_9 = (int *)var_8((type_7 *)*puVar2,var_3);
      if (var_9 == (int *)0x0) break;
      var_10 = *var_9;
      if (var_10 == 0) {
                    /* WARNING: Subroutine does not return */
        var_11("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");
      }
      if (*(type_8 **)(var_10 + 0x10) != (type_8 *)0x0) {
        (**(type_8 **)(var_10 + 0x10))(var_10,puVar2,puVar2[2],0);
      }
      var_3 = var_3 + 1;
    }
    *(int **)(*var_12 + 0x14) = var_12 + 5;
  }
  if (var_13 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_14();
}


(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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (pointer_expression argument: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (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 (pointer_expression argument: (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: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_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))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (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)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int *piVar5;
  int *piVar6;
  int in_GS_OFFSET;
  undefined4 local_38;
  int local_34;
  undefined1 local_30 [16];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x591c9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = gtk_tree_selection_get_selected(param_1,&local_38,local_30);
  if (iVar3 != 0) {
    iVar3 = 0;
    gtk_tree_model_get(local_38,local_30,1,&local_34,0xffffffff);
    piVar6 = (int *)(param_2 + local_34 * 0x614);
    uVar4 = gtk_notebook_page_num(piVar6[1],piVar6[2]);
    gtk_notebook_set_current_page(piVar6[1],uVar4);
    puVar1 = (undefined4 *)*piVar6;
    while( true ) {
      piVar5 = (int *)FUN_00054040(*puVar1,iVar3);
      if (piVar5 == (int *)0x0) break;
      iVar2 = *piVar5;
      if (iVar2 == 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("uc->ctrl != NULL","unix/gtkdlg.c",0x481,"dlg_refresh");
      }
      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {
        (**(code **)(iVar2 + 0x10))(iVar2,puVar1,puVar1[2],0);
      }
      iVar3 = iVar3 + 1;
    }
    *(int **)(*piVar6 + 0x14) = piVar6 + 5;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00077880();
}

