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

void eventlog_list_handler(control *ctrl,void *dlg,void *data,int event)

{
  code *pcVar1;
  int iVar2;
  size_t sVar3;
  undefined4 *puVar4;
  int iVar5;
  char *__s;
  void *local_28;
  size_t local_20;
  
  if (event == 0) {
                    /* WARNING: Load size is inaccurate */
    if (*dlg == (tree234 *)0x0) {
                    /* WARNING: Does not return */
      pcVar1 = (code *)invalidInstructionException();
      (*pcVar1)();
    }
    puVar4 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);
    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"
                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");
    }
    if (puVar4[8] == 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");
    }
    gtk_list_store_clear(puVar4[8]);
    if (0 < *(int *)((int)data + 0x648)) {
      iVar5 = 0;
      do {
        iVar2 = iVar5 * 4;
        iVar5 = iVar5 + 1;
        dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0);
      } while (iVar5 < *(int *)((int)data + 0x648));
      return;
    }
  }
  else if ((event == 3) && (*(int *)((int)data + 0x658) == 0)) {
    iVar5 = 0;
    safefree(*(void **)((int)data + 0x650));
    *(undefined4 *)((int)data + 0x650) = 0;
    *(undefined4 *)((int)data + 0x654) = 0;
    local_20 = 0;
    if (0 < *(int *)((int)data + 0x648)) {
      do {
        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);
        if (iVar2 != 0) {
          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);
          sVar3 = strlen(__s);
          iVar2 = *(int *)((int)data + 0x654);
          local_28 = *(void **)((int)data + 0x650);
          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {
            local_20 = sVar3 + iVar2 + 0x200;
            local_28 = saferealloc(local_28,local_20,1);
            *(void **)((int)data + 0x650) = local_28;
            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);
            iVar2 = *(int *)((int)data + 0x654);
          }
          strcpy((char *)(iVar2 + (int)local_28),__s);
          iVar2 = sVar3 + *(int *)((int)data + 0x654);
          *(int *)((int)data + 0x654) = iVar2 + 1;
          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;
        }
        iVar5 = iVar5 + 1;
      } while (iVar5 < *(int *)((int)data + 0x648));
    }
    iVar5 = gtk_selection_owner_set(*(undefined4 *)((int)data + 4),1,0);
    if (iVar5 != 0) {
      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1);
      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1);
    }
  }
  return;
}



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

void FUN_000524d0(undefined4 param_1,int *param_2,int param_3,int param_4)

