
char * bb_ask_noecho(int fd,int timeout,char *prompt)

{
  char *__buf;
  long lVar1;
  int iVar2;
  ssize_t sVar3;
  long lVar4;
  char *str;
  int iVar5;
  __sigset_t *p_Var6;
  long in_FS_OFFSET;
  byte bVar7;
  termios tio;
  termios oldtio;
  sigaction sa;
  sigaction oldsa;
  
  bVar7 = 0;
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  tcflush(fd,0);
  fputs_unlocked(prompt,stdout);
  fflush_all();
  tcgetattr(fd,(termios *)&oldtio);
  tio.c_iflag = oldtio.c_iflag;
  tio.c_oflag = oldtio.c_oflag;
  tio.c_line = oldtio.c_line;
  tio.c_cc[0] = oldtio.c_cc[0];
  tio.c_cc[1] = oldtio.c_cc[1];
  tio.c_cc[2] = oldtio.c_cc[2];
  tio.c_cc[3] = oldtio.c_cc[3];
  tio.c_cc[4] = oldtio.c_cc[4];
  tio.c_cc[5] = oldtio.c_cc[5];
  tio.c_cc[6] = oldtio.c_cc[6];
  tio.c_cc[7] = oldtio.c_cc[7];
  tio.c_cc[8] = oldtio.c_cc[8];
  tio.c_cc[9] = oldtio.c_cc[9];
  tio.c_cc[10] = oldtio.c_cc[10];
  tio.c_cc[0xb] = oldtio.c_cc[0xb];
  tio.c_cc[0xc] = oldtio.c_cc[0xc];
  tio.c_cc[0xd] = oldtio.c_cc[0xd];
  tio.c_cc[0xe] = oldtio.c_cc[0xe];
  tio.c_cc[0xf] = oldtio.c_cc[0xf];
  tio.c_cc[0x10] = oldtio.c_cc[0x10];
  tio.c_cc[0x11] = oldtio.c_cc[0x11];
  tio.c_cc[0x12] = oldtio.c_cc[0x12];
  tio.c_cc[0x13] = oldtio.c_cc[0x13];
  tio.c_cc[0x14] = oldtio.c_cc[0x14];
  tio.c_cc[0x15] = oldtio.c_cc[0x15];
  tio.c_cc[0x16] = oldtio.c_cc[0x16];
  tio.c_cc[0x17] = oldtio.c_cc[0x17];
  tio.c_cc[0x18] = oldtio.c_cc[0x18];
  tio.c_cc[0x19] = oldtio.c_cc[0x19];
  tio.c_cc[0x1a] = oldtio.c_cc[0x1a];
  tio.c_cc[0x1b] = oldtio.c_cc[0x1b];
  tio.c_cc[0x1c] = oldtio.c_cc[0x1c];
  tio.c_cc[0x1d] = oldtio.c_cc[0x1d];
  tio.c_cc[0x1e] = oldtio.c_cc[0x1e];
  tio.c_cc[0x1f] = oldtio.c_cc[0x1f];
  tio._49_3_ = oldtio._49_3_;
  tio.c_ispeed = oldtio.c_ispeed;
  tio.c_ospeed = oldtio.c_ospeed;
  tio._8_8_ = oldtio._8_8_ & 0xffffff87ffffffff;
  tcsetattr(fd,0,(termios *)&tio);
  p_Var6 = &sa.sa_mask;
  for (lVar4 = 0x12; lVar4 != 0; lVar4 = lVar4 + -1) {
    p_Var6->__val[0] = 0;
    p_Var6 = (__sigset_t *)((long)p_Var6 + (ulong)bVar7 * -0x10 + 8);
  }
  sa.__sigaction_handler.sa_handler = askpass_timeout;
  sigaction(2,(sigaction *)&sa,(sigaction *)&oldsa);
  if (timeout != 0) {
    sigaction_set(0xe,&sa);
    alarm(timeout);
  }
  lVar4 = 0;
  str = (char *)0x0;
  while( true ) {
    iVar5 = (int)lVar4;
    str = (char *)xrealloc(str,lVar4 + 2);
    __buf = str + lVar4;
    sVar3 = read(fd,__buf,1);
    iVar2 = (int)sVar3;
    if ((iVar2 == 0 && iVar5 == 0) || (iVar2 < 0)) break;
    if ((iVar2 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;
    lVar4 = lVar4 + 1;
    if (lVar4 == 0xfff) goto code_r0x0019891f;
  }
  *__buf = '\0';
  nuke_str(str);
  free(str);
  str = (char *)0x0;
LAB_001988a3:
  if (timeout != 0) {
    alarm(0);
  }
  sigaction_set(2,&oldsa);
  tcsetattr(fd,0,(termios *)&oldtio);
  bb_putchar(10);
  fflush_all();
  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return str;
code_r0x0019891f:
  iVar5 = 0xfff;
LAB_00198925:
  str[iVar5] = '\0';
  goto LAB_001988a3;
}



void * FUN_00198755(int param_1,uint param_2,char *param_3)

{
  char *__buf;
  int iVar1;
  ssize_t sVar2;
  long lVar3;
  void *__ptr;
  int iVar4;
  _union_1457 *p_Var5;
  long in_FS_OFFSET;
  byte bVar6;
  termios local_1f8;
  termios local_1b8;
  _union_1457 local_178;
  _union_1457 local_170 [19];
  sigaction local_d8;
  long local_40;
  
  bVar6 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  tcflush(param_1,0);
  fputs_unlocked(param_3,stdout);
  FUN_0010e943();
  tcgetattr(param_1,&local_1b8);
  local_1f8.c_iflag = local_1b8.c_iflag;
  local_1f8.c_oflag = local_1b8.c_oflag;
  local_1f8.c_line = local_1b8.c_line;
  local_1f8.c_cc[0] = local_1b8.c_cc[0];
  local_1f8.c_cc[1] = local_1b8.c_cc[1];
  local_1f8.c_cc[2] = local_1b8.c_cc[2];
  local_1f8.c_cc[3] = local_1b8.c_cc[3];
  local_1f8.c_cc[4] = local_1b8.c_cc[4];
  local_1f8.c_cc[5] = local_1b8.c_cc[5];
  local_1f8.c_cc[6] = local_1b8.c_cc[6];
  local_1f8.c_cc[7] = local_1b8.c_cc[7];
  local_1f8.c_cc[8] = local_1b8.c_cc[8];
  local_1f8.c_cc[9] = local_1b8.c_cc[9];
  local_1f8.c_cc[10] = local_1b8.c_cc[10];
  local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];
  local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];
  local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];
  local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];
  local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];
  local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];
  local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];
  local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];
  local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];
  local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];
  local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];
  local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];
  local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];
  local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];
  local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];
  local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];
  local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];
  local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];
  local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];
  local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];
  local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];
  local_1f8._49_3_ = local_1b8._49_3_;
  local_1f8.c_ispeed = local_1b8.c_ispeed;
  local_1f8.c_ospeed = local_1b8.c_ospeed;
  local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;
  tcsetattr(param_1,0,&local_1f8);
  p_Var5 = local_170;
  for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {
    p_Var5->sa_handler = (__sighandler_t)0x0;
    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;
  }
  local_178.sa_handler = (__sighandler_t)&DAT_00198754;
  sigaction(2,(sigaction *)&local_178,&local_d8);
  if (param_2 != 0) {
    FUN_0010f67f(0xe,&local_178);
    alarm(param_2);
  }
  lVar3 = 0;
  __ptr = (void *)0x0;
  while( true ) {
    iVar4 = (int)lVar3;
    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);
    __buf = (char *)((long)__ptr + lVar3);
    sVar2 = read(param_1,__buf,1);
    iVar1 = (int)sVar2;
    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;
    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;
    lVar3 = lVar3 + 1;
    if (lVar3 == 0xfff) goto code_r0x0019891f;
  }
  *__buf = '\0';
  FUN_001a0a97(__ptr);
  free(__ptr);
  __ptr = (void *)0x0;
LAB_001988a3:
  if (param_2 != 0) {
    alarm(0);
  }
  FUN_0010f67f(2,&local_d8);
  tcsetattr(param_1,0,&local_1b8);
  FUN_0010e956(10);
  FUN_0010e943();
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return __ptr;
code_r0x0019891f:
  iVar4 = 0xfff;
LAB_00198925:
  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;
  goto LAB_001988a3;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x1c8
