
/* WARNING: Enum "GdkEventType": Some values do not have unique names */

char * gtk_askpass_main(char *display,char *wintitle,char *prompt,int *success)

{
  long lVar1;
  int iVar2;
  int iVar3;
  GtkWidget *pGVar4;
  undefined8 uVar5;
  undefined8 uVar6;
  GtkLabel *label;
  undefined8 uVar7;
  GtkWindow *pGVar8;
  GtkBox *pGVar9;
  char *pcVar10;
  drawing_area_ctx *pdVar11;
  char **ppcVar12;
  long in_FS_OFFSET;
  int argc;
  char **argv;
  askpass_ctx actx;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  argv = (char **)&actx;
  if (gtk_initialised_58173 == 0) {
    argc = 1;
    actx.dialog = (GtkWidget *)dupstr("dummy");
    ppcVar12 = argv + argc;
    argc = argc + 1;
    pcVar10 = dupprintf("--display=%s",display);
    *ppcVar12 = pcVar10;
    argv[argc] = (char *)0x0;
    iVar2 = gtk_init_check(&argc,&argv);
    while (0 < argc) {
      argc = argc + -1;
      safefree(argv[argc]);
    }
    gtk_initialised_58173 = iVar2;
    if (iVar2 == 0) {
      *success = 0;
      pcVar10 = dupstr("unable to initialise GTK");
      goto LAB_00130955;
    }
  }
  actx.passlen = 0;
  actx.passsize = 0x800;
  actx.passphrase = (char *)safemalloc(0x800,1);
  pGVar4 = our_dialog_new();
  actx.dialog = pGVar4;
  uVar5 = gtk_window_get_type();
  uVar6 = g_type_check_instance_cast(pGVar4,uVar5);
  gtk_window_set_title(uVar6,wintitle);
  uVar6 = g_type_check_instance_cast(actx.dialog,uVar5);
  gtk_window_set_position(uVar6,1);
  pGVar4 = (GtkWidget *)gtk_label_new(prompt);
  actx.promptlabel = pGVar4;
  uVar6 = gtk_label_get_type();
  label = (GtkLabel *)g_type_check_instance_cast(pGVar4,uVar6);
  align_label_left(label);
  gtk_widget_show(actx.promptlabel);
  uVar7 = g_type_check_instance_cast(actx.promptlabel,uVar6);
  gtk_label_set_line_wrap(uVar7,1);
  uVar6 = g_type_check_instance_cast(actx.promptlabel,uVar6);
  gtk_label_set_width_chars(uVar6,0x30);
  pGVar4 = actx.promptlabel;
  pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5);
  our_dialog_add_to_content_area(pGVar8,pGVar4,1,1,0);
  actx.imc = (GtkIMContext *)gtk_im_multicontext_new();
  pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5);
  pGVar9 = our_dialog_make_action_hbox(pGVar8);
  pdVar11 = actx.drawingareas;
  do {
    pGVar4 = (GtkWidget *)gtk_drawing_area_new();
    pdVar11->area = pGVar4;
    pdVar11->current = 0;
    pdVar11->height = 0;
    pdVar11->width = 0;
    gtk_widget_set_size_request(pGVar4,0x20,0x20);
    gtk_box_pack_end(pGVar9,pdVar11->area,1,1,5);
    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);
    g_signal_connect_data(uVar6,"configure_event",configure_area,pdVar11,0,0);
    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);
    g_signal_connect_data(uVar6,&DAT_00142a9f,draw_area,pdVar11,0,0);
    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);
    g_object_set(uVar6,"margin-bottom",8,0);
    gtk_widget_show(pdVar11->area);
    pdVar11 = pdVar11 + 1;
  } while (pdVar11 != (drawing_area_ctx *)&actx.active_area);
  iVar2 = rand();
  actx.active_area = iVar2 % 3;
  actx.drawingareas[actx.active_area].current = 1;
  gtk_widget_set_sensitive(actx.promptlabel,1);
  uVar5 = g_type_check_instance_cast(actx.dialog,uVar5);
  gtk_window_set_keep_above(uVar5,1);
  gtk_widget_show_now(actx.dialog);
  gtk_grab_add(actx.promptlabel);
  iVar2 = 0x28;
  do {
    iVar3 = try_grab_keyboard(&actx);
    if (iVar3 != 0) {
      uVar5 = g_type_check_instance_cast(actx.imc,0x50);
      g_signal_connect_data(uVar5,"commit",input_method_commit_event,&actx,0,0);
      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);
      g_signal_connect_data(uVar5,"key_press_event",key_event,&actx,0,0);
      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);
      g_signal_connect_data(uVar5,"key_release_event",key_event,&actx,0,0);
      uVar5 = gtk_widget_get_window(actx.dialog);
      gtk_im_context_set_client_window(actx.imc,uVar5);
      gtk_main();
      gdk_seat_ungrab(actx.seat);
      gtk_grab_remove(actx.promptlabel);
      if (actx.passphrase != (char *)0x0) {
        if (actx.passsize <= actx.passlen) {
                    /* WARNING: Subroutine does not return */
          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");
        }
        actx.passphrase[actx.passlen] = '\0';
      }
      gtk_widget_destroy(actx.dialog);
      if (actx.passphrase == (char *)0x0) {
        *success = 0;
        pcVar10 = dupstr("passphrase input cancelled");
      }
      else {
        *success = 1;
        pcVar10 = actx.passphrase;
      }
      goto LAB_00130955;
    }
    usleep(0x1e848);
    iVar2 = iVar2 + -1;
  } while (iVar2 != 0);
  *success = 0;
  pcVar10 = dupprintf("%s","unable to grab keyboard");
LAB_00130955:
  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return pcVar10;
}



void FUN_0013063d(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)

{
  int iVar1;
  undefined8 uVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  int iVar5;
  int *piVar6;
  undefined8 *puVar7;
  long in_FS_OFFSET;
  int local_d4;
  undefined8 *local_d0;
  undefined8 local_c8;
  undefined8 local_c0;
  int local_b8 [4];
  undefined4 local_a8 [14];
  int local_70 [2];
  undefined8 local_68;
  long local_60;
  int local_58;
  int local_54;
  undefined8 local_50;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  local_d0 = &local_c8;
  if (DAT_00152440 == 0) {
    local_d4 = 1;
    local_c8 = FUN_0010bd5d("dummy");
    puVar7 = local_d0 + local_d4;
    local_d4 = local_d4 + 1;
    uVar2 = FUN_0010c2a6("--display=%s",param_1);
    *puVar7 = uVar2;
    local_d0[local_d4] = 0;
    iVar5 = gtk_init_check(&local_d4,&local_d0);
    while (0 < local_d4) {
      local_d4 = local_d4 + -1;
      FUN_0010c4d3(local_d0[local_d4]);
    }
    DAT_00152440 = iVar5;
    if (iVar5 == 0) {
      *param_4 = 0;
      FUN_0010bd5d("unable to initialise GTK");
      goto LAB_00130955;
    }
  }
  local_58 = 0;
  local_54 = 0x800;
  local_60 = FUN_0010bc67(0x800,1);
  uVar2 = FUN_00130ca2();
  local_c8 = uVar2;
  uVar3 = gtk_window_get_type();
  uVar2 = g_type_check_instance_cast(uVar2,uVar3);
  gtk_window_set_title(uVar2,param_2);
  uVar2 = g_type_check_instance_cast(local_c8,uVar3);
  gtk_window_set_position(uVar2,1);
  uVar2 = gtk_label_new(param_3);
  local_c0 = uVar2;
  uVar4 = gtk_label_get_type();
  uVar2 = g_type_check_instance_cast(uVar2,uVar4);
  FUN_00130c90(uVar2);
  gtk_widget_show(local_c0);
  uVar2 = g_type_check_instance_cast(local_c0,uVar4);
  gtk_label_set_line_wrap(uVar2,1);
  uVar2 = g_type_check_instance_cast(local_c0,uVar4);
  gtk_label_set_width_chars(uVar2,0x30);
  uVar2 = local_c0;
  uVar4 = g_type_check_instance_cast(local_c8,uVar3);
  FUN_00130e42(uVar4,uVar2,1,1,0);
  local_68 = gtk_im_multicontext_new();
  uVar2 = g_type_check_instance_cast(local_c8,uVar3);
  uVar2 = FUN_00130da7(uVar2);
  piVar6 = local_b8;
  do {
    uVar4 = gtk_drawing_area_new();
    *(undefined8 *)piVar6 = uVar4;
    piVar6[4] = 0;
    piVar6[3] = 0;
    piVar6[2] = 0;
    gtk_widget_set_size_request(uVar4,0x20,0x20);
    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);
    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);
    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);
    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);
    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);
    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);
    g_object_set(uVar4,"margin-bottom",8,0);
    gtk_widget_show(*(undefined8 *)piVar6);
    piVar6 = piVar6 + 6;
  } while (piVar6 != local_70);
  local_70[0] = rand();
  local_70[0] = local_70[0] % 3;
  local_a8[(long)local_70[0] * 6] = 1;
  gtk_widget_set_sensitive(local_c0,1);
  uVar2 = g_type_check_instance_cast(local_c8,uVar3);
  gtk_window_set_keep_above(uVar2,1);
  gtk_widget_show_now(local_c8);
  gtk_grab_add(local_c0);
  iVar5 = 0x28;
  do {
    iVar1 = FUN_0013059f(&local_c8);
    if (iVar1 != 0) {
      uVar2 = g_type_check_instance_cast(local_68,0x50);
      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);
      uVar2 = g_type_check_instance_cast(local_c0,0x50);
      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);
      uVar2 = g_type_check_instance_cast(local_c0,0x50);
      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);
      uVar2 = gtk_widget_get_window(local_c8);
      gtk_im_context_set_client_window(local_68,uVar2);
      gtk_main();
      gdk_seat_ungrab(local_50);
      gtk_grab_remove(local_c0);
      if (local_60 != 0) {
        if (local_54 <= local_58) {
                    /* WARNING: Subroutine does not return */
          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");
        }
        *(undefined1 *)(local_60 + local_58) = 0;
      }
      gtk_widget_destroy(local_c8);
      if (local_60 == 0) {
        *param_4 = 0;
        FUN_0010bd5d("passphrase input cancelled");
      }
      else {
        *param_4 = 1;
      }
      goto LAB_00130955;
    }
    usleep(0x1e848);
    iVar5 = iVar5 + -1;
  } while (iVar5 != 0);
  *param_4 = 0;
  FUN_0010c2a6("%s","unable to grab keyboard");
