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

int do_yesno_prompt(_Bool all,char *msg)

{
  int iVar1;
  int *piVar2;
  int *piVar3;
  bool showcursor;
  _Bool _Var4;
  char cVar5;
  char *__haystack;
  char *__haystack_00;
  char *__haystack_01;
  int iVar6;
  size_t sVar7;
  char *pcVar8;
  functionptrtype p_Var9;
  sc *psVar10;
  int iVar11;
  uint uVar12;
  int in_GS_OFFSET;
  int local_78;
  int kbinput;
  int mouse_x;
  int mouse_y;
  char letter [7];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);
  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);
  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);
  showcursor = !all;
  local_78 = 0x10;
  piVar3 = (int *)PTR_COLS_0007af78;
  while( true ) {
    piVar2 = piVar3;
    if (((byte)flags[0] & 8) == 0) {
      psVar10 = first_sc_for(0x2000,do_cancel);
      iVar6 = *piVar2;
      if (iVar6 < 0x20) {
        local_78 = iVar6 / 2;
      }
      blank_bottombars();
      __sprintf_chk(letter,1,8," %c",(int)*__haystack);
      wmove(bottomwin,1,0);
      pcVar8 = (char *)dcgettext(0,&DAT_0005fe09,5);
      post_one_key(letter,pcVar8,local_78);
      letter[1] = *__haystack_00;
      wmove(bottomwin,2,0);
      pcVar8 = (char *)dcgettext(0,&DAT_0005fe0d,5);
      post_one_key(letter,pcVar8,local_78);
      if (all) {
        letter[1] = *__haystack_01;
        wmove(bottomwin,1,local_78);
        pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5);
        post_one_key(letter,pcVar8,local_78);
      }
      wmove(bottomwin,2,local_78);
      pcVar8 = (char *)dcgettext(0,"Cancel",5);
      post_one_key(psVar10->keystr,pcVar8,local_78);
    }
    wattr_on(bottomwin,interface_color_pair[0],0);
    blank_statusbar();
    iVar6 = wmove(bottomwin,0,0);
    if (iVar6 != -1) {
      sVar7 = actual_x(msg,*(int *)PTR_COLS_0007af78 - 1);
      waddnstr(bottomwin,msg,sVar7);
    }
    iVar6 = 1;
    wattr_off(bottomwin,interface_color_pair[0],0);
    wnoutrefresh(bottomwin);
    currmenu = 0x2000;
    kbinput = get_kbinput(bottomwin,showcursor);
    letter[0] = (char)kbinput;
    _Var4 = using_utf8();
    if ((_Var4) && (kbinput - 0xc0U < 0x38)) {
      uVar12 = (kbinput >> 4 & 3U) + (uint)(kbinput < 0xd0);
      while ((sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&
             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff))) {
        iVar11 = get_kbinput(bottomwin,showcursor);
        letter[iVar6] = (char)iVar11;
        iVar6 = iVar6 + 1;
      }
    }
    letter[iVar6] = '\0';
    pcVar8 = strstr(__haystack,letter);
    if (pcVar8 != (char *)0x0) break;
    pcVar8 = strstr(__haystack_00,letter);
    if (pcVar8 != (char *)0x0) {
LAB_00030010:
      iVar6 = 0;
      goto LAB_0002fff5;
    }
    if ((all) && (pcVar8 = strstr(__haystack_01,letter), pcVar8 != (char *)0x0)) {
LAB_00030018:
      iVar6 = 2;
      goto LAB_0002fff5;
    }
    iVar6 = kbinput;
    pcVar8 = strchr("Yy",kbinput);
    if (pcVar8 != (char *)0x0) break;
    pcVar8 = strchr("Nn",iVar6);
    if (pcVar8 != (char *)0x0) goto LAB_00030010;
    if ((all) && (pcVar8 = strchr("Aa",iVar6), pcVar8 != (char *)0x0)) goto LAB_00030018;
    p_Var9 = func_from_key(&kbinput);
    if (p_Var9 == (functionptrtype)PTR_do_cancel_0007af2c) {
      iVar6 = -1;
      goto LAB_0002fff5;
    }
    piVar3 = (int *)PTR_COLS_0007af78;
    if (kbinput == 0x199) {
      iVar6 = get_mouseinput(&mouse_y,&mouse_x,false);
      piVar3 = (int *)PTR_COLS_0007af78;
      if (((((iVar6 == 0) &&
            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,
            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&
          ((0 < mouse_y &&
           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -
                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))) &&
         (piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2)) {
LAB_0002fff5:
        if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
          __stack_chk_fail_local();
        }
        return iVar6;
      }
    }
  }
  iVar6 = 1;
  goto LAB_0002fff5;
}



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

int FUN_0002fb20(byte param_1,undefined4 param_2)

