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

int dlg_listbox_index(control *ctrl,void *dlg)

{
  code *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  int *piVar5;
  int *piVar6;
  int iVar7;
  int in_GS_OFFSET;
  GtkTreeModel *model;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
                    /* WARNING: Load size is inaccurate */
  if (*dlg == (tree234 *)0x0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);
  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"
                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");
  }
  iVar7 = puVar2[6];
  if (iVar7 != 0) {
    uVar3 = gtk_combo_box_get_type();
    uVar3 = g_type_check_instance_cast(iVar7,uVar3);
    iVar7 = gtk_combo_box_get_active(uVar3);
    goto LAB_00085c37;
  }
  iVar4 = puVar2[7];
  if (iVar4 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");
  }
  uVar3 = gtk_tree_view_get_type();
  iVar7 = -1;
  uVar3 = g_type_check_instance_cast(iVar4,uVar3);
  uVar3 = gtk_tree_view_get_selection(uVar3);
  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);
  if (iVar4 != 1) goto LAB_00085c37;
  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,&model);
  if ((piVar5 == (int *)0x0) || (iVar7 = *piVar5, iVar7 == 0)) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");
  }
  iVar4 = gtk_tree_path_get_depth(iVar7);
  if (iVar4 == 1) {
    piVar6 = (int *)gtk_tree_path_get_indices(iVar7);
    if (piVar6 == (int *)0x0) goto LAB_00085c8e;
    iVar7 = *piVar6;
  }
  else {
LAB_00085c8e:
    iVar7 = -1;
  }
  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);
  g_list_free(piVar5);
LAB_00085c37:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar7;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 FUN_00085ba0(undefined4 param_1,int *param_2)

{
  code *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  undefined4 uVar7;
  int in_GS_OFFSET;
  undefined1 local_14 [4];
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);
  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"
                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");
  }
  iVar4 = puVar2[6];
  if (iVar4 != 0) {
    uVar7 = gtk_combo_box_get_type();
    uVar7 = g_type_check_instance_cast(iVar4,uVar7);
    uVar7 = gtk_combo_box_get_active(uVar7);
    goto LAB_00085c37;
  }
  iVar4 = puVar2[7];
  if (iVar4 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");
  }
  uVar3 = gtk_tree_view_get_type();
  uVar7 = 0xffffffff;
  uVar3 = g_type_check_instance_cast(iVar4,uVar3);
  uVar3 = gtk_tree_view_get_selection(uVar3);
  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);
  if (iVar4 != 1) goto LAB_00085c37;
  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);
  if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");
  }
  iVar6 = gtk_tree_path_get_depth(iVar4);
  if (iVar6 == 1) {
    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);
    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;
    uVar7 = *puVar2;
  }
  else {
LAB_00085c8e:
    uVar7 = 0xffffffff;
  }
  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);
  g_list_free(piVar5);