MOV R12D,EDI
MOV R14D,ESI
MOV RBX,RDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x1b8],RAX
XOR EAX,EAX
MOV ESI,0x0
CALL 0x0010b590
MOV RSI,qword ptr [0x001c62a8]
MOV RDI,RBX
CALL 0x0010b950
CALL 0x0010e943
LEA RSI,[RSP + 0x40]
MOV EDI,R12D
CALL 0x0010c0d0
MOVDQA XMM0,xmmword ptr [RSP + 0x40]
MOVAPS xmmword ptr [RSP],XMM0
MOVDQA XMM1,xmmword ptr [RSP + 0x50]
MOVAPS xmmword ptr [RSP + 0x10],XMM1
MOVDQA XMM2,xmmword ptr [RSP + 0x60]
MOVAPS xmmword ptr [RSP + 0x20],XMM2
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x30],RAX
MOV EAX,dword ptr [RSP + 0x78]
MOV dword ptr [RSP + 0x38],EAX
AND dword ptr [RSP + 0xc],0xffffff87
MOV RDX,RSP
MOV ESI,0x0
MOV EDI,R12D
CALL 0x0010c100
LEA RSI,[RSP + 0x80]
LEA RDX,[RSI + 0x8]
MOV ECX,0x12
MOV EAX,0x0
MOV RDI,RDX
STOSQ.REP RDI
LEA RAX,[0x198754]
MOV qword ptr [RSP + 0x80],RAX
LEA RDX,[RSP + 0x120]
MOV EDI,0x2
CALL 0x0010b2a0
TEST R14D,R14D
JZ 0x00198850
LEA RSI,[RSP + 0x80]
MOV EDI,0xe
CALL 0x0010f67f
MOV EDI,R14D
CALL 0x0010b7b0
MOV EBP,0x0
MOV EBX,0x0
MOV R13D,EBP
LEA RSI,[RBP + 0x2]
MOV RDI,RBX
CALL 0x0010e5e8
MOV RBX,RAX
LEA R15,[RAX + RBP*0x1]
MOV EDX,0x1
MOV RSI,R15
MOV EDI,R12D
CALL 0x0010b8e0
MOV ECX,EAX
OR ECX,EBP
JZ 0x0019888a
TEST EAX,EAX
JNS 0x00198900
MOV byte ptr [R15],0x0
MOV RDI,RBX
CALL 0x001a0a97
MOV RDI,RBX
CALL 0x0010c5a0
MOV EBX,0x0
TEST R14D,R14D
JZ 0x001988b2
MOV EDI,0x0
CALL 0x0010b7b0
LEA RSI,[RSP + 0x120]
MOV EDI,0x2
CALL 0x0010f67f
LEA RDX,[RSP + 0x40]
MOV ESI,0x0
MOV EDI,R12D
CALL 0x0010c100
MOV EDI,0xa
CALL 0x0010e956
CALL 0x0010e943
MOV RAX,RBX
MOV RCX,qword ptr [RSP + 0x1b8]
XOR RCX,qword ptr FS:[0x28]
JZ 0x00198932
CALL 0x0010b500
JZ 0x00198925
MOVZX EAX,byte ptr [R15]
CMP AL,0xa
JZ 0x00198925
CMP AL,0xd
JZ 0x00198925
ADD RBP,0x1
CMP RBP,0xfff
JNZ 0x0019885a
MOV R13D,0xfff
MOVSXD R13,R13D
MOV byte ptr [RBX + R13*0x1],0x0
JMP 0x001988a3
ADD RSP,0x1c8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "void * FUN_00198755(int param_1,uint param_2,char *param_3)\n\n{\n  char *__buf;\n  int iVar1;\n  ssize_t sVar2;\n  long lVar3;\n  void *__ptr;\n  int iVar4;\n  _union_1457 *p_Var5;\n  long in_FS_OFFSET;\n  byte bVar6;\n  termios local_1f8;\n  termios local_1b8;\n  _union_1457 local_178;\n  _union_1457 local_170 [19];\n  sigaction local_d8;\n  long local_40;\n  \n  bVar6 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  tcflush(param_1,0);\n  fputs_unlocked(param_3,stdout);\n  FUN_0010e943();\n  tcgetattr(param_1,&local_1b8);\n  local_1f8.c_iflag = local_1b8.c_iflag;\n  local_1f8.c_oflag = local_1b8.c_oflag;\n  local_1f8.c_line = local_1b8.c_line;\n  local_1f8.c_cc[0] = local_1b8.c_cc[0];\n  local_1f8.c_cc[1] = local_1b8.c_cc[1];\n  local_1f8.c_cc[2] = local_1b8.c_cc[2];\n  local_1f8.c_cc[3] = local_1b8.c_cc[3];\n  local_1f8.c_cc[4] = local_1b8.c_cc[4];\n  local_1f8.c_cc[5] = local_1b8.c_cc[5];\n  local_1f8.c_cc[6] = local_1b8.c_cc[6];\n  local_1f8.c_cc[7] = local_1b8.c_cc[7];\n  local_1f8.c_cc[8] = local_1b8.c_cc[8];\n  local_1f8.c_cc[9] = local_1b8.c_cc[9];\n  local_1f8.c_cc[10] = local_1b8.c_cc[10];\n  local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];\n  local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];\n  local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];\n  local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];\n  local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];\n  local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];\n  local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];\n  local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];\n  local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];\n  local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];\n  local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];\n  local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];\n  local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];\n  local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];\n  local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];\n  local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];\n  local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];\n  local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];\n  local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];\n  local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];\n  local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];\n  local_1f8._49_3_ = local_1b8._49_3_;\n  local_1f8.c_ispeed = local_1b8.c_ispeed;\n  local_1f8.c_ospeed = local_1b8.c_ospeed;\n  local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;\n  tcsetattr(param_1,0,&local_1f8);\n  p_Var5 = local_170;\n  for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }\n  local_178.sa_handler = (__sighandler_t)&DAT_00198754;\n  sigaction(2,(sigaction *)&local_178,&local_d8);\n  if (param_2 != 0) {\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }\n  lVar3 = 0;\n  __ptr = (void *)0x0;\n  while( true ) {\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }\n  *__buf = '\0';\n  FUN_001a0a97(__ptr);\n  free(__ptr);\n  __ptr = (void *)0x0;\nLAB_001988a3:\n  if (param_2 != 0) {\n    alarm(0);\n  }\n  FUN_0010f67f(2,&local_d8);\n  tcsetattr(param_1,0,&local_1b8);\n  FUN_0010e956(10);\n  FUN_0010e943();\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return __ptr;\ncode_r0x0019891f:\n  iVar4 = 0xfff;\nLAB_00198925:\n  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;\n  goto LAB_001988a3;\n}\n\n" (function_definition "void * FUN_00198755(int param_1,uint param_2,char *param_3)\n\n{\n  char *__buf;\n  int iVar1;\n  ssize_t sVar2;\n  long lVar3;\n  void *__ptr;\n  int iVar4;\n  _union_1457 *p_Var5;\n  long in_FS_OFFSET;\n  byte bVar6;\n  termios local_1f8;\n  termios local_1b8;\n  _union_1457 local_178;\n  _union_1457 local_170 [19];\n  sigaction local_d8;\n  long local_40;\n  \n  bVar6 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  tcflush(param_1,0);\n  fputs_unlocked(param_3,stdout);\n  FUN_0010e943();\n  tcgetattr(param_1,&local_1b8);\n  local_1f8.c_iflag = local_1b8.c_iflag;\n  local_1f8.c_oflag = local_1b8.c_oflag;\n  local_1f8.c_line = local_1b8.c_line;\n  local_1f8.c_cc[0] = local_1b8.c_cc[0];\n  local_1f8.c_cc[1] = local_1b8.c_cc[1];\n  local_1f8.c_cc[2] = local_1b8.c_cc[2];\n  local_1f8.c_cc[3] = local_1b8.c_cc[3];\n  local_1f8.c_cc[4] = local_1b8.c_cc[4];\n  local_1f8.c_cc[5] = local_1b8.c_cc[5];\n  local_1f8.c_cc[6] = local_1b8.c_cc[6];\n  local_1f8.c_cc[7] = local_1b8.c_cc[7];\n  local_1f8.c_cc[8] = local_1b8.c_cc[8];\n  local_1f8.c_cc[9] = local_1b8.c_cc[9];\n  local_1f8.c_cc[10] = local_1b8.c_cc[10];\n  local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];\n  local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];\n  local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];\n  local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];\n  local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];\n  local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];\n  local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];\n  local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];\n  local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];\n  local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];\n  local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];\n  local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];\n  local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];\n  local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];\n  local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];\n  local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];\n  local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];\n  local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];\n  local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];\n  local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];\n  local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];\n  local_1f8._49_3_ = local_1b8._49_3_;\n  local_1f8.c_ispeed = local_1b8.c_ispeed;\n  local_1f8.c_ospeed = local_1b8.c_ospeed;\n  local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;\n  tcsetattr(param_1,0,&local_1f8);\n  p_Var5 = local_170;\n  for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }\n  local_178.sa_handler = (__sighandler_t)&DAT_00198754;\n  sigaction(2,(sigaction *)&local_178,&local_d8);\n  if (param_2 != 0) {\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }\n  lVar3 = 0;\n  __ptr = (void *)0x0;\n  while( true ) {\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }\n  *__buf = '\0';\n  FUN_001a0a97(__ptr);\n  free(__ptr);\n  __ptr = (void *)0x0;\nLAB_001988a3:\n  if (param_2 != 0) {\n    alarm(0);\n  }\n  FUN_0010f67f(2,&local_d8);\n  tcsetattr(param_1,0,&local_1b8);\n  FUN_0010e956(10);\n  FUN_0010e943();\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return __ptr;\ncode_r0x0019891f:\n  iVar4 = 0xfff;\nLAB_00198925:\n  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;\n  goto LAB_001988a3;\n}" primitive_type (pointer_declarator "* FUN_00198755(int param_1,uint param_2,char *param_3)" * (function_declarator "FUN_00198755(int param_1,uint param_2,char *param_3)" identifier (parameter_list "(int param_1,uint param_2,char *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  char *__buf;\n  int iVar1;\n  ssize_t sVar2;\n  long lVar3;\n  void *__ptr;\n  int iVar4;\n  _union_1457 *p_Var5;\n  long in_FS_OFFSET;\n  byte bVar6;\n  termios local_1f8;\n  termios local_1b8;\n  _union_1457 local_178;\n  _union_1457 local_170 [19];\n  sigaction local_d8;\n  long local_40;\n  \n  bVar6 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  tcflush(param_1,0);\n  fputs_unlocked(param_3,stdout);\n  FUN_0010e943();\n  tcgetattr(param_1,&local_1b8);\n  local_1f8.c_iflag = local_1b8.c_iflag;\n  local_1f8.c_oflag = local_1b8.c_oflag;\n  local_1f8.c_line = local_1b8.c_line;\n  local_1f8.c_cc[0] = local_1b8.c_cc[0];\n  local_1f8.c_cc[1] = local_1b8.c_cc[1];\n  local_1f8.c_cc[2] = local_1b8.c_cc[2];\n  local_1f8.c_cc[3] = local_1b8.c_cc[3];\n  local_1f8.c_cc[4] = local_1b8.c_cc[4];\n  local_1f8.c_cc[5] = local_1b8.c_cc[5];\n  local_1f8.c_cc[6] = local_1b8.c_cc[6];\n  local_1f8.c_cc[7] = local_1b8.c_cc[7];\n  local_1f8.c_cc[8] = local_1b8.c_cc[8];\n  local_1f8.c_cc[9] = local_1b8.c_cc[9];\n  local_1f8.c_cc[10] = local_1b8.c_cc[10];\n  local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];\n  local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];\n  local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];\n  local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];\n  local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];\n  local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];\n  local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];\n  local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];\n  local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];\n  local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];\n  local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];\n  local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];\n  local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];\n  local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];\n  local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];\n  local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];\n  local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];\n  local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];\n  local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];\n  local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];\n  local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];\n  local_1f8._49_3_ = local_1b8._49_3_;\n  local_1f8.c_ispeed = local_1b8.c_ispeed;\n  local_1f8.c_ospeed = local_1b8.c_ospeed;\n  local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;\n  tcsetattr(param_1,0,&local_1f8);\n  p_Var5 = local_170;\n  for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }\n  local_178.sa_handler = (__sighandler_t)&DAT_00198754;\n  sigaction(2,(sigaction *)&local_178,&local_d8);\n  if (param_2 != 0) {\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }\n  lVar3 = 0;\n  __ptr = (void *)0x0;\n  while( true ) {\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }\n  *__buf = '\0';\n  FUN_001a0a97(__ptr);\n  free(__ptr);\n  __ptr = (void *)0x0;\nLAB_001988a3:\n  if (param_2 != 0) {\n    alarm(0);\n  }\n  FUN_0010f67f(2,&local_d8);\n  tcsetattr(param_1,0,&local_1b8);\n  FUN_0010e956(10);\n  FUN_0010e943();\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return __ptr;\ncode_r0x0019891f:\n  iVar4 = 0xfff;\nLAB_00198925:\n  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;\n  goto LAB_001988a3;\n}" { (declaration "char *__buf;" primitive_type (pointer_declarator "*__buf" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "ssize_t sVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "_union_1457 *p_Var5;" type_identifier (pointer_declarator "*p_Var5" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "termios local_1f8;" type_identifier identifier ;) (declaration "termios local_1b8;" type_identifier identifier ;) (declaration "_union_1457 local_178;" type_identifier identifier ;) (declaration "_union_1457 local_170 [19];" type_identifier (array_declarator "local_170 [19]" identifier [ number_literal ]) ;) (declaration "sigaction local_d8;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "tcflush(param_1,0);" (call_expression "tcflush(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "fputs_unlocked(param_3,stdout);" (call_expression "fputs_unlocked(param_3,stdout)" identifier (argument_list "(param_3,stdout)" ( identifier , identifier ))) ;) (expression_statement "FUN_0010e943();" (call_expression "FUN_0010e943()" identifier (argument_list "()" ( ))) ;) (expression_statement "tcgetattr(param_1,&local_1b8);" (call_expression "tcgetattr(param_1,&local_1b8)" identifier (argument_list "(param_1,&local_1b8)" ( identifier , (pointer_expression "&local_1b8" & identifier) ))) ;) (expression_statement "local_1f8.c_iflag = local_1b8.c_iflag;" (assignment_expression "local_1f8.c_iflag = local_1b8.c_iflag" (field_expression "local_1f8.c_iflag" identifier . field_identifier) = (field_expression "local_1b8.c_iflag" identifier . field_identifier)) ;) (expression_statement "local_1f8.c_oflag = local_1b8.c_oflag;" (assignment_expression "local_1f8.c_oflag = local_1b8.c_oflag" (field_expression "local_1f8.c_oflag" identifier . field_identifier) = (field_expression "local_1b8.c_oflag" identifier . field_identifier)) ;) (expression_statement "local_1f8.c_line = local_1b8.c_line;" (assignment_expression "local_1f8.c_line = local_1b8.c_line" (field_expression "local_1f8.c_line" identifier . field_identifier) = (field_expression "local_1b8.c_line" identifier . field_identifier)) ;) (expression_statement "local_1f8.c_cc[0] = local_1b8.c_cc[0];" (assignment_expression "local_1f8.c_cc[0] = local_1b8.c_cc[0]" (subscript_expression "local_1f8.c_cc[0]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[1] = local_1b8.c_cc[1];" (assignment_expression "local_1f8.c_cc[1] = local_1b8.c_cc[1]" (subscript_expression "local_1f8.c_cc[1]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[1]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[2] = local_1b8.c_cc[2];" (assignment_expression "local_1f8.c_cc[2] = local_1b8.c_cc[2]" (subscript_expression "local_1f8.c_cc[2]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[2]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[3] = local_1b8.c_cc[3];" (assignment_expression "local_1f8.c_cc[3] = local_1b8.c_cc[3]" (subscript_expression "local_1f8.c_cc[3]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[3]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[4] = local_1b8.c_cc[4];" (assignment_expression "local_1f8.c_cc[4] = local_1b8.c_cc[4]" (subscript_expression "local_1f8.c_cc[4]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[4]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[5] = local_1b8.c_cc[5];" (assignment_expression "local_1f8.c_cc[5] = local_1b8.c_cc[5]" (subscript_expression "local_1f8.c_cc[5]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[5]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[6] = local_1b8.c_cc[6];" (assignment_expression "local_1f8.c_cc[6] = local_1b8.c_cc[6]" (subscript_expression "local_1f8.c_cc[6]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[6]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[7] = local_1b8.c_cc[7];" (assignment_expression "local_1f8.c_cc[7] = local_1b8.c_cc[7]" (subscript_expression "local_1f8.c_cc[7]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[7]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[8] = local_1b8.c_cc[8];" (assignment_expression "local_1f8.c_cc[8] = local_1b8.c_cc[8]" (subscript_expression "local_1f8.c_cc[8]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[8]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[9] = local_1b8.c_cc[9];" (assignment_expression "local_1f8.c_cc[9] = local_1b8.c_cc[9]" (subscript_expression "local_1f8.c_cc[9]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[9]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[10] = local_1b8.c_cc[10];" (assignment_expression "local_1f8.c_cc[10] = local_1b8.c_cc[10]" (subscript_expression "local_1f8.c_cc[10]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[10]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];" (assignment_expression "local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb]" (subscript_expression "local_1f8.c_cc[0xb]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0xb]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];" (assignment_expression "local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc]" (subscript_expression "local_1f8.c_cc[0xc]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0xc]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];" (assignment_expression "local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd]" (subscript_expression "local_1f8.c_cc[0xd]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0xd]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];" (assignment_expression "local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe]" (subscript_expression "local_1f8.c_cc[0xe]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0xe]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];" (assignment_expression "local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf]" (subscript_expression "local_1f8.c_cc[0xf]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0xf]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];" (assignment_expression "local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10]" (subscript_expression "local_1f8.c_cc[0x10]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x10]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];" (assignment_expression "local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11]" (subscript_expression "local_1f8.c_cc[0x11]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x11]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];" (assignment_expression "local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12]" (subscript_expression "local_1f8.c_cc[0x12]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x12]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];" (assignment_expression "local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13]" (subscript_expression "local_1f8.c_cc[0x13]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x13]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];" (assignment_expression "local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14]" (subscript_expression "local_1f8.c_cc[0x14]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x14]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];" (assignment_expression "local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15]" (subscript_expression "local_1f8.c_cc[0x15]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x15]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];" (assignment_expression "local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16]" (subscript_expression "local_1f8.c_cc[0x16]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x16]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];" (assignment_expression "local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17]" (subscript_expression "local_1f8.c_cc[0x17]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x17]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];" (assignment_expression "local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18]" (subscript_expression "local_1f8.c_cc[0x18]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x18]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];" (assignment_expression "local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19]" (subscript_expression "local_1f8.c_cc[0x19]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x19]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];" (assignment_expression "local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a]" (subscript_expression "local_1f8.c_cc[0x1a]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1a]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];" (assignment_expression "local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b]" (subscript_expression "local_1f8.c_cc[0x1b]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1b]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];" (assignment_expression "local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c]" (subscript_expression "local_1f8.c_cc[0x1c]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1c]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];" (assignment_expression "local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d]" (subscript_expression "local_1f8.c_cc[0x1d]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1d]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];" (assignment_expression "local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e]" (subscript_expression "local_1f8.c_cc[0x1e]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1e]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];" (assignment_expression "local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f]" (subscript_expression "local_1f8.c_cc[0x1f]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1f]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8._49_3_ = local_1b8._49_3_;" (assignment_expression "local_1f8._49_3_ = local_1b8._49_3_" (field_expression "local_1f8._49_3_" identifier . field_identifier) = (field_expression "local_1b8._49_3_" identifier . field_identifier)) ;) (expression_statement "local_1f8.c_ispeed = local_1b8.c_ispeed;" (assignment_expression "local_1f8.c_ispeed = local_1b8.c_ispeed" (field_expression "local_1f8.c_ispeed" identifier . field_identifier) = (field_expression "local_1b8.c_ispeed" identifier . field_identifier)) ;) (expression_statement "local_1f8.c_ospeed = local_1b8.c_ospeed;" (assignment_expression "local_1f8.c_ospeed = local_1b8.c_ospeed" (field_expression "local_1f8.c_ospeed" identifier . field_identifier) = (field_expression "local_1b8.c_ospeed" identifier . field_identifier)) ;) (expression_statement "local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;" (assignment_expression "local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff" (field_expression "local_1f8._8_8_" identifier . field_identifier) = (binary_expression "local_1b8._8_8_ & 0xffffff87ffffffff" (field_expression "local_1b8._8_8_" identifier . field_identifier) & number_literal)) ;) (expression_statement "tcsetattr(param_1,0,&local_1f8);" (call_expression "tcsetattr(param_1,0,&local_1f8)" identifier (argument_list "(param_1,0,&local_1f8)" ( identifier , number_literal , (pointer_expression "&local_1f8" & identifier) ))) ;) (expression_statement "p_Var5 = local_170;" (assignment_expression "p_Var5 = local_170" identifier = identifier) ;) (for_statement "for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }" for ( (assignment_expression "lVar3 = 0x12" identifier = number_literal) ; (binary_expression "lVar3 != 0" identifier != number_literal) ; (assignment_expression "lVar3 = lVar3 + -1" identifier = (binary_expression "lVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }" { (expression_statement "p_Var5->sa_handler = (__sighandler_t)0x0;" (assignment_expression "p_Var5->sa_handler = (__sighandler_t)0x0" (field_expression "p_Var5->sa_handler" identifier -> field_identifier) = (cast_expression "(__sighandler_t)0x0" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal)) ;) (expression_statement "p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;" (assignment_expression "p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1" identifier = (binary_expression "p_Var5 + (ulong)bVar6 * -2 + 1" (binary_expression "p_Var5 + (ulong)bVar6 * -2" identifier + (binary_expression "(ulong)bVar6 * -2" (cast_expression "(ulong)bVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "local_178.sa_handler = (__sighandler_t)&DAT_00198754;" (assignment_expression "local_178.sa_handler = (__sighandler_t)&DAT_00198754" (field_expression "local_178.sa_handler" identifier . field_identifier) = (binary_expression "(__sighandler_t)&DAT_00198754" (parenthesized_expression "(__sighandler_t)" ( identifier )) & identifier)) ;) (expression_statement "sigaction(2,(sigaction *)&local_178,&local_d8);" (call_expression "sigaction(2,(sigaction *)&local_178,&local_d8)" identifier (argument_list "(2,(sigaction *)&local_178,&local_d8)" ( number_literal , (cast_expression "(sigaction *)&local_178" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_178" & identifier)) , (pointer_expression "&local_d8" & identifier) ))) ;) (if_statement "if (param_2 != 0) {\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }" { (expression_statement "FUN_0010f67f(0xe,&local_178);" (call_expression "FUN_0010f67f(0xe,&local_178)" identifier (argument_list "(0xe,&local_178)" ( number_literal , (pointer_expression "&local_178" & identifier) ))) ;) (expression_statement "alarm(param_2);" (call_expression "alarm(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) })) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (while_statement "while( true ) {\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }" { (expression_statement "iVar4 = (int)lVar3;" (assignment_expression "iVar4 = (int)lVar3" identifier = (cast_expression "(int)lVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "__ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);" (assignment_expression "__ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2)" identifier = (cast_expression "(void *)FUN_0010e5e8(__ptr,lVar3 + 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010e5e8(__ptr,lVar3 + 2)" identifier (argument_list "(__ptr,lVar3 + 2)" ( identifier , (binary_expression "lVar3 + 2" identifier + number_literal) ))))) ;) (expression_statement "__buf = (char *)((long)__ptr + lVar3);" (assignment_expression "__buf = (char *)((long)__ptr + lVar3)" identifier = (cast_expression "(char *)((long)__ptr + lVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)__ptr + lVar3)" ( (binary_expression "(long)__ptr + lVar3" (cast_expression "(long)__ptr" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) ;) (expression_statement "sVar2 = read(param_1,__buf,1);" (assignment_expression "sVar2 = read(param_1,__buf,1)" identifier = (call_expression "read(param_1,__buf,1)" identifier (argument_list "(param_1,__buf,1)" ( identifier , identifier , number_literal )))) ;) (expression_statement "iVar1 = (int)sVar2;" (assignment_expression "iVar1 = (int)sVar2" identifier = (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;" if (parenthesized_expression "((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0))" ( (binary_expression "(iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)" (parenthesized_expression "(iVar1 == 0 && iVar4 == 0)" ( (binary_expression "iVar1 == 0 && iVar4 == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "iVar4 == 0" identifier == number_literal)) )) || (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) ))) )) (break_statement "break;" break ;)) (if_statement "if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;" if (parenthesized_expression "((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r'))))" ( (binary_expression "(iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "((*__buf == '\n' || (*__buf == '\r')))" ( (parenthesized_expression "(*__buf == '\n' || (*__buf == '\r'))" ( (binary_expression "*__buf == '\n' || (*__buf == '\r')" (binary_expression "*__buf == '\n'" (pointer_expression "*__buf" * identifier) == (char_literal "'\n'" ' escape_sequence ')) || (parenthesized_expression "(*__buf == '\r')" ( (binary_expression "*__buf == '\r'" (pointer_expression "*__buf" * identifier) == (char_literal "'\r'" ' escape_sequence ')) ))) )) ))) )) (goto_statement "goto LAB_00198925;" goto statement_identifier ;)) (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) (if_statement "if (lVar3 == 0xfff) goto code_r0x0019891f;" if (parenthesized_expression "(lVar3 == 0xfff)" ( (binary_expression "lVar3 == 0xfff" identifier == number_literal) )) (goto_statement "goto code_r0x0019891f;" goto statement_identifier ;)) })) (expression_statement "*__buf = '\0';" (assignment_expression "*__buf = '\0'" (pointer_expression "*__buf" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "FUN_001a0a97(__ptr);" (call_expression "FUN_001a0a97(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_001988a3:\n  if (param_2 != 0) {\n    alarm(0);\n  }" statement_identifier : (if_statement "if (param_2 != 0) {\n    alarm(0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    alarm(0);\n  }" { (expression_statement "alarm(0);" (call_expression "alarm(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (expression_statement "FUN_0010f67f(2,&local_d8);" (call_expression "FUN_0010f67f(2,&local_d8)" identifier (argument_list "(2,&local_d8)" ( number_literal , (pointer_expression "&local_d8" & identifier) ))) ;) (expression_statement "tcsetattr(param_1,0,&local_1b8);" (call_expression "tcsetattr(param_1,0,&local_1b8)" identifier (argument_list "(param_1,0,&local_1b8)" ( identifier , number_literal , (pointer_expression "&local_1b8" & identifier) ))) ;) (expression_statement "FUN_0010e956(10);" (call_expression "FUN_0010e956(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (expression_statement "FUN_0010e943();" (call_expression "FUN_0010e943()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return __ptr;" return identifier ;) (labeled_statement "code_r0x0019891f:\n  iVar4 = 0xfff;" statement_identifier : (expression_statement "iVar4 = 0xfff;" (assignment_expression "iVar4 = 0xfff" identifier = number_literal) ;)) (labeled_statement "LAB_00198925:\n  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;" statement_identifier : (expression_statement "*(undefined1 *)((long)__ptr + (long)iVar4) = 0;" (assignment_expression "*(undefined1 *)((long)__ptr + (long)iVar4) = 0" (pointer_expression "*(undefined1 *)((long)__ptr + (long)iVar4)" * (cast_expression "(undefined1 *)((long)__ptr + (long)iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)__ptr + (long)iVar4)" ( (binary_expression "(long)__ptr + (long)iVar4" (cast_expression "(long)__ptr" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) = number_literal) ;)) (goto_statement "goto LAB_001988a3;" goto statement_identifier ;) })))
(translation_unit "char * bb_ask_noecho(int fd,int timeout,char *prompt)\n\n{\n  char *__buf;\n  long lVar1;\n  int iVar2;\n  ssize_t sVar3;\n  long lVar4;\n  char *str;\n  int iVar5;\n  __sigset_t *p_Var6;\n  long in_FS_OFFSET;\n  byte bVar7;\n  termios tio;\n  termios oldtio;\n  sigaction sa;\n  sigaction oldsa;\n  \n  bVar7 = 0;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  tcflush(fd,0);\n  fputs_unlocked(prompt,stdout);\n  fflush_all();\n  tcgetattr(fd,(termios *)&oldtio);\n  tio.c_iflag = oldtio.c_iflag;\n  tio.c_oflag = oldtio.c_oflag;\n  tio.c_line = oldtio.c_line;\n  tio.c_cc[0] = oldtio.c_cc[0];\n  tio.c_cc[1] = oldtio.c_cc[1];\n  tio.c_cc[2] = oldtio.c_cc[2];\n  tio.c_cc[3] = oldtio.c_cc[3];\n  tio.c_cc[4] = oldtio.c_cc[4];\n  tio.c_cc[5] = oldtio.c_cc[5];\n  tio.c_cc[6] = oldtio.c_cc[6];\n  tio.c_cc[7] = oldtio.c_cc[7];\n  tio.c_cc[8] = oldtio.c_cc[8];\n  tio.c_cc[9] = oldtio.c_cc[9];\n  tio.c_cc[10] = oldtio.c_cc[10];\n  tio.c_cc[0xb] = oldtio.c_cc[0xb];\n  tio.c_cc[0xc] = oldtio.c_cc[0xc];\n  tio.c_cc[0xd] = oldtio.c_cc[0xd];\n  tio.c_cc[0xe] = oldtio.c_cc[0xe];\n  tio.c_cc[0xf] = oldtio.c_cc[0xf];\n  tio.c_cc[0x10] = oldtio.c_cc[0x10];\n  tio.c_cc[0x11] = oldtio.c_cc[0x11];\n  tio.c_cc[0x12] = oldtio.c_cc[0x12];\n  tio.c_cc[0x13] = oldtio.c_cc[0x13];\n  tio.c_cc[0x14] = oldtio.c_cc[0x14];\n  tio.c_cc[0x15] = oldtio.c_cc[0x15];\n  tio.c_cc[0x16] = oldtio.c_cc[0x16];\n  tio.c_cc[0x17] = oldtio.c_cc[0x17];\n  tio.c_cc[0x18] = oldtio.c_cc[0x18];\n  tio.c_cc[0x19] = oldtio.c_cc[0x19];\n  tio.c_cc[0x1a] = oldtio.c_cc[0x1a];\n  tio.c_cc[0x1b] = oldtio.c_cc[0x1b];\n  tio.c_cc[0x1c] = oldtio.c_cc[0x1c];\n  tio.c_cc[0x1d] = oldtio.c_cc[0x1d];\n  tio.c_cc[0x1e] = oldtio.c_cc[0x1e];\n  tio.c_cc[0x1f] = oldtio.c_cc[0x1f];\n  tio._49_3_ = oldtio._49_3_;\n  tio.c_ispeed = oldtio.c_ispeed;\n  tio.c_ospeed = oldtio.c_ospeed;\n  tio._8_8_ = oldtio._8_8_ & 0xffffff87ffffffff;\n  tcsetattr(fd,0,(termios *)&tio);\n  p_Var6 = &sa.sa_mask;\n  for (lVar4 = 0x12; lVar4 != 0; lVar4 = lVar4 + -1) {\n    p_Var6->__val[0] = 0;\n    p_Var6 = (__sigset_t *)((long)p_Var6 + (ulong)bVar7 * -0x10 + 8);\n  }\n  sa.__sigaction_handler.sa_handler = askpass_timeout;\n  sigaction(2,(sigaction *)&sa,(sigaction *)&oldsa);\n  if (timeout != 0) {\n    sigaction_set(0xe,&sa);\n    alarm(timeout);\n  }\n  lVar4 = 0;\n  str = (char *)0x0;\n  while( true ) {\n    iVar5 = (int)lVar4;\n    str = (char *)xrealloc(str,lVar4 + 2);\n    __buf = str + lVar4;\n    sVar3 = read(fd,__buf,1);\n    iVar2 = (int)sVar3;\n    if ((iVar2 == 0 && iVar5 == 0) || (iVar2 < 0)) break;\n    if ((iVar2 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar4 = lVar4 + 1;\n    if (lVar4 == 0xfff) goto code_r0x0019891f;\n  }\n  *__buf = '\0';\n  nuke_str(str);\n  free(str);\n  str = (char *)0x0;\nLAB_001988a3:\n  if (timeout != 0) {\n    alarm(0);\n  }\n  sigaction_set(2,&oldsa);\n  tcsetattr(fd,0,(termios *)&oldtio);\n  bb_putchar(10);\n  fflush_all();\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return str;\ncode_r0x0019891f:\n  iVar5 = 0xfff;\nLAB_00198925:\n  str[iVar5] = '\0';\n  goto LAB_001988a3;\n}\n\n" (function_definition "char * bb_ask_noecho(int fd,int timeout,char *prompt)\n\n{\n  char *__buf;\n  long lVar1;\n  int iVar2;\n  ssize_t sVar3;\n  long lVar4;\n  char *str;\n  int iVar5;\n  __sigset_t *p_Var6;\n  long in_FS_OFFSET;\n  byte bVar7;\n  termios tio;\n  termios oldtio;\n  sigaction sa;\n  sigaction oldsa;\n  \n  bVar7 = 0;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  tcflush(fd,0);\n  fputs_unlocked(prompt,stdout);\n  fflush_all();\n  tcgetattr(fd,(termios *)&oldtio);\n  tio.c_iflag = oldtio.c_iflag;\n  tio.c_oflag = oldtio.c_oflag;\n  tio.c_line = oldtio.c_line;\n  tio.c_cc[0] = oldtio.c_cc[0];\n  tio.c_cc[1] = oldtio.c_cc[1];\n  tio.c_cc[2] = oldtio.c_cc[2];\n  tio.c_cc[3] = oldtio.c_cc[3];\n  tio.c_cc[4] = oldtio.c_cc[4];\n  tio.c_cc[5] = oldtio.c_cc[5];\n  tio.c_cc[6] = oldtio.c_cc[6];\n  tio.c_cc[7] = oldtio.c_cc[7];\n  tio.c_cc[8] = oldtio.c_cc[8];\n  tio.c_cc[9] = oldtio.c_cc[9];\n  tio.c_cc[10] = oldtio.c_cc[10];\n  tio.c_cc[0xb] = oldtio.c_cc[0xb];\n  tio.c_cc[0xc] = oldtio.c_cc[0xc];\n  tio.c_cc[0xd] = oldtio.c_cc[0xd];\n  tio.c_cc[0xe] = oldtio.c_cc[0xe];\n  tio.c_cc[0xf] = oldtio.c_cc[0xf];\n  tio.c_cc[0x10] = oldtio.c_cc[0x10];\n  tio.c_cc[0x11] = oldtio.c_cc[0x11];\n  tio.c_cc[0x12] = oldtio.c_cc[0x12];\n  tio.c_cc[0x13] = oldtio.c_cc[0x13];\n  tio.c_cc[0x14] = oldtio.c_cc[0x14];\n  tio.c_cc[0x15] = oldtio.c_cc[0x15];\n  tio.c_cc[0x16] = oldtio.c_cc[0x16];\n  tio.c_cc[0x17] = oldtio.c_cc[0x17];\n  tio.c_cc[0x18] = oldtio.c_cc[0x18];\n  tio.c_cc[0x19] = oldtio.c_cc[0x19];\n  tio.c_cc[0x1a] = oldtio.c_cc[0x1a];\n  tio.c_cc[0x1b] = oldtio.c_cc[0x1b];\n  tio.c_cc[0x1c] = oldtio.c_cc[0x1c];\n  tio.c_cc[0x1d] = oldtio.c_cc[0x1d];\n  tio.c_cc[0x1e] = oldtio.c_cc[0x1e];\n  tio.c_cc[0x1f] = oldtio.c_cc[0x1f];\n  tio._49_3_ = oldtio._49_3_;\n  tio.c_ispeed = oldtio.c_ispeed;\n  tio.c_ospeed = oldtio.c_ospeed;\n  tio._8_8_ = oldtio._8_8_ & 0xffffff87ffffffff;\n  tcsetattr(fd,0,(termios *)&tio);\n  p_Var6 = &sa.sa_mask;\n  for (lVar4 = 0x12; lVar4 != 0; lVar4 = lVar4 + -1) {\n    p_Var6->__val[0] = 0;\n    p_Var6 = (__sigset_t *)((long)p_Var6 + (ulong)bVar7 * -0x10 + 8);\n  }\n  sa.__sigaction_handler.sa_handler = askpass_timeout;\n  sigaction(2,(sigaction *)&sa,(sigaction *)&oldsa);\n  if (timeout != 0) {\n    sigaction_set(0xe,&sa);\n    alarm(timeout);\n  }\n  lVar4 = 0;\n  str = (char *)0x0;\n  while( true ) {\n    iVar5 = (int)lVar4;\n    str = (char *)xrealloc(str,lVar4 + 2);\n    __buf = str + lVar4;\n    sVar3 = read(fd,__buf,1);\n    iVar2 = (int)sVar3;\n    if ((iVar2 == 0 && iVar5 == 0) || (iVar2 < 0)) break;\n    if ((iVar2 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar4 = lVar4 + 1;\n    if (lVar4 == 0xfff) goto code_r0x0019891f;\n  }\n  *__buf = '\0';\n  nuke_str(str);\n  free(str);\n  str = (char *)0x0;\nLAB_001988a3:\n  if (timeout != 0) {\n    alarm(0);\n  }\n  sigaction_set(2,&oldsa);\n  tcsetattr(fd,0,(termios *)&oldtio);\n  bb_putchar(10);\n  fflush_all();\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return str;\ncode_r0x0019891f:\n  iVar5 = 0xfff;\nLAB_00198925:\n  str[iVar5] = '\0';\n  goto LAB_001988a3;\n}" primitive_type (pointer_declarator "* bb_ask_noecho(int fd,int timeout,char *prompt)" * (function_declarator "bb_ask_noecho(int fd,int timeout,char *prompt)" identifier (parameter_list "(int fd,int timeout,char *prompt)" ( (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "int timeout" primitive_type identifier) , (parameter_declaration "char *prompt" primitive_type (pointer_declarator "*prompt" * identifier)) )))) (compound_statement "{\n  char *__buf;\n  long lVar1;\n  int iVar2;\n  ssize_t sVar3;\n  long lVar4;\n  char *str;\n  int iVar5;\n  __sigset_t *p_Var6;\n  long in_FS_OFFSET;\n  byte bVar7;\n  termios tio;\n  termios oldtio;\n  sigaction sa;\n  sigaction oldsa;\n  \n  bVar7 = 0;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  tcflush(fd,0);\n  fputs_unlocked(prompt,stdout);\n  fflush_all();\n  tcgetattr(fd,(termios *)&oldtio);\n  tio.c_iflag = oldtio.c_iflag;\n  tio.c_oflag = oldtio.c_oflag;\n  tio.c_line = oldtio.c_line;\n  tio.c_cc[0] = oldtio.c_cc[0];\n  tio.c_cc[1] = oldtio.c_cc[1];\n  tio.c_cc[2] = oldtio.c_cc[2];\n  tio.c_cc[3] = oldtio.c_cc[3];\n  tio.c_cc[4] = oldtio.c_cc[4];\n  tio.c_cc[5] = oldtio.c_cc[5];\n  tio.c_cc[6] = oldtio.c_cc[6];\n  tio.c_cc[7] = oldtio.c_cc[7];\n  tio.c_cc[8] = oldtio.c_cc[8];\n  tio.c_cc[9] = oldtio.c_cc[9];\n  tio.c_cc[10] = oldtio.c_cc[10];\n  tio.c_cc[0xb] = oldtio.c_cc[0xb];\n  tio.c_cc[0xc] = oldtio.c_cc[0xc];\n  tio.c_cc[0xd] = oldtio.c_cc[0xd];\n  tio.c_cc[0xe] = oldtio.c_cc[0xe];\n  tio.c_cc[0xf] = oldtio.c_cc[0xf];\n  tio.c_cc[0x10] = oldtio.c_cc[0x10];\n  tio.c_cc[0x11] = oldtio.c_cc[0x11];\n  tio.c_cc[0x12] = oldtio.c_cc[0x12];\n  tio.c_cc[0x13] = oldtio.c_cc[0x13];\n  tio.c_cc[0x14] = oldtio.c_cc[0x14];\n  tio.c_cc[0x15] = oldtio.c_cc[0x15];\n  tio.c_cc[0x16] = oldtio.c_cc[0x16];\n  tio.c_cc[0x17] = oldtio.c_cc[0x17];\n  tio.c_cc[0x18] = oldtio.c_cc[0x18];\n  tio.c_cc[0x19] = oldtio.c_cc[0x19];\n  tio.c_cc[0x1a] = oldtio.c_cc[0x1a];\n  tio.c_cc[0x1b] = oldtio.c_cc[0x1b];\n  tio.c_cc[0x1c] = oldtio.c_cc[0x1c];\n  tio.c_cc[0x1d] = oldtio.c_cc[0x1d];\n  tio.c_cc[0x1e] = oldtio.c_cc[0x1e];\n  tio.c_cc[0x1f] = oldtio.c_cc[0x1f];\n  tio._49_3_ = oldtio._49_3_;\n  tio.c_ispeed = oldtio.c_ispeed;\n  tio.c_ospeed = oldtio.c_ospeed;\n  tio._8_8_ = oldtio._8_8_ & 0xffffff87ffffffff;\n  tcsetattr(fd,0,(termios *)&tio);\n  p_Var6 = &sa.sa_mask;\n  for (lVar4 = 0x12; lVar4 != 0; lVar4 = lVar4 + -1) {\n    p_Var6->__val[0] = 0;\n    p_Var6 = (__sigset_t *)((long)p_Var6 + (ulong)bVar7 * -0x10 + 8);\n  }\n  sa.__sigaction_handler.sa_handler = askpass_timeout;\n  sigaction(2,(sigaction *)&sa,(sigaction *)&oldsa);\n  if (timeout != 0) {\n    sigaction_set(0xe,&sa);\n    alarm(timeout);\n  }\n  lVar4 = 0;\n  str = (char *)0x0;\n  while( true ) {\n    iVar5 = (int)lVar4;\n    str = (char *)xrealloc(str,lVar4 + 2);\n    __buf = str + lVar4;\n    sVar3 = read(fd,__buf,1);\n    iVar2 = (int)sVar3;\n    if ((iVar2 == 0 && iVar5 == 0) || (iVar2 < 0)) break;\n    if ((iVar2 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar4 = lVar4 + 1;\n    if (lVar4 == 0xfff) goto code_r0x0019891f;\n  }\n  *__buf = '\0';\n  nuke_str(str);\n  free(str);\n  str = (char *)0x0;\nLAB_001988a3:\n  if (timeout != 0) {\n    alarm(0);\n  }\n  sigaction_set(2,&oldsa);\n  tcsetattr(fd,0,(termios *)&oldtio);\n  bb_putchar(10);\n  fflush_all();\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return str;\ncode_r0x0019891f:\n  iVar5 = 0xfff;\nLAB_00198925:\n  str[iVar5] = '\0';\n  goto LAB_001988a3;\n}" { (declaration "char *__buf;" primitive_type (pointer_declarator "*__buf" * identifier) ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ssize_t sVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "char *str;" primitive_type (pointer_declarator "*str" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "__sigset_t *p_Var6;" type_identifier (pointer_declarator "*p_Var6" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "termios tio;" type_identifier identifier ;) (declaration "termios oldtio;" type_identifier identifier ;) (declaration "sigaction sa;" type_identifier identifier ;) (declaration "sigaction oldsa;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "tcflush(fd,0);" (call_expression "tcflush(fd,0)" identifier (argument_list "(fd,0)" ( identifier , number_literal ))) ;) (expression_statement "fputs_unlocked(prompt,stdout);" (call_expression "fputs_unlocked(prompt,stdout)" identifier (argument_list "(prompt,stdout)" ( identifier , identifier ))) ;) (expression_statement "fflush_all();" (call_expression "fflush_all()" identifier (argument_list "()" ( ))) ;) (expression_statement "tcgetattr(fd,(termios *)&oldtio);" (call_expression "tcgetattr(fd,(termios *)&oldtio)" identifier (argument_list "(fd,(termios *)&oldtio)" ( identifier , (cast_expression "(termios *)&oldtio" ( (type_descriptor "termios *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&oldtio" & identifier)) ))) ;) (expression_statement "tio.c_iflag = oldtio.c_iflag;" (assignment_expression "tio.c_iflag = oldtio.c_iflag" (field_expression "tio.c_iflag" identifier . field_identifier) = (field_expression "oldtio.c_iflag" identifier . field_identifier)) ;) (expression_statement "tio.c_oflag = oldtio.c_oflag;" (assignment_expression "tio.c_oflag = oldtio.c_oflag" (field_expression "tio.c_oflag" identifier . field_identifier) = (field_expression "oldtio.c_oflag" identifier . field_identifier)) ;) (expression_statement "tio.c_line = oldtio.c_line;" (assignment_expression "tio.c_line = oldtio.c_line" (field_expression "tio.c_line" identifier . field_identifier) = (field_expression "oldtio.c_line" identifier . field_identifier)) ;) (expression_statement "tio.c_cc[0] = oldtio.c_cc[0];" (assignment_expression "tio.c_cc[0] = oldtio.c_cc[0]" (subscript_expression "tio.c_cc[0]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[1] = oldtio.c_cc[1];" (assignment_expression "tio.c_cc[1] = oldtio.c_cc[1]" (subscript_expression "tio.c_cc[1]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[1]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[2] = oldtio.c_cc[2];" (assignment_expression "tio.c_cc[2] = oldtio.c_cc[2]" (subscript_expression "tio.c_cc[2]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[2]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[3] = oldtio.c_cc[3];" (assignment_expression "tio.c_cc[3] = oldtio.c_cc[3]" (subscript_expression "tio.c_cc[3]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[3]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[4] = oldtio.c_cc[4];" (assignment_expression "tio.c_cc[4] = oldtio.c_cc[4]" (subscript_expression "tio.c_cc[4]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[4]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[5] = oldtio.c_cc[5];" (assignment_expression "tio.c_cc[5] = oldtio.c_cc[5]" (subscript_expression "tio.c_cc[5]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[5]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[6] = oldtio.c_cc[6];" (assignment_expression "tio.c_cc[6] = oldtio.c_cc[6]" (subscript_expression "tio.c_cc[6]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[6]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[7] = oldtio.c_cc[7];" (assignment_expression "tio.c_cc[7] = oldtio.c_cc[7]" (subscript_expression "tio.c_cc[7]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[7]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[8] = oldtio.c_cc[8];" (assignment_expression "tio.c_cc[8] = oldtio.c_cc[8]" (subscript_expression "tio.c_cc[8]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[8]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[9] = oldtio.c_cc[9];" (assignment_expression "tio.c_cc[9] = oldtio.c_cc[9]" (subscript_expression "tio.c_cc[9]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[9]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[10] = oldtio.c_cc[10];" (assignment_expression "tio.c_cc[10] = oldtio.c_cc[10]" (subscript_expression "tio.c_cc[10]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[10]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0xb] = oldtio.c_cc[0xb];" (assignment_expression "tio.c_cc[0xb] = oldtio.c_cc[0xb]" (subscript_expression "tio.c_cc[0xb]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0xb]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0xc] = oldtio.c_cc[0xc];" (assignment_expression "tio.c_cc[0xc] = oldtio.c_cc[0xc]" (subscript_expression "tio.c_cc[0xc]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0xc]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0xd] = oldtio.c_cc[0xd];" (assignment_expression "tio.c_cc[0xd] = oldtio.c_cc[0xd]" (subscript_expression "tio.c_cc[0xd]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0xd]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0xe] = oldtio.c_cc[0xe];" (assignment_expression "tio.c_cc[0xe] = oldtio.c_cc[0xe]" (subscript_expression "tio.c_cc[0xe]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0xe]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0xf] = oldtio.c_cc[0xf];" (assignment_expression "tio.c_cc[0xf] = oldtio.c_cc[0xf]" (subscript_expression "tio.c_cc[0xf]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0xf]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x10] = oldtio.c_cc[0x10];" (assignment_expression "tio.c_cc[0x10] = oldtio.c_cc[0x10]" (subscript_expression "tio.c_cc[0x10]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x10]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x11] = oldtio.c_cc[0x11];" (assignment_expression "tio.c_cc[0x11] = oldtio.c_cc[0x11]" (subscript_expression "tio.c_cc[0x11]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x11]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x12] = oldtio.c_cc[0x12];" (assignment_expression "tio.c_cc[0x12] = oldtio.c_cc[0x12]" (subscript_expression "tio.c_cc[0x12]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x12]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x13] = oldtio.c_cc[0x13];" (assignment_expression "tio.c_cc[0x13] = oldtio.c_cc[0x13]" (subscript_expression "tio.c_cc[0x13]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x13]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x14] = oldtio.c_cc[0x14];" (assignment_expression "tio.c_cc[0x14] = oldtio.c_cc[0x14]" (subscript_expression "tio.c_cc[0x14]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x14]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x15] = oldtio.c_cc[0x15];" (assignment_expression "tio.c_cc[0x15] = oldtio.c_cc[0x15]" (subscript_expression "tio.c_cc[0x15]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x15]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x16] = oldtio.c_cc[0x16];" (assignment_expression "tio.c_cc[0x16] = oldtio.c_cc[0x16]" (subscript_expression "tio.c_cc[0x16]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x16]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x17] = oldtio.c_cc[0x17];" (assignment_expression "tio.c_cc[0x17] = oldtio.c_cc[0x17]" (subscript_expression "tio.c_cc[0x17]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x17]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x18] = oldtio.c_cc[0x18];" (assignment_expression "tio.c_cc[0x18] = oldtio.c_cc[0x18]" (subscript_expression "tio.c_cc[0x18]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x18]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x19] = oldtio.c_cc[0x19];" (assignment_expression "tio.c_cc[0x19] = oldtio.c_cc[0x19]" (subscript_expression "tio.c_cc[0x19]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x19]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x1a] = oldtio.c_cc[0x1a];" (assignment_expression "tio.c_cc[0x1a] = oldtio.c_cc[0x1a]" (subscript_expression "tio.c_cc[0x1a]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x1a]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x1b] = oldtio.c_cc[0x1b];" (assignment_expression "tio.c_cc[0x1b] = oldtio.c_cc[0x1b]" (subscript_expression "tio.c_cc[0x1b]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x1b]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x1c] = oldtio.c_cc[0x1c];" (assignment_expression "tio.c_cc[0x1c] = oldtio.c_cc[0x1c]" (subscript_expression "tio.c_cc[0x1c]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x1c]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x1d] = oldtio.c_cc[0x1d];" (assignment_expression "tio.c_cc[0x1d] = oldtio.c_cc[0x1d]" (subscript_expression "tio.c_cc[0x1d]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x1d]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x1e] = oldtio.c_cc[0x1e];" (assignment_expression "tio.c_cc[0x1e] = oldtio.c_cc[0x1e]" (subscript_expression "tio.c_cc[0x1e]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x1e]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio.c_cc[0x1f] = oldtio.c_cc[0x1f];" (assignment_expression "tio.c_cc[0x1f] = oldtio.c_cc[0x1f]" (subscript_expression "tio.c_cc[0x1f]" (field_expression "tio.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldtio.c_cc[0x1f]" (field_expression "oldtio.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "tio._49_3_ = oldtio._49_3_;" (assignment_expression "tio._49_3_ = oldtio._49_3_" (field_expression "tio._49_3_" identifier . field_identifier) = (field_expression "oldtio._49_3_" identifier . field_identifier)) ;) (expression_statement "tio.c_ispeed = oldtio.c_ispeed;" (assignment_expression "tio.c_ispeed = oldtio.c_ispeed" (field_expression "tio.c_ispeed" identifier . field_identifier) = (field_expression "oldtio.c_ispeed" identifier . field_identifier)) ;) (expression_statement "tio.c_ospeed = oldtio.c_ospeed;" (assignment_expression "tio.c_ospeed = oldtio.c_ospeed" (field_expression "tio.c_ospeed" identifier . field_identifier) = (field_expression "oldtio.c_ospeed" identifier . field_identifier)) ;) (expression_statement "tio._8_8_ = oldtio._8_8_ & 0xffffff87ffffffff;" (assignment_expression "tio._8_8_ = oldtio._8_8_ & 0xffffff87ffffffff" (field_expression "tio._8_8_" identifier . field_identifier) = (binary_expression "oldtio._8_8_ & 0xffffff87ffffffff" (field_expression "oldtio._8_8_" identifier . field_identifier) & number_literal)) ;) (expression_statement "tcsetattr(fd,0,(termios *)&tio);" (call_expression "tcsetattr(fd,0,(termios *)&tio)" identifier (argument_list "(fd,0,(termios *)&tio)" ( identifier , number_literal , (cast_expression "(termios *)&tio" ( (type_descriptor "termios *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&tio" & identifier)) ))) ;) (expression_statement "p_Var6 = &sa.sa_mask;" (assignment_expression "p_Var6 = &sa.sa_mask" identifier = (pointer_expression "&sa.sa_mask" & (field_expression "sa.sa_mask" identifier . field_identifier))) ;) (for_statement "for (lVar4 = 0x12; lVar4 != 0; lVar4 = lVar4 + -1) {\n    p_Var6->__val[0] = 0;\n    p_Var6 = (__sigset_t *)((long)p_Var6 + (ulong)bVar7 * -0x10 + 8);\n  }" for ( (assignment_expression "lVar4 = 0x12" identifier = number_literal) ; (binary_expression "lVar4 != 0" identifier != number_literal) ; (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n    p_Var6->__val[0] = 0;\n    p_Var6 = (__sigset_t *)((long)p_Var6 + (ulong)bVar7 * -0x10 + 8);\n  }" { (expression_statement "p_Var6->__val[0] = 0;" (assignment_expression "p_Var6->__val[0] = 0" (subscript_expression "p_Var6->__val[0]" (field_expression "p_Var6->__val" identifier -> field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "p_Var6 = (__sigset_t *)((long)p_Var6 + (ulong)bVar7 * -0x10 + 8);" (assignment_expression "p_Var6 = (__sigset_t *)((long)p_Var6 + (ulong)bVar7 * -0x10 + 8)" identifier = (cast_expression "(__sigset_t *)((long)p_Var6 + (ulong)bVar7 * -0x10 + 8)" ( (type_descriptor "__sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p_Var6 + (ulong)bVar7 * -0x10 + 8)" ( (binary_expression "(long)p_Var6 + (ulong)bVar7 * -0x10 + 8" (binary_expression "(long)p_Var6 + (ulong)bVar7 * -0x10" (cast_expression "(long)p_Var6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "(ulong)bVar7 * -0x10" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "sa.__sigaction_handler.sa_handler = askpass_timeout;" (assignment_expression "sa.__sigaction_handler.sa_handler = askpass_timeout" (field_expression "sa.__sigaction_handler.sa_handler" (field_expression "sa.__sigaction_handler" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "sigaction(2,(sigaction *)&sa,(sigaction *)&oldsa);" (call_expression "sigaction(2,(sigaction *)&sa,(sigaction *)&oldsa)" identifier (argument_list "(2,(sigaction *)&sa,(sigaction *)&oldsa)" ( number_literal , (cast_expression "(sigaction *)&sa" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&sa" & identifier)) , (cast_expression "(sigaction *)&oldsa" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&oldsa" & identifier)) ))) ;) (if_statement "if (timeout != 0) {\n    sigaction_set(0xe,&sa);\n    alarm(timeout);\n  }" if (parenthesized_expression "(timeout != 0)" ( (binary_expression "timeout != 0" identifier != number_literal) )) (compound_statement "{\n    sigaction_set(0xe,&sa);\n    alarm(timeout);\n  }" { (expression_statement "sigaction_set(0xe,&sa);" (call_expression "sigaction_set(0xe,&sa)" identifier (argument_list "(0xe,&sa)" ( number_literal , (pointer_expression "&sa" & identifier) ))) ;) (expression_statement "alarm(timeout);" (call_expression "alarm(timeout)" identifier (argument_list "(timeout)" ( identifier ))) ;) })) (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) (expression_statement "str = (char *)0x0;" (assignment_expression "str = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (while_statement "while( true ) {\n    iVar5 = (int)lVar4;\n    str = (char *)xrealloc(str,lVar4 + 2);\n    __buf = str + lVar4;\n    sVar3 = read(fd,__buf,1);\n    iVar2 = (int)sVar3;\n    if ((iVar2 == 0 && iVar5 == 0) || (iVar2 < 0)) break;\n    if ((iVar2 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar4 = lVar4 + 1;\n    if (lVar4 == 0xfff) goto code_r0x0019891f;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar5 = (int)lVar4;\n    str = (char *)xrealloc(str,lVar4 + 2);\n    __buf = str + lVar4;\n    sVar3 = read(fd,__buf,1);\n    iVar2 = (int)sVar3;\n    if ((iVar2 == 0 && iVar5 == 0) || (iVar2 < 0)) break;\n    if ((iVar2 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar4 = lVar4 + 1;\n    if (lVar4 == 0xfff) goto code_r0x0019891f;\n  }" { (expression_statement "iVar5 = (int)lVar4;" (assignment_expression "iVar5 = (int)lVar4" identifier = (cast_expression "(int)lVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "str = (char *)xrealloc(str,lVar4 + 2);" (assignment_expression "str = (char *)xrealloc(str,lVar4 + 2)" identifier = (cast_expression "(char *)xrealloc(str,lVar4 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(str,lVar4 + 2)" identifier (argument_list "(str,lVar4 + 2)" ( identifier , (binary_expression "lVar4 + 2" identifier + number_literal) ))))) ;) (expression_statement "__buf = str + lVar4;" (assignment_expression "__buf = str + lVar4" identifier = (binary_expression "str + lVar4" identifier + identifier)) ;) (expression_statement "sVar3 = read(fd,__buf,1);" (assignment_expression "sVar3 = read(fd,__buf,1)" identifier = (call_expression "read(fd,__buf,1)" identifier (argument_list "(fd,__buf,1)" ( identifier , identifier , number_literal )))) ;) (expression_statement "iVar2 = (int)sVar3;" (assignment_expression "iVar2 = (int)sVar3" identifier = (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((iVar2 == 0 && iVar5 == 0) || (iVar2 < 0)) break;" if (parenthesized_expression "((iVar2 == 0 && iVar5 == 0) || (iVar2 < 0))" ( (binary_expression "(iVar2 == 0 && iVar5 == 0) || (iVar2 < 0)" (parenthesized_expression "(iVar2 == 0 && iVar5 == 0)" ( (binary_expression "iVar2 == 0 && iVar5 == 0" (binary_expression "iVar2 == 0" identifier == number_literal) && (binary_expression "iVar5 == 0" identifier == number_literal)) )) || (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) ))) )) (break_statement "break;" break ;)) (if_statement "if ((iVar2 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;" if (parenthesized_expression "((iVar2 == 0) || ((*__buf == '\n' || (*__buf == '\r'))))" ( (binary_expression "(iVar2 == 0) || ((*__buf == '\n' || (*__buf == '\r')))" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "((*__buf == '\n' || (*__buf == '\r')))" ( (parenthesized_expression "(*__buf == '\n' || (*__buf == '\r'))" ( (binary_expression "*__buf == '\n' || (*__buf == '\r')" (binary_expression "*__buf == '\n'" (pointer_expression "*__buf" * identifier) == (char_literal "'\n'" ' escape_sequence ')) || (parenthesized_expression "(*__buf == '\r')" ( (binary_expression "*__buf == '\r'" (pointer_expression "*__buf" * identifier) == (char_literal "'\r'" ' escape_sequence ')) ))) )) ))) )) (goto_statement "goto LAB_00198925;" goto statement_identifier ;)) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" identifier = (binary_expression "lVar4 + 1" identifier + number_literal)) ;) (if_statement "if (lVar4 == 0xfff) goto code_r0x0019891f;" if (parenthesized_expression "(lVar4 == 0xfff)" ( (binary_expression "lVar4 == 0xfff" identifier == number_literal) )) (goto_statement "goto code_r0x0019891f;" goto statement_identifier ;)) })) (expression_statement "*__buf = '\0';" (assignment_expression "*__buf = '\0'" (pointer_expression "*__buf" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "nuke_str(str);" (call_expression "nuke_str(str)" identifier (argument_list "(str)" ( identifier ))) ;) (expression_statement "free(str);" (call_expression "free(str)" identifier (argument_list "(str)" ( identifier ))) ;) (expression_statement "str = (char *)0x0;" (assignment_expression "str = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_001988a3:\n  if (timeout != 0) {\n    alarm(0);\n  }" statement_identifier : (if_statement "if (timeout != 0) {\n    alarm(0);\n  }" if (parenthesized_expression "(timeout != 0)" ( (binary_expression "timeout != 0" identifier != number_literal) )) (compound_statement "{\n    alarm(0);\n  }" { (expression_statement "alarm(0);" (call_expression "alarm(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (expression_statement "sigaction_set(2,&oldsa);" (call_expression "sigaction_set(2,&oldsa)" identifier (argument_list "(2,&oldsa)" ( number_literal , (pointer_expression "&oldsa" & identifier) ))) ;) (expression_statement "tcsetattr(fd,0,(termios *)&oldtio);" (call_expression "tcsetattr(fd,0,(termios *)&oldtio)" identifier (argument_list "(fd,0,(termios *)&oldtio)" ( identifier , number_literal , (cast_expression "(termios *)&oldtio" ( (type_descriptor "termios *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&oldtio" & identifier)) ))) ;) (expression_statement "bb_putchar(10);" (call_expression "bb_putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (expression_statement "fflush_all();" (call_expression "fflush_all()" identifier (argument_list "()" ( ))) ;) (if_statement "if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar1 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return str;" return identifier ;) (labeled_statement "code_r0x0019891f:\n  iVar5 = 0xfff;" statement_identifier : (expression_statement "iVar5 = 0xfff;" (assignment_expression "iVar5 = 0xfff" identifier = number_literal) ;)) (labeled_statement "LAB_00198925:\n  str[iVar5] = '\0';" statement_identifier : (expression_statement "str[iVar5] = '\0';" (assignment_expression "str[iVar5] = '\0'" (subscript_expression "str[iVar5]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;)) (goto_statement "goto LAB_001988a3;" goto statement_identifier ;) })))
(translation_unit "void * FUN_00198755(int param_1,uint param_2,char *param_3)\n\n{\n  char *__buf;\n  int iVar1;\n  ssize_t sVar2;\n  long lVar3;\n  void *__ptr;\n  int iVar4;\n  _union_1457 *p_Var5;\n  long in_FS_OFFSET;\n  byte bVar6;\n  termios local_1f8;\n  termios local_1b8;\n  _union_1457 local_178;\n  _union_1457 local_170 [19];\n  sigaction local_d8;\n  long local_40;\n  \n  bVar6 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  tcflush(param_1,0);\n  fputs_unlocked(param_3,stdout);\n  FUN_0010e943();\n  tcgetattr(param_1,&local_1b8);\n  local_1f8.c_iflag = local_1b8.c_iflag;\n  local_1f8.c_oflag = local_1b8.c_oflag;\n  local_1f8.c_line = local_1b8.c_line;\n  local_1f8.c_cc[0] = local_1b8.c_cc[0];\n  local_1f8.c_cc[1] = local_1b8.c_cc[1];\n  local_1f8.c_cc[2] = local_1b8.c_cc[2];\n  local_1f8.c_cc[3] = local_1b8.c_cc[3];\n  local_1f8.c_cc[4] = local_1b8.c_cc[4];\n  local_1f8.c_cc[5] = local_1b8.c_cc[5];\n  local_1f8.c_cc[6] = local_1b8.c_cc[6];\n  local_1f8.c_cc[7] = local_1b8.c_cc[7];\n  local_1f8.c_cc[8] = local_1b8.c_cc[8];\n  local_1f8.c_cc[9] = local_1b8.c_cc[9];\n  local_1f8.c_cc[10] = local_1b8.c_cc[10];\n  local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];\n  local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];\n  local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];\n  local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];\n  local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];\n  local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];\n  local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];\n  local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];\n  local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];\n  local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];\n  local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];\n  local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];\n  local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];\n  local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];\n  local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];\n  local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];\n  local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];\n  local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];\n  local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];\n  local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];\n  local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];\n  local_1f8._49_3_ = local_1b8._49_3_;\n  local_1f8.c_ispeed = local_1b8.c_ispeed;\n  local_1f8.c_ospeed = local_1b8.c_ospeed;\n  local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;\n  tcsetattr(param_1,0,&local_1f8);\n  p_Var5 = local_170;\n  for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }\n  local_178.sa_handler = (__sighandler_t)&DAT_00198754;\n  sigaction(2,(sigaction *)&local_178,&local_d8);\n  if (param_2 != 0) {\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }\n  lVar3 = 0;\n  __ptr = (void *)0x0;\n  while( true ) {\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }\n  *__buf = '\0';\n  FUN_001a0a97(__ptr);\n  free(__ptr);\n  __ptr = (void *)0x0;\nLAB_001988a3:\n  if (param_2 != 0) {\n    alarm(0);\n  }\n  FUN_0010f67f(2,&local_d8);\n  tcsetattr(param_1,0,&local_1b8);\n  FUN_0010e956(10);\n  FUN_0010e943();\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return __ptr;\ncode_r0x0019891f:\n  iVar4 = 0xfff;\nLAB_00198925:\n  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;\n  goto LAB_001988a3;\n}\n\n" (function_definition "void * FUN_00198755(int param_1,uint param_2,char *param_3)\n\n{\n  char *__buf;\n  int iVar1;\n  ssize_t sVar2;\n  long lVar3;\n  void *__ptr;\n  int iVar4;\n  _union_1457 *p_Var5;\n  long in_FS_OFFSET;\n  byte bVar6;\n  termios local_1f8;\n  termios local_1b8;\n  _union_1457 local_178;\n  _union_1457 local_170 [19];\n  sigaction local_d8;\n  long local_40;\n  \n  bVar6 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  tcflush(param_1,0);\n  fputs_unlocked(param_3,stdout);\n  FUN_0010e943();\n  tcgetattr(param_1,&local_1b8);\n  local_1f8.c_iflag = local_1b8.c_iflag;\n  local_1f8.c_oflag = local_1b8.c_oflag;\n  local_1f8.c_line = local_1b8.c_line;\n  local_1f8.c_cc[0] = local_1b8.c_cc[0];\n  local_1f8.c_cc[1] = local_1b8.c_cc[1];\n  local_1f8.c_cc[2] = local_1b8.c_cc[2];\n  local_1f8.c_cc[3] = local_1b8.c_cc[3];\n  local_1f8.c_cc[4] = local_1b8.c_cc[4];\n  local_1f8.c_cc[5] = local_1b8.c_cc[5];\n  local_1f8.c_cc[6] = local_1b8.c_cc[6];\n  local_1f8.c_cc[7] = local_1b8.c_cc[7];\n  local_1f8.c_cc[8] = local_1b8.c_cc[8];\n  local_1f8.c_cc[9] = local_1b8.c_cc[9];\n  local_1f8.c_cc[10] = local_1b8.c_cc[10];\n  local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];\n  local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];\n  local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];\n  local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];\n  local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];\n  local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];\n  local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];\n  local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];\n  local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];\n  local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];\n  local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];\n  local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];\n  local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];\n  local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];\n  local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];\n  local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];\n  local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];\n  local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];\n  local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];\n  local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];\n  local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];\n  local_1f8._49_3_ = local_1b8._49_3_;\n  local_1f8.c_ispeed = local_1b8.c_ispeed;\n  local_1f8.c_ospeed = local_1b8.c_ospeed;\n  local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;\n  tcsetattr(param_1,0,&local_1f8);\n  p_Var5 = local_170;\n  for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }\n  local_178.sa_handler = (__sighandler_t)&DAT_00198754;\n  sigaction(2,(sigaction *)&local_178,&local_d8);\n  if (param_2 != 0) {\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }\n  lVar3 = 0;\n  __ptr = (void *)0x0;\n  while( true ) {\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }\n  *__buf = '\0';\n  FUN_001a0a97(__ptr);\n  free(__ptr);\n  __ptr = (void *)0x0;\nLAB_001988a3:\n  if (param_2 != 0) {\n    alarm(0);\n  }\n  FUN_0010f67f(2,&local_d8);\n  tcsetattr(param_1,0,&local_1b8);\n  FUN_0010e956(10);\n  FUN_0010e943();\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return __ptr;\ncode_r0x0019891f:\n  iVar4 = 0xfff;\nLAB_00198925:\n  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;\n  goto LAB_001988a3;\n}" primitive_type (pointer_declarator "* FUN_00198755(int param_1,uint param_2,char *param_3)" * (function_declarator "FUN_00198755(int param_1,uint param_2,char *param_3)" identifier (parameter_list "(int param_1,uint param_2,char *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  char *__buf;\n  int iVar1;\n  ssize_t sVar2;\n  long lVar3;\n  void *__ptr;\n  int iVar4;\n  _union_1457 *p_Var5;\n  long in_FS_OFFSET;\n  byte bVar6;\n  termios local_1f8;\n  termios local_1b8;\n  _union_1457 local_178;\n  _union_1457 local_170 [19];\n  sigaction local_d8;\n  long local_40;\n  \n  bVar6 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  tcflush(param_1,0);\n  fputs_unlocked(param_3,stdout);\n  FUN_0010e943();\n  tcgetattr(param_1,&local_1b8);\n  local_1f8.c_iflag = local_1b8.c_iflag;\n  local_1f8.c_oflag = local_1b8.c_oflag;\n  local_1f8.c_line = local_1b8.c_line;\n  local_1f8.c_cc[0] = local_1b8.c_cc[0];\n  local_1f8.c_cc[1] = local_1b8.c_cc[1];\n  local_1f8.c_cc[2] = local_1b8.c_cc[2];\n  local_1f8.c_cc[3] = local_1b8.c_cc[3];\n  local_1f8.c_cc[4] = local_1b8.c_cc[4];\n  local_1f8.c_cc[5] = local_1b8.c_cc[5];\n  local_1f8.c_cc[6] = local_1b8.c_cc[6];\n  local_1f8.c_cc[7] = local_1b8.c_cc[7];\n  local_1f8.c_cc[8] = local_1b8.c_cc[8];\n  local_1f8.c_cc[9] = local_1b8.c_cc[9];\n  local_1f8.c_cc[10] = local_1b8.c_cc[10];\n  local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];\n  local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];\n  local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];\n  local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];\n  local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];\n  local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];\n  local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];\n  local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];\n  local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];\n  local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];\n  local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];\n  local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];\n  local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];\n  local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];\n  local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];\n  local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];\n  local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];\n  local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];\n  local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];\n  local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];\n  local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];\n  local_1f8._49_3_ = local_1b8._49_3_;\n  local_1f8.c_ispeed = local_1b8.c_ispeed;\n  local_1f8.c_ospeed = local_1b8.c_ospeed;\n  local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;\n  tcsetattr(param_1,0,&local_1f8);\n  p_Var5 = local_170;\n  for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }\n  local_178.sa_handler = (__sighandler_t)&DAT_00198754;\n  sigaction(2,(sigaction *)&local_178,&local_d8);\n  if (param_2 != 0) {\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }\n  lVar3 = 0;\n  __ptr = (void *)0x0;\n  while( true ) {\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }\n  *__buf = '\0';\n  FUN_001a0a97(__ptr);\n  free(__ptr);\n  __ptr = (void *)0x0;\nLAB_001988a3:\n  if (param_2 != 0) {\n    alarm(0);\n  }\n  FUN_0010f67f(2,&local_d8);\n  tcsetattr(param_1,0,&local_1b8);\n  FUN_0010e956(10);\n  FUN_0010e943();\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return __ptr;\ncode_r0x0019891f:\n  iVar4 = 0xfff;\nLAB_00198925:\n  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;\n  goto LAB_001988a3;\n}" { (declaration "char *__buf;" primitive_type (pointer_declarator "*__buf" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "ssize_t sVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "_union_1457 *p_Var5;" type_identifier (pointer_declarator "*p_Var5" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "termios local_1f8;" type_identifier identifier ;) (declaration "termios local_1b8;" type_identifier identifier ;) (declaration "_union_1457 local_178;" type_identifier identifier ;) (declaration "_union_1457 local_170 [19];" type_identifier (array_declarator "local_170 [19]" identifier [ number_literal ]) ;) (declaration "sigaction local_d8;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "tcflush(param_1,0);" (call_expression "tcflush(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "fputs_unlocked(param_3,stdout);" (call_expression "fputs_unlocked(param_3,stdout)" identifier (argument_list "(param_3,stdout)" ( identifier , identifier ))) ;) (expression_statement "FUN_0010e943();" (call_expression "FUN_0010e943()" identifier (argument_list "()" ( ))) ;) (expression_statement "tcgetattr(param_1,&local_1b8);" (call_expression "tcgetattr(param_1,&local_1b8)" identifier (argument_list "(param_1,&local_1b8)" ( identifier , (pointer_expression "&local_1b8" & identifier) ))) ;) (expression_statement "local_1f8.c_iflag = local_1b8.c_iflag;" (assignment_expression "local_1f8.c_iflag = local_1b8.c_iflag" (field_expression "local_1f8.c_iflag" identifier . field_identifier) = (field_expression "local_1b8.c_iflag" identifier . field_identifier)) ;) (expression_statement "local_1f8.c_oflag = local_1b8.c_oflag;" (assignment_expression "local_1f8.c_oflag = local_1b8.c_oflag" (field_expression "local_1f8.c_oflag" identifier . field_identifier) = (field_expression "local_1b8.c_oflag" identifier . field_identifier)) ;) (expression_statement "local_1f8.c_line = local_1b8.c_line;" (assignment_expression "local_1f8.c_line = local_1b8.c_line" (field_expression "local_1f8.c_line" identifier . field_identifier) = (field_expression "local_1b8.c_line" identifier . field_identifier)) ;) (expression_statement "local_1f8.c_cc[0] = local_1b8.c_cc[0];" (assignment_expression "local_1f8.c_cc[0] = local_1b8.c_cc[0]" (subscript_expression "local_1f8.c_cc[0]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[1] = local_1b8.c_cc[1];" (assignment_expression "local_1f8.c_cc[1] = local_1b8.c_cc[1]" (subscript_expression "local_1f8.c_cc[1]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[1]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[2] = local_1b8.c_cc[2];" (assignment_expression "local_1f8.c_cc[2] = local_1b8.c_cc[2]" (subscript_expression "local_1f8.c_cc[2]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[2]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[3] = local_1b8.c_cc[3];" (assignment_expression "local_1f8.c_cc[3] = local_1b8.c_cc[3]" (subscript_expression "local_1f8.c_cc[3]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[3]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[4] = local_1b8.c_cc[4];" (assignment_expression "local_1f8.c_cc[4] = local_1b8.c_cc[4]" (subscript_expression "local_1f8.c_cc[4]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[4]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[5] = local_1b8.c_cc[5];" (assignment_expression "local_1f8.c_cc[5] = local_1b8.c_cc[5]" (subscript_expression "local_1f8.c_cc[5]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[5]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[6] = local_1b8.c_cc[6];" (assignment_expression "local_1f8.c_cc[6] = local_1b8.c_cc[6]" (subscript_expression "local_1f8.c_cc[6]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[6]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[7] = local_1b8.c_cc[7];" (assignment_expression "local_1f8.c_cc[7] = local_1b8.c_cc[7]" (subscript_expression "local_1f8.c_cc[7]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[7]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[8] = local_1b8.c_cc[8];" (assignment_expression "local_1f8.c_cc[8] = local_1b8.c_cc[8]" (subscript_expression "local_1f8.c_cc[8]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[8]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[9] = local_1b8.c_cc[9];" (assignment_expression "local_1f8.c_cc[9] = local_1b8.c_cc[9]" (subscript_expression "local_1f8.c_cc[9]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[9]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[10] = local_1b8.c_cc[10];" (assignment_expression "local_1f8.c_cc[10] = local_1b8.c_cc[10]" (subscript_expression "local_1f8.c_cc[10]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[10]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];" (assignment_expression "local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb]" (subscript_expression "local_1f8.c_cc[0xb]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0xb]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];" (assignment_expression "local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc]" (subscript_expression "local_1f8.c_cc[0xc]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0xc]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];" (assignment_expression "local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd]" (subscript_expression "local_1f8.c_cc[0xd]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0xd]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];" (assignment_expression "local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe]" (subscript_expression "local_1f8.c_cc[0xe]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0xe]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];" (assignment_expression "local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf]" (subscript_expression "local_1f8.c_cc[0xf]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0xf]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];" (assignment_expression "local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10]" (subscript_expression "local_1f8.c_cc[0x10]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x10]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];" (assignment_expression "local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11]" (subscript_expression "local_1f8.c_cc[0x11]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x11]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];" (assignment_expression "local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12]" (subscript_expression "local_1f8.c_cc[0x12]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x12]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];" (assignment_expression "local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13]" (subscript_expression "local_1f8.c_cc[0x13]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x13]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];" (assignment_expression "local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14]" (subscript_expression "local_1f8.c_cc[0x14]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x14]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];" (assignment_expression "local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15]" (subscript_expression "local_1f8.c_cc[0x15]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x15]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];" (assignment_expression "local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16]" (subscript_expression "local_1f8.c_cc[0x16]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x16]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];" (assignment_expression "local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17]" (subscript_expression "local_1f8.c_cc[0x17]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x17]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];" (assignment_expression "local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18]" (subscript_expression "local_1f8.c_cc[0x18]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x18]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];" (assignment_expression "local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19]" (subscript_expression "local_1f8.c_cc[0x19]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x19]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];" (assignment_expression "local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a]" (subscript_expression "local_1f8.c_cc[0x1a]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1a]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];" (assignment_expression "local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b]" (subscript_expression "local_1f8.c_cc[0x1b]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1b]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];" (assignment_expression "local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c]" (subscript_expression "local_1f8.c_cc[0x1c]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1c]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];" (assignment_expression "local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d]" (subscript_expression "local_1f8.c_cc[0x1d]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1d]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];" (assignment_expression "local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e]" (subscript_expression "local_1f8.c_cc[0x1e]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1e]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];" (assignment_expression "local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f]" (subscript_expression "local_1f8.c_cc[0x1f]" (field_expression "local_1f8.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_1b8.c_cc[0x1f]" (field_expression "local_1b8.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_1f8._49_3_ = local_1b8._49_3_;" (assignment_expression "local_1f8._49_3_ = local_1b8._49_3_" (field_expression "local_1f8._49_3_" identifier . field_identifier) = (field_expression "local_1b8._49_3_" identifier . field_identifier)) ;) (expression_statement "local_1f8.c_ispeed = local_1b8.c_ispeed;" (assignment_expression "local_1f8.c_ispeed = local_1b8.c_ispeed" (field_expression "local_1f8.c_ispeed" identifier . field_identifier) = (field_expression "local_1b8.c_ispeed" identifier . field_identifier)) ;) (expression_statement "local_1f8.c_ospeed = local_1b8.c_ospeed;" (assignment_expression "local_1f8.c_ospeed = local_1b8.c_ospeed" (field_expression "local_1f8.c_ospeed" identifier . field_identifier) = (field_expression "local_1b8.c_ospeed" identifier . field_identifier)) ;) (expression_statement "local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;" (assignment_expression "local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff" (field_expression "local_1f8._8_8_" identifier . field_identifier) = (binary_expression "local_1b8._8_8_ & 0xffffff87ffffffff" (field_expression "local_1b8._8_8_" identifier . field_identifier) & number_literal)) ;) (expression_statement "tcsetattr(param_1,0,&local_1f8);" (call_expression "tcsetattr(param_1,0,&local_1f8)" identifier (argument_list "(param_1,0,&local_1f8)" ( identifier , number_literal , (pointer_expression "&local_1f8" & identifier) ))) ;) (expression_statement "p_Var5 = local_170;" (assignment_expression "p_Var5 = local_170" identifier = identifier) ;) (for_statement "for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }" for ( (assignment_expression "lVar3 = 0x12" identifier = number_literal) ; (binary_expression "lVar3 != 0" identifier != number_literal) ; (assignment_expression "lVar3 = lVar3 + -1" identifier = (binary_expression "lVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }" { (expression_statement "p_Var5->sa_handler = (__sighandler_t)0x0;" (assignment_expression "p_Var5->sa_handler = (__sighandler_t)0x0" (field_expression "p_Var5->sa_handler" identifier -> field_identifier) = (cast_expression "(__sighandler_t)0x0" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal)) ;) (expression_statement "p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;" (assignment_expression "p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1" identifier = (binary_expression "p_Var5 + (ulong)bVar6 * -2 + 1" (binary_expression "p_Var5 + (ulong)bVar6 * -2" identifier + (binary_expression "(ulong)bVar6 * -2" (cast_expression "(ulong)bVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "local_178.sa_handler = (__sighandler_t)&DAT_00198754;" (assignment_expression "local_178.sa_handler = (__sighandler_t)&DAT_00198754" (field_expression "local_178.sa_handler" identifier . field_identifier) = (binary_expression "(__sighandler_t)&DAT_00198754" (parenthesized_expression "(__sighandler_t)" ( identifier )) & identifier)) ;) (expression_statement "sigaction(2,(sigaction *)&local_178,&local_d8);" (call_expression "sigaction(2,(sigaction *)&local_178,&local_d8)" identifier (argument_list "(2,(sigaction *)&local_178,&local_d8)" ( number_literal , (cast_expression "(sigaction *)&local_178" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_178" & identifier)) , (pointer_expression "&local_d8" & identifier) ))) ;) (if_statement "if (param_2 != 0) {\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }" { (expression_statement "FUN_0010f67f(0xe,&local_178);" (call_expression "FUN_0010f67f(0xe,&local_178)" identifier (argument_list "(0xe,&local_178)" ( number_literal , (pointer_expression "&local_178" & identifier) ))) ;) (expression_statement "alarm(param_2);" (call_expression "alarm(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) })) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (while_statement "while( true ) {\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }" { (expression_statement "iVar4 = (int)lVar3;" (assignment_expression "iVar4 = (int)lVar3" identifier = (cast_expression "(int)lVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "__ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);" (assignment_expression "__ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2)" identifier = (cast_expression "(void *)FUN_0010e5e8(__ptr,lVar3 + 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010e5e8(__ptr,lVar3 + 2)" identifier (argument_list "(__ptr,lVar3 + 2)" ( identifier , (binary_expression "lVar3 + 2" identifier + number_literal) ))))) ;) (expression_statement "__buf = (char *)((long)__ptr + lVar3);" (assignment_expression "__buf = (char *)((long)__ptr + lVar3)" identifier = (cast_expression "(char *)((long)__ptr + lVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)__ptr + lVar3)" ( (binary_expression "(long)__ptr + lVar3" (cast_expression "(long)__ptr" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) ;) (expression_statement "sVar2 = read(param_1,__buf,1);" (assignment_expression "sVar2 = read(param_1,__buf,1)" identifier = (call_expression "read(param_1,__buf,1)" identifier (argument_list "(param_1,__buf,1)" ( identifier , identifier , number_literal )))) ;) (expression_statement "iVar1 = (int)sVar2;" (assignment_expression "iVar1 = (int)sVar2" identifier = (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;" if (parenthesized_expression "((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0))" ( (binary_expression "(iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)" (parenthesized_expression "(iVar1 == 0 && iVar4 == 0)" ( (binary_expression "iVar1 == 0 && iVar4 == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "iVar4 == 0" identifier == number_literal)) )) || (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) ))) )) (break_statement "break;" break ;)) (if_statement "if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;" if (parenthesized_expression "((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r'))))" ( (binary_expression "(iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "((*__buf == '\n' || (*__buf == '\r')))" ( (parenthesized_expression "(*__buf == '\n' || (*__buf == '\r'))" ( (binary_expression "*__buf == '\n' || (*__buf == '\r')" (binary_expression "*__buf == '\n'" (pointer_expression "*__buf" * identifier) == (char_literal "'\n'" ' escape_sequence ')) || (parenthesized_expression "(*__buf == '\r')" ( (binary_expression "*__buf == '\r'" (pointer_expression "*__buf" * identifier) == (char_literal "'\r'" ' escape_sequence ')) ))) )) ))) )) (goto_statement "goto LAB_00198925;" goto statement_identifier ;)) (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) (if_statement "if (lVar3 == 0xfff) goto code_r0x0019891f;" if (parenthesized_expression "(lVar3 == 0xfff)" ( (binary_expression "lVar3 == 0xfff" identifier == number_literal) )) (goto_statement "goto code_r0x0019891f;" goto statement_identifier ;)) })) (expression_statement "*__buf = '\0';" (assignment_expression "*__buf = '\0'" (pointer_expression "*__buf" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "FUN_001a0a97(__ptr);" (call_expression "FUN_001a0a97(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_001988a3:\n  if (param_2 != 0) {\n    alarm(0);\n  }" statement_identifier : (if_statement "if (param_2 != 0) {\n    alarm(0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    alarm(0);\n  }" { (expression_statement "alarm(0);" (call_expression "alarm(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (expression_statement "FUN_0010f67f(2,&local_d8);" (call_expression "FUN_0010f67f(2,&local_d8)" identifier (argument_list "(2,&local_d8)" ( number_literal , (pointer_expression "&local_d8" & identifier) ))) ;) (expression_statement "tcsetattr(param_1,0,&local_1b8);" (call_expression "tcsetattr(param_1,0,&local_1b8)" identifier (argument_list "(param_1,0,&local_1b8)" ( identifier , number_literal , (pointer_expression "&local_1b8" & identifier) ))) ;) (expression_statement "FUN_0010e956(10);" (call_expression "FUN_0010e956(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (expression_statement "FUN_0010e943();" (call_expression "FUN_0010e943()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return __ptr;" return identifier ;) (labeled_statement "code_r0x0019891f:\n  iVar4 = 0xfff;" statement_identifier : (expression_statement "iVar4 = 0xfff;" (assignment_expression "iVar4 = 0xfff" identifier = number_literal) ;)) (labeled_statement "LAB_00198925:\n  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;" statement_identifier : (expression_statement "*(undefined1 *)((long)__ptr + (long)iVar4) = 0;" (assignment_expression "*(undefined1 *)((long)__ptr + (long)iVar4) = 0" (pointer_expression "*(undefined1 *)((long)__ptr + (long)iVar4)" * (cast_expression "(undefined1 *)((long)__ptr + (long)iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)__ptr + (long)iVar4)" ( (binary_expression "(long)__ptr + (long)iVar4" (cast_expression "(long)__ptr" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) = number_literal) ;)) (goto_statement "goto LAB_001988a3;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (subscript_expression (field_expression IDENT . field_identifier) [ LIT ])) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (binary_expression (field_expression IDENT . field_identifier) & LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (binary_expression (parenthesized_expression ( IDENT )) & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) ))) )) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )))) = LIT) ;)) (goto_statement goto statement_identifier ;) })))
(function_definition "void * FUN_00198755(int param_1,uint param_2,char *param_3)\n\n{\n  char *__buf;\n  int iVar1;\n  ssize_t sVar2;\n  long lVar3;\n  void *__ptr;\n  int iVar4;\n  _union_1457 *p_Var5;\n  long in_FS_OFFSET;\n  byte bVar6;\n  termios local_1f8;\n  termios local_1b8;\n  _union_1457 local_178;\n  _union_1457 local_170 [19];\n  sigaction local_d8;\n  long local_40;\n  \n  bVar6 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  tcflush(param_1,0);\n  fputs_unlocked(param_3,stdout);\n  FUN_0010e943();\n  tcgetattr(param_1,&local_1b8);\n  local_1f8.c_iflag = local_1b8.c_iflag;\n  local_1f8.c_oflag = local_1b8.c_oflag;\n  local_1f8.c_line = local_1b8.c_line;\n  local_1f8.c_cc[0] = local_1b8.c_cc[0];\n  local_1f8.c_cc[1] = local_1b8.c_cc[1];\n  local_1f8.c_cc[2] = local_1b8.c_cc[2];\n  local_1f8.c_cc[3] = local_1b8.c_cc[3];\n  local_1f8.c_cc[4] = local_1b8.c_cc[4];\n  local_1f8.c_cc[5] = local_1b8.c_cc[5];\n  local_1f8.c_cc[6] = local_1b8.c_cc[6];\n  local_1f8.c_cc[7] = local_1b8.c_cc[7];\n  local_1f8.c_cc[8] = local_1b8.c_cc[8];\n  local_1f8.c_cc[9] = local_1b8.c_cc[9];\n  local_1f8.c_cc[10] = local_1b8.c_cc[10];\n  local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];\n  local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];\n  local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];\n  local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];\n  local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];\n  local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];\n  local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];\n  local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];\n  local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];\n  local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];\n  local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];\n  local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];\n  local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];\n  local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];\n  local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];\n  local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];\n  local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];\n  local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];\n  local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];\n  local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];\n  local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];\n  local_1f8._49_3_ = local_1b8._49_3_;\n  local_1f8.c_ispeed = local_1b8.c_ispeed;\n  local_1f8.c_ospeed = local_1b8.c_ospeed;\n  local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;\n  tcsetattr(param_1,0,&local_1f8);\n  p_Var5 = local_170;\n  for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }\n  local_178.sa_handler = (__sighandler_t)&DAT_00198754;\n  sigaction(2,(sigaction *)&local_178,&local_d8);\n  if (param_2 != 0) {\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }\n  lVar3 = 0;\n  __ptr = (void *)0x0;\n  while( true ) {\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }\n  *__buf = '\0';\n  FUN_001a0a97(__ptr);\n  free(__ptr);\n  __ptr = (void *)0x0;\nLAB_001988a3:\n  if (param_2 != 0) {\n    alarm(0);\n  }\n  FUN_0010f67f(2,&local_d8);\n  tcsetattr(param_1,0,&local_1b8);\n  FUN_0010e956(10);\n  FUN_0010e943();\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return __ptr;\ncode_r0x0019891f:\n  iVar4 = 0xfff;\nLAB_00198925:\n  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;\n  goto LAB_001988a3;\n}" (primitive_type "void") (pointer_declarator "* FUN_00198755(int param_1,uint param_2,char *param_3)" (* "*") (function_declarator "FUN_00198755(int param_1,uint param_2,char *param_3)" (identifier "FUN_00198755") (parameter_list "(int param_1,uint param_2,char *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  char *__buf;\n  int iVar1;\n  ssize_t sVar2;\n  long lVar3;\n  void *__ptr;\n  int iVar4;\n  _union_1457 *p_Var5;\n  long in_FS_OFFSET;\n  byte bVar6;\n  termios local_1f8;\n  termios local_1b8;\n  _union_1457 local_178;\n  _union_1457 local_170 [19];\n  sigaction local_d8;\n  long local_40;\n  \n  bVar6 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  tcflush(param_1,0);\n  fputs_unlocked(param_3,stdout);\n  FUN_0010e943();\n  tcgetattr(param_1,&local_1b8);\n  local_1f8.c_iflag = local_1b8.c_iflag;\n  local_1f8.c_oflag = local_1b8.c_oflag;\n  local_1f8.c_line = local_1b8.c_line;\n  local_1f8.c_cc[0] = local_1b8.c_cc[0];\n  local_1f8.c_cc[1] = local_1b8.c_cc[1];\n  local_1f8.c_cc[2] = local_1b8.c_cc[2];\n  local_1f8.c_cc[3] = local_1b8.c_cc[3];\n  local_1f8.c_cc[4] = local_1b8.c_cc[4];\n  local_1f8.c_cc[5] = local_1b8.c_cc[5];\n  local_1f8.c_cc[6] = local_1b8.c_cc[6];\n  local_1f8.c_cc[7] = local_1b8.c_cc[7];\n  local_1f8.c_cc[8] = local_1b8.c_cc[8];\n  local_1f8.c_cc[9] = local_1b8.c_cc[9];\n  local_1f8.c_cc[10] = local_1b8.c_cc[10];\n  local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];\n  local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];\n  local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];\n  local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];\n  local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];\n  local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];\n  local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];\n  local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];\n  local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];\n  local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];\n  local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];\n  local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];\n  local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];\n  local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];\n  local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];\n  local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];\n  local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];\n  local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];\n  local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];\n  local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];\n  local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];\n  local_1f8._49_3_ = local_1b8._49_3_;\n  local_1f8.c_ispeed = local_1b8.c_ispeed;\n  local_1f8.c_ospeed = local_1b8.c_ospeed;\n  local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;\n  tcsetattr(param_1,0,&local_1f8);\n  p_Var5 = local_170;\n  for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }\n  local_178.sa_handler = (__sighandler_t)&DAT_00198754;\n  sigaction(2,(sigaction *)&local_178,&local_d8);\n  if (param_2 != 0) {\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }\n  lVar3 = 0;\n  __ptr = (void *)0x0;\n  while( true ) {\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }\n  *__buf = '\0';\n  FUN_001a0a97(__ptr);\n  free(__ptr);\n  __ptr = (void *)0x0;\nLAB_001988a3:\n  if (param_2 != 0) {\n    alarm(0);\n  }\n  FUN_0010f67f(2,&local_d8);\n  tcsetattr(param_1,0,&local_1b8);\n  FUN_0010e956(10);\n  FUN_0010e943();\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return __ptr;\ncode_r0x0019891f:\n  iVar4 = 0xfff;\nLAB_00198925:\n  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;\n  goto LAB_001988a3;\n}" ({ "{") (declaration "char *__buf;" (primitive_type "char") (pointer_declarator "*__buf" (* "*") (identifier "__buf")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ssize_t sVar2;" (primitive_type "ssize_t") (identifier "sVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "_union_1457 *p_Var5;" (type_identifier "_union_1457") (pointer_declarator "*p_Var5" (* "*") (identifier "p_Var5")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (declaration "termios local_1f8;" (type_identifier "termios") (identifier "local_1f8") (; ";")) (declaration "termios local_1b8;" (type_identifier "termios") (identifier "local_1b8") (; ";")) (declaration "_union_1457 local_178;" (type_identifier "_union_1457") (identifier "local_178") (; ";")) (declaration "_union_1457 local_170 [19];" (type_identifier "_union_1457") (array_declarator "local_170 [19]" (identifier "local_170") ([ "[") (number_literal "19") (] "]")) (; ";")) (declaration "sigaction local_d8;" (type_identifier "sigaction") (identifier "local_d8") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" (identifier "bVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "tcflush(param_1,0);" (call_expression "tcflush(param_1,0)" (identifier "tcflush") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "fputs_unlocked(param_3,stdout);" (call_expression "fputs_unlocked(param_3,stdout)" (identifier "fputs_unlocked") (argument_list "(param_3,stdout)" (( "(") (identifier "param_3") (, ",") (identifier "stdout") () ")"))) (; ";")) (expression_statement "FUN_0010e943();" (call_expression "FUN_0010e943()" (identifier "FUN_0010e943") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "tcgetattr(param_1,&local_1b8);" (call_expression "tcgetattr(param_1,&local_1b8)" (identifier "tcgetattr") (argument_list "(param_1,&local_1b8)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_1b8" (& "&") (identifier "local_1b8")) () ")"))) (; ";")) (expression_statement "local_1f8.c_iflag = local_1b8.c_iflag;" (assignment_expression "local_1f8.c_iflag = local_1b8.c_iflag" (field_expression "local_1f8.c_iflag" (identifier "local_1f8") (. ".") (field_identifier "c_iflag")) (= "=") (field_expression "local_1b8.c_iflag" (identifier "local_1b8") (. ".") (field_identifier "c_iflag"))) (; ";")) (expression_statement "local_1f8.c_oflag = local_1b8.c_oflag;" (assignment_expression "local_1f8.c_oflag = local_1b8.c_oflag" (field_expression "local_1f8.c_oflag" (identifier "local_1f8") (. ".") (field_identifier "c_oflag")) (= "=") (field_expression "local_1b8.c_oflag" (identifier "local_1b8") (. ".") (field_identifier "c_oflag"))) (; ";")) (expression_statement "local_1f8.c_line = local_1b8.c_line;" (assignment_expression "local_1f8.c_line = local_1b8.c_line" (field_expression "local_1f8.c_line" (identifier "local_1f8") (. ".") (field_identifier "c_line")) (= "=") (field_expression "local_1b8.c_line" (identifier "local_1b8") (. ".") (field_identifier "c_line"))) (; ";")) (expression_statement "local_1f8.c_cc[0] = local_1b8.c_cc[0];" (assignment_expression "local_1f8.c_cc[0] = local_1b8.c_cc[0]" (subscript_expression "local_1f8.c_cc[0]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[1] = local_1b8.c_cc[1];" (assignment_expression "local_1f8.c_cc[1] = local_1b8.c_cc[1]" (subscript_expression "local_1f8.c_cc[1]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[1]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[2] = local_1b8.c_cc[2];" (assignment_expression "local_1f8.c_cc[2] = local_1b8.c_cc[2]" (subscript_expression "local_1f8.c_cc[2]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[2]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[3] = local_1b8.c_cc[3];" (assignment_expression "local_1f8.c_cc[3] = local_1b8.c_cc[3]" (subscript_expression "local_1f8.c_cc[3]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[3]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[4] = local_1b8.c_cc[4];" (assignment_expression "local_1f8.c_cc[4] = local_1b8.c_cc[4]" (subscript_expression "local_1f8.c_cc[4]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "4") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[4]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[5] = local_1b8.c_cc[5];" (assignment_expression "local_1f8.c_cc[5] = local_1b8.c_cc[5]" (subscript_expression "local_1f8.c_cc[5]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "5") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[5]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[6] = local_1b8.c_cc[6];" (assignment_expression "local_1f8.c_cc[6] = local_1b8.c_cc[6]" (subscript_expression "local_1f8.c_cc[6]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "6") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[6]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[7] = local_1b8.c_cc[7];" (assignment_expression "local_1f8.c_cc[7] = local_1b8.c_cc[7]" (subscript_expression "local_1f8.c_cc[7]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "7") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[7]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[8] = local_1b8.c_cc[8];" (assignment_expression "local_1f8.c_cc[8] = local_1b8.c_cc[8]" (subscript_expression "local_1f8.c_cc[8]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "8") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[8]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[9] = local_1b8.c_cc[9];" (assignment_expression "local_1f8.c_cc[9] = local_1b8.c_cc[9]" (subscript_expression "local_1f8.c_cc[9]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "9") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[9]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[10] = local_1b8.c_cc[10];" (assignment_expression "local_1f8.c_cc[10] = local_1b8.c_cc[10]" (subscript_expression "local_1f8.c_cc[10]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "10") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[10]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "10") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];" (assignment_expression "local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb]" (subscript_expression "local_1f8.c_cc[0xb]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xb") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0xb]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xb") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];" (assignment_expression "local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc]" (subscript_expression "local_1f8.c_cc[0xc]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xc") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0xc]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];" (assignment_expression "local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd]" (subscript_expression "local_1f8.c_cc[0xd]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xd") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0xd]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xd") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];" (assignment_expression "local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe]" (subscript_expression "local_1f8.c_cc[0xe]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xe") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0xe]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xe") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];" (assignment_expression "local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf]" (subscript_expression "local_1f8.c_cc[0xf]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xf") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0xf]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xf") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];" (assignment_expression "local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10]" (subscript_expression "local_1f8.c_cc[0x10]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x10") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x10]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x10") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];" (assignment_expression "local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11]" (subscript_expression "local_1f8.c_cc[0x11]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x11") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x11]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x11") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];" (assignment_expression "local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12]" (subscript_expression "local_1f8.c_cc[0x12]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x12") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x12]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x12") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];" (assignment_expression "local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13]" (subscript_expression "local_1f8.c_cc[0x13]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x13") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x13]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x13") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];" (assignment_expression "local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14]" (subscript_expression "local_1f8.c_cc[0x14]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x14") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x14]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x14") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];" (assignment_expression "local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15]" (subscript_expression "local_1f8.c_cc[0x15]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x15") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x15]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x15") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];" (assignment_expression "local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16]" (subscript_expression "local_1f8.c_cc[0x16]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x16") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x16]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x16") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];" (assignment_expression "local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17]" (subscript_expression "local_1f8.c_cc[0x17]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x17") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x17]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x17") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];" (assignment_expression "local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18]" (subscript_expression "local_1f8.c_cc[0x18]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x18") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x18]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x18") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];" (assignment_expression "local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19]" (subscript_expression "local_1f8.c_cc[0x19]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x19") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x19]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x19") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];" (assignment_expression "local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a]" (subscript_expression "local_1f8.c_cc[0x1a]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1a") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x1a]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1a") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];" (assignment_expression "local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b]" (subscript_expression "local_1f8.c_cc[0x1b]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1b") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x1b]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1b") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];" (assignment_expression "local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c]" (subscript_expression "local_1f8.c_cc[0x1c]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1c") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x1c]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1c") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];" (assignment_expression "local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d]" (subscript_expression "local_1f8.c_cc[0x1d]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1d") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x1d]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1d") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];" (assignment_expression "local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e]" (subscript_expression "local_1f8.c_cc[0x1e]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1e") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x1e]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1e") (] "]"))) (; ";")) (expression_statement "local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];" (assignment_expression "local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f]" (subscript_expression "local_1f8.c_cc[0x1f]" (field_expression "local_1f8.c_cc" (identifier "local_1f8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1f") (] "]")) (= "=") (subscript_expression "local_1b8.c_cc[0x1f]" (field_expression "local_1b8.c_cc" (identifier "local_1b8") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1f") (] "]"))) (; ";")) (expression_statement "local_1f8._49_3_ = local_1b8._49_3_;" (assignment_expression "local_1f8._49_3_ = local_1b8._49_3_" (field_expression "local_1f8._49_3_" (identifier "local_1f8") (. ".") (field_identifier "_49_3_")) (= "=") (field_expression "local_1b8._49_3_" (identifier "local_1b8") (. ".") (field_identifier "_49_3_"))) (; ";")) (expression_statement "local_1f8.c_ispeed = local_1b8.c_ispeed;" (assignment_expression "local_1f8.c_ispeed = local_1b8.c_ispeed" (field_expression "local_1f8.c_ispeed" (identifier "local_1f8") (. ".") (field_identifier "c_ispeed")) (= "=") (field_expression "local_1b8.c_ispeed" (identifier "local_1b8") (. ".") (field_identifier "c_ispeed"))) (; ";")) (expression_statement "local_1f8.c_ospeed = local_1b8.c_ospeed;" (assignment_expression "local_1f8.c_ospeed = local_1b8.c_ospeed" (field_expression "local_1f8.c_ospeed" (identifier "local_1f8") (. ".") (field_identifier "c_ospeed")) (= "=") (field_expression "local_1b8.c_ospeed" (identifier "local_1b8") (. ".") (field_identifier "c_ospeed"))) (; ";")) (expression_statement "local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;" (assignment_expression "local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff" (field_expression "local_1f8._8_8_" (identifier "local_1f8") (. ".") (field_identifier "_8_8_")) (= "=") (binary_expression "local_1b8._8_8_ & 0xffffff87ffffffff" (field_expression "local_1b8._8_8_" (identifier "local_1b8") (. ".") (field_identifier "_8_8_")) (& "&") (number_literal "0xffffff87ffffffff"))) (; ";")) (expression_statement "tcsetattr(param_1,0,&local_1f8);" (call_expression "tcsetattr(param_1,0,&local_1f8)" (identifier "tcsetattr") (argument_list "(param_1,0,&local_1f8)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_1f8" (& "&") (identifier "local_1f8")) () ")"))) (; ";")) (expression_statement "p_Var5 = local_170;" (assignment_expression "p_Var5 = local_170" (identifier "p_Var5") (= "=") (identifier "local_170")) (; ";")) (for_statement "for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "lVar3 = 0x12" (identifier "lVar3") (= "=") (number_literal "0x12")) (; ";") (binary_expression "lVar3 != 0" (identifier "lVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "lVar3 = lVar3 + -1" (identifier "lVar3") (= "=") (binary_expression "lVar3 + -1" (identifier "lVar3") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    p_Var5->sa_handler = (__sighandler_t)0x0;\n    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;\n  }" ({ "{") (expression_statement "p_Var5->sa_handler = (__sighandler_t)0x0;" (assignment_expression "p_Var5->sa_handler = (__sighandler_t)0x0" (field_expression "p_Var5->sa_handler" (identifier "p_Var5") (-> "->") (field_identifier "sa_handler")) (= "=") (cast_expression "(__sighandler_t)0x0" (( "(") (type_descriptor "__sighandler_t" (type_identifier "__sighandler_t")) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;" (assignment_expression "p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1" (identifier "p_Var5") (= "=") (binary_expression "p_Var5 + (ulong)bVar6 * -2 + 1" (binary_expression "p_Var5 + (ulong)bVar6 * -2" (identifier "p_Var5") (+ "+") (binary_expression "(ulong)bVar6 * -2" (cast_expression "(ulong)bVar6" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "local_178.sa_handler = (__sighandler_t)&DAT_00198754;" (assignment_expression "local_178.sa_handler = (__sighandler_t)&DAT_00198754" (field_expression "local_178.sa_handler" (identifier "local_178") (. ".") (field_identifier "sa_handler")) (= "=") (binary_expression "(__sighandler_t)&DAT_00198754" (parenthesized_expression "(__sighandler_t)" (( "(") (identifier "__sighandler_t") () ")")) (& "&") (identifier "DAT_00198754"))) (; ";")) (expression_statement "sigaction(2,(sigaction *)&local_178,&local_d8);" (call_expression "sigaction(2,(sigaction *)&local_178,&local_d8)" (identifier "sigaction") (argument_list "(2,(sigaction *)&local_178,&local_d8)" (( "(") (number_literal "2") (, ",") (cast_expression "(sigaction *)&local_178" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_178" (& "&") (identifier "local_178"))) (, ",") (pointer_expression "&local_d8" (& "&") (identifier "local_d8")) () ")"))) (; ";")) (if_statement "if (param_2 != 0) {\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0010f67f(0xe,&local_178);\n    alarm(param_2);\n  }" ({ "{") (expression_statement "FUN_0010f67f(0xe,&local_178);" (call_expression "FUN_0010f67f(0xe,&local_178)" (identifier "FUN_0010f67f") (argument_list "(0xe,&local_178)" (( "(") (number_literal "0xe") (, ",") (pointer_expression "&local_178" (& "&") (identifier "local_178")) () ")"))) (; ";")) (expression_statement "alarm(param_2);" (call_expression "alarm(param_2)" (identifier "alarm") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" (identifier "lVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" (identifier "__ptr") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (while_statement "while( true ) {\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar4 = (int)lVar3;\n    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);\n    __buf = (char *)((long)__ptr + lVar3);\n    sVar2 = read(param_1,__buf,1);\n    iVar1 = (int)sVar2;\n    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;\n    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;\n    lVar3 = lVar3 + 1;\n    if (lVar3 == 0xfff) goto code_r0x0019891f;\n  }" ({ "{") (expression_statement "iVar4 = (int)lVar3;" (assignment_expression "iVar4 = (int)lVar3" (identifier "iVar4") (= "=") (cast_expression "(int)lVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar3"))) (; ";")) (expression_statement "__ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);" (assignment_expression "__ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2)" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_0010e5e8(__ptr,lVar3 + 2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0010e5e8(__ptr,lVar3 + 2)" (identifier "FUN_0010e5e8") (argument_list "(__ptr,lVar3 + 2)" (( "(") (identifier "__ptr") (, ",") (binary_expression "lVar3 + 2" (identifier "lVar3") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "__buf = (char *)((long)__ptr + lVar3);" (assignment_expression "__buf = (char *)((long)__ptr + lVar3)" (identifier "__buf") (= "=") (cast_expression "(char *)((long)__ptr + lVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)__ptr + lVar3)" (( "(") (binary_expression "(long)__ptr + lVar3" (cast_expression "(long)__ptr" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__ptr")) (+ "+") (identifier "lVar3")) () ")")))) (; ";")) (expression_statement "sVar2 = read(param_1,__buf,1);" (assignment_expression "sVar2 = read(param_1,__buf,1)" (identifier "sVar2") (= "=") (call_expression "read(param_1,__buf,1)" (identifier "read") (argument_list "(param_1,__buf,1)" (( "(") (identifier "param_1") (, ",") (identifier "__buf") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "iVar1 = (int)sVar2;" (assignment_expression "iVar1 = (int)sVar2" (identifier "iVar1") (= "=") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2"))) (; ";")) (if_statement "if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;" (if "if") (parenthesized_expression "((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0))" (( "(") (binary_expression "(iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)" (parenthesized_expression "(iVar1 == 0 && iVar4 == 0)" (( "(") (binary_expression "iVar1 == 0 && iVar4 == 0" (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (&& "&&") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0"))) () ")")) (|| "||") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;" (if "if") (parenthesized_expression "((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r'))))" (( "(") (binary_expression "(iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((*__buf == '\n' || (*__buf == '\r')))" (( "(") (parenthesized_expression "(*__buf == '\n' || (*__buf == '\r'))" (( "(") (binary_expression "*__buf == '\n' || (*__buf == '\r')" (binary_expression "*__buf == '\n'" (pointer_expression "*__buf" (* "*") (identifier "__buf")) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) (|| "||") (parenthesized_expression "(*__buf == '\r')" (( "(") (binary_expression "*__buf == '\r'" (pointer_expression "*__buf" (* "*") (identifier "__buf")) (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")"))) () ")")) () ")"))) () ")")) (goto_statement "goto LAB_00198925;" (goto "goto") (statement_identifier "LAB_00198925") (; ";"))) (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" (identifier "lVar3") (= "=") (binary_expression "lVar3 + 1" (identifier "lVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (lVar3 == 0xfff) goto code_r0x0019891f;" (if "if") (parenthesized_expression "(lVar3 == 0xfff)" (( "(") (binary_expression "lVar3 == 0xfff" (identifier "lVar3") (== "==") (number_literal "0xfff")) () ")")) (goto_statement "goto code_r0x0019891f;" (goto "goto") (statement_identifier "code_r0x0019891f") (; ";"))) (} "}"))) (expression_statement "*__buf = '\0';" (assignment_expression "*__buf = '\0'" (pointer_expression "*__buf" (* "*") (identifier "__buf")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "FUN_001a0a97(__ptr);" (call_expression "FUN_001a0a97(__ptr)" (identifier "FUN_001a0a97") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" (identifier "__ptr") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_001988a3:\n  if (param_2 != 0) {\n    alarm(0);\n  }" (statement_identifier "LAB_001988a3") (: ":") (if_statement "if (param_2 != 0) {\n    alarm(0);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    alarm(0);\n  }" ({ "{") (expression_statement "alarm(0);" (call_expression "alarm(0)" (identifier "alarm") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_0010f67f(2,&local_d8);" (call_expression "FUN_0010f67f(2,&local_d8)" (identifier "FUN_0010f67f") (argument_list "(2,&local_d8)" (( "(") (number_literal "2") (, ",") (pointer_expression "&local_d8" (& "&") (identifier "local_d8")) () ")"))) (; ";")) (expression_statement "tcsetattr(param_1,0,&local_1b8);" (call_expression "tcsetattr(param_1,0,&local_1b8)" (identifier "tcsetattr") (argument_list "(param_1,0,&local_1b8)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_1b8" (& "&") (identifier "local_1b8")) () ")"))) (; ";")) (expression_statement "FUN_0010e956(10);" (call_expression "FUN_0010e956(10)" (identifier "FUN_0010e956") (argument_list "(10)" (( "(") (number_literal "10") () ")"))) (; ";")) (expression_statement "FUN_0010e943();" (call_expression "FUN_0010e943()" (identifier "FUN_0010e943") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return __ptr;" (return "return") (identifier "__ptr") (; ";")) (labeled_statement "code_r0x0019891f:\n  iVar4 = 0xfff;" (statement_identifier "code_r0x0019891f") (: ":") (expression_statement "iVar4 = 0xfff;" (assignment_expression "iVar4 = 0xfff" (identifier "iVar4") (= "=") (number_literal "0xfff")) (; ";"))) (labeled_statement "LAB_00198925:\n  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;" (statement_identifier "LAB_00198925") (: ":") (expression_statement "*(undefined1 *)((long)__ptr + (long)iVar4) = 0;" (assignment_expression "*(undefined1 *)((long)__ptr + (long)iVar4) = 0" (pointer_expression "*(undefined1 *)((long)__ptr + (long)iVar4)" (* "*") (cast_expression "(undefined1 *)((long)__ptr + (long)iVar4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)__ptr + (long)iVar4)" (( "(") (binary_expression "(long)__ptr + (long)iVar4" (cast_expression "(long)__ptr" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__ptr")) (+ "+") (cast_expression "(long)iVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar4"))) () ")")))) (= "=") (number_literal "0")) (; ";"))) (goto_statement "goto LAB_001988a3;" (goto "goto") (statement_identifier "LAB_001988a3") (; ";")) (} "}")))

char * function_1(int fd,int var_8,char *prompt)

{
  char *__buf;
  long var_19;
  int var_14;
  ssize_t sVar3;
  long var_7;
  char *var_12;
  int var_15;
  type_1 *p_Var6;
  long var_1;
  type_2 bVar7;
  type_3 tio;
  type_3 oldtio;
  type_4 sa;
  type_4 oldsa;
  
  bVar7 = 0;
  var_19 = *(long *)(var_1 + 0x28);
  var_2(fd,0);
  var_3(prompt,stdout);
  var_4();
  var_5(fd,(type_3 *)&oldtio);
  tio.c_iflag = oldtio.c_iflag;
  tio.c_oflag = oldtio.c_oflag;
  tio.c_line = oldtio.c_line;
  tio.c_cc[0] = oldtio.c_cc[0];
  tio.c_cc[1] = oldtio.c_cc[1];
  tio.c_cc[2] = oldtio.c_cc[2];
  tio.c_cc[3] = oldtio.c_cc[3];
  tio.c_cc[4] = oldtio.c_cc[4];
  tio.c_cc[5] = oldtio.c_cc[5];
  tio.c_cc[6] = oldtio.c_cc[6];
  tio.c_cc[7] = oldtio.c_cc[7];
  tio.c_cc[8] = oldtio.c_cc[8];
  tio.c_cc[9] = oldtio.c_cc[9];
  tio.c_cc[10] = oldtio.c_cc[10];
  tio.c_cc[0xb] = oldtio.c_cc[0xb];
  tio.c_cc[0xc] = oldtio.c_cc[0xc];
  tio.c_cc[0xd] = oldtio.c_cc[0xd];
  tio.c_cc[0xe] = oldtio.c_cc[0xe];
  tio.c_cc[0xf] = oldtio.c_cc[0xf];
  tio.c_cc[0x10] = oldtio.c_cc[0x10];
  tio.c_cc[0x11] = oldtio.c_cc[0x11];
  tio.c_cc[0x12] = oldtio.c_cc[0x12];
  tio.c_cc[0x13] = oldtio.c_cc[0x13];
  tio.c_cc[0x14] = oldtio.c_cc[0x14];
  tio.c_cc[0x15] = oldtio.c_cc[0x15];
  tio.c_cc[0x16] = oldtio.c_cc[0x16];
  tio.c_cc[0x17] = oldtio.c_cc[0x17];
  tio.c_cc[0x18] = oldtio.c_cc[0x18];
  tio.c_cc[0x19] = oldtio.c_cc[0x19];
  tio.c_cc[0x1a] = oldtio.c_cc[0x1a];
  tio.c_cc[0x1b] = oldtio.c_cc[0x1b];
  tio.c_cc[0x1c] = oldtio.c_cc[0x1c];
  tio.c_cc[0x1d] = oldtio.c_cc[0x1d];
  tio.c_cc[0x1e] = oldtio.c_cc[0x1e];
  tio.c_cc[0x1f] = oldtio.c_cc[0x1f];
  tio._49_3_ = oldtio._49_3_;
  tio.c_ispeed = oldtio.c_ispeed;
  tio.c_ospeed = oldtio.c_ospeed;
  tio._8_8_ = oldtio._8_8_ & 0xffffff87ffffffff;
  var_6(fd,0,(type_3 *)&tio);
  p_Var6 = &sa.sa_mask;
  for (var_7 = 0x12; var_7 != 0; var_7 = var_7 + -1) {
    p_Var6->__val[0] = 0;
    p_Var6 = (type_1 *)((long)p_Var6 + (type_5)bVar7 * -0x10 + 8);
  }
  sa.__sigaction_handler.sa_handler = askpass_timeout;
  type_4(2,(type_4 *)&sa,(type_4 *)&oldsa);
  if (var_8 != 0) {
    var_9(0xe,&sa);
    var_10(var_8);
  }
  var_7 = 0;
  var_12 = (char *)0x0;
  while( true ) {
    var_15 = (int)var_7;
    var_12 = (char *)var_11(var_12,var_7 + 2);
    __buf = var_12 + var_7;
    sVar3 = var_13(fd,__buf,1);
    var_14 = (int)sVar3;
    if ((var_14 == 0 && var_15 == 0) || (var_14 < 0)) break;
    if ((var_14 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;
    var_7 = var_7 + 1;
    if (var_7 == 0xfff) goto code_r0x0019891f;
  }
  *__buf = '\0';
  var_16(var_12);
  var_17(var_12);
  var_12 = (char *)0x0;
LAB_001988a3:
  if (var_8 != 0) {
    var_10(0);
  }
  var_9(2,&oldsa);
  var_6(fd,0,(type_3 *)&oldtio);
  var_18(10);
  var_4();
  if (var_19 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_20();
  }
  return var_12;
code_r0x0019891f:
  var_15 = 0xfff;
LAB_00198925:
  var_12[var_15] = '\0';
  goto LAB_001988a3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) 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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) right: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier))))) (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (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 (identifier) (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: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))))))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))))) right: (number_literal)))) (goto_statement label: (statement_identifier)))))

