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

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

{
  int iVar1;
  code *pcVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int in_GS_OFFSET;
  GtkTreeIter iter;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
                    /* WARNING: Load size is inaccurate */
  if (*dlg == (tree234 *)0x0) {
                    /* WARNING: Does not return */
    pcVar2 = (code *)invalidInstructionException();
    (*pcVar2)();
  }
  puVar3 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);
  if ((*(uint *)*puVar3 & 0xfffffffb) != 1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"
                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del");
  }
  if (puVar3[8] == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");
  }
  uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff);
  uVar5 = gtk_tree_model_get_type();
  uVar5 = g_type_check_instance_cast(puVar3[8],uVar5);
  gtk_tree_model_get_iter(uVar5,&iter,uVar4);
  gtk_list_store_remove(puVar3[8],&iter);
  gtk_tree_path_free(uVar4);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_00051de0(undefined4 param_1,int *param_2,undefined4 param_3)

{
  code *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int in_GS_OFFSET;
  undefined1 local_30 [16];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x51de9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);
  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",0x193,"dlg_listbox_del");
  }
  if (puVar2[8] == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");
  }
  uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);
  uVar4 = gtk_tree_model_get_type();
  uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);
  gtk_tree_model_get_iter(uVar4,local_30,uVar3);
  gtk_list_store_remove(puVar2[8],local_30);
  gtk_tree_path_free(uVar3);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006c950();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x639fb
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0001a039
SUB ESP,0x4
LEA ECX,[EBX + 0xfff9adec]
PUSH ECX
PUSH EDX
PUSH EAX
CALL 0x0004c9c0
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX]
AND EAX,0xfffffffb
CMP EAX,0x1
JNZ 0x00051e93
MOV ECX,dword ptr [ESI + 0x20]
TEST ECX,ECX
JZ 0x00051eb7
SUB ESP,0x8
PUSH -0x1
PUSH dword ptr [ESP + 0x54]
CALL 0x000191b0
MOV EDI,EAX
CALL 0x00019410
POP EDX
POP ECX
PUSH EAX
PUSH dword ptr [ESI + 0x20]
CALL 0x00018580
ADD ESP,0xc
PUSH EDI
LEA EBP,[ESP + 0x14]
PUSH EBP
PUSH EAX
CALL 0x00019c90
POP EAX
POP EDX
PUSH EBP
PUSH dword ptr [ESI + 0x20]
CALL 0x00018970
MOV dword ptr [ESP],EDI
CALL 0x00019fb8
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00051eb2
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfffd35c8]
PUSH EAX
LEA EAX,[EBX + 0xfffd21d8]
PUSH 0x193
PUSH EAX
LEA EAX,[EBX + 0xfffd2528]
PUSH EAX
CALL 0x00019e90
CALL 0x0006c950
LEA EAX,[EBX + 0xfffd35c8]
PUSH EAX
LEA EAX,[EBX + 0xfffd21d8]
PUSH 0x1ad
PUSH EAX
LEA EAX,[EBX + 0xfffd2213]
PUSH EAX
CALL 0x00019e90
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00051de0(undefined4 param_1,int *param_2,undefined4 param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x51de9;\n  local_20 = *(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_0004c9c0(*param_2,param_1,FUN_000505d0);\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",0x193,"dlg_listbox_del");\n  }\n  if (puVar2[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }\n  uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n  uVar4 = gtk_tree_model_get_type();\n  uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);\n  gtk_tree_model_get_iter(uVar4,local_30,uVar3);\n  gtk_list_store_remove(puVar2[8],local_30);\n  gtk_tree_path_free(uVar3);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006c950();\n}\n\n" comment (function_definition "void FUN_00051de0(undefined4 param_1,int *param_2,undefined4 param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x51de9;\n  local_20 = *(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_0004c9c0(*param_2,param_1,FUN_000505d0);\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",0x193,"dlg_listbox_del");\n  }\n  if (puVar2[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }\n  uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n  uVar4 = gtk_tree_model_get_type();\n  uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);\n  gtk_tree_model_get_iter(uVar4,local_30,uVar3);\n  gtk_list_store_remove(puVar2[8],local_30);\n  gtk_tree_path_free(uVar3);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006c950();\n}" primitive_type (function_declarator "FUN_00051de0(undefined4 param_1,int *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x51de9;\n  local_20 = *(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_0004c9c0(*param_2,param_1,FUN_000505d0);\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",0x193,"dlg_listbox_del");\n  }\n  if (puVar2[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }\n  uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n  uVar4 = gtk_tree_model_get_type();\n  uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);\n  gtk_tree_model_get_iter(uVar4,local_30,uVar3);\n  gtk_list_store_remove(puVar2[8],local_30);\n  gtk_tree_path_free(uVar3);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006c950();\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 in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_30 [16];" type_identifier (array_declarator "local_30 [16]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x51de9;" (assignment_expression "uStack_14 = 0x51de9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (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_0004c9c0(*param_2,param_1,FUN_000505d0);" (assignment_expression "puVar2 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0)" identifier = (cast_expression "(undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004c9c0(*param_2,param_1,FUN_000505d0)" identifier (argument_list "(*param_2,param_1,FUN_000505d0)" ( (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",0x193,"dlg_listbox_del");\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",0x193,"dlg_listbox_del");\n  }" { comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del")" ( (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_del"" " string_content ") ))) ;) })) (if_statement "if (puVar2[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }" if (parenthesized_expression "(puVar2[8] == 0)" ( (binary_expression "puVar2[8] == 0" (subscript_expression "puVar2[8]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }" { comment (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del")" ( (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_del"" " string_content ") ))) ;) })) (expression_statement "uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);" (assignment_expression "uVar3 = 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 "uVar4 = gtk_tree_model_get_type();" (assignment_expression "uVar4 = gtk_tree_model_get_type()" identifier = (call_expression "gtk_tree_model_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(puVar2[8],uVar4)" identifier = (call_expression "g_type_check_instance_cast(puVar2[8],uVar4)" identifier (argument_list "(puVar2[8],uVar4)" ( (subscript_expression "puVar2[8]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "gtk_tree_model_get_iter(uVar4,local_30,uVar3);" (call_expression "gtk_tree_model_get_iter(uVar4,local_30,uVar3)" identifier (argument_list "(uVar4,local_30,uVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "gtk_list_store_remove(puVar2[8],local_30);" (call_expression "gtk_list_store_remove(puVar2[8],local_30)" identifier (argument_list "(puVar2[8],local_30)" ( (subscript_expression "puVar2[8]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "gtk_tree_path_free(uVar3);" (call_expression "gtk_tree_path_free(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0006c950();" (call_expression "FUN_0006c950()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid dlg_listbox_del(control *ctrl,void *dlg,int index)\n\n{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  GtkTreeIter iter;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if ((*(uint *)*puVar3 & 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",0x193,"dlg_listbox_del");\n  }\n  if (puVar3[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }\n  uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff);\n  uVar5 = gtk_tree_model_get_type();\n  uVar5 = g_type_check_instance_cast(puVar3[8],uVar5);\n  gtk_tree_model_get_iter(uVar5,&iter,uVar4);\n  gtk_list_store_remove(puVar3[8],&iter);\n  gtk_tree_path_free(uVar4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void dlg_listbox_del(control *ctrl,void *dlg,int index)\n\n{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  GtkTreeIter iter;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if ((*(uint *)*puVar3 & 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",0x193,"dlg_listbox_del");\n  }\n  if (puVar3[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }\n  uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff);\n  uVar5 = gtk_tree_model_get_type();\n  uVar5 = g_type_check_instance_cast(puVar3[8],uVar5);\n  gtk_tree_model_get_iter(uVar5,&iter,uVar4);\n  gtk_list_store_remove(puVar3[8],&iter);\n  gtk_tree_path_free(uVar4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "dlg_listbox_del(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  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  GtkTreeIter iter;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if ((*(uint *)*puVar3 & 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",0x193,"dlg_listbox_del");\n  }\n  if (puVar3[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }\n  uVar4 = gtk_tree_path_new_from_indices(index,0xffffffff);\n  uVar5 = gtk_tree_model_get_type();\n  uVar5 = g_type_check_instance_cast(puVar3[8],uVar5);\n  gtk_tree_model_get_iter(uVar5,&iter,uVar4);\n  gtk_list_store_remove(puVar3[8],&iter);\n  gtk_tree_path_free(uVar4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "GtkTreeIter iter;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) comment (if_statement "if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\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    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }" { comment (expression_statement "pcVar2 = (code *)invalidInstructionException();" (assignment_expression "pcVar2 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar3 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);" (assignment_expression "puVar3 = (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 *)*puVar3 & 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",0x193,"dlg_listbox_del");\n  }" if (parenthesized_expression "((*(uint *)*puVar3 & 0xfffffffb) != 1)" ( (binary_expression "(*(uint *)*puVar3 & 0xfffffffb) != 1" (parenthesized_expression "(*(uint *)*puVar3 & 0xfffffffb)" ( (binary_expression "*(uint *)*puVar3 & 0xfffffffb" (pointer_expression "*(uint *)*puVar3" * (cast_expression "(uint *)*puVar3" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * 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",0x193,"dlg_listbox_del");\n  }" { comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del")" ( (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_del"" " string_content ") ))) ;) })) (if_statement "if (puVar3[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }" if (parenthesized_expression "(puVar3[8] == 0)" ( (binary_expression "puVar3[8] == 0" (subscript_expression "puVar3[8]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }" { comment (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del")" ( (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_del"" " string_content ") ))) ;) })) (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 "uVar5 = gtk_tree_model_get_type();" (assignment_expression "uVar5 = gtk_tree_model_get_type()" identifier = (call_expression "gtk_tree_model_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = g_type_check_instance_cast(puVar3[8],uVar5);" (assignment_expression "uVar5 = g_type_check_instance_cast(puVar3[8],uVar5)" identifier = (call_expression "g_type_check_instance_cast(puVar3[8],uVar5)" identifier (argument_list "(puVar3[8],uVar5)" ( (subscript_expression "puVar3[8]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "gtk_tree_model_get_iter(uVar5,&iter,uVar4);" (call_expression "gtk_tree_model_get_iter(uVar5,&iter,uVar4)" identifier (argument_list "(uVar5,&iter,uVar4)" ( identifier , (pointer_expression "&iter" & identifier) , identifier ))) ;) (expression_statement "gtk_list_store_remove(puVar3[8],&iter);" (call_expression "gtk_list_store_remove(puVar3[8],&iter)" identifier (argument_list "(puVar3[8],&iter)" ( (subscript_expression "puVar3[8]" identifier [ number_literal ]) , (pointer_expression "&iter" & identifier) ))) ;) (expression_statement "gtk_tree_path_free(uVar4);" (call_expression "gtk_tree_path_free(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00051de0(undefined4 param_1,int *param_2,undefined4 param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x51de9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\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",0x193,"dlg_listbox_del");\n  }\n  if (puVar2[8] == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }\n  uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n  uVar4 = gtk_tree_model_get_type();\n  uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);\n  gtk_tree_model_get_iter(uVar4,local_30,uVar3);\n  gtk_list_store_remove(puVar2[8],local_30);\n  gtk_tree_path_free(uVar3);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006c950();\n}\n\n" (function_definition "void FUN_00051de0(undefined4 param_1,int *param_2,undefined4 param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x51de9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\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",0x193,"dlg_listbox_del");\n  }\n  if (puVar2[8] == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }\n  uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n  uVar4 = gtk_tree_model_get_type();\n  uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);\n  gtk_tree_model_get_iter(uVar4,local_30,uVar3);\n  gtk_list_store_remove(puVar2[8],local_30);\n  gtk_tree_path_free(uVar3);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006c950();\n}" primitive_type (function_declarator "FUN_00051de0(undefined4 param_1,int *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x51de9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\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",0x193,"dlg_listbox_del");\n  }\n  if (puVar2[8] == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }\n  uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n  uVar4 = gtk_tree_model_get_type();\n  uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);\n  gtk_tree_model_get_iter(uVar4,local_30,uVar3);\n  gtk_list_store_remove(puVar2[8],local_30);\n  gtk_tree_path_free(uVar3);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006c950();\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 in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_30 [16];" type_identifier (array_declarator "local_30 [16]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x51de9;" (assignment_expression "uStack_14 = 0x51de9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (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_0004c9c0(*param_2,param_1,FUN_000505d0);" (assignment_expression "puVar2 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0)" identifier = (cast_expression "(undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004c9c0(*param_2,param_1,FUN_000505d0)" identifier (argument_list "(*param_2,param_1,FUN_000505d0)" ( (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",0x193,"dlg_listbox_del");\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",0x193,"dlg_listbox_del");\n  }" { (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del")" ( (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_del"" " string_content ") ))) ;) })) (if_statement "if (puVar2[8] == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }" if (parenthesized_expression "(puVar2[8] == 0)" ( (binary_expression "puVar2[8] == 0" (subscript_expression "puVar2[8]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }" { (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del")" ( (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_del"" " string_content ") ))) ;) })) (expression_statement "uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);" (assignment_expression "uVar3 = 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 "uVar4 = gtk_tree_model_get_type();" (assignment_expression "uVar4 = gtk_tree_model_get_type()" identifier = (call_expression "gtk_tree_model_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(puVar2[8],uVar4)" identifier = (call_expression "g_type_check_instance_cast(puVar2[8],uVar4)" identifier (argument_list "(puVar2[8],uVar4)" ( (subscript_expression "puVar2[8]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "gtk_tree_model_get_iter(uVar4,local_30,uVar3);" (call_expression "gtk_tree_model_get_iter(uVar4,local_30,uVar3)" identifier (argument_list "(uVar4,local_30,uVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "gtk_list_store_remove(puVar2[8],local_30);" (call_expression "gtk_list_store_remove(puVar2[8],local_30)" identifier (argument_list "(puVar2[8],local_30)" ( (subscript_expression "puVar2[8]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "gtk_tree_path_free(uVar3);" (call_expression "gtk_tree_path_free(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0006c950();" (call_expression "FUN_0006c950()" identifier (argument_list "()" ( ))) ;) })))
(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 (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == 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 ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00051de0(undefined4 param_1,int *param_2,undefined4 param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x51de9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\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",0x193,"dlg_listbox_del");\n  }\n  if (puVar2[8] == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }\n  uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n  uVar4 = gtk_tree_model_get_type();\n  uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);\n  gtk_tree_model_get_iter(uVar4,local_30,uVar3);\n  gtk_list_store_remove(puVar2[8],local_30);\n  gtk_tree_path_free(uVar3);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006c950();\n}" (primitive_type "void") (function_declarator "FUN_00051de0(undefined4 param_1,int *param_2,undefined4 param_3)" (identifier "FUN_00051de0") (parameter_list "(undefined4 param_1,int *param_2,undefined4 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 "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x51de9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\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",0x193,"dlg_listbox_del");\n  }\n  if (puVar2[8] == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }\n  uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);\n  uVar4 = gtk_tree_model_get_type();\n  uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);\n  gtk_tree_model_get_iter(uVar4,local_30,uVar3);\n  gtk_list_store_remove(puVar2[8],local_30);\n  gtk_tree_path_free(uVar3);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006c950();\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 "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_30 [16];" (type_identifier "undefined1") (array_declarator "local_30 [16]" (identifier "local_30") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x51de9;" (assignment_expression "uStack_14 = 0x51de9" (identifier "uStack_14") (= "=") (number_literal "0x51de9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (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_0004c9c0(*param_2,param_1,FUN_000505d0);" (assignment_expression "puVar2 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004c9c0(*param_2,param_1,FUN_000505d0)" (identifier "FUN_0004c9c0") (argument_list "(*param_2,param_1,FUN_000505d0)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "param_1") (, ",") (identifier "FUN_000505d0") () ")"))))) (; ";")) (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",0x193,"dlg_listbox_del");\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",0x193,"dlg_listbox_del");\n  }" ({ "{") (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del")" (identifier "__assert_fail") (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del")" (( "(") (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 "0x193") (, ",") (string_literal ""dlg_listbox_del"" (" """) (string_content "dlg_listbox_del") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (puVar2[8] == 0) {\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }" (if "if") (parenthesized_expression "(puVar2[8] == 0)" (( "(") (binary_expression "puVar2[8] == 0" (subscript_expression "puVar2[8]" (identifier "puVar2") ([ "[") (number_literal "8") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");\n  }" ({ "{") (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del")" (identifier "__assert_fail") (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del")" (( "(") (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 "0x1ad") (, ",") (string_literal ""dlg_listbox_del"" (" """) (string_content "dlg_listbox_del") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);" (assignment_expression "uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff)" (identifier "uVar3") (= "=") (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 "uVar4 = gtk_tree_model_get_type();" (assignment_expression "uVar4 = gtk_tree_model_get_type()" (identifier "uVar4") (= "=") (call_expression "gtk_tree_model_get_type()" (identifier "gtk_tree_model_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(puVar2[8],uVar4)" (identifier "uVar4") (= "=") (call_expression "g_type_check_instance_cast(puVar2[8],uVar4)" (identifier "g_type_check_instance_cast") (argument_list "(puVar2[8],uVar4)" (( "(") (subscript_expression "puVar2[8]" (identifier "puVar2") ([ "[") (number_literal "8") (] "]")) (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "gtk_tree_model_get_iter(uVar4,local_30,uVar3);" (call_expression "gtk_tree_model_get_iter(uVar4,local_30,uVar3)" (identifier "gtk_tree_model_get_iter") (argument_list "(uVar4,local_30,uVar3)" (( "(") (identifier "uVar4") (, ",") (identifier "local_30") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "gtk_list_store_remove(puVar2[8],local_30);" (call_expression "gtk_list_store_remove(puVar2[8],local_30)" (identifier "gtk_list_store_remove") (argument_list "(puVar2[8],local_30)" (( "(") (subscript_expression "puVar2[8]" (identifier "puVar2") ([ "[") (number_literal "8") (] "]")) (, ",") (identifier "local_30") () ")"))) (; ";")) (expression_statement "gtk_tree_path_free(uVar3);" (call_expression "gtk_tree_path_free(uVar3)" (identifier "gtk_tree_path_free") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0006c950();" (call_expression "FUN_0006c950()" (identifier "FUN_0006c950") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *ctrl,void *dlg,int index)

{
  int var_11;
  type_2 *pcVar2;
  type_3 *puVar3;
  type_3 uVar4;
  type_3 uVar5;
  int var_1;
  type_4 iter;
  
  var_11 = *(int *)(var_1 + 0x14);
                    /* WARNING: Load size is inaccurate */
  if (*dlg == (type_5 *)0x0) {
                    /* WARNING: Does not return */
    pcVar2 = (type_2 *)var_2();
    (*pcVar2)();
  }
  puVar3 = (type_3 *)var_3(*dlg,ctrl,uctrl_cmp_byctrl_find);
  if ((*(type_6 *)*puVar3 & 0xfffffffb) != 1) {
                    /* WARNING: Subroutine does not return */
    var_4("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"
                  ,"unix/gtkdlg.c",0x193,"dlg_listbox_del");
  }
  if (puVar3[8] == 0) {
                    /* WARNING: Subroutine does not return */
    var_4("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");
  }
  uVar4 = var_5(index,0xffffffff);
  uVar5 = var_6();
  uVar5 = var_7(puVar3[8],uVar5);
  var_8(uVar5,&iter,uVar4);
  var_9(puVar3[8],&iter);
  var_10(uVar4);
  if (var_11 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


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

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

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

{
  code *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int in_GS_OFFSET;
  undefined1 local_30 [16];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x51de9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);
  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",0x193,"dlg_listbox_del");
  }
  if (puVar2[8] == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x1ad,"dlg_listbox_del");
  }
  uVar3 = gtk_tree_path_new_from_indices(param_3,0xffffffff);
  uVar4 = gtk_tree_model_get_type();
  uVar4 = g_type_check_instance_cast(puVar2[8],uVar4);
  gtk_tree_model_get_iter(uVar4,local_30,uVar3);
  gtk_list_store_remove(puVar2[8],local_30);
  gtk_tree_path_free(uVar3);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006c950();
}