LAB_00085c37:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar7;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a39d0();
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0x8aba8
SUB ESP,0x10
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0001c1e6
SUB ESP,0x4
LEA ECX,[EBX + 0xfff73a20]
PUSH ECX
PUSH EDX
PUSH EAX
CALL 0x000817b0
ADD ESP,0x10
MOV EDX,dword ptr [EAX]
MOV EDX,dword ptr [EDX]
AND EDX,0xfffffffb
CMP EDX,0x1
JNZ 0x00085cf9
MOV ESI,dword ptr [EAX + 0x18]
TEST ESI,ESI
JNZ 0x00085cb8
MOV ESI,dword ptr [EAX + 0x1c]
TEST ESI,ESI
JZ 0x00085d18
CALL 0x0001b2b0
SUB ESP,0x8
PUSH EAX
PUSH ESI
MOV ESI,0xffffffff
CALL 0x0001a5e0
MOV dword ptr [ESP],EAX
CALL 0x0001b490
MOV dword ptr [ESP],EAX
MOV EDI,EAX
CALL 0x0001b470
ADD ESP,0x10
CMP EAX,0x1
JZ 0x00085c58
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00085cf4
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
LEA EAX,[ESP + 0x10]
PUSH EAX
PUSH EDI
CALL 0x0001ad50
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00085d37
MOV ESI,dword ptr [EAX]
TEST ESI,ESI
JZ 0x00085d37
SUB ESP,0xc
PUSH ESI
CALL 0x0001b850
ADD ESP,0x10
CMP EAX,0x1
JZ 0x00085ce0
MOV ESI,0xffffffff
SUB ESP,0x4
PUSH 0x0
PUSH dword ptr [EBX + 0x86c]
PUSH EDI
CALL 0x0001b7e0
MOV dword ptr [ESP],EDI
CALL 0x0001a9c0
ADD ESP,0x10
JMP 0x00085c37
CALL 0x0001ac50
SUB ESP,0x8
PUSH EAX
PUSH ESI
CALL 0x0001a5e0
MOV dword ptr [ESP],EAX
CALL 0x0001ba30
ADD ESP,0x10
MOV ESI,EAX
JMP 0x00085c37
SUB ESP,0xc
PUSH ESI
CALL 0x0001ab10
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00085c8e
MOV ESI,dword ptr [EAX]
JMP 0x00085c93
CALL 0x000a39d0
LEA EAX,[EBX + 0xfffbb6fc]
PUSH EAX
LEA EAX,[EBX + 0xfffba351]
PUSH 0x27f
PUSH EAX
LEA EAX,[EBX + 0xfffba694]
PUSH EAX
CALL 0x0001c000
LEA EAX,[EBX + 0xfffbb6fc]
PUSH EAX
LEA EAX,[EBX + 0xfffba351]
PUSH 0x2ca
PUSH EAX
LEA EAX,[EBX + 0xfffba383]
PUSH EAX
CALL 0x0001c000
LEA EAX,[EBX + 0xfffbb6fc]
PUSH EAX
LEA EAX,[EBX + 0xfffba351]
PUSH 0x2b6
PUSH EAX
LEA EAX,[EBX + 0xfffba3bd]
PUSH EAX
CALL 0x0001c000
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00085ba0(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);\n  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }\n  iVar4 = puVar2[6];\n  if (iVar4 != 0) {\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }\n  iVar4 = puVar2[7];\n  if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }\n  uVar3 = gtk_tree_view_get_type();\n  uVar7 = 0xffffffff;\n  uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n  uVar3 = gtk_tree_view_get_selection(uVar3);\n  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);\n  if (iVar4 != 1) goto LAB_00085c37;\n  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);\n  if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }\n  iVar6 = gtk_tree_path_get_depth(iVar4);\n  if (iVar6 == 1) {\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }\n  else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }\n  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);\n  g_list_free(piVar5);\nLAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}\n\n" comment (function_definition "undefined4 FUN_00085ba0(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);\n  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }\n  iVar4 = puVar2[6];\n  if (iVar4 != 0) {\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }\n  iVar4 = puVar2[7];\n  if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }\n  uVar3 = gtk_tree_view_get_type();\n  uVar7 = 0xffffffff;\n  uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n  uVar3 = gtk_tree_view_get_selection(uVar3);\n  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);\n  if (iVar4 != 1) goto LAB_00085c37;\n  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);\n  if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }\n  iVar6 = gtk_tree_path_get_depth(iVar4);\n  if (iVar6 == 1) {\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }\n  else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }\n  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);\n  g_list_free(piVar5);\nLAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}" type_identifier (function_declarator "FUN_00085ba0(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 (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);\n  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }\n  iVar4 = puVar2[6];\n  if (iVar4 != 0) {\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }\n  iVar4 = puVar2[7];\n  if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }\n  uVar3 = gtk_tree_view_get_type();\n  uVar7 = 0xffffffff;\n  uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n  uVar3 = gtk_tree_view_get_selection(uVar3);\n  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);\n  if (iVar4 != 1) goto LAB_00085c37;\n  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);\n  if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }\n  iVar6 = gtk_tree_path_get_depth(iVar4);\n  if (iVar6 == 1) {\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }\n  else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }\n  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);\n  g_list_free(piVar5);\nLAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_14 [4];" type_identifier (array_declarator "local_14 [4]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (if_statement "if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" { 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 "()" ( ))) ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);" (assignment_expression "puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170)" identifier = (cast_expression "(undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000817b0(*param_2,param_1,FUN_00084170)" identifier (argument_list "(*param_2,param_1,FUN_00084170)" ( (pointer_expression "*param_2" * identifier) , identifier , identifier ))))) ;) (if_statement "if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }" if (parenthesized_expression "((*(uint *)*puVar2 & 0xfffffffb) != 1)" ( (binary_expression "(*(uint *)*puVar2 & 0xfffffffb) != 1" (parenthesized_expression "(*(uint *)*puVar2 & 0xfffffffb)" ( (binary_expression "*(uint *)*puVar2 & 0xfffffffb" (pointer_expression "*(uint *)*puVar2" * (cast_expression "(uint *)*puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }" { comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index")" ( (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_index"" " string_content ") ))) ;) })) (expression_statement "iVar4 = puVar2[6];" (assignment_expression "iVar4 = puVar2[6]" identifier = (subscript_expression "puVar2[6]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 != 0) {\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }" { (expression_statement "uVar7 = gtk_combo_box_get_type();" (assignment_expression "uVar7 = gtk_combo_box_get_type()" identifier = (call_expression "gtk_combo_box_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = g_type_check_instance_cast(iVar4,uVar7);" (assignment_expression "uVar7 = g_type_check_instance_cast(iVar4,uVar7)" identifier = (call_expression "g_type_check_instance_cast(iVar4,uVar7)" identifier (argument_list "(iVar4,uVar7)" ( identifier , identifier )))) ;) (expression_statement "uVar7 = gtk_combo_box_get_active(uVar7);" (assignment_expression "uVar7 = gtk_combo_box_get_active(uVar7)" identifier = (call_expression "gtk_combo_box_get_active(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) (goto_statement "goto LAB_00085c37;" goto statement_identifier ;) })) (expression_statement "iVar4 = puVar2[7];" (assignment_expression "iVar4 = puVar2[7]" identifier = (subscript_expression "puVar2[7]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }" { comment (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index")" ( (string_literal ""!\"We shouldn\'t get here\""" " string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_index"" " string_content ") ))) ;) })) (expression_statement "uVar3 = gtk_tree_view_get_type();" (assignment_expression "uVar3 = gtk_tree_view_get_type()" identifier = (call_expression "gtk_tree_view_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" identifier = number_literal) ;) (expression_statement "uVar3 = g_type_check_instance_cast(iVar4,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar4,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar4,uVar3)" identifier (argument_list "(iVar4,uVar3)" ( identifier , identifier )))) ;) (expression_statement "uVar3 = gtk_tree_view_get_selection(uVar3);" (assignment_expression "uVar3 = gtk_tree_view_get_selection(uVar3)" identifier = (call_expression "gtk_tree_view_get_selection(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "iVar4 = gtk_tree_selection_count_selected_rows(uVar3);" (assignment_expression "iVar4 = gtk_tree_selection_count_selected_rows(uVar3)" identifier = (call_expression "gtk_tree_selection_count_selected_rows(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (if_statement "if (iVar4 != 1) goto LAB_00085c37;" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (goto_statement "goto LAB_00085c37;" goto statement_identifier ;)) (expression_statement "piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);" (assignment_expression "piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14)" identifier = (cast_expression "(int *)gtk_tree_selection_get_selected_rows(uVar3,local_14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_tree_selection_get_selected_rows(uVar3,local_14)" identifier (argument_list "(uVar3,local_14)" ( identifier , identifier ))))) ;) (if_statement "if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }" if (parenthesized_expression "((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0))" ( (binary_expression "(piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)" (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)) )) || (parenthesized_expression "(iVar4 = *piVar5, iVar4 == 0)" ( (comma_expression "iVar4 = *piVar5, iVar4 == 0" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }" { comment (expression_statement "__assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");" (call_expression "__assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index")" identifier (argument_list "("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index")" ( (string_literal ""sellist && sellist->data"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_index"" " string_content ") ))) ;) })) (expression_statement "iVar6 = gtk_tree_path_get_depth(iVar4);" (assignment_expression "iVar6 = gtk_tree_path_get_depth(iVar4)" identifier = (call_expression "gtk_tree_path_get_depth(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (iVar6 == 1) {\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }\n  else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }" if (parenthesized_expression "(iVar6 == 1)" ( (binary_expression "iVar6 == 1" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }" { (expression_statement "puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);" (assignment_expression "puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4)" identifier = (cast_expression "(undefined4 *)gtk_tree_path_get_indices(iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_tree_path_get_indices(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00085c8e;" goto statement_identifier ;)) (expression_statement "uVar7 = *puVar2;" (assignment_expression "uVar7 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) }) (else_clause "else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }" else (compound_statement "{\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }" { (labeled_statement "LAB_00085c8e:\n    uVar7 = 0xffffffff;" statement_identifier : (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" identifier = number_literal) ;)) }))) (expression_statement "g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);" (call_expression "g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0)" identifier (argument_list "(piVar5,PTR_gtk_tree_path_free_00110fbc,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "g_list_free(piVar5);" (call_expression "g_list_free(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))) ;) (labeled_statement "LAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 uVar7;\n  }" { (return_statement "return uVar7;" return identifier ;) }))) comment (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" 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\nint dlg_listbox_index(control *ctrl,void *dlg)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  GtkTreeModel *model;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }\n  iVar7 = puVar2[6];\n  if (iVar7 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar7,uVar3);\n    iVar7 = gtk_combo_box_get_active(uVar3);\n    goto LAB_00085c37;\n  }\n  iVar4 = puVar2[7];\n  if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }\n  uVar3 = gtk_tree_view_get_type();\n  iVar7 = -1;\n  uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n  uVar3 = gtk_tree_view_get_selection(uVar3);\n  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);\n  if (iVar4 != 1) goto LAB_00085c37;\n  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,&model);\n  if ((piVar5 == (int *)0x0) || (iVar7 = *piVar5, iVar7 == 0)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }\n  iVar4 = gtk_tree_path_get_depth(iVar7);\n  if (iVar4 == 1) {\n    piVar6 = (int *)gtk_tree_path_get_indices(iVar7);\n    if (piVar6 == (int *)0x0) goto LAB_00085c8e;\n    iVar7 = *piVar6;\n  }\n  else {\nLAB_00085c8e:\n    iVar7 = -1;\n  }\n  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);\n  g_list_free(piVar5);\nLAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int dlg_listbox_index(control *ctrl,void *dlg)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  GtkTreeModel *model;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }\n  iVar7 = puVar2[6];\n  if (iVar7 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar7,uVar3);\n    iVar7 = gtk_combo_box_get_active(uVar3);\n    goto LAB_00085c37;\n  }\n  iVar4 = puVar2[7];\n  if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }\n  uVar3 = gtk_tree_view_get_type();\n  iVar7 = -1;\n  uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n  uVar3 = gtk_tree_view_get_selection(uVar3);\n  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);\n  if (iVar4 != 1) goto LAB_00085c37;\n  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,&model);\n  if ((piVar5 == (int *)0x0) || (iVar7 = *piVar5, iVar7 == 0)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }\n  iVar4 = gtk_tree_path_get_depth(iVar7);\n  if (iVar4 == 1) {\n    piVar6 = (int *)gtk_tree_path_get_indices(iVar7);\n    if (piVar6 == (int *)0x0) goto LAB_00085c8e;\n    iVar7 = *piVar6;\n  }\n  else {\nLAB_00085c8e:\n    iVar7 = -1;\n  }\n  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);\n  g_list_free(piVar5);\nLAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "dlg_listbox_index(control *ctrl,void *dlg)" identifier (parameter_list "(control *ctrl,void *dlg)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  GtkTreeModel *model;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }\n  iVar7 = puVar2[6];\n  if (iVar7 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar7,uVar3);\n    iVar7 = gtk_combo_box_get_active(uVar3);\n    goto LAB_00085c37;\n  }\n  iVar4 = puVar2[7];\n  if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }\n  uVar3 = gtk_tree_view_get_type();\n  iVar7 = -1;\n  uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n  uVar3 = gtk_tree_view_get_selection(uVar3);\n  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);\n  if (iVar4 != 1) goto LAB_00085c37;\n  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,&model);\n  if ((piVar5 == (int *)0x0) || (iVar7 = *piVar5, iVar7 == 0)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }\n  iVar4 = gtk_tree_path_get_depth(iVar7);\n  if (iVar4 == 1) {\n    piVar6 = (int *)gtk_tree_path_get_indices(iVar7);\n    if (piVar6 == (int *)0x0) goto LAB_00085c8e;\n    iVar7 = *piVar6;\n  }\n  else {\nLAB_00085c8e:\n    iVar7 = -1;\n  }\n  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);\n  g_list_free(piVar5);\nLAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "GtkTreeModel *model;" type_identifier (pointer_declarator "*model" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) comment (if_statement "if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" if (parenthesized_expression "(*dlg == (tree234 *)0x0)" ( (binary_expression "*dlg == (tree234 *)0x0" (pointer_expression "*dlg" * identifier) == (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" { 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 "()" ( ))) ;) })) (expression_statement "puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);" (assignment_expression "puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" identifier = (cast_expression "(undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" identifier (argument_list "(*dlg,ctrl,uctrl_cmp_byctrl_find)" ( (pointer_expression "*dlg" * identifier) , identifier , identifier ))))) ;) (if_statement "if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }" if (parenthesized_expression "((*(uint *)*puVar2 & 0xfffffffb) != 1)" ( (binary_expression "(*(uint *)*puVar2 & 0xfffffffb) != 1" (parenthesized_expression "(*(uint *)*puVar2 & 0xfffffffb)" ( (binary_expression "*(uint *)*puVar2 & 0xfffffffb" (pointer_expression "*(uint *)*puVar2" * (cast_expression "(uint *)*puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }" { comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index")" ( (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_index"" " string_content ") ))) ;) })) (expression_statement "iVar7 = puVar2[6];" (assignment_expression "iVar7 = puVar2[6]" identifier = (subscript_expression "puVar2[6]" identifier [ number_literal ])) ;) (if_statement "if (iVar7 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar7,uVar3);\n    iVar7 = gtk_combo_box_get_active(uVar3);\n    goto LAB_00085c37;\n  }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar7,uVar3);\n    iVar7 = gtk_combo_box_get_active(uVar3);\n    goto LAB_00085c37;\n  }" { (expression_statement "uVar3 = gtk_combo_box_get_type();" (assignment_expression "uVar3 = gtk_combo_box_get_type()" identifier = (call_expression "gtk_combo_box_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = g_type_check_instance_cast(iVar7,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar7,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar7,uVar3)" identifier (argument_list "(iVar7,uVar3)" ( identifier , identifier )))) ;) (expression_statement "iVar7 = gtk_combo_box_get_active(uVar3);" (assignment_expression "iVar7 = gtk_combo_box_get_active(uVar3)" identifier = (call_expression "gtk_combo_box_get_active(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (goto_statement "goto LAB_00085c37;" goto statement_identifier ;) })) (expression_statement "iVar4 = puVar2[7];" (assignment_expression "iVar4 = puVar2[7]" identifier = (subscript_expression "puVar2[7]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }" { comment (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index")" ( (string_literal ""!\"We shouldn\'t get here\""" " string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_index"" " string_content ") ))) ;) })) (expression_statement "uVar3 = gtk_tree_view_get_type();" (assignment_expression "uVar3 = gtk_tree_view_get_type()" identifier = (call_expression "gtk_tree_view_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;) (expression_statement "uVar3 = g_type_check_instance_cast(iVar4,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar4,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar4,uVar3)" identifier (argument_list "(iVar4,uVar3)" ( identifier , identifier )))) ;) (expression_statement "uVar3 = gtk_tree_view_get_selection(uVar3);" (assignment_expression "uVar3 = gtk_tree_view_get_selection(uVar3)" identifier = (call_expression "gtk_tree_view_get_selection(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "iVar4 = gtk_tree_selection_count_selected_rows(uVar3);" (assignment_expression "iVar4 = gtk_tree_selection_count_selected_rows(uVar3)" identifier = (call_expression "gtk_tree_selection_count_selected_rows(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (if_statement "if (iVar4 != 1) goto LAB_00085c37;" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (goto_statement "goto LAB_00085c37;" goto statement_identifier ;)) (expression_statement "piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,&model);" (assignment_expression "piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,&model)" identifier = (cast_expression "(int *)gtk_tree_selection_get_selected_rows(uVar3,&model)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_tree_selection_get_selected_rows(uVar3,&model)" identifier (argument_list "(uVar3,&model)" ( identifier , (pointer_expression "&model" & identifier) ))))) ;) (if_statement "if ((piVar5 == (int *)0x0) || (iVar7 = *piVar5, iVar7 == 0)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }" if (parenthesized_expression "((piVar5 == (int *)0x0) || (iVar7 = *piVar5, iVar7 == 0))" ( (binary_expression "(piVar5 == (int *)0x0) || (iVar7 = *piVar5, iVar7 == 0)" (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)) )) || (parenthesized_expression "(iVar7 = *piVar5, iVar7 == 0)" ( (comma_expression "iVar7 = *piVar5, iVar7 == 0" (assignment_expression "iVar7 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) , (binary_expression "iVar7 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }" { comment (expression_statement "__assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");" (call_expression "__assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index")" identifier (argument_list "("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index")" ( (string_literal ""sellist && sellist->data"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_index"" " string_content ") ))) ;) })) (expression_statement "iVar4 = gtk_tree_path_get_depth(iVar7);" (assignment_expression "iVar4 = gtk_tree_path_get_depth(iVar7)" identifier = (call_expression "gtk_tree_path_get_depth(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (if_statement "if (iVar4 == 1) {\n    piVar6 = (int *)gtk_tree_path_get_indices(iVar7);\n    if (piVar6 == (int *)0x0) goto LAB_00085c8e;\n    iVar7 = *piVar6;\n  }\n  else {\nLAB_00085c8e:\n    iVar7 = -1;\n  }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n    piVar6 = (int *)gtk_tree_path_get_indices(iVar7);\n    if (piVar6 == (int *)0x0) goto LAB_00085c8e;\n    iVar7 = *piVar6;\n  }" { (expression_statement "piVar6 = (int *)gtk_tree_path_get_indices(iVar7);" (assignment_expression "piVar6 = (int *)gtk_tree_path_get_indices(iVar7)" identifier = (cast_expression "(int *)gtk_tree_path_get_indices(iVar7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_tree_path_get_indices(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))))) ;) (if_statement "if (piVar6 == (int *)0x0) goto LAB_00085c8e;" 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)) )) (goto_statement "goto LAB_00085c8e;" goto statement_identifier ;)) (expression_statement "iVar7 = *piVar6;" (assignment_expression "iVar7 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) }) (else_clause "else {\nLAB_00085c8e:\n    iVar7 = -1;\n  }" else (compound_statement "{\nLAB_00085c8e:\n    iVar7 = -1;\n  }" { (labeled_statement "LAB_00085c8e:\n    iVar7 = -1;" statement_identifier : (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;)) }))) (expression_statement "g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);" (call_expression "g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0)" identifier (argument_list "(piVar5,PTR_gtk_tree_path_free_00110fbc,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "g_list_free(piVar5);" (call_expression "g_list_free(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))) ;) (labeled_statement "LAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 iVar7;\n  }" { (return_statement "return iVar7;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_00085ba0(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);\n  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }\n  iVar4 = puVar2[6];\n  if (iVar4 != 0) {\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }\n  iVar4 = puVar2[7];\n  if (iVar4 == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }\n  uVar3 = gtk_tree_view_get_type();\n  uVar7 = 0xffffffff;\n  uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n  uVar3 = gtk_tree_view_get_selection(uVar3);\n  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);\n  if (iVar4 != 1) goto LAB_00085c37;\n  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);\n  if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {\n                    \n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }\n  iVar6 = gtk_tree_path_get_depth(iVar4);\n  if (iVar6 == 1) {\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }\n  else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }\n  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);\n  g_list_free(piVar5);\nLAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }\n                    \n  FUN_000a39d0();\n}\n\n" (function_definition "undefined4 FUN_00085ba0(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);\n  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }\n  iVar4 = puVar2[6];\n  if (iVar4 != 0) {\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }\n  iVar4 = puVar2[7];\n  if (iVar4 == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }\n  uVar3 = gtk_tree_view_get_type();\n  uVar7 = 0xffffffff;\n  uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n  uVar3 = gtk_tree_view_get_selection(uVar3);\n  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);\n  if (iVar4 != 1) goto LAB_00085c37;\n  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);\n  if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {\n                    \n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }\n  iVar6 = gtk_tree_path_get_depth(iVar4);\n  if (iVar6 == 1) {\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }\n  else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }\n  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);\n  g_list_free(piVar5);\nLAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }\n                    \n  FUN_000a39d0();\n}" type_identifier (function_declarator "FUN_00085ba0(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 (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);\n  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }\n  iVar4 = puVar2[6];\n  if (iVar4 != 0) {\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }\n  iVar4 = puVar2[7];\n  if (iVar4 == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }\n  uVar3 = gtk_tree_view_get_type();\n  uVar7 = 0xffffffff;\n  uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n  uVar3 = gtk_tree_view_get_selection(uVar3);\n  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);\n  if (iVar4 != 1) goto LAB_00085c37;\n  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);\n  if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {\n                    \n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }\n  iVar6 = gtk_tree_path_get_depth(iVar4);\n  if (iVar6 == 1) {\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }\n  else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }\n  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);\n  g_list_free(piVar5);\nLAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }\n                    \n  FUN_000a39d0();\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_14 [4];" type_identifier (array_declarator "local_14 [4]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (if_statement "if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" { (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 "()" ( ))) ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);" (assignment_expression "puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170)" identifier = (cast_expression "(undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000817b0(*param_2,param_1,FUN_00084170)" identifier (argument_list "(*param_2,param_1,FUN_00084170)" ( (pointer_expression "*param_2" * identifier) , identifier , identifier ))))) ;) (if_statement "if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }" if (parenthesized_expression "((*(uint *)*puVar2 & 0xfffffffb) != 1)" ( (binary_expression "(*(uint *)*puVar2 & 0xfffffffb) != 1" (parenthesized_expression "(*(uint *)*puVar2 & 0xfffffffb)" ( (binary_expression "*(uint *)*puVar2 & 0xfffffffb" (pointer_expression "*(uint *)*puVar2" * (cast_expression "(uint *)*puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }" { (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index")" ( (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_index"" " string_content ") ))) ;) })) (expression_statement "iVar4 = puVar2[6];" (assignment_expression "iVar4 = puVar2[6]" identifier = (subscript_expression "puVar2[6]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 != 0) {\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }" { (expression_statement "uVar7 = gtk_combo_box_get_type();" (assignment_expression "uVar7 = gtk_combo_box_get_type()" identifier = (call_expression "gtk_combo_box_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = g_type_check_instance_cast(iVar4,uVar7);" (assignment_expression "uVar7 = g_type_check_instance_cast(iVar4,uVar7)" identifier = (call_expression "g_type_check_instance_cast(iVar4,uVar7)" identifier (argument_list "(iVar4,uVar7)" ( identifier , identifier )))) ;) (expression_statement "uVar7 = gtk_combo_box_get_active(uVar7);" (assignment_expression "uVar7 = gtk_combo_box_get_active(uVar7)" identifier = (call_expression "gtk_combo_box_get_active(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) (goto_statement "goto LAB_00085c37;" goto statement_identifier ;) })) (expression_statement "iVar4 = puVar2[7];" (assignment_expression "iVar4 = puVar2[7]" identifier = (subscript_expression "puVar2[7]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }" { (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index")" ( (string_literal ""!\"We shouldn\'t get here\""" " string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_index"" " string_content ") ))) ;) })) (expression_statement "uVar3 = gtk_tree_view_get_type();" (assignment_expression "uVar3 = gtk_tree_view_get_type()" identifier = (call_expression "gtk_tree_view_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" identifier = number_literal) ;) (expression_statement "uVar3 = g_type_check_instance_cast(iVar4,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar4,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar4,uVar3)" identifier (argument_list "(iVar4,uVar3)" ( identifier , identifier )))) ;) (expression_statement "uVar3 = gtk_tree_view_get_selection(uVar3);" (assignment_expression "uVar3 = gtk_tree_view_get_selection(uVar3)" identifier = (call_expression "gtk_tree_view_get_selection(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "iVar4 = gtk_tree_selection_count_selected_rows(uVar3);" (assignment_expression "iVar4 = gtk_tree_selection_count_selected_rows(uVar3)" identifier = (call_expression "gtk_tree_selection_count_selected_rows(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (if_statement "if (iVar4 != 1) goto LAB_00085c37;" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (goto_statement "goto LAB_00085c37;" goto statement_identifier ;)) (expression_statement "piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);" (assignment_expression "piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14)" identifier = (cast_expression "(int *)gtk_tree_selection_get_selected_rows(uVar3,local_14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_tree_selection_get_selected_rows(uVar3,local_14)" identifier (argument_list "(uVar3,local_14)" ( identifier , identifier ))))) ;) (if_statement "if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {\n                    \n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }" if (parenthesized_expression "((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0))" ( (binary_expression "(piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)" (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)) )) || (parenthesized_expression "(iVar4 = *piVar5, iVar4 == 0)" ( (comma_expression "iVar4 = *piVar5, iVar4 == 0" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n                    \n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }" { (expression_statement "__assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");" (call_expression "__assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index")" identifier (argument_list "("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index")" ( (string_literal ""sellist && sellist->data"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_index"" " string_content ") ))) ;) })) (expression_statement "iVar6 = gtk_tree_path_get_depth(iVar4);" (assignment_expression "iVar6 = gtk_tree_path_get_depth(iVar4)" identifier = (call_expression "gtk_tree_path_get_depth(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (iVar6 == 1) {\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }\n  else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }" if (parenthesized_expression "(iVar6 == 1)" ( (binary_expression "iVar6 == 1" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }" { (expression_statement "puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);" (assignment_expression "puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4)" identifier = (cast_expression "(undefined4 *)gtk_tree_path_get_indices(iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_tree_path_get_indices(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00085c8e;" goto statement_identifier ;)) (expression_statement "uVar7 = *puVar2;" (assignment_expression "uVar7 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) }) (else_clause "else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }" else (compound_statement "{\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }" { (labeled_statement "LAB_00085c8e:\n    uVar7 = 0xffffffff;" statement_identifier : (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" identifier = number_literal) ;)) }))) (expression_statement "g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);" (call_expression "g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0)" identifier (argument_list "(piVar5,PTR_gtk_tree_path_free_00110fbc,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "g_list_free(piVar5);" (call_expression "g_list_free(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))) ;) (labeled_statement "LAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 uVar7;\n  }" { (return_statement "return uVar7;" return identifier ;) }))) (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE 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 (pointer_expression * IDENT) == LIT) )) (compound_statement { (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 ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (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 ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (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 ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (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 IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_00085ba0(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);\n  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }\n  iVar4 = puVar2[6];\n  if (iVar4 != 0) {\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }\n  iVar4 = puVar2[7];\n  if (iVar4 == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }\n  uVar3 = gtk_tree_view_get_type();\n  uVar7 = 0xffffffff;\n  uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n  uVar3 = gtk_tree_view_get_selection(uVar3);\n  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);\n  if (iVar4 != 1) goto LAB_00085c37;\n  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);\n  if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {\n                    \n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }\n  iVar6 = gtk_tree_path_get_depth(iVar4);\n  if (iVar6 == 1) {\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }\n  else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }\n  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);\n  g_list_free(piVar5);\nLAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }\n                    \n  FUN_000a39d0();\n}" (type_identifier "undefined4") (function_declarator "FUN_00085ba0(undefined4 param_1,int *param_2)" (identifier "FUN_00085ba0") (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") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);\n  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }\n  iVar4 = puVar2[6];\n  if (iVar4 != 0) {\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }\n  iVar4 = puVar2[7];\n  if (iVar4 == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }\n  uVar3 = gtk_tree_view_get_type();\n  uVar7 = 0xffffffff;\n  uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n  uVar3 = gtk_tree_view_get_selection(uVar3);\n  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);\n  if (iVar4 != 1) goto LAB_00085c37;\n  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);\n  if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {\n                    \n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }\n  iVar6 = gtk_tree_path_get_depth(iVar4);\n  if (iVar6 == 1) {\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }\n  else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }\n  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);\n  g_list_free(piVar5);\nLAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }\n                    \n  FUN_000a39d0();\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_14 [4];" (type_identifier "undefined1") (array_declarator "local_14 [4]" (identifier "local_14") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" (if "if") (parenthesized_expression "(*param_2 == 0)" (( "(") (binary_expression "*param_2 == 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" ({ "{") (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 "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);" (assignment_expression "puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000817b0(*param_2,param_1,FUN_00084170)" (identifier "FUN_000817b0") (argument_list "(*param_2,param_1,FUN_00084170)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "param_1") (, ",") (identifier "FUN_00084170") () ")"))))) (; ";")) (if_statement "if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }" (if "if") (parenthesized_expression "((*(uint *)*puVar2 & 0xfffffffb) != 1)" (( "(") (binary_expression "(*(uint *)*puVar2 & 0xfffffffb) != 1" (parenthesized_expression "(*(uint *)*puVar2 & 0xfffffffb)" (( "(") (binary_expression "*(uint *)*puVar2 & 0xfffffffb" (pointer_expression "*(uint *)*puVar2" (* "*") (cast_expression "(uint *)*puVar2" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (& "&") (number_literal "0xfffffffb")) () ")")) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");\n  }" ({ "{") (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index")" (identifier "__assert_fail") (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index")" (( "(") (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"" (" """) (string_content "uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX") (" """)) (, ",") (string_literal ""unix/gtkdlg.c"" (" """) (string_content "unix/gtkdlg.c") (" """)) (, ",") (number_literal "0x27f") (, ",") (string_literal ""dlg_listbox_index"" (" """) (string_content "dlg_listbox_index") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = puVar2[6];" (assignment_expression "iVar4 = puVar2[6]" (identifier "iVar4") (= "=") (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]"))) (; ";")) (if_statement "if (iVar4 != 0) {\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar7 = gtk_combo_box_get_type();\n    uVar7 = g_type_check_instance_cast(iVar4,uVar7);\n    uVar7 = gtk_combo_box_get_active(uVar7);\n    goto LAB_00085c37;\n  }" ({ "{") (expression_statement "uVar7 = gtk_combo_box_get_type();" (assignment_expression "uVar7 = gtk_combo_box_get_type()" (identifier "uVar7") (= "=") (call_expression "gtk_combo_box_get_type()" (identifier "gtk_combo_box_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar7 = g_type_check_instance_cast(iVar4,uVar7);" (assignment_expression "uVar7 = g_type_check_instance_cast(iVar4,uVar7)" (identifier "uVar7") (= "=") (call_expression "g_type_check_instance_cast(iVar4,uVar7)" (identifier "g_type_check_instance_cast") (argument_list "(iVar4,uVar7)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar7") () ")")))) (; ";")) (expression_statement "uVar7 = gtk_combo_box_get_active(uVar7);" (assignment_expression "uVar7 = gtk_combo_box_get_active(uVar7)" (identifier "uVar7") (= "=") (call_expression "gtk_combo_box_get_active(uVar7)" (identifier "gtk_combo_box_get_active") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")")))) (; ";")) (goto_statement "goto LAB_00085c37;" (goto "goto") (statement_identifier "LAB_00085c37") (; ";")) (} "}"))) (expression_statement "iVar4 = puVar2[7];" (assignment_expression "iVar4 = puVar2[7]" (identifier "iVar4") (= "=") (subscript_expression "puVar2[7]" (identifier "puVar2") ([ "[") (number_literal "7") (] "]"))) (; ";")) (if_statement "if (iVar4 == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");\n  }" ({ "{") (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index")" (identifier "__assert_fail") (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index")" (( "(") (string_literal ""!\"We shouldn\'t get here\""" (" """) (string_content "!") (escape_sequence "\"") (string_content "We shouldn") (escape_sequence "\'") (string_content "t get here") (escape_sequence "\"") (" """)) (, ",") (string_literal ""unix/gtkdlg.c"" (" """) (string_content "unix/gtkdlg.c") (" """)) (, ",") (number_literal "0x2ca") (, ",") (string_literal ""dlg_listbox_index"" (" """) (string_content "dlg_listbox_index") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = gtk_tree_view_get_type();" (assignment_expression "uVar3 = gtk_tree_view_get_type()" (identifier "uVar3") (= "=") (call_expression "gtk_tree_view_get_type()" (identifier "gtk_tree_view_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" (identifier "uVar7") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "uVar3 = g_type_check_instance_cast(iVar4,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar4,uVar3)" (identifier "uVar3") (= "=") (call_expression "g_type_check_instance_cast(iVar4,uVar3)" (identifier "g_type_check_instance_cast") (argument_list "(iVar4,uVar3)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "uVar3 = gtk_tree_view_get_selection(uVar3);" (assignment_expression "uVar3 = gtk_tree_view_get_selection(uVar3)" (identifier "uVar3") (= "=") (call_expression "gtk_tree_view_get_selection(uVar3)" (identifier "gtk_tree_view_get_selection") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "iVar4 = gtk_tree_selection_count_selected_rows(uVar3);" (assignment_expression "iVar4 = gtk_tree_selection_count_selected_rows(uVar3)" (identifier "iVar4") (= "=") (call_expression "gtk_tree_selection_count_selected_rows(uVar3)" (identifier "gtk_tree_selection_count_selected_rows") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if (iVar4 != 1) goto LAB_00085c37;" (if "if") (parenthesized_expression "(iVar4 != 1)" (( "(") (binary_expression "iVar4 != 1" (identifier "iVar4") (!= "!=") (number_literal "1")) () ")")) (goto_statement "goto LAB_00085c37;" (goto "goto") (statement_identifier "LAB_00085c37") (; ";"))) (expression_statement "piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);" (assignment_expression "piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14)" (identifier "piVar5") (= "=") (cast_expression "(int *)gtk_tree_selection_get_selected_rows(uVar3,local_14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "gtk_tree_selection_get_selected_rows(uVar3,local_14)" (identifier "gtk_tree_selection_get_selected_rows") (argument_list "(uVar3,local_14)" (( "(") (identifier "uVar3") (, ",") (identifier "local_14") () ")"))))) (; ";")) (if_statement "if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {\n                    \n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }" (if "if") (parenthesized_expression "((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0))" (( "(") (binary_expression "(piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)" (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"))) () ")")) (|| "||") (parenthesized_expression "(iVar4 = *piVar5, iVar4 == 0)" (( "(") (comma_expression "iVar4 = *piVar5, iVar4 == 0" (assignment_expression "iVar4 = *piVar5" (identifier "iVar4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (, ",") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");\n  }" ({ "{") (expression_statement "__assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");" (call_expression "__assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index")" (identifier "__assert_fail") (argument_list "("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index")" (( "(") (string_literal ""sellist && sellist->data"" (" """) (string_content "sellist && sellist->data") (" """)) (, ",") (string_literal ""unix/gtkdlg.c"" (" """) (string_content "unix/gtkdlg.c") (" """)) (, ",") (number_literal "0x2b6") (, ",") (string_literal ""dlg_listbox_index"" (" """) (string_content "dlg_listbox_index") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar6 = gtk_tree_path_get_depth(iVar4);" (assignment_expression "iVar6 = gtk_tree_path_get_depth(iVar4)" (identifier "iVar6") (= "=") (call_expression "gtk_tree_path_get_depth(iVar4)" (identifier "gtk_tree_path_get_depth") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (iVar6 == 1) {\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }\n  else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(iVar6 == 1)" (( "(") (binary_expression "iVar6 == 1" (identifier "iVar6") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);\n    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;\n    uVar7 = *puVar2;\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);" (assignment_expression "puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)gtk_tree_path_get_indices(iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "gtk_tree_path_get_indices(iVar4)" (identifier "gtk_tree_path_get_indices") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00085c8e;" (goto "goto") (statement_identifier "LAB_00085c8e") (; ";"))) (expression_statement "uVar7 = *puVar2;" (assignment_expression "uVar7 = *puVar2" (identifier "uVar7") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (} "}")) (else_clause "else {\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }" (else "else") (compound_statement "{\nLAB_00085c8e:\n    uVar7 = 0xffffffff;\n  }" ({ "{") (labeled_statement "LAB_00085c8e:\n    uVar7 = 0xffffffff;" (statement_identifier "LAB_00085c8e") (: ":") (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" (identifier "uVar7") (= "=") (number_literal "0xffffffff")) (; ";"))) (} "}")))) (expression_statement "g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);" (call_expression "g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0)" (identifier "g_list_foreach") (argument_list "(piVar5,PTR_gtk_tree_path_free_00110fbc,0)" (( "(") (identifier "piVar5") (, ",") (identifier "PTR_gtk_tree_path_free_00110fbc") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "g_list_free(piVar5);" (call_expression "g_list_free(piVar5)" (identifier "g_list_free") (argument_list "(piVar5)" (( "(") (identifier "piVar5") () ")"))) (; ";")) (labeled_statement "LAB_00085c37:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }" (statement_identifier "LAB_00085c37") (: ":") (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar7;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (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 uVar7;\n  }" ({ "{") (return_statement "return uVar7;" (return "return") (identifier "uVar7") (; ";")) (} "}")))) (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" (identifier "FUN_000a39d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(type_1 *ctrl,void *dlg)

{
  type_2 *pcVar1;
  type_3 *puVar2;
  type_3 uVar3;
  int var_9;
  int *var_14;
  int *var_17;
  int var_5;
  int var_1;
  type_4 *model;
  int var_20;
  
  var_20 = *(int *)(var_1 + 0x14);
                    /* WARNING: Load size is inaccurate */
  if (*dlg == (type_5 *)0x0) {
                    /* WARNING: Does not return */
    pcVar1 = (type_2 *)var_2();
    (*pcVar1)();
  }
  puVar2 = (type_3 *)var_3(*dlg,ctrl,uctrl_cmp_byctrl_find);
  if ((*(type_6 *)*puVar2 & 0xfffffffb) != 1) {
                    /* WARNING: Subroutine does not return */
    var_4("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"
                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");
  }
  var_5 = puVar2[6];
  if (var_5 != 0) {
    uVar3 = var_6();
    uVar3 = var_7(var_5,uVar3);
    var_5 = var_8(uVar3);
    goto LAB_00085c37;
  }
  var_9 = puVar2[7];
  if (var_9 == 0) {
                    /* WARNING: Subroutine does not return */
    var_4("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");
  }
  uVar3 = var_10();
  var_5 = -1;
  uVar3 = var_7(var_9,uVar3);
  uVar3 = var_11(uVar3);
  var_9 = var_12(uVar3);
  if (var_9 != 1) goto LAB_00085c37;
  var_14 = (int *)var_13(uVar3,&model);
  if ((var_14 == (int *)0x0) || (var_5 = *var_14, var_5 == 0)) {
                    /* WARNING: Subroutine does not return */
    var_4("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");
  }
  var_9 = var_15(var_5);
  if (var_9 == 1) {
    var_17 = (int *)var_16(var_5);
    if (var_17 == (int *)0x0) goto LAB_00085c8e;
    var_5 = *var_17;
  }
  else {
LAB_00085c8e:
    var_5 = -1;
  }
  var_18(var_14,PTR_gtk_tree_path_free_00110fbc,0);
  var_19(var_14);
LAB_00085c37:
  if (var_20 == *(int *)(var_1 + 0x14)) {
    return var_5;
  }
                    /* WARNING: Subroutine does not return */
  var_21();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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: (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)) (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: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (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))))) (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 (pointer_expression argument: (identifier)) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (number_literal))) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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 (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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) (escape_sequence) (string_content) (escape_sequence) (string_content) (escape_sequence)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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: (goto_statement label: (statement_identifier))) (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (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))))))) (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: (compound_statement (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 (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (labeled_statement label: (statement_identifier) (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 (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

undefined4 MASKED(undefined4 param_1,int *param_2)

{
  code *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  undefined4 uVar7;
  int in_GS_OFFSET;
  undefined1 local_14 [4];
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)FUN_000817b0(*param_2,param_1,FUN_00084170);
  if ((*(uint *)*puVar2 & 0xfffffffb) != 1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"
                  ,"unix/gtkdlg.c",0x27f,"dlg_listbox_index");
  }
  iVar4 = puVar2[6];
  if (iVar4 != 0) {
    uVar7 = gtk_combo_box_get_type();
    uVar7 = g_type_check_instance_cast(iVar4,uVar7);
    uVar7 = gtk_combo_box_get_active(uVar7);
    goto LAB_00085c37;
  }
  iVar4 = puVar2[7];
  if (iVar4 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x2ca,"dlg_listbox_index");
  }
  uVar3 = gtk_tree_view_get_type();
  uVar7 = 0xffffffff;
  uVar3 = g_type_check_instance_cast(iVar4,uVar3);
  uVar3 = gtk_tree_view_get_selection(uVar3);
  iVar4 = gtk_tree_selection_count_selected_rows(uVar3);
  if (iVar4 != 1) goto LAB_00085c37;
  piVar5 = (int *)gtk_tree_selection_get_selected_rows(uVar3,local_14);
  if ((piVar5 == (int *)0x0) || (iVar4 = *piVar5, iVar4 == 0)) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("sellist && sellist->data","unix/gtkdlg.c",0x2b6,"dlg_listbox_index");
  }
  iVar6 = gtk_tree_path_get_depth(iVar4);
  if (iVar6 == 1) {
    puVar2 = (undefined4 *)gtk_tree_path_get_indices(iVar4);
    if (puVar2 == (undefined4 *)0x0) goto LAB_00085c8e;
    uVar7 = *puVar2;
  }
  else {
LAB_00085c8e:
    uVar7 = 0xffffffff;
  }
  g_list_foreach(piVar5,PTR_gtk_tree_path_free_00110fbc,0);
  g_list_free(piVar5);
LAB_00085c37:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar7;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a39d0();
}