{
  int *piVar1;
  int *piVar2;
  byte bVar3;
  char cVar4;
  char *__haystack;
  char *__haystack_00;
  char *__haystack_01;
  int iVar5;
  undefined4 uVar6;
  char *pcVar7;
  undefined *puVar8;
  undefined4 *puVar9;
  uint uVar10;
  uint uVar11;
  int in_GS_OFFSET;
  int local_78;
  int local_34;
  int local_30;
  int local_2c;
  char local_28 [8];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2fb29;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);
  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);
  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);
  bVar3 = param_1 ^ 1;
  local_78 = 0x10;
  piVar2 = (int *)PTR_COLS_0007af78;
  while( true ) {
    piVar1 = piVar2;
    if (((byte)DAT_0007b664 & 8) == 0) {
      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);
      iVar5 = *piVar1;
      if (iVar5 < 0x20) {
        local_78 = iVar5 / 2;
      }
      FUN_0003fde0();
      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);
      wmove(DAT_0007b658,1,0);
      uVar6 = dcgettext(0,&DAT_0005fe09,5);
      FUN_000417a0(local_28,uVar6,local_78);
      local_28[1] = *__haystack_00;
      wmove(DAT_0007b658,2,0);
      uVar6 = dcgettext(0,&DAT_0005fe0d,5);
      FUN_000417a0(local_28,uVar6,local_78);
      if (param_1 != 0) {
        local_28[1] = *__haystack_01;
        wmove(DAT_0007b658,1,local_78);
        uVar6 = dcgettext(0,&DAT_0005fe10,5);
        FUN_000417a0(local_28,uVar6,local_78);
      }
      wmove(DAT_0007b658,2,local_78);
      uVar6 = dcgettext(0,"Cancel",5);
      FUN_000417a0(*puVar9,uVar6,local_78);
    }
    wattr_on(DAT_0007b658,DAT_0007b59c,0);
    FUN_0003fd30();
    iVar5 = wmove(DAT_0007b658,0,0);
    if (iVar5 != -1) {
      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);
      waddnstr(DAT_0007b658,param_2,uVar6);
    }
    iVar5 = 1;
    wattr_off(DAT_0007b658,DAT_0007b59c,0);
    wnoutrefresh(DAT_0007b658);
    DAT_0007b064 = 0x2000;
    local_34 = FUN_00045910(DAT_0007b658,bVar3);
    local_28[0] = (char)local_34;
    cVar4 = FUN_00017870();
    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {
      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);
      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&
             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {
        cVar4 = FUN_00045910(DAT_0007b658,bVar3);
        local_28[iVar5] = cVar4;
        iVar5 = iVar5 + 1;
      }
    }
    local_28[iVar5] = '\0';
    pcVar7 = strstr(__haystack,local_28);
    if (pcVar7 != (char *)0x0) break;
    pcVar7 = strstr(__haystack_00,local_28);
    if (pcVar7 != (char *)0x0) {
LAB_00030010:
      iVar5 = 0;
      goto LAB_0002fff5;
    }
    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {
LAB_00030018:
      iVar5 = 2;
      goto LAB_0002fff5;
    }
    iVar5 = local_34;
    pcVar7 = strchr("Yy",local_34);
    if (pcVar7 != (char *)0x0) break;
    pcVar7 = strchr("Nn",iVar5);
    if (pcVar7 != (char *)0x0) goto LAB_00030010;
    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;
    puVar8 = (undefined *)FUN_00020810(&local_34);
    if (puVar8 == PTR_FUN_0007af2c) {
      iVar5 = -1;
      goto LAB_0002fff5;
    }
    piVar2 = (int *)PTR_COLS_0007af78;
    if (local_34 == 0x199) {
      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);
      piVar2 = (int *)PTR_COLS_0007af78;
      if (((((iVar5 == 0) &&
            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),
            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&
          ((0 < local_2c &&
           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -
                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&
         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {
LAB_0002fff5:
        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
          FUN_0005a8b0();
        }
        return iVar5;
      }
    }
  }
  iVar5 = 1;
  goto LAB_0002fff5;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015680
ADD EBX,0x4b0a7
ADD ESP,-0x80
MOV ESI,dword ptr [ESP + 0x94]
MOV EAX,dword ptr [ESP + 0x98]
MOV dword ptr [ESP + 0x48],EAX
MOV EAX,ESI
MOV byte ptr [ESP + 0x3e],AL
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x70],EAX
XOR EAX,EAX
PUSH 0x5
LEA EAX,[EBX + 0xfffe5230]
MOV dword ptr [ESP + 0x38],EAX
PUSH EAX
PUSH 0x0
CALL 0x000132e0
MOV dword ptr [ESP + 0x2c],EAX
ADD ESP,0xc
LEA EAX,[EBX + 0xfffe5233]
PUSH 0x5
MOV dword ptr [ESP + 0x3c],EAX
PUSH EAX
PUSH 0x0
CALL 0x000132e0
MOV dword ptr [ESP + 0x30],EAX
ADD ESP,0xc
LEA EAX,[EBX + 0xfffe5236]
PUSH 0x5
MOV dword ptr [ESP + 0x44],EAX
PUSH EAX
PUSH 0x0
CALL 0x000132e0
LEA EBP,[EBX + 0xa88]
MOV dword ptr [ESP + 0x50],EAX
MOV EAX,ESI
XOR EAX,0x1
MOV byte ptr [ESP + 0x4b],AL
MOVZX EAX,AL
MOV dword ptr [ESP + 0x20],EAX
LEA EAX,[EBX + 0xa94]
ADD ESP,0x10
MOV dword ptr [ESP + 0x28],EAX
LEA EAX,[ESP + 0x64]
MOV dword ptr [ESP + 0xc],EAX
LEA EAX,[EBX + 0x9cc]
MOV dword ptr [ESP + 0x14],0x10
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[EBX + 0x494]
MOV dword ptr [ESP + 0x2c],EAX
LEA EAX,[EBX + 0xfffa5990]
MOV dword ptr [ESP + 0x4c],EAX
MOV EAX,dword ptr [EBX + 0x3a8]
MOV dword ptr [ESP + 0x48],EAX
MOV EAX,dword ptr [ESP + 0x28]
TEST byte ptr [EAX],0x8
JZ 0x0002fe30
SUB ESP,0x4
PUSH 0x0
MOV EAX,dword ptr [ESP + 0x20]
PUSH dword ptr [EAX]
PUSH dword ptr [EBP]
CALL 0x000131a0
CALL 0x0003fd30
ADD ESP,0xc
PUSH 0x0
PUSH 0x0
PUSH dword ptr [EBP]
CALL 0x000130b0
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x0002fc64
MOV EAX,dword ptr [EBX + 0x3a8]
SUB ESP,0x8
MOV EAX,dword ptr [EAX]
SUB EAX,0x1
PUSH EAX
MOV ESI,dword ptr [ESP + 0x50]
PUSH ESI
CALL 0x0003dfb0
ADD ESP,0xc
PUSH EAX
PUSH ESI
PUSH dword ptr [EBP]
CALL 0x00013240
ADD ESP,0x10
SUB ESP,0x4
MOV EDI,0x1
PUSH 0x0
MOV EAX,dword ptr [ESP + 0x20]
PUSH dword ptr [EAX]
PUSH dword ptr [EBP]
CALL 0x000138f0
POP EAX
PUSH dword ptr [EBP]
CALL 0x00013660
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [EAX],0x2000
POP EDX
POP ECX
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [EBP]
CALL 0x00045910
MOV dword ptr [ESP + 0x68],EAX
MOV byte ptr [ESP + 0x74],AL
CALL 0x00017870
ADD ESP,0x10
TEST AL,AL
JZ 0x0002fcc4
MOV EAX,dword ptr [ESP + 0x58]
LEA ECX,[EAX + 0xffffff40]
CMP ECX,0x37
JBE 0x0002ff38
MOV byte ptr [ESP + EDI*0x1 + 0x64],0x0
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x28]
CALL 0x000130e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002fff0
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x2c]
CALL 0x000130e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00030010
CMP byte ptr [ESP + 0x3a],0x0
JZ 0x0002fd21
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x4c]
CALL 0x000130e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00030018
MOV ESI,dword ptr [ESP + 0x58]
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [ESP + 0x3c]
CALL 0x000135f0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002fff0
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [ESP + 0x40]
CALL 0x000135f0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00030010
CMP byte ptr [ESP + 0x3a],0x0
JZ 0x0002fd74
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [ESP + 0x48]
CALL 0x000135f0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00030018
SUB ESP,0xc
LEA EAX,[ESP + 0x64]
PUSH EAX
CALL 0x00020810
ADD ESP,0x10
CMP EAX,dword ptr [EBX + 0x35c]
JZ 0x00030020
CMP dword ptr [ESP + 0x58],0x199
JNZ 0x0002fbf5
SUB ESP,0x4
PUSH 0x0
LEA EDI,[ESP + 0x64]
PUSH EDI
LEA ESI,[ESP + 0x6c]
PUSH ESI
CALL 0x0003f7d0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002fbf5
PUSH 0x0
PUSH EDI
PUSH ESI
PUSH dword ptr [EBP]
CALL 0x00013980
ADD ESP,0x10
TEST AL,AL
JZ 0x0002fbf5
MOV EDI,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x5c]
LEA EDX,[EDI + EDI*0x1]
CMP EDX,EAX
JLE 0x0002fbf5
MOV ECX,dword ptr [ESP + 0x60]
TEST ECX,ECX
JLE 0x0002fbf5
CDQ
SUB ECX,0x1
IDIV EDI
MOV EDX,EAX
IMUL EDX,ECX
NEG EDX
LEA EAX,[EAX + EDX*0x2]
SUB EAX,ECX
ADD EAX,0x1
CMP EAX,0x2
JNZ 0x0002fe18
CMP byte ptr [ESP + 0x3b],0x0
JNZ 0x0002fbff
CMP EAX,-0x2
JZ 0x0002fbf5
JMP 0x0002fff5
SUB ESP,0x8
PUSH dword ptr [ESP + 0x54]
PUSH 0x2000
CALL 0x00020770
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x58]
ADD ESP,0x10
MOV EAX,dword ptr [EAX]
CMP EAX,0x1f
JG 0x0002fe5e
MOV EDX,EAX
SHR EDX,0x1f
ADD EAX,EDX
SAR EAX,0x1
MOV dword ptr [ESP + 0x14],EAX
CALL 0x0003fde0
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x28]
MOVSX EAX,byte ptr [EAX]
PUSH EAX
LEA EAX,[EBX + 0xfffe3ff0]
PUSH EAX
PUSH 0x8
PUSH 0x1
MOV EDI,dword ptr [ESP + 0x28]
PUSH EDI
CALL 0x00013b30
ADD ESP,0x1c
PUSH 0x0
PUSH 0x1
PUSH dword ptr [EBP]
CALL 0x000130b0
ADD ESP,0xc
LEA EAX,[EBX + 0xfffe5239]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000132e0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x18]
PUSH EAX
PUSH EDI
CALL 0x000417a0
MOV EAX,dword ptr [ESP + 0x30]
MOVZX EAX,byte ptr [EAX]
MOV byte ptr [ESP + 0x75],AL
ADD ESP,0xc
PUSH 0x0
PUSH 0x2
PUSH dword ptr [EBP]
CALL 0x000130b0
ADD ESP,0xc
LEA EAX,[EBX + 0xfffe523d]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000132e0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x18]
PUSH EAX
PUSH EDI
CALL 0x000417a0
ADD ESP,0x10
CMP byte ptr [ESP + 0x3a],0x0
JNZ 0x0002ffa0
SUB ESP,0x4
MOV EDI,dword ptr [ESP + 0x18]
PUSH EDI
PUSH 0x2
PUSH dword ptr [EBP]
CALL 0x000130b0
ADD ESP,0xc
LEA EAX,[EBX + 0xfffe10a4]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000132e0
ADD ESP,0xc
PUSH EDI
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x000417a0
ADD ESP,0x10
JMP 0x0002fc0c
MOV ESI,EAX
SAR ESI,0x4
AND ESI,0x3
CMP EAX,0xcf
SETLE AL
MOVZX EAX,AL
ADD ESI,EAX
LEA EAX,[ESP + 0x63]
MOV dword ptr [ESP + 0x24],EAX
JMP 0x0002ff88
SUB ESI,0x1
CMP ESI,-0x1
JZ 0x0002fcc4
SUB ESP,0x8
ADD EDI,0x1
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [EBP]
CALL 0x00045910
MOV ECX,dword ptr [ESP + 0x34]
ADD ESP,0x10
MOV byte ptr [ECX + EDI*0x1],AL
CALL 0x0003e7b0
CMP EAX,ESI
JNC 0x0002ff60
JMP 0x0002fcc4
MOV EAX,dword ptr [ESP + 0x40]
SUB ESP,0x4
MOVZX EAX,byte ptr [EAX]
MOV byte ptr [ESP + 0x69],AL
MOV EDI,dword ptr [ESP + 0x18]
PUSH EDI
PUSH 0x1
PUSH dword ptr [EBP]
CALL 0x000130b0
ADD ESP,0xc
LEA EAX,[EBX + 0xfffe5240]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000132e0
ADD ESP,0xc
PUSH EDI
PUSH EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x000417a0
ADD ESP,0x10
JMP 0x0002fefc
MOV EAX,0x1
MOV EDX,dword ptr [ESP + 0x6c]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x00030027
ADD ESP,0x7c
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EAX,EAX
JMP 0x0002fff5
MOV EAX,0x2
JMP 0x0002fff5
MOV EAX,0xffffffff
JMP 0x0002fff5
CALL 0x0005a8b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0002fb20(byte param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  byte bVar3;\n  char cVar4;\n  char *__haystack;\n  char *__haystack_00;\n  char *__haystack_01;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  int local_78;\n  int local_34;\n  int local_30;\n  int local_2c;\n  char local_28 [8];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2fb29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);\n  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);\n  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);\n  bVar3 = param_1 ^ 1;\n  local_78 = 0x10;\n  piVar2 = (int *)PTR_COLS_0007af78;\n  while( true ) {\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }\n  iVar5 = 1;\n  goto LAB_0002fff5;\n}\n\n" comment (function_definition "int FUN_0002fb20(byte param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  byte bVar3;\n  char cVar4;\n  char *__haystack;\n  char *__haystack_00;\n  char *__haystack_01;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  int local_78;\n  int local_34;\n  int local_30;\n  int local_2c;\n  char local_28 [8];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2fb29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);\n  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);\n  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);\n  bVar3 = param_1 ^ 1;\n  local_78 = 0x10;\n  piVar2 = (int *)PTR_COLS_0007af78;\n  while( true ) {\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }\n  iVar5 = 1;\n  goto LAB_0002fff5;\n}" primitive_type (function_declarator "FUN_0002fb20(byte param_1,undefined4 param_2)" identifier (parameter_list "(byte param_1,undefined4 param_2)" ( (parameter_declaration "byte param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  byte bVar3;\n  char cVar4;\n  char *__haystack;\n  char *__haystack_00;\n  char *__haystack_01;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  int local_78;\n  int local_34;\n  int local_30;\n  int local_2c;\n  char local_28 [8];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2fb29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);\n  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);\n  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);\n  bVar3 = param_1 ^ 1;\n  local_78 = 0x10;\n  piVar2 = (int *)PTR_COLS_0007af78;\n  while( true ) {\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }\n  iVar5 = 1;\n  goto LAB_0002fff5;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *__haystack;" primitive_type (pointer_declarator "*__haystack" * identifier) ;) (declaration "char *__haystack_00;" primitive_type (pointer_declarator "*__haystack_00" * identifier) ;) (declaration "char *__haystack_01;" primitive_type (pointer_declarator "*__haystack_01" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_78;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "char local_28 [8];" primitive_type (array_declarator "local_28 [8]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2fb29;" (assignment_expression "uStack_14 = 0x2fb29" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__haystack = (char *)dcgettext(0,&DAT_0005fe00,5);" (assignment_expression "__haystack = (char *)dcgettext(0,&DAT_0005fe00,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe00,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe00,5)" identifier (argument_list "(0,&DAT_0005fe00,5)" ( number_literal , (pointer_expression "&DAT_0005fe00" & identifier) , number_literal ))))) ;) (expression_statement "__haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);" (assignment_expression "__haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe03,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe03,5)" identifier (argument_list "(0,&DAT_0005fe03,5)" ( number_literal , (pointer_expression "&DAT_0005fe03" & identifier) , number_literal ))))) ;) (expression_statement "__haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);" (assignment_expression "__haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe06,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe06,5)" identifier (argument_list "(0,&DAT_0005fe06,5)" ( number_literal , (pointer_expression "&DAT_0005fe06" & identifier) , number_literal ))))) ;) (expression_statement "bVar3 = param_1 ^ 1;" (assignment_expression "bVar3 = param_1 ^ 1" identifier = (binary_expression "param_1 ^ 1" identifier ^ number_literal)) ;) (expression_statement "local_78 = 0x10;" (assignment_expression "local_78 = 0x10" identifier = number_literal) ;) (expression_statement "piVar2 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while( true ) {\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }" { (expression_statement "piVar1 = piVar2;" (assignment_expression "piVar1 = piVar2" identifier = identifier) ;) (if_statement "if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }" if (parenthesized_expression "(((byte)DAT_0007b664 & 8) == 0)" ( (binary_expression "((byte)DAT_0007b664 & 8) == 0" (parenthesized_expression "((byte)DAT_0007b664 & 8)" ( (binary_expression "(byte)DAT_0007b664 & 8" (cast_expression "(byte)DAT_0007b664" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }" { (expression_statement "puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);" (assignment_expression "puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560)" identifier = (cast_expression "(undefined4 *)FUN_00020770(0x2000,FUN_00020560)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00020770(0x2000,FUN_00020560)" identifier (argument_list "(0x2000,FUN_00020560)" ( number_literal , identifier ))))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }" if (parenthesized_expression "(iVar5 < 0x20)" ( (binary_expression "iVar5 < 0x20" identifier < number_literal) )) (compound_statement "{\n        local_78 = iVar5 / 2;\n      }" { (expression_statement "local_78 = iVar5 / 2;" (assignment_expression "local_78 = iVar5 / 2" identifier = (binary_expression "iVar5 / 2" identifier / number_literal)) ;) })) (expression_statement "FUN_0003fde0();" (call_expression "FUN_0003fde0()" identifier (argument_list "()" ( ))) ;) (expression_statement "__sprintf_chk(local_28,1,8," %c",(int)*__haystack);" (call_expression "__sprintf_chk(local_28,1,8," %c",(int)*__haystack)" identifier (argument_list "(local_28,1,8," %c",(int)*__haystack)" ( identifier , number_literal , number_literal , (string_literal "" %c"" " string_content ") , (cast_expression "(int)*__haystack" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*__haystack" * identifier)) ))) ;) (expression_statement "wmove(DAT_0007b658,1,0);" (call_expression "wmove(DAT_0007b658,1,0)" identifier (argument_list "(DAT_0007b658,1,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "uVar6 = dcgettext(0,&DAT_0005fe09,5);" (assignment_expression "uVar6 = dcgettext(0,&DAT_0005fe09,5)" identifier = (call_expression "dcgettext(0,&DAT_0005fe09,5)" identifier (argument_list "(0,&DAT_0005fe09,5)" ( number_literal , (pointer_expression "&DAT_0005fe09" & identifier) , number_literal )))) ;) (expression_statement "FUN_000417a0(local_28,uVar6,local_78);" (call_expression "FUN_000417a0(local_28,uVar6,local_78)" identifier (argument_list "(local_28,uVar6,local_78)" ( identifier , identifier , identifier ))) ;) (expression_statement "local_28[1] = *__haystack_00;" (assignment_expression "local_28[1] = *__haystack_00" (subscript_expression "local_28[1]" identifier [ number_literal ]) = (pointer_expression "*__haystack_00" * identifier)) ;) (expression_statement "wmove(DAT_0007b658,2,0);" (call_expression "wmove(DAT_0007b658,2,0)" identifier (argument_list "(DAT_0007b658,2,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "uVar6 = dcgettext(0,&DAT_0005fe0d,5);" (assignment_expression "uVar6 = dcgettext(0,&DAT_0005fe0d,5)" identifier = (call_expression "dcgettext(0,&DAT_0005fe0d,5)" identifier (argument_list "(0,&DAT_0005fe0d,5)" ( number_literal , (pointer_expression "&DAT_0005fe0d" & identifier) , number_literal )))) ;) (expression_statement "FUN_000417a0(local_28,uVar6,local_78);" (call_expression "FUN_000417a0(local_28,uVar6,local_78)" identifier (argument_list "(local_28,uVar6,local_78)" ( identifier , identifier , identifier ))) ;) (if_statement "if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }" { (expression_statement "local_28[1] = *__haystack_01;" (assignment_expression "local_28[1] = *__haystack_01" (subscript_expression "local_28[1]" identifier [ number_literal ]) = (pointer_expression "*__haystack_01" * identifier)) ;) (expression_statement "wmove(DAT_0007b658,1,local_78);" (call_expression "wmove(DAT_0007b658,1,local_78)" identifier (argument_list "(DAT_0007b658,1,local_78)" ( identifier , number_literal , identifier ))) ;) (expression_statement "uVar6 = dcgettext(0,&DAT_0005fe10,5);" (assignment_expression "uVar6 = dcgettext(0,&DAT_0005fe10,5)" identifier = (call_expression "dcgettext(0,&DAT_0005fe10,5)" identifier (argument_list "(0,&DAT_0005fe10,5)" ( number_literal , (pointer_expression "&DAT_0005fe10" & identifier) , number_literal )))) ;) (expression_statement "FUN_000417a0(local_28,uVar6,local_78);" (call_expression "FUN_000417a0(local_28,uVar6,local_78)" identifier (argument_list "(local_28,uVar6,local_78)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "wmove(DAT_0007b658,2,local_78);" (call_expression "wmove(DAT_0007b658,2,local_78)" identifier (argument_list "(DAT_0007b658,2,local_78)" ( identifier , number_literal , identifier ))) ;) (expression_statement "uVar6 = dcgettext(0,"Cancel",5);" (assignment_expression "uVar6 = dcgettext(0,"Cancel",5)" identifier = (call_expression "dcgettext(0,"Cancel",5)" identifier (argument_list "(0,"Cancel",5)" ( number_literal , (string_literal ""Cancel"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_000417a0(*puVar9,uVar6,local_78);" (call_expression "FUN_000417a0(*puVar9,uVar6,local_78)" identifier (argument_list "(*puVar9,uVar6,local_78)" ( (pointer_expression "*puVar9" * identifier) , identifier , identifier ))) ;) })) (expression_statement "wattr_on(DAT_0007b658,DAT_0007b59c,0);" (call_expression "wattr_on(DAT_0007b658,DAT_0007b59c,0)" identifier (argument_list "(DAT_0007b658,DAT_0007b59c,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_0003fd30();" (call_expression "FUN_0003fd30()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = wmove(DAT_0007b658,0,0);" (assignment_expression "iVar5 = wmove(DAT_0007b658,0,0)" identifier = (call_expression "wmove(DAT_0007b658,0,0)" identifier (argument_list "(DAT_0007b658,0,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }" if (parenthesized_expression "(iVar5 != -1)" ( (binary_expression "iVar5 != -1" identifier != number_literal) )) (compound_statement "{\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }" { (expression_statement "uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);" (assignment_expression "uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1)" identifier = (call_expression "FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1)" identifier (argument_list "(param_2,*(int *)PTR_COLS_0007af78 + -1)" ( identifier , (binary_expression "*(int *)PTR_COLS_0007af78 + -1" (pointer_expression "*(int *)PTR_COLS_0007af78" * (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ;) (expression_statement "waddnstr(DAT_0007b658,param_2,uVar6);" (call_expression "waddnstr(DAT_0007b658,param_2,uVar6)" identifier (argument_list "(DAT_0007b658,param_2,uVar6)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "wattr_off(DAT_0007b658,DAT_0007b59c,0);" (call_expression "wattr_off(DAT_0007b658,DAT_0007b59c,0)" identifier (argument_list "(DAT_0007b658,DAT_0007b59c,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "wnoutrefresh(DAT_0007b658);" (call_expression "wnoutrefresh(DAT_0007b658)" identifier (argument_list "(DAT_0007b658)" ( identifier ))) ;) (expression_statement "DAT_0007b064 = 0x2000;" (assignment_expression "DAT_0007b064 = 0x2000" identifier = number_literal) ;) (expression_statement "local_34 = FUN_00045910(DAT_0007b658,bVar3);" (assignment_expression "local_34 = FUN_00045910(DAT_0007b658,bVar3)" identifier = (call_expression "FUN_00045910(DAT_0007b658,bVar3)" identifier (argument_list "(DAT_0007b658,bVar3)" ( identifier , identifier )))) ;) (expression_statement "local_28[0] = (char)local_34;" (assignment_expression "local_28[0] = (char)local_34" (subscript_expression "local_28[0]" identifier [ number_literal ]) = (cast_expression "(char)local_34" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "cVar4 = FUN_00017870();" (assignment_expression "cVar4 = FUN_00017870()" identifier = (call_expression "FUN_00017870()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }" if (parenthesized_expression "((cVar4 != '\0') && (local_34 - 0xc0U < 0x38))" ( (binary_expression "(cVar4 != '\0') && (local_34 - 0xc0U < 0x38)" (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(local_34 - 0xc0U < 0x38)" ( (binary_expression "local_34 - 0xc0U < 0x38" (binary_expression "local_34 - 0xc0U" identifier - number_literal) < number_literal) ))) )) (compound_statement "{\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }" { (expression_statement "uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);" (assignment_expression "uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0)" identifier = (binary_expression "(local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0)" (parenthesized_expression "(local_34 >> 4 & 3U)" ( (binary_expression "local_34 >> 4 & 3U" (binary_expression "local_34 >> 4" identifier >> number_literal) & number_literal) )) + (call_expression "(uint)(local_34 < 0xd0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_34 < 0xd0)" ( (binary_expression "local_34 < 0xd0" identifier < number_literal) ))))) ;) (while_statement "while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }" while (parenthesized_expression "((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff)))" ( (parenthesized_expression "(uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))" ( (comma_expression "uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff)" (assignment_expression "uVar10 = FUN_0003e7b0()" identifier = (call_expression "FUN_0003e7b0()" identifier (argument_list "()" ( )))) , (binary_expression "uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff)" (binary_expression "uVar11 <= uVar10" identifier <= identifier) && (parenthesized_expression "(uVar11 = uVar11 - 1, uVar11 != 0xffffffff)" ( (comma_expression "uVar11 = uVar11 - 1, uVar11 != 0xffffffff" (assignment_expression "uVar11 = uVar11 - 1" identifier = (binary_expression "uVar11 - 1" identifier - number_literal)) , (binary_expression "uVar11 != 0xffffffff" identifier != number_literal)) )))) )) )) (compound_statement "{\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }" { (expression_statement "cVar4 = FUN_00045910(DAT_0007b658,bVar3);" (assignment_expression "cVar4 = FUN_00045910(DAT_0007b658,bVar3)" identifier = (call_expression "FUN_00045910(DAT_0007b658,bVar3)" identifier (argument_list "(DAT_0007b658,bVar3)" ( identifier , identifier )))) ;) (expression_statement "local_28[iVar5] = cVar4;" (assignment_expression "local_28[iVar5] = cVar4" (subscript_expression "local_28[iVar5]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) })) })) (expression_statement "local_28[iVar5] = '\0';" (assignment_expression "local_28[iVar5] = '\0'" (subscript_expression "local_28[iVar5]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar7 = strstr(__haystack,local_28);" (assignment_expression "pcVar7 = strstr(__haystack,local_28)" identifier = (call_expression "strstr(__haystack,local_28)" identifier (argument_list "(__haystack,local_28)" ( identifier , identifier )))) ;) (if_statement "if (pcVar7 != (char *)0x0) break;" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar7 = strstr(__haystack_00,local_28);" (assignment_expression "pcVar7 = strstr(__haystack_00,local_28)" identifier = (call_expression "strstr(__haystack_00,local_28)" identifier (argument_list "(__haystack_00,local_28)" ( identifier , identifier )))) ;) (if_statement "if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }" { (labeled_statement "LAB_00030010:\n      iVar5 = 0;" statement_identifier : (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })) (if_statement "if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }" if (parenthesized_expression "((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0))" ( (binary_expression "(param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)" ( (comma_expression "pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0" (assignment_expression "pcVar7 = strstr(__haystack_01,local_28)" identifier = (call_expression "strstr(__haystack_01,local_28)" identifier (argument_list "(__haystack_01,local_28)" ( identifier , identifier )))) , (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }" { (labeled_statement "LAB_00030018:\n      iVar5 = 2;" statement_identifier : (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;)) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })) (expression_statement "iVar5 = local_34;" (assignment_expression "iVar5 = local_34" identifier = identifier) ;) (expression_statement "pcVar7 = strchr("Yy",local_34);" (assignment_expression "pcVar7 = strchr("Yy",local_34)" identifier = (call_expression "strchr("Yy",local_34)" identifier (argument_list "("Yy",local_34)" ( (string_literal ""Yy"" " string_content ") , identifier )))) ;) (if_statement "if (pcVar7 != (char *)0x0) break;" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar7 = strchr("Nn",iVar5);" (assignment_expression "pcVar7 = strchr("Nn",iVar5)" identifier = (call_expression "strchr("Nn",iVar5)" identifier (argument_list "("Nn",iVar5)" ( (string_literal ""Nn"" " string_content ") , identifier )))) ;) (if_statement "if (pcVar7 != (char *)0x0) goto LAB_00030010;" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00030010;" goto statement_identifier ;)) (if_statement "if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;" if (parenthesized_expression "((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0))" ( (binary_expression "(param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)" ( (comma_expression "pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0" (assignment_expression "pcVar7 = strchr("Aa",iVar5)" identifier = (call_expression "strchr("Aa",iVar5)" identifier (argument_list "("Aa",iVar5)" ( (string_literal ""Aa"" " string_content ") , identifier )))) , (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_00030018;" goto statement_identifier ;)) (expression_statement "puVar8 = (undefined *)FUN_00020810(&local_34);" (assignment_expression "puVar8 = (undefined *)FUN_00020810(&local_34)" identifier = (cast_expression "(undefined *)FUN_00020810(&local_34)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00020810(&local_34)" identifier (argument_list "(&local_34)" ( (pointer_expression "&local_34" & identifier) ))))) ;) (if_statement "if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }" if (parenthesized_expression "(puVar8 == PTR_FUN_0007af2c)" ( (binary_expression "puVar8 == PTR_FUN_0007af2c" identifier == identifier) )) (compound_statement "{\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })) (expression_statement "piVar2 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }" if (parenthesized_expression "(local_34 == 0x199)" ( (binary_expression "local_34 == 0x199" identifier == number_literal) )) (compound_statement "{\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }" { (expression_statement "iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);" (assignment_expression "iVar5 = FUN_0003f7d0(&local_2c,&local_30,0)" identifier = (call_expression "FUN_0003f7d0(&local_2c,&local_30,0)" identifier (argument_list "(&local_2c,&local_30,0)" ( (pointer_expression "&local_2c" & identifier) , (pointer_expression "&local_30" & identifier) , number_literal )))) ;) (expression_statement "piVar2 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }" if (parenthesized_expression "(((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2))" ( (binary_expression "((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)" (parenthesized_expression "((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0))))))" ( (binary_expression "(((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))" (parenthesized_expression "(((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2))" ( (binary_expression "((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)" (parenthesized_expression "((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0'))" ( (binary_expression "(iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')" (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) && (parenthesized_expression "(cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')" ( (comma_expression "cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0'" (assignment_expression "cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0)" identifier = (call_expression "wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0)" identifier (argument_list "(DAT_0007b658,&local_2c,&local_30,0)" ( identifier , (pointer_expression "&local_2c" & identifier) , (pointer_expression "&local_30" & identifier) , number_literal )))) , (comma_expression "piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0'" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')))) ))) )) && (parenthesized_expression "(local_30 < local_78 * 2)" ( (binary_expression "local_30 < local_78 * 2" identifier < (binary_expression "local_78 * 2" identifier * number_literal)) ))) )) && (parenthesized_expression "((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))" ( (parenthesized_expression "(0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0))))" ( (binary_expression "0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))" (binary_expression "0 < local_2c" number_literal < identifier) && (parenthesized_expression "((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))" ( (parenthesized_expression "(iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0))" ( (comma_expression "iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)" (assignment_expression "iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1" identifier = (binary_expression "((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1" (parenthesized_expression "((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1))" ( (binary_expression "(local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)" (parenthesized_expression "(local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2)" ( (binary_expression "local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2" (binary_expression "local_30 / local_78" identifier / identifier) + (binary_expression "(local_30 / local_78) * (local_2c + -1) * -2" (binary_expression "(local_30 / local_78) * (local_2c + -1)" (parenthesized_expression "(local_30 / local_78)" ( (binary_expression "local_30 / local_78" identifier / identifier) )) * (parenthesized_expression "(local_2c + -1)" ( (binary_expression "local_2c + -1" identifier + number_literal) ))) * number_literal)) )) - (parenthesized_expression "(local_2c + -1)" ( (binary_expression "local_2c + -1" identifier + number_literal) ))) )) + number_literal)) , (binary_expression "iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)" (binary_expression "iVar5 != 2" identifier != number_literal) || (parenthesized_expression "(piVar2 = piVar1, bVar3 == 0)" ( (comma_expression "piVar2 = piVar1, bVar3 == 0" (assignment_expression "piVar2 = piVar1" identifier = identifier) , (binary_expression "bVar3 == 0" identifier == number_literal)) )))) )) ))) )) ))) )) && (parenthesized_expression "(piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)" ( (comma_expression "piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "iVar5 != -2" identifier != number_literal)) ))) )) (compound_statement "{\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }" { (labeled_statement "LAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          FUN_0005a8b0();\n        }" { comment (expression_statement "FUN_0005a8b0();" (call_expression "FUN_0005a8b0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar5;" return identifier ;) })) })) })) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint do_yesno_prompt(_Bool all,char *msg)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  bool showcursor;\n  _Bool _Var4;\n  char cVar5;\n  char *__haystack;\n  char *__haystack_00;\n  char *__haystack_01;\n  int iVar6;\n  size_t sVar7;\n  char *pcVar8;\n  functionptrtype p_Var9;\n  sc *psVar10;\n  int iVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  int local_78;\n  int kbinput;\n  int mouse_x;\n  int mouse_y;\n  char letter [7];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);\n  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);\n  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);\n  showcursor = !all;\n  local_78 = 0x10;\n  piVar3 = (int *)PTR_COLS_0007af78;\n  while( true ) {\n    piVar2 = piVar3;\n    if (((byte)flags[0] & 8) == 0) {\n      psVar10 = first_sc_for(0x2000,do_cancel);\n      iVar6 = *piVar2;\n      if (iVar6 < 0x20) {\n        local_78 = iVar6 / 2;\n      }\n      blank_bottombars();\n      __sprintf_chk(letter,1,8," %c",(int)*__haystack);\n      wmove(bottomwin,1,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe09,5);\n      post_one_key(letter,pcVar8,local_78);\n      letter[1] = *__haystack_00;\n      wmove(bottomwin,2,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe0d,5);\n      post_one_key(letter,pcVar8,local_78);\n      if (all) {\n        letter[1] = *__haystack_01;\n        wmove(bottomwin,1,local_78);\n        pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5);\n        post_one_key(letter,pcVar8,local_78);\n      }\n      wmove(bottomwin,2,local_78);\n      pcVar8 = (char *)dcgettext(0,"Cancel",5);\n      post_one_key(psVar10->keystr,pcVar8,local_78);\n    }\n    wattr_on(bottomwin,interface_color_pair[0],0);\n    blank_statusbar();\n    iVar6 = wmove(bottomwin,0,0);\n    if (iVar6 != -1) {\n      sVar7 = actual_x(msg,*(int *)PTR_COLS_0007af78 - 1);\n      waddnstr(bottomwin,msg,sVar7);\n    }\n    iVar6 = 1;\n    wattr_off(bottomwin,interface_color_pair[0],0);\n    wnoutrefresh(bottomwin);\n    currmenu = 0x2000;\n    kbinput = get_kbinput(bottomwin,showcursor);\n    letter[0] = (char)kbinput;\n    _Var4 = using_utf8();\n    if ((_Var4) && (kbinput - 0xc0U < 0x38)) {\n      uVar12 = (kbinput >> 4 & 3U) + (uint)(kbinput < 0xd0);\n      while ((sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff))) {\n        iVar11 = get_kbinput(bottomwin,showcursor);\n        letter[iVar6] = (char)iVar11;\n        iVar6 = iVar6 + 1;\n      }\n    }\n    letter[iVar6] = '\0';\n    pcVar8 = strstr(__haystack,letter);\n    if (pcVar8 != (char *)0x0) break;\n    pcVar8 = strstr(__haystack_00,letter);\n    if (pcVar8 != (char *)0x0) {\nLAB_00030010:\n      iVar6 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((all) && (pcVar8 = strstr(__haystack_01,letter), pcVar8 != (char *)0x0)) {\nLAB_00030018:\n      iVar6 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar6 = kbinput;\n    pcVar8 = strchr("Yy",kbinput);\n    if (pcVar8 != (char *)0x0) break;\n    pcVar8 = strchr("Nn",iVar6);\n    if (pcVar8 != (char *)0x0) goto LAB_00030010;\n    if ((all) && (pcVar8 = strchr("Aa",iVar6), pcVar8 != (char *)0x0)) goto LAB_00030018;\n    p_Var9 = func_from_key(&kbinput);\n    if (p_Var9 == (functionptrtype)PTR_do_cancel_0007af2c) {\n      iVar6 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar3 = (int *)PTR_COLS_0007af78;\n    if (kbinput == 0x199) {\n      iVar6 = get_mouseinput(&mouse_y,&mouse_x,false);\n      piVar3 = (int *)PTR_COLS_0007af78;\n      if (((((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))) &&\n         (piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2)) {\nLAB_0002fff5:\n        if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }\n        return iVar6;\n      }\n    }\n  }\n  iVar6 = 1;\n  goto LAB_0002fff5;\n}\n\n" comment comment (function_definition "int do_yesno_prompt(_Bool all,char *msg)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  bool showcursor;\n  _Bool _Var4;\n  char cVar5;\n  char *__haystack;\n  char *__haystack_00;\n  char *__haystack_01;\n  int iVar6;\n  size_t sVar7;\n  char *pcVar8;\n  functionptrtype p_Var9;\n  sc *psVar10;\n  int iVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  int local_78;\n  int kbinput;\n  int mouse_x;\n  int mouse_y;\n  char letter [7];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);\n  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);\n  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);\n  showcursor = !all;\n  local_78 = 0x10;\n  piVar3 = (int *)PTR_COLS_0007af78;\n  while( true ) {\n    piVar2 = piVar3;\n    if (((byte)flags[0] & 8) == 0) {\n      psVar10 = first_sc_for(0x2000,do_cancel);\n      iVar6 = *piVar2;\n      if (iVar6 < 0x20) {\n        local_78 = iVar6 / 2;\n      }\n      blank_bottombars();\n      __sprintf_chk(letter,1,8," %c",(int)*__haystack);\n      wmove(bottomwin,1,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe09,5);\n      post_one_key(letter,pcVar8,local_78);\n      letter[1] = *__haystack_00;\n      wmove(bottomwin,2,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe0d,5);\n      post_one_key(letter,pcVar8,local_78);\n      if (all) {\n        letter[1] = *__haystack_01;\n        wmove(bottomwin,1,local_78);\n        pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5);\n        post_one_key(letter,pcVar8,local_78);\n      }\n      wmove(bottomwin,2,local_78);\n      pcVar8 = (char *)dcgettext(0,"Cancel",5);\n      post_one_key(psVar10->keystr,pcVar8,local_78);\n    }\n    wattr_on(bottomwin,interface_color_pair[0],0);\n    blank_statusbar();\n    iVar6 = wmove(bottomwin,0,0);\n    if (iVar6 != -1) {\n      sVar7 = actual_x(msg,*(int *)PTR_COLS_0007af78 - 1);\n      waddnstr(bottomwin,msg,sVar7);\n    }\n    iVar6 = 1;\n    wattr_off(bottomwin,interface_color_pair[0],0);\n    wnoutrefresh(bottomwin);\n    currmenu = 0x2000;\n    kbinput = get_kbinput(bottomwin,showcursor);\n    letter[0] = (char)kbinput;\n    _Var4 = using_utf8();\n    if ((_Var4) && (kbinput - 0xc0U < 0x38)) {\n      uVar12 = (kbinput >> 4 & 3U) + (uint)(kbinput < 0xd0);\n      while ((sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff))) {\n        iVar11 = get_kbinput(bottomwin,showcursor);\n        letter[iVar6] = (char)iVar11;\n        iVar6 = iVar6 + 1;\n      }\n    }\n    letter[iVar6] = '\0';\n    pcVar8 = strstr(__haystack,letter);\n    if (pcVar8 != (char *)0x0) break;\n    pcVar8 = strstr(__haystack_00,letter);\n    if (pcVar8 != (char *)0x0) {\nLAB_00030010:\n      iVar6 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((all) && (pcVar8 = strstr(__haystack_01,letter), pcVar8 != (char *)0x0)) {\nLAB_00030018:\n      iVar6 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar6 = kbinput;\n    pcVar8 = strchr("Yy",kbinput);\n    if (pcVar8 != (char *)0x0) break;\n    pcVar8 = strchr("Nn",iVar6);\n    if (pcVar8 != (char *)0x0) goto LAB_00030010;\n    if ((all) && (pcVar8 = strchr("Aa",iVar6), pcVar8 != (char *)0x0)) goto LAB_00030018;\n    p_Var9 = func_from_key(&kbinput);\n    if (p_Var9 == (functionptrtype)PTR_do_cancel_0007af2c) {\n      iVar6 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar3 = (int *)PTR_COLS_0007af78;\n    if (kbinput == 0x199) {\n      iVar6 = get_mouseinput(&mouse_y,&mouse_x,false);\n      piVar3 = (int *)PTR_COLS_0007af78;\n      if (((((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))) &&\n         (piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2)) {\nLAB_0002fff5:\n        if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }\n        return iVar6;\n      }\n    }\n  }\n  iVar6 = 1;\n  goto LAB_0002fff5;\n}" primitive_type (function_declarator "do_yesno_prompt(_Bool all,char *msg)" identifier (parameter_list "(_Bool all,char *msg)" ( (parameter_declaration "_Bool all" type_identifier identifier) , (parameter_declaration "char *msg" primitive_type (pointer_declarator "*msg" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  bool showcursor;\n  _Bool _Var4;\n  char cVar5;\n  char *__haystack;\n  char *__haystack_00;\n  char *__haystack_01;\n  int iVar6;\n  size_t sVar7;\n  char *pcVar8;\n  functionptrtype p_Var9;\n  sc *psVar10;\n  int iVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  int local_78;\n  int kbinput;\n  int mouse_x;\n  int mouse_y;\n  char letter [7];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);\n  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);\n  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);\n  showcursor = !all;\n  local_78 = 0x10;\n  piVar3 = (int *)PTR_COLS_0007af78;\n  while( true ) {\n    piVar2 = piVar3;\n    if (((byte)flags[0] & 8) == 0) {\n      psVar10 = first_sc_for(0x2000,do_cancel);\n      iVar6 = *piVar2;\n      if (iVar6 < 0x20) {\n        local_78 = iVar6 / 2;\n      }\n      blank_bottombars();\n      __sprintf_chk(letter,1,8," %c",(int)*__haystack);\n      wmove(bottomwin,1,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe09,5);\n      post_one_key(letter,pcVar8,local_78);\n      letter[1] = *__haystack_00;\n      wmove(bottomwin,2,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe0d,5);\n      post_one_key(letter,pcVar8,local_78);\n      if (all) {\n        letter[1] = *__haystack_01;\n        wmove(bottomwin,1,local_78);\n        pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5);\n        post_one_key(letter,pcVar8,local_78);\n      }\n      wmove(bottomwin,2,local_78);\n      pcVar8 = (char *)dcgettext(0,"Cancel",5);\n      post_one_key(psVar10->keystr,pcVar8,local_78);\n    }\n    wattr_on(bottomwin,interface_color_pair[0],0);\n    blank_statusbar();\n    iVar6 = wmove(bottomwin,0,0);\n    if (iVar6 != -1) {\n      sVar7 = actual_x(msg,*(int *)PTR_COLS_0007af78 - 1);\n      waddnstr(bottomwin,msg,sVar7);\n    }\n    iVar6 = 1;\n    wattr_off(bottomwin,interface_color_pair[0],0);\n    wnoutrefresh(bottomwin);\n    currmenu = 0x2000;\n    kbinput = get_kbinput(bottomwin,showcursor);\n    letter[0] = (char)kbinput;\n    _Var4 = using_utf8();\n    if ((_Var4) && (kbinput - 0xc0U < 0x38)) {\n      uVar12 = (kbinput >> 4 & 3U) + (uint)(kbinput < 0xd0);\n      while ((sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff))) {\n        iVar11 = get_kbinput(bottomwin,showcursor);\n        letter[iVar6] = (char)iVar11;\n        iVar6 = iVar6 + 1;\n      }\n    }\n    letter[iVar6] = '\0';\n    pcVar8 = strstr(__haystack,letter);\n    if (pcVar8 != (char *)0x0) break;\n    pcVar8 = strstr(__haystack_00,letter);\n    if (pcVar8 != (char *)0x0) {\nLAB_00030010:\n      iVar6 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((all) && (pcVar8 = strstr(__haystack_01,letter), pcVar8 != (char *)0x0)) {\nLAB_00030018:\n      iVar6 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar6 = kbinput;\n    pcVar8 = strchr("Yy",kbinput);\n    if (pcVar8 != (char *)0x0) break;\n    pcVar8 = strchr("Nn",iVar6);\n    if (pcVar8 != (char *)0x0) goto LAB_00030010;\n    if ((all) && (pcVar8 = strchr("Aa",iVar6), pcVar8 != (char *)0x0)) goto LAB_00030018;\n    p_Var9 = func_from_key(&kbinput);\n    if (p_Var9 == (functionptrtype)PTR_do_cancel_0007af2c) {\n      iVar6 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar3 = (int *)PTR_COLS_0007af78;\n    if (kbinput == 0x199) {\n      iVar6 = get_mouseinput(&mouse_y,&mouse_x,false);\n      piVar3 = (int *)PTR_COLS_0007af78;\n      if (((((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))) &&\n         (piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2)) {\nLAB_0002fff5:\n        if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }\n        return iVar6;\n      }\n    }\n  }\n  iVar6 = 1;\n  goto LAB_0002fff5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "bool showcursor;" primitive_type identifier ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "char *__haystack;" primitive_type (pointer_declarator "*__haystack" * identifier) ;) (declaration "char *__haystack_00;" primitive_type (pointer_declarator "*__haystack_00" * identifier) ;) (declaration "char *__haystack_01;" primitive_type (pointer_declarator "*__haystack_01" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "functionptrtype p_Var9;" type_identifier identifier ;) (declaration "sc *psVar10;" type_identifier (pointer_declarator "*psVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_78;" primitive_type identifier ;) (declaration "int kbinput;" primitive_type identifier ;) (declaration "int mouse_x;" primitive_type identifier ;) (declaration "int mouse_y;" primitive_type identifier ;) (declaration "char letter [7];" primitive_type (array_declarator "letter [7]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__haystack = (char *)dcgettext(0,&DAT_0005fe00,5);" (assignment_expression "__haystack = (char *)dcgettext(0,&DAT_0005fe00,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe00,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe00,5)" identifier (argument_list "(0,&DAT_0005fe00,5)" ( number_literal , (pointer_expression "&DAT_0005fe00" & identifier) , number_literal ))))) ;) (expression_statement "__haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);" (assignment_expression "__haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe03,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe03,5)" identifier (argument_list "(0,&DAT_0005fe03,5)" ( number_literal , (pointer_expression "&DAT_0005fe03" & identifier) , number_literal ))))) ;) (expression_statement "__haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);" (assignment_expression "__haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe06,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe06,5)" identifier (argument_list "(0,&DAT_0005fe06,5)" ( number_literal , (pointer_expression "&DAT_0005fe06" & identifier) , number_literal ))))) ;) (expression_statement "showcursor = !all;" (assignment_expression "showcursor = !all" identifier = (unary_expression "!all" ! identifier)) ;) (expression_statement "local_78 = 0x10;" (assignment_expression "local_78 = 0x10" identifier = number_literal) ;) (expression_statement "piVar3 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar3 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while( true ) {\n    piVar2 = piVar3;\n    if (((byte)flags[0] & 8) == 0) {\n      psVar10 = first_sc_for(0x2000,do_cancel);\n      iVar6 = *piVar2;\n      if (iVar6 < 0x20) {\n        local_78 = iVar6 / 2;\n      }\n      blank_bottombars();\n      __sprintf_chk(letter,1,8," %c",(int)*__haystack);\n      wmove(bottomwin,1,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe09,5);\n      post_one_key(letter,pcVar8,local_78);\n      letter[1] = *__haystack_00;\n      wmove(bottomwin,2,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe0d,5);\n      post_one_key(letter,pcVar8,local_78);\n      if (all) {\n        letter[1] = *__haystack_01;\n        wmove(bottomwin,1,local_78);\n        pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5);\n        post_one_key(letter,pcVar8,local_78);\n      }\n      wmove(bottomwin,2,local_78);\n      pcVar8 = (char *)dcgettext(0,"Cancel",5);\n      post_one_key(psVar10->keystr,pcVar8,local_78);\n    }\n    wattr_on(bottomwin,interface_color_pair[0],0);\n    blank_statusbar();\n    iVar6 = wmove(bottomwin,0,0);\n    if (iVar6 != -1) {\n      sVar7 = actual_x(msg,*(int *)PTR_COLS_0007af78 - 1);\n      waddnstr(bottomwin,msg,sVar7);\n    }\n    iVar6 = 1;\n    wattr_off(bottomwin,interface_color_pair[0],0);\n    wnoutrefresh(bottomwin);\n    currmenu = 0x2000;\n    kbinput = get_kbinput(bottomwin,showcursor);\n    letter[0] = (char)kbinput;\n    _Var4 = using_utf8();\n    if ((_Var4) && (kbinput - 0xc0U < 0x38)) {\n      uVar12 = (kbinput >> 4 & 3U) + (uint)(kbinput < 0xd0);\n      while ((sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff))) {\n        iVar11 = get_kbinput(bottomwin,showcursor);\n        letter[iVar6] = (char)iVar11;\n        iVar6 = iVar6 + 1;\n      }\n    }\n    letter[iVar6] = '\0';\n    pcVar8 = strstr(__haystack,letter);\n    if (pcVar8 != (char *)0x0) break;\n    pcVar8 = strstr(__haystack_00,letter);\n    if (pcVar8 != (char *)0x0) {\nLAB_00030010:\n      iVar6 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((all) && (pcVar8 = strstr(__haystack_01,letter), pcVar8 != (char *)0x0)) {\nLAB_00030018:\n      iVar6 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar6 = kbinput;\n    pcVar8 = strchr("Yy",kbinput);\n    if (pcVar8 != (char *)0x0) break;\n    pcVar8 = strchr("Nn",iVar6);\n    if (pcVar8 != (char *)0x0) goto LAB_00030010;\n    if ((all) && (pcVar8 = strchr("Aa",iVar6), pcVar8 != (char *)0x0)) goto LAB_00030018;\n    p_Var9 = func_from_key(&kbinput);\n    if (p_Var9 == (functionptrtype)PTR_do_cancel_0007af2c) {\n      iVar6 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar3 = (int *)PTR_COLS_0007af78;\n    if (kbinput == 0x199) {\n      iVar6 = get_mouseinput(&mouse_y,&mouse_x,false);\n      piVar3 = (int *)PTR_COLS_0007af78;\n      if (((((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))) &&\n         (piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2)) {\nLAB_0002fff5:\n        if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }\n        return iVar6;\n      }\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    piVar2 = piVar3;\n    if (((byte)flags[0] & 8) == 0) {\n      psVar10 = first_sc_for(0x2000,do_cancel);\n      iVar6 = *piVar2;\n      if (iVar6 < 0x20) {\n        local_78 = iVar6 / 2;\n      }\n      blank_bottombars();\n      __sprintf_chk(letter,1,8," %c",(int)*__haystack);\n      wmove(bottomwin,1,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe09,5);\n      post_one_key(letter,pcVar8,local_78);\n      letter[1] = *__haystack_00;\n      wmove(bottomwin,2,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe0d,5);\n      post_one_key(letter,pcVar8,local_78);\n      if (all) {\n        letter[1] = *__haystack_01;\n        wmove(bottomwin,1,local_78);\n        pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5);\n        post_one_key(letter,pcVar8,local_78);\n      }\n      wmove(bottomwin,2,local_78);\n      pcVar8 = (char *)dcgettext(0,"Cancel",5);\n      post_one_key(psVar10->keystr,pcVar8,local_78);\n    }\n    wattr_on(bottomwin,interface_color_pair[0],0);\n    blank_statusbar();\n    iVar6 = wmove(bottomwin,0,0);\n    if (iVar6 != -1) {\n      sVar7 = actual_x(msg,*(int *)PTR_COLS_0007af78 - 1);\n      waddnstr(bottomwin,msg,sVar7);\n    }\n    iVar6 = 1;\n    wattr_off(bottomwin,interface_color_pair[0],0);\n    wnoutrefresh(bottomwin);\n    currmenu = 0x2000;\n    kbinput = get_kbinput(bottomwin,showcursor);\n    letter[0] = (char)kbinput;\n    _Var4 = using_utf8();\n    if ((_Var4) && (kbinput - 0xc0U < 0x38)) {\n      uVar12 = (kbinput >> 4 & 3U) + (uint)(kbinput < 0xd0);\n      while ((sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff))) {\n        iVar11 = get_kbinput(bottomwin,showcursor);\n        letter[iVar6] = (char)iVar11;\n        iVar6 = iVar6 + 1;\n      }\n    }\n    letter[iVar6] = '\0';\n    pcVar8 = strstr(__haystack,letter);\n    if (pcVar8 != (char *)0x0) break;\n    pcVar8 = strstr(__haystack_00,letter);\n    if (pcVar8 != (char *)0x0) {\nLAB_00030010:\n      iVar6 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((all) && (pcVar8 = strstr(__haystack_01,letter), pcVar8 != (char *)0x0)) {\nLAB_00030018:\n      iVar6 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar6 = kbinput;\n    pcVar8 = strchr("Yy",kbinput);\n    if (pcVar8 != (char *)0x0) break;\n    pcVar8 = strchr("Nn",iVar6);\n    if (pcVar8 != (char *)0x0) goto LAB_00030010;\n    if ((all) && (pcVar8 = strchr("Aa",iVar6), pcVar8 != (char *)0x0)) goto LAB_00030018;\n    p_Var9 = func_from_key(&kbinput);\n    if (p_Var9 == (functionptrtype)PTR_do_cancel_0007af2c) {\n      iVar6 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar3 = (int *)PTR_COLS_0007af78;\n    if (kbinput == 0x199) {\n      iVar6 = get_mouseinput(&mouse_y,&mouse_x,false);\n      piVar3 = (int *)PTR_COLS_0007af78;\n      if (((((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))) &&\n         (piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2)) {\nLAB_0002fff5:\n        if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }\n        return iVar6;\n      }\n    }\n  }" { (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" identifier = identifier) ;) (if_statement "if (((byte)flags[0] & 8) == 0) {\n      psVar10 = first_sc_for(0x2000,do_cancel);\n      iVar6 = *piVar2;\n      if (iVar6 < 0x20) {\n        local_78 = iVar6 / 2;\n      }\n      blank_bottombars();\n      __sprintf_chk(letter,1,8," %c",(int)*__haystack);\n      wmove(bottomwin,1,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe09,5);\n      post_one_key(letter,pcVar8,local_78);\n      letter[1] = *__haystack_00;\n      wmove(bottomwin,2,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe0d,5);\n      post_one_key(letter,pcVar8,local_78);\n      if (all) {\n        letter[1] = *__haystack_01;\n        wmove(bottomwin,1,local_78);\n        pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5);\n        post_one_key(letter,pcVar8,local_78);\n      }\n      wmove(bottomwin,2,local_78);\n      pcVar8 = (char *)dcgettext(0,"Cancel",5);\n      post_one_key(psVar10->keystr,pcVar8,local_78);\n    }" if (parenthesized_expression "(((byte)flags[0] & 8) == 0)" ( (binary_expression "((byte)flags[0] & 8) == 0" (parenthesized_expression "((byte)flags[0] & 8)" ( (binary_expression "(byte)flags[0] & 8" (cast_expression "(byte)flags[0]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "flags[0]" identifier [ number_literal ])) & number_literal) )) == number_literal) )) (compound_statement "{\n      psVar10 = first_sc_for(0x2000,do_cancel);\n      iVar6 = *piVar2;\n      if (iVar6 < 0x20) {\n        local_78 = iVar6 / 2;\n      }\n      blank_bottombars();\n      __sprintf_chk(letter,1,8," %c",(int)*__haystack);\n      wmove(bottomwin,1,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe09,5);\n      post_one_key(letter,pcVar8,local_78);\n      letter[1] = *__haystack_00;\n      wmove(bottomwin,2,0);\n      pcVar8 = (char *)dcgettext(0,&DAT_0005fe0d,5);\n      post_one_key(letter,pcVar8,local_78);\n      if (all) {\n        letter[1] = *__haystack_01;\n        wmove(bottomwin,1,local_78);\n        pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5);\n        post_one_key(letter,pcVar8,local_78);\n      }\n      wmove(bottomwin,2,local_78);\n      pcVar8 = (char *)dcgettext(0,"Cancel",5);\n      post_one_key(psVar10->keystr,pcVar8,local_78);\n    }" { (expression_statement "psVar10 = first_sc_for(0x2000,do_cancel);" (assignment_expression "psVar10 = first_sc_for(0x2000,do_cancel)" identifier = (call_expression "first_sc_for(0x2000,do_cancel)" identifier (argument_list "(0x2000,do_cancel)" ( number_literal , identifier )))) ;) (expression_statement "iVar6 = *piVar2;" (assignment_expression "iVar6 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar6 < 0x20) {\n        local_78 = iVar6 / 2;\n      }" if (parenthesized_expression "(iVar6 < 0x20)" ( (binary_expression "iVar6 < 0x20" identifier < number_literal) )) (compound_statement "{\n        local_78 = iVar6 / 2;\n      }" { (expression_statement "local_78 = iVar6 / 2;" (assignment_expression "local_78 = iVar6 / 2" identifier = (binary_expression "iVar6 / 2" identifier / number_literal)) ;) })) (expression_statement "blank_bottombars();" (call_expression "blank_bottombars()" identifier (argument_list "()" ( ))) ;) (expression_statement "__sprintf_chk(letter,1,8," %c",(int)*__haystack);" (call_expression "__sprintf_chk(letter,1,8," %c",(int)*__haystack)" identifier (argument_list "(letter,1,8," %c",(int)*__haystack)" ( identifier , number_literal , number_literal , (string_literal "" %c"" " string_content ") , (cast_expression "(int)*__haystack" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*__haystack" * identifier)) ))) ;) (expression_statement "wmove(bottomwin,1,0);" (call_expression "wmove(bottomwin,1,0)" identifier (argument_list "(bottomwin,1,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pcVar8 = (char *)dcgettext(0,&DAT_0005fe09,5);" (assignment_expression "pcVar8 = (char *)dcgettext(0,&DAT_0005fe09,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe09,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe09,5)" identifier (argument_list "(0,&DAT_0005fe09,5)" ( number_literal , (pointer_expression "&DAT_0005fe09" & identifier) , number_literal ))))) ;) (expression_statement "post_one_key(letter,pcVar8,local_78);" (call_expression "post_one_key(letter,pcVar8,local_78)" identifier (argument_list "(letter,pcVar8,local_78)" ( identifier , identifier , identifier ))) ;) (expression_statement "letter[1] = *__haystack_00;" (assignment_expression "letter[1] = *__haystack_00" (subscript_expression "letter[1]" identifier [ number_literal ]) = (pointer_expression "*__haystack_00" * identifier)) ;) (expression_statement "wmove(bottomwin,2,0);" (call_expression "wmove(bottomwin,2,0)" identifier (argument_list "(bottomwin,2,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pcVar8 = (char *)dcgettext(0,&DAT_0005fe0d,5);" (assignment_expression "pcVar8 = (char *)dcgettext(0,&DAT_0005fe0d,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe0d,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe0d,5)" identifier (argument_list "(0,&DAT_0005fe0d,5)" ( number_literal , (pointer_expression "&DAT_0005fe0d" & identifier) , number_literal ))))) ;) (expression_statement "post_one_key(letter,pcVar8,local_78);" (call_expression "post_one_key(letter,pcVar8,local_78)" identifier (argument_list "(letter,pcVar8,local_78)" ( identifier , identifier , identifier ))) ;) (if_statement "if (all) {\n        letter[1] = *__haystack_01;\n        wmove(bottomwin,1,local_78);\n        pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5);\n        post_one_key(letter,pcVar8,local_78);\n      }" if (parenthesized_expression "(all)" ( identifier )) (compound_statement "{\n        letter[1] = *__haystack_01;\n        wmove(bottomwin,1,local_78);\n        pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5);\n        post_one_key(letter,pcVar8,local_78);\n      }" { (expression_statement "letter[1] = *__haystack_01;" (assignment_expression "letter[1] = *__haystack_01" (subscript_expression "letter[1]" identifier [ number_literal ]) = (pointer_expression "*__haystack_01" * identifier)) ;) (expression_statement "wmove(bottomwin,1,local_78);" (call_expression "wmove(bottomwin,1,local_78)" identifier (argument_list "(bottomwin,1,local_78)" ( identifier , number_literal , identifier ))) ;) (expression_statement "pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5);" (assignment_expression "pcVar8 = (char *)dcgettext(0,&DAT_0005fe10,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe10,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe10,5)" identifier (argument_list "(0,&DAT_0005fe10,5)" ( number_literal , (pointer_expression "&DAT_0005fe10" & identifier) , number_literal ))))) ;) (expression_statement "post_one_key(letter,pcVar8,local_78);" (call_expression "post_one_key(letter,pcVar8,local_78)" identifier (argument_list "(letter,pcVar8,local_78)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "wmove(bottomwin,2,local_78);" (call_expression "wmove(bottomwin,2,local_78)" identifier (argument_list "(bottomwin,2,local_78)" ( identifier , number_literal , identifier ))) ;) (expression_statement "pcVar8 = (char *)dcgettext(0,"Cancel",5);" (assignment_expression "pcVar8 = (char *)dcgettext(0,"Cancel",5)" identifier = (cast_expression "(char *)dcgettext(0,"Cancel",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Cancel",5)" identifier (argument_list "(0,"Cancel",5)" ( number_literal , (string_literal ""Cancel"" " string_content ") , number_literal ))))) ;) (expression_statement "post_one_key(psVar10->keystr,pcVar8,local_78);" (call_expression "post_one_key(psVar10->keystr,pcVar8,local_78)" identifier (argument_list "(psVar10->keystr,pcVar8,local_78)" ( (field_expression "psVar10->keystr" identifier -> field_identifier) , identifier , identifier ))) ;) })) (expression_statement "wattr_on(bottomwin,interface_color_pair[0],0);" (call_expression "wattr_on(bottomwin,interface_color_pair[0],0)" identifier (argument_list "(bottomwin,interface_color_pair[0],0)" ( identifier , (subscript_expression "interface_color_pair[0]" identifier [ number_literal ]) , number_literal ))) ;) (expression_statement "blank_statusbar();" (call_expression "blank_statusbar()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = wmove(bottomwin,0,0);" (assignment_expression "iVar6 = wmove(bottomwin,0,0)" identifier = (call_expression "wmove(bottomwin,0,0)" identifier (argument_list "(bottomwin,0,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar6 != -1) {\n      sVar7 = actual_x(msg,*(int *)PTR_COLS_0007af78 - 1);\n      waddnstr(bottomwin,msg,sVar7);\n    }" if (parenthesized_expression "(iVar6 != -1)" ( (binary_expression "iVar6 != -1" identifier != number_literal) )) (compound_statement "{\n      sVar7 = actual_x(msg,*(int *)PTR_COLS_0007af78 - 1);\n      waddnstr(bottomwin,msg,sVar7);\n    }" { (expression_statement "sVar7 = actual_x(msg,*(int *)PTR_COLS_0007af78 - 1);" (assignment_expression "sVar7 = actual_x(msg,*(int *)PTR_COLS_0007af78 - 1)" identifier = (call_expression "actual_x(msg,*(int *)PTR_COLS_0007af78 - 1)" identifier (argument_list "(msg,*(int *)PTR_COLS_0007af78 - 1)" ( identifier , (binary_expression "*(int *)PTR_COLS_0007af78 - 1" (pointer_expression "*(int *)PTR_COLS_0007af78" * (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) - number_literal) )))) ;) (expression_statement "waddnstr(bottomwin,msg,sVar7);" (call_expression "waddnstr(bottomwin,msg,sVar7)" identifier (argument_list "(bottomwin,msg,sVar7)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "wattr_off(bottomwin,interface_color_pair[0],0);" (call_expression "wattr_off(bottomwin,interface_color_pair[0],0)" identifier (argument_list "(bottomwin,interface_color_pair[0],0)" ( identifier , (subscript_expression "interface_color_pair[0]" identifier [ number_literal ]) , number_literal ))) ;) (expression_statement "wnoutrefresh(bottomwin);" (call_expression "wnoutrefresh(bottomwin)" identifier (argument_list "(bottomwin)" ( identifier ))) ;) (expression_statement "currmenu = 0x2000;" (assignment_expression "currmenu = 0x2000" identifier = number_literal) ;) (expression_statement "kbinput = get_kbinput(bottomwin,showcursor);" (assignment_expression "kbinput = get_kbinput(bottomwin,showcursor)" identifier = (call_expression "get_kbinput(bottomwin,showcursor)" identifier (argument_list "(bottomwin,showcursor)" ( identifier , identifier )))) ;) (expression_statement "letter[0] = (char)kbinput;" (assignment_expression "letter[0] = (char)kbinput" (subscript_expression "letter[0]" identifier [ number_literal ]) = (cast_expression "(char)kbinput" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "_Var4 = using_utf8();" (assignment_expression "_Var4 = using_utf8()" identifier = (call_expression "using_utf8()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((_Var4) && (kbinput - 0xc0U < 0x38)) {\n      uVar12 = (kbinput >> 4 & 3U) + (uint)(kbinput < 0xd0);\n      while ((sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff))) {\n        iVar11 = get_kbinput(bottomwin,showcursor);\n        letter[iVar6] = (char)iVar11;\n        iVar6 = iVar6 + 1;\n      }\n    }" if (parenthesized_expression "((_Var4) && (kbinput - 0xc0U < 0x38))" ( (binary_expression "(_Var4) && (kbinput - 0xc0U < 0x38)" (parenthesized_expression "(_Var4)" ( identifier )) && (parenthesized_expression "(kbinput - 0xc0U < 0x38)" ( (binary_expression "kbinput - 0xc0U < 0x38" (binary_expression "kbinput - 0xc0U" identifier - number_literal) < number_literal) ))) )) (compound_statement "{\n      uVar12 = (kbinput >> 4 & 3U) + (uint)(kbinput < 0xd0);\n      while ((sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff))) {\n        iVar11 = get_kbinput(bottomwin,showcursor);\n        letter[iVar6] = (char)iVar11;\n        iVar6 = iVar6 + 1;\n      }\n    }" { (expression_statement "uVar12 = (kbinput >> 4 & 3U) + (uint)(kbinput < 0xd0);" (assignment_expression "uVar12 = (kbinput >> 4 & 3U) + (uint)(kbinput < 0xd0)" identifier = (binary_expression "(kbinput >> 4 & 3U) + (uint)(kbinput < 0xd0)" (parenthesized_expression "(kbinput >> 4 & 3U)" ( (binary_expression "kbinput >> 4 & 3U" (binary_expression "kbinput >> 4" identifier >> number_literal) & number_literal) )) + (call_expression "(uint)(kbinput < 0xd0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(kbinput < 0xd0)" ( (binary_expression "kbinput < 0xd0" identifier < number_literal) ))))) ;) (while_statement "while ((sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff))) {\n        iVar11 = get_kbinput(bottomwin,showcursor);\n        letter[iVar6] = (char)iVar11;\n        iVar6 = iVar6 + 1;\n      }" while (parenthesized_expression "((sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff)))" ( (parenthesized_expression "(sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff))" ( (comma_expression "sVar7 = get_key_buffer_len(), uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff)" (assignment_expression "sVar7 = get_key_buffer_len()" identifier = (call_expression "get_key_buffer_len()" identifier (argument_list "()" ( )))) , (binary_expression "uVar12 <= sVar7 &&\n             (uVar12 = uVar12 - 1, uVar12 != 0xffffffff)" (binary_expression "uVar12 <= sVar7" identifier <= identifier) && (parenthesized_expression "(uVar12 = uVar12 - 1, uVar12 != 0xffffffff)" ( (comma_expression "uVar12 = uVar12 - 1, uVar12 != 0xffffffff" (assignment_expression "uVar12 = uVar12 - 1" identifier = (binary_expression "uVar12 - 1" identifier - number_literal)) , (binary_expression "uVar12 != 0xffffffff" identifier != number_literal)) )))) )) )) (compound_statement "{\n        iVar11 = get_kbinput(bottomwin,showcursor);\n        letter[iVar6] = (char)iVar11;\n        iVar6 = iVar6 + 1;\n      }" { (expression_statement "iVar11 = get_kbinput(bottomwin,showcursor);" (assignment_expression "iVar11 = get_kbinput(bottomwin,showcursor)" identifier = (call_expression "get_kbinput(bottomwin,showcursor)" identifier (argument_list "(bottomwin,showcursor)" ( identifier , identifier )))) ;) (expression_statement "letter[iVar6] = (char)iVar11;" (assignment_expression "letter[iVar6] = (char)iVar11" (subscript_expression "letter[iVar6]" identifier [ identifier ]) = (cast_expression "(char)iVar11" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) })) })) (expression_statement "letter[iVar6] = '\0';" (assignment_expression "letter[iVar6] = '\0'" (subscript_expression "letter[iVar6]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar8 = strstr(__haystack,letter);" (assignment_expression "pcVar8 = strstr(__haystack,letter)" identifier = (call_expression "strstr(__haystack,letter)" identifier (argument_list "(__haystack,letter)" ( identifier , identifier )))) ;) (if_statement "if (pcVar8 != (char *)0x0) break;" if (parenthesized_expression "(pcVar8 != (char *)0x0)" ( (binary_expression "pcVar8 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar8 = strstr(__haystack_00,letter);" (assignment_expression "pcVar8 = strstr(__haystack_00,letter)" identifier = (call_expression "strstr(__haystack_00,letter)" identifier (argument_list "(__haystack_00,letter)" ( identifier , identifier )))) ;) (if_statement "if (pcVar8 != (char *)0x0) {\nLAB_00030010:\n      iVar6 = 0;\n      goto LAB_0002fff5;\n    }" if (parenthesized_expression "(pcVar8 != (char *)0x0)" ( (binary_expression "pcVar8 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00030010:\n      iVar6 = 0;\n      goto LAB_0002fff5;\n    }" { (labeled_statement "LAB_00030010:\n      iVar6 = 0;" statement_identifier : (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })) (if_statement "if ((all) && (pcVar8 = strstr(__haystack_01,letter), pcVar8 != (char *)0x0)) {\nLAB_00030018:\n      iVar6 = 2;\n      goto LAB_0002fff5;\n    }" if (parenthesized_expression "((all) && (pcVar8 = strstr(__haystack_01,letter), pcVar8 != (char *)0x0))" ( (binary_expression "(all) && (pcVar8 = strstr(__haystack_01,letter), pcVar8 != (char *)0x0)" (parenthesized_expression "(all)" ( identifier )) && (parenthesized_expression "(pcVar8 = strstr(__haystack_01,letter), pcVar8 != (char *)0x0)" ( (comma_expression "pcVar8 = strstr(__haystack_01,letter), pcVar8 != (char *)0x0" (assignment_expression "pcVar8 = strstr(__haystack_01,letter)" identifier = (call_expression "strstr(__haystack_01,letter)" identifier (argument_list "(__haystack_01,letter)" ( identifier , identifier )))) , (binary_expression "pcVar8 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\nLAB_00030018:\n      iVar6 = 2;\n      goto LAB_0002fff5;\n    }" { (labeled_statement "LAB_00030018:\n      iVar6 = 2;" statement_identifier : (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" identifier = number_literal) ;)) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })) (expression_statement "iVar6 = kbinput;" (assignment_expression "iVar6 = kbinput" identifier = identifier) ;) (expression_statement "pcVar8 = strchr("Yy",kbinput);" (assignment_expression "pcVar8 = strchr("Yy",kbinput)" identifier = (call_expression "strchr("Yy",kbinput)" identifier (argument_list "("Yy",kbinput)" ( (string_literal ""Yy"" " string_content ") , identifier )))) ;) (if_statement "if (pcVar8 != (char *)0x0) break;" if (parenthesized_expression "(pcVar8 != (char *)0x0)" ( (binary_expression "pcVar8 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar8 = strchr("Nn",iVar6);" (assignment_expression "pcVar8 = strchr("Nn",iVar6)" identifier = (call_expression "strchr("Nn",iVar6)" identifier (argument_list "("Nn",iVar6)" ( (string_literal ""Nn"" " string_content ") , identifier )))) ;) (if_statement "if (pcVar8 != (char *)0x0) goto LAB_00030010;" if (parenthesized_expression "(pcVar8 != (char *)0x0)" ( (binary_expression "pcVar8 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00030010;" goto statement_identifier ;)) (if_statement "if ((all) && (pcVar8 = strchr("Aa",iVar6), pcVar8 != (char *)0x0)) goto LAB_00030018;" if (parenthesized_expression "((all) && (pcVar8 = strchr("Aa",iVar6), pcVar8 != (char *)0x0))" ( (binary_expression "(all) && (pcVar8 = strchr("Aa",iVar6), pcVar8 != (char *)0x0)" (parenthesized_expression "(all)" ( identifier )) && (parenthesized_expression "(pcVar8 = strchr("Aa",iVar6), pcVar8 != (char *)0x0)" ( (comma_expression "pcVar8 = strchr("Aa",iVar6), pcVar8 != (char *)0x0" (assignment_expression "pcVar8 = strchr("Aa",iVar6)" identifier = (call_expression "strchr("Aa",iVar6)" identifier (argument_list "("Aa",iVar6)" ( (string_literal ""Aa"" " string_content ") , identifier )))) , (binary_expression "pcVar8 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_00030018;" goto statement_identifier ;)) (expression_statement "p_Var9 = func_from_key(&kbinput);" (assignment_expression "p_Var9 = func_from_key(&kbinput)" identifier = (call_expression "func_from_key(&kbinput)" identifier (argument_list "(&kbinput)" ( (pointer_expression "&kbinput" & identifier) )))) ;) (if_statement "if (p_Var9 == (functionptrtype)PTR_do_cancel_0007af2c) {\n      iVar6 = -1;\n      goto LAB_0002fff5;\n    }" if (parenthesized_expression "(p_Var9 == (functionptrtype)PTR_do_cancel_0007af2c)" ( (binary_expression "p_Var9 == (functionptrtype)PTR_do_cancel_0007af2c" identifier == (cast_expression "(functionptrtype)PTR_do_cancel_0007af2c" ( (type_descriptor "functionptrtype" type_identifier) ) identifier)) )) (compound_statement "{\n      iVar6 = -1;\n      goto LAB_0002fff5;\n    }" { (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })) (expression_statement "piVar3 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar3 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (kbinput == 0x199) {\n      iVar6 = get_mouseinput(&mouse_y,&mouse_x,false);\n      piVar3 = (int *)PTR_COLS_0007af78;\n      if (((((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))) &&\n         (piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2)) {\nLAB_0002fff5:\n        if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }\n        return iVar6;\n      }\n    }" if (parenthesized_expression "(kbinput == 0x199)" ( (binary_expression "kbinput == 0x199" identifier == number_literal) )) (compound_statement "{\n      iVar6 = get_mouseinput(&mouse_y,&mouse_x,false);\n      piVar3 = (int *)PTR_COLS_0007af78;\n      if (((((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))) &&\n         (piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2)) {\nLAB_0002fff5:\n        if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }\n        return iVar6;\n      }\n    }" { (expression_statement "iVar6 = get_mouseinput(&mouse_y,&mouse_x,false);" (assignment_expression "iVar6 = get_mouseinput(&mouse_y,&mouse_x,false)" identifier = (call_expression "get_mouseinput(&mouse_y,&mouse_x,false)" identifier (argument_list "(&mouse_y,&mouse_x,false)" ( (pointer_expression "&mouse_y" & identifier) , (pointer_expression "&mouse_x" & identifier) , false )))) ;) (expression_statement "piVar3 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar3 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (((((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))) &&\n         (piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2)) {\nLAB_0002fff5:\n        if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }\n        return iVar6;\n      }" if (parenthesized_expression "(((((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))) &&\n         (piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2))" ( (binary_expression "((((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))) &&\n         (piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2)" (parenthesized_expression "((((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor))))))" ( (binary_expression "(((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)) &&\n          ((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))" (parenthesized_expression "(((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2))" ( (binary_expression "((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')) && (mouse_x < local_78 * 2)" (parenthesized_expression "((iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0'))" ( (binary_expression "(iVar6 == 0) &&\n            (cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')" (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) && (parenthesized_expression "(cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0')" ( (comma_expression "cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0), piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0'" (assignment_expression "cVar5 = wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0)" identifier = (call_expression "wmouse_trafo(bottomwin,&mouse_y,&mouse_x,0)" identifier (argument_list "(bottomwin,&mouse_y,&mouse_x,0)" ( identifier , (pointer_expression "&mouse_y" & identifier) , (pointer_expression "&mouse_x" & identifier) , number_literal )))) , (comma_expression "piVar3 = (int *)PTR_COLS_0007af78,\n            cVar5 != '\0'" (assignment_expression "piVar3 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')))) ))) )) && (parenthesized_expression "(mouse_x < local_78 * 2)" ( (binary_expression "mouse_x < local_78 * 2" identifier < (binary_expression "local_78 * 2" identifier * number_literal)) ))) )) && (parenthesized_expression "((0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))))" ( (parenthesized_expression "(0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor))))" ( (binary_expression "0 < mouse_y &&\n           ((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))" (binary_expression "0 < mouse_y" number_literal < identifier) && (parenthesized_expression "((iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)))" ( (parenthesized_expression "(iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor))" ( (comma_expression "iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1, iVar6 != 2 || (piVar3 = piVar2, !showcursor)" (assignment_expression "iVar6 = ((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1" identifier = (binary_expression "((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)) + 1" (parenthesized_expression "((mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1))" ( (binary_expression "(mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2) -\n                     (mouse_y + -1)" (parenthesized_expression "(mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2)" ( (binary_expression "mouse_x / local_78 + (mouse_x / local_78) * (mouse_y + -1) * -2" (binary_expression "mouse_x / local_78" identifier / identifier) + (binary_expression "(mouse_x / local_78) * (mouse_y + -1) * -2" (binary_expression "(mouse_x / local_78) * (mouse_y + -1)" (parenthesized_expression "(mouse_x / local_78)" ( (binary_expression "mouse_x / local_78" identifier / identifier) )) * (parenthesized_expression "(mouse_y + -1)" ( (binary_expression "mouse_y + -1" identifier + number_literal) ))) * number_literal)) )) - (parenthesized_expression "(mouse_y + -1)" ( (binary_expression "mouse_y + -1" identifier + number_literal) ))) )) + number_literal)) , (binary_expression "iVar6 != 2 || (piVar3 = piVar2, !showcursor)" (binary_expression "iVar6 != 2" identifier != number_literal) || (parenthesized_expression "(piVar3 = piVar2, !showcursor)" ( (comma_expression "piVar3 = piVar2, !showcursor" (assignment_expression "piVar3 = piVar2" identifier = identifier) , (unary_expression "!showcursor" ! identifier)) )))) )) ))) )) ))) )) && (parenthesized_expression "(piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2)" ( (comma_expression "piVar3 = (int *)PTR_COLS_0007af78, iVar6 != -2" (assignment_expression "piVar3 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "iVar6 != -2" identifier != number_literal)) ))) )) (compound_statement "{\nLAB_0002fff5:\n        if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }\n        return iVar6;\n      }" { (labeled_statement "LAB_0002fff5:\n        if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          __stack_chk_fail_local();\n        }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar6;" return identifier ;) })) })) })) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })))
(translation_unit "int FUN_0002fb20(byte param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  byte bVar3;\n  char cVar4;\n  char *__haystack;\n  char *__haystack_00;\n  char *__haystack_01;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  int local_78;\n  int local_34;\n  int local_30;\n  int local_2c;\n  char local_28 [8];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2fb29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);\n  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);\n  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);\n  bVar3 = param_1 ^ 1;\n  local_78 = 0x10;\n  piVar2 = (int *)PTR_COLS_0007af78;\n  while( true ) {\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }\n  iVar5 = 1;\n  goto LAB_0002fff5;\n}\n\n" (function_definition "int FUN_0002fb20(byte param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  byte bVar3;\n  char cVar4;\n  char *__haystack;\n  char *__haystack_00;\n  char *__haystack_01;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  int local_78;\n  int local_34;\n  int local_30;\n  int local_2c;\n  char local_28 [8];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2fb29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);\n  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);\n  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);\n  bVar3 = param_1 ^ 1;\n  local_78 = 0x10;\n  piVar2 = (int *)PTR_COLS_0007af78;\n  while( true ) {\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }\n  iVar5 = 1;\n  goto LAB_0002fff5;\n}" primitive_type (function_declarator "FUN_0002fb20(byte param_1,undefined4 param_2)" identifier (parameter_list "(byte param_1,undefined4 param_2)" ( (parameter_declaration "byte param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  byte bVar3;\n  char cVar4;\n  char *__haystack;\n  char *__haystack_00;\n  char *__haystack_01;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  int local_78;\n  int local_34;\n  int local_30;\n  int local_2c;\n  char local_28 [8];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2fb29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);\n  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);\n  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);\n  bVar3 = param_1 ^ 1;\n  local_78 = 0x10;\n  piVar2 = (int *)PTR_COLS_0007af78;\n  while( true ) {\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }\n  iVar5 = 1;\n  goto LAB_0002fff5;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *__haystack;" primitive_type (pointer_declarator "*__haystack" * identifier) ;) (declaration "char *__haystack_00;" primitive_type (pointer_declarator "*__haystack_00" * identifier) ;) (declaration "char *__haystack_01;" primitive_type (pointer_declarator "*__haystack_01" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_78;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "char local_28 [8];" primitive_type (array_declarator "local_28 [8]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2fb29;" (assignment_expression "uStack_14 = 0x2fb29" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__haystack = (char *)dcgettext(0,&DAT_0005fe00,5);" (assignment_expression "__haystack = (char *)dcgettext(0,&DAT_0005fe00,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe00,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe00,5)" identifier (argument_list "(0,&DAT_0005fe00,5)" ( number_literal , (pointer_expression "&DAT_0005fe00" & identifier) , number_literal ))))) ;) (expression_statement "__haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);" (assignment_expression "__haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe03,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe03,5)" identifier (argument_list "(0,&DAT_0005fe03,5)" ( number_literal , (pointer_expression "&DAT_0005fe03" & identifier) , number_literal ))))) ;) (expression_statement "__haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);" (assignment_expression "__haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5)" identifier = (cast_expression "(char *)dcgettext(0,&DAT_0005fe06,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,&DAT_0005fe06,5)" identifier (argument_list "(0,&DAT_0005fe06,5)" ( number_literal , (pointer_expression "&DAT_0005fe06" & identifier) , number_literal ))))) ;) (expression_statement "bVar3 = param_1 ^ 1;" (assignment_expression "bVar3 = param_1 ^ 1" identifier = (binary_expression "param_1 ^ 1" identifier ^ number_literal)) ;) (expression_statement "local_78 = 0x10;" (assignment_expression "local_78 = 0x10" identifier = number_literal) ;) (expression_statement "piVar2 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while( true ) {\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }" { (expression_statement "piVar1 = piVar2;" (assignment_expression "piVar1 = piVar2" identifier = identifier) ;) (if_statement "if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }" if (parenthesized_expression "(((byte)DAT_0007b664 & 8) == 0)" ( (binary_expression "((byte)DAT_0007b664 & 8) == 0" (parenthesized_expression "((byte)DAT_0007b664 & 8)" ( (binary_expression "(byte)DAT_0007b664 & 8" (cast_expression "(byte)DAT_0007b664" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }" { (expression_statement "puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);" (assignment_expression "puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560)" identifier = (cast_expression "(undefined4 *)FUN_00020770(0x2000,FUN_00020560)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00020770(0x2000,FUN_00020560)" identifier (argument_list "(0x2000,FUN_00020560)" ( number_literal , identifier ))))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }" if (parenthesized_expression "(iVar5 < 0x20)" ( (binary_expression "iVar5 < 0x20" identifier < number_literal) )) (compound_statement "{\n        local_78 = iVar5 / 2;\n      }" { (expression_statement "local_78 = iVar5 / 2;" (assignment_expression "local_78 = iVar5 / 2" identifier = (binary_expression "iVar5 / 2" identifier / number_literal)) ;) })) (expression_statement "FUN_0003fde0();" (call_expression "FUN_0003fde0()" identifier (argument_list "()" ( ))) ;) (expression_statement "__sprintf_chk(local_28,1,8," %c",(int)*__haystack);" (call_expression "__sprintf_chk(local_28,1,8," %c",(int)*__haystack)" identifier (argument_list "(local_28,1,8," %c",(int)*__haystack)" ( identifier , number_literal , number_literal , (string_literal "" %c"" " string_content ") , (cast_expression "(int)*__haystack" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*__haystack" * identifier)) ))) ;) (expression_statement "wmove(DAT_0007b658,1,0);" (call_expression "wmove(DAT_0007b658,1,0)" identifier (argument_list "(DAT_0007b658,1,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "uVar6 = dcgettext(0,&DAT_0005fe09,5);" (assignment_expression "uVar6 = dcgettext(0,&DAT_0005fe09,5)" identifier = (call_expression "dcgettext(0,&DAT_0005fe09,5)" identifier (argument_list "(0,&DAT_0005fe09,5)" ( number_literal , (pointer_expression "&DAT_0005fe09" & identifier) , number_literal )))) ;) (expression_statement "FUN_000417a0(local_28,uVar6,local_78);" (call_expression "FUN_000417a0(local_28,uVar6,local_78)" identifier (argument_list "(local_28,uVar6,local_78)" ( identifier , identifier , identifier ))) ;) (expression_statement "local_28[1] = *__haystack_00;" (assignment_expression "local_28[1] = *__haystack_00" (subscript_expression "local_28[1]" identifier [ number_literal ]) = (pointer_expression "*__haystack_00" * identifier)) ;) (expression_statement "wmove(DAT_0007b658,2,0);" (call_expression "wmove(DAT_0007b658,2,0)" identifier (argument_list "(DAT_0007b658,2,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "uVar6 = dcgettext(0,&DAT_0005fe0d,5);" (assignment_expression "uVar6 = dcgettext(0,&DAT_0005fe0d,5)" identifier = (call_expression "dcgettext(0,&DAT_0005fe0d,5)" identifier (argument_list "(0,&DAT_0005fe0d,5)" ( number_literal , (pointer_expression "&DAT_0005fe0d" & identifier) , number_literal )))) ;) (expression_statement "FUN_000417a0(local_28,uVar6,local_78);" (call_expression "FUN_000417a0(local_28,uVar6,local_78)" identifier (argument_list "(local_28,uVar6,local_78)" ( identifier , identifier , identifier ))) ;) (if_statement "if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }" { (expression_statement "local_28[1] = *__haystack_01;" (assignment_expression "local_28[1] = *__haystack_01" (subscript_expression "local_28[1]" identifier [ number_literal ]) = (pointer_expression "*__haystack_01" * identifier)) ;) (expression_statement "wmove(DAT_0007b658,1,local_78);" (call_expression "wmove(DAT_0007b658,1,local_78)" identifier (argument_list "(DAT_0007b658,1,local_78)" ( identifier , number_literal , identifier ))) ;) (expression_statement "uVar6 = dcgettext(0,&DAT_0005fe10,5);" (assignment_expression "uVar6 = dcgettext(0,&DAT_0005fe10,5)" identifier = (call_expression "dcgettext(0,&DAT_0005fe10,5)" identifier (argument_list "(0,&DAT_0005fe10,5)" ( number_literal , (pointer_expression "&DAT_0005fe10" & identifier) , number_literal )))) ;) (expression_statement "FUN_000417a0(local_28,uVar6,local_78);" (call_expression "FUN_000417a0(local_28,uVar6,local_78)" identifier (argument_list "(local_28,uVar6,local_78)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "wmove(DAT_0007b658,2,local_78);" (call_expression "wmove(DAT_0007b658,2,local_78)" identifier (argument_list "(DAT_0007b658,2,local_78)" ( identifier , number_literal , identifier ))) ;) (expression_statement "uVar6 = dcgettext(0,"Cancel",5);" (assignment_expression "uVar6 = dcgettext(0,"Cancel",5)" identifier = (call_expression "dcgettext(0,"Cancel",5)" identifier (argument_list "(0,"Cancel",5)" ( number_literal , (string_literal ""Cancel"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_000417a0(*puVar9,uVar6,local_78);" (call_expression "FUN_000417a0(*puVar9,uVar6,local_78)" identifier (argument_list "(*puVar9,uVar6,local_78)" ( (pointer_expression "*puVar9" * identifier) , identifier , identifier ))) ;) })) (expression_statement "wattr_on(DAT_0007b658,DAT_0007b59c,0);" (call_expression "wattr_on(DAT_0007b658,DAT_0007b59c,0)" identifier (argument_list "(DAT_0007b658,DAT_0007b59c,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_0003fd30();" (call_expression "FUN_0003fd30()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = wmove(DAT_0007b658,0,0);" (assignment_expression "iVar5 = wmove(DAT_0007b658,0,0)" identifier = (call_expression "wmove(DAT_0007b658,0,0)" identifier (argument_list "(DAT_0007b658,0,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }" if (parenthesized_expression "(iVar5 != -1)" ( (binary_expression "iVar5 != -1" identifier != number_literal) )) (compound_statement "{\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }" { (expression_statement "uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);" (assignment_expression "uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1)" identifier = (call_expression "FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1)" identifier (argument_list "(param_2,*(int *)PTR_COLS_0007af78 + -1)" ( identifier , (binary_expression "*(int *)PTR_COLS_0007af78 + -1" (pointer_expression "*(int *)PTR_COLS_0007af78" * (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ;) (expression_statement "waddnstr(DAT_0007b658,param_2,uVar6);" (call_expression "waddnstr(DAT_0007b658,param_2,uVar6)" identifier (argument_list "(DAT_0007b658,param_2,uVar6)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "wattr_off(DAT_0007b658,DAT_0007b59c,0);" (call_expression "wattr_off(DAT_0007b658,DAT_0007b59c,0)" identifier (argument_list "(DAT_0007b658,DAT_0007b59c,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "wnoutrefresh(DAT_0007b658);" (call_expression "wnoutrefresh(DAT_0007b658)" identifier (argument_list "(DAT_0007b658)" ( identifier ))) ;) (expression_statement "DAT_0007b064 = 0x2000;" (assignment_expression "DAT_0007b064 = 0x2000" identifier = number_literal) ;) (expression_statement "local_34 = FUN_00045910(DAT_0007b658,bVar3);" (assignment_expression "local_34 = FUN_00045910(DAT_0007b658,bVar3)" identifier = (call_expression "FUN_00045910(DAT_0007b658,bVar3)" identifier (argument_list "(DAT_0007b658,bVar3)" ( identifier , identifier )))) ;) (expression_statement "local_28[0] = (char)local_34;" (assignment_expression "local_28[0] = (char)local_34" (subscript_expression "local_28[0]" identifier [ number_literal ]) = (cast_expression "(char)local_34" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "cVar4 = FUN_00017870();" (assignment_expression "cVar4 = FUN_00017870()" identifier = (call_expression "FUN_00017870()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }" if (parenthesized_expression "((cVar4 != '\0') && (local_34 - 0xc0U < 0x38))" ( (binary_expression "(cVar4 != '\0') && (local_34 - 0xc0U < 0x38)" (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(local_34 - 0xc0U < 0x38)" ( (binary_expression "local_34 - 0xc0U < 0x38" (binary_expression "local_34 - 0xc0U" identifier - number_literal) < number_literal) ))) )) (compound_statement "{\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }" { (expression_statement "uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);" (assignment_expression "uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0)" identifier = (binary_expression "(local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0)" (parenthesized_expression "(local_34 >> 4 & 3U)" ( (binary_expression "local_34 >> 4 & 3U" (binary_expression "local_34 >> 4" identifier >> number_literal) & number_literal) )) + (call_expression "(uint)(local_34 < 0xd0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_34 < 0xd0)" ( (binary_expression "local_34 < 0xd0" identifier < number_literal) ))))) ;) (while_statement "while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }" while (parenthesized_expression "((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff)))" ( (parenthesized_expression "(uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))" ( (comma_expression "uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff)" (assignment_expression "uVar10 = FUN_0003e7b0()" identifier = (call_expression "FUN_0003e7b0()" identifier (argument_list "()" ( )))) , (binary_expression "uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff)" (binary_expression "uVar11 <= uVar10" identifier <= identifier) && (parenthesized_expression "(uVar11 = uVar11 - 1, uVar11 != 0xffffffff)" ( (comma_expression "uVar11 = uVar11 - 1, uVar11 != 0xffffffff" (assignment_expression "uVar11 = uVar11 - 1" identifier = (binary_expression "uVar11 - 1" identifier - number_literal)) , (binary_expression "uVar11 != 0xffffffff" identifier != number_literal)) )))) )) )) (compound_statement "{\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }" { (expression_statement "cVar4 = FUN_00045910(DAT_0007b658,bVar3);" (assignment_expression "cVar4 = FUN_00045910(DAT_0007b658,bVar3)" identifier = (call_expression "FUN_00045910(DAT_0007b658,bVar3)" identifier (argument_list "(DAT_0007b658,bVar3)" ( identifier , identifier )))) ;) (expression_statement "local_28[iVar5] = cVar4;" (assignment_expression "local_28[iVar5] = cVar4" (subscript_expression "local_28[iVar5]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) })) })) (expression_statement "local_28[iVar5] = '\0';" (assignment_expression "local_28[iVar5] = '\0'" (subscript_expression "local_28[iVar5]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar7 = strstr(__haystack,local_28);" (assignment_expression "pcVar7 = strstr(__haystack,local_28)" identifier = (call_expression "strstr(__haystack,local_28)" identifier (argument_list "(__haystack,local_28)" ( identifier , identifier )))) ;) (if_statement "if (pcVar7 != (char *)0x0) break;" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar7 = strstr(__haystack_00,local_28);" (assignment_expression "pcVar7 = strstr(__haystack_00,local_28)" identifier = (call_expression "strstr(__haystack_00,local_28)" identifier (argument_list "(__haystack_00,local_28)" ( identifier , identifier )))) ;) (if_statement "if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }" { (labeled_statement "LAB_00030010:\n      iVar5 = 0;" statement_identifier : (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })) (if_statement "if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }" if (parenthesized_expression "((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0))" ( (binary_expression "(param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)" ( (comma_expression "pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0" (assignment_expression "pcVar7 = strstr(__haystack_01,local_28)" identifier = (call_expression "strstr(__haystack_01,local_28)" identifier (argument_list "(__haystack_01,local_28)" ( identifier , identifier )))) , (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }" { (labeled_statement "LAB_00030018:\n      iVar5 = 2;" statement_identifier : (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;)) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })) (expression_statement "iVar5 = local_34;" (assignment_expression "iVar5 = local_34" identifier = identifier) ;) (expression_statement "pcVar7 = strchr("Yy",local_34);" (assignment_expression "pcVar7 = strchr("Yy",local_34)" identifier = (call_expression "strchr("Yy",local_34)" identifier (argument_list "("Yy",local_34)" ( (string_literal ""Yy"" " string_content ") , identifier )))) ;) (if_statement "if (pcVar7 != (char *)0x0) break;" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar7 = strchr("Nn",iVar5);" (assignment_expression "pcVar7 = strchr("Nn",iVar5)" identifier = (call_expression "strchr("Nn",iVar5)" identifier (argument_list "("Nn",iVar5)" ( (string_literal ""Nn"" " string_content ") , identifier )))) ;) (if_statement "if (pcVar7 != (char *)0x0) goto LAB_00030010;" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00030010;" goto statement_identifier ;)) (if_statement "if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;" if (parenthesized_expression "((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0))" ( (binary_expression "(param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)" ( (comma_expression "pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0" (assignment_expression "pcVar7 = strchr("Aa",iVar5)" identifier = (call_expression "strchr("Aa",iVar5)" identifier (argument_list "("Aa",iVar5)" ( (string_literal ""Aa"" " string_content ") , identifier )))) , (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_00030018;" goto statement_identifier ;)) (expression_statement "puVar8 = (undefined *)FUN_00020810(&local_34);" (assignment_expression "puVar8 = (undefined *)FUN_00020810(&local_34)" identifier = (cast_expression "(undefined *)FUN_00020810(&local_34)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00020810(&local_34)" identifier (argument_list "(&local_34)" ( (pointer_expression "&local_34" & identifier) ))))) ;) (if_statement "if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }" if (parenthesized_expression "(puVar8 == PTR_FUN_0007af2c)" ( (binary_expression "puVar8 == PTR_FUN_0007af2c" identifier == identifier) )) (compound_statement "{\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })) (expression_statement "piVar2 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }" if (parenthesized_expression "(local_34 == 0x199)" ( (binary_expression "local_34 == 0x199" identifier == number_literal) )) (compound_statement "{\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }" { (expression_statement "iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);" (assignment_expression "iVar5 = FUN_0003f7d0(&local_2c,&local_30,0)" identifier = (call_expression "FUN_0003f7d0(&local_2c,&local_30,0)" identifier (argument_list "(&local_2c,&local_30,0)" ( (pointer_expression "&local_2c" & identifier) , (pointer_expression "&local_30" & identifier) , number_literal )))) ;) (expression_statement "piVar2 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }" if (parenthesized_expression "(((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2))" ( (binary_expression "((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)" (parenthesized_expression "((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0))))))" ( (binary_expression "(((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))" (parenthesized_expression "(((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2))" ( (binary_expression "((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)" (parenthesized_expression "((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0'))" ( (binary_expression "(iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')" (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) && (parenthesized_expression "(cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')" ( (comma_expression "cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0'" (assignment_expression "cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0)" identifier = (call_expression "wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0)" identifier (argument_list "(DAT_0007b658,&local_2c,&local_30,0)" ( identifier , (pointer_expression "&local_2c" & identifier) , (pointer_expression "&local_30" & identifier) , number_literal )))) , (comma_expression "piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0'" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')))) ))) )) && (parenthesized_expression "(local_30 < local_78 * 2)" ( (binary_expression "local_30 < local_78 * 2" identifier < (binary_expression "local_78 * 2" identifier * number_literal)) ))) )) && (parenthesized_expression "((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))" ( (parenthesized_expression "(0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0))))" ( (binary_expression "0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))" (binary_expression "0 < local_2c" number_literal < identifier) && (parenthesized_expression "((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))" ( (parenthesized_expression "(iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0))" ( (comma_expression "iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)" (assignment_expression "iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1" identifier = (binary_expression "((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1" (parenthesized_expression "((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1))" ( (binary_expression "(local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)" (parenthesized_expression "(local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2)" ( (binary_expression "local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2" (binary_expression "local_30 / local_78" identifier / identifier) + (binary_expression "(local_30 / local_78) * (local_2c + -1) * -2" (binary_expression "(local_30 / local_78) * (local_2c + -1)" (parenthesized_expression "(local_30 / local_78)" ( (binary_expression "local_30 / local_78" identifier / identifier) )) * (parenthesized_expression "(local_2c + -1)" ( (binary_expression "local_2c + -1" identifier + number_literal) ))) * number_literal)) )) - (parenthesized_expression "(local_2c + -1)" ( (binary_expression "local_2c + -1" identifier + number_literal) ))) )) + number_literal)) , (binary_expression "iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)" (binary_expression "iVar5 != 2" identifier != number_literal) || (parenthesized_expression "(piVar2 = piVar1, bVar3 == 0)" ( (comma_expression "piVar2 = piVar1, bVar3 == 0" (assignment_expression "piVar2 = piVar1" identifier = identifier) , (binary_expression "bVar3 == 0" identifier == number_literal)) )))) )) ))) )) ))) )) && (parenthesized_expression "(piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)" ( (comma_expression "piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" identifier = (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "iVar5 != -2" identifier != number_literal)) ))) )) (compound_statement "{\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }" { (labeled_statement "LAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n          FUN_0005a8b0();\n        }" { (expression_statement "FUN_0005a8b0();" (call_expression "FUN_0005a8b0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar5;" return identifier ;) })) })) })) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0002fff5;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) & LIT) )) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < LIT) ))))) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression (binary_expression IDENT <= IDENT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT - LIT)) , (binary_expression IDENT != LIT)) )))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) , LIT )))) , (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (binary_expression IDENT != (char_literal ' escape_sequence ')))) ))) )) && (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT * LIT)) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression LIT < IDENT) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT / IDENT) + (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT / IDENT) )) * (parenthesized_expression ( (binary_expression IDENT + LIT) ))) * LIT)) )) - (parenthesized_expression ( (binary_expression IDENT + LIT) ))) )) + LIT)) , (binary_expression (binary_expression IDENT != LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT)) )))) )) ))) )) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })))
(function_definition "int FUN_0002fb20(byte param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  byte bVar3;\n  char cVar4;\n  char *__haystack;\n  char *__haystack_00;\n  char *__haystack_01;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  int local_78;\n  int local_34;\n  int local_30;\n  int local_2c;\n  char local_28 [8];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2fb29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);\n  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);\n  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);\n  bVar3 = param_1 ^ 1;\n  local_78 = 0x10;\n  piVar2 = (int *)PTR_COLS_0007af78;\n  while( true ) {\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }\n  iVar5 = 1;\n  goto LAB_0002fff5;\n}" (primitive_type "int") (function_declarator "FUN_0002fb20(byte param_1,undefined4 param_2)" (identifier "FUN_0002fb20") (parameter_list "(byte param_1,undefined4 param_2)" (( "(") (parameter_declaration "byte param_1" (type_identifier "byte") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  byte bVar3;\n  char cVar4;\n  char *__haystack;\n  char *__haystack_00;\n  char *__haystack_01;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  int local_78;\n  int local_34;\n  int local_30;\n  int local_2c;\n  char local_28 [8];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2fb29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);\n  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);\n  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);\n  bVar3 = param_1 ^ 1;\n  local_78 = 0x10;\n  piVar2 = (int *)PTR_COLS_0007af78;\n  while( true ) {\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }\n  iVar5 = 1;\n  goto LAB_0002fff5;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "char *__haystack;" (primitive_type "char") (pointer_declarator "*__haystack" (* "*") (identifier "__haystack")) (; ";")) (declaration "char *__haystack_00;" (primitive_type "char") (pointer_declarator "*__haystack_00" (* "*") (identifier "__haystack_00")) (; ";")) (declaration "char *__haystack_01;" (primitive_type "char") (pointer_declarator "*__haystack_01" (* "*") (identifier "__haystack_01")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined4 *puVar9;" (type_identifier "undefined4") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_78;" (primitive_type "int") (identifier "local_78") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "char local_28 [8];" (primitive_type "char") (array_declarator "local_28 [8]" (identifier "local_28") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x2fb29;" (assignment_expression "uStack_14 = 0x2fb29" (identifier "uStack_14") (= "=") (number_literal "0x2fb29")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "__haystack = (char *)dcgettext(0,&DAT_0005fe00,5);" (assignment_expression "__haystack = (char *)dcgettext(0,&DAT_0005fe00,5)" (identifier "__haystack") (= "=") (cast_expression "(char *)dcgettext(0,&DAT_0005fe00,5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,&DAT_0005fe00,5)" (identifier "dcgettext") (argument_list "(0,&DAT_0005fe00,5)" (( "(") (number_literal "0") (, ",") (pointer_expression "&DAT_0005fe00" (& "&") (identifier "DAT_0005fe00")) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "__haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);" (assignment_expression "__haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5)" (identifier "__haystack_00") (= "=") (cast_expression "(char *)dcgettext(0,&DAT_0005fe03,5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,&DAT_0005fe03,5)" (identifier "dcgettext") (argument_list "(0,&DAT_0005fe03,5)" (( "(") (number_literal "0") (, ",") (pointer_expression "&DAT_0005fe03" (& "&") (identifier "DAT_0005fe03")) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "__haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);" (assignment_expression "__haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5)" (identifier "__haystack_01") (= "=") (cast_expression "(char *)dcgettext(0,&DAT_0005fe06,5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,&DAT_0005fe06,5)" (identifier "dcgettext") (argument_list "(0,&DAT_0005fe06,5)" (( "(") (number_literal "0") (, ",") (pointer_expression "&DAT_0005fe06" (& "&") (identifier "DAT_0005fe06")) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "bVar3 = param_1 ^ 1;" (assignment_expression "bVar3 = param_1 ^ 1" (identifier "bVar3") (= "=") (binary_expression "param_1 ^ 1" (identifier "param_1") (^ "^") (number_literal "1"))) (; ";")) (expression_statement "local_78 = 0x10;" (assignment_expression "local_78 = 0x10" (identifier "local_78") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "piVar2 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" (identifier "piVar2") (= "=") (cast_expression "(int *)PTR_COLS_0007af78" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0007af78"))) (; ";")) (while_statement "while( true ) {\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    piVar1 = piVar2;\n    if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }\n    wattr_on(DAT_0007b658,DAT_0007b59c,0);\n    FUN_0003fd30();\n    iVar5 = wmove(DAT_0007b658,0,0);\n    if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }\n    iVar5 = 1;\n    wattr_off(DAT_0007b658,DAT_0007b59c,0);\n    wnoutrefresh(DAT_0007b658);\n    DAT_0007b064 = 0x2000;\n    local_34 = FUN_00045910(DAT_0007b658,bVar3);\n    local_28[0] = (char)local_34;\n    cVar4 = FUN_00017870();\n    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }\n    local_28[iVar5] = '\0';\n    pcVar7 = strstr(__haystack,local_28);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strstr(__haystack_00,local_28);\n    if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }\n    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }\n    iVar5 = local_34;\n    pcVar7 = strchr("Yy",local_34);\n    if (pcVar7 != (char *)0x0) break;\n    pcVar7 = strchr("Nn",iVar5);\n    if (pcVar7 != (char *)0x0) goto LAB_00030010;\n    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;\n    puVar8 = (undefined *)FUN_00020810(&local_34);\n    if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }\n    piVar2 = (int *)PTR_COLS_0007af78;\n    if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }\n  }" ({ "{") (expression_statement "piVar1 = piVar2;" (assignment_expression "piVar1 = piVar2" (identifier "piVar1") (= "=") (identifier "piVar2")) (; ";")) (if_statement "if (((byte)DAT_0007b664 & 8) == 0) {\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }" (if "if") (parenthesized_expression "(((byte)DAT_0007b664 & 8) == 0)" (( "(") (binary_expression "((byte)DAT_0007b664 & 8) == 0" (parenthesized_expression "((byte)DAT_0007b664 & 8)" (( "(") (binary_expression "(byte)DAT_0007b664 & 8" (cast_expression "(byte)DAT_0007b664" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "DAT_0007b664")) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);\n      iVar5 = *piVar1;\n      if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }\n      FUN_0003fde0();\n      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);\n      wmove(DAT_0007b658,1,0);\n      uVar6 = dcgettext(0,&DAT_0005fe09,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      local_28[1] = *__haystack_00;\n      wmove(DAT_0007b658,2,0);\n      uVar6 = dcgettext(0,&DAT_0005fe0d,5);\n      FUN_000417a0(local_28,uVar6,local_78);\n      if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }\n      wmove(DAT_0007b658,2,local_78);\n      uVar6 = dcgettext(0,"Cancel",5);\n      FUN_000417a0(*puVar9,uVar6,local_78);\n    }" ({ "{") (expression_statement "puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);" (assignment_expression "puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560)" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)FUN_00020770(0x2000,FUN_00020560)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00020770(0x2000,FUN_00020560)" (identifier "FUN_00020770") (argument_list "(0x2000,FUN_00020560)" (( "(") (number_literal "0x2000") (, ",") (identifier "FUN_00020560") () ")"))))) (; ";")) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" (identifier "iVar5") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if (iVar5 < 0x20) {\n        local_78 = iVar5 / 2;\n      }" (if "if") (parenthesized_expression "(iVar5 < 0x20)" (( "(") (binary_expression "iVar5 < 0x20" (identifier "iVar5") (< "<") (number_literal "0x20")) () ")")) (compound_statement "{\n        local_78 = iVar5 / 2;\n      }" ({ "{") (expression_statement "local_78 = iVar5 / 2;" (assignment_expression "local_78 = iVar5 / 2" (identifier "local_78") (= "=") (binary_expression "iVar5 / 2" (identifier "iVar5") (/ "/") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "FUN_0003fde0();" (call_expression "FUN_0003fde0()" (identifier "FUN_0003fde0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "__sprintf_chk(local_28,1,8," %c",(int)*__haystack);" (call_expression "__sprintf_chk(local_28,1,8," %c",(int)*__haystack)" (identifier "__sprintf_chk") (argument_list "(local_28,1,8," %c",(int)*__haystack)" (( "(") (identifier "local_28") (, ",") (number_literal "1") (, ",") (number_literal "8") (, ",") (string_literal "" %c"" (" """) (string_content " %c") (" """)) (, ",") (cast_expression "(int)*__haystack" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*__haystack" (* "*") (identifier "__haystack"))) () ")"))) (; ";")) (expression_statement "wmove(DAT_0007b658,1,0);" (call_expression "wmove(DAT_0007b658,1,0)" (identifier "wmove") (argument_list "(DAT_0007b658,1,0)" (( "(") (identifier "DAT_0007b658") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar6 = dcgettext(0,&DAT_0005fe09,5);" (assignment_expression "uVar6 = dcgettext(0,&DAT_0005fe09,5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,&DAT_0005fe09,5)" (identifier "dcgettext") (argument_list "(0,&DAT_0005fe09,5)" (( "(") (number_literal "0") (, ",") (pointer_expression "&DAT_0005fe09" (& "&") (identifier "DAT_0005fe09")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_000417a0(local_28,uVar6,local_78);" (call_expression "FUN_000417a0(local_28,uVar6,local_78)" (identifier "FUN_000417a0") (argument_list "(local_28,uVar6,local_78)" (( "(") (identifier "local_28") (, ",") (identifier "uVar6") (, ",") (identifier "local_78") () ")"))) (; ";")) (expression_statement "local_28[1] = *__haystack_00;" (assignment_expression "local_28[1] = *__haystack_00" (subscript_expression "local_28[1]" (identifier "local_28") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*__haystack_00" (* "*") (identifier "__haystack_00"))) (; ";")) (expression_statement "wmove(DAT_0007b658,2,0);" (call_expression "wmove(DAT_0007b658,2,0)" (identifier "wmove") (argument_list "(DAT_0007b658,2,0)" (( "(") (identifier "DAT_0007b658") (, ",") (number_literal "2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar6 = dcgettext(0,&DAT_0005fe0d,5);" (assignment_expression "uVar6 = dcgettext(0,&DAT_0005fe0d,5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,&DAT_0005fe0d,5)" (identifier "dcgettext") (argument_list "(0,&DAT_0005fe0d,5)" (( "(") (number_literal "0") (, ",") (pointer_expression "&DAT_0005fe0d" (& "&") (identifier "DAT_0005fe0d")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_000417a0(local_28,uVar6,local_78);" (call_expression "FUN_000417a0(local_28,uVar6,local_78)" (identifier "FUN_000417a0") (argument_list "(local_28,uVar6,local_78)" (( "(") (identifier "local_28") (, ",") (identifier "uVar6") (, ",") (identifier "local_78") () ")"))) (; ";")) (if_statement "if (param_1 != 0) {\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        local_28[1] = *__haystack_01;\n        wmove(DAT_0007b658,1,local_78);\n        uVar6 = dcgettext(0,&DAT_0005fe10,5);\n        FUN_000417a0(local_28,uVar6,local_78);\n      }" ({ "{") (expression_statement "local_28[1] = *__haystack_01;" (assignment_expression "local_28[1] = *__haystack_01" (subscript_expression "local_28[1]" (identifier "local_28") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*__haystack_01" (* "*") (identifier "__haystack_01"))) (; ";")) (expression_statement "wmove(DAT_0007b658,1,local_78);" (call_expression "wmove(DAT_0007b658,1,local_78)" (identifier "wmove") (argument_list "(DAT_0007b658,1,local_78)" (( "(") (identifier "DAT_0007b658") (, ",") (number_literal "1") (, ",") (identifier "local_78") () ")"))) (; ";")) (expression_statement "uVar6 = dcgettext(0,&DAT_0005fe10,5);" (assignment_expression "uVar6 = dcgettext(0,&DAT_0005fe10,5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,&DAT_0005fe10,5)" (identifier "dcgettext") (argument_list "(0,&DAT_0005fe10,5)" (( "(") (number_literal "0") (, ",") (pointer_expression "&DAT_0005fe10" (& "&") (identifier "DAT_0005fe10")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_000417a0(local_28,uVar6,local_78);" (call_expression "FUN_000417a0(local_28,uVar6,local_78)" (identifier "FUN_000417a0") (argument_list "(local_28,uVar6,local_78)" (( "(") (identifier "local_28") (, ",") (identifier "uVar6") (, ",") (identifier "local_78") () ")"))) (; ";")) (} "}"))) (expression_statement "wmove(DAT_0007b658,2,local_78);" (call_expression "wmove(DAT_0007b658,2,local_78)" (identifier "wmove") (argument_list "(DAT_0007b658,2,local_78)" (( "(") (identifier "DAT_0007b658") (, ",") (number_literal "2") (, ",") (identifier "local_78") () ")"))) (; ";")) (expression_statement "uVar6 = dcgettext(0,"Cancel",5);" (assignment_expression "uVar6 = dcgettext(0,"Cancel",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"Cancel",5)" (identifier "dcgettext") (argument_list "(0,"Cancel",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Cancel"" (" """) (string_content "Cancel") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_000417a0(*puVar9,uVar6,local_78);" (call_expression "FUN_000417a0(*puVar9,uVar6,local_78)" (identifier "FUN_000417a0") (argument_list "(*puVar9,uVar6,local_78)" (( "(") (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (, ",") (identifier "uVar6") (, ",") (identifier "local_78") () ")"))) (; ";")) (} "}"))) (expression_statement "wattr_on(DAT_0007b658,DAT_0007b59c,0);" (call_expression "wattr_on(DAT_0007b658,DAT_0007b59c,0)" (identifier "wattr_on") (argument_list "(DAT_0007b658,DAT_0007b59c,0)" (( "(") (identifier "DAT_0007b658") (, ",") (identifier "DAT_0007b59c") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_0003fd30();" (call_expression "FUN_0003fd30()" (identifier "FUN_0003fd30") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = wmove(DAT_0007b658,0,0);" (assignment_expression "iVar5 = wmove(DAT_0007b658,0,0)" (identifier "iVar5") (= "=") (call_expression "wmove(DAT_0007b658,0,0)" (identifier "wmove") (argument_list "(DAT_0007b658,0,0)" (( "(") (identifier "DAT_0007b658") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar5 != -1) {\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }" (if "if") (parenthesized_expression "(iVar5 != -1)" (( "(") (binary_expression "iVar5 != -1" (identifier "iVar5") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);\n      waddnstr(DAT_0007b658,param_2,uVar6);\n    }" ({ "{") (expression_statement "uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);" (assignment_expression "uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1)" (identifier "uVar6") (= "=") (call_expression "FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1)" (identifier "FUN_0003dfb0") (argument_list "(param_2,*(int *)PTR_COLS_0007af78 + -1)" (( "(") (identifier "param_2") (, ",") (binary_expression "*(int *)PTR_COLS_0007af78 + -1" (pointer_expression "*(int *)PTR_COLS_0007af78" (* "*") (cast_expression "(int *)PTR_COLS_0007af78" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0007af78"))) (+ "+") (number_literal "-1")) () ")")))) (; ";")) (expression_statement "waddnstr(DAT_0007b658,param_2,uVar6);" (call_expression "waddnstr(DAT_0007b658,param_2,uVar6)" (identifier "waddnstr") (argument_list "(DAT_0007b658,param_2,uVar6)" (( "(") (identifier "DAT_0007b658") (, ",") (identifier "param_2") (, ",") (identifier "uVar6") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "wattr_off(DAT_0007b658,DAT_0007b59c,0);" (call_expression "wattr_off(DAT_0007b658,DAT_0007b59c,0)" (identifier "wattr_off") (argument_list "(DAT_0007b658,DAT_0007b59c,0)" (( "(") (identifier "DAT_0007b658") (, ",") (identifier "DAT_0007b59c") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "wnoutrefresh(DAT_0007b658);" (call_expression "wnoutrefresh(DAT_0007b658)" (identifier "wnoutrefresh") (argument_list "(DAT_0007b658)" (( "(") (identifier "DAT_0007b658") () ")"))) (; ";")) (expression_statement "DAT_0007b064 = 0x2000;" (assignment_expression "DAT_0007b064 = 0x2000" (identifier "DAT_0007b064") (= "=") (number_literal "0x2000")) (; ";")) (expression_statement "local_34 = FUN_00045910(DAT_0007b658,bVar3);" (assignment_expression "local_34 = FUN_00045910(DAT_0007b658,bVar3)" (identifier "local_34") (= "=") (call_expression "FUN_00045910(DAT_0007b658,bVar3)" (identifier "FUN_00045910") (argument_list "(DAT_0007b658,bVar3)" (( "(") (identifier "DAT_0007b658") (, ",") (identifier "bVar3") () ")")))) (; ";")) (expression_statement "local_28[0] = (char)local_34;" (assignment_expression "local_28[0] = (char)local_34" (subscript_expression "local_28[0]" (identifier "local_28") ([ "[") (number_literal "0") (] "]")) (= "=") (cast_expression "(char)local_34" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "local_34"))) (; ";")) (expression_statement "cVar4 = FUN_00017870();" (assignment_expression "cVar4 = FUN_00017870()" (identifier "cVar4") (= "=") (call_expression "FUN_00017870()" (identifier "FUN_00017870") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }" (if "if") (parenthesized_expression "((cVar4 != '\0') && (local_34 - 0xc0U < 0x38))" (( "(") (binary_expression "(cVar4 != '\0') && (local_34 - 0xc0U < 0x38)" (parenthesized_expression "(cVar4 != '\0')" (( "(") (binary_expression "cVar4 != '\0'" (identifier "cVar4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(local_34 - 0xc0U < 0x38)" (( "(") (binary_expression "local_34 - 0xc0U < 0x38" (binary_expression "local_34 - 0xc0U" (identifier "local_34") (- "-") (number_literal "0xc0U")) (< "<") (number_literal "0x38")) () ")"))) () ")")) (compound_statement "{\n      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);\n      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }\n    }" ({ "{") (expression_statement "uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);" (assignment_expression "uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0)" (identifier "uVar11") (= "=") (binary_expression "(local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0)" (parenthesized_expression "(local_34 >> 4 & 3U)" (( "(") (binary_expression "local_34 >> 4 & 3U" (binary_expression "local_34 >> 4" (identifier "local_34") (>> ">>") (number_literal "4")) (& "&") (number_literal "3U")) () ")")) (+ "+") (call_expression "(uint)(local_34 < 0xd0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_34 < 0xd0)" (( "(") (binary_expression "local_34 < 0xd0" (identifier "local_34") (< "<") (number_literal "0xd0")) () ")"))))) (; ";")) (while_statement "while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }" (while "while") (parenthesized_expression "((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff)))" (( "(") (parenthesized_expression "(uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))" (( "(") (comma_expression "uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff)" (assignment_expression "uVar10 = FUN_0003e7b0()" (identifier "uVar10") (= "=") (call_expression "FUN_0003e7b0()" (identifier "FUN_0003e7b0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "uVar11 <= uVar10 &&\n             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff)" (binary_expression "uVar11 <= uVar10" (identifier "uVar11") (<= "<=") (identifier "uVar10")) (&& "&&") (parenthesized_expression "(uVar11 = uVar11 - 1, uVar11 != 0xffffffff)" (( "(") (comma_expression "uVar11 = uVar11 - 1, uVar11 != 0xffffffff" (assignment_expression "uVar11 = uVar11 - 1" (identifier "uVar11") (= "=") (binary_expression "uVar11 - 1" (identifier "uVar11") (- "-") (number_literal "1"))) (, ",") (binary_expression "uVar11 != 0xffffffff" (identifier "uVar11") (!= "!=") (number_literal "0xffffffff"))) () ")")))) () ")")) () ")")) (compound_statement "{\n        cVar4 = FUN_00045910(DAT_0007b658,bVar3);\n        local_28[iVar5] = cVar4;\n        iVar5 = iVar5 + 1;\n      }" ({ "{") (expression_statement "cVar4 = FUN_00045910(DAT_0007b658,bVar3);" (assignment_expression "cVar4 = FUN_00045910(DAT_0007b658,bVar3)" (identifier "cVar4") (= "=") (call_expression "FUN_00045910(DAT_0007b658,bVar3)" (identifier "FUN_00045910") (argument_list "(DAT_0007b658,bVar3)" (( "(") (identifier "DAT_0007b658") (, ",") (identifier "bVar3") () ")")))) (; ";")) (expression_statement "local_28[iVar5] = cVar4;" (assignment_expression "local_28[iVar5] = cVar4" (subscript_expression "local_28[iVar5]" (identifier "local_28") ([ "[") (identifier "iVar5") (] "]")) (= "=") (identifier "cVar4")) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "local_28[iVar5] = '\0';" (assignment_expression "local_28[iVar5] = '\0'" (subscript_expression "local_28[iVar5]" (identifier "local_28") ([ "[") (identifier "iVar5") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar7 = strstr(__haystack,local_28);" (assignment_expression "pcVar7 = strstr(__haystack,local_28)" (identifier "pcVar7") (= "=") (call_expression "strstr(__haystack,local_28)" (identifier "strstr") (argument_list "(__haystack,local_28)" (( "(") (identifier "__haystack") (, ",") (identifier "local_28") () ")")))) (; ";")) (if_statement "if (pcVar7 != (char *)0x0) break;" (if "if") (parenthesized_expression "(pcVar7 != (char *)0x0)" (( "(") (binary_expression "pcVar7 != (char *)0x0" (identifier "pcVar7") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar7 = strstr(__haystack_00,local_28);" (assignment_expression "pcVar7 = strstr(__haystack_00,local_28)" (identifier "pcVar7") (= "=") (call_expression "strstr(__haystack_00,local_28)" (identifier "strstr") (argument_list "(__haystack_00,local_28)" (( "(") (identifier "__haystack_00") (, ",") (identifier "local_28") () ")")))) (; ";")) (if_statement "if (pcVar7 != (char *)0x0) {\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }" (if "if") (parenthesized_expression "(pcVar7 != (char *)0x0)" (( "(") (binary_expression "pcVar7 != (char *)0x0" (identifier "pcVar7") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_00030010:\n      iVar5 = 0;\n      goto LAB_0002fff5;\n    }" ({ "{") (labeled_statement "LAB_00030010:\n      iVar5 = 0;" (statement_identifier "LAB_00030010") (: ":") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";"))) (goto_statement "goto LAB_0002fff5;" (goto "goto") (statement_identifier "LAB_0002fff5") (; ";")) (} "}"))) (if_statement "if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }" (if "if") (parenthesized_expression "((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0))" (( "(") (binary_expression "(param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)" (( "(") (comma_expression "pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0" (assignment_expression "pcVar7 = strstr(__haystack_01,local_28)" (identifier "pcVar7") (= "=") (call_expression "strstr(__haystack_01,local_28)" (identifier "strstr") (argument_list "(__haystack_01,local_28)" (( "(") (identifier "__haystack_01") (, ",") (identifier "local_28") () ")")))) (, ",") (binary_expression "pcVar7 != (char *)0x0" (identifier "pcVar7") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\nLAB_00030018:\n      iVar5 = 2;\n      goto LAB_0002fff5;\n    }" ({ "{") (labeled_statement "LAB_00030018:\n      iVar5 = 2;" (statement_identifier "LAB_00030018") (: ":") (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" (identifier "iVar5") (= "=") (number_literal "2")) (; ";"))) (goto_statement "goto LAB_0002fff5;" (goto "goto") (statement_identifier "LAB_0002fff5") (; ";")) (} "}"))) (expression_statement "iVar5 = local_34;" (assignment_expression "iVar5 = local_34" (identifier "iVar5") (= "=") (identifier "local_34")) (; ";")) (expression_statement "pcVar7 = strchr("Yy",local_34);" (assignment_expression "pcVar7 = strchr("Yy",local_34)" (identifier "pcVar7") (= "=") (call_expression "strchr("Yy",local_34)" (identifier "strchr") (argument_list "("Yy",local_34)" (( "(") (string_literal ""Yy"" (" """) (string_content "Yy") (" """)) (, ",") (identifier "local_34") () ")")))) (; ";")) (if_statement "if (pcVar7 != (char *)0x0) break;" (if "if") (parenthesized_expression "(pcVar7 != (char *)0x0)" (( "(") (binary_expression "pcVar7 != (char *)0x0" (identifier "pcVar7") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar7 = strchr("Nn",iVar5);" (assignment_expression "pcVar7 = strchr("Nn",iVar5)" (identifier "pcVar7") (= "=") (call_expression "strchr("Nn",iVar5)" (identifier "strchr") (argument_list "("Nn",iVar5)" (( "(") (string_literal ""Nn"" (" """) (string_content "Nn") (" """)) (, ",") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (pcVar7 != (char *)0x0) goto LAB_00030010;" (if "if") (parenthesized_expression "(pcVar7 != (char *)0x0)" (( "(") (binary_expression "pcVar7 != (char *)0x0" (identifier "pcVar7") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00030010;" (goto "goto") (statement_identifier "LAB_00030010") (; ";"))) (if_statement "if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;" (if "if") (parenthesized_expression "((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0))" (( "(") (binary_expression "(param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)" (( "(") (comma_expression "pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0" (assignment_expression "pcVar7 = strchr("Aa",iVar5)" (identifier "pcVar7") (= "=") (call_expression "strchr("Aa",iVar5)" (identifier "strchr") (argument_list "("Aa",iVar5)" (( "(") (string_literal ""Aa"" (" """) (string_content "Aa") (" """)) (, ",") (identifier "iVar5") () ")")))) (, ",") (binary_expression "pcVar7 != (char *)0x0" (identifier "pcVar7") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (goto_statement "goto LAB_00030018;" (goto "goto") (statement_identifier "LAB_00030018") (; ";"))) (expression_statement "puVar8 = (undefined *)FUN_00020810(&local_34);" (assignment_expression "puVar8 = (undefined *)FUN_00020810(&local_34)" (identifier "puVar8") (= "=") (cast_expression "(undefined *)FUN_00020810(&local_34)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00020810(&local_34)" (identifier "FUN_00020810") (argument_list "(&local_34)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) () ")"))))) (; ";")) (if_statement "if (puVar8 == PTR_FUN_0007af2c) {\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }" (if "if") (parenthesized_expression "(puVar8 == PTR_FUN_0007af2c)" (( "(") (binary_expression "puVar8 == PTR_FUN_0007af2c" (identifier "puVar8") (== "==") (identifier "PTR_FUN_0007af2c")) () ")")) (compound_statement "{\n      iVar5 = -1;\n      goto LAB_0002fff5;\n    }" ({ "{") (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" (identifier "iVar5") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_0002fff5;" (goto "goto") (statement_identifier "LAB_0002fff5") (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" (identifier "piVar2") (= "=") (cast_expression "(int *)PTR_COLS_0007af78" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0007af78"))) (; ";")) (if_statement "if (local_34 == 0x199) {\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }" (if "if") (parenthesized_expression "(local_34 == 0x199)" (( "(") (binary_expression "local_34 == 0x199" (identifier "local_34") (== "==") (number_literal "0x199")) () ")")) (compound_statement "{\n      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);\n      piVar2 = (int *)PTR_COLS_0007af78;\n      if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }\n    }" ({ "{") (expression_statement "iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);" (assignment_expression "iVar5 = FUN_0003f7d0(&local_2c,&local_30,0)" (identifier "iVar5") (= "=") (call_expression "FUN_0003f7d0(&local_2c,&local_30,0)" (identifier "FUN_0003f7d0") (argument_list "(&local_2c,&local_30,0)" (( "(") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "piVar2 = (int *)PTR_COLS_0007af78;" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" (identifier "piVar2") (= "=") (cast_expression "(int *)PTR_COLS_0007af78" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0007af78"))) (; ";")) (if_statement "if (((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }" (if "if") (parenthesized_expression "(((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2))" (( "(") (binary_expression "((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&\n         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)" (parenthesized_expression "((((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0))))))" (( "(") (binary_expression "(((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&\n          ((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))" (parenthesized_expression "(((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2))" (( "(") (binary_expression "((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)" (parenthesized_expression "((iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0'))" (( "(") (binary_expression "(iVar5 == 0) &&\n            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')" (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')" (( "(") (comma_expression "cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),\n            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0'" (assignment_expression "cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0)" (identifier "cVar4") (= "=") (call_expression "wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0)" (identifier "wmouse_trafo") (argument_list "(DAT_0007b658,&local_2c,&local_30,0)" (( "(") (identifier "DAT_0007b658") (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (number_literal "0") () ")")))) (, ",") (comma_expression "piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0'" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" (identifier "piVar2") (= "=") (cast_expression "(int *)PTR_COLS_0007af78" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0007af78"))) (, ",") (binary_expression "cVar4 != '\0'" (identifier "cVar4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(local_30 < local_78 * 2)" (( "(") (binary_expression "local_30 < local_78 * 2" (identifier "local_30") (< "<") (binary_expression "local_78 * 2" (identifier "local_78") (* "*") (number_literal "2"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))" (( "(") (parenthesized_expression "(0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0))))" (( "(") (binary_expression "0 < local_2c &&\n           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))" (binary_expression "0 < local_2c" (number_literal "0") (< "<") (identifier "local_2c")) (&& "&&") (parenthesized_expression "((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))" (( "(") (parenthesized_expression "(iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0))" (( "(") (comma_expression "iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)" (assignment_expression "iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1" (identifier "iVar5") (= "=") (binary_expression "((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)) + 1" (parenthesized_expression "((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1))" (( "(") (binary_expression "(local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -\n                     (local_2c + -1)" (parenthesized_expression "(local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2)" (( "(") (binary_expression "local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2" (binary_expression "local_30 / local_78" (identifier "local_30") (/ "/") (identifier "local_78")) (+ "+") (binary_expression "(local_30 / local_78) * (local_2c + -1) * -2" (binary_expression "(local_30 / local_78) * (local_2c + -1)" (parenthesized_expression "(local_30 / local_78)" (( "(") (binary_expression "local_30 / local_78" (identifier "local_30") (/ "/") (identifier "local_78")) () ")")) (* "*") (parenthesized_expression "(local_2c + -1)" (( "(") (binary_expression "local_2c + -1" (identifier "local_2c") (+ "+") (number_literal "-1")) () ")"))) (* "*") (number_literal "-2"))) () ")")) (- "-") (parenthesized_expression "(local_2c + -1)" (( "(") (binary_expression "local_2c + -1" (identifier "local_2c") (+ "+") (number_literal "-1")) () ")"))) () ")")) (+ "+") (number_literal "1"))) (, ",") (binary_expression "iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)" (binary_expression "iVar5 != 2" (identifier "iVar5") (!= "!=") (number_literal "2")) (|| "||") (parenthesized_expression "(piVar2 = piVar1, bVar3 == 0)" (( "(") (comma_expression "piVar2 = piVar1, bVar3 == 0" (assignment_expression "piVar2 = piVar1" (identifier "piVar2") (= "=") (identifier "piVar1")) (, ",") (binary_expression "bVar3 == 0" (identifier "bVar3") (== "==") (number_literal "0"))) () ")")))) () ")")) () ")"))) () ")")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)" (( "(") (comma_expression "piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2" (assignment_expression "piVar2 = (int *)PTR_COLS_0007af78" (identifier "piVar2") (= "=") (cast_expression "(int *)PTR_COLS_0007af78" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0007af78"))) (, ",") (binary_expression "iVar5 != -2" (identifier "iVar5") (!= "!=") (number_literal "-2"))) () ")"))) () ")")) (compound_statement "{\nLAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }\n        return iVar5;\n      }" ({ "{") (labeled_statement "LAB_0002fff5:\n        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }" (statement_identifier "LAB_0002fff5") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n          FUN_0005a8b0();\n        }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n          FUN_0005a8b0();\n        }" ({ "{") (expression_statement "FUN_0005a8b0();" (call_expression "FUN_0005a8b0()" (identifier "FUN_0005a8b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_0002fff5;" (goto "goto") (statement_identifier "LAB_0002fff5") (; ";")) (} "}")))

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

int function_1(type_1 all,char *msg)

{
  int var_32;
  int *piVar2;
  int *piVar3;
  bool showcursor;
  type_1 _Var4;
  char var_28;
  char *__haystack;
  char *__haystack_00;
  char *__haystack_01;
  int var_4;
  size_t var_20;
  char *var_22;
  type_2 var_25;
  type_3 *psVar10;
  int iVar11;
  type_4 var_19;
  int var_1;
  int var_30;
  int var_17;
  int var_29;
  int var_31;
  char letter [7];
  
  var_32 = *(int *)(var_1 + 0x14);
  __haystack = (char *)var_2(0,&DAT_0005fe00,5);
  __haystack_00 = (char *)var_2(0,&DAT_0005fe03,5);
  __haystack_01 = (char *)var_2(0,&DAT_0005fe06,5);
  showcursor = !all;
  var_30 = 0x10;
  piVar3 = (int *)PTR_COLS_0007af78;
  while( true ) {
    piVar2 = piVar3;
    if (((type_5)flags[0] & 8) == 0) {
      psVar10 = var_3(0x2000,do_cancel);
      var_4 = *piVar2;
      if (var_4 < 0x20) {
        var_30 = var_4 / 2;
      }
      var_5();
      var_6(letter,1,8," %c",(int)*__haystack);
      var_7(bottomwin,1,0);
      var_22 = (char *)var_2(0,&DAT_0005fe09,5);
      var_8(letter,var_22,var_30);
      letter[1] = *__haystack_00;
      var_7(bottomwin,2,0);
      var_22 = (char *)var_2(0,&DAT_0005fe0d,5);
      var_8(letter,var_22,var_30);
      if (all) {
        letter[1] = *__haystack_01;
        var_7(bottomwin,1,var_30);
        var_22 = (char *)var_2(0,&DAT_0005fe10,5);
        var_8(letter,var_22,var_30);
      }
      var_7(bottomwin,2,var_30);
      var_22 = (char *)var_2(0,"Cancel",5);
      var_8(psVar10->keystr,var_22,var_30);
    }
    var_9(bottomwin,interface_color_pair[0],0);
    var_10();
    var_4 = var_7(bottomwin,0,0);
    if (var_4 != -1) {
      var_20 = var_11(msg,*(int *)PTR_COLS_0007af78 - 1);
      var_12(bottomwin,msg,var_20);
    }
    var_4 = 1;
    var_13(bottomwin,interface_color_pair[0],0);
    var_14(bottomwin);
    currmenu = 0x2000;
    var_17 = var_15(bottomwin,showcursor);
    letter[0] = (char)var_17;
    _Var4 = var_16();
    if ((_Var4) && (var_17 - 0xc0U < 0x38)) {
      var_19 = (var_17 >> 4 & 3U) + (type_4)(var_17 < 0xd0);
      while ((var_20 = var_18(), var_19 <= var_20 &&
             (var_19 = var_19 - 1, var_19 != 0xffffffff))) {
        iVar11 = var_15(bottomwin,showcursor);
        letter[var_4] = (char)iVar11;
        var_4 = var_4 + 1;
      }
    }
    letter[var_4] = '\0';
    var_22 = var_21(__haystack,letter);
    if (var_22 != (char *)0x0) break;
    var_22 = var_21(__haystack_00,letter);
    if (var_22 != (char *)0x0) {
LAB_00030010:
      var_4 = 0;
      goto LAB_0002fff5;
    }
    if ((all) && (var_22 = var_21(__haystack_01,letter), var_22 != (char *)0x0)) {
LAB_00030018:
      var_4 = 2;
      goto LAB_0002fff5;
    }
    var_4 = var_17;
    var_22 = var_23("Yy",var_17);
    if (var_22 != (char *)0x0) break;
    var_22 = var_23("Nn",var_4);
    if (var_22 != (char *)0x0) goto LAB_00030010;
    if ((all) && (var_22 = var_23("Aa",var_4), var_22 != (char *)0x0)) goto LAB_00030018;
    var_25 = var_24(&var_17);
    if (var_25 == (type_2)PTR_do_cancel_0007af2c) {
      var_4 = -1;
      goto LAB_0002fff5;
    }
    piVar3 = (int *)PTR_COLS_0007af78;
    if (var_17 == 0x199) {
      var_4 = var_26(&var_31,&var_29,false);
      piVar3 = (int *)PTR_COLS_0007af78;
      if (((((var_4 == 0) &&
            (var_28 = var_27(bottomwin,&var_31,&var_29,0), piVar3 = (int *)PTR_COLS_0007af78,
            var_28 != '\0')) && (var_29 < var_30 * 2)) &&
          ((0 < var_31 &&
           ((var_4 = ((var_29 / var_30 + (var_29 / var_30) * (var_31 + -1) * -2) -
                     (var_31 + -1)) + 1, var_4 != 2 || (piVar3 = piVar2, !showcursor)))))) &&
         (piVar3 = (int *)PTR_COLS_0007af78, var_4 != -2)) {
LAB_0002fff5:
        if (var_32 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
          var_33();
        }
        return var_4;
      }
    }
  }
  var_4 = 1;
  goto LAB_0002fff5;
}


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

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

int MASKED(byte param_1,undefined4 param_2)

{
  int *piVar1;
  int *piVar2;
  byte bVar3;
  char cVar4;
  char *__haystack;
  char *__haystack_00;
  char *__haystack_01;
  int iVar5;
  undefined4 uVar6;
  char *pcVar7;
  undefined *puVar8;
  undefined4 *puVar9;
  uint uVar10;
  uint uVar11;
  int in_GS_OFFSET;
  int local_78;
  int local_34;
  int local_30;
  int local_2c;
  char local_28 [8];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2fb29;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  __haystack = (char *)dcgettext(0,&DAT_0005fe00,5);
  __haystack_00 = (char *)dcgettext(0,&DAT_0005fe03,5);
  __haystack_01 = (char *)dcgettext(0,&DAT_0005fe06,5);
  bVar3 = param_1 ^ 1;
  local_78 = 0x10;
  piVar2 = (int *)PTR_COLS_0007af78;
  while( true ) {
    piVar1 = piVar2;
    if (((byte)DAT_0007b664 & 8) == 0) {
      puVar9 = (undefined4 *)FUN_00020770(0x2000,FUN_00020560);
      iVar5 = *piVar1;
      if (iVar5 < 0x20) {
        local_78 = iVar5 / 2;
      }
      FUN_0003fde0();
      __sprintf_chk(local_28,1,8," %c",(int)*__haystack);
      wmove(DAT_0007b658,1,0);
      uVar6 = dcgettext(0,&DAT_0005fe09,5);
      FUN_000417a0(local_28,uVar6,local_78);
      local_28[1] = *__haystack_00;
      wmove(DAT_0007b658,2,0);
      uVar6 = dcgettext(0,&DAT_0005fe0d,5);
      FUN_000417a0(local_28,uVar6,local_78);
      if (param_1 != 0) {
        local_28[1] = *__haystack_01;
        wmove(DAT_0007b658,1,local_78);
        uVar6 = dcgettext(0,&DAT_0005fe10,5);
        FUN_000417a0(local_28,uVar6,local_78);
      }
      wmove(DAT_0007b658,2,local_78);
      uVar6 = dcgettext(0,"Cancel",5);
      FUN_000417a0(*puVar9,uVar6,local_78);
    }
    wattr_on(DAT_0007b658,DAT_0007b59c,0);
    FUN_0003fd30();
    iVar5 = wmove(DAT_0007b658,0,0);
    if (iVar5 != -1) {
      uVar6 = FUN_0003dfb0(param_2,*(int *)PTR_COLS_0007af78 + -1);
      waddnstr(DAT_0007b658,param_2,uVar6);
    }
    iVar5 = 1;
    wattr_off(DAT_0007b658,DAT_0007b59c,0);
    wnoutrefresh(DAT_0007b658);
    DAT_0007b064 = 0x2000;
    local_34 = FUN_00045910(DAT_0007b658,bVar3);
    local_28[0] = (char)local_34;
    cVar4 = FUN_00017870();
    if ((cVar4 != '\0') && (local_34 - 0xc0U < 0x38)) {
      uVar11 = (local_34 >> 4 & 3U) + (uint)(local_34 < 0xd0);
      while ((uVar10 = FUN_0003e7b0(), uVar11 <= uVar10 &&
             (uVar11 = uVar11 - 1, uVar11 != 0xffffffff))) {
        cVar4 = FUN_00045910(DAT_0007b658,bVar3);
        local_28[iVar5] = cVar4;
        iVar5 = iVar5 + 1;
      }
    }
    local_28[iVar5] = '\0';
    pcVar7 = strstr(__haystack,local_28);
    if (pcVar7 != (char *)0x0) break;
    pcVar7 = strstr(__haystack_00,local_28);
    if (pcVar7 != (char *)0x0) {
LAB_00030010:
      iVar5 = 0;
      goto LAB_0002fff5;
    }
    if ((param_1 != 0) && (pcVar7 = strstr(__haystack_01,local_28), pcVar7 != (char *)0x0)) {
LAB_00030018:
      iVar5 = 2;
      goto LAB_0002fff5;
    }
    iVar5 = local_34;
    pcVar7 = strchr("Yy",local_34);
    if (pcVar7 != (char *)0x0) break;
    pcVar7 = strchr("Nn",iVar5);
    if (pcVar7 != (char *)0x0) goto LAB_00030010;
    if ((param_1 != 0) && (pcVar7 = strchr("Aa",iVar5), pcVar7 != (char *)0x0)) goto LAB_00030018;
    puVar8 = (undefined *)FUN_00020810(&local_34);
    if (puVar8 == PTR_FUN_0007af2c) {
      iVar5 = -1;
      goto LAB_0002fff5;
    }
    piVar2 = (int *)PTR_COLS_0007af78;
    if (local_34 == 0x199) {
      iVar5 = FUN_0003f7d0(&local_2c,&local_30,0);
      piVar2 = (int *)PTR_COLS_0007af78;
      if (((((iVar5 == 0) &&
            (cVar4 = wmouse_trafo(DAT_0007b658,&local_2c,&local_30,0),
            piVar2 = (int *)PTR_COLS_0007af78, cVar4 != '\0')) && (local_30 < local_78 * 2)) &&
          ((0 < local_2c &&
           ((iVar5 = ((local_30 / local_78 + (local_30 / local_78) * (local_2c + -1) * -2) -
                     (local_2c + -1)) + 1, iVar5 != 2 || (piVar2 = piVar1, bVar3 == 0)))))) &&
         (piVar2 = (int *)PTR_COLS_0007af78, iVar5 != -2)) {
LAB_0002fff5:
        if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
          FUN_0005a8b0();
        }
        return iVar5;
      }
    }
  }
  iVar5 = 1;
  goto LAB_0002fff5;
}

