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

int dlg_listbox_issel(control *ctrl,void *dlg,int index)

{
  code *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int iVar5;
  
                    /* 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",0x2d4,"dlg_listbox_issel");
  }
  iVar5 = puVar2[6];
  if (iVar5 != 0) {
    uVar3 = gtk_combo_box_get_type();
    uVar3 = g_type_check_instance_cast(iVar5,uVar3);
    iVar5 = gtk_combo_box_get_active(uVar3);
    return (uint)(iVar5 == index);
  }
  iVar5 = puVar2[7];
  if (iVar5 != 0) {
    uVar3 = gtk_tree_view_get_type();
    uVar3 = g_type_check_instance_cast(iVar5,uVar3);
    uVar3 = gtk_tree_view_get_selection(uVar3);
    uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff);
    iVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);
    gtk_tree_path_free(uVar4);
    return iVar5;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");
}



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

uint FUN_000a4890(undefined4 param_1,int *param_2,int param_3)

{
  code *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  uint uVar5;
  int iVar6;
  
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0);
  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",0x2d4,"dlg_listbox_issel");
  }
  iVar6 = puVar2[6];
  if (iVar6 != 0) {
    uVar3 = gtk_combo_box_get_type();
    uVar3 = g_type_check_instance_cast(iVar6,uVar3);
    iVar6 = gtk_combo_box_get_active(uVar3);
    return (uint)(iVar6 == param_3);
  }
  iVar6 = puVar2[7];
  if (iVar6 != 0) {
    uVar3 = gtk_tree_view_get_type();
    uVar3 = g_type_check_instance_cast(iVar6,uVar3);
    uVar3 = gtk_tree_view_get_selection(uVar3);
    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);
    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);
    gtk_tree_path_free(uVar4);
    return uVar5;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x14]
CALL 0x0001c520
ADD EBX,0x95eb4
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0001c211
SUB ESP,0x4
LEA EDX,[EBX + 0xfff68350]
PUSH EDX
PUSH dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x0009ee90
ADD ESP,0x10
MOV EDX,dword ptr [EAX]
MOV EDX,dword ptr [EDX]
AND EDX,0xfffffffb
CMP EDX,0x1
JNZ 0x000a495c
MOV ESI,dword ptr [EAX + 0x18]
TEST ESI,ESI
JNZ 0x000a4930
MOV ESI,dword ptr [EAX + 0x1c]
TEST ESI,ESI
JZ 0x000a497b
CALL 0x0001b2b0
SUB ESP,0x8
PUSH EAX
PUSH ESI
CALL 0x0001a5e0
MOV dword ptr [ESP],EAX
CALL 0x0001b490
MOV ESI,EAX
POP EAX
POP EDX
PUSH -0x1
PUSH dword ptr [ESP + 0x24]
CALL 0x0001b240
POP ECX
MOV EDI,EAX
POP EAX
PUSH EDI
PUSH ESI
CALL 0x0001b5d0
MOV dword ptr [ESP],EDI
MOV ESI,EAX
CALL 0x0001c148
ADD ESP,0x10
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
CALL 0x0001ac50
SUB ESP,0x8
PUSH EAX
PUSH ESI
CALL 0x0001a5e0
MOV dword ptr [ESP],EAX
CALL 0x0001ba30
ADD ESP,0x10
CMP EAX,dword ptr [ESP + 0x18]
POP EBX
SETZ AL
MOVZX EAX,AL
MOV ESI,EAX
MOV EAX,ESI
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0xfffb4808]
PUSH EAX
LEA EAX,[EBX + 0xfffb346c]
PUSH 0x2d4
PUSH EAX
LEA EAX,[EBX + 0xfffb37b4]
PUSH EAX
CALL 0x0001c000
LEA EAX,[EBX + 0xfffb4808]
PUSH EAX
LEA EAX,[EBX + 0xfffb346c]
PUSH 0x304
PUSH EAX
LEA EAX,[EBX + 0xfffb349e]
PUSH EAX
CALL 0x0001c000
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_000a4890(undefined4 param_1,int *param_2,int param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0);\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",0x2d4,"dlg_listbox_issel");\n  }\n  iVar6 = puVar2[6];\n  if (iVar6 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }\n  iVar6 = puVar2[7];\n  if (iVar6 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");\n}\n\n" comment (function_definition "uint FUN_000a4890(undefined4 param_1,int *param_2,int param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0);\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",0x2d4,"dlg_listbox_issel");\n  }\n  iVar6 = puVar2[6];\n  if (iVar6 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }\n  iVar6 = puVar2[7];\n  if (iVar6 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");\n}" type_identifier (function_declarator "FUN_000a4890(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0);\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",0x2d4,"dlg_listbox_issel");\n  }\n  iVar6 = puVar2[6];\n  if (iVar6 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }\n  iVar6 = puVar2[7];\n  if (iVar6 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");\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 "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (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_0009ee90(*param_2,param_1,FUN_000a2aa0);" (assignment_expression "puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0)" identifier = (cast_expression "(undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0009ee90(*param_2,param_1,FUN_000a2aa0)" identifier (argument_list "(*param_2,param_1,FUN_000a2aa0)" ( (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",0x2d4,"dlg_listbox_issel");\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",0x2d4,"dlg_listbox_issel");\n  }" { comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel")" ( (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_issel"" " string_content ") ))) ;) })) (expression_statement "iVar6 = puVar2[6];" (assignment_expression "iVar6 = puVar2[6]" identifier = (subscript_expression "puVar2[6]" identifier [ number_literal ])) ;) (if_statement "if (iVar6 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\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(iVar6,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar6,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar6,uVar3)" identifier (argument_list "(iVar6,uVar3)" ( identifier , identifier )))) ;) (expression_statement "iVar6 = gtk_combo_box_get_active(uVar3);" (assignment_expression "iVar6 = gtk_combo_box_get_active(uVar3)" identifier = (call_expression "gtk_combo_box_get_active(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (return_statement "return (uint)(iVar6 == param_3);" return (call_expression "(uint)(iVar6 == param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar6 == param_3)" ( (binary_expression "iVar6 == param_3" identifier == identifier) ))) ;) })) (expression_statement "iVar6 = puVar2[7];" (assignment_expression "iVar6 = puVar2[7]" identifier = (subscript_expression "puVar2[7]" identifier [ number_literal ])) ;) (if_statement "if (iVar6 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }" { (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 "uVar3 = g_type_check_instance_cast(iVar6,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar6,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar6,uVar3)" identifier (argument_list "(iVar6,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 "uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);" (assignment_expression "uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff)" identifier = (call_expression "gtk_tree_path_new_from_indices(param_3,0xffffffff)" identifier (argument_list "(param_3,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);" (assignment_expression "uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4)" identifier = (call_expression "gtk_tree_selection_path_is_selected(uVar3,uVar4)" identifier (argument_list "(uVar3,uVar4)" ( identifier , identifier )))) ;) (expression_statement "gtk_tree_path_free(uVar4);" (call_expression "gtk_tree_path_free(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return uVar5;" return identifier ;) })) comment (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel")" ( (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_issel"" " string_content ") ))) ;) })))
(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_issel(control *ctrl,void *dlg,int index)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \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",0x2d4,"dlg_listbox_issel");\n  }\n  iVar5 = puVar2[6];\n  if (iVar5 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar5,uVar3);\n    iVar5 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar5 == index);\n  }\n  iVar5 = puVar2[7];\n  if (iVar5 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar5,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff);\n    iVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");\n}\n\n" comment comment (function_definition "int dlg_listbox_issel(control *ctrl,void *dlg,int index)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \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",0x2d4,"dlg_listbox_issel");\n  }\n  iVar5 = puVar2[6];\n  if (iVar5 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar5,uVar3);\n    iVar5 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar5 == index);\n  }\n  iVar5 = puVar2[7];\n  if (iVar5 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar5,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff);\n    iVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");\n}" primitive_type (function_declarator "dlg_listbox_issel(control *ctrl,void *dlg,int index)" identifier (parameter_list "(control *ctrl,void *dlg,int index)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) , (parameter_declaration "int index" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \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",0x2d4,"dlg_listbox_issel");\n  }\n  iVar5 = puVar2[6];\n  if (iVar5 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar5,uVar3);\n    iVar5 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar5 == index);\n  }\n  iVar5 = puVar2[7];\n  if (iVar5 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar5,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff);\n    iVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");\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 "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) 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",0x2d4,"dlg_listbox_issel");\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",0x2d4,"dlg_listbox_issel");\n  }" { comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel")" ( (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_issel"" " string_content ") ))) ;) })) (expression_statement "iVar5 = puVar2[6];" (assignment_expression "iVar5 = puVar2[6]" identifier = (subscript_expression "puVar2[6]" identifier [ number_literal ])) ;) (if_statement "if (iVar5 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar5,uVar3);\n    iVar5 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar5 == index);\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar5,uVar3);\n    iVar5 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar5 == index);\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(iVar5,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar5,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar5,uVar3)" identifier (argument_list "(iVar5,uVar3)" ( identifier , identifier )))) ;) (expression_statement "iVar5 = gtk_combo_box_get_active(uVar3);" (assignment_expression "iVar5 = gtk_combo_box_get_active(uVar3)" identifier = (call_expression "gtk_combo_box_get_active(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (return_statement "return (uint)(iVar5 == index);" return (call_expression "(uint)(iVar5 == index)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 == index)" ( (binary_expression "iVar5 == index" identifier == identifier) ))) ;) })) (expression_statement "iVar5 = puVar2[7];" (assignment_expression "iVar5 = puVar2[7]" identifier = (subscript_expression "puVar2[7]" identifier [ number_literal ])) ;) (if_statement "if (iVar5 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar5,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff);\n    iVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return iVar5;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar5,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff);\n    iVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return iVar5;\n  }" { (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 "uVar3 = g_type_check_instance_cast(iVar5,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar5,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar5,uVar3)" identifier (argument_list "(iVar5,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 "uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff);" (assignment_expression "uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff)" identifier = (call_expression "gtk_tree_path_new_from_indices(index,0xffffffff)" identifier (argument_list "(index,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "iVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);" (assignment_expression "iVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4)" identifier = (call_expression "gtk_tree_selection_path_is_selected(uVar3,uVar4)" identifier (argument_list "(uVar3,uVar4)" ( identifier , identifier )))) ;) (expression_statement "gtk_tree_path_free(uVar4);" (call_expression "gtk_tree_path_free(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return iVar5;" return identifier ;) })) comment (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel")" ( (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_issel"" " string_content ") ))) ;) })))
(translation_unit "uint FUN_000a4890(undefined4 param_1,int *param_2,int param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0);\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",0x2d4,"dlg_listbox_issel");\n  }\n  iVar6 = puVar2[6];\n  if (iVar6 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }\n  iVar6 = puVar2[7];\n  if (iVar6 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }\n                    \n  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");\n}\n\n" (function_definition "uint FUN_000a4890(undefined4 param_1,int *param_2,int param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0);\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",0x2d4,"dlg_listbox_issel");\n  }\n  iVar6 = puVar2[6];\n  if (iVar6 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }\n  iVar6 = puVar2[7];\n  if (iVar6 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }\n                    \n  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");\n}" type_identifier (function_declarator "FUN_000a4890(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0);\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",0x2d4,"dlg_listbox_issel");\n  }\n  iVar6 = puVar2[6];\n  if (iVar6 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }\n  iVar6 = puVar2[7];\n  if (iVar6 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }\n                    \n  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");\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 "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (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_0009ee90(*param_2,param_1,FUN_000a2aa0);" (assignment_expression "puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0)" identifier = (cast_expression "(undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0009ee90(*param_2,param_1,FUN_000a2aa0)" identifier (argument_list "(*param_2,param_1,FUN_000a2aa0)" ( (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",0x2d4,"dlg_listbox_issel");\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",0x2d4,"dlg_listbox_issel");\n  }" { (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel")" ( (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_issel"" " string_content ") ))) ;) })) (expression_statement "iVar6 = puVar2[6];" (assignment_expression "iVar6 = puVar2[6]" identifier = (subscript_expression "puVar2[6]" identifier [ number_literal ])) ;) (if_statement "if (iVar6 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\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(iVar6,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar6,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar6,uVar3)" identifier (argument_list "(iVar6,uVar3)" ( identifier , identifier )))) ;) (expression_statement "iVar6 = gtk_combo_box_get_active(uVar3);" (assignment_expression "iVar6 = gtk_combo_box_get_active(uVar3)" identifier = (call_expression "gtk_combo_box_get_active(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (return_statement "return (uint)(iVar6 == param_3);" return (call_expression "(uint)(iVar6 == param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar6 == param_3)" ( (binary_expression "iVar6 == param_3" identifier == identifier) ))) ;) })) (expression_statement "iVar6 = puVar2[7];" (assignment_expression "iVar6 = puVar2[7]" identifier = (subscript_expression "puVar2[7]" identifier [ number_literal ])) ;) (if_statement "if (iVar6 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }" { (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 "uVar3 = g_type_check_instance_cast(iVar6,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar6,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar6,uVar3)" identifier (argument_list "(iVar6,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 "uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);" (assignment_expression "uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff)" identifier = (call_expression "gtk_tree_path_new_from_indices(param_3,0xffffffff)" identifier (argument_list "(param_3,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);" (assignment_expression "uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4)" identifier = (call_expression "gtk_tree_selection_path_is_selected(uVar3,uVar4)" identifier (argument_list "(uVar3,uVar4)" ( identifier , identifier )))) ;) (expression_statement "gtk_tree_path_free(uVar4);" (call_expression "gtk_tree_path_free(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return uVar5;" return identifier ;) })) (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel")" ( (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_issel"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 )))) ;) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == IDENT) ))) ;) })) (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 )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (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 ") ))) ;) })))
(function_definition "uint FUN_000a4890(undefined4 param_1,int *param_2,int param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0);\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",0x2d4,"dlg_listbox_issel");\n  }\n  iVar6 = puVar2[6];\n  if (iVar6 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }\n  iVar6 = puVar2[7];\n  if (iVar6 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }\n                    \n  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");\n}" (type_identifier "uint") (function_declarator "FUN_000a4890(undefined4 param_1,int *param_2,int param_3)" (identifier "FUN_000a4890") (parameter_list "(undefined4 param_1,int *param_2,int param_3)" (( "(") (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"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0);\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",0x2d4,"dlg_listbox_issel");\n  }\n  iVar6 = puVar2[6];\n  if (iVar6 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }\n  iVar6 = puVar2[7];\n  if (iVar6 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }\n                    \n  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");\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 "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (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_0009ee90(*param_2,param_1,FUN_000a2aa0);" (assignment_expression "puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0009ee90(*param_2,param_1,FUN_000a2aa0)" (identifier "FUN_0009ee90") (argument_list "(*param_2,param_1,FUN_000a2aa0)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "param_1") (, ",") (identifier "FUN_000a2aa0") () ")"))))) (; ";")) (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",0x2d4,"dlg_listbox_issel");\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",0x2d4,"dlg_listbox_issel");\n  }" ({ "{") (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel")" (identifier "__assert_fail") (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel")" (( "(") (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 "0x2d4") (, ",") (string_literal ""dlg_listbox_issel"" (" """) (string_content "dlg_listbox_issel") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar6 = puVar2[6];" (assignment_expression "iVar6 = puVar2[6]" (identifier "iVar6") (= "=") (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]"))) (; ";")) (if_statement "if (iVar6 != 0) {\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = gtk_combo_box_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    iVar6 = gtk_combo_box_get_active(uVar3);\n    return (uint)(iVar6 == param_3);\n  }" ({ "{") (expression_statement "uVar3 = gtk_combo_box_get_type();" (assignment_expression "uVar3 = gtk_combo_box_get_type()" (identifier "uVar3") (= "=") (call_expression "gtk_combo_box_get_type()" (identifier "gtk_combo_box_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = g_type_check_instance_cast(iVar6,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar6,uVar3)" (identifier "uVar3") (= "=") (call_expression "g_type_check_instance_cast(iVar6,uVar3)" (identifier "g_type_check_instance_cast") (argument_list "(iVar6,uVar3)" (( "(") (identifier "iVar6") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "iVar6 = gtk_combo_box_get_active(uVar3);" (assignment_expression "iVar6 = gtk_combo_box_get_active(uVar3)" (identifier "iVar6") (= "=") (call_expression "gtk_combo_box_get_active(uVar3)" (identifier "gtk_combo_box_get_active") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (return_statement "return (uint)(iVar6 == param_3);" (return "return") (call_expression "(uint)(iVar6 == param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar6 == param_3)" (( "(") (binary_expression "iVar6 == param_3" (identifier "iVar6") (== "==") (identifier "param_3")) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar6 = puVar2[7];" (assignment_expression "iVar6 = puVar2[7]" (identifier "iVar6") (= "=") (subscript_expression "puVar2[7]" (identifier "puVar2") ([ "[") (number_literal "7") (] "]"))) (; ";")) (if_statement "if (iVar6 != 0) {\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = gtk_tree_view_get_type();\n    uVar3 = g_type_check_instance_cast(iVar6,uVar3);\n    uVar3 = gtk_tree_view_get_selection(uVar3);\n    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);\n    gtk_tree_path_free(uVar4);\n    return uVar5;\n  }" ({ "{") (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 "uVar3 = g_type_check_instance_cast(iVar6,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar6,uVar3)" (identifier "uVar3") (= "=") (call_expression "g_type_check_instance_cast(iVar6,uVar3)" (identifier "g_type_check_instance_cast") (argument_list "(iVar6,uVar3)" (( "(") (identifier "iVar6") (, ",") (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 "uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);" (assignment_expression "uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff)" (identifier "uVar4") (= "=") (call_expression "gtk_tree_path_new_from_indices(param_3,0xffffffff)" (identifier "gtk_tree_path_new_from_indices") (argument_list "(param_3,0xffffffff)" (( "(") (identifier "param_3") (, ",") (number_literal "0xffffffff") () ")")))) (; ";")) (expression_statement "uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);" (assignment_expression "uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4)" (identifier "uVar5") (= "=") (call_expression "gtk_tree_selection_path_is_selected(uVar3,uVar4)" (identifier "gtk_tree_selection_path_is_selected") (argument_list "(uVar3,uVar4)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "gtk_tree_path_free(uVar4);" (call_expression "gtk_tree_path_free(uVar4)" (identifier "gtk_tree_path_free") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel")" (identifier "__assert_fail") (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel")" (( "(") (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 "0x304") (, ",") (string_literal ""dlg_listbox_issel"" (" """) (string_content "dlg_listbox_issel") (" """)) () ")"))) (; ";")) (} "}")))

/* 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,int var_8)

{
  type_2 *pcVar1;
  type_3 *puVar2;
  type_3 uVar3;
  type_3 uVar4;
  int var_4;
  
                    /* WARNING: Load size is inaccurate */
  if (*dlg == (type_4 *)0x0) {
                    /* WARNING: Does not return */
    pcVar1 = (type_2 *)var_1();
    (*pcVar1)();
  }
  puVar2 = (type_3 *)var_2(*dlg,ctrl,uctrl_cmp_byctrl_find);
  if ((*(type_5 *)*puVar2 & 0xfffffffb) != 1) {
                    /* WARNING: Subroutine does not return */
    var_3("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"
                  ,"unix/gtkdlg.c",0x2d4,"dlg_listbox_issel");
  }
  var_4 = puVar2[6];
  if (var_4 != 0) {
    uVar3 = var_5();
    uVar3 = var_6(var_4,uVar3);
    var_4 = var_7(uVar3);
    return (type_5)(var_4 == var_8);
  }
  var_4 = puVar2[7];
  if (var_4 != 0) {
    uVar3 = var_9();
    uVar3 = var_6(var_4,uVar3);
    uVar3 = var_10(uVar3);
    uVar4 = var_11(var_8,0xffffffff);
    var_4 = var_12(uVar3,uVar4);
    var_13(uVar4);
    return var_4;
  }
                    /* WARNING: Subroutine does not return */
  var_3("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");
}


(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))) (parameter_declaration type: (primitive_type) 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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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))))) (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (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 (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))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))) (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))))))))

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

uint MASKED(undefined4 param_1,int *param_2,int param_3)

{
  code *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  uint uVar5;
  int iVar6;
  
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)FUN_0009ee90(*param_2,param_1,FUN_000a2aa0);
  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",0x2d4,"dlg_listbox_issel");
  }
  iVar6 = puVar2[6];
  if (iVar6 != 0) {
    uVar3 = gtk_combo_box_get_type();
    uVar3 = g_type_check_instance_cast(iVar6,uVar3);
    iVar6 = gtk_combo_box_get_active(uVar3);
    return (uint)(iVar6 == param_3);
  }
  iVar6 = puVar2[7];
  if (iVar6 != 0) {
    uVar3 = gtk_tree_view_get_type();
    uVar3 = g_type_check_instance_cast(iVar6,uVar3);
    uVar3 = gtk_tree_view_get_selection(uVar3);
    uVar4 = gtk_tree_path_new_from_indices(param_3,0xffffffff);
    uVar5 = gtk_tree_selection_path_is_selected(uVar3,uVar4);
    gtk_tree_path_free(uVar4);
    return uVar5;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x304,"dlg_listbox_issel");
}