{
  code *pcVar1;
  int iVar2;
  size_t sVar3;
  undefined4 *puVar4;
  int iVar5;
  char *__s;
  int local_28;
  int local_20;
  
  if (param_4 == 0) {
    if (*param_2 == 0) {
                    /* WARNING: Does not return */
      pcVar1 = (code *)invalidInstructionException();
      (*pcVar1)();
    }
    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);
    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"
                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");
    }
    if (puVar4[8] == 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");
    }
    gtk_list_store_clear(puVar4[8]);
    if (0 < *(int *)(param_3 + 0x648)) {
      iVar5 = 0;
      do {
        iVar2 = iVar5 * 4;
        iVar5 = iVar5 + 1;
        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);
      } while (iVar5 < *(int *)(param_3 + 0x648));
      return;
    }
  }
  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {
    iVar5 = 0;
    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));
    *(undefined4 *)(param_3 + 0x650) = 0;
    *(undefined4 *)(param_3 + 0x654) = 0;
    local_20 = 0;
    if (0 < *(int *)(param_3 + 0x648)) {
      do {
        iVar2 = FUN_000523c0(param_1,param_2,iVar5);
        if (iVar2 != 0) {
          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);
          sVar3 = strlen(__s);
          iVar2 = *(int *)(param_3 + 0x654);
          local_28 = *(int *)(param_3 + 0x650);
          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {
            local_20 = sVar3 + iVar2 + 0x200;
            local_28 = FUN_000300c0(local_28,local_20,1);
            *(int *)(param_3 + 0x650) = local_28;
            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);
            iVar2 = *(int *)(param_3 + 0x654);
          }
          strcpy((char *)(iVar2 + local_28),__s);
          iVar2 = sVar3 + *(int *)(param_3 + 0x654);
          *(int *)(param_3 + 0x654) = iVar2 + 1;
          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;
        }
        iVar5 = iVar5 + 1;
      } while (iVar5 < *(int *)(param_3 + 0x648));
    }
    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);
    if (iVar5 != 0) {
      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);
      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x6330b
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x3c]
MOV ESI,dword ptr [ESP + 0x38]
TEST EDI,EDI
JZ 0x00052618
CMP EDI,0x3
JZ 0x00052500
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x658]
MOV dword ptr [ESP + 0xc],EAX
TEST EAX,EAX
JNZ 0x000524f7
SUB ESP,0xc
PUSH dword ptr [ESI + 0x650]
XOR EBP,EBP
CALL 0x000301a0
MOV EAX,dword ptr [ESI + 0x648]
ADD ESP,0x10
MOV dword ptr [ESI + 0x650],0x0
MOV dword ptr [ESI + 0x654],0x0
TEST EAX,EAX
JG 0x00052585
JMP 0x000526b0
SUB ESP,0x8
PUSH EDI
ADD EAX,dword ptr [ESP + 0x10]
PUSH EAX
CALL 0x00019df0
MOV EAX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESI + 0x650]
ADD ESP,0x10
ADD EAX,dword ptr [ESI + 0x654]
LEA ECX,[EAX + 0x1]
MOV dword ptr [ESI + 0x654],ECX
MOV byte ptr [EDX + EAX*0x1],0xa
ADD EBP,0x1
CMP EBP,dword ptr [ESI + 0x648]
JGE 0x000526b0
SUB ESP,0x4
PUSH EBP
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
CALL 0x000523c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00052576
MOV EAX,dword ptr [ESI + 0x644]
SUB ESP,0xc
MOV EDI,dword ptr [EAX + EBP*0x4]
PUSH EDI
CALL 0x000188b0
ADD ESP,0x10
MOV ECX,EAX
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESI + 0x654]
LEA EDX,[ECX + EAX*0x1]
MOV ECX,dword ptr [ESI + 0x650]
MOV dword ptr [ESP + 0x4],ECX
LEA ECX,[EDX + 0x1]
CMP ECX,dword ptr [ESP + 0xc]
JL 0x00052548
LEA EAX,[EDX + 0x200]
SUB ESP,0x4
MOV dword ptr [ESP + 0x10],EAX
PUSH 0x1
PUSH EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x000300c0
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x10
MOV dword ptr [ESI + 0x650],EAX
MOV EAX,dword ptr [ESI + 0x644]
MOV EDI,dword ptr [EAX + EBP*0x4]
MOV EAX,dword ptr [ESI + 0x654]
JMP 0x00052548
MOV EAX,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0001a05c
SUB ESP,0x4
LEA EDX,[EBX + 0xfff9adec]
PUSH EDX
PUSH dword ptr [ESP + 0x38]
PUSH EAX
CALL 0x0004c9c0
ADD ESP,0x10
MOV EDX,dword ptr [EAX]
MOV EDX,dword ptr [EDX]
AND EDX,0xfffffffb
CMP EDX,0x1
JNZ 0x000526f4
MOV EAX,dword ptr [EAX + 0x20]
TEST EAX,EAX
JZ 0x00052713
SUB ESP,0xc
PUSH EAX
CALL 0x00019db0
MOV EDX,dword ptr [ESI + 0x648]
ADD ESP,0x10
TEST EDX,EDX
JLE 0x000524f7
MOV EBX,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESP + 0x34]
LEA ESI,[ESI]
PUSH 0x0
MOV EAX,dword ptr [ESI + 0x644]
PUSH dword ptr [EAX + EDI*0x4]
ADD EDI,0x1
PUSH EBP
PUSH EBX
CALL 0x00051ee0
ADD ESP,0x10
CMP dword ptr [ESI + 0x648],EDI
JG 0x00052680
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH 0x0
PUSH 0x1
PUSH dword ptr [ESI + 0x4]
CALL 0x00018620
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000524f7
PUSH 0x1
PUSH 0x1f
PUSH 0x1
PUSH dword ptr [ESI + 0x4]
CALL 0x00019910
LEA EAX,[EBX + 0xab8]
PUSH 0x1
PUSH dword ptr [EAX]
PUSH 0x1
PUSH dword ptr [ESI + 0x4]
CALL 0x00019910
ADD ESP,0x20
JMP 0x000524f7
LEA EAX,[EBX + 0xfffd35d8]
PUSH EAX
LEA EAX,[EBX + 0xfffd21d8]
PUSH 0x176
PUSH EAX
LEA EAX,[EBX + 0xfffd2528]
PUSH EAX
CALL 0x00019e90
LEA EAX,[EBX + 0xfffd35d8]
PUSH EAX
LEA EAX,[EBX + 0xfffd21d8]
PUSH 0x18a
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_000524d0(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  code *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  char *__s;\n  int local_28;\n  int local_20;\n  \n  if (param_4 == 0) {\n    if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }\n  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000524d0(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  code *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  char *__s;\n  int local_28;\n  int local_20;\n  \n  if (param_4 == 0) {\n    if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }\n  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000524d0(undefined4 param_1,int *param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4)" ( (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) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  char *__s;\n  int local_28;\n  int local_20;\n  \n  if (param_4 == 0) {\n    if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }\n  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }\n  return;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if (param_4 == 0) {\n    if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }\n  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }" { (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 "puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);" (assignment_expression "puVar4 = (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 *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }" if (parenthesized_expression "((*(uint *)*puVar4 & 0xfffffffb) != 1)" ( (binary_expression "(*(uint *)*puVar4 & 0xfffffffb) != 1" (parenthesized_expression "(*(uint *)*puVar4 & 0xfffffffb)" ( (binary_expression "*(uint *)*puVar4 & 0xfffffffb" (pointer_expression "*(uint *)*puVar4" * (cast_expression "(uint *)*puVar4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * 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",0x176,"dlg_listbox_clear");\n    }" { comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear")" ( (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_clear"" " string_content ") ))) ;) })) (if_statement "if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }" if (parenthesized_expression "(puVar4[8] == 0)" ( (binary_expression "puVar4[8] == 0" (subscript_expression "puVar4[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",0x18a,"dlg_listbox_clear");\n    }" { comment (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" ( (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_clear"" " string_content ") ))) ;) })) (expression_statement "gtk_list_store_clear(puVar4[8]);" (call_expression "gtk_list_store_clear(puVar4[8])" identifier (argument_list "(puVar4[8])" ( (subscript_expression "puVar4[8]" identifier [ number_literal ]) ))) ;) (if_statement "if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }" if (parenthesized_expression "(0 < *(int *)(param_3 + 0x648))" ( (binary_expression "0 < *(int *)(param_3 + 0x648)" number_literal < (pointer_expression "*(int *)(param_3 + 0x648)" * (cast_expression "(int *)(param_3 + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x648)" ( (binary_expression "param_3 + 0x648" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));" do (compound_statement "{\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      }" { (expression_statement "iVar2 = iVar5 * 4;" (assignment_expression "iVar2 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);" (call_expression "FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0)" identifier (argument_list "(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2)" * (cast_expression "(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_3 + 0x644) + iVar2)" ( (binary_expression "*(int *)(param_3 + 0x644) + iVar2" (pointer_expression "*(int *)(param_3 + 0x644)" * (cast_expression "(int *)(param_3 + 0x644)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x644)" ( (binary_expression "param_3 + 0x644" identifier + number_literal) )))) + identifier) )))) , number_literal ))) ;) }) while (parenthesized_expression "(iVar5 < *(int *)(param_3 + 0x648))" ( (binary_expression "iVar5 < *(int *)(param_3 + 0x648)" identifier < (pointer_expression "*(int *)(param_3 + 0x648)" * (cast_expression "(int *)(param_3 + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x648)" ( (binary_expression "param_3 + 0x648" identifier + number_literal) ))))) )) ;) (return_statement "return;" return ;) })) }) (else_clause "else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" else (if_statement "if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" if (parenthesized_expression "((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0))" ( (binary_expression "(param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)" (parenthesized_expression "(param_4 == 3)" ( (binary_expression "param_4 == 3" identifier == number_literal) )) && (parenthesized_expression "(*(int *)(param_3 + 0x658) == 0)" ( (binary_expression "*(int *)(param_3 + 0x658) == 0" (pointer_expression "*(int *)(param_3 + 0x658)" * (cast_expression "(int *)(param_3 + 0x658)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x658)" ( (binary_expression "param_3 + 0x658" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "FUN_000301a0(*(undefined4 *)(param_3 + 0x650));" (call_expression "FUN_000301a0(*(undefined4 *)(param_3 + 0x650))" identifier (argument_list "(*(undefined4 *)(param_3 + 0x650))" ( (pointer_expression "*(undefined4 *)(param_3 + 0x650)" * (cast_expression "(undefined4 *)(param_3 + 0x650)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x650)" ( (binary_expression "param_3 + 0x650" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x650) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x650) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x650)" * (cast_expression "(undefined4 *)(param_3 + 0x650)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x650)" ( (binary_expression "param_3 + 0x650" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0x654) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x654) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x654)" * (cast_expression "(undefined4 *)(param_3 + 0x654)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x654)" ( (binary_expression "param_3 + 0x654" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }" if (parenthesized_expression "(0 < *(int *)(param_3 + 0x648))" ( (binary_expression "0 < *(int *)(param_3 + 0x648)" number_literal < (pointer_expression "*(int *)(param_3 + 0x648)" * (cast_expression "(int *)(param_3 + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x648)" ( (binary_expression "param_3 + 0x648" identifier + number_literal) ))))) )) (compound_statement "{\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }" { (do_statement "do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));" do (compound_statement "{\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      }" { (expression_statement "iVar2 = FUN_000523c0(param_1,param_2,iVar5);" (assignment_expression "iVar2 = FUN_000523c0(param_1,param_2,iVar5)" identifier = (call_expression "FUN_000523c0(param_1,param_2,iVar5)" identifier (argument_list "(param_1,param_2,iVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }" { (expression_statement "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);" (assignment_expression "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" identifier = (pointer_expression "*(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" * (cast_expression "(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_3 + 0x644) + iVar5 * 4)" ( (binary_expression "*(int *)(param_3 + 0x644) + iVar5 * 4" (pointer_expression "*(int *)(param_3 + 0x644)" * (cast_expression "(int *)(param_3 + 0x644)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x644)" ( (binary_expression "param_3 + 0x644" identifier + number_literal) )))) + (binary_expression "iVar5 * 4" identifier * number_literal)) ))))) ;) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "iVar2 = *(int *)(param_3 + 0x654);" (assignment_expression "iVar2 = *(int *)(param_3 + 0x654)" identifier = (pointer_expression "*(int *)(param_3 + 0x654)" * (cast_expression "(int *)(param_3 + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x654)" ( (binary_expression "param_3 + 0x654" identifier + number_literal) ))))) ;) (expression_statement "local_28 = *(int *)(param_3 + 0x650);" (assignment_expression "local_28 = *(int *)(param_3 + 0x650)" identifier = (pointer_expression "*(int *)(param_3 + 0x650)" * (cast_expression "(int *)(param_3 + 0x650)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x650)" ( (binary_expression "param_3 + 0x650" identifier + number_literal) ))))) ;) (if_statement "if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }" if (parenthesized_expression "(local_20 <= (int)(sVar3 + iVar2 + 1))" ( (binary_expression "local_20 <= (int)(sVar3 + iVar2 + 1)" identifier <= (cast_expression "(int)(sVar3 + iVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(sVar3 + iVar2 + 1)" ( (binary_expression "sVar3 + iVar2 + 1" (binary_expression "sVar3 + iVar2" identifier + identifier) + number_literal) )))) )) (compound_statement "{\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }" { (expression_statement "local_20 = sVar3 + iVar2 + 0x200;" (assignment_expression "local_20 = sVar3 + iVar2 + 0x200" identifier = (binary_expression "sVar3 + iVar2 + 0x200" (binary_expression "sVar3 + iVar2" identifier + identifier) + number_literal)) ;) (expression_statement "local_28 = FUN_000300c0(local_28,local_20,1);" (assignment_expression "local_28 = FUN_000300c0(local_28,local_20,1)" identifier = (call_expression "FUN_000300c0(local_28,local_20,1)" identifier (argument_list "(local_28,local_20,1)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*(int *)(param_3 + 0x650) = local_28;" (assignment_expression "*(int *)(param_3 + 0x650) = local_28" (pointer_expression "*(int *)(param_3 + 0x650)" * (cast_expression "(int *)(param_3 + 0x650)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x650)" ( (binary_expression "param_3 + 0x650" identifier + number_literal) )))) = identifier) ;) (expression_statement "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);" (assignment_expression "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" identifier = (pointer_expression "*(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" * (cast_expression "(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_3 + 0x644) + iVar5 * 4)" ( (binary_expression "*(int *)(param_3 + 0x644) + iVar5 * 4" (pointer_expression "*(int *)(param_3 + 0x644)" * (cast_expression "(int *)(param_3 + 0x644)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x644)" ( (binary_expression "param_3 + 0x644" identifier + number_literal) )))) + (binary_expression "iVar5 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar2 = *(int *)(param_3 + 0x654);" (assignment_expression "iVar2 = *(int *)(param_3 + 0x654)" identifier = (pointer_expression "*(int *)(param_3 + 0x654)" * (cast_expression "(int *)(param_3 + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x654)" ( (binary_expression "param_3 + 0x654" identifier + number_literal) ))))) ;) })) (expression_statement "strcpy((char *)(iVar2 + local_28),__s);" (call_expression "strcpy((char *)(iVar2 + local_28),__s)" identifier (argument_list "((char *)(iVar2 + local_28),__s)" ( (cast_expression "(char *)(iVar2 + local_28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + local_28)" ( (binary_expression "iVar2 + local_28" identifier + identifier) ))) , identifier ))) ;) (expression_statement "iVar2 = sVar3 + *(int *)(param_3 + 0x654);" (assignment_expression "iVar2 = sVar3 + *(int *)(param_3 + 0x654)" identifier = (binary_expression "sVar3 + *(int *)(param_3 + 0x654)" identifier + (pointer_expression "*(int *)(param_3 + 0x654)" * (cast_expression "(int *)(param_3 + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x654)" ( (binary_expression "param_3 + 0x654" identifier + number_literal) )))))) ;) (expression_statement "*(int *)(param_3 + 0x654) = iVar2 + 1;" (assignment_expression "*(int *)(param_3 + 0x654) = iVar2 + 1" (pointer_expression "*(int *)(param_3 + 0x654)" * (cast_expression "(int *)(param_3 + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x654)" ( (binary_expression "param_3 + 0x654" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;" (assignment_expression "*(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10" (pointer_expression "*(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2)" * (cast_expression "(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_3 + 0x650) + iVar2)" ( (binary_expression "*(int *)(param_3 + 0x650) + iVar2" (pointer_expression "*(int *)(param_3 + 0x650)" * (cast_expression "(int *)(param_3 + 0x650)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x650)" ( (binary_expression "param_3 + 0x650" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < *(int *)(param_3 + 0x648))" ( (binary_expression "iVar5 < *(int *)(param_3 + 0x648)" identifier < (pointer_expression "*(int *)(param_3 + 0x648)" * (cast_expression "(int *)(param_3 + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x648)" ( (binary_expression "param_3 + 0x648" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);" (assignment_expression "iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0)" identifier = (call_expression "gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0)" identifier (argument_list "(*(undefined4 *)(param_3 + 4),1,0)" ( (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) , number_literal , number_literal )))) ;) (if_statement "if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }" { (expression_statement "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);" (call_expression "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1)" identifier (argument_list "(*(undefined4 *)(param_3 + 4),1,0x1f,1)" ( (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) , number_literal , number_literal , number_literal ))) ;) (expression_statement "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);" (call_expression "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1)" identifier (argument_list "(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1)" ( (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) , number_literal , identifier , number_literal ))) ;) })) })))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid eventlog_list_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  code *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  char *__s;\n  void *local_28;\n  size_t local_20;\n  \n  if (event == 0) {\n                    /* WARNING: Load size is inaccurate */\n    if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n    if ((*(uint *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)((int)data + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)((int)data + 0x648));\n      return;\n    }\n  }\n  else if ((event == 3) && (*(int *)((int)data + 0x658) == 0)) {\n    iVar5 = 0;\n    safefree(*(void **)((int)data + 0x650));\n    *(undefined4 *)((int)data + 0x650) = 0;\n    *(undefined4 *)((int)data + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)((int)data + 0x648)) {\n      do {\n        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)((int)data + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)((int)data + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1);\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void eventlog_list_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  code *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  char *__s;\n  void *local_28;\n  size_t local_20;\n  \n  if (event == 0) {\n                    /* WARNING: Load size is inaccurate */\n    if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n    if ((*(uint *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)((int)data + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)((int)data + 0x648));\n      return;\n    }\n  }\n  else if ((event == 3) && (*(int *)((int)data + 0x658) == 0)) {\n    iVar5 = 0;\n    safefree(*(void **)((int)data + 0x650));\n    *(undefined4 *)((int)data + 0x650) = 0;\n    *(undefined4 *)((int)data + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)((int)data + 0x648)) {\n      do {\n        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)((int)data + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)((int)data + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "eventlog_list_handler(control *ctrl,void *dlg,void *data,int event)" identifier (parameter_list "(control *ctrl,void *dlg,void *data,int event)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int event" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  char *__s;\n  void *local_28;\n  size_t local_20;\n  \n  if (event == 0) {\n                    /* WARNING: Load size is inaccurate */\n    if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n    if ((*(uint *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)((int)data + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)((int)data + 0x648));\n      return;\n    }\n  }\n  else if ((event == 3) && (*(int *)((int)data + 0x658) == 0)) {\n    iVar5 = 0;\n    safefree(*(void **)((int)data + 0x650));\n    *(undefined4 *)((int)data + 0x650) = 0;\n    *(undefined4 *)((int)data + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)((int)data + 0x648)) {\n      do {\n        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)((int)data + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)((int)data + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1);\n    }\n  }\n  return;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "size_t local_20;" primitive_type identifier ;) (if_statement "if (event == 0) {\n                    /* WARNING: Load size is inaccurate */\n    if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n    if ((*(uint *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)((int)data + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)((int)data + 0x648));\n      return;\n    }\n  }\n  else if ((event == 3) && (*(int *)((int)data + 0x658) == 0)) {\n    iVar5 = 0;\n    safefree(*(void **)((int)data + 0x650));\n    *(undefined4 *)((int)data + 0x650) = 0;\n    *(undefined4 *)((int)data + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)((int)data + 0x648)) {\n      do {\n        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)((int)data + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)((int)data + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1);\n    }\n  }" if (parenthesized_expression "(event == 0)" ( (binary_expression "event == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n    if ((*(uint *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)((int)data + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)((int)data + 0x648));\n      return;\n    }\n  }" { 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 "puVar4 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);" (assignment_expression "puVar4 = (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 *)*puVar4 & 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",0x176,"dlg_listbox_clear");\n    }" if (parenthesized_expression "((*(uint *)*puVar4 & 0xfffffffb) != 1)" ( (binary_expression "(*(uint *)*puVar4 & 0xfffffffb) != 1" (parenthesized_expression "(*(uint *)*puVar4 & 0xfffffffb)" ( (binary_expression "*(uint *)*puVar4 & 0xfffffffb" (pointer_expression "*(uint *)*puVar4" * (cast_expression "(uint *)*puVar4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * 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",0x176,"dlg_listbox_clear");\n    }" { comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear")" ( (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_clear"" " string_content ") ))) ;) })) (if_statement "if (puVar4[8] == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }" if (parenthesized_expression "(puVar4[8] == 0)" ( (binary_expression "puVar4[8] == 0" (subscript_expression "puVar4[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",0x18a,"dlg_listbox_clear");\n    }" { comment (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" ( (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_clear"" " string_content ") ))) ;) })) (expression_statement "gtk_list_store_clear(puVar4[8]);" (call_expression "gtk_list_store_clear(puVar4[8])" identifier (argument_list "(puVar4[8])" ( (subscript_expression "puVar4[8]" identifier [ number_literal ]) ))) ;) (if_statement "if (0 < *(int *)((int)data + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)((int)data + 0x648));\n      return;\n    }" if (parenthesized_expression "(0 < *(int *)((int)data + 0x648))" ( (binary_expression "0 < *(int *)((int)data + 0x648)" number_literal < (pointer_expression "*(int *)((int)data + 0x648)" * (cast_expression "(int *)((int)data + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x648)" ( (binary_expression "(int)data + 0x648" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)((int)data + 0x648));\n      return;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)((int)data + 0x648));" do (compound_statement "{\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0);\n      }" { (expression_statement "iVar2 = iVar5 * 4;" (assignment_expression "iVar2 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0);" (call_expression "dlg_listbox_addwithid(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0)" identifier (argument_list "(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + iVar2),0)" ( identifier , identifier , (pointer_expression "*(char **)(*(int *)((int)data + 0x644) + iVar2)" * (cast_expression "(char **)(*(int *)((int)data + 0x644) + iVar2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)data + 0x644) + iVar2)" ( (binary_expression "*(int *)((int)data + 0x644) + iVar2" (pointer_expression "*(int *)((int)data + 0x644)" * (cast_expression "(int *)((int)data + 0x644)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x644)" ( (binary_expression "(int)data + 0x644" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + identifier) )))) , number_literal ))) ;) }) while (parenthesized_expression "(iVar5 < *(int *)((int)data + 0x648))" ( (binary_expression "iVar5 < *(int *)((int)data + 0x648)" identifier < (pointer_expression "*(int *)((int)data + 0x648)" * (cast_expression "(int *)((int)data + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x648)" ( (binary_expression "(int)data + 0x648" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) ;) (return_statement "return;" return ;) })) }) (else_clause "else if ((event == 3) && (*(int *)((int)data + 0x658) == 0)) {\n    iVar5 = 0;\n    safefree(*(void **)((int)data + 0x650));\n    *(undefined4 *)((int)data + 0x650) = 0;\n    *(undefined4 *)((int)data + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)((int)data + 0x648)) {\n      do {\n        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)((int)data + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)((int)data + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1);\n    }\n  }" else (if_statement "if ((event == 3) && (*(int *)((int)data + 0x658) == 0)) {\n    iVar5 = 0;\n    safefree(*(void **)((int)data + 0x650));\n    *(undefined4 *)((int)data + 0x650) = 0;\n    *(undefined4 *)((int)data + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)((int)data + 0x648)) {\n      do {\n        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)((int)data + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)((int)data + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1);\n    }\n  }" if (parenthesized_expression "((event == 3) && (*(int *)((int)data + 0x658) == 0))" ( (binary_expression "(event == 3) && (*(int *)((int)data + 0x658) == 0)" (parenthesized_expression "(event == 3)" ( (binary_expression "event == 3" identifier == number_literal) )) && (parenthesized_expression "(*(int *)((int)data + 0x658) == 0)" ( (binary_expression "*(int *)((int)data + 0x658) == 0" (pointer_expression "*(int *)((int)data + 0x658)" * (cast_expression "(int *)((int)data + 0x658)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x658)" ( (binary_expression "(int)data + 0x658" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    iVar5 = 0;\n    safefree(*(void **)((int)data + 0x650));\n    *(undefined4 *)((int)data + 0x650) = 0;\n    *(undefined4 *)((int)data + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)((int)data + 0x648)) {\n      do {\n        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)((int)data + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)((int)data + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1);\n    }\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "safefree(*(void **)((int)data + 0x650));" (call_expression "safefree(*(void **)((int)data + 0x650))" identifier (argument_list "(*(void **)((int)data + 0x650))" ( (pointer_expression "*(void **)((int)data + 0x650)" * (cast_expression "(void **)((int)data + 0x650)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0x650)" ( (binary_expression "(int)data + 0x650" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)((int)data + 0x650) = 0;" (assignment_expression "*(undefined4 *)((int)data + 0x650) = 0" (pointer_expression "*(undefined4 *)((int)data + 0x650)" * (cast_expression "(undefined4 *)((int)data + 0x650)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x650)" ( (binary_expression "(int)data + 0x650" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)data + 0x654) = 0;" (assignment_expression "*(undefined4 *)((int)data + 0x654) = 0" (pointer_expression "*(undefined4 *)((int)data + 0x654)" * (cast_expression "(undefined4 *)((int)data + 0x654)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x654)" ( (binary_expression "(int)data + 0x654" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(int *)((int)data + 0x648)) {\n      do {\n        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)((int)data + 0x648));\n    }" if (parenthesized_expression "(0 < *(int *)((int)data + 0x648))" ( (binary_expression "0 < *(int *)((int)data + 0x648)" number_literal < (pointer_expression "*(int *)((int)data + 0x648)" * (cast_expression "(int *)((int)data + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x648)" ( (binary_expression "(int)data + 0x648" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n      do {\n        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)((int)data + 0x648));\n    }" { (do_statement "do {\n        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)((int)data + 0x648));" do (compound_statement "{\n        iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      }" { (expression_statement "iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5);" (assignment_expression "iVar2 = dlg_listbox_issel(ctrl,dlg,iVar5)" identifier = (call_expression "dlg_listbox_issel(ctrl,dlg,iVar5)" identifier (argument_list "(ctrl,dlg,iVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)((int)data + 0x654);\n          local_28 = *(void **)((int)data + 0x650);\n          if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }\n          strcpy((char *)(iVar2 + (int)local_28),__s);\n          iVar2 = sVar3 + *(int *)((int)data + 0x654);\n          *(int *)((int)data + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;\n        }" { (expression_statement "__s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);" (assignment_expression "__s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4)" identifier = (pointer_expression "*(char **)(*(int *)((int)data + 0x644) + iVar5 * 4)" * (cast_expression "(char **)(*(int *)((int)data + 0x644) + iVar5 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)data + 0x644) + iVar5 * 4)" ( (binary_expression "*(int *)((int)data + 0x644) + iVar5 * 4" (pointer_expression "*(int *)((int)data + 0x644)" * (cast_expression "(int *)((int)data + 0x644)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x644)" ( (binary_expression "(int)data + 0x644" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (binary_expression "iVar5 * 4" identifier * number_literal)) ))))) ;) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "iVar2 = *(int *)((int)data + 0x654);" (assignment_expression "iVar2 = *(int *)((int)data + 0x654)" identifier = (pointer_expression "*(int *)((int)data + 0x654)" * (cast_expression "(int *)((int)data + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x654)" ( (binary_expression "(int)data + 0x654" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "local_28 = *(void **)((int)data + 0x650);" (assignment_expression "local_28 = *(void **)((int)data + 0x650)" identifier = (pointer_expression "*(void **)((int)data + 0x650)" * (cast_expression "(void **)((int)data + 0x650)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0x650)" ( (binary_expression "(int)data + 0x650" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if ((int)local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }" if (parenthesized_expression "((int)local_20 <= (int)(sVar3 + iVar2 + 1))" ( (binary_expression "(int)local_20 <= (int)(sVar3 + iVar2 + 1)" (cast_expression "(int)local_20" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)(sVar3 + iVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(sVar3 + iVar2 + 1)" ( (binary_expression "sVar3 + iVar2 + 1" (binary_expression "sVar3 + iVar2" identifier + identifier) + number_literal) )))) )) (compound_statement "{\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = saferealloc(local_28,local_20,1);\n            *(void **)((int)data + 0x650) = local_28;\n            __s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)((int)data + 0x654);\n          }" { (expression_statement "local_20 = sVar3 + iVar2 + 0x200;" (assignment_expression "local_20 = sVar3 + iVar2 + 0x200" identifier = (binary_expression "sVar3 + iVar2 + 0x200" (binary_expression "sVar3 + iVar2" identifier + identifier) + number_literal)) ;) (expression_statement "local_28 = saferealloc(local_28,local_20,1);" (assignment_expression "local_28 = saferealloc(local_28,local_20,1)" identifier = (call_expression "saferealloc(local_28,local_20,1)" identifier (argument_list "(local_28,local_20,1)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*(void **)((int)data + 0x650) = local_28;" (assignment_expression "*(void **)((int)data + 0x650) = local_28" (pointer_expression "*(void **)((int)data + 0x650)" * (cast_expression "(void **)((int)data + 0x650)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0x650)" ( (binary_expression "(int)data + 0x650" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "__s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4);" (assignment_expression "__s = *(char **)(*(int *)((int)data + 0x644) + iVar5 * 4)" identifier = (pointer_expression "*(char **)(*(int *)((int)data + 0x644) + iVar5 * 4)" * (cast_expression "(char **)(*(int *)((int)data + 0x644) + iVar5 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)data + 0x644) + iVar5 * 4)" ( (binary_expression "*(int *)((int)data + 0x644) + iVar5 * 4" (pointer_expression "*(int *)((int)data + 0x644)" * (cast_expression "(int *)((int)data + 0x644)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x644)" ( (binary_expression "(int)data + 0x644" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (binary_expression "iVar5 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar2 = *(int *)((int)data + 0x654);" (assignment_expression "iVar2 = *(int *)((int)data + 0x654)" identifier = (pointer_expression "*(int *)((int)data + 0x654)" * (cast_expression "(int *)((int)data + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x654)" ( (binary_expression "(int)data + 0x654" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) })) (expression_statement "strcpy((char *)(iVar2 + (int)local_28),__s);" (call_expression "strcpy((char *)(iVar2 + (int)local_28),__s)" identifier (argument_list "((char *)(iVar2 + (int)local_28),__s)" ( (cast_expression "(char *)(iVar2 + (int)local_28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + (int)local_28)" ( (binary_expression "iVar2 + (int)local_28" identifier + (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier ))) ;) (expression_statement "iVar2 = sVar3 + *(int *)((int)data + 0x654);" (assignment_expression "iVar2 = sVar3 + *(int *)((int)data + 0x654)" identifier = (binary_expression "sVar3 + *(int *)((int)data + 0x654)" identifier + (pointer_expression "*(int *)((int)data + 0x654)" * (cast_expression "(int *)((int)data + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x654)" ( (binary_expression "(int)data + 0x654" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) (expression_statement "*(int *)((int)data + 0x654) = iVar2 + 1;" (assignment_expression "*(int *)((int)data + 0x654) = iVar2 + 1" (pointer_expression "*(int *)((int)data + 0x654)" * (cast_expression "(int *)((int)data + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x654)" ( (binary_expression "(int)data + 0x654" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10;" (assignment_expression "*(undefined1 *)(*(int *)((int)data + 0x650) + iVar2) = 10" (pointer_expression "*(undefined1 *)(*(int *)((int)data + 0x650) + iVar2)" * (cast_expression "(undefined1 *)(*(int *)((int)data + 0x650) + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)data + 0x650) + iVar2)" ( (binary_expression "*(int *)((int)data + 0x650) + iVar2" (pointer_expression "*(int *)((int)data + 0x650)" * (cast_expression "(int *)((int)data + 0x650)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x650)" ( (binary_expression "(int)data + 0x650" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + identifier) )))) = number_literal) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < *(int *)((int)data + 0x648))" ( (binary_expression "iVar5 < *(int *)((int)data + 0x648)" identifier < (pointer_expression "*(int *)((int)data + 0x648)" * (cast_expression "(int *)((int)data + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x648)" ( (binary_expression "(int)data + 0x648" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) ;) })) (expression_statement "iVar5 = gtk_selection_owner_set(*(undefined4 *)((int)data + 4),1,0);" (assignment_expression "iVar5 = gtk_selection_owner_set(*(undefined4 *)((int)data + 4),1,0)" identifier = (call_expression "gtk_selection_owner_set(*(undefined4 *)((int)data + 4),1,0)" identifier (argument_list "(*(undefined4 *)((int)data + 4),1,0)" ( (pointer_expression "*(undefined4 *)((int)data + 4)" * (cast_expression "(undefined4 *)((int)data + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal , number_literal )))) ;) (if_statement "if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1);\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1);\n    }" { (expression_statement "gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1);" (call_expression "gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,0x1f,1)" identifier (argument_list "(*(undefined4 *)((int)data + 4),1,0x1f,1)" ( (pointer_expression "*(undefined4 *)((int)data + 4)" * (cast_expression "(undefined4 *)((int)data + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal , number_literal , number_literal ))) ;) (expression_statement "gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1);" (call_expression "gtk_selection_add_target(*(undefined4 *)((int)data + 4),1,compound_text_atom,1)" identifier (argument_list "(*(undefined4 *)((int)data + 4),1,compound_text_atom,1)" ( (pointer_expression "*(undefined4 *)((int)data + 4)" * (cast_expression "(undefined4 *)((int)data + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal , identifier , number_literal ))) ;) })) })))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000524d0(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  code *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  char *__s;\n  int local_28;\n  int local_20;\n  \n  if (param_4 == 0) {\n    if (*param_2 == 0) {\n                    \n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {\n                    \n      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }\n  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000524d0(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  code *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  char *__s;\n  int local_28;\n  int local_20;\n  \n  if (param_4 == 0) {\n    if (*param_2 == 0) {\n                    \n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {\n                    \n      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }\n  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000524d0(undefined4 param_1,int *param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4)" ( (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) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  char *__s;\n  int local_28;\n  int local_20;\n  \n  if (param_4 == 0) {\n    if (*param_2 == 0) {\n                    \n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {\n                    \n      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }\n  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }\n  return;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if (param_4 == 0) {\n    if (*param_2 == 0) {\n                    \n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {\n                    \n      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }\n  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*param_2 == 0) {\n                    \n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {\n                    \n      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }" { (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 "puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);" (assignment_expression "puVar4 = (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 *)*puVar4 & 0xfffffffb) != 1) {\n                    \n      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n    }" if (parenthesized_expression "((*(uint *)*puVar4 & 0xfffffffb) != 1)" ( (binary_expression "(*(uint *)*puVar4 & 0xfffffffb) != 1" (parenthesized_expression "(*(uint *)*puVar4 & 0xfffffffb)" ( (binary_expression "*(uint *)*puVar4 & 0xfffffffb" (pointer_expression "*(uint *)*puVar4" * (cast_expression "(uint *)*puVar4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * 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",0x176,"dlg_listbox_clear");\n    }" { (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear")" ( (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_clear"" " string_content ") ))) ;) })) (if_statement "if (puVar4[8] == 0) {\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }" if (parenthesized_expression "(puVar4[8] == 0)" ( (binary_expression "puVar4[8] == 0" (subscript_expression "puVar4[8]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }" { (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" ( (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_clear"" " string_content ") ))) ;) })) (expression_statement "gtk_list_store_clear(puVar4[8]);" (call_expression "gtk_list_store_clear(puVar4[8])" identifier (argument_list "(puVar4[8])" ( (subscript_expression "puVar4[8]" identifier [ number_literal ]) ))) ;) (if_statement "if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }" if (parenthesized_expression "(0 < *(int *)(param_3 + 0x648))" ( (binary_expression "0 < *(int *)(param_3 + 0x648)" number_literal < (pointer_expression "*(int *)(param_3 + 0x648)" * (cast_expression "(int *)(param_3 + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x648)" ( (binary_expression "param_3 + 0x648" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));" do (compound_statement "{\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      }" { (expression_statement "iVar2 = iVar5 * 4;" (assignment_expression "iVar2 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);" (call_expression "FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0)" identifier (argument_list "(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2)" * (cast_expression "(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_3 + 0x644) + iVar2)" ( (binary_expression "*(int *)(param_3 + 0x644) + iVar2" (pointer_expression "*(int *)(param_3 + 0x644)" * (cast_expression "(int *)(param_3 + 0x644)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x644)" ( (binary_expression "param_3 + 0x644" identifier + number_literal) )))) + identifier) )))) , number_literal ))) ;) }) while (parenthesized_expression "(iVar5 < *(int *)(param_3 + 0x648))" ( (binary_expression "iVar5 < *(int *)(param_3 + 0x648)" identifier < (pointer_expression "*(int *)(param_3 + 0x648)" * (cast_expression "(int *)(param_3 + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x648)" ( (binary_expression "param_3 + 0x648" identifier + number_literal) ))))) )) ;) (return_statement "return;" return ;) })) }) (else_clause "else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" else (if_statement "if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" if (parenthesized_expression "((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0))" ( (binary_expression "(param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)" (parenthesized_expression "(param_4 == 3)" ( (binary_expression "param_4 == 3" identifier == number_literal) )) && (parenthesized_expression "(*(int *)(param_3 + 0x658) == 0)" ( (binary_expression "*(int *)(param_3 + 0x658) == 0" (pointer_expression "*(int *)(param_3 + 0x658)" * (cast_expression "(int *)(param_3 + 0x658)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x658)" ( (binary_expression "param_3 + 0x658" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "FUN_000301a0(*(undefined4 *)(param_3 + 0x650));" (call_expression "FUN_000301a0(*(undefined4 *)(param_3 + 0x650))" identifier (argument_list "(*(undefined4 *)(param_3 + 0x650))" ( (pointer_expression "*(undefined4 *)(param_3 + 0x650)" * (cast_expression "(undefined4 *)(param_3 + 0x650)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x650)" ( (binary_expression "param_3 + 0x650" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x650) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x650) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x650)" * (cast_expression "(undefined4 *)(param_3 + 0x650)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x650)" ( (binary_expression "param_3 + 0x650" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0x654) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x654) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x654)" * (cast_expression "(undefined4 *)(param_3 + 0x654)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x654)" ( (binary_expression "param_3 + 0x654" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }" if (parenthesized_expression "(0 < *(int *)(param_3 + 0x648))" ( (binary_expression "0 < *(int *)(param_3 + 0x648)" number_literal < (pointer_expression "*(int *)(param_3 + 0x648)" * (cast_expression "(int *)(param_3 + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x648)" ( (binary_expression "param_3 + 0x648" identifier + number_literal) ))))) )) (compound_statement "{\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }" { (do_statement "do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));" do (compound_statement "{\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      }" { (expression_statement "iVar2 = FUN_000523c0(param_1,param_2,iVar5);" (assignment_expression "iVar2 = FUN_000523c0(param_1,param_2,iVar5)" identifier = (call_expression "FUN_000523c0(param_1,param_2,iVar5)" identifier (argument_list "(param_1,param_2,iVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }" { (expression_statement "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);" (assignment_expression "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" identifier = (pointer_expression "*(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" * (cast_expression "(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_3 + 0x644) + iVar5 * 4)" ( (binary_expression "*(int *)(param_3 + 0x644) + iVar5 * 4" (pointer_expression "*(int *)(param_3 + 0x644)" * (cast_expression "(int *)(param_3 + 0x644)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x644)" ( (binary_expression "param_3 + 0x644" identifier + number_literal) )))) + (binary_expression "iVar5 * 4" identifier * number_literal)) ))))) ;) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "iVar2 = *(int *)(param_3 + 0x654);" (assignment_expression "iVar2 = *(int *)(param_3 + 0x654)" identifier = (pointer_expression "*(int *)(param_3 + 0x654)" * (cast_expression "(int *)(param_3 + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x654)" ( (binary_expression "param_3 + 0x654" identifier + number_literal) ))))) ;) (expression_statement "local_28 = *(int *)(param_3 + 0x650);" (assignment_expression "local_28 = *(int *)(param_3 + 0x650)" identifier = (pointer_expression "*(int *)(param_3 + 0x650)" * (cast_expression "(int *)(param_3 + 0x650)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x650)" ( (binary_expression "param_3 + 0x650" identifier + number_literal) ))))) ;) (if_statement "if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }" if (parenthesized_expression "(local_20 <= (int)(sVar3 + iVar2 + 1))" ( (binary_expression "local_20 <= (int)(sVar3 + iVar2 + 1)" identifier <= (cast_expression "(int)(sVar3 + iVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(sVar3 + iVar2 + 1)" ( (binary_expression "sVar3 + iVar2 + 1" (binary_expression "sVar3 + iVar2" identifier + identifier) + number_literal) )))) )) (compound_statement "{\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }" { (expression_statement "local_20 = sVar3 + iVar2 + 0x200;" (assignment_expression "local_20 = sVar3 + iVar2 + 0x200" identifier = (binary_expression "sVar3 + iVar2 + 0x200" (binary_expression "sVar3 + iVar2" identifier + identifier) + number_literal)) ;) (expression_statement "local_28 = FUN_000300c0(local_28,local_20,1);" (assignment_expression "local_28 = FUN_000300c0(local_28,local_20,1)" identifier = (call_expression "FUN_000300c0(local_28,local_20,1)" identifier (argument_list "(local_28,local_20,1)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*(int *)(param_3 + 0x650) = local_28;" (assignment_expression "*(int *)(param_3 + 0x650) = local_28" (pointer_expression "*(int *)(param_3 + 0x650)" * (cast_expression "(int *)(param_3 + 0x650)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x650)" ( (binary_expression "param_3 + 0x650" identifier + number_literal) )))) = identifier) ;) (expression_statement "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);" (assignment_expression "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" identifier = (pointer_expression "*(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" * (cast_expression "(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_3 + 0x644) + iVar5 * 4)" ( (binary_expression "*(int *)(param_3 + 0x644) + iVar5 * 4" (pointer_expression "*(int *)(param_3 + 0x644)" * (cast_expression "(int *)(param_3 + 0x644)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x644)" ( (binary_expression "param_3 + 0x644" identifier + number_literal) )))) + (binary_expression "iVar5 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar2 = *(int *)(param_3 + 0x654);" (assignment_expression "iVar2 = *(int *)(param_3 + 0x654)" identifier = (pointer_expression "*(int *)(param_3 + 0x654)" * (cast_expression "(int *)(param_3 + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x654)" ( (binary_expression "param_3 + 0x654" identifier + number_literal) ))))) ;) })) (expression_statement "strcpy((char *)(iVar2 + local_28),__s);" (call_expression "strcpy((char *)(iVar2 + local_28),__s)" identifier (argument_list "((char *)(iVar2 + local_28),__s)" ( (cast_expression "(char *)(iVar2 + local_28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + local_28)" ( (binary_expression "iVar2 + local_28" identifier + identifier) ))) , identifier ))) ;) (expression_statement "iVar2 = sVar3 + *(int *)(param_3 + 0x654);" (assignment_expression "iVar2 = sVar3 + *(int *)(param_3 + 0x654)" identifier = (binary_expression "sVar3 + *(int *)(param_3 + 0x654)" identifier + (pointer_expression "*(int *)(param_3 + 0x654)" * (cast_expression "(int *)(param_3 + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x654)" ( (binary_expression "param_3 + 0x654" identifier + number_literal) )))))) ;) (expression_statement "*(int *)(param_3 + 0x654) = iVar2 + 1;" (assignment_expression "*(int *)(param_3 + 0x654) = iVar2 + 1" (pointer_expression "*(int *)(param_3 + 0x654)" * (cast_expression "(int *)(param_3 + 0x654)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x654)" ( (binary_expression "param_3 + 0x654" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;" (assignment_expression "*(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10" (pointer_expression "*(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2)" * (cast_expression "(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_3 + 0x650) + iVar2)" ( (binary_expression "*(int *)(param_3 + 0x650) + iVar2" (pointer_expression "*(int *)(param_3 + 0x650)" * (cast_expression "(int *)(param_3 + 0x650)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x650)" ( (binary_expression "param_3 + 0x650" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < *(int *)(param_3 + 0x648))" ( (binary_expression "iVar5 < *(int *)(param_3 + 0x648)" identifier < (pointer_expression "*(int *)(param_3 + 0x648)" * (cast_expression "(int *)(param_3 + 0x648)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x648)" ( (binary_expression "param_3 + 0x648" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);" (assignment_expression "iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0)" identifier = (call_expression "gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0)" identifier (argument_list "(*(undefined4 *)(param_3 + 4),1,0)" ( (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) , number_literal , number_literal )))) ;) (if_statement "if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }" { (expression_statement "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);" (call_expression "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1)" identifier (argument_list "(*(undefined4 *)(param_3 + 4),1,0x1f,1)" ( (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) , number_literal , number_literal , number_literal ))) ;) (expression_statement "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);" (call_expression "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1)" identifier (argument_list "(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1)" ( (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) , number_literal , identifier , number_literal ))) ;) })) })))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) , LIT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) (return_statement return ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT , LIT ))) ;) })) })))) (return_statement return ;) })))
(function_definition "void FUN_000524d0(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  code *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  char *__s;\n  int local_28;\n  int local_20;\n  \n  if (param_4 == 0) {\n    if (*param_2 == 0) {\n                    \n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {\n                    \n      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }\n  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000524d0(undefined4 param_1,int *param_2,int param_3,int param_4)" (identifier "FUN_000524d0") (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4)" (( "(") (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")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  char *__s;\n  int local_28;\n  int local_20;\n  \n  if (param_4 == 0) {\n    if (*param_2 == 0) {\n                    \n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {\n                    \n      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }\n  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }\n  return;\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (if_statement "if (param_4 == 0) {\n    if (*param_2 == 0) {\n                    \n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {\n                    \n      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }\n  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (*param_2 == 0) {\n                    \n      pcVar1 = (code *)invalidInstructionException();\n      (*pcVar1)();\n    }\n    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);\n    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {\n                    \n      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n    }\n    if (puVar4[8] == 0) {\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }\n    gtk_list_store_clear(puVar4[8]);\n    if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }\n  }" ({ "{") (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 "puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);" (assignment_expression "puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0)" (identifier "puVar4") (= "=") (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 *)*puVar4 & 0xfffffffb) != 1) {\n                    \n      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n    }" (if "if") (parenthesized_expression "((*(uint *)*puVar4 & 0xfffffffb) != 1)" (( "(") (binary_expression "(*(uint *)*puVar4 & 0xfffffffb) != 1" (parenthesized_expression "(*(uint *)*puVar4 & 0xfffffffb)" (( "(") (binary_expression "*(uint *)*puVar4 & 0xfffffffb" (pointer_expression "*(uint *)*puVar4" (* "*") (cast_expression "(uint *)*puVar4" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (& "&") (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",0x176,"dlg_listbox_clear");\n    }" ({ "{") (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear")" (identifier "__assert_fail") (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"\n                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear")" (( "(") (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 "0x176") (, ",") (string_literal ""dlg_listbox_clear"" (" """) (string_content "dlg_listbox_clear") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (puVar4[8] == 0) {\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }" (if "if") (parenthesized_expression "(puVar4[8] == 0)" (( "(") (binary_expression "puVar4[8] == 0" (subscript_expression "puVar4[8]" (identifier "puVar4") ([ "[") (number_literal "8") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n    }" ({ "{") (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" (identifier "__assert_fail") (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" (( "(") (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 "0x18a") (, ",") (string_literal ""dlg_listbox_clear"" (" """) (string_content "dlg_listbox_clear") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "gtk_list_store_clear(puVar4[8]);" (call_expression "gtk_list_store_clear(puVar4[8])" (identifier "gtk_list_store_clear") (argument_list "(puVar4[8])" (( "(") (subscript_expression "puVar4[8]" (identifier "puVar4") ([ "[") (number_literal "8") (] "]")) () ")"))) (; ";")) (if_statement "if (0 < *(int *)(param_3 + 0x648)) {\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }" (if "if") (parenthesized_expression "(0 < *(int *)(param_3 + 0x648))" (( "(") (binary_expression "0 < *(int *)(param_3 + 0x648)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_3 + 0x648)" (* "*") (cast_expression "(int *)(param_3 + 0x648)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x648)" (( "(") (binary_expression "param_3 + 0x648" (identifier "param_3") (+ "+") (number_literal "0x648")) () ")"))))) () ")")) (compound_statement "{\n      iVar5 = 0;\n      do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n      return;\n    }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      } while (iVar5 < *(int *)(param_3 + 0x648));" (do "do") (compound_statement "{\n        iVar2 = iVar5 * 4;\n        iVar5 = iVar5 + 1;\n        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);\n      }" ({ "{") (expression_statement "iVar2 = iVar5 * 4;" (assignment_expression "iVar2 = iVar5 * 4" (identifier "iVar2") (= "=") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);" (call_expression "FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0)" (identifier "FUN_00051ee0") (argument_list "(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_3 + 0x644) + iVar2)" (( "(") (binary_expression "*(int *)(param_3 + 0x644) + iVar2" (pointer_expression "*(int *)(param_3 + 0x644)" (* "*") (cast_expression "(int *)(param_3 + 0x644)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x644)" (( "(") (binary_expression "param_3 + 0x644" (identifier "param_3") (+ "+") (number_literal "0x644")) () ")")))) (+ "+") (identifier "iVar2")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 < *(int *)(param_3 + 0x648))" (( "(") (binary_expression "iVar5 < *(int *)(param_3 + 0x648)" (identifier "iVar5") (< "<") (pointer_expression "*(int *)(param_3 + 0x648)" (* "*") (cast_expression "(int *)(param_3 + 0x648)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x648)" (( "(") (binary_expression "param_3 + 0x648" (identifier "param_3") (+ "+") (number_literal "0x648")) () ")"))))) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" (else "else") (if_statement "if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" (if "if") (parenthesized_expression "((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0))" (( "(") (binary_expression "(param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)" (parenthesized_expression "(param_4 == 3)" (( "(") (binary_expression "param_4 == 3" (identifier "param_4") (== "==") (number_literal "3")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_3 + 0x658) == 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x658) == 0" (pointer_expression "*(int *)(param_3 + 0x658)" (* "*") (cast_expression "(int *)(param_3 + 0x658)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x658)" (( "(") (binary_expression "param_3 + 0x658" (identifier "param_3") (+ "+") (number_literal "0x658")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar5 = 0;\n    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));\n    *(undefined4 *)(param_3 + 0x650) = 0;\n    *(undefined4 *)(param_3 + 0x654) = 0;\n    local_20 = 0;\n    if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }\n    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);\n    if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }\n  }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_000301a0(*(undefined4 *)(param_3 + 0x650));" (call_expression "FUN_000301a0(*(undefined4 *)(param_3 + 0x650))" (identifier "FUN_000301a0") (argument_list "(*(undefined4 *)(param_3 + 0x650))" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 0x650)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x650)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x650)" (( "(") (binary_expression "param_3 + 0x650" (identifier "param_3") (+ "+") (number_literal "0x650")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0x650) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x650) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x650)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x650)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x650)" (( "(") (binary_expression "param_3 + 0x650" (identifier "param_3") (+ "+") (number_literal "0x650")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0x654) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x654) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x654)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x654)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x654)" (( "(") (binary_expression "param_3 + 0x654" (identifier "param_3") (+ "+") (number_literal "0x654")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < *(int *)(param_3 + 0x648)) {\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }" (if "if") (parenthesized_expression "(0 < *(int *)(param_3 + 0x648))" (( "(") (binary_expression "0 < *(int *)(param_3 + 0x648)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_3 + 0x648)" (* "*") (cast_expression "(int *)(param_3 + 0x648)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x648)" (( "(") (binary_expression "param_3 + 0x648" (identifier "param_3") (+ "+") (number_literal "0x648")) () ")"))))) () ")")) (compound_statement "{\n      do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));\n    }" ({ "{") (do_statement "do {\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < *(int *)(param_3 + 0x648));" (do "do") (compound_statement "{\n        iVar2 = FUN_000523c0(param_1,param_2,iVar5);\n        if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }\n        iVar5 = iVar5 + 1;\n      }" ({ "{") (expression_statement "iVar2 = FUN_000523c0(param_1,param_2,iVar5);" (assignment_expression "iVar2 = FUN_000523c0(param_1,param_2,iVar5)" (identifier "iVar2") (= "=") (call_expression "FUN_000523c0(param_1,param_2,iVar5)" (identifier "FUN_000523c0") (argument_list "(param_1,param_2,iVar5)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n          sVar3 = strlen(__s);\n          iVar2 = *(int *)(param_3 + 0x654);\n          local_28 = *(int *)(param_3 + 0x650);\n          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }\n          strcpy((char *)(iVar2 + local_28),__s);\n          iVar2 = sVar3 + *(int *)(param_3 + 0x654);\n          *(int *)(param_3 + 0x654) = iVar2 + 1;\n          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;\n        }" ({ "{") (expression_statement "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);" (assignment_expression "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" (identifier "__s") (= "=") (pointer_expression "*(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" (* "*") (cast_expression "(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_3 + 0x644) + iVar5 * 4)" (( "(") (binary_expression "*(int *)(param_3 + 0x644) + iVar5 * 4" (pointer_expression "*(int *)(param_3 + 0x644)" (* "*") (cast_expression "(int *)(param_3 + 0x644)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x644)" (( "(") (binary_expression "param_3 + 0x644" (identifier "param_3") (+ "+") (number_literal "0x644")) () ")")))) (+ "+") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" (identifier "sVar3") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "iVar2 = *(int *)(param_3 + 0x654);" (assignment_expression "iVar2 = *(int *)(param_3 + 0x654)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_3 + 0x654)" (* "*") (cast_expression "(int *)(param_3 + 0x654)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x654)" (( "(") (binary_expression "param_3 + 0x654" (identifier "param_3") (+ "+") (number_literal "0x654")) () ")"))))) (; ";")) (expression_statement "local_28 = *(int *)(param_3 + 0x650);" (assignment_expression "local_28 = *(int *)(param_3 + 0x650)" (identifier "local_28") (= "=") (pointer_expression "*(int *)(param_3 + 0x650)" (* "*") (cast_expression "(int *)(param_3 + 0x650)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x650)" (( "(") (binary_expression "param_3 + 0x650" (identifier "param_3") (+ "+") (number_literal "0x650")) () ")"))))) (; ";")) (if_statement "if (local_20 <= (int)(sVar3 + iVar2 + 1)) {\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }" (if "if") (parenthesized_expression "(local_20 <= (int)(sVar3 + iVar2 + 1))" (( "(") (binary_expression "local_20 <= (int)(sVar3 + iVar2 + 1)" (identifier "local_20") (<= "<=") (cast_expression "(int)(sVar3 + iVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(sVar3 + iVar2 + 1)" (( "(") (binary_expression "sVar3 + iVar2 + 1" (binary_expression "sVar3 + iVar2" (identifier "sVar3") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "1")) () ")")))) () ")")) (compound_statement "{\n            local_20 = sVar3 + iVar2 + 0x200;\n            local_28 = FUN_000300c0(local_28,local_20,1);\n            *(int *)(param_3 + 0x650) = local_28;\n            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);\n            iVar2 = *(int *)(param_3 + 0x654);\n          }" ({ "{") (expression_statement "local_20 = sVar3 + iVar2 + 0x200;" (assignment_expression "local_20 = sVar3 + iVar2 + 0x200" (identifier "local_20") (= "=") (binary_expression "sVar3 + iVar2 + 0x200" (binary_expression "sVar3 + iVar2" (identifier "sVar3") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "0x200"))) (; ";")) (expression_statement "local_28 = FUN_000300c0(local_28,local_20,1);" (assignment_expression "local_28 = FUN_000300c0(local_28,local_20,1)" (identifier "local_28") (= "=") (call_expression "FUN_000300c0(local_28,local_20,1)" (identifier "FUN_000300c0") (argument_list "(local_28,local_20,1)" (( "(") (identifier "local_28") (, ",") (identifier "local_20") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "*(int *)(param_3 + 0x650) = local_28;" (assignment_expression "*(int *)(param_3 + 0x650) = local_28" (pointer_expression "*(int *)(param_3 + 0x650)" (* "*") (cast_expression "(int *)(param_3 + 0x650)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x650)" (( "(") (binary_expression "param_3 + 0x650" (identifier "param_3") (+ "+") (number_literal "0x650")) () ")")))) (= "=") (identifier "local_28")) (; ";")) (expression_statement "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);" (assignment_expression "__s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" (identifier "__s") (= "=") (pointer_expression "*(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" (* "*") (cast_expression "(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_3 + 0x644) + iVar5 * 4)" (( "(") (binary_expression "*(int *)(param_3 + 0x644) + iVar5 * 4" (pointer_expression "*(int *)(param_3 + 0x644)" (* "*") (cast_expression "(int *)(param_3 + 0x644)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x644)" (( "(") (binary_expression "param_3 + 0x644" (identifier "param_3") (+ "+") (number_literal "0x644")) () ")")))) (+ "+") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_3 + 0x654);" (assignment_expression "iVar2 = *(int *)(param_3 + 0x654)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_3 + 0x654)" (* "*") (cast_expression "(int *)(param_3 + 0x654)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x654)" (( "(") (binary_expression "param_3 + 0x654" (identifier "param_3") (+ "+") (number_literal "0x654")) () ")"))))) (; ";")) (} "}"))) (expression_statement "strcpy((char *)(iVar2 + local_28),__s);" (call_expression "strcpy((char *)(iVar2 + local_28),__s)" (identifier "strcpy") (argument_list "((char *)(iVar2 + local_28),__s)" (( "(") (cast_expression "(char *)(iVar2 + local_28)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + local_28)" (( "(") (binary_expression "iVar2 + local_28" (identifier "iVar2") (+ "+") (identifier "local_28")) () ")"))) (, ",") (identifier "__s") () ")"))) (; ";")) (expression_statement "iVar2 = sVar3 + *(int *)(param_3 + 0x654);" (assignment_expression "iVar2 = sVar3 + *(int *)(param_3 + 0x654)" (identifier "iVar2") (= "=") (binary_expression "sVar3 + *(int *)(param_3 + 0x654)" (identifier "sVar3") (+ "+") (pointer_expression "*(int *)(param_3 + 0x654)" (* "*") (cast_expression "(int *)(param_3 + 0x654)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x654)" (( "(") (binary_expression "param_3 + 0x654" (identifier "param_3") (+ "+") (number_literal "0x654")) () ")")))))) (; ";")) (expression_statement "*(int *)(param_3 + 0x654) = iVar2 + 1;" (assignment_expression "*(int *)(param_3 + 0x654) = iVar2 + 1" (pointer_expression "*(int *)(param_3 + 0x654)" (* "*") (cast_expression "(int *)(param_3 + 0x654)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x654)" (( "(") (binary_expression "param_3 + 0x654" (identifier "param_3") (+ "+") (number_literal "0x654")) () ")")))) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;" (assignment_expression "*(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10" (pointer_expression "*(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2)" (* "*") (cast_expression "(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_3 + 0x650) + iVar2)" (( "(") (binary_expression "*(int *)(param_3 + 0x650) + iVar2" (pointer_expression "*(int *)(param_3 + 0x650)" (* "*") (cast_expression "(int *)(param_3 + 0x650)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x650)" (( "(") (binary_expression "param_3 + 0x650" (identifier "param_3") (+ "+") (number_literal "0x650")) () ")")))) (+ "+") (identifier "iVar2")) () ")")))) (= "=") (number_literal "10")) (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 < *(int *)(param_3 + 0x648))" (( "(") (binary_expression "iVar5 < *(int *)(param_3 + 0x648)" (identifier "iVar5") (< "<") (pointer_expression "*(int *)(param_3 + 0x648)" (* "*") (cast_expression "(int *)(param_3 + 0x648)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x648)" (( "(") (binary_expression "param_3 + 0x648" (identifier "param_3") (+ "+") (number_literal "0x648")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);" (assignment_expression "iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0)" (identifier "iVar5") (= "=") (call_expression "gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0)" (identifier "gtk_selection_owner_set") (argument_list "(*(undefined4 *)(param_3 + 4),1,0)" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 4)" (* "*") (cast_expression "(undefined4 *)(param_3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);\n      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);\n    }" ({ "{") (expression_statement "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);" (call_expression "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1)" (identifier "gtk_selection_add_target") (argument_list "(*(undefined4 *)(param_3 + 4),1,0x1f,1)" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 4)" (* "*") (cast_expression "(undefined4 *)(param_3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "1") (, ",") (number_literal "0x1f") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);" (call_expression "gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1)" (identifier "gtk_selection_add_target") (argument_list "(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1)" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 4)" (* "*") (cast_expression "(undefined4 *)(param_3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "1") (, ",") (identifier "DAT_000b629c") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}"))) (} "}"))))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* 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,void *data,int var_1)

{
  type_2 *pcVar1;
  int var_8;
  size_t var_12;
  type_3 *puVar4;
  int var_6;
  char *__s;
  void *local_28;
  size_t local_20;
  
  if (var_1 == 0) {
                    /* WARNING: Load size is inaccurate */
    if (*dlg == (type_4 *)0x0) {
                    /* WARNING: Does not return */
      pcVar1 = (type_2 *)var_2();
      (*pcVar1)();
    }
    puVar4 = (type_3 *)var_3(*dlg,ctrl,uctrl_cmp_byctrl_find);
    if ((*(type_5 *)*puVar4 & 0xfffffffb) != 1) {
                    /* WARNING: Subroutine does not return */
      var_4("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"
                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");
    }
    if (puVar4[8] == 0) {
                    /* WARNING: Subroutine does not return */
      var_4("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");
    }
    var_5(puVar4[8]);
    if (0 < *(int *)((int)data + 0x648)) {
      var_6 = 0;
      do {
        var_8 = var_6 * 4;
        var_6 = var_6 + 1;
        var_7(ctrl,dlg,*(char **)(*(int *)((int)data + 0x644) + var_8),0);
      } while (var_6 < *(int *)((int)data + 0x648));
      return;
    }
  }
  else if ((var_1 == 3) && (*(int *)((int)data + 0x658) == 0)) {
    var_6 = 0;
    var_9(*(void **)((int)data + 0x650));
    *(type_3 *)((int)data + 0x650) = 0;
    *(type_3 *)((int)data + 0x654) = 0;
    local_20 = 0;
    if (0 < *(int *)((int)data + 0x648)) {
      do {
        var_8 = var_10(ctrl,dlg,var_6);
        if (var_8 != 0) {
          __s = *(char **)(*(int *)((int)data + 0x644) + var_6 * 4);
          var_12 = var_11(__s);
          var_8 = *(int *)((int)data + 0x654);
          local_28 = *(void **)((int)data + 0x650);
          if ((int)local_20 <= (int)(var_12 + var_8 + 1)) {
            local_20 = var_12 + var_8 + 0x200;
            local_28 = var_13(local_28,local_20,1);
            *(void **)((int)data + 0x650) = local_28;
            __s = *(char **)(*(int *)((int)data + 0x644) + var_6 * 4);
            var_8 = *(int *)((int)data + 0x654);
          }
          var_14((char *)(var_8 + (int)local_28),__s);
          var_8 = var_12 + *(int *)((int)data + 0x654);
          *(int *)((int)data + 0x654) = var_8 + 1;
          *(type_6 *)(*(int *)((int)data + 0x650) + var_8) = 10;
        }
        var_6 = var_6 + 1;
      } while (var_6 < *(int *)((int)data + 0x648));
    }
    var_6 = var_15(*(type_3 *)((int)data + 4),1,0);
    if (var_6 != 0) {
      var_16(*(type_3 *)((int)data + 4),1,0x1f,1);
      var_16(*(type_3 *)((int)data + 4),1,compound_text_atom,1);
    }
  }
  return;
}


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

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

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

{
  code *pcVar1;
  int iVar2;
  size_t sVar3;
  undefined4 *puVar4;
  int iVar5;
  char *__s;
  int local_28;
  int local_20;
  
  if (param_4 == 0) {
    if (*param_2 == 0) {
                    /* WARNING: Does not return */
      pcVar1 = (code *)invalidInstructionException();
      (*pcVar1)();
    }
    puVar4 = (undefined4 *)FUN_0004c9c0(*param_2,param_1,FUN_000505d0);
    if ((*(uint *)*puVar4 & 0xfffffffb) != 1) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"
                    ,"unix/gtkdlg.c",0x176,"dlg_listbox_clear");
    }
    if (puVar4[8] == 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");
    }
    gtk_list_store_clear(puVar4[8]);
    if (0 < *(int *)(param_3 + 0x648)) {
      iVar5 = 0;
      do {
        iVar2 = iVar5 * 4;
        iVar5 = iVar5 + 1;
        FUN_00051ee0(param_1,param_2,*(undefined4 *)(*(int *)(param_3 + 0x644) + iVar2),0);
      } while (iVar5 < *(int *)(param_3 + 0x648));
      return;
    }
  }
  else if ((param_4 == 3) && (*(int *)(param_3 + 0x658) == 0)) {
    iVar5 = 0;
    FUN_000301a0(*(undefined4 *)(param_3 + 0x650));
    *(undefined4 *)(param_3 + 0x650) = 0;
    *(undefined4 *)(param_3 + 0x654) = 0;
    local_20 = 0;
    if (0 < *(int *)(param_3 + 0x648)) {
      do {
        iVar2 = FUN_000523c0(param_1,param_2,iVar5);
        if (iVar2 != 0) {
          __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);
          sVar3 = strlen(__s);
          iVar2 = *(int *)(param_3 + 0x654);
          local_28 = *(int *)(param_3 + 0x650);
          if (local_20 <= (int)(sVar3 + iVar2 + 1)) {
            local_20 = sVar3 + iVar2 + 0x200;
            local_28 = FUN_000300c0(local_28,local_20,1);
            *(int *)(param_3 + 0x650) = local_28;
            __s = *(char **)(*(int *)(param_3 + 0x644) + iVar5 * 4);
            iVar2 = *(int *)(param_3 + 0x654);
          }
          strcpy((char *)(iVar2 + local_28),__s);
          iVar2 = sVar3 + *(int *)(param_3 + 0x654);
          *(int *)(param_3 + 0x654) = iVar2 + 1;
          *(undefined1 *)(*(int *)(param_3 + 0x650) + iVar2) = 10;
        }
        iVar5 = iVar5 + 1;
      } while (iVar5 < *(int *)(param_3 + 0x648));
    }
    iVar5 = gtk_selection_owner_set(*(undefined4 *)(param_3 + 4),1,0);
    if (iVar5 != 0) {
      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,0x1f,1);
      gtk_selection_add_target(*(undefined4 *)(param_3 + 4),1,DAT_000b629c,1);
    }
  }
  return;
}