void * MASKED(int param_1,uint param_2,char *param_3)

{
  char *__buf;
  int iVar1;
  ssize_t sVar2;
  long lVar3;
  void *__ptr;
  int iVar4;
  _union_1457 *p_Var5;
  long in_FS_OFFSET;
  byte bVar6;
  termios local_1f8;
  termios local_1b8;
  _union_1457 local_178;
  _union_1457 local_170 [19];
  sigaction local_d8;
  long local_40;
  
  bVar6 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  tcflush(param_1,0);
  fputs_unlocked(param_3,stdout);
  FUN_0010e943();
  tcgetattr(param_1,&local_1b8);
  local_1f8.c_iflag = local_1b8.c_iflag;
  local_1f8.c_oflag = local_1b8.c_oflag;
  local_1f8.c_line = local_1b8.c_line;
  local_1f8.c_cc[0] = local_1b8.c_cc[0];
  local_1f8.c_cc[1] = local_1b8.c_cc[1];
  local_1f8.c_cc[2] = local_1b8.c_cc[2];
  local_1f8.c_cc[3] = local_1b8.c_cc[3];
  local_1f8.c_cc[4] = local_1b8.c_cc[4];
  local_1f8.c_cc[5] = local_1b8.c_cc[5];
  local_1f8.c_cc[6] = local_1b8.c_cc[6];
  local_1f8.c_cc[7] = local_1b8.c_cc[7];
  local_1f8.c_cc[8] = local_1b8.c_cc[8];
  local_1f8.c_cc[9] = local_1b8.c_cc[9];
  local_1f8.c_cc[10] = local_1b8.c_cc[10];
  local_1f8.c_cc[0xb] = local_1b8.c_cc[0xb];
  local_1f8.c_cc[0xc] = local_1b8.c_cc[0xc];
  local_1f8.c_cc[0xd] = local_1b8.c_cc[0xd];
  local_1f8.c_cc[0xe] = local_1b8.c_cc[0xe];
  local_1f8.c_cc[0xf] = local_1b8.c_cc[0xf];
  local_1f8.c_cc[0x10] = local_1b8.c_cc[0x10];
  local_1f8.c_cc[0x11] = local_1b8.c_cc[0x11];
  local_1f8.c_cc[0x12] = local_1b8.c_cc[0x12];
  local_1f8.c_cc[0x13] = local_1b8.c_cc[0x13];
  local_1f8.c_cc[0x14] = local_1b8.c_cc[0x14];
  local_1f8.c_cc[0x15] = local_1b8.c_cc[0x15];
  local_1f8.c_cc[0x16] = local_1b8.c_cc[0x16];
  local_1f8.c_cc[0x17] = local_1b8.c_cc[0x17];
  local_1f8.c_cc[0x18] = local_1b8.c_cc[0x18];
  local_1f8.c_cc[0x19] = local_1b8.c_cc[0x19];
  local_1f8.c_cc[0x1a] = local_1b8.c_cc[0x1a];
  local_1f8.c_cc[0x1b] = local_1b8.c_cc[0x1b];
  local_1f8.c_cc[0x1c] = local_1b8.c_cc[0x1c];
  local_1f8.c_cc[0x1d] = local_1b8.c_cc[0x1d];
  local_1f8.c_cc[0x1e] = local_1b8.c_cc[0x1e];
  local_1f8.c_cc[0x1f] = local_1b8.c_cc[0x1f];
  local_1f8._49_3_ = local_1b8._49_3_;
  local_1f8.c_ispeed = local_1b8.c_ispeed;
  local_1f8.c_ospeed = local_1b8.c_ospeed;
  local_1f8._8_8_ = local_1b8._8_8_ & 0xffffff87ffffffff;
  tcsetattr(param_1,0,&local_1f8);
  p_Var5 = local_170;
  for (lVar3 = 0x12; lVar3 != 0; lVar3 = lVar3 + -1) {
    p_Var5->sa_handler = (__sighandler_t)0x0;
    p_Var5 = p_Var5 + (ulong)bVar6 * -2 + 1;
  }
  local_178.sa_handler = (__sighandler_t)&DAT_00198754;
  sigaction(2,(sigaction *)&local_178,&local_d8);
  if (param_2 != 0) {
    FUN_0010f67f(0xe,&local_178);
    alarm(param_2);
  }
  lVar3 = 0;
  __ptr = (void *)0x0;
  while( true ) {
    iVar4 = (int)lVar3;
    __ptr = (void *)FUN_0010e5e8(__ptr,lVar3 + 2);
    __buf = (char *)((long)__ptr + lVar3);
    sVar2 = read(param_1,__buf,1);
    iVar1 = (int)sVar2;
    if ((iVar1 == 0 && iVar4 == 0) || (iVar1 < 0)) break;
    if ((iVar1 == 0) || ((*__buf == '\n' || (*__buf == '\r')))) goto LAB_00198925;
    lVar3 = lVar3 + 1;
    if (lVar3 == 0xfff) goto code_r0x0019891f;
  }
  *__buf = '\0';
  FUN_001a0a97(__ptr);
  free(__ptr);
  __ptr = (void *)0x0;
LAB_001988a3:
  if (param_2 != 0) {
    alarm(0);
  }
  FUN_0010f67f(2,&local_d8);
  tcsetattr(param_1,0,&local_1b8);
  FUN_0010e956(10);
  FUN_0010e943();
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return __ptr;
code_r0x0019891f:
  iVar4 = 0xfff;
LAB_00198925:
  *(undefined1 *)((long)__ptr + (long)iVar4) = 0;
  goto LAB_001988a3;
}