LAB_00130955:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0xa8
MOV R12,RSI
MOV RBX,RDX
MOV RBP,RCX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x98],RAX
XOR EAX,EAX
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
CMP dword ptr [0x00152440],0x0
JZ 0x0013097e
MOV dword ptr [RSP + 0x80],0x0
MOV dword ptr [RSP + 0x84],0x800
MOV ESI,0x1
MOV EDI,0x800
CALL 0x0010bc67
MOV qword ptr [RSP + 0x78],RAX
CALL 0x00130ca2
MOV R14,RAX
MOV qword ptr [RSP + 0x10],RAX
CALL 0x00107ad0
MOV R13,RAX
MOV RSI,RAX
MOV RDI,R14
CALL 0x001071b0
MOV RSI,R12
MOV RDI,RAX
CALL 0x00107450
MOV RSI,R13
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001071b0
MOV ESI,0x1
MOV RDI,RAX
CALL 0x001071a0
MOV RDI,RBX
CALL 0x00107410
MOV R12,RAX
MOV qword ptr [RSP + 0x18],RAX
CALL 0x00107130
MOV RBX,RAX
MOV RSI,RAX
MOV RDI,R12
CALL 0x001071b0
MOV RDI,RAX
CALL 0x00130c90
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001078f0
MOV RSI,RBX
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001071b0
MOV ESI,0x1
MOV RDI,RAX
CALL 0x00107330
MOV RSI,RBX
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001071b0
MOV ESI,0x30
MOV RDI,RAX
CALL 0x001075c0
MOV RBX,qword ptr [RSP + 0x18]
MOV RSI,R13
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001071b0
MOV R8D,0x0
MOV ECX,0x1
MOV EDX,0x1
MOV RSI,RBX
MOV RDI,RAX
CALL 0x00130e42
CALL 0x00107870
MOV qword ptr [RSP + 0x70],RAX
MOV RSI,R13
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001071b0
MOV RDI,RAX
CALL 0x00130da7
MOV R15,RAX
LEA RBX,[RSP + 0x20]
LEA R12,[RSP + 0x68]
LEA R14,[0x1304d1]
CALL 0x00107a90
MOV qword ptr [RBX],RAX
MOV dword ptr [RBX + 0x10],0x0
MOV dword ptr [RBX + 0xc],0x0
MOV dword ptr [RBX + 0x8],0x0
MOV EDX,0x20
MOV ESI,0x20
MOV RDI,RAX
CALL 0x00107460
MOV R8D,0x5
MOV ECX,0x1
MOV EDX,0x1
MOV RSI,qword ptr [RBX]
MOV RDI,R15
CALL 0x00107590
MOV ESI,0x50
MOV RDI,qword ptr [RBX]
CALL 0x001071b0
MOV R9D,0x0
MOV R8D,0x0
MOV RCX,RBX
MOV RDX,R14
LEA RSI,[0x142a8f]
MOV RDI,RAX
CALL 0x001074f0
MOV ESI,0x50
MOV RDI,qword ptr [RBX]
CALL 0x001071b0
MOV R9D,0x0
MOV R8D,0x0
MOV RCX,RBX
LEA RDX,[0x13060a]
LEA RSI,[0x142a9f]
MOV RDI,RAX
CALL 0x001074f0
MOV ESI,0x50
MOV RDI,qword ptr [RBX]
CALL 0x001071b0
MOV ECX,0x0
MOV EDX,0x8
LEA RSI,[0x142aa4]
MOV RDI,RAX
MOV EAX,0x0
CALL 0x001076f0
MOV RDI,qword ptr [RBX]
CALL 0x001078f0
ADD RBX,0x18
CMP RBX,R12
JNZ 0x001307b9
CALL 0x00107120
MOV ECX,EAX
MOV EDX,0x55555556
IMUL EDX
MOV EAX,ECX
SAR EAX,0x1f
SUB EDX,EAX
LEA EAX,[RDX + RDX*0x2]
SUB ECX,EAX
MOV dword ptr [RSP + 0x68],ECX
MOVSXD RDX,ECX
LEA RAX,[RDX + RDX*0x2]
MOV dword ptr [RSP + RAX*0x8 + 0x30],0x1
MOV ESI,0x1
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00107af0
MOV RSI,R13
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001071b0
MOV ESI,0x1
MOV RDI,RAX
CALL 0x00107260
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001077b0
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00107b00
MOV EBX,0x28
LEA R12,[RSP + 0x10]
MOV RDI,R12
CALL 0x0013059f
TEST EAX,EAX
JNZ 0x00130a73
MOV EDI,0x1e848
CALL 0x00107830
SUB EBX,0x1
JNZ 0x00130917
MOV dword ptr [RBP],0x0
LEA RSI,[0x142b13]
LEA RDI,[0x143fe1]
MOV EAX,0x0
CALL 0x0010c2a6
MOV RCX,qword ptr [RSP + 0x98]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x00130b8f
ADD RSP,0xa8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV R14,RDI
MOV dword ptr [RSP + 0x4],0x1
LEA RDI,[0x13bff9]
CALL 0x0010bd5d
MOV qword ptr [RSP + 0x10],RAX
MOV EAX,dword ptr [RSP + 0x4]
LEA EDX,[RAX + 0x1]
MOV dword ptr [RSP + 0x4],EDX
MOVSXD R13,EAX
SHL R13,0x3
ADD R13,qword ptr [RSP + 0x8]
MOV RSI,R14
LEA RDI,[0x142a69]
MOV EAX,0x0
CALL 0x0010c2a6
MOV qword ptr [R13],RAX
MOVSXD RDX,dword ptr [RSP + 0x4]
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + RDX*0x8],0x0
LEA RSI,[RSP + 0x8]
LEA RDI,[RSP + 0x4]
CALL 0x00107a20
MOV R13D,EAX
MOV EAX,dword ptr [RSP + 0x4]
TEST EAX,EAX
JLE 0x00130a14
SUB EAX,0x1
MOV dword ptr [RSP + 0x4],EAX
CDQE
MOV RDX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RDX + RAX*0x8]
CALL 0x0010c4d3
MOV EAX,dword ptr [RSP + 0x4]
TEST EAX,EAX
JG 0x001309f5
MOV dword ptr [0x00152440],R13D
TEST R13D,R13D
JNZ 0x00130681
MOV dword ptr [RBP],0x0
LEA RDI,[0x142a76]
CALL 0x0010bd5d
JMP 0x00130955
LEA RCX,[0x142b30]
MOV EDX,0x1be
LEA RSI,[0x142a46]
LEA RDI,[0x142ab2]
CALL 0x00107350
MOV dword ptr [RBP],0x0
LEA RDI,[0x142acf]
CALL 0x0010bd5d
JMP 0x00130955
MOV ESI,0x50
MOV RDI,qword ptr [RSP + 0x70]
CALL 0x001071b0
LEA RBX,[RSP + 0x10]
MOV R9D,0x0
MOV R8D,0x0
MOV RCX,RBX
LEA RDX,[0x1304f0]
LEA RSI,[0x142aea]
MOV RDI,RAX
CALL 0x001074f0
MOV ESI,0x50
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001071b0
MOV R9D,0x0
MOV R8D,0x0
MOV RCX,RBX
LEA RDX,[0x130388]
LEA RSI,[0x142af1]
MOV RDI,RAX
CALL 0x001074f0
MOV ESI,0x50
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001071b0
MOV R9D,0x0
MOV R8D,0x0
MOV RCX,RBX
LEA RDX,[0x130388]
LEA RSI,[0x142b01]
MOV RDI,RAX
CALL 0x001074f0
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001071d0
MOV RSI,RAX
MOV RDI,qword ptr [RSP + 0x70]
CALL 0x001079b0
CALL 0x001076c0
MOV RDI,qword ptr [RSP + 0x88]
CALL 0x00107840
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001070e0
MOV RDX,qword ptr [RSP + 0x78]
TEST RDX,RDX
JZ 0x00130b6b
MOV EAX,dword ptr [RSP + 0x80]
CMP EAX,dword ptr [RSP + 0x84]
JGE 0x00130a3c
CDQE
MOV byte ptr [RDX + RAX*0x1],0x0
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00107550
MOV RAX,qword ptr [RSP + 0x78]
TEST RAX,RAX
JZ 0x00130a5b
MOV dword ptr [RBP],0x1
JMP 0x00130955
CALL 0x001075f0
(translation_unit "void FUN_0013063d(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined8 *puVar7;\n  long in_FS_OFFSET;\n  int local_d4;\n  undefined8 *local_d0;\n  undefined8 local_c8;\n  undefined8 local_c0;\n  int local_b8 [4];\n  undefined4 local_a8 [14];\n  int local_70 [2];\n  undefined8 local_68;\n  long local_60;\n  int local_58;\n  int local_54;\n  undefined8 local_50;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_d0 = &local_c8;\n  if (DAT_00152440 == 0) {\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }\n  local_58 = 0;\n  local_54 = 0x800;\n  local_60 = FUN_0010bc67(0x800,1);\n  uVar2 = FUN_00130ca2();\n  local_c8 = uVar2;\n  uVar3 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar3);\n  gtk_window_set_title(uVar2,param_2);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_position(uVar2,1);\n  uVar2 = gtk_label_new(param_3);\n  local_c0 = uVar2;\n  uVar4 = gtk_label_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar4);\n  FUN_00130c90(uVar2);\n  gtk_widget_show(local_c0);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_line_wrap(uVar2,1);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_width_chars(uVar2,0x30);\n  uVar2 = local_c0;\n  uVar4 = g_type_check_instance_cast(local_c8,uVar3);\n  FUN_00130e42(uVar4,uVar2,1,1,0);\n  local_68 = gtk_im_multicontext_new();\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  uVar2 = FUN_00130da7(uVar2);\n  piVar6 = local_b8;\n  do {\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  } while (piVar6 != local_70);\n  local_70[0] = rand();\n  local_70[0] = local_70[0] % 3;\n  local_a8[(long)local_70[0] * 6] = 1;\n  gtk_widget_set_sensitive(local_c0,1);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_keep_above(uVar2,1);\n  gtk_widget_show_now(local_c8);\n  gtk_grab_add(local_c0);\n  iVar5 = 0x28;\n  do {\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  *param_4 = 0;\n  FUN_0010c2a6("%s","unable to grab keyboard");\nLAB_00130955:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0013063d(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined8 *puVar7;\n  long in_FS_OFFSET;\n  int local_d4;\n  undefined8 *local_d0;\n  undefined8 local_c8;\n  undefined8 local_c0;\n  int local_b8 [4];\n  undefined4 local_a8 [14];\n  int local_70 [2];\n  undefined8 local_68;\n  long local_60;\n  int local_58;\n  int local_54;\n  undefined8 local_50;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_d0 = &local_c8;\n  if (DAT_00152440 == 0) {\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }\n  local_58 = 0;\n  local_54 = 0x800;\n  local_60 = FUN_0010bc67(0x800,1);\n  uVar2 = FUN_00130ca2();\n  local_c8 = uVar2;\n  uVar3 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar3);\n  gtk_window_set_title(uVar2,param_2);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_position(uVar2,1);\n  uVar2 = gtk_label_new(param_3);\n  local_c0 = uVar2;\n  uVar4 = gtk_label_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar4);\n  FUN_00130c90(uVar2);\n  gtk_widget_show(local_c0);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_line_wrap(uVar2,1);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_width_chars(uVar2,0x30);\n  uVar2 = local_c0;\n  uVar4 = g_type_check_instance_cast(local_c8,uVar3);\n  FUN_00130e42(uVar4,uVar2,1,1,0);\n  local_68 = gtk_im_multicontext_new();\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  uVar2 = FUN_00130da7(uVar2);\n  piVar6 = local_b8;\n  do {\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  } while (piVar6 != local_70);\n  local_70[0] = rand();\n  local_70[0] = local_70[0] % 3;\n  local_a8[(long)local_70[0] * 6] = 1;\n  gtk_widget_set_sensitive(local_c0,1);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_keep_above(uVar2,1);\n  gtk_widget_show_now(local_c8);\n  gtk_grab_add(local_c0);\n  iVar5 = 0x28;\n  do {\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  *param_4 = 0;\n  FUN_0010c2a6("%s","unable to grab keyboard");\nLAB_00130955:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0013063d(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined8 *puVar7;\n  long in_FS_OFFSET;\n  int local_d4;\n  undefined8 *local_d0;\n  undefined8 local_c8;\n  undefined8 local_c0;\n  int local_b8 [4];\n  undefined4 local_a8 [14];\n  int local_70 [2];\n  undefined8 local_68;\n  long local_60;\n  int local_58;\n  int local_54;\n  undefined8 local_50;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_d0 = &local_c8;\n  if (DAT_00152440 == 0) {\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }\n  local_58 = 0;\n  local_54 = 0x800;\n  local_60 = FUN_0010bc67(0x800,1);\n  uVar2 = FUN_00130ca2();\n  local_c8 = uVar2;\n  uVar3 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar3);\n  gtk_window_set_title(uVar2,param_2);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_position(uVar2,1);\n  uVar2 = gtk_label_new(param_3);\n  local_c0 = uVar2;\n  uVar4 = gtk_label_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar4);\n  FUN_00130c90(uVar2);\n  gtk_widget_show(local_c0);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_line_wrap(uVar2,1);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_width_chars(uVar2,0x30);\n  uVar2 = local_c0;\n  uVar4 = g_type_check_instance_cast(local_c8,uVar3);\n  FUN_00130e42(uVar4,uVar2,1,1,0);\n  local_68 = gtk_im_multicontext_new();\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  uVar2 = FUN_00130da7(uVar2);\n  piVar6 = local_b8;\n  do {\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  } while (piVar6 != local_70);\n  local_70[0] = rand();\n  local_70[0] = local_70[0] % 3;\n  local_a8[(long)local_70[0] * 6] = 1;\n  gtk_widget_set_sensitive(local_c0,1);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_keep_above(uVar2,1);\n  gtk_widget_show_now(local_c8);\n  gtk_grab_add(local_c0);\n  iVar5 = 0x28;\n  do {\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  *param_4 = 0;\n  FUN_0010c2a6("%s","unable to grab keyboard");\nLAB_00130955:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_d4;" primitive_type identifier ;) (declaration "undefined8 *local_d0;" type_identifier (pointer_declarator "*local_d0" * identifier) ;) (declaration "undefined8 local_c8;" type_identifier identifier ;) (declaration "undefined8 local_c0;" type_identifier identifier ;) (declaration "int local_b8 [4];" primitive_type (array_declarator "local_b8 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_a8 [14];" type_identifier (array_declarator "local_a8 [14]" identifier [ number_literal ]) ;) (declaration "int local_70 [2];" primitive_type (array_declarator "local_70 [2]" identifier [ number_literal ]) ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "long local_60;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_58;" primitive_type identifier ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "undefined8 local_50;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_d0 = &local_c8;" (assignment_expression "local_d0 = &local_c8" identifier = (pointer_expression "&local_c8" & identifier)) ;) (if_statement "if (DAT_00152440 == 0) {\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }" if (parenthesized_expression "(DAT_00152440 == 0)" ( (binary_expression "DAT_00152440 == 0" identifier == number_literal) )) (compound_statement "{\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }" { (expression_statement "local_d4 = 1;" (assignment_expression "local_d4 = 1" identifier = number_literal) ;) (expression_statement "local_c8 = FUN_0010bd5d("dummy");" (assignment_expression "local_c8 = FUN_0010bd5d("dummy")" identifier = (call_expression "FUN_0010bd5d("dummy")" identifier (argument_list "("dummy")" ( (string_literal ""dummy"" " string_content ") )))) ;) (expression_statement "puVar7 = local_d0 + local_d4;" (assignment_expression "puVar7 = local_d0 + local_d4" identifier = (binary_expression "local_d0 + local_d4" identifier + identifier)) ;) (expression_statement "local_d4 = local_d4 + 1;" (assignment_expression "local_d4 = local_d4 + 1" identifier = (binary_expression "local_d4 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = FUN_0010c2a6("--display=%s",param_1);" (assignment_expression "uVar2 = FUN_0010c2a6("--display=%s",param_1)" identifier = (call_expression "FUN_0010c2a6("--display=%s",param_1)" identifier (argument_list "("--display=%s",param_1)" ( (string_literal ""--display=%s"" " string_content ") , identifier )))) ;) (expression_statement "*puVar7 = uVar2;" (assignment_expression "*puVar7 = uVar2" (pointer_expression "*puVar7" * identifier) = identifier) ;) (expression_statement "local_d0[local_d4] = 0;" (assignment_expression "local_d0[local_d4] = 0" (subscript_expression "local_d0[local_d4]" identifier [ identifier ]) = number_literal) ;) (expression_statement "iVar5 = gtk_init_check(&local_d4,&local_d0);" (assignment_expression "iVar5 = gtk_init_check(&local_d4,&local_d0)" identifier = (call_expression "gtk_init_check(&local_d4,&local_d0)" identifier (argument_list "(&local_d4,&local_d0)" ( (pointer_expression "&local_d4" & identifier) , (pointer_expression "&local_d0" & identifier) )))) ;) (while_statement "while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }" while (parenthesized_expression "(0 < local_d4)" ( (binary_expression "0 < local_d4" number_literal < identifier) )) (compound_statement "{\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }" { (expression_statement "local_d4 = local_d4 + -1;" (assignment_expression "local_d4 = local_d4 + -1" identifier = (binary_expression "local_d4 + -1" identifier + number_literal)) ;) (expression_statement "FUN_0010c4d3(local_d0[local_d4]);" (call_expression "FUN_0010c4d3(local_d0[local_d4])" identifier (argument_list "(local_d0[local_d4])" ( (subscript_expression "local_d0[local_d4]" identifier [ identifier ]) ))) ;) })) (expression_statement "DAT_00152440 = iVar5;" (assignment_expression "DAT_00152440 = iVar5" identifier = identifier) ;) (if_statement "if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "FUN_0010bd5d("unable to initialise GTK");" (call_expression "FUN_0010bd5d("unable to initialise GTK")" identifier (argument_list "("unable to initialise GTK")" ( (string_literal ""unable to initialise GTK"" " string_content ") ))) ;) (goto_statement "goto LAB_00130955;" goto statement_identifier ;) })) })) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "local_54 = 0x800;" (assignment_expression "local_54 = 0x800" identifier = number_literal) ;) (expression_statement "local_60 = FUN_0010bc67(0x800,1);" (assignment_expression "local_60 = FUN_0010bc67(0x800,1)" identifier = (call_expression "FUN_0010bc67(0x800,1)" identifier (argument_list "(0x800,1)" ( number_literal , number_literal )))) ;) (expression_statement "uVar2 = FUN_00130ca2();" (assignment_expression "uVar2 = FUN_00130ca2()" identifier = (call_expression "FUN_00130ca2()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_c8 = uVar2;" (assignment_expression "local_c8 = uVar2" identifier = identifier) ;) (expression_statement "uVar3 = gtk_window_get_type();" (assignment_expression "uVar3 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(uVar2,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(uVar2,uVar3)" identifier = (call_expression "g_type_check_instance_cast(uVar2,uVar3)" identifier (argument_list "(uVar2,uVar3)" ( identifier , identifier )))) ;) (expression_statement "gtk_window_set_title(uVar2,param_2);" (call_expression "gtk_window_set_title(uVar2,param_2)" identifier (argument_list "(uVar2,param_2)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c8,uVar3)" identifier = (call_expression "g_type_check_instance_cast(local_c8,uVar3)" identifier (argument_list "(local_c8,uVar3)" ( identifier , identifier )))) ;) (expression_statement "gtk_window_set_position(uVar2,1);" (call_expression "gtk_window_set_position(uVar2,1)" identifier (argument_list "(uVar2,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gtk_label_new(param_3);" (assignment_expression "uVar2 = gtk_label_new(param_3)" identifier = (call_expression "gtk_label_new(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "local_c0 = uVar2;" (assignment_expression "local_c0 = uVar2" identifier = identifier) ;) (expression_statement "uVar4 = gtk_label_get_type();" (assignment_expression "uVar4 = gtk_label_get_type()" identifier = (call_expression "gtk_label_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(uVar2,uVar4);" (assignment_expression "uVar2 = g_type_check_instance_cast(uVar2,uVar4)" identifier = (call_expression "g_type_check_instance_cast(uVar2,uVar4)" identifier (argument_list "(uVar2,uVar4)" ( identifier , identifier )))) ;) (expression_statement "FUN_00130c90(uVar2);" (call_expression "FUN_00130c90(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "gtk_widget_show(local_c0);" (call_expression "gtk_widget_show(local_c0)" identifier (argument_list "(local_c0)" ( identifier ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,uVar4);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,uVar4)" identifier = (call_expression "g_type_check_instance_cast(local_c0,uVar4)" identifier (argument_list "(local_c0,uVar4)" ( identifier , identifier )))) ;) (expression_statement "gtk_label_set_line_wrap(uVar2,1);" (call_expression "gtk_label_set_line_wrap(uVar2,1)" identifier (argument_list "(uVar2,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,uVar4);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,uVar4)" identifier = (call_expression "g_type_check_instance_cast(local_c0,uVar4)" identifier (argument_list "(local_c0,uVar4)" ( identifier , identifier )))) ;) (expression_statement "gtk_label_set_width_chars(uVar2,0x30);" (call_expression "gtk_label_set_width_chars(uVar2,0x30)" identifier (argument_list "(uVar2,0x30)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = local_c0;" (assignment_expression "uVar2 = local_c0" identifier = identifier) ;) (expression_statement "uVar4 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar4 = g_type_check_instance_cast(local_c8,uVar3)" identifier = (call_expression "g_type_check_instance_cast(local_c8,uVar3)" identifier (argument_list "(local_c8,uVar3)" ( identifier , identifier )))) ;) (expression_statement "FUN_00130e42(uVar4,uVar2,1,1,0);" (call_expression "FUN_00130e42(uVar4,uVar2,1,1,0)" identifier (argument_list "(uVar4,uVar2,1,1,0)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "local_68 = gtk_im_multicontext_new();" (assignment_expression "local_68 = gtk_im_multicontext_new()" identifier = (call_expression "gtk_im_multicontext_new()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c8,uVar3)" identifier = (call_expression "g_type_check_instance_cast(local_c8,uVar3)" identifier (argument_list "(local_c8,uVar3)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = FUN_00130da7(uVar2);" (assignment_expression "uVar2 = FUN_00130da7(uVar2)" identifier = (call_expression "FUN_00130da7(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "piVar6 = local_b8;" (assignment_expression "piVar6 = local_b8" identifier = identifier) ;) (do_statement "do {\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  } while (piVar6 != local_70);" do (compound_statement "{\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  }" { (expression_statement "uVar4 = gtk_drawing_area_new();" (assignment_expression "uVar4 = gtk_drawing_area_new()" identifier = (call_expression "gtk_drawing_area_new()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined8 *)piVar6 = uVar4;" (assignment_expression "*(undefined8 *)piVar6 = uVar4" (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "piVar6[4] = 0;" (assignment_expression "piVar6[4] = 0" (subscript_expression "piVar6[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[3] = 0;" (assignment_expression "piVar6[3] = 0" (subscript_expression "piVar6[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[2] = 0;" (assignment_expression "piVar6[2] = 0" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "gtk_widget_set_size_request(uVar4,0x20,0x20);" (call_expression "gtk_widget_set_size_request(uVar4,0x20,0x20)" identifier (argument_list "(uVar4,0x20,0x20)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);" (call_expression "gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5)" identifier (argument_list "(uVar2,*(undefined8 *)piVar6,1,1,5)" ( identifier , (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , number_literal , number_literal ))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier (argument_list "(*(undefined8 *)piVar6,0x50)" ( (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);" (call_expression "g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0)" identifier (argument_list "(uVar4,"configure_event",FUN_001304d1,piVar6,0,0)" ( identifier , (string_literal ""configure_event"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier (argument_list "(*(undefined8 *)piVar6,0x50)" ( (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);" (call_expression "g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0)" identifier (argument_list "(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0)" ( identifier , (pointer_expression "&DAT_00142a9f" & identifier) , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier (argument_list "(*(undefined8 *)piVar6,0x50)" ( (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal )))) ;) (expression_statement "g_object_set(uVar4,"margin-bottom",8,0);" (call_expression "g_object_set(uVar4,"margin-bottom",8,0)" identifier (argument_list "(uVar4,"margin-bottom",8,0)" ( identifier , (string_literal ""margin-bottom"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "gtk_widget_show(*(undefined8 *)piVar6);" (call_expression "gtk_widget_show(*(undefined8 *)piVar6)" identifier (argument_list "(*(undefined8 *)piVar6)" ( (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "piVar6 = piVar6 + 6;" (assignment_expression "piVar6 = piVar6 + 6" identifier = (binary_expression "piVar6 + 6" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar6 != local_70)" ( (binary_expression "piVar6 != local_70" identifier != identifier) )) ;) (expression_statement "local_70[0] = rand();" (assignment_expression "local_70[0] = rand()" (subscript_expression "local_70[0]" identifier [ number_literal ]) = (call_expression "rand()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_70[0] = local_70[0] % 3;" (assignment_expression "local_70[0] = local_70[0] % 3" (subscript_expression "local_70[0]" identifier [ number_literal ]) = (binary_expression "local_70[0] % 3" (subscript_expression "local_70[0]" identifier [ number_literal ]) % number_literal)) ;) (expression_statement "local_a8[(long)local_70[0] * 6] = 1;" (assignment_expression "local_a8[(long)local_70[0] * 6] = 1" (subscript_expression "local_a8[(long)local_70[0] * 6]" identifier [ (binary_expression "(long)local_70[0] * 6" (cast_expression "(long)local_70[0]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "local_70[0]" identifier [ number_literal ])) * number_literal) ]) = number_literal) ;) (expression_statement "gtk_widget_set_sensitive(local_c0,1);" (call_expression "gtk_widget_set_sensitive(local_c0,1)" identifier (argument_list "(local_c0,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c8,uVar3)" identifier = (call_expression "g_type_check_instance_cast(local_c8,uVar3)" identifier (argument_list "(local_c8,uVar3)" ( identifier , identifier )))) ;) (expression_statement "gtk_window_set_keep_above(uVar2,1);" (call_expression "gtk_window_set_keep_above(uVar2,1)" identifier (argument_list "(uVar2,1)" ( identifier , number_literal ))) ;) (expression_statement "gtk_widget_show_now(local_c8);" (call_expression "gtk_widget_show_now(local_c8)" identifier (argument_list "(local_c8)" ( identifier ))) ;) (expression_statement "gtk_grab_add(local_c0);" (call_expression "gtk_grab_add(local_c0)" identifier (argument_list "(local_c0)" ( identifier ))) ;) (expression_statement "iVar5 = 0x28;" (assignment_expression "iVar5 = 0x28" identifier = number_literal) ;) (do_statement "do {\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);" do (compound_statement "{\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  }" { (expression_statement "iVar1 = FUN_0013059f(&local_c8);" (assignment_expression "iVar1 = FUN_0013059f(&local_c8)" identifier = (call_expression "FUN_0013059f(&local_c8)" identifier (argument_list "(&local_c8)" ( (pointer_expression "&local_c8" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }" { (expression_statement "uVar2 = g_type_check_instance_cast(local_68,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_68,0x50)" identifier = (call_expression "g_type_check_instance_cast(local_68,0x50)" identifier (argument_list "(local_68,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);" (call_expression "g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0)" identifier (argument_list "(uVar2,"commit",FUN_001304f0,&local_c8,0,0)" ( identifier , (string_literal ""commit"" " string_content ") , identifier , (pointer_expression "&local_c8" & identifier) , number_literal , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,0x50)" identifier = (call_expression "g_type_check_instance_cast(local_c0,0x50)" identifier (argument_list "(local_c0,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);" (call_expression "g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0)" identifier (argument_list "(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0)" ( identifier , (string_literal ""key_press_event"" " string_content ") , identifier , (pointer_expression "&local_c8" & identifier) , number_literal , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,0x50)" identifier = (call_expression "g_type_check_instance_cast(local_c0,0x50)" identifier (argument_list "(local_c0,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);" (call_expression "g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0)" identifier (argument_list "(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0)" ( identifier , (string_literal ""key_release_event"" " string_content ") , identifier , (pointer_expression "&local_c8" & identifier) , number_literal , number_literal ))) ;) (expression_statement "uVar2 = gtk_widget_get_window(local_c8);" (assignment_expression "uVar2 = gtk_widget_get_window(local_c8)" identifier = (call_expression "gtk_widget_get_window(local_c8)" identifier (argument_list "(local_c8)" ( identifier )))) ;) (expression_statement "gtk_im_context_set_client_window(local_68,uVar2);" (call_expression "gtk_im_context_set_client_window(local_68,uVar2)" identifier (argument_list "(local_68,uVar2)" ( identifier , identifier ))) ;) (expression_statement "gtk_main();" (call_expression "gtk_main()" identifier (argument_list "()" ( ))) ;) (expression_statement "gdk_seat_ungrab(local_50);" (call_expression "gdk_seat_ungrab(local_50)" identifier (argument_list "(local_50)" ( identifier ))) ;) (expression_statement "gtk_grab_remove(local_c0);" (call_expression "gtk_grab_remove(local_c0)" identifier (argument_list "(local_c0)" ( identifier ))) ;) (if_statement "if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }" if (parenthesized_expression "(local_60 != 0)" ( (binary_expression "local_60 != 0" identifier != number_literal) )) (compound_statement "{\n        if (local_54 <= local_58) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }" { (if_statement "if (local_54 <= local_58) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }" if (parenthesized_expression "(local_54 <= local_58)" ( (binary_expression "local_54 <= local_58" identifier <= identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }" { comment (expression_statement "__assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");" (call_expression "__assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup")" identifier (argument_list "("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup")" ( (string_literal ""ctx->passlen < ctx->passsize"" " string_content ") , (string_literal ""unix/gtkask.c"" " string_content ") , number_literal , (string_literal ""gtk_askpass_cleanup"" " string_content ") ))) ;) })) (expression_statement "*(undefined1 *)(local_60 + local_58) = 0;" (assignment_expression "*(undefined1 *)(local_60 + local_58) = 0" (pointer_expression "*(undefined1 *)(local_60 + local_58)" * (cast_expression "(undefined1 *)(local_60 + local_58)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_60 + local_58)" ( (binary_expression "local_60 + local_58" identifier + identifier) )))) = number_literal) ;) })) (expression_statement "gtk_widget_destroy(local_c8);" (call_expression "gtk_widget_destroy(local_c8)" identifier (argument_list "(local_c8)" ( identifier ))) ;) (if_statement "if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }" if (parenthesized_expression "(local_60 == 0)" ( (binary_expression "local_60 == 0" identifier == number_literal) )) (compound_statement "{\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "FUN_0010bd5d("passphrase input cancelled");" (call_expression "FUN_0010bd5d("passphrase input cancelled")" identifier (argument_list "("passphrase input cancelled")" ( (string_literal ""passphrase input cancelled"" " string_content ") ))) ;) }) (else_clause "else {\n        *param_4 = 1;\n      }" else (compound_statement "{\n        *param_4 = 1;\n      }" { (expression_statement "*param_4 = 1;" (assignment_expression "*param_4 = 1" (pointer_expression "*param_4" * identifier) = number_literal) ;) }))) (goto_statement "goto LAB_00130955;" goto statement_identifier ;) })) (expression_statement "usleep(0x1e848);" (call_expression "usleep(0x1e848)" identifier (argument_list "(0x1e848)" ( number_literal ))) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "FUN_0010c2a6("%s","unable to grab keyboard");" (call_expression "FUN_0010c2a6("%s","unable to grab keyboard")" identifier (argument_list "("%s","unable to grab keyboard")" ( (string_literal ""%s"" " string_content ") , (string_literal ""unable to grab keyboard"" " string_content ") ))) ;) (labeled_statement "LAB_00130955:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "GdkEventType": Some values do not have unique names */\n\nchar * gtk_askpass_main(char *display,char *wintitle,char *prompt,int *success)\n\n{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  GtkWidget *pGVar4;\n  undefined8 uVar5;\n  undefined8 uVar6;\n  GtkLabel *label;\n  undefined8 uVar7;\n  GtkWindow *pGVar8;\n  GtkBox *pGVar9;\n  char *pcVar10;\n  drawing_area_ctx *pdVar11;\n  char **ppcVar12;\n  long in_FS_OFFSET;\n  int argc;\n  char **argv;\n  askpass_ctx actx;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  argv = (char **)&actx;\n  if (gtk_initialised_58173 == 0) {\n    argc = 1;\n    actx.dialog = (GtkWidget *)dupstr("dummy");\n    ppcVar12 = argv + argc;\n    argc = argc + 1;\n    pcVar10 = dupprintf("--display=%s",display);\n    *ppcVar12 = pcVar10;\n    argv[argc] = (char *)0x0;\n    iVar2 = gtk_init_check(&argc,&argv);\n    while (0 < argc) {\n      argc = argc + -1;\n      safefree(argv[argc]);\n    }\n    gtk_initialised_58173 = iVar2;\n    if (iVar2 == 0) {\n      *success = 0;\n      pcVar10 = dupstr("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }\n  actx.passlen = 0;\n  actx.passsize = 0x800;\n  actx.passphrase = (char *)safemalloc(0x800,1);\n  pGVar4 = our_dialog_new();\n  actx.dialog = pGVar4;\n  uVar5 = gtk_window_get_type();\n  uVar6 = g_type_check_instance_cast(pGVar4,uVar5);\n  gtk_window_set_title(uVar6,wintitle);\n  uVar6 = g_type_check_instance_cast(actx.dialog,uVar5);\n  gtk_window_set_position(uVar6,1);\n  pGVar4 = (GtkWidget *)gtk_label_new(prompt);\n  actx.promptlabel = pGVar4;\n  uVar6 = gtk_label_get_type();\n  label = (GtkLabel *)g_type_check_instance_cast(pGVar4,uVar6);\n  align_label_left(label);\n  gtk_widget_show(actx.promptlabel);\n  uVar7 = g_type_check_instance_cast(actx.promptlabel,uVar6);\n  gtk_label_set_line_wrap(uVar7,1);\n  uVar6 = g_type_check_instance_cast(actx.promptlabel,uVar6);\n  gtk_label_set_width_chars(uVar6,0x30);\n  pGVar4 = actx.promptlabel;\n  pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5);\n  our_dialog_add_to_content_area(pGVar8,pGVar4,1,1,0);\n  actx.imc = (GtkIMContext *)gtk_im_multicontext_new();\n  pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5);\n  pGVar9 = our_dialog_make_action_hbox(pGVar8);\n  pdVar11 = actx.drawingareas;\n  do {\n    pGVar4 = (GtkWidget *)gtk_drawing_area_new();\n    pdVar11->area = pGVar4;\n    pdVar11->current = 0;\n    pdVar11->height = 0;\n    pdVar11->width = 0;\n    gtk_widget_set_size_request(pGVar4,0x20,0x20);\n    gtk_box_pack_end(pGVar9,pdVar11->area,1,1,5);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_signal_connect_data(uVar6,"configure_event",configure_area,pdVar11,0,0);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_signal_connect_data(uVar6,&DAT_00142a9f,draw_area,pdVar11,0,0);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_object_set(uVar6,"margin-bottom",8,0);\n    gtk_widget_show(pdVar11->area);\n    pdVar11 = pdVar11 + 1;\n  } while (pdVar11 != (drawing_area_ctx *)&actx.active_area);\n  iVar2 = rand();\n  actx.active_area = iVar2 % 3;\n  actx.drawingareas[actx.active_area].current = 1;\n  gtk_widget_set_sensitive(actx.promptlabel,1);\n  uVar5 = g_type_check_instance_cast(actx.dialog,uVar5);\n  gtk_window_set_keep_above(uVar5,1);\n  gtk_widget_show_now(actx.dialog);\n  gtk_grab_add(actx.promptlabel);\n  iVar2 = 0x28;\n  do {\n    iVar3 = try_grab_keyboard(&actx);\n    if (iVar3 != 0) {\n      uVar5 = g_type_check_instance_cast(actx.imc,0x50);\n      g_signal_connect_data(uVar5,"commit",input_method_commit_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_press_event",key_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_release_event",key_event,&actx,0,0);\n      uVar5 = gtk_widget_get_window(actx.dialog);\n      gtk_im_context_set_client_window(actx.imc,uVar5);\n      gtk_main();\n      gdk_seat_ungrab(actx.seat);\n      gtk_grab_remove(actx.promptlabel);\n      if (actx.passphrase != (char *)0x0) {\n        if (actx.passsize <= actx.passlen) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        actx.passphrase[actx.passlen] = '\0';\n      }\n      gtk_widget_destroy(actx.dialog);\n      if (actx.passphrase == (char *)0x0) {\n        *success = 0;\n        pcVar10 = dupstr("passphrase input cancelled");\n      }\n      else {\n        *success = 1;\n        pcVar10 = actx.passphrase;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar2 = iVar2 + -1;\n  } while (iVar2 != 0);\n  *success = 0;\n  pcVar10 = dupprintf("%s","unable to grab keyboard");\nLAB_00130955:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return pcVar10;\n}\n\n" comment (function_definition "char * gtk_askpass_main(char *display,char *wintitle,char *prompt,int *success)\n\n{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  GtkWidget *pGVar4;\n  undefined8 uVar5;\n  undefined8 uVar6;\n  GtkLabel *label;\n  undefined8 uVar7;\n  GtkWindow *pGVar8;\n  GtkBox *pGVar9;\n  char *pcVar10;\n  drawing_area_ctx *pdVar11;\n  char **ppcVar12;\n  long in_FS_OFFSET;\n  int argc;\n  char **argv;\n  askpass_ctx actx;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  argv = (char **)&actx;\n  if (gtk_initialised_58173 == 0) {\n    argc = 1;\n    actx.dialog = (GtkWidget *)dupstr("dummy");\n    ppcVar12 = argv + argc;\n    argc = argc + 1;\n    pcVar10 = dupprintf("--display=%s",display);\n    *ppcVar12 = pcVar10;\n    argv[argc] = (char *)0x0;\n    iVar2 = gtk_init_check(&argc,&argv);\n    while (0 < argc) {\n      argc = argc + -1;\n      safefree(argv[argc]);\n    }\n    gtk_initialised_58173 = iVar2;\n    if (iVar2 == 0) {\n      *success = 0;\n      pcVar10 = dupstr("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }\n  actx.passlen = 0;\n  actx.passsize = 0x800;\n  actx.passphrase = (char *)safemalloc(0x800,1);\n  pGVar4 = our_dialog_new();\n  actx.dialog = pGVar4;\n  uVar5 = gtk_window_get_type();\n  uVar6 = g_type_check_instance_cast(pGVar4,uVar5);\n  gtk_window_set_title(uVar6,wintitle);\n  uVar6 = g_type_check_instance_cast(actx.dialog,uVar5);\n  gtk_window_set_position(uVar6,1);\n  pGVar4 = (GtkWidget *)gtk_label_new(prompt);\n  actx.promptlabel = pGVar4;\n  uVar6 = gtk_label_get_type();\n  label = (GtkLabel *)g_type_check_instance_cast(pGVar4,uVar6);\n  align_label_left(label);\n  gtk_widget_show(actx.promptlabel);\n  uVar7 = g_type_check_instance_cast(actx.promptlabel,uVar6);\n  gtk_label_set_line_wrap(uVar7,1);\n  uVar6 = g_type_check_instance_cast(actx.promptlabel,uVar6);\n  gtk_label_set_width_chars(uVar6,0x30);\n  pGVar4 = actx.promptlabel;\n  pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5);\n  our_dialog_add_to_content_area(pGVar8,pGVar4,1,1,0);\n  actx.imc = (GtkIMContext *)gtk_im_multicontext_new();\n  pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5);\n  pGVar9 = our_dialog_make_action_hbox(pGVar8);\n  pdVar11 = actx.drawingareas;\n  do {\n    pGVar4 = (GtkWidget *)gtk_drawing_area_new();\n    pdVar11->area = pGVar4;\n    pdVar11->current = 0;\n    pdVar11->height = 0;\n    pdVar11->width = 0;\n    gtk_widget_set_size_request(pGVar4,0x20,0x20);\n    gtk_box_pack_end(pGVar9,pdVar11->area,1,1,5);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_signal_connect_data(uVar6,"configure_event",configure_area,pdVar11,0,0);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_signal_connect_data(uVar6,&DAT_00142a9f,draw_area,pdVar11,0,0);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_object_set(uVar6,"margin-bottom",8,0);\n    gtk_widget_show(pdVar11->area);\n    pdVar11 = pdVar11 + 1;\n  } while (pdVar11 != (drawing_area_ctx *)&actx.active_area);\n  iVar2 = rand();\n  actx.active_area = iVar2 % 3;\n  actx.drawingareas[actx.active_area].current = 1;\n  gtk_widget_set_sensitive(actx.promptlabel,1);\n  uVar5 = g_type_check_instance_cast(actx.dialog,uVar5);\n  gtk_window_set_keep_above(uVar5,1);\n  gtk_widget_show_now(actx.dialog);\n  gtk_grab_add(actx.promptlabel);\n  iVar2 = 0x28;\n  do {\n    iVar3 = try_grab_keyboard(&actx);\n    if (iVar3 != 0) {\n      uVar5 = g_type_check_instance_cast(actx.imc,0x50);\n      g_signal_connect_data(uVar5,"commit",input_method_commit_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_press_event",key_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_release_event",key_event,&actx,0,0);\n      uVar5 = gtk_widget_get_window(actx.dialog);\n      gtk_im_context_set_client_window(actx.imc,uVar5);\n      gtk_main();\n      gdk_seat_ungrab(actx.seat);\n      gtk_grab_remove(actx.promptlabel);\n      if (actx.passphrase != (char *)0x0) {\n        if (actx.passsize <= actx.passlen) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        actx.passphrase[actx.passlen] = '\0';\n      }\n      gtk_widget_destroy(actx.dialog);\n      if (actx.passphrase == (char *)0x0) {\n        *success = 0;\n        pcVar10 = dupstr("passphrase input cancelled");\n      }\n      else {\n        *success = 1;\n        pcVar10 = actx.passphrase;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar2 = iVar2 + -1;\n  } while (iVar2 != 0);\n  *success = 0;\n  pcVar10 = dupprintf("%s","unable to grab keyboard");\nLAB_00130955:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return pcVar10;\n}" primitive_type (pointer_declarator "* gtk_askpass_main(char *display,char *wintitle,char *prompt,int *success)" * (function_declarator "gtk_askpass_main(char *display,char *wintitle,char *prompt,int *success)" identifier (parameter_list "(char *display,char *wintitle,char *prompt,int *success)" ( (parameter_declaration "char *display" primitive_type (pointer_declarator "*display" * identifier)) , (parameter_declaration "char *wintitle" primitive_type (pointer_declarator "*wintitle" * identifier)) , (parameter_declaration "char *prompt" primitive_type (pointer_declarator "*prompt" * identifier)) , (parameter_declaration "int *success" primitive_type (pointer_declarator "*success" * identifier)) )))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  GtkWidget *pGVar4;\n  undefined8 uVar5;\n  undefined8 uVar6;\n  GtkLabel *label;\n  undefined8 uVar7;\n  GtkWindow *pGVar8;\n  GtkBox *pGVar9;\n  char *pcVar10;\n  drawing_area_ctx *pdVar11;\n  char **ppcVar12;\n  long in_FS_OFFSET;\n  int argc;\n  char **argv;\n  askpass_ctx actx;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  argv = (char **)&actx;\n  if (gtk_initialised_58173 == 0) {\n    argc = 1;\n    actx.dialog = (GtkWidget *)dupstr("dummy");\n    ppcVar12 = argv + argc;\n    argc = argc + 1;\n    pcVar10 = dupprintf("--display=%s",display);\n    *ppcVar12 = pcVar10;\n    argv[argc] = (char *)0x0;\n    iVar2 = gtk_init_check(&argc,&argv);\n    while (0 < argc) {\n      argc = argc + -1;\n      safefree(argv[argc]);\n    }\n    gtk_initialised_58173 = iVar2;\n    if (iVar2 == 0) {\n      *success = 0;\n      pcVar10 = dupstr("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }\n  actx.passlen = 0;\n  actx.passsize = 0x800;\n  actx.passphrase = (char *)safemalloc(0x800,1);\n  pGVar4 = our_dialog_new();\n  actx.dialog = pGVar4;\n  uVar5 = gtk_window_get_type();\n  uVar6 = g_type_check_instance_cast(pGVar4,uVar5);\n  gtk_window_set_title(uVar6,wintitle);\n  uVar6 = g_type_check_instance_cast(actx.dialog,uVar5);\n  gtk_window_set_position(uVar6,1);\n  pGVar4 = (GtkWidget *)gtk_label_new(prompt);\n  actx.promptlabel = pGVar4;\n  uVar6 = gtk_label_get_type();\n  label = (GtkLabel *)g_type_check_instance_cast(pGVar4,uVar6);\n  align_label_left(label);\n  gtk_widget_show(actx.promptlabel);\n  uVar7 = g_type_check_instance_cast(actx.promptlabel,uVar6);\n  gtk_label_set_line_wrap(uVar7,1);\n  uVar6 = g_type_check_instance_cast(actx.promptlabel,uVar6);\n  gtk_label_set_width_chars(uVar6,0x30);\n  pGVar4 = actx.promptlabel;\n  pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5);\n  our_dialog_add_to_content_area(pGVar8,pGVar4,1,1,0);\n  actx.imc = (GtkIMContext *)gtk_im_multicontext_new();\n  pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5);\n  pGVar9 = our_dialog_make_action_hbox(pGVar8);\n  pdVar11 = actx.drawingareas;\n  do {\n    pGVar4 = (GtkWidget *)gtk_drawing_area_new();\n    pdVar11->area = pGVar4;\n    pdVar11->current = 0;\n    pdVar11->height = 0;\n    pdVar11->width = 0;\n    gtk_widget_set_size_request(pGVar4,0x20,0x20);\n    gtk_box_pack_end(pGVar9,pdVar11->area,1,1,5);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_signal_connect_data(uVar6,"configure_event",configure_area,pdVar11,0,0);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_signal_connect_data(uVar6,&DAT_00142a9f,draw_area,pdVar11,0,0);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_object_set(uVar6,"margin-bottom",8,0);\n    gtk_widget_show(pdVar11->area);\n    pdVar11 = pdVar11 + 1;\n  } while (pdVar11 != (drawing_area_ctx *)&actx.active_area);\n  iVar2 = rand();\n  actx.active_area = iVar2 % 3;\n  actx.drawingareas[actx.active_area].current = 1;\n  gtk_widget_set_sensitive(actx.promptlabel,1);\n  uVar5 = g_type_check_instance_cast(actx.dialog,uVar5);\n  gtk_window_set_keep_above(uVar5,1);\n  gtk_widget_show_now(actx.dialog);\n  gtk_grab_add(actx.promptlabel);\n  iVar2 = 0x28;\n  do {\n    iVar3 = try_grab_keyboard(&actx);\n    if (iVar3 != 0) {\n      uVar5 = g_type_check_instance_cast(actx.imc,0x50);\n      g_signal_connect_data(uVar5,"commit",input_method_commit_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_press_event",key_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_release_event",key_event,&actx,0,0);\n      uVar5 = gtk_widget_get_window(actx.dialog);\n      gtk_im_context_set_client_window(actx.imc,uVar5);\n      gtk_main();\n      gdk_seat_ungrab(actx.seat);\n      gtk_grab_remove(actx.promptlabel);\n      if (actx.passphrase != (char *)0x0) {\n        if (actx.passsize <= actx.passlen) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        actx.passphrase[actx.passlen] = '\0';\n      }\n      gtk_widget_destroy(actx.dialog);\n      if (actx.passphrase == (char *)0x0) {\n        *success = 0;\n        pcVar10 = dupstr("passphrase input cancelled");\n      }\n      else {\n        *success = 1;\n        pcVar10 = actx.passphrase;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar2 = iVar2 + -1;\n  } while (iVar2 != 0);\n  *success = 0;\n  pcVar10 = dupprintf("%s","unable to grab keyboard");\nLAB_00130955:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return pcVar10;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "GtkWidget *pGVar4;" type_identifier (pointer_declarator "*pGVar4" * identifier) ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "GtkLabel *label;" type_identifier (pointer_declarator "*label" * identifier) ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "GtkWindow *pGVar8;" type_identifier (pointer_declarator "*pGVar8" * identifier) ;) (declaration "GtkBox *pGVar9;" type_identifier (pointer_declarator "*pGVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "drawing_area_ctx *pdVar11;" type_identifier (pointer_declarator "*pdVar11" * identifier) ;) (declaration "char **ppcVar12;" primitive_type (pointer_declarator "**ppcVar12" * (pointer_declarator "*ppcVar12" * identifier)) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int argc;" primitive_type identifier ;) (declaration "char **argv;" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier)) ;) (declaration "askpass_ctx actx;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "argv = (char **)&actx;" (assignment_expression "argv = (char **)&actx" identifier = (cast_expression "(char **)&actx" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&actx" & identifier))) ;) (if_statement "if (gtk_initialised_58173 == 0) {\n    argc = 1;\n    actx.dialog = (GtkWidget *)dupstr("dummy");\n    ppcVar12 = argv + argc;\n    argc = argc + 1;\n    pcVar10 = dupprintf("--display=%s",display);\n    *ppcVar12 = pcVar10;\n    argv[argc] = (char *)0x0;\n    iVar2 = gtk_init_check(&argc,&argv);\n    while (0 < argc) {\n      argc = argc + -1;\n      safefree(argv[argc]);\n    }\n    gtk_initialised_58173 = iVar2;\n    if (iVar2 == 0) {\n      *success = 0;\n      pcVar10 = dupstr("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }" if (parenthesized_expression "(gtk_initialised_58173 == 0)" ( (binary_expression "gtk_initialised_58173 == 0" identifier == number_literal) )) (compound_statement "{\n    argc = 1;\n    actx.dialog = (GtkWidget *)dupstr("dummy");\n    ppcVar12 = argv + argc;\n    argc = argc + 1;\n    pcVar10 = dupprintf("--display=%s",display);\n    *ppcVar12 = pcVar10;\n    argv[argc] = (char *)0x0;\n    iVar2 = gtk_init_check(&argc,&argv);\n    while (0 < argc) {\n      argc = argc + -1;\n      safefree(argv[argc]);\n    }\n    gtk_initialised_58173 = iVar2;\n    if (iVar2 == 0) {\n      *success = 0;\n      pcVar10 = dupstr("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }" { (expression_statement "argc = 1;" (assignment_expression "argc = 1" identifier = number_literal) ;) (expression_statement "actx.dialog = (GtkWidget *)dupstr("dummy");" (assignment_expression "actx.dialog = (GtkWidget *)dupstr("dummy")" (field_expression "actx.dialog" identifier . field_identifier) = (cast_expression "(GtkWidget *)dupstr("dummy")" ( (type_descriptor "GtkWidget *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dupstr("dummy")" identifier (argument_list "("dummy")" ( (string_literal ""dummy"" " string_content ") ))))) ;) (expression_statement "ppcVar12 = argv + argc;" (assignment_expression "ppcVar12 = argv + argc" identifier = (binary_expression "argv + argc" identifier + identifier)) ;) (expression_statement "argc = argc + 1;" (assignment_expression "argc = argc + 1" identifier = (binary_expression "argc + 1" identifier + number_literal)) ;) (expression_statement "pcVar10 = dupprintf("--display=%s",display);" (assignment_expression "pcVar10 = dupprintf("--display=%s",display)" identifier = (call_expression "dupprintf("--display=%s",display)" identifier (argument_list "("--display=%s",display)" ( (string_literal ""--display=%s"" " string_content ") , identifier )))) ;) (expression_statement "*ppcVar12 = pcVar10;" (assignment_expression "*ppcVar12 = pcVar10" (pointer_expression "*ppcVar12" * identifier) = identifier) ;) (expression_statement "argv[argc] = (char *)0x0;" (assignment_expression "argv[argc] = (char *)0x0" (subscript_expression "argv[argc]" identifier [ identifier ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar2 = gtk_init_check(&argc,&argv);" (assignment_expression "iVar2 = gtk_init_check(&argc,&argv)" identifier = (call_expression "gtk_init_check(&argc,&argv)" identifier (argument_list "(&argc,&argv)" ( (pointer_expression "&argc" & identifier) , (pointer_expression "&argv" & identifier) )))) ;) (while_statement "while (0 < argc) {\n      argc = argc + -1;\n      safefree(argv[argc]);\n    }" while (parenthesized_expression "(0 < argc)" ( (binary_expression "0 < argc" number_literal < identifier) )) (compound_statement "{\n      argc = argc + -1;\n      safefree(argv[argc]);\n    }" { (expression_statement "argc = argc + -1;" (assignment_expression "argc = argc + -1" identifier = (binary_expression "argc + -1" identifier + number_literal)) ;) (expression_statement "safefree(argv[argc]);" (call_expression "safefree(argv[argc])" identifier (argument_list "(argv[argc])" ( (subscript_expression "argv[argc]" identifier [ identifier ]) ))) ;) })) (expression_statement "gtk_initialised_58173 = iVar2;" (assignment_expression "gtk_initialised_58173 = iVar2" identifier = identifier) ;) (if_statement "if (iVar2 == 0) {\n      *success = 0;\n      pcVar10 = dupstr("unable to initialise GTK");\n      goto LAB_00130955;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *success = 0;\n      pcVar10 = dupstr("unable to initialise GTK");\n      goto LAB_00130955;\n    }" { (expression_statement "*success = 0;" (assignment_expression "*success = 0" (pointer_expression "*success" * identifier) = number_literal) ;) (expression_statement "pcVar10 = dupstr("unable to initialise GTK");" (assignment_expression "pcVar10 = dupstr("unable to initialise GTK")" identifier = (call_expression "dupstr("unable to initialise GTK")" identifier (argument_list "("unable to initialise GTK")" ( (string_literal ""unable to initialise GTK"" " string_content ") )))) ;) (goto_statement "goto LAB_00130955;" goto statement_identifier ;) })) })) (expression_statement "actx.passlen = 0;" (assignment_expression "actx.passlen = 0" (field_expression "actx.passlen" identifier . field_identifier) = number_literal) ;) (expression_statement "actx.passsize = 0x800;" (assignment_expression "actx.passsize = 0x800" (field_expression "actx.passsize" identifier . field_identifier) = number_literal) ;) (expression_statement "actx.passphrase = (char *)safemalloc(0x800,1);" (assignment_expression "actx.passphrase = (char *)safemalloc(0x800,1)" (field_expression "actx.passphrase" identifier . field_identifier) = (cast_expression "(char *)safemalloc(0x800,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(0x800,1)" identifier (argument_list "(0x800,1)" ( number_literal , number_literal ))))) ;) (expression_statement "pGVar4 = our_dialog_new();" (assignment_expression "pGVar4 = our_dialog_new()" identifier = (call_expression "our_dialog_new()" identifier (argument_list "()" ( )))) ;) (expression_statement "actx.dialog = pGVar4;" (assignment_expression "actx.dialog = pGVar4" (field_expression "actx.dialog" identifier . field_identifier) = identifier) ;) (expression_statement "uVar5 = gtk_window_get_type();" (assignment_expression "uVar5 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(pGVar4,uVar5);" (assignment_expression "uVar6 = g_type_check_instance_cast(pGVar4,uVar5)" identifier = (call_expression "g_type_check_instance_cast(pGVar4,uVar5)" identifier (argument_list "(pGVar4,uVar5)" ( identifier , identifier )))) ;) (expression_statement "gtk_window_set_title(uVar6,wintitle);" (call_expression "gtk_window_set_title(uVar6,wintitle)" identifier (argument_list "(uVar6,wintitle)" ( identifier , identifier ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(actx.dialog,uVar5);" (assignment_expression "uVar6 = g_type_check_instance_cast(actx.dialog,uVar5)" identifier = (call_expression "g_type_check_instance_cast(actx.dialog,uVar5)" identifier (argument_list "(actx.dialog,uVar5)" ( (field_expression "actx.dialog" identifier . field_identifier) , identifier )))) ;) (expression_statement "gtk_window_set_position(uVar6,1);" (call_expression "gtk_window_set_position(uVar6,1)" identifier (argument_list "(uVar6,1)" ( identifier , number_literal ))) ;) (expression_statement "pGVar4 = (GtkWidget *)gtk_label_new(prompt);" (assignment_expression "pGVar4 = (GtkWidget *)gtk_label_new(prompt)" identifier = (cast_expression "(GtkWidget *)gtk_label_new(prompt)" ( (type_descriptor "GtkWidget *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_label_new(prompt)" identifier (argument_list "(prompt)" ( identifier ))))) ;) (expression_statement "actx.promptlabel = pGVar4;" (assignment_expression "actx.promptlabel = pGVar4" (field_expression "actx.promptlabel" identifier . field_identifier) = identifier) ;) (expression_statement "uVar6 = gtk_label_get_type();" (assignment_expression "uVar6 = gtk_label_get_type()" identifier = (call_expression "gtk_label_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "label = (GtkLabel *)g_type_check_instance_cast(pGVar4,uVar6);" (assignment_expression "label = (GtkLabel *)g_type_check_instance_cast(pGVar4,uVar6)" identifier = (cast_expression "(GtkLabel *)g_type_check_instance_cast(pGVar4,uVar6)" ( (type_descriptor "GtkLabel *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "g_type_check_instance_cast(pGVar4,uVar6)" identifier (argument_list "(pGVar4,uVar6)" ( identifier , identifier ))))) ;) (expression_statement "align_label_left(label);" (call_expression "align_label_left(label)" identifier (argument_list "(label)" ( identifier ))) ;) (expression_statement "gtk_widget_show(actx.promptlabel);" (call_expression "gtk_widget_show(actx.promptlabel)" identifier (argument_list "(actx.promptlabel)" ( (field_expression "actx.promptlabel" identifier . field_identifier) ))) ;) (expression_statement "uVar7 = g_type_check_instance_cast(actx.promptlabel,uVar6);" (assignment_expression "uVar7 = g_type_check_instance_cast(actx.promptlabel,uVar6)" identifier = (call_expression "g_type_check_instance_cast(actx.promptlabel,uVar6)" identifier (argument_list "(actx.promptlabel,uVar6)" ( (field_expression "actx.promptlabel" identifier . field_identifier) , identifier )))) ;) (expression_statement "gtk_label_set_line_wrap(uVar7,1);" (call_expression "gtk_label_set_line_wrap(uVar7,1)" identifier (argument_list "(uVar7,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(actx.promptlabel,uVar6);" (assignment_expression "uVar6 = g_type_check_instance_cast(actx.promptlabel,uVar6)" identifier = (call_expression "g_type_check_instance_cast(actx.promptlabel,uVar6)" identifier (argument_list "(actx.promptlabel,uVar6)" ( (field_expression "actx.promptlabel" identifier . field_identifier) , identifier )))) ;) (expression_statement "gtk_label_set_width_chars(uVar6,0x30);" (call_expression "gtk_label_set_width_chars(uVar6,0x30)" identifier (argument_list "(uVar6,0x30)" ( identifier , number_literal ))) ;) (expression_statement "pGVar4 = actx.promptlabel;" (assignment_expression "pGVar4 = actx.promptlabel" identifier = (field_expression "actx.promptlabel" identifier . field_identifier)) ;) (expression_statement "pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5);" (assignment_expression "pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5)" identifier = (cast_expression "(GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5)" ( (type_descriptor "GtkWindow *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "g_type_check_instance_cast(actx.dialog,uVar5)" identifier (argument_list "(actx.dialog,uVar5)" ( (field_expression "actx.dialog" identifier . field_identifier) , identifier ))))) ;) (expression_statement "our_dialog_add_to_content_area(pGVar8,pGVar4,1,1,0);" (call_expression "our_dialog_add_to_content_area(pGVar8,pGVar4,1,1,0)" identifier (argument_list "(pGVar8,pGVar4,1,1,0)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "actx.imc = (GtkIMContext *)gtk_im_multicontext_new();" (assignment_expression "actx.imc = (GtkIMContext *)gtk_im_multicontext_new()" (field_expression "actx.imc" identifier . field_identifier) = (cast_expression "(GtkIMContext *)gtk_im_multicontext_new()" ( (type_descriptor "GtkIMContext *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_im_multicontext_new()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5);" (assignment_expression "pGVar8 = (GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5)" identifier = (cast_expression "(GtkWindow *)g_type_check_instance_cast(actx.dialog,uVar5)" ( (type_descriptor "GtkWindow *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "g_type_check_instance_cast(actx.dialog,uVar5)" identifier (argument_list "(actx.dialog,uVar5)" ( (field_expression "actx.dialog" identifier . field_identifier) , identifier ))))) ;) (expression_statement "pGVar9 = our_dialog_make_action_hbox(pGVar8);" (assignment_expression "pGVar9 = our_dialog_make_action_hbox(pGVar8)" identifier = (call_expression "our_dialog_make_action_hbox(pGVar8)" identifier (argument_list "(pGVar8)" ( identifier )))) ;) (expression_statement "pdVar11 = actx.drawingareas;" (assignment_expression "pdVar11 = actx.drawingareas" identifier = (field_expression "actx.drawingareas" identifier . field_identifier)) ;) (do_statement "do {\n    pGVar4 = (GtkWidget *)gtk_drawing_area_new();\n    pdVar11->area = pGVar4;\n    pdVar11->current = 0;\n    pdVar11->height = 0;\n    pdVar11->width = 0;\n    gtk_widget_set_size_request(pGVar4,0x20,0x20);\n    gtk_box_pack_end(pGVar9,pdVar11->area,1,1,5);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_signal_connect_data(uVar6,"configure_event",configure_area,pdVar11,0,0);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_signal_connect_data(uVar6,&DAT_00142a9f,draw_area,pdVar11,0,0);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_object_set(uVar6,"margin-bottom",8,0);\n    gtk_widget_show(pdVar11->area);\n    pdVar11 = pdVar11 + 1;\n  } while (pdVar11 != (drawing_area_ctx *)&actx.active_area);" do (compound_statement "{\n    pGVar4 = (GtkWidget *)gtk_drawing_area_new();\n    pdVar11->area = pGVar4;\n    pdVar11->current = 0;\n    pdVar11->height = 0;\n    pdVar11->width = 0;\n    gtk_widget_set_size_request(pGVar4,0x20,0x20);\n    gtk_box_pack_end(pGVar9,pdVar11->area,1,1,5);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_signal_connect_data(uVar6,"configure_event",configure_area,pdVar11,0,0);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_signal_connect_data(uVar6,&DAT_00142a9f,draw_area,pdVar11,0,0);\n    uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);\n    g_object_set(uVar6,"margin-bottom",8,0);\n    gtk_widget_show(pdVar11->area);\n    pdVar11 = pdVar11 + 1;\n  }" { (expression_statement "pGVar4 = (GtkWidget *)gtk_drawing_area_new();" (assignment_expression "pGVar4 = (GtkWidget *)gtk_drawing_area_new()" identifier = (cast_expression "(GtkWidget *)gtk_drawing_area_new()" ( (type_descriptor "GtkWidget *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_drawing_area_new()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pdVar11->area = pGVar4;" (assignment_expression "pdVar11->area = pGVar4" (field_expression "pdVar11->area" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar11->current = 0;" (assignment_expression "pdVar11->current = 0" (field_expression "pdVar11->current" identifier -> field_identifier) = number_literal) ;) (expression_statement "pdVar11->height = 0;" (assignment_expression "pdVar11->height = 0" (field_expression "pdVar11->height" identifier -> field_identifier) = number_literal) ;) (expression_statement "pdVar11->width = 0;" (assignment_expression "pdVar11->width = 0" (field_expression "pdVar11->width" identifier -> field_identifier) = number_literal) ;) (expression_statement "gtk_widget_set_size_request(pGVar4,0x20,0x20);" (call_expression "gtk_widget_set_size_request(pGVar4,0x20,0x20)" identifier (argument_list "(pGVar4,0x20,0x20)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "gtk_box_pack_end(pGVar9,pdVar11->area,1,1,5);" (call_expression "gtk_box_pack_end(pGVar9,pdVar11->area,1,1,5)" identifier (argument_list "(pGVar9,pdVar11->area,1,1,5)" ( identifier , (field_expression "pdVar11->area" identifier -> field_identifier) , number_literal , number_literal , number_literal ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(pdVar11->area,0x50)" identifier = (call_expression "g_type_check_instance_cast(pdVar11->area,0x50)" identifier (argument_list "(pdVar11->area,0x50)" ( (field_expression "pdVar11->area" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar6,"configure_event",configure_area,pdVar11,0,0);" (call_expression "g_signal_connect_data(uVar6,"configure_event",configure_area,pdVar11,0,0)" identifier (argument_list "(uVar6,"configure_event",configure_area,pdVar11,0,0)" ( identifier , (string_literal ""configure_event"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(pdVar11->area,0x50)" identifier = (call_expression "g_type_check_instance_cast(pdVar11->area,0x50)" identifier (argument_list "(pdVar11->area,0x50)" ( (field_expression "pdVar11->area" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar6,&DAT_00142a9f,draw_area,pdVar11,0,0);" (call_expression "g_signal_connect_data(uVar6,&DAT_00142a9f,draw_area,pdVar11,0,0)" identifier (argument_list "(uVar6,&DAT_00142a9f,draw_area,pdVar11,0,0)" ( identifier , (pointer_expression "&DAT_00142a9f" & identifier) , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar6 = g_type_check_instance_cast(pdVar11->area,0x50);" (assignment_expression "uVar6 = g_type_check_instance_cast(pdVar11->area,0x50)" identifier = (call_expression "g_type_check_instance_cast(pdVar11->area,0x50)" identifier (argument_list "(pdVar11->area,0x50)" ( (field_expression "pdVar11->area" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "g_object_set(uVar6,"margin-bottom",8,0);" (call_expression "g_object_set(uVar6,"margin-bottom",8,0)" identifier (argument_list "(uVar6,"margin-bottom",8,0)" ( identifier , (string_literal ""margin-bottom"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "gtk_widget_show(pdVar11->area);" (call_expression "gtk_widget_show(pdVar11->area)" identifier (argument_list "(pdVar11->area)" ( (field_expression "pdVar11->area" identifier -> field_identifier) ))) ;) (expression_statement "pdVar11 = pdVar11 + 1;" (assignment_expression "pdVar11 = pdVar11 + 1" identifier = (binary_expression "pdVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pdVar11 != (drawing_area_ctx *)&actx.active_area)" ( (binary_expression "pdVar11 != (drawing_area_ctx *)&actx.active_area" identifier != (cast_expression "(drawing_area_ctx *)&actx.active_area" ( (type_descriptor "drawing_area_ctx *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&actx.active_area" & (field_expression "actx.active_area" identifier . field_identifier)))) )) ;) (expression_statement "iVar2 = rand();" (assignment_expression "iVar2 = rand()" identifier = (call_expression "rand()" identifier (argument_list "()" ( )))) ;) (expression_statement "actx.active_area = iVar2 % 3;" (assignment_expression "actx.active_area = iVar2 % 3" (field_expression "actx.active_area" identifier . field_identifier) = (binary_expression "iVar2 % 3" identifier % number_literal)) ;) (expression_statement "actx.drawingareas[actx.active_area].current = 1;" (assignment_expression "actx.drawingareas[actx.active_area].current = 1" (field_expression "actx.drawingareas[actx.active_area].current" (subscript_expression "actx.drawingareas[actx.active_area]" (field_expression "actx.drawingareas" identifier . field_identifier) [ (field_expression "actx.active_area" identifier . field_identifier) ]) . field_identifier) = number_literal) ;) (expression_statement "gtk_widget_set_sensitive(actx.promptlabel,1);" (call_expression "gtk_widget_set_sensitive(actx.promptlabel,1)" identifier (argument_list "(actx.promptlabel,1)" ( (field_expression "actx.promptlabel" identifier . field_identifier) , number_literal ))) ;) (expression_statement "uVar5 = g_type_check_instance_cast(actx.dialog,uVar5);" (assignment_expression "uVar5 = g_type_check_instance_cast(actx.dialog,uVar5)" identifier = (call_expression "g_type_check_instance_cast(actx.dialog,uVar5)" identifier (argument_list "(actx.dialog,uVar5)" ( (field_expression "actx.dialog" identifier . field_identifier) , identifier )))) ;) (expression_statement "gtk_window_set_keep_above(uVar5,1);" (call_expression "gtk_window_set_keep_above(uVar5,1)" identifier (argument_list "(uVar5,1)" ( identifier , number_literal ))) ;) (expression_statement "gtk_widget_show_now(actx.dialog);" (call_expression "gtk_widget_show_now(actx.dialog)" identifier (argument_list "(actx.dialog)" ( (field_expression "actx.dialog" identifier . field_identifier) ))) ;) (expression_statement "gtk_grab_add(actx.promptlabel);" (call_expression "gtk_grab_add(actx.promptlabel)" identifier (argument_list "(actx.promptlabel)" ( (field_expression "actx.promptlabel" identifier . field_identifier) ))) ;) (expression_statement "iVar2 = 0x28;" (assignment_expression "iVar2 = 0x28" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = try_grab_keyboard(&actx);\n    if (iVar3 != 0) {\n      uVar5 = g_type_check_instance_cast(actx.imc,0x50);\n      g_signal_connect_data(uVar5,"commit",input_method_commit_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_press_event",key_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_release_event",key_event,&actx,0,0);\n      uVar5 = gtk_widget_get_window(actx.dialog);\n      gtk_im_context_set_client_window(actx.imc,uVar5);\n      gtk_main();\n      gdk_seat_ungrab(actx.seat);\n      gtk_grab_remove(actx.promptlabel);\n      if (actx.passphrase != (char *)0x0) {\n        if (actx.passsize <= actx.passlen) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        actx.passphrase[actx.passlen] = '\0';\n      }\n      gtk_widget_destroy(actx.dialog);\n      if (actx.passphrase == (char *)0x0) {\n        *success = 0;\n        pcVar10 = dupstr("passphrase input cancelled");\n      }\n      else {\n        *success = 1;\n        pcVar10 = actx.passphrase;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar2 = iVar2 + -1;\n  } while (iVar2 != 0);" do (compound_statement "{\n    iVar3 = try_grab_keyboard(&actx);\n    if (iVar3 != 0) {\n      uVar5 = g_type_check_instance_cast(actx.imc,0x50);\n      g_signal_connect_data(uVar5,"commit",input_method_commit_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_press_event",key_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_release_event",key_event,&actx,0,0);\n      uVar5 = gtk_widget_get_window(actx.dialog);\n      gtk_im_context_set_client_window(actx.imc,uVar5);\n      gtk_main();\n      gdk_seat_ungrab(actx.seat);\n      gtk_grab_remove(actx.promptlabel);\n      if (actx.passphrase != (char *)0x0) {\n        if (actx.passsize <= actx.passlen) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        actx.passphrase[actx.passlen] = '\0';\n      }\n      gtk_widget_destroy(actx.dialog);\n      if (actx.passphrase == (char *)0x0) {\n        *success = 0;\n        pcVar10 = dupstr("passphrase input cancelled");\n      }\n      else {\n        *success = 1;\n        pcVar10 = actx.passphrase;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar2 = iVar2 + -1;\n  }" { (expression_statement "iVar3 = try_grab_keyboard(&actx);" (assignment_expression "iVar3 = try_grab_keyboard(&actx)" identifier = (call_expression "try_grab_keyboard(&actx)" identifier (argument_list "(&actx)" ( (pointer_expression "&actx" & identifier) )))) ;) (if_statement "if (iVar3 != 0) {\n      uVar5 = g_type_check_instance_cast(actx.imc,0x50);\n      g_signal_connect_data(uVar5,"commit",input_method_commit_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_press_event",key_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_release_event",key_event,&actx,0,0);\n      uVar5 = gtk_widget_get_window(actx.dialog);\n      gtk_im_context_set_client_window(actx.imc,uVar5);\n      gtk_main();\n      gdk_seat_ungrab(actx.seat);\n      gtk_grab_remove(actx.promptlabel);\n      if (actx.passphrase != (char *)0x0) {\n        if (actx.passsize <= actx.passlen) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        actx.passphrase[actx.passlen] = '\0';\n      }\n      gtk_widget_destroy(actx.dialog);\n      if (actx.passphrase == (char *)0x0) {\n        *success = 0;\n        pcVar10 = dupstr("passphrase input cancelled");\n      }\n      else {\n        *success = 1;\n        pcVar10 = actx.passphrase;\n      }\n      goto LAB_00130955;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar5 = g_type_check_instance_cast(actx.imc,0x50);\n      g_signal_connect_data(uVar5,"commit",input_method_commit_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_press_event",key_event,&actx,0,0);\n      uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);\n      g_signal_connect_data(uVar5,"key_release_event",key_event,&actx,0,0);\n      uVar5 = gtk_widget_get_window(actx.dialog);\n      gtk_im_context_set_client_window(actx.imc,uVar5);\n      gtk_main();\n      gdk_seat_ungrab(actx.seat);\n      gtk_grab_remove(actx.promptlabel);\n      if (actx.passphrase != (char *)0x0) {\n        if (actx.passsize <= actx.passlen) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        actx.passphrase[actx.passlen] = '\0';\n      }\n      gtk_widget_destroy(actx.dialog);\n      if (actx.passphrase == (char *)0x0) {\n        *success = 0;\n        pcVar10 = dupstr("passphrase input cancelled");\n      }\n      else {\n        *success = 1;\n        pcVar10 = actx.passphrase;\n      }\n      goto LAB_00130955;\n    }" { (expression_statement "uVar5 = g_type_check_instance_cast(actx.imc,0x50);" (assignment_expression "uVar5 = g_type_check_instance_cast(actx.imc,0x50)" identifier = (call_expression "g_type_check_instance_cast(actx.imc,0x50)" identifier (argument_list "(actx.imc,0x50)" ( (field_expression "actx.imc" identifier . field_identifier) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar5,"commit",input_method_commit_event,&actx,0,0);" (call_expression "g_signal_connect_data(uVar5,"commit",input_method_commit_event,&actx,0,0)" identifier (argument_list "(uVar5,"commit",input_method_commit_event,&actx,0,0)" ( identifier , (string_literal ""commit"" " string_content ") , identifier , (pointer_expression "&actx" & identifier) , number_literal , number_literal ))) ;) (expression_statement "uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);" (assignment_expression "uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50)" identifier = (call_expression "g_type_check_instance_cast(actx.promptlabel,0x50)" identifier (argument_list "(actx.promptlabel,0x50)" ( (field_expression "actx.promptlabel" identifier . field_identifier) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar5,"key_press_event",key_event,&actx,0,0);" (call_expression "g_signal_connect_data(uVar5,"key_press_event",key_event,&actx,0,0)" identifier (argument_list "(uVar5,"key_press_event",key_event,&actx,0,0)" ( identifier , (string_literal ""key_press_event"" " string_content ") , identifier , (pointer_expression "&actx" & identifier) , number_literal , number_literal ))) ;) (expression_statement "uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50);" (assignment_expression "uVar5 = g_type_check_instance_cast(actx.promptlabel,0x50)" identifier = (call_expression "g_type_check_instance_cast(actx.promptlabel,0x50)" identifier (argument_list "(actx.promptlabel,0x50)" ( (field_expression "actx.promptlabel" identifier . field_identifier) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar5,"key_release_event",key_event,&actx,0,0);" (call_expression "g_signal_connect_data(uVar5,"key_release_event",key_event,&actx,0,0)" identifier (argument_list "(uVar5,"key_release_event",key_event,&actx,0,0)" ( identifier , (string_literal ""key_release_event"" " string_content ") , identifier , (pointer_expression "&actx" & identifier) , number_literal , number_literal ))) ;) (expression_statement "uVar5 = gtk_widget_get_window(actx.dialog);" (assignment_expression "uVar5 = gtk_widget_get_window(actx.dialog)" identifier = (call_expression "gtk_widget_get_window(actx.dialog)" identifier (argument_list "(actx.dialog)" ( (field_expression "actx.dialog" identifier . field_identifier) )))) ;) (expression_statement "gtk_im_context_set_client_window(actx.imc,uVar5);" (call_expression "gtk_im_context_set_client_window(actx.imc,uVar5)" identifier (argument_list "(actx.imc,uVar5)" ( (field_expression "actx.imc" identifier . field_identifier) , identifier ))) ;) (expression_statement "gtk_main();" (call_expression "gtk_main()" identifier (argument_list "()" ( ))) ;) (expression_statement "gdk_seat_ungrab(actx.seat);" (call_expression "gdk_seat_ungrab(actx.seat)" identifier (argument_list "(actx.seat)" ( (field_expression "actx.seat" identifier . field_identifier) ))) ;) (expression_statement "gtk_grab_remove(actx.promptlabel);" (call_expression "gtk_grab_remove(actx.promptlabel)" identifier (argument_list "(actx.promptlabel)" ( (field_expression "actx.promptlabel" identifier . field_identifier) ))) ;) (if_statement "if (actx.passphrase != (char *)0x0) {\n        if (actx.passsize <= actx.passlen) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        actx.passphrase[actx.passlen] = '\0';\n      }" if (parenthesized_expression "(actx.passphrase != (char *)0x0)" ( (binary_expression "actx.passphrase != (char *)0x0" (field_expression "actx.passphrase" identifier . field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (actx.passsize <= actx.passlen) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        actx.passphrase[actx.passlen] = '\0';\n      }" { (if_statement "if (actx.passsize <= actx.passlen) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }" if (parenthesized_expression "(actx.passsize <= actx.passlen)" ( (binary_expression "actx.passsize <= actx.passlen" (field_expression "actx.passsize" identifier . field_identifier) <= (field_expression "actx.passlen" identifier . field_identifier)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }" { comment (expression_statement "__assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");" (call_expression "__assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup")" identifier (argument_list "("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup")" ( (string_literal ""ctx->passlen < ctx->passsize"" " string_content ") , (string_literal ""unix/gtkask.c"" " string_content ") , number_literal , (string_literal ""gtk_askpass_cleanup"" " string_content ") ))) ;) })) (expression_statement "actx.passphrase[actx.passlen] = '\0';" (assignment_expression "actx.passphrase[actx.passlen] = '\0'" (subscript_expression "actx.passphrase[actx.passlen]" (field_expression "actx.passphrase" identifier . field_identifier) [ (field_expression "actx.passlen" identifier . field_identifier) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "gtk_widget_destroy(actx.dialog);" (call_expression "gtk_widget_destroy(actx.dialog)" identifier (argument_list "(actx.dialog)" ( (field_expression "actx.dialog" identifier . field_identifier) ))) ;) (if_statement "if (actx.passphrase == (char *)0x0) {\n        *success = 0;\n        pcVar10 = dupstr("passphrase input cancelled");\n      }\n      else {\n        *success = 1;\n        pcVar10 = actx.passphrase;\n      }" if (parenthesized_expression "(actx.passphrase == (char *)0x0)" ( (binary_expression "actx.passphrase == (char *)0x0" (field_expression "actx.passphrase" identifier . field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *success = 0;\n        pcVar10 = dupstr("passphrase input cancelled");\n      }" { (expression_statement "*success = 0;" (assignment_expression "*success = 0" (pointer_expression "*success" * identifier) = number_literal) ;) (expression_statement "pcVar10 = dupstr("passphrase input cancelled");" (assignment_expression "pcVar10 = dupstr("passphrase input cancelled")" identifier = (call_expression "dupstr("passphrase input cancelled")" identifier (argument_list "("passphrase input cancelled")" ( (string_literal ""passphrase input cancelled"" " string_content ") )))) ;) }) (else_clause "else {\n        *success = 1;\n        pcVar10 = actx.passphrase;\n      }" else (compound_statement "{\n        *success = 1;\n        pcVar10 = actx.passphrase;\n      }" { (expression_statement "*success = 1;" (assignment_expression "*success = 1" (pointer_expression "*success" * identifier) = number_literal) ;) (expression_statement "pcVar10 = actx.passphrase;" (assignment_expression "pcVar10 = actx.passphrase" identifier = (field_expression "actx.passphrase" identifier . field_identifier)) ;) }))) (goto_statement "goto LAB_00130955;" goto statement_identifier ;) })) (expression_statement "usleep(0x1e848);" (call_expression "usleep(0x1e848)" identifier (argument_list "(0x1e848)" ( number_literal ))) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) (expression_statement "*success = 0;" (assignment_expression "*success = 0" (pointer_expression "*success" * identifier) = number_literal) ;) (expression_statement "pcVar10 = dupprintf("%s","unable to grab keyboard");" (assignment_expression "pcVar10 = dupprintf("%s","unable to grab keyboard")" identifier = (call_expression "dupprintf("%s","unable to grab keyboard")" identifier (argument_list "("%s","unable to grab keyboard")" ( (string_literal ""%s"" " string_content ") , (string_literal ""unable to grab keyboard"" " string_content ") )))) ;) (labeled_statement "LAB_00130955:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar1 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return pcVar10;" return identifier ;) })))
(translation_unit "void FUN_0013063d(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined8 *puVar7;\n  long in_FS_OFFSET;\n  int local_d4;\n  undefined8 *local_d0;\n  undefined8 local_c8;\n  undefined8 local_c0;\n  int local_b8 [4];\n  undefined4 local_a8 [14];\n  int local_70 [2];\n  undefined8 local_68;\n  long local_60;\n  int local_58;\n  int local_54;\n  undefined8 local_50;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_d0 = &local_c8;\n  if (DAT_00152440 == 0) {\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }\n  local_58 = 0;\n  local_54 = 0x800;\n  local_60 = FUN_0010bc67(0x800,1);\n  uVar2 = FUN_00130ca2();\n  local_c8 = uVar2;\n  uVar3 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar3);\n  gtk_window_set_title(uVar2,param_2);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_position(uVar2,1);\n  uVar2 = gtk_label_new(param_3);\n  local_c0 = uVar2;\n  uVar4 = gtk_label_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar4);\n  FUN_00130c90(uVar2);\n  gtk_widget_show(local_c0);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_line_wrap(uVar2,1);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_width_chars(uVar2,0x30);\n  uVar2 = local_c0;\n  uVar4 = g_type_check_instance_cast(local_c8,uVar3);\n  FUN_00130e42(uVar4,uVar2,1,1,0);\n  local_68 = gtk_im_multicontext_new();\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  uVar2 = FUN_00130da7(uVar2);\n  piVar6 = local_b8;\n  do {\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  } while (piVar6 != local_70);\n  local_70[0] = rand();\n  local_70[0] = local_70[0] % 3;\n  local_a8[(long)local_70[0] * 6] = 1;\n  gtk_widget_set_sensitive(local_c0,1);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_keep_above(uVar2,1);\n  gtk_widget_show_now(local_c8);\n  gtk_grab_add(local_c0);\n  iVar5 = 0x28;\n  do {\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  *param_4 = 0;\n  FUN_0010c2a6("%s","unable to grab keyboard");\nLAB_00130955:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0013063d(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined8 *puVar7;\n  long in_FS_OFFSET;\n  int local_d4;\n  undefined8 *local_d0;\n  undefined8 local_c8;\n  undefined8 local_c0;\n  int local_b8 [4];\n  undefined4 local_a8 [14];\n  int local_70 [2];\n  undefined8 local_68;\n  long local_60;\n  int local_58;\n  int local_54;\n  undefined8 local_50;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_d0 = &local_c8;\n  if (DAT_00152440 == 0) {\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }\n  local_58 = 0;\n  local_54 = 0x800;\n  local_60 = FUN_0010bc67(0x800,1);\n  uVar2 = FUN_00130ca2();\n  local_c8 = uVar2;\n  uVar3 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar3);\n  gtk_window_set_title(uVar2,param_2);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_position(uVar2,1);\n  uVar2 = gtk_label_new(param_3);\n  local_c0 = uVar2;\n  uVar4 = gtk_label_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar4);\n  FUN_00130c90(uVar2);\n  gtk_widget_show(local_c0);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_line_wrap(uVar2,1);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_width_chars(uVar2,0x30);\n  uVar2 = local_c0;\n  uVar4 = g_type_check_instance_cast(local_c8,uVar3);\n  FUN_00130e42(uVar4,uVar2,1,1,0);\n  local_68 = gtk_im_multicontext_new();\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  uVar2 = FUN_00130da7(uVar2);\n  piVar6 = local_b8;\n  do {\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  } while (piVar6 != local_70);\n  local_70[0] = rand();\n  local_70[0] = local_70[0] % 3;\n  local_a8[(long)local_70[0] * 6] = 1;\n  gtk_widget_set_sensitive(local_c0,1);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_keep_above(uVar2,1);\n  gtk_widget_show_now(local_c8);\n  gtk_grab_add(local_c0);\n  iVar5 = 0x28;\n  do {\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  *param_4 = 0;\n  FUN_0010c2a6("%s","unable to grab keyboard");\nLAB_00130955:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0013063d(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined8 *puVar7;\n  long in_FS_OFFSET;\n  int local_d4;\n  undefined8 *local_d0;\n  undefined8 local_c8;\n  undefined8 local_c0;\n  int local_b8 [4];\n  undefined4 local_a8 [14];\n  int local_70 [2];\n  undefined8 local_68;\n  long local_60;\n  int local_58;\n  int local_54;\n  undefined8 local_50;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_d0 = &local_c8;\n  if (DAT_00152440 == 0) {\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }\n  local_58 = 0;\n  local_54 = 0x800;\n  local_60 = FUN_0010bc67(0x800,1);\n  uVar2 = FUN_00130ca2();\n  local_c8 = uVar2;\n  uVar3 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar3);\n  gtk_window_set_title(uVar2,param_2);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_position(uVar2,1);\n  uVar2 = gtk_label_new(param_3);\n  local_c0 = uVar2;\n  uVar4 = gtk_label_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar4);\n  FUN_00130c90(uVar2);\n  gtk_widget_show(local_c0);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_line_wrap(uVar2,1);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_width_chars(uVar2,0x30);\n  uVar2 = local_c0;\n  uVar4 = g_type_check_instance_cast(local_c8,uVar3);\n  FUN_00130e42(uVar4,uVar2,1,1,0);\n  local_68 = gtk_im_multicontext_new();\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  uVar2 = FUN_00130da7(uVar2);\n  piVar6 = local_b8;\n  do {\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  } while (piVar6 != local_70);\n  local_70[0] = rand();\n  local_70[0] = local_70[0] % 3;\n  local_a8[(long)local_70[0] * 6] = 1;\n  gtk_widget_set_sensitive(local_c0,1);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_keep_above(uVar2,1);\n  gtk_widget_show_now(local_c8);\n  gtk_grab_add(local_c0);\n  iVar5 = 0x28;\n  do {\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  *param_4 = 0;\n  FUN_0010c2a6("%s","unable to grab keyboard");\nLAB_00130955:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_d4;" primitive_type identifier ;) (declaration "undefined8 *local_d0;" type_identifier (pointer_declarator "*local_d0" * identifier) ;) (declaration "undefined8 local_c8;" type_identifier identifier ;) (declaration "undefined8 local_c0;" type_identifier identifier ;) (declaration "int local_b8 [4];" primitive_type (array_declarator "local_b8 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_a8 [14];" type_identifier (array_declarator "local_a8 [14]" identifier [ number_literal ]) ;) (declaration "int local_70 [2];" primitive_type (array_declarator "local_70 [2]" identifier [ number_literal ]) ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "long local_60;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_58;" primitive_type identifier ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "undefined8 local_50;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_d0 = &local_c8;" (assignment_expression "local_d0 = &local_c8" identifier = (pointer_expression "&local_c8" & identifier)) ;) (if_statement "if (DAT_00152440 == 0) {\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }" if (parenthesized_expression "(DAT_00152440 == 0)" ( (binary_expression "DAT_00152440 == 0" identifier == number_literal) )) (compound_statement "{\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }" { (expression_statement "local_d4 = 1;" (assignment_expression "local_d4 = 1" identifier = number_literal) ;) (expression_statement "local_c8 = FUN_0010bd5d("dummy");" (assignment_expression "local_c8 = FUN_0010bd5d("dummy")" identifier = (call_expression "FUN_0010bd5d("dummy")" identifier (argument_list "("dummy")" ( (string_literal ""dummy"" " string_content ") )))) ;) (expression_statement "puVar7 = local_d0 + local_d4;" (assignment_expression "puVar7 = local_d0 + local_d4" identifier = (binary_expression "local_d0 + local_d4" identifier + identifier)) ;) (expression_statement "local_d4 = local_d4 + 1;" (assignment_expression "local_d4 = local_d4 + 1" identifier = (binary_expression "local_d4 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = FUN_0010c2a6("--display=%s",param_1);" (assignment_expression "uVar2 = FUN_0010c2a6("--display=%s",param_1)" identifier = (call_expression "FUN_0010c2a6("--display=%s",param_1)" identifier (argument_list "("--display=%s",param_1)" ( (string_literal ""--display=%s"" " string_content ") , identifier )))) ;) (expression_statement "*puVar7 = uVar2;" (assignment_expression "*puVar7 = uVar2" (pointer_expression "*puVar7" * identifier) = identifier) ;) (expression_statement "local_d0[local_d4] = 0;" (assignment_expression "local_d0[local_d4] = 0" (subscript_expression "local_d0[local_d4]" identifier [ identifier ]) = number_literal) ;) (expression_statement "iVar5 = gtk_init_check(&local_d4,&local_d0);" (assignment_expression "iVar5 = gtk_init_check(&local_d4,&local_d0)" identifier = (call_expression "gtk_init_check(&local_d4,&local_d0)" identifier (argument_list "(&local_d4,&local_d0)" ( (pointer_expression "&local_d4" & identifier) , (pointer_expression "&local_d0" & identifier) )))) ;) (while_statement "while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }" while (parenthesized_expression "(0 < local_d4)" ( (binary_expression "0 < local_d4" number_literal < identifier) )) (compound_statement "{\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }" { (expression_statement "local_d4 = local_d4 + -1;" (assignment_expression "local_d4 = local_d4 + -1" identifier = (binary_expression "local_d4 + -1" identifier + number_literal)) ;) (expression_statement "FUN_0010c4d3(local_d0[local_d4]);" (call_expression "FUN_0010c4d3(local_d0[local_d4])" identifier (argument_list "(local_d0[local_d4])" ( (subscript_expression "local_d0[local_d4]" identifier [ identifier ]) ))) ;) })) (expression_statement "DAT_00152440 = iVar5;" (assignment_expression "DAT_00152440 = iVar5" identifier = identifier) ;) (if_statement "if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "FUN_0010bd5d("unable to initialise GTK");" (call_expression "FUN_0010bd5d("unable to initialise GTK")" identifier (argument_list "("unable to initialise GTK")" ( (string_literal ""unable to initialise GTK"" " string_content ") ))) ;) (goto_statement "goto LAB_00130955;" goto statement_identifier ;) })) })) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "local_54 = 0x800;" (assignment_expression "local_54 = 0x800" identifier = number_literal) ;) (expression_statement "local_60 = FUN_0010bc67(0x800,1);" (assignment_expression "local_60 = FUN_0010bc67(0x800,1)" identifier = (call_expression "FUN_0010bc67(0x800,1)" identifier (argument_list "(0x800,1)" ( number_literal , number_literal )))) ;) (expression_statement "uVar2 = FUN_00130ca2();" (assignment_expression "uVar2 = FUN_00130ca2()" identifier = (call_expression "FUN_00130ca2()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_c8 = uVar2;" (assignment_expression "local_c8 = uVar2" identifier = identifier) ;) (expression_statement "uVar3 = gtk_window_get_type();" (assignment_expression "uVar3 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(uVar2,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(uVar2,uVar3)" identifier = (call_expression "g_type_check_instance_cast(uVar2,uVar3)" identifier (argument_list "(uVar2,uVar3)" ( identifier , identifier )))) ;) (expression_statement "gtk_window_set_title(uVar2,param_2);" (call_expression "gtk_window_set_title(uVar2,param_2)" identifier (argument_list "(uVar2,param_2)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c8,uVar3)" identifier = (call_expression "g_type_check_instance_cast(local_c8,uVar3)" identifier (argument_list "(local_c8,uVar3)" ( identifier , identifier )))) ;) (expression_statement "gtk_window_set_position(uVar2,1);" (call_expression "gtk_window_set_position(uVar2,1)" identifier (argument_list "(uVar2,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gtk_label_new(param_3);" (assignment_expression "uVar2 = gtk_label_new(param_3)" identifier = (call_expression "gtk_label_new(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "local_c0 = uVar2;" (assignment_expression "local_c0 = uVar2" identifier = identifier) ;) (expression_statement "uVar4 = gtk_label_get_type();" (assignment_expression "uVar4 = gtk_label_get_type()" identifier = (call_expression "gtk_label_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(uVar2,uVar4);" (assignment_expression "uVar2 = g_type_check_instance_cast(uVar2,uVar4)" identifier = (call_expression "g_type_check_instance_cast(uVar2,uVar4)" identifier (argument_list "(uVar2,uVar4)" ( identifier , identifier )))) ;) (expression_statement "FUN_00130c90(uVar2);" (call_expression "FUN_00130c90(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "gtk_widget_show(local_c0);" (call_expression "gtk_widget_show(local_c0)" identifier (argument_list "(local_c0)" ( identifier ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,uVar4);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,uVar4)" identifier = (call_expression "g_type_check_instance_cast(local_c0,uVar4)" identifier (argument_list "(local_c0,uVar4)" ( identifier , identifier )))) ;) (expression_statement "gtk_label_set_line_wrap(uVar2,1);" (call_expression "gtk_label_set_line_wrap(uVar2,1)" identifier (argument_list "(uVar2,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,uVar4);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,uVar4)" identifier = (call_expression "g_type_check_instance_cast(local_c0,uVar4)" identifier (argument_list "(local_c0,uVar4)" ( identifier , identifier )))) ;) (expression_statement "gtk_label_set_width_chars(uVar2,0x30);" (call_expression "gtk_label_set_width_chars(uVar2,0x30)" identifier (argument_list "(uVar2,0x30)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = local_c0;" (assignment_expression "uVar2 = local_c0" identifier = identifier) ;) (expression_statement "uVar4 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar4 = g_type_check_instance_cast(local_c8,uVar3)" identifier = (call_expression "g_type_check_instance_cast(local_c8,uVar3)" identifier (argument_list "(local_c8,uVar3)" ( identifier , identifier )))) ;) (expression_statement "FUN_00130e42(uVar4,uVar2,1,1,0);" (call_expression "FUN_00130e42(uVar4,uVar2,1,1,0)" identifier (argument_list "(uVar4,uVar2,1,1,0)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "local_68 = gtk_im_multicontext_new();" (assignment_expression "local_68 = gtk_im_multicontext_new()" identifier = (call_expression "gtk_im_multicontext_new()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c8,uVar3)" identifier = (call_expression "g_type_check_instance_cast(local_c8,uVar3)" identifier (argument_list "(local_c8,uVar3)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = FUN_00130da7(uVar2);" (assignment_expression "uVar2 = FUN_00130da7(uVar2)" identifier = (call_expression "FUN_00130da7(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "piVar6 = local_b8;" (assignment_expression "piVar6 = local_b8" identifier = identifier) ;) (do_statement "do {\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  } while (piVar6 != local_70);" do (compound_statement "{\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  }" { (expression_statement "uVar4 = gtk_drawing_area_new();" (assignment_expression "uVar4 = gtk_drawing_area_new()" identifier = (call_expression "gtk_drawing_area_new()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined8 *)piVar6 = uVar4;" (assignment_expression "*(undefined8 *)piVar6 = uVar4" (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "piVar6[4] = 0;" (assignment_expression "piVar6[4] = 0" (subscript_expression "piVar6[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[3] = 0;" (assignment_expression "piVar6[3] = 0" (subscript_expression "piVar6[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[2] = 0;" (assignment_expression "piVar6[2] = 0" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "gtk_widget_set_size_request(uVar4,0x20,0x20);" (call_expression "gtk_widget_set_size_request(uVar4,0x20,0x20)" identifier (argument_list "(uVar4,0x20,0x20)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);" (call_expression "gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5)" identifier (argument_list "(uVar2,*(undefined8 *)piVar6,1,1,5)" ( identifier , (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , number_literal , number_literal ))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier (argument_list "(*(undefined8 *)piVar6,0x50)" ( (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);" (call_expression "g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0)" identifier (argument_list "(uVar4,"configure_event",FUN_001304d1,piVar6,0,0)" ( identifier , (string_literal ""configure_event"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier (argument_list "(*(undefined8 *)piVar6,0x50)" ( (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);" (call_expression "g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0)" identifier (argument_list "(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0)" ( identifier , (pointer_expression "&DAT_00142a9f" & identifier) , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" identifier (argument_list "(*(undefined8 *)piVar6,0x50)" ( (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal )))) ;) (expression_statement "g_object_set(uVar4,"margin-bottom",8,0);" (call_expression "g_object_set(uVar4,"margin-bottom",8,0)" identifier (argument_list "(uVar4,"margin-bottom",8,0)" ( identifier , (string_literal ""margin-bottom"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "gtk_widget_show(*(undefined8 *)piVar6);" (call_expression "gtk_widget_show(*(undefined8 *)piVar6)" identifier (argument_list "(*(undefined8 *)piVar6)" ( (pointer_expression "*(undefined8 *)piVar6" * (cast_expression "(undefined8 *)piVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "piVar6 = piVar6 + 6;" (assignment_expression "piVar6 = piVar6 + 6" identifier = (binary_expression "piVar6 + 6" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar6 != local_70)" ( (binary_expression "piVar6 != local_70" identifier != identifier) )) ;) (expression_statement "local_70[0] = rand();" (assignment_expression "local_70[0] = rand()" (subscript_expression "local_70[0]" identifier [ number_literal ]) = (call_expression "rand()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_70[0] = local_70[0] % 3;" (assignment_expression "local_70[0] = local_70[0] % 3" (subscript_expression "local_70[0]" identifier [ number_literal ]) = (binary_expression "local_70[0] % 3" (subscript_expression "local_70[0]" identifier [ number_literal ]) % number_literal)) ;) (expression_statement "local_a8[(long)local_70[0] * 6] = 1;" (assignment_expression "local_a8[(long)local_70[0] * 6] = 1" (subscript_expression "local_a8[(long)local_70[0] * 6]" identifier [ (binary_expression "(long)local_70[0] * 6" (cast_expression "(long)local_70[0]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "local_70[0]" identifier [ number_literal ])) * number_literal) ]) = number_literal) ;) (expression_statement "gtk_widget_set_sensitive(local_c0,1);" (call_expression "gtk_widget_set_sensitive(local_c0,1)" identifier (argument_list "(local_c0,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c8,uVar3)" identifier = (call_expression "g_type_check_instance_cast(local_c8,uVar3)" identifier (argument_list "(local_c8,uVar3)" ( identifier , identifier )))) ;) (expression_statement "gtk_window_set_keep_above(uVar2,1);" (call_expression "gtk_window_set_keep_above(uVar2,1)" identifier (argument_list "(uVar2,1)" ( identifier , number_literal ))) ;) (expression_statement "gtk_widget_show_now(local_c8);" (call_expression "gtk_widget_show_now(local_c8)" identifier (argument_list "(local_c8)" ( identifier ))) ;) (expression_statement "gtk_grab_add(local_c0);" (call_expression "gtk_grab_add(local_c0)" identifier (argument_list "(local_c0)" ( identifier ))) ;) (expression_statement "iVar5 = 0x28;" (assignment_expression "iVar5 = 0x28" identifier = number_literal) ;) (do_statement "do {\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);" do (compound_statement "{\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  }" { (expression_statement "iVar1 = FUN_0013059f(&local_c8);" (assignment_expression "iVar1 = FUN_0013059f(&local_c8)" identifier = (call_expression "FUN_0013059f(&local_c8)" identifier (argument_list "(&local_c8)" ( (pointer_expression "&local_c8" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }" { (expression_statement "uVar2 = g_type_check_instance_cast(local_68,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_68,0x50)" identifier = (call_expression "g_type_check_instance_cast(local_68,0x50)" identifier (argument_list "(local_68,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);" (call_expression "g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0)" identifier (argument_list "(uVar2,"commit",FUN_001304f0,&local_c8,0,0)" ( identifier , (string_literal ""commit"" " string_content ") , identifier , (pointer_expression "&local_c8" & identifier) , number_literal , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,0x50)" identifier = (call_expression "g_type_check_instance_cast(local_c0,0x50)" identifier (argument_list "(local_c0,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);" (call_expression "g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0)" identifier (argument_list "(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0)" ( identifier , (string_literal ""key_press_event"" " string_content ") , identifier , (pointer_expression "&local_c8" & identifier) , number_literal , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,0x50)" identifier = (call_expression "g_type_check_instance_cast(local_c0,0x50)" identifier (argument_list "(local_c0,0x50)" ( identifier , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);" (call_expression "g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0)" identifier (argument_list "(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0)" ( identifier , (string_literal ""key_release_event"" " string_content ") , identifier , (pointer_expression "&local_c8" & identifier) , number_literal , number_literal ))) ;) (expression_statement "uVar2 = gtk_widget_get_window(local_c8);" (assignment_expression "uVar2 = gtk_widget_get_window(local_c8)" identifier = (call_expression "gtk_widget_get_window(local_c8)" identifier (argument_list "(local_c8)" ( identifier )))) ;) (expression_statement "gtk_im_context_set_client_window(local_68,uVar2);" (call_expression "gtk_im_context_set_client_window(local_68,uVar2)" identifier (argument_list "(local_68,uVar2)" ( identifier , identifier ))) ;) (expression_statement "gtk_main();" (call_expression "gtk_main()" identifier (argument_list "()" ( ))) ;) (expression_statement "gdk_seat_ungrab(local_50);" (call_expression "gdk_seat_ungrab(local_50)" identifier (argument_list "(local_50)" ( identifier ))) ;) (expression_statement "gtk_grab_remove(local_c0);" (call_expression "gtk_grab_remove(local_c0)" identifier (argument_list "(local_c0)" ( identifier ))) ;) (if_statement "if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }" if (parenthesized_expression "(local_60 != 0)" ( (binary_expression "local_60 != 0" identifier != number_literal) )) (compound_statement "{\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }" { (if_statement "if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }" if (parenthesized_expression "(local_54 <= local_58)" ( (binary_expression "local_54 <= local_58" identifier <= identifier) )) (compound_statement "{\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }" { (expression_statement "__assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");" (call_expression "__assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup")" identifier (argument_list "("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup")" ( (string_literal ""ctx->passlen < ctx->passsize"" " string_content ") , (string_literal ""unix/gtkask.c"" " string_content ") , number_literal , (string_literal ""gtk_askpass_cleanup"" " string_content ") ))) ;) })) (expression_statement "*(undefined1 *)(local_60 + local_58) = 0;" (assignment_expression "*(undefined1 *)(local_60 + local_58) = 0" (pointer_expression "*(undefined1 *)(local_60 + local_58)" * (cast_expression "(undefined1 *)(local_60 + local_58)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_60 + local_58)" ( (binary_expression "local_60 + local_58" identifier + identifier) )))) = number_literal) ;) })) (expression_statement "gtk_widget_destroy(local_c8);" (call_expression "gtk_widget_destroy(local_c8)" identifier (argument_list "(local_c8)" ( identifier ))) ;) (if_statement "if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }" if (parenthesized_expression "(local_60 == 0)" ( (binary_expression "local_60 == 0" identifier == number_literal) )) (compound_statement "{\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "FUN_0010bd5d("passphrase input cancelled");" (call_expression "FUN_0010bd5d("passphrase input cancelled")" identifier (argument_list "("passphrase input cancelled")" ( (string_literal ""passphrase input cancelled"" " string_content ") ))) ;) }) (else_clause "else {\n        *param_4 = 1;\n      }" else (compound_statement "{\n        *param_4 = 1;\n      }" { (expression_statement "*param_4 = 1;" (assignment_expression "*param_4 = 1" (pointer_expression "*param_4" * identifier) = number_literal) ;) }))) (goto_statement "goto LAB_00130955;" goto statement_identifier ;) })) (expression_statement "usleep(0x1e848);" (call_expression "usleep(0x1e848)" identifier (argument_list "(0x1e848)" ( number_literal ))) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "FUN_0010c2a6("%s","unable to grab keyboard");" (call_expression "FUN_0010c2a6("%s","unable to grab keyboard")" identifier (argument_list "("%s","unable to grab keyboard")" ( (string_literal ""%s"" " string_content ") , (string_literal ""unable to grab keyboard"" " string_content ") ))) ;) (labeled_statement "LAB_00130955:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (while_statement while (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ IDENT ]) ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) % LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (subscript_expression IDENT [ LIT ])) * LIT) ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , (pointer_expression & IDENT) , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , (pointer_expression & IDENT) , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , (pointer_expression & IDENT) , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_0013063d(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined8 *puVar7;\n  long in_FS_OFFSET;\n  int local_d4;\n  undefined8 *local_d0;\n  undefined8 local_c8;\n  undefined8 local_c0;\n  int local_b8 [4];\n  undefined4 local_a8 [14];\n  int local_70 [2];\n  undefined8 local_68;\n  long local_60;\n  int local_58;\n  int local_54;\n  undefined8 local_50;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_d0 = &local_c8;\n  if (DAT_00152440 == 0) {\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }\n  local_58 = 0;\n  local_54 = 0x800;\n  local_60 = FUN_0010bc67(0x800,1);\n  uVar2 = FUN_00130ca2();\n  local_c8 = uVar2;\n  uVar3 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar3);\n  gtk_window_set_title(uVar2,param_2);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_position(uVar2,1);\n  uVar2 = gtk_label_new(param_3);\n  local_c0 = uVar2;\n  uVar4 = gtk_label_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar4);\n  FUN_00130c90(uVar2);\n  gtk_widget_show(local_c0);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_line_wrap(uVar2,1);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_width_chars(uVar2,0x30);\n  uVar2 = local_c0;\n  uVar4 = g_type_check_instance_cast(local_c8,uVar3);\n  FUN_00130e42(uVar4,uVar2,1,1,0);\n  local_68 = gtk_im_multicontext_new();\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  uVar2 = FUN_00130da7(uVar2);\n  piVar6 = local_b8;\n  do {\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  } while (piVar6 != local_70);\n  local_70[0] = rand();\n  local_70[0] = local_70[0] % 3;\n  local_a8[(long)local_70[0] * 6] = 1;\n  gtk_widget_set_sensitive(local_c0,1);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_keep_above(uVar2,1);\n  gtk_widget_show_now(local_c8);\n  gtk_grab_add(local_c0);\n  iVar5 = 0x28;\n  do {\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  *param_4 = 0;\n  FUN_0010c2a6("%s","unable to grab keyboard");\nLAB_00130955:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0013063d(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)" (identifier "FUN_0013063d") (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined8 *puVar7;\n  long in_FS_OFFSET;\n  int local_d4;\n  undefined8 *local_d0;\n  undefined8 local_c8;\n  undefined8 local_c0;\n  int local_b8 [4];\n  undefined4 local_a8 [14];\n  int local_70 [2];\n  undefined8 local_68;\n  long local_60;\n  int local_58;\n  int local_54;\n  undefined8 local_50;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_d0 = &local_c8;\n  if (DAT_00152440 == 0) {\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }\n  local_58 = 0;\n  local_54 = 0x800;\n  local_60 = FUN_0010bc67(0x800,1);\n  uVar2 = FUN_00130ca2();\n  local_c8 = uVar2;\n  uVar3 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar3);\n  gtk_window_set_title(uVar2,param_2);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_position(uVar2,1);\n  uVar2 = gtk_label_new(param_3);\n  local_c0 = uVar2;\n  uVar4 = gtk_label_get_type();\n  uVar2 = g_type_check_instance_cast(uVar2,uVar4);\n  FUN_00130c90(uVar2);\n  gtk_widget_show(local_c0);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_line_wrap(uVar2,1);\n  uVar2 = g_type_check_instance_cast(local_c0,uVar4);\n  gtk_label_set_width_chars(uVar2,0x30);\n  uVar2 = local_c0;\n  uVar4 = g_type_check_instance_cast(local_c8,uVar3);\n  FUN_00130e42(uVar4,uVar2,1,1,0);\n  local_68 = gtk_im_multicontext_new();\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  uVar2 = FUN_00130da7(uVar2);\n  piVar6 = local_b8;\n  do {\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  } while (piVar6 != local_70);\n  local_70[0] = rand();\n  local_70[0] = local_70[0] % 3;\n  local_a8[(long)local_70[0] * 6] = 1;\n  gtk_widget_set_sensitive(local_c0,1);\n  uVar2 = g_type_check_instance_cast(local_c8,uVar3);\n  gtk_window_set_keep_above(uVar2,1);\n  gtk_widget_show_now(local_c8);\n  gtk_grab_add(local_c0);\n  iVar5 = 0x28;\n  do {\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  *param_4 = 0;\n  FUN_0010c2a6("%s","unable to grab keyboard");\nLAB_00130955:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "undefined8 *puVar7;" (type_identifier "undefined8") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "int local_d4;" (primitive_type "int") (identifier "local_d4") (; ";")) (declaration "undefined8 *local_d0;" (type_identifier "undefined8") (pointer_declarator "*local_d0" (* "*") (identifier "local_d0")) (; ";")) (declaration "undefined8 local_c8;" (type_identifier "undefined8") (identifier "local_c8") (; ";")) (declaration "undefined8 local_c0;" (type_identifier "undefined8") (identifier "local_c0") (; ";")) (declaration "int local_b8 [4];" (primitive_type "int") (array_declarator "local_b8 [4]" (identifier "local_b8") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 local_a8 [14];" (type_identifier "undefined4") (array_declarator "local_a8 [14]" (identifier "local_a8") ([ "[") (number_literal "14") (] "]")) (; ";")) (declaration "int local_70 [2];" (primitive_type "int") (array_declarator "local_70 [2]" (identifier "local_70") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined8 local_68;" (type_identifier "undefined8") (identifier "local_68") (; ";")) (declaration "long local_60;" (sized_type_specifier "long" (long "long")) (identifier "local_60") (; ";")) (declaration "int local_58;" (primitive_type "int") (identifier "local_58") (; ";")) (declaration "int local_54;" (primitive_type "int") (identifier "local_54") (; ";")) (declaration "undefined8 local_50;" (type_identifier "undefined8") (identifier "local_50") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_d0 = &local_c8;" (assignment_expression "local_d0 = &local_c8" (identifier "local_d0") (= "=") (pointer_expression "&local_c8" (& "&") (identifier "local_c8"))) (; ";")) (if_statement "if (DAT_00152440 == 0) {\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }" (if "if") (parenthesized_expression "(DAT_00152440 == 0)" (( "(") (binary_expression "DAT_00152440 == 0" (identifier "DAT_00152440") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_d4 = 1;\n    local_c8 = FUN_0010bd5d("dummy");\n    puVar7 = local_d0 + local_d4;\n    local_d4 = local_d4 + 1;\n    uVar2 = FUN_0010c2a6("--display=%s",param_1);\n    *puVar7 = uVar2;\n    local_d0[local_d4] = 0;\n    iVar5 = gtk_init_check(&local_d4,&local_d0);\n    while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }\n    DAT_00152440 = iVar5;\n    if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }\n  }" ({ "{") (expression_statement "local_d4 = 1;" (assignment_expression "local_d4 = 1" (identifier "local_d4") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_c8 = FUN_0010bd5d("dummy");" (assignment_expression "local_c8 = FUN_0010bd5d("dummy")" (identifier "local_c8") (= "=") (call_expression "FUN_0010bd5d("dummy")" (identifier "FUN_0010bd5d") (argument_list "("dummy")" (( "(") (string_literal ""dummy"" (" """) (string_content "dummy") (" """)) () ")")))) (; ";")) (expression_statement "puVar7 = local_d0 + local_d4;" (assignment_expression "puVar7 = local_d0 + local_d4" (identifier "puVar7") (= "=") (binary_expression "local_d0 + local_d4" (identifier "local_d0") (+ "+") (identifier "local_d4"))) (; ";")) (expression_statement "local_d4 = local_d4 + 1;" (assignment_expression "local_d4 = local_d4 + 1" (identifier "local_d4") (= "=") (binary_expression "local_d4 + 1" (identifier "local_d4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = FUN_0010c2a6("--display=%s",param_1);" (assignment_expression "uVar2 = FUN_0010c2a6("--display=%s",param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_0010c2a6("--display=%s",param_1)" (identifier "FUN_0010c2a6") (argument_list "("--display=%s",param_1)" (( "(") (string_literal ""--display=%s"" (" """) (string_content "--display=%s") (" """)) (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*puVar7 = uVar2;" (assignment_expression "*puVar7 = uVar2" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "local_d0[local_d4] = 0;" (assignment_expression "local_d0[local_d4] = 0" (subscript_expression "local_d0[local_d4]" (identifier "local_d0") ([ "[") (identifier "local_d4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = gtk_init_check(&local_d4,&local_d0);" (assignment_expression "iVar5 = gtk_init_check(&local_d4,&local_d0)" (identifier "iVar5") (= "=") (call_expression "gtk_init_check(&local_d4,&local_d0)" (identifier "gtk_init_check") (argument_list "(&local_d4,&local_d0)" (( "(") (pointer_expression "&local_d4" (& "&") (identifier "local_d4")) (, ",") (pointer_expression "&local_d0" (& "&") (identifier "local_d0")) () ")")))) (; ";")) (while_statement "while (0 < local_d4) {\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }" (while "while") (parenthesized_expression "(0 < local_d4)" (( "(") (binary_expression "0 < local_d4" (number_literal "0") (< "<") (identifier "local_d4")) () ")")) (compound_statement "{\n      local_d4 = local_d4 + -1;\n      FUN_0010c4d3(local_d0[local_d4]);\n    }" ({ "{") (expression_statement "local_d4 = local_d4 + -1;" (assignment_expression "local_d4 = local_d4 + -1" (identifier "local_d4") (= "=") (binary_expression "local_d4 + -1" (identifier "local_d4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "FUN_0010c4d3(local_d0[local_d4]);" (call_expression "FUN_0010c4d3(local_d0[local_d4])" (identifier "FUN_0010c4d3") (argument_list "(local_d0[local_d4])" (( "(") (subscript_expression "local_d0[local_d4]" (identifier "local_d0") ([ "[") (identifier "local_d4") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_00152440 = iVar5;" (assignment_expression "DAT_00152440 = iVar5" (identifier "DAT_00152440") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (iVar5 == 0) {\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *param_4 = 0;\n      FUN_0010bd5d("unable to initialise GTK");\n      goto LAB_00130955;\n    }" ({ "{") (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0010bd5d("unable to initialise GTK");" (call_expression "FUN_0010bd5d("unable to initialise GTK")" (identifier "FUN_0010bd5d") (argument_list "("unable to initialise GTK")" (( "(") (string_literal ""unable to initialise GTK"" (" """) (string_content "unable to initialise GTK") (" """)) () ")"))) (; ";")) (goto_statement "goto LAB_00130955;" (goto "goto") (statement_identifier "LAB_00130955") (; ";")) (} "}"))) (} "}"))) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" (identifier "local_58") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_54 = 0x800;" (assignment_expression "local_54 = 0x800" (identifier "local_54") (= "=") (number_literal "0x800")) (; ";")) (expression_statement "local_60 = FUN_0010bc67(0x800,1);" (assignment_expression "local_60 = FUN_0010bc67(0x800,1)" (identifier "local_60") (= "=") (call_expression "FUN_0010bc67(0x800,1)" (identifier "FUN_0010bc67") (argument_list "(0x800,1)" (( "(") (number_literal "0x800") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "uVar2 = FUN_00130ca2();" (assignment_expression "uVar2 = FUN_00130ca2()" (identifier "uVar2") (= "=") (call_expression "FUN_00130ca2()" (identifier "FUN_00130ca2") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_c8 = uVar2;" (assignment_expression "local_c8 = uVar2" (identifier "local_c8") (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar3 = gtk_window_get_type();" (assignment_expression "uVar3 = gtk_window_get_type()" (identifier "uVar3") (= "=") (call_expression "gtk_window_get_type()" (identifier "gtk_window_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(uVar2,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(uVar2,uVar3)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(uVar2,uVar3)" (identifier "g_type_check_instance_cast") (argument_list "(uVar2,uVar3)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "gtk_window_set_title(uVar2,param_2);" (call_expression "gtk_window_set_title(uVar2,param_2)" (identifier "gtk_window_set_title") (argument_list "(uVar2,param_2)" (( "(") (identifier "uVar2") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c8,uVar3)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(local_c8,uVar3)" (identifier "g_type_check_instance_cast") (argument_list "(local_c8,uVar3)" (( "(") (identifier "local_c8") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "gtk_window_set_position(uVar2,1);" (call_expression "gtk_window_set_position(uVar2,1)" (identifier "gtk_window_set_position") (argument_list "(uVar2,1)" (( "(") (identifier "uVar2") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "uVar2 = gtk_label_new(param_3);" (assignment_expression "uVar2 = gtk_label_new(param_3)" (identifier "uVar2") (= "=") (call_expression "gtk_label_new(param_3)" (identifier "gtk_label_new") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "local_c0 = uVar2;" (assignment_expression "local_c0 = uVar2" (identifier "local_c0") (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar4 = gtk_label_get_type();" (assignment_expression "uVar4 = gtk_label_get_type()" (identifier "uVar4") (= "=") (call_expression "gtk_label_get_type()" (identifier "gtk_label_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(uVar2,uVar4);" (assignment_expression "uVar2 = g_type_check_instance_cast(uVar2,uVar4)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(uVar2,uVar4)" (identifier "g_type_check_instance_cast") (argument_list "(uVar2,uVar4)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "FUN_00130c90(uVar2);" (call_expression "FUN_00130c90(uVar2)" (identifier "FUN_00130c90") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "gtk_widget_show(local_c0);" (call_expression "gtk_widget_show(local_c0)" (identifier "gtk_widget_show") (argument_list "(local_c0)" (( "(") (identifier "local_c0") () ")"))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,uVar4);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,uVar4)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(local_c0,uVar4)" (identifier "g_type_check_instance_cast") (argument_list "(local_c0,uVar4)" (( "(") (identifier "local_c0") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "gtk_label_set_line_wrap(uVar2,1);" (call_expression "gtk_label_set_line_wrap(uVar2,1)" (identifier "gtk_label_set_line_wrap") (argument_list "(uVar2,1)" (( "(") (identifier "uVar2") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,uVar4);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,uVar4)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(local_c0,uVar4)" (identifier "g_type_check_instance_cast") (argument_list "(local_c0,uVar4)" (( "(") (identifier "local_c0") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "gtk_label_set_width_chars(uVar2,0x30);" (call_expression "gtk_label_set_width_chars(uVar2,0x30)" (identifier "gtk_label_set_width_chars") (argument_list "(uVar2,0x30)" (( "(") (identifier "uVar2") (, ",") (number_literal "0x30") () ")"))) (; ";")) (expression_statement "uVar2 = local_c0;" (assignment_expression "uVar2 = local_c0" (identifier "uVar2") (= "=") (identifier "local_c0")) (; ";")) (expression_statement "uVar4 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar4 = g_type_check_instance_cast(local_c8,uVar3)" (identifier "uVar4") (= "=") (call_expression "g_type_check_instance_cast(local_c8,uVar3)" (identifier "g_type_check_instance_cast") (argument_list "(local_c8,uVar3)" (( "(") (identifier "local_c8") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "FUN_00130e42(uVar4,uVar2,1,1,0);" (call_expression "FUN_00130e42(uVar4,uVar2,1,1,0)" (identifier "FUN_00130e42") (argument_list "(uVar4,uVar2,1,1,0)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar2") (, ",") (number_literal "1") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "local_68 = gtk_im_multicontext_new();" (assignment_expression "local_68 = gtk_im_multicontext_new()" (identifier "local_68") (= "=") (call_expression "gtk_im_multicontext_new()" (identifier "gtk_im_multicontext_new") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c8,uVar3)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(local_c8,uVar3)" (identifier "g_type_check_instance_cast") (argument_list "(local_c8,uVar3)" (( "(") (identifier "local_c8") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "uVar2 = FUN_00130da7(uVar2);" (assignment_expression "uVar2 = FUN_00130da7(uVar2)" (identifier "uVar2") (= "=") (call_expression "FUN_00130da7(uVar2)" (identifier "FUN_00130da7") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "piVar6 = local_b8;" (assignment_expression "piVar6 = local_b8" (identifier "piVar6") (= "=") (identifier "local_b8")) (; ";")) (do_statement "do {\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  } while (piVar6 != local_70);" (do "do") (compound_statement "{\n    uVar4 = gtk_drawing_area_new();\n    *(undefined8 *)piVar6 = uVar4;\n    piVar6[4] = 0;\n    piVar6[3] = 0;\n    piVar6[2] = 0;\n    gtk_widget_set_size_request(uVar4,0x20,0x20);\n    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);\n    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);\n    g_object_set(uVar4,"margin-bottom",8,0);\n    gtk_widget_show(*(undefined8 *)piVar6);\n    piVar6 = piVar6 + 6;\n  }" ({ "{") (expression_statement "uVar4 = gtk_drawing_area_new();" (assignment_expression "uVar4 = gtk_drawing_area_new()" (identifier "uVar4") (= "=") (call_expression "gtk_drawing_area_new()" (identifier "gtk_drawing_area_new") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined8 *)piVar6 = uVar4;" (assignment_expression "*(undefined8 *)piVar6 = uVar4" (pointer_expression "*(undefined8 *)piVar6" (* "*") (cast_expression "(undefined8 *)piVar6" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar6"))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "piVar6[4] = 0;" (assignment_expression "piVar6[4] = 0" (subscript_expression "piVar6[4]" (identifier "piVar6") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar6[3] = 0;" (assignment_expression "piVar6[3] = 0" (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar6[2] = 0;" (assignment_expression "piVar6[2] = 0" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "gtk_widget_set_size_request(uVar4,0x20,0x20);" (call_expression "gtk_widget_set_size_request(uVar4,0x20,0x20)" (identifier "gtk_widget_set_size_request") (argument_list "(uVar4,0x20,0x20)" (( "(") (identifier "uVar4") (, ",") (number_literal "0x20") (, ",") (number_literal "0x20") () ")"))) (; ";")) (expression_statement "gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);" (call_expression "gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5)" (identifier "gtk_box_pack_end") (argument_list "(uVar2,*(undefined8 *)piVar6,1,1,5)" (( "(") (identifier "uVar2") (, ",") (pointer_expression "*(undefined8 *)piVar6" (* "*") (cast_expression "(undefined8 *)piVar6" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar6"))) (, ",") (number_literal "1") (, ",") (number_literal "1") (, ",") (number_literal "5") () ")"))) (; ";")) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" (identifier "uVar4") (= "=") (call_expression "g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined8 *)piVar6,0x50)" (( "(") (pointer_expression "*(undefined8 *)piVar6" (* "*") (cast_expression "(undefined8 *)piVar6" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar6"))) (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);" (call_expression "g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0)" (identifier "g_signal_connect_data") (argument_list "(uVar4,"configure_event",FUN_001304d1,piVar6,0,0)" (( "(") (identifier "uVar4") (, ",") (string_literal ""configure_event"" (" """) (string_content "configure_event") (" """)) (, ",") (identifier "FUN_001304d1") (, ",") (identifier "piVar6") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" (identifier "uVar4") (= "=") (call_expression "g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined8 *)piVar6,0x50)" (( "(") (pointer_expression "*(undefined8 *)piVar6" (* "*") (cast_expression "(undefined8 *)piVar6" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar6"))) (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);" (call_expression "g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0)" (identifier "g_signal_connect_data") (argument_list "(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0)" (( "(") (identifier "uVar4") (, ",") (pointer_expression "&DAT_00142a9f" (& "&") (identifier "DAT_00142a9f")) (, ",") (identifier "FUN_0013060a") (, ",") (identifier "piVar6") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" (identifier "uVar4") (= "=") (call_expression "g_type_check_instance_cast(*(undefined8 *)piVar6,0x50)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined8 *)piVar6,0x50)" (( "(") (pointer_expression "*(undefined8 *)piVar6" (* "*") (cast_expression "(undefined8 *)piVar6" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar6"))) (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_object_set(uVar4,"margin-bottom",8,0);" (call_expression "g_object_set(uVar4,"margin-bottom",8,0)" (identifier "g_object_set") (argument_list "(uVar4,"margin-bottom",8,0)" (( "(") (identifier "uVar4") (, ",") (string_literal ""margin-bottom"" (" """) (string_content "margin-bottom") (" """)) (, ",") (number_literal "8") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "gtk_widget_show(*(undefined8 *)piVar6);" (call_expression "gtk_widget_show(*(undefined8 *)piVar6)" (identifier "gtk_widget_show") (argument_list "(*(undefined8 *)piVar6)" (( "(") (pointer_expression "*(undefined8 *)piVar6" (* "*") (cast_expression "(undefined8 *)piVar6" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar6"))) () ")"))) (; ";")) (expression_statement "piVar6 = piVar6 + 6;" (assignment_expression "piVar6 = piVar6 + 6" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 6" (identifier "piVar6") (+ "+") (number_literal "6"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar6 != local_70)" (( "(") (binary_expression "piVar6 != local_70" (identifier "piVar6") (!= "!=") (identifier "local_70")) () ")")) (; ";")) (expression_statement "local_70[0] = rand();" (assignment_expression "local_70[0] = rand()" (subscript_expression "local_70[0]" (identifier "local_70") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "rand()" (identifier "rand") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_70[0] = local_70[0] % 3;" (assignment_expression "local_70[0] = local_70[0] % 3" (subscript_expression "local_70[0]" (identifier "local_70") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "local_70[0] % 3" (subscript_expression "local_70[0]" (identifier "local_70") ([ "[") (number_literal "0") (] "]")) (% "%") (number_literal "3"))) (; ";")) (expression_statement "local_a8[(long)local_70[0] * 6] = 1;" (assignment_expression "local_a8[(long)local_70[0] * 6] = 1" (subscript_expression "local_a8[(long)local_70[0] * 6]" (identifier "local_a8") ([ "[") (binary_expression "(long)local_70[0] * 6" (cast_expression "(long)local_70[0]" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (subscript_expression "local_70[0]" (identifier "local_70") ([ "[") (number_literal "0") (] "]"))) (* "*") (number_literal "6")) (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "gtk_widget_set_sensitive(local_c0,1);" (call_expression "gtk_widget_set_sensitive(local_c0,1)" (identifier "gtk_widget_set_sensitive") (argument_list "(local_c0,1)" (( "(") (identifier "local_c0") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(local_c8,uVar3);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c8,uVar3)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(local_c8,uVar3)" (identifier "g_type_check_instance_cast") (argument_list "(local_c8,uVar3)" (( "(") (identifier "local_c8") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "gtk_window_set_keep_above(uVar2,1);" (call_expression "gtk_window_set_keep_above(uVar2,1)" (identifier "gtk_window_set_keep_above") (argument_list "(uVar2,1)" (( "(") (identifier "uVar2") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "gtk_widget_show_now(local_c8);" (call_expression "gtk_widget_show_now(local_c8)" (identifier "gtk_widget_show_now") (argument_list "(local_c8)" (( "(") (identifier "local_c8") () ")"))) (; ";")) (expression_statement "gtk_grab_add(local_c0);" (call_expression "gtk_grab_add(local_c0)" (identifier "gtk_grab_add") (argument_list "(local_c0)" (( "(") (identifier "local_c0") () ")"))) (; ";")) (expression_statement "iVar5 = 0x28;" (assignment_expression "iVar5 = 0x28" (identifier "iVar5") (= "=") (number_literal "0x28")) (; ";")) (do_statement "do {\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);" (do "do") (compound_statement "{\n    iVar1 = FUN_0013059f(&local_c8);\n    if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }\n    usleep(0x1e848);\n    iVar5 = iVar5 + -1;\n  }" ({ "{") (expression_statement "iVar1 = FUN_0013059f(&local_c8);" (assignment_expression "iVar1 = FUN_0013059f(&local_c8)" (identifier "iVar1") (= "=") (call_expression "FUN_0013059f(&local_c8)" (identifier "FUN_0013059f") (argument_list "(&local_c8)" (( "(") (pointer_expression "&local_c8" (& "&") (identifier "local_c8")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = g_type_check_instance_cast(local_68,0x50);\n      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = g_type_check_instance_cast(local_c0,0x50);\n      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);\n      uVar2 = gtk_widget_get_window(local_c8);\n      gtk_im_context_set_client_window(local_68,uVar2);\n      gtk_main();\n      gdk_seat_ungrab(local_50);\n      gtk_grab_remove(local_c0);\n      if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }\n      gtk_widget_destroy(local_c8);\n      if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }\n      goto LAB_00130955;\n    }" ({ "{") (expression_statement "uVar2 = g_type_check_instance_cast(local_68,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_68,0x50)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(local_68,0x50)" (identifier "g_type_check_instance_cast") (argument_list "(local_68,0x50)" (( "(") (identifier "local_68") (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);" (call_expression "g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0)" (identifier "g_signal_connect_data") (argument_list "(uVar2,"commit",FUN_001304f0,&local_c8,0,0)" (( "(") (identifier "uVar2") (, ",") (string_literal ""commit"" (" """) (string_content "commit") (" """)) (, ",") (identifier "FUN_001304f0") (, ",") (pointer_expression "&local_c8" (& "&") (identifier "local_c8")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,0x50)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(local_c0,0x50)" (identifier "g_type_check_instance_cast") (argument_list "(local_c0,0x50)" (( "(") (identifier "local_c0") (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);" (call_expression "g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0)" (identifier "g_signal_connect_data") (argument_list "(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0)" (( "(") (identifier "uVar2") (, ",") (string_literal ""key_press_event"" (" """) (string_content "key_press_event") (" """)) (, ",") (identifier "FUN_00130388") (, ",") (pointer_expression "&local_c8" (& "&") (identifier "local_c8")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(local_c0,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(local_c0,0x50)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(local_c0,0x50)" (identifier "g_type_check_instance_cast") (argument_list "(local_c0,0x50)" (( "(") (identifier "local_c0") (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);" (call_expression "g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0)" (identifier "g_signal_connect_data") (argument_list "(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0)" (( "(") (identifier "uVar2") (, ",") (string_literal ""key_release_event"" (" """) (string_content "key_release_event") (" """)) (, ",") (identifier "FUN_00130388") (, ",") (pointer_expression "&local_c8" (& "&") (identifier "local_c8")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar2 = gtk_widget_get_window(local_c8);" (assignment_expression "uVar2 = gtk_widget_get_window(local_c8)" (identifier "uVar2") (= "=") (call_expression "gtk_widget_get_window(local_c8)" (identifier "gtk_widget_get_window") (argument_list "(local_c8)" (( "(") (identifier "local_c8") () ")")))) (; ";")) (expression_statement "gtk_im_context_set_client_window(local_68,uVar2);" (call_expression "gtk_im_context_set_client_window(local_68,uVar2)" (identifier "gtk_im_context_set_client_window") (argument_list "(local_68,uVar2)" (( "(") (identifier "local_68") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "gtk_main();" (call_expression "gtk_main()" (identifier "gtk_main") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "gdk_seat_ungrab(local_50);" (call_expression "gdk_seat_ungrab(local_50)" (identifier "gdk_seat_ungrab") (argument_list "(local_50)" (( "(") (identifier "local_50") () ")"))) (; ";")) (expression_statement "gtk_grab_remove(local_c0);" (call_expression "gtk_grab_remove(local_c0)" (identifier "gtk_grab_remove") (argument_list "(local_c0)" (( "(") (identifier "local_c0") () ")"))) (; ";")) (if_statement "if (local_60 != 0) {\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }" (if "if") (parenthesized_expression "(local_60 != 0)" (( "(") (binary_expression "local_60 != 0" (identifier "local_60") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }\n        *(undefined1 *)(local_60 + local_58) = 0;\n      }" ({ "{") (if_statement "if (local_54 <= local_58) {\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }" (if "if") (parenthesized_expression "(local_54 <= local_58)" (( "(") (binary_expression "local_54 <= local_58" (identifier "local_54") (<= "<=") (identifier "local_58")) () ")")) (compound_statement "{\n                    \n          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");\n        }" ({ "{") (expression_statement "__assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");" (call_expression "__assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup")" (identifier "__assert_fail") (argument_list "("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup")" (( "(") (string_literal ""ctx->passlen < ctx->passsize"" (" """) (string_content "ctx->passlen < ctx->passsize") (" """)) (, ",") (string_literal ""unix/gtkask.c"" (" """) (string_content "unix/gtkask.c") (" """)) (, ",") (number_literal "0x1be") (, ",") (string_literal ""gtk_askpass_cleanup"" (" """) (string_content "gtk_askpass_cleanup") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(local_60 + local_58) = 0;" (assignment_expression "*(undefined1 *)(local_60 + local_58) = 0" (pointer_expression "*(undefined1 *)(local_60 + local_58)" (* "*") (cast_expression "(undefined1 *)(local_60 + local_58)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_60 + local_58)" (( "(") (binary_expression "local_60 + local_58" (identifier "local_60") (+ "+") (identifier "local_58")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "gtk_widget_destroy(local_c8);" (call_expression "gtk_widget_destroy(local_c8)" (identifier "gtk_widget_destroy") (argument_list "(local_c8)" (( "(") (identifier "local_c8") () ")"))) (; ";")) (if_statement "if (local_60 == 0) {\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }\n      else {\n        *param_4 = 1;\n      }" (if "if") (parenthesized_expression "(local_60 == 0)" (( "(") (binary_expression "local_60 == 0" (identifier "local_60") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *param_4 = 0;\n        FUN_0010bd5d("passphrase input cancelled");\n      }" ({ "{") (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0010bd5d("passphrase input cancelled");" (call_expression "FUN_0010bd5d("passphrase input cancelled")" (identifier "FUN_0010bd5d") (argument_list "("passphrase input cancelled")" (( "(") (string_literal ""passphrase input cancelled"" (" """) (string_content "passphrase input cancelled") (" """)) () ")"))) (; ";")) (} "}")) (else_clause "else {\n        *param_4 = 1;\n      }" (else "else") (compound_statement "{\n        *param_4 = 1;\n      }" ({ "{") (expression_statement "*param_4 = 1;" (assignment_expression "*param_4 = 1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "1")) (; ";")) (} "}")))) (goto_statement "goto LAB_00130955;" (goto "goto") (statement_identifier "LAB_00130955") (; ";")) (} "}"))) (expression_statement "usleep(0x1e848);" (call_expression "usleep(0x1e848)" (identifier "usleep") (argument_list "(0x1e848)" (( "(") (number_literal "0x1e848") () ")"))) (; ";")) (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 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0010c2a6("%s","unable to grab keyboard");" (call_expression "FUN_0010c2a6("%s","unable to grab keyboard")" (identifier "FUN_0010c2a6") (argument_list "("%s","unable to grab keyboard")" (( "(") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (string_literal ""unable to grab keyboard"" (" """) (string_content "unable to grab keyboard") (" """)) () ")"))) (; ";")) (labeled_statement "LAB_00130955:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (statement_identifier "LAB_00130955") (: ":") (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "GdkEventType": Some values do not have unique names */

char * function_1(char *display,char *wintitle,char *prompt,int *success)

{
  long var_46;
  int var_9;
  int var_37;
  type_1 *pGVar4;
  type_2 uVar5;
  type_2 uVar6;
  type_3 *label;
  type_2 uVar7;
  type_4 *pGVar8;
  type_5 *pGVar9;
  char *pcVar10;
  type_6 *var_30;
  char **ppcVar12;
  long var_1;
  int var_5;
  char **var_4;
  type_7 actx;
  
  var_46 = *(long *)(var_1 + 0x28);
  var_4 = (char **)&actx;
  if (var_2 == 0) {
    var_5 = 1;
    actx.dialog = (type_1 *)var_3("dummy");
    ppcVar12 = var_4 + var_5;
    var_5 = var_5 + 1;
    pcVar10 = var_6("--display=%s",display);
    *ppcVar12 = pcVar10;
    var_4[var_5] = (char *)0x0;
    var_9 = var_7(&var_5,&var_4);
    while (0 < var_5) {
      var_5 = var_5 + -1;
      var_8(var_4[var_5]);
    }
    var_2 = var_9;
    if (var_9 == 0) {
      *success = 0;
      pcVar10 = var_3("unable to initialise GTK");
      goto LAB_00130955;
    }
  }
  actx.passlen = 0;
  actx.passsize = 0x800;
  actx.passphrase = (char *)var_10(0x800,1);
  pGVar4 = var_11();
  actx.dialog = pGVar4;
  uVar5 = var_12();
  uVar6 = var_13(pGVar4,uVar5);
  var_14(uVar6,wintitle);
  uVar6 = var_13(actx.dialog,uVar5);
  var_15(uVar6,1);
  pGVar4 = (type_1 *)var_16(prompt);
  actx.promptlabel = pGVar4;
  uVar6 = var_17();
  label = (type_3 *)var_13(pGVar4,uVar6);
  var_18(label);
  var_19(actx.promptlabel);
  uVar7 = var_13(actx.promptlabel,uVar6);
  var_20(uVar7,1);
  uVar6 = var_13(actx.promptlabel,uVar6);
  var_21(uVar6,0x30);
  pGVar4 = actx.promptlabel;
  pGVar8 = (type_4 *)var_13(actx.dialog,uVar5);
  var_22(pGVar8,pGVar4,1,1,0);
  actx.imc = (type_8 *)var_23();
  pGVar8 = (type_4 *)var_13(actx.dialog,uVar5);
  pGVar9 = var_24(pGVar8);
  var_30 = actx.drawingareas;
  do {
    pGVar4 = (type_1 *)var_25();
    var_30->area = pGVar4;
    var_30->current = 0;
    var_30->height = 0;
    var_30->width = 0;
    var_26(pGVar4,0x20,0x20);
    var_27(pGVar9,var_30->area,1,1,5);
    uVar6 = var_13(var_30->area,0x50);
    var_28(uVar6,"configure_event",configure_area,var_30,0,0);
    uVar6 = var_13(var_30->area,0x50);
    var_28(uVar6,&DAT_00142a9f,draw_area,var_30,0,0);
    uVar6 = var_13(var_30->area,0x50);
    var_29(uVar6,"margin-bottom",8,0);
    var_19(var_30->area);
    var_30 = var_30 + 1;
  } while (var_30 != (type_6 *)&actx.active_area);
  var_9 = var_31();
  actx.active_area = var_9 % 3;
  actx.drawingareas[actx.active_area].current = 1;
  var_32(actx.promptlabel,1);
  uVar5 = var_13(actx.dialog,uVar5);
  var_33(uVar5,1);
  var_34(actx.dialog);
  var_35(actx.promptlabel);
  var_9 = 0x28;
  do {
    var_37 = var_36(&actx);
    if (var_37 != 0) {
      uVar5 = var_13(actx.imc,0x50);
      var_28(uVar5,"commit",input_method_commit_event,&actx,0,0);
      uVar5 = var_13(actx.promptlabel,0x50);
      var_28(uVar5,"key_press_event",key_event,&actx,0,0);
      uVar5 = var_13(actx.promptlabel,0x50);
      var_28(uVar5,"key_release_event",key_event,&actx,0,0);
      uVar5 = var_38(actx.dialog);
      var_39(actx.imc,uVar5);
      var_40();
      var_41(actx.seat);
      var_42(actx.promptlabel);
      if (actx.passphrase != (char *)0x0) {
        if (actx.passsize <= actx.passlen) {
                    /* WARNING: Subroutine does not return */
          var_43("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");
        }
        actx.passphrase[actx.passlen] = '\0';
      }
      var_44(actx.dialog);
      if (actx.passphrase == (char *)0x0) {
        *success = 0;
        pcVar10 = var_3("passphrase input cancelled");
      }
      else {
        *success = 1;
        pcVar10 = actx.passphrase;
      }
      goto LAB_00130955;
    }
    var_45(0x1e848);
    var_9 = var_9 + -1;
  } while (var_9 != 0);
  *success = 0;
  pcVar10 = var_6("%s","unable to grab keyboard");
LAB_00130955:
  if (var_46 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_47();
  }
  return pcVar10;
}


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

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

{
  int iVar1;
  undefined8 uVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  int iVar5;
  int *piVar6;
  undefined8 *puVar7;
  long in_FS_OFFSET;
  int local_d4;
  undefined8 *local_d0;
  undefined8 local_c8;
  undefined8 local_c0;
  int local_b8 [4];
  undefined4 local_a8 [14];
  int local_70 [2];
  undefined8 local_68;
  long local_60;
  int local_58;
  int local_54;
  undefined8 local_50;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  local_d0 = &local_c8;
  if (DAT_00152440 == 0) {
    local_d4 = 1;
    local_c8 = FUN_0010bd5d("dummy");
    puVar7 = local_d0 + local_d4;
    local_d4 = local_d4 + 1;
    uVar2 = FUN_0010c2a6("--display=%s",param_1);
    *puVar7 = uVar2;
    local_d0[local_d4] = 0;
    iVar5 = gtk_init_check(&local_d4,&local_d0);
    while (0 < local_d4) {
      local_d4 = local_d4 + -1;
      FUN_0010c4d3(local_d0[local_d4]);
    }
    DAT_00152440 = iVar5;
    if (iVar5 == 0) {
      *param_4 = 0;
      FUN_0010bd5d("unable to initialise GTK");
      goto LAB_00130955;
    }
  }
  local_58 = 0;
  local_54 = 0x800;
  local_60 = FUN_0010bc67(0x800,1);
  uVar2 = FUN_00130ca2();
  local_c8 = uVar2;
  uVar3 = gtk_window_get_type();
  uVar2 = g_type_check_instance_cast(uVar2,uVar3);
  gtk_window_set_title(uVar2,param_2);
  uVar2 = g_type_check_instance_cast(local_c8,uVar3);
  gtk_window_set_position(uVar2,1);
  uVar2 = gtk_label_new(param_3);
  local_c0 = uVar2;
  uVar4 = gtk_label_get_type();
  uVar2 = g_type_check_instance_cast(uVar2,uVar4);
  FUN_00130c90(uVar2);
  gtk_widget_show(local_c0);
  uVar2 = g_type_check_instance_cast(local_c0,uVar4);
  gtk_label_set_line_wrap(uVar2,1);
  uVar2 = g_type_check_instance_cast(local_c0,uVar4);
  gtk_label_set_width_chars(uVar2,0x30);
  uVar2 = local_c0;
  uVar4 = g_type_check_instance_cast(local_c8,uVar3);
  FUN_00130e42(uVar4,uVar2,1,1,0);
  local_68 = gtk_im_multicontext_new();
  uVar2 = g_type_check_instance_cast(local_c8,uVar3);
  uVar2 = FUN_00130da7(uVar2);
  piVar6 = local_b8;
  do {
    uVar4 = gtk_drawing_area_new();
    *(undefined8 *)piVar6 = uVar4;
    piVar6[4] = 0;
    piVar6[3] = 0;
    piVar6[2] = 0;
    gtk_widget_set_size_request(uVar4,0x20,0x20);
    gtk_box_pack_end(uVar2,*(undefined8 *)piVar6,1,1,5);
    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);
    g_signal_connect_data(uVar4,"configure_event",FUN_001304d1,piVar6,0,0);
    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);
    g_signal_connect_data(uVar4,&DAT_00142a9f,FUN_0013060a,piVar6,0,0);
    uVar4 = g_type_check_instance_cast(*(undefined8 *)piVar6,0x50);
    g_object_set(uVar4,"margin-bottom",8,0);
    gtk_widget_show(*(undefined8 *)piVar6);
    piVar6 = piVar6 + 6;
  } while (piVar6 != local_70);
  local_70[0] = rand();
  local_70[0] = local_70[0] % 3;
  local_a8[(long)local_70[0] * 6] = 1;
  gtk_widget_set_sensitive(local_c0,1);
  uVar2 = g_type_check_instance_cast(local_c8,uVar3);
  gtk_window_set_keep_above(uVar2,1);
  gtk_widget_show_now(local_c8);
  gtk_grab_add(local_c0);
  iVar5 = 0x28;
  do {
    iVar1 = FUN_0013059f(&local_c8);
    if (iVar1 != 0) {
      uVar2 = g_type_check_instance_cast(local_68,0x50);
      g_signal_connect_data(uVar2,"commit",FUN_001304f0,&local_c8,0,0);
      uVar2 = g_type_check_instance_cast(local_c0,0x50);
      g_signal_connect_data(uVar2,"key_press_event",FUN_00130388,&local_c8,0,0);
      uVar2 = g_type_check_instance_cast(local_c0,0x50);
      g_signal_connect_data(uVar2,"key_release_event",FUN_00130388,&local_c8,0,0);
      uVar2 = gtk_widget_get_window(local_c8);
      gtk_im_context_set_client_window(local_68,uVar2);
      gtk_main();
      gdk_seat_ungrab(local_50);
      gtk_grab_remove(local_c0);
      if (local_60 != 0) {
        if (local_54 <= local_58) {
                    /* WARNING: Subroutine does not return */
          __assert_fail("ctx->passlen < ctx->passsize","unix/gtkask.c",0x1be,"gtk_askpass_cleanup");
        }
        *(undefined1 *)(local_60 + local_58) = 0;
      }
      gtk_widget_destroy(local_c8);
      if (local_60 == 0) {
        *param_4 = 0;
        FUN_0010bd5d("passphrase input cancelled");
      }
      else {
        *param_4 = 1;
      }
      goto LAB_00130955;
    }
    usleep(0x1e848);
    iVar5 = iVar5 + -1;
  } while (iVar5 != 0);
  *param_4 = 0;
  FUN_0010c2a6("%s","unable to grab keyboard");
LAB_00130955:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}

