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

int console_get_userpass_input(prompts_t *p,uchar *in,int inlen)

{
  prompt_t **pppVar1;
  int iVar2;
  char *pcVar3;
  prompt_t *pr;
  undefined *puVar4;
  size_t sVar5;
  ssize_t sVar6;
  int iVar7;
  uint uVar8;
  int in_GS_OFFSET;
  uint local_b8;
  FILE *local_ac;
  termios oldmode;
  termios newmode;
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  if (p->n_prompts != 0) {
    uVar8 = 0;
    do {
      pppVar1 = p->prompts + uVar8;
      uVar8 = uVar8 + 1;
      prompt_set_result(*pppVar1,"");
    } while (uVar8 < p->n_prompts);
    if ((p->n_prompts != 0) && (iVar7 = 0, console_batch_mode != 0)) goto LAB_000415aa;
  }
  iVar7 = open64("/dev/tty",2);
  if (iVar7 < 0) {
    iVar7 = 0;
    local_ac = *(FILE **)PTR_stderr_0006efe0;
  }
  else {
    local_ac = fdopen(iVar7,"w");
  }
  puVar4 = PTR_stderr_0006efe0;
  if ((p->name_reqd != 0) && (pcVar3 = p->name, pcVar3 != (char *)0x0)) {
    sVar5 = strlen(pcVar3);
    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);
    if (p->name[sVar5 - 1] != '\n') {
      console_prompt_text((FILE *)local_ac,"\n",1);
    }
  }
  pcVar3 = p->instruction;
  if (pcVar3 != (char *)0x0) {
    sVar5 = strlen(pcVar3);
    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);
    if (p->instruction[sVar5 - 1] != '\n') {
      console_prompt_text((FILE *)local_ac,"\n",1);
    }
  }
  if (p->n_prompts != 0) {
    local_b8 = 0;
    do {
      pr = p->prompts[local_b8];
      tcgetattr(iVar7,(termios *)&oldmode);
      newmode.c_line = oldmode.c_line;
      newmode.c_cc[0] = oldmode.c_cc[0];
      newmode.c_cc[1] = oldmode.c_cc[1];
      newmode.c_cc[2] = oldmode.c_cc[2];
      newmode.c_iflag = oldmode.c_iflag;
      newmode.c_cc[3] = oldmode.c_cc[3];
      newmode.c_cc[4] = oldmode.c_cc[4];
      newmode.c_cc[5] = oldmode.c_cc[5];
      newmode.c_cc[6] = oldmode.c_cc[6];
      newmode.c_oflag = oldmode.c_oflag;
      newmode.c_cc[7] = oldmode.c_cc[7];
      newmode.c_cc[8] = oldmode.c_cc[8];
      newmode.c_cc[9] = oldmode.c_cc[9];
      newmode.c_cc[10] = oldmode.c_cc[10];
      newmode.c_cflag = oldmode.c_cflag;
      newmode.c_cc[0xb] = oldmode.c_cc[0xb];
      newmode.c_cc[0xc] = oldmode.c_cc[0xc];
      newmode.c_cc[0xd] = oldmode.c_cc[0xd];
      newmode.c_cc[0xe] = oldmode.c_cc[0xe];
      newmode.c_cc[0xf] = oldmode.c_cc[0xf];
      newmode.c_cc[0x10] = oldmode.c_cc[0x10];
      newmode.c_cc[0x11] = oldmode.c_cc[0x11];
      newmode.c_cc[0x12] = oldmode.c_cc[0x12];
      newmode.c_cc[0x13] = oldmode.c_cc[0x13];
      newmode.c_cc[0x14] = oldmode.c_cc[0x14];
      newmode.c_cc[0x15] = oldmode.c_cc[0x15];
      newmode.c_cc[0x16] = oldmode.c_cc[0x16];
      newmode.c_cc[0x17] = oldmode.c_cc[0x17];
      newmode.c_cc[0x18] = oldmode.c_cc[0x18];
      newmode.c_cc[0x19] = oldmode.c_cc[0x19];
      newmode.c_cc[0x1a] = oldmode.c_cc[0x1a];
      newmode.c_cc[0x1b] = oldmode.c_cc[0x1b];
      newmode.c_cc[0x1c] = oldmode.c_cc[0x1c];
      newmode.c_cc[0x1d] = oldmode.c_cc[0x1d];
      newmode.c_cc[0x1e] = oldmode.c_cc[0x1e];
      newmode.c_cc[0x1f] = oldmode.c_cc[0x1f];
      newmode._49_3_ = oldmode._49_3_;
      newmode.c_ispeed = oldmode.c_ispeed;
      newmode.c_ospeed = oldmode.c_ospeed;
      newmode.c_lflag = oldmode.c_lflag | 0xb;
      if (pr->echo == 0) {
        newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;
      }
      tcsetattr(iVar7,0,(termios *)&newmode);
      pcVar3 = pr->prompt;
      sVar5 = strlen(pcVar3);
      uVar8 = 0;
      console_prompt_text((FILE *)local_ac,pcVar3,sVar5);
      do {
        prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200);
        sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize);
        if (sVar6 < 1) {
          tcsetattr(iVar7,0,(termios *)&oldmode);
          if (pr->echo == 0) {
            console_prompt_text((FILE *)local_ac,"\n",1);
          }
          if (*(FILE **)puVar4 != local_ac) {
            fclose(local_ac);
          }
          iVar7 = 0;
          goto LAB_000415aa;
        }
        uVar8 = uVar8 + sVar6;
      } while (pr->result[uVar8 - 1] != '\n');
      tcsetattr(iVar7,0,(termios *)&oldmode);
      if (pr->echo == 0) {
        console_prompt_text((FILE *)local_ac,"\n",1);
      }
      local_b8 = local_b8 + 1;
      pr->result[uVar8 - 1] = '\0';
    } while (local_b8 < p->n_prompts);
  }
  iVar7 = 1;
  if (*(FILE **)puVar4 != local_ac) {
    fclose(local_ac);
  }
LAB_000415aa:
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar7;
}



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

undefined4 FUN_000412b0(int param_1)

{
  undefined4 *puVar1;
  undefined *puVar2;
  int iVar3;
  size_t sVar4;
  ssize_t sVar5;
  undefined4 uVar6;
  uint uVar7;
  int in_GS_OFFSET;
  uint local_b8;
  FILE *local_ac;
  termios local_98;
  termios local_5c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x412b9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(param_1 + 0x14) != 0) {
    uVar7 = 0;
    do {
      iVar3 = uVar7 * 4;
      uVar7 = uVar7 + 1;
      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);
    } while (uVar7 < *(uint *)(param_1 + 0x14));
    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;
  }
  iVar3 = open64("/dev/tty",2);
  if (iVar3 < 0) {
    iVar3 = 0;
    local_ac = *(FILE **)PTR_stderr_0006efe0;
  }
  else {
    local_ac = fdopen(iVar3,"w");
  }
  puVar2 = PTR_stderr_0006efe0;
  if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {
    sVar4 = strlen(*(char **)(param_1 + 4));
    FUN_000404f0();
    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {
      FUN_000404f0();
    }
  }
  if (*(char **)(param_1 + 0xc) != (char *)0x0) {
    sVar4 = strlen(*(char **)(param_1 + 0xc));
    FUN_000404f0();
    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {
      FUN_000404f0();
    }
  }
  if (*(int *)(param_1 + 0x14) != 0) {
    local_b8 = 0;
    do {
      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);
      tcgetattr(iVar3,&local_98);
      local_5c.c_line = local_98.c_line;
      local_5c.c_cc[0] = local_98.c_cc[0];
      local_5c.c_cc[1] = local_98.c_cc[1];
      local_5c.c_cc[2] = local_98.c_cc[2];
      local_5c.c_iflag = local_98.c_iflag;
      local_5c.c_cc[3] = local_98.c_cc[3];
      local_5c.c_cc[4] = local_98.c_cc[4];
      local_5c.c_cc[5] = local_98.c_cc[5];
      local_5c.c_cc[6] = local_98.c_cc[6];
      local_5c.c_oflag = local_98.c_oflag;
      local_5c.c_cc[7] = local_98.c_cc[7];
      local_5c.c_cc[8] = local_98.c_cc[8];
      local_5c.c_cc[9] = local_98.c_cc[9];
      local_5c.c_cc[10] = local_98.c_cc[10];
      local_5c.c_cflag = local_98.c_cflag;
      local_5c.c_cc[0xb] = local_98.c_cc[0xb];
      local_5c.c_cc[0xc] = local_98.c_cc[0xc];
      local_5c.c_cc[0xd] = local_98.c_cc[0xd];
      local_5c.c_cc[0xe] = local_98.c_cc[0xe];
      local_5c.c_cc[0xf] = local_98.c_cc[0xf];
      local_5c.c_cc[0x10] = local_98.c_cc[0x10];
      local_5c.c_cc[0x11] = local_98.c_cc[0x11];
      local_5c.c_cc[0x12] = local_98.c_cc[0x12];
      local_5c.c_cc[0x13] = local_98.c_cc[0x13];
      local_5c.c_cc[0x14] = local_98.c_cc[0x14];
      local_5c.c_cc[0x15] = local_98.c_cc[0x15];
      local_5c.c_cc[0x16] = local_98.c_cc[0x16];
      local_5c.c_cc[0x17] = local_98.c_cc[0x17];
      local_5c.c_cc[0x18] = local_98.c_cc[0x18];
      local_5c.c_cc[0x19] = local_98.c_cc[0x19];
      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];
      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];
      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];
      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];
      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];
      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];
      local_5c._49_3_ = local_98._49_3_;
      local_5c.c_ispeed = local_98.c_ispeed;
      local_5c.c_ospeed = local_98.c_ospeed;
      local_5c.c_lflag = local_98.c_lflag | 0xb;
      if (puVar1[1] == 0) {
        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;
      }
      tcsetattr(iVar3,0,&local_5c);
      strlen((char *)*puVar1);
      uVar7 = 0;
      FUN_000404f0();
      do {
        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);
        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);
        if (sVar5 < 1) {
          tcsetattr(iVar3,0,&local_98);
          if (puVar1[1] == 0) {
            FUN_000404f0();
          }
          if (*(FILE **)puVar2 != local_ac) {
            fclose(local_ac);
          }
          uVar6 = 0;
          goto LAB_000415aa;
        }
        uVar7 = uVar7 + sVar5;
      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');
      tcsetattr(iVar3,0,&local_98);
      if (puVar1[1] == 0) {
        FUN_000404f0();
      }
      local_b8 = local_b8 + 1;
      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;
    } while (local_b8 < *(uint *)(param_1 + 0x14));
  }
  uVar6 = 1;
  if (*(FILE **)puVar2 != local_ac) {
    fclose(local_ac);
  }
LAB_000415aa:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0004aab0();
  }
  return uVar6;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000152d0
ADD EBX,0x2da2f
SUB ESP,0xac
MOV EAX,dword ptr [ESP + 0xc0]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [EAX + 0x14]
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x9c],ECX
XOR ECX,ECX
TEST EAX,EAX
JZ 0x00041328
MOV EBP,dword ptr [ESP + 0x8]
XOR EDI,EDI
LEA ESI,[EBX + 0xfffdd115]
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [EBP + 0x18]
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EAX + EDI*0x4]
ADD EDI,0x1
CALL 0x00019c30
MOV EAX,dword ptr [EBP + 0x14]
ADD ESP,0x10
CMP EAX,EDI
JA 0x000412f8
TEST EAX,EAX
JZ 0x00041328
MOV EBP,dword ptr [EBX + 0x558]
XOR ESI,ESI
TEST EBP,EBP
JNZ 0x000415aa
SUB ESP,0x8
LEA EAX,[EBX + 0xfffe390f]
PUSH 0x2
PUSH EAX
CALL 0x00014120
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNS 0x000415cb
MOV EAX,dword ptr [EBX + 0x2f8]
XOR EBP,EBP
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x8]
MOV EDI,dword ptr [EAX + 0x8]
TEST EDI,EDI
JZ 0x000413a0
MOV ESI,dword ptr [EAX + 0x4]
TEST ESI,ESI
JZ 0x000413a0
SUB ESP,0xc
PUSH ESI
CALL 0x00014300
ADD ESP,0x10
MOV EDX,ESI
MOV ESI,dword ptr [ESP + 0x10]
MOV EDI,EAX
MOV ECX,EAX
MOV EAX,ESI
CALL 0x000404f0
MOV EAX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX + 0x4]
CMP byte ptr [EAX + EDI*0x1 + -0x1],0xa
JNZ 0x00041657
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x8]
MOV ESI,dword ptr [EAX + 0xc]
TEST ESI,ESI
JZ 0x000413e8
SUB ESP,0xc
PUSH ESI
CALL 0x00014300
ADD ESP,0x10
MOV EDX,ESI
MOV ESI,dword ptr [ESP + 0x10]
MOV EDI,EAX
MOV ECX,EAX
MOV EAX,ESI
CALL 0x000404f0
MOV EAX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX + 0xc]
CMP byte ptr [EAX + EDI*0x1 + -0x1],0xa
JZ 0x000413e8
MOV ECX,0x1
LEA EDX,[EBX + 0xfffdc395]
MOV EAX,ESI
CALL 0x000404f0
MOV EAX,dword ptr [ESP + 0x8]
MOV ESI,dword ptr [EAX + 0x14]
TEST ESI,ESI
JZ 0x00041631
LEA EAX,[ESP + 0x24]
MOV dword ptr [ESP + 0x4],0x0
MOV dword ptr [ESP + 0xc],EAX
LEA EAX,[ESP + 0x60]
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[EBX + 0xfffdc395]
MOV dword ptr [ESP + 0x1c],EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0x4]
SUB ESP,0x8
MOV EAX,dword ptr [EAX + 0x18]
MOV EDI,dword ptr [EAX + ECX*0x4]
PUSH dword ptr [ESP + 0x14]
PUSH EBP
CALL 0x000143a0
MOV EDX,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [ESP + 0x34]
MOV ECX,dword ptr [EDI + 0x4]
MOV dword ptr [ESP + 0x80],EDX
MOV EDX,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x70],EAX
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x84],EDX
MOV EDX,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x74],EAX
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [ESP + 0x88],EDX
MOV EDX,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x78],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x8c],EDX
MOV EDX,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x7c],EAX
MOV dword ptr [ESP + 0x90],EDX
MOV EDX,dword ptr [ESP + 0x58]
MOV dword ptr [ESP + 0x94],EDX
MOV EDX,dword ptr [ESP + 0x5c]
MOV dword ptr [ESP + 0x98],EDX
MOV EDX,dword ptr [ESP + 0x60]
MOV dword ptr [ESP + 0x9c],EDX
MOV EDX,dword ptr [ESP + 0x64]
MOV dword ptr [ESP + 0xa0],EDX
MOV EDX,dword ptr [ESP + 0x68]
MOV dword ptr [ESP + 0xa4],EDX
MOV EDX,dword ptr [ESP + 0x6c]
MOV dword ptr [ESP + 0xa8],EDX
MOV EDX,EAX
ADD ESP,0x10
OR EDX,0xb
TEST ECX,ECX
JNZ 0x000414eb
AND EAX,0xfffffff7
OR EAX,0x3
MOV EDX,EAX
MOV dword ptr [ESP + 0x6c],EDX
SUB ESP,0x4
PUSH dword ptr [ESP + 0x18]
PUSH 0x0
PUSH EBP
CALL 0x00014090
MOV ESI,dword ptr [EDI]
MOV dword ptr [ESP],ESI
CALL 0x00014300
ADD ESP,0x10
MOV EDX,ESI
XOR ESI,ESI
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x10]
CALL 0x000404f0
JMP 0x00041530
ADD ESI,EAX
MOV EAX,dword ptr [EDI + 0x8]
CMP byte ptr [EAX + ESI*0x1 + -0x1],0xa
JZ 0x000415f8
LEA EAX,[ESI + ESI*0x4]
SUB ESP,0x8
SAR EAX,0x2
ADD EAX,0x200
PUSH EAX
PUSH EDI
CALL 0x00019c10
MOV EAX,ESI
ADD ESP,0xc
NOT EAX
ADD EAX,dword ptr [EDI + 0xc]
PUSH EAX
MOV EAX,dword ptr [EDI + 0x8]
ADD EAX,ESI
PUSH EAX
PUSH EBP
CALL 0x000149e0
ADD ESP,0x10
TEST EAX,EAX
JG 0x00041520
SUB ESP,0x4
PUSH dword ptr [ESP + 0x10]
PUSH 0x0
PUSH EBP
CALL 0x00014090
MOV EAX,dword ptr [EDI + 0x4]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00041590
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,0x1
LEA EDX,[EBX + 0xfffdc395]
CALL 0x000404f0
MOV ECX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x10]
CMP dword ptr [ECX],EAX
JZ 0x000415a8
SUB ESP,0xc
PUSH EAX
CALL 0x00014a50
ADD ESP,0x10
XOR ESI,ESI
MOV ECX,dword ptr [ESP + 0x9c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x0004166e
ADD ESP,0xac
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
LEA EAX,[EBX + 0xfffdc3e5]
PUSH EAX
PUSH EBP
CALL 0x00014570
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,dword ptr [EBX + 0x2f8]
ADD ESP,0x10
MOV dword ptr [ESP + 0x18],EAX
JMP 0x00041358
SUB ESP,0x4
SUB ESI,0x1
PUSH dword ptr [ESP + 0x10]
PUSH 0x0
PUSH EBP
CALL 0x00014090
MOV EDX,dword ptr [EDI + 0x4]
ADD ESP,0x10
TEST EDX,EDX
JZ 0x00041673
MOV EAX,dword ptr [EDI + 0x8]
MOV ECX,dword ptr [ESP + 0x8]
ADD dword ptr [ESP + 0x4],0x1
MOV byte ptr [EAX + ESI*0x1],0x0
MOV EAX,dword ptr [ESP + 0x4]
CMP dword ptr [ECX + 0x14],EAX
JA 0x00041420
MOV ECX,dword ptr [ESP + 0x18]
MOV ESI,0x1
MOV EAX,dword ptr [ESP + 0x10]
CMP dword ptr [ECX],EAX
JZ 0x000415aa
SUB ESP,0xc
PUSH EAX
CALL 0x00014a50
ADD ESP,0x10
JMP 0x000415aa
MOV ECX,0x1
LEA EDX,[EBX + 0xfffdc395]
MOV EAX,ESI
CALL 0x000404f0
JMP 0x000413a0
CALL 0x0004aab0
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,0x1
CALL 0x000404f0
JMP 0x00041614
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000412b0(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  ssize_t sVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_b8;\n  FILE *local_ac;\n  termios local_98;\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x412b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }\n  iVar3 = open64("/dev/tty",2);\n  if (iVar3 < 0) {\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar3,"w");\n  }\n  puVar2 = PTR_stderr_0006efe0;\n  if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(char **)(param_1 + 0xc) != (char *)0x0) {\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(int *)(param_1 + 0x14) != 0) {\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }\n  uVar6 = 1;\n  if (*(FILE **)puVar2 != local_ac) {\n    fclose(local_ac);\n  }\nLAB_000415aa:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0004aab0();\n  }\n  return uVar6;\n}\n\n" comment (function_definition "undefined4 FUN_000412b0(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  ssize_t sVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_b8;\n  FILE *local_ac;\n  termios local_98;\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x412b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }\n  iVar3 = open64("/dev/tty",2);\n  if (iVar3 < 0) {\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar3,"w");\n  }\n  puVar2 = PTR_stderr_0006efe0;\n  if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(char **)(param_1 + 0xc) != (char *)0x0) {\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(int *)(param_1 + 0x14) != 0) {\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }\n  uVar6 = 1;\n  if (*(FILE **)puVar2 != local_ac) {\n    fclose(local_ac);\n  }\nLAB_000415aa:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0004aab0();\n  }\n  return uVar6;\n}" type_identifier (function_declarator "FUN_000412b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  ssize_t sVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_b8;\n  FILE *local_ac;\n  termios local_98;\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x412b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }\n  iVar3 = open64("/dev/tty",2);\n  if (iVar3 < 0) {\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar3,"w");\n  }\n  puVar2 = PTR_stderr_0006efe0;\n  if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(char **)(param_1 + 0xc) != (char *)0x0) {\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(int *)(param_1 + 0x14) != 0) {\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }\n  uVar6 = 1;\n  if (*(FILE **)puVar2 != local_ac) {\n    fclose(local_ac);\n  }\nLAB_000415aa:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0004aab0();\n  }\n  return uVar6;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "ssize_t sVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_b8;" type_identifier identifier ;) (declaration "FILE *local_ac;" type_identifier (pointer_declarator "*local_ac" * identifier) ;) (declaration "termios local_98;" type_identifier identifier ;) (declaration "termios local_5c;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x412b9;" (assignment_expression "uStack_14 = 0x412b9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));" do (compound_statement "{\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    }" { (expression_statement "iVar3 = uVar7 * 4;" (assignment_expression "iVar3 = uVar7 * 4" identifier = (binary_expression "uVar7 * 4" identifier * number_literal)) ;) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);" (call_expression "FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd)" identifier (argument_list "(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd)" ( (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + iVar3)" ( (binary_expression "*(int *)(param_1 + 0x18) + iVar3" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + identifier) )))) , (pointer_expression "&DAT_0004bdfd" & identifier) ))) ;) }) while (parenthesized_expression "(uVar7 < *(uint *)(param_1 + 0x14))" ( (binary_expression "uVar7 < *(uint *)(param_1 + 0x14)" identifier < (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) ;) (if_statement "if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;" if (parenthesized_expression "((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0))" ( (binary_expression "(*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)" (parenthesized_expression "(*(uint *)(param_1 + 0x14) != 0)" ( (binary_expression "*(uint *)(param_1 + 0x14) != 0" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(uVar6 = 0, DAT_0006f240 != 0)" ( (comma_expression "uVar6 = 0, DAT_0006f240 != 0" (assignment_expression "uVar6 = 0" identifier = number_literal) , (binary_expression "DAT_0006f240 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000415aa;" goto statement_identifier ;)) })) (expression_statement "iVar3 = open64("/dev/tty",2);" (assignment_expression "iVar3 = open64("/dev/tty",2)" identifier = (call_expression "open64("/dev/tty",2)" identifier (argument_list "("/dev/tty",2)" ( (string_literal ""/dev/tty"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar3 < 0) {\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar3,"w");\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "local_ac = *(FILE **)PTR_stderr_0006efe0;" (assignment_expression "local_ac = *(FILE **)PTR_stderr_0006efe0" identifier = (pointer_expression "*(FILE **)PTR_stderr_0006efe0" * (cast_expression "(FILE **)PTR_stderr_0006efe0" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n    local_ac = fdopen(iVar3,"w");\n  }" else (compound_statement "{\n    local_ac = fdopen(iVar3,"w");\n  }" { (expression_statement "local_ac = fdopen(iVar3,"w");" (assignment_expression "local_ac = fdopen(iVar3,"w")" identifier = (call_expression "fdopen(iVar3,"w")" identifier (argument_list "(iVar3,"w")" ( identifier , (string_literal ""w"" " string_content ") )))) ;) }))) (expression_statement "puVar2 = PTR_stderr_0006efe0;" (assignment_expression "puVar2 = PTR_stderr_0006efe0" identifier = identifier) ;) (if_statement "if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" if (parenthesized_expression "((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0))" ( (binary_expression "(*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)" (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(char **)(param_1 + 4) != (char *)0x0)" ( (binary_expression "*(char **)(param_1 + 4) != (char *)0x0" (pointer_expression "*(char **)(param_1 + 4)" * (cast_expression "(char **)(param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" { (expression_statement "sVar4 = strlen(*(char **)(param_1 + 4));" (assignment_expression "sVar4 = strlen(*(char **)(param_1 + 4))" identifier = (call_expression "strlen(*(char **)(param_1 + 4))" identifier (argument_list "(*(char **)(param_1 + 4))" ( (pointer_expression "*(char **)(param_1 + 4)" * (cast_expression "(char **)(param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n')" ( (binary_expression "*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + -1 + sVar4)" * (cast_expression "(char *)(*(int *)(param_1 + 4) + -1 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + -1 + sVar4)" ( (binary_expression "*(int *)(param_1 + 4) + -1 + sVar4" (binary_expression "*(int *)(param_1 + 4) + -1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) + identifier) )))) != (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_000404f0();\n    }" { (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) })) })) (if_statement "if (*(char **)(param_1 + 0xc) != (char *)0x0) {\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" if (parenthesized_expression "(*(char **)(param_1 + 0xc) != (char *)0x0)" ( (binary_expression "*(char **)(param_1 + 0xc) != (char *)0x0" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" { (expression_statement "sVar4 = strlen(*(char **)(param_1 + 0xc));" (assignment_expression "sVar4 = strlen(*(char **)(param_1 + 0xc))" identifier = (call_expression "strlen(*(char **)(param_1 + 0xc))" identifier (argument_list "(*(char **)(param_1 + 0xc))" ( (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n')" ( (binary_expression "*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n'" (pointer_expression "*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4)" * (cast_expression "(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + -1 + sVar4)" ( (binary_expression "*(int *)(param_1 + 0xc) + -1 + sVar4" (binary_expression "*(int *)(param_1 + 0xc) + -1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) + identifier) )))) != (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_000404f0();\n    }" { (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) })) })) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }" { (expression_statement "local_b8 = 0;" (assignment_expression "local_b8 = 0" identifier = number_literal) ;) (do_statement "do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));" do (compound_statement "{\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    }" { (expression_statement "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4)" * (cast_expression "(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + local_b8 * 4)" ( (binary_expression "*(int *)(param_1 + 0x18) + local_b8 * 4" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + (binary_expression "local_b8 * 4" identifier * number_literal)) ))))) ;) (expression_statement "tcgetattr(iVar3,&local_98);" (call_expression "tcgetattr(iVar3,&local_98)" identifier (argument_list "(iVar3,&local_98)" ( identifier , (pointer_expression "&local_98" & identifier) ))) ;) (expression_statement "local_5c.c_line = local_98.c_line;" (assignment_expression "local_5c.c_line = local_98.c_line" (field_expression "local_5c.c_line" identifier . field_identifier) = (field_expression "local_98.c_line" identifier . field_identifier)) ;) (expression_statement "local_5c.c_cc[0] = local_98.c_cc[0];" (assignment_expression "local_5c.c_cc[0] = local_98.c_cc[0]" (subscript_expression "local_5c.c_cc[0]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[1] = local_98.c_cc[1];" (assignment_expression "local_5c.c_cc[1] = local_98.c_cc[1]" (subscript_expression "local_5c.c_cc[1]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[1]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[2] = local_98.c_cc[2];" (assignment_expression "local_5c.c_cc[2] = local_98.c_cc[2]" (subscript_expression "local_5c.c_cc[2]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[2]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_iflag = local_98.c_iflag;" (assignment_expression "local_5c.c_iflag = local_98.c_iflag" (field_expression "local_5c.c_iflag" identifier . field_identifier) = (field_expression "local_98.c_iflag" identifier . field_identifier)) ;) (expression_statement "local_5c.c_cc[3] = local_98.c_cc[3];" (assignment_expression "local_5c.c_cc[3] = local_98.c_cc[3]" (subscript_expression "local_5c.c_cc[3]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[3]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[4] = local_98.c_cc[4];" (assignment_expression "local_5c.c_cc[4] = local_98.c_cc[4]" (subscript_expression "local_5c.c_cc[4]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[4]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[5] = local_98.c_cc[5];" (assignment_expression "local_5c.c_cc[5] = local_98.c_cc[5]" (subscript_expression "local_5c.c_cc[5]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[5]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[6] = local_98.c_cc[6];" (assignment_expression "local_5c.c_cc[6] = local_98.c_cc[6]" (subscript_expression "local_5c.c_cc[6]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[6]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_oflag = local_98.c_oflag;" (assignment_expression "local_5c.c_oflag = local_98.c_oflag" (field_expression "local_5c.c_oflag" identifier . field_identifier) = (field_expression "local_98.c_oflag" identifier . field_identifier)) ;) (expression_statement "local_5c.c_cc[7] = local_98.c_cc[7];" (assignment_expression "local_5c.c_cc[7] = local_98.c_cc[7]" (subscript_expression "local_5c.c_cc[7]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[7]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[8] = local_98.c_cc[8];" (assignment_expression "local_5c.c_cc[8] = local_98.c_cc[8]" (subscript_expression "local_5c.c_cc[8]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[8]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[9] = local_98.c_cc[9];" (assignment_expression "local_5c.c_cc[9] = local_98.c_cc[9]" (subscript_expression "local_5c.c_cc[9]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[9]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[10] = local_98.c_cc[10];" (assignment_expression "local_5c.c_cc[10] = local_98.c_cc[10]" (subscript_expression "local_5c.c_cc[10]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[10]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cflag = local_98.c_cflag;" (assignment_expression "local_5c.c_cflag = local_98.c_cflag" (field_expression "local_5c.c_cflag" identifier . field_identifier) = (field_expression "local_98.c_cflag" identifier . field_identifier)) ;) (expression_statement "local_5c.c_cc[0xb] = local_98.c_cc[0xb];" (assignment_expression "local_5c.c_cc[0xb] = local_98.c_cc[0xb]" (subscript_expression "local_5c.c_cc[0xb]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0xb]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0xc] = local_98.c_cc[0xc];" (assignment_expression "local_5c.c_cc[0xc] = local_98.c_cc[0xc]" (subscript_expression "local_5c.c_cc[0xc]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0xc]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0xd] = local_98.c_cc[0xd];" (assignment_expression "local_5c.c_cc[0xd] = local_98.c_cc[0xd]" (subscript_expression "local_5c.c_cc[0xd]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0xd]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0xe] = local_98.c_cc[0xe];" (assignment_expression "local_5c.c_cc[0xe] = local_98.c_cc[0xe]" (subscript_expression "local_5c.c_cc[0xe]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0xe]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0xf] = local_98.c_cc[0xf];" (assignment_expression "local_5c.c_cc[0xf] = local_98.c_cc[0xf]" (subscript_expression "local_5c.c_cc[0xf]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0xf]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x10] = local_98.c_cc[0x10];" (assignment_expression "local_5c.c_cc[0x10] = local_98.c_cc[0x10]" (subscript_expression "local_5c.c_cc[0x10]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x10]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x11] = local_98.c_cc[0x11];" (assignment_expression "local_5c.c_cc[0x11] = local_98.c_cc[0x11]" (subscript_expression "local_5c.c_cc[0x11]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x11]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x12] = local_98.c_cc[0x12];" (assignment_expression "local_5c.c_cc[0x12] = local_98.c_cc[0x12]" (subscript_expression "local_5c.c_cc[0x12]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x12]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x13] = local_98.c_cc[0x13];" (assignment_expression "local_5c.c_cc[0x13] = local_98.c_cc[0x13]" (subscript_expression "local_5c.c_cc[0x13]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x13]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x14] = local_98.c_cc[0x14];" (assignment_expression "local_5c.c_cc[0x14] = local_98.c_cc[0x14]" (subscript_expression "local_5c.c_cc[0x14]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x14]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x15] = local_98.c_cc[0x15];" (assignment_expression "local_5c.c_cc[0x15] = local_98.c_cc[0x15]" (subscript_expression "local_5c.c_cc[0x15]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x15]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x16] = local_98.c_cc[0x16];" (assignment_expression "local_5c.c_cc[0x16] = local_98.c_cc[0x16]" (subscript_expression "local_5c.c_cc[0x16]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x16]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x17] = local_98.c_cc[0x17];" (assignment_expression "local_5c.c_cc[0x17] = local_98.c_cc[0x17]" (subscript_expression "local_5c.c_cc[0x17]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x17]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x18] = local_98.c_cc[0x18];" (assignment_expression "local_5c.c_cc[0x18] = local_98.c_cc[0x18]" (subscript_expression "local_5c.c_cc[0x18]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x18]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x19] = local_98.c_cc[0x19];" (assignment_expression "local_5c.c_cc[0x19] = local_98.c_cc[0x19]" (subscript_expression "local_5c.c_cc[0x19]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x19]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];" (assignment_expression "local_5c.c_cc[0x1a] = local_98.c_cc[0x1a]" (subscript_expression "local_5c.c_cc[0x1a]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1a]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];" (assignment_expression "local_5c.c_cc[0x1b] = local_98.c_cc[0x1b]" (subscript_expression "local_5c.c_cc[0x1b]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1b]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];" (assignment_expression "local_5c.c_cc[0x1c] = local_98.c_cc[0x1c]" (subscript_expression "local_5c.c_cc[0x1c]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1c]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];" (assignment_expression "local_5c.c_cc[0x1d] = local_98.c_cc[0x1d]" (subscript_expression "local_5c.c_cc[0x1d]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1d]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];" (assignment_expression "local_5c.c_cc[0x1e] = local_98.c_cc[0x1e]" (subscript_expression "local_5c.c_cc[0x1e]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1e]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];" (assignment_expression "local_5c.c_cc[0x1f] = local_98.c_cc[0x1f]" (subscript_expression "local_5c.c_cc[0x1f]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1f]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c._49_3_ = local_98._49_3_;" (assignment_expression "local_5c._49_3_ = local_98._49_3_" (field_expression "local_5c._49_3_" identifier . field_identifier) = (field_expression "local_98._49_3_" identifier . field_identifier)) ;) (expression_statement "local_5c.c_ispeed = local_98.c_ispeed;" (assignment_expression "local_5c.c_ispeed = local_98.c_ispeed" (field_expression "local_5c.c_ispeed" identifier . field_identifier) = (field_expression "local_98.c_ispeed" identifier . field_identifier)) ;) (expression_statement "local_5c.c_ospeed = local_98.c_ospeed;" (assignment_expression "local_5c.c_ospeed = local_98.c_ospeed" (field_expression "local_5c.c_ospeed" identifier . field_identifier) = (field_expression "local_98.c_ospeed" identifier . field_identifier)) ;) (expression_statement "local_5c.c_lflag = local_98.c_lflag | 0xb;" (assignment_expression "local_5c.c_lflag = local_98.c_lflag | 0xb" (field_expression "local_5c.c_lflag" identifier . field_identifier) = (binary_expression "local_98.c_lflag | 0xb" (field_expression "local_98.c_lflag" identifier . field_identifier) | number_literal)) ;) (if_statement "if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }" if (parenthesized_expression "(puVar1[1] == 0)" ( (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }" { (expression_statement "local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;" (assignment_expression "local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3" (field_expression "local_5c.c_lflag" identifier . field_identifier) = (binary_expression "local_98.c_lflag & 0xfffffff7 | 3" (binary_expression "local_98.c_lflag & 0xfffffff7" (field_expression "local_98.c_lflag" identifier . field_identifier) & number_literal) | number_literal)) ;) })) (expression_statement "tcsetattr(iVar3,0,&local_5c);" (call_expression "tcsetattr(iVar3,0,&local_5c)" identifier (argument_list "(iVar3,0,&local_5c)" ( identifier , number_literal , (pointer_expression "&local_5c" & identifier) ))) ;) (expression_statement "strlen((char *)*puVar1);" (call_expression "strlen((char *)*puVar1)" identifier (argument_list "((char *)*puVar1)" ( (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) ))) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) (do_statement "do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');" do (compound_statement "{\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      }" { (expression_statement "FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);" (call_expression "FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200)" identifier (argument_list "(puVar1,((int)(uVar7 * 5) >> 2) + 0x200)" ( identifier , (binary_expression "((int)(uVar7 * 5) >> 2) + 0x200" (parenthesized_expression "((int)(uVar7 * 5) >> 2)" ( (binary_expression "(int)(uVar7 * 5) >> 2" (cast_expression "(int)(uVar7 * 5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar7 * 5)" ( (binary_expression "uVar7 * 5" identifier * number_literal) ))) >> number_literal) )) + number_literal) ))) ;) (expression_statement "sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);" (assignment_expression "sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3])" identifier = (call_expression "read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3])" identifier (argument_list "(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3])" ( identifier , (cast_expression "(void *)(puVar1[2] + uVar7)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[2] + uVar7)" ( (binary_expression "puVar1[2] + uVar7" (subscript_expression "puVar1[2]" identifier [ number_literal ]) + identifier) ))) , (binary_expression "~uVar7 + puVar1[3]" (unary_expression "~uVar7" ~ identifier) + (subscript_expression "puVar1[3]" identifier [ number_literal ])) )))) ;) (if_statement "if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }" if (parenthesized_expression "(sVar5 < 1)" ( (binary_expression "sVar5 < 1" identifier < number_literal) )) (compound_statement "{\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }" { (expression_statement "tcsetattr(iVar3,0,&local_98);" (call_expression "tcsetattr(iVar3,0,&local_98)" identifier (argument_list "(iVar3,0,&local_98)" ( identifier , number_literal , (pointer_expression "&local_98" & identifier) ))) ;) (if_statement "if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }" if (parenthesized_expression "(puVar1[1] == 0)" ( (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            FUN_000404f0();\n          }" { (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }" if (parenthesized_expression "(*(FILE **)puVar2 != local_ac)" ( (binary_expression "*(FILE **)puVar2 != local_ac" (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) != identifier) )) (compound_statement "{\n            fclose(local_ac);\n          }" { (expression_statement "fclose(local_ac);" (call_expression "fclose(local_ac)" identifier (argument_list "(local_ac)" ( identifier ))) ;) })) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000415aa;" goto statement_identifier ;) })) (expression_statement "uVar7 = uVar7 + sVar5;" (assignment_expression "uVar7 = uVar7 + sVar5" identifier = (binary_expression "uVar7 + sVar5" identifier + identifier)) ;) }) while (parenthesized_expression "(*(char *)(puVar1[2] + -1 + uVar7) != '\n')" ( (binary_expression "*(char *)(puVar1[2] + -1 + uVar7) != '\n'" (pointer_expression "*(char *)(puVar1[2] + -1 + uVar7)" * (cast_expression "(char *)(puVar1[2] + -1 + uVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[2] + -1 + uVar7)" ( (binary_expression "puVar1[2] + -1 + uVar7" (binary_expression "puVar1[2] + -1" (subscript_expression "puVar1[2]" identifier [ number_literal ]) + number_literal) + identifier) )))) != (char_literal "'\n'" ' escape_sequence ')) )) ;) (expression_statement "tcsetattr(iVar3,0,&local_98);" (call_expression "tcsetattr(iVar3,0,&local_98)" identifier (argument_list "(iVar3,0,&local_98)" ( identifier , number_literal , (pointer_expression "&local_98" & identifier) ))) ;) (if_statement "if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }" if (parenthesized_expression "(puVar1[1] == 0)" ( (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        FUN_000404f0();\n      }" { (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_b8 = local_b8 + 1;" (assignment_expression "local_b8 = local_b8 + 1" identifier = (binary_expression "local_b8 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;" (assignment_expression "*(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0" (pointer_expression "*(undefined1 *)(puVar1[2] + (uVar7 - 1))" * (cast_expression "(undefined1 *)(puVar1[2] + (uVar7 - 1))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[2] + (uVar7 - 1))" ( (binary_expression "puVar1[2] + (uVar7 - 1)" (subscript_expression "puVar1[2]" identifier [ number_literal ]) + (parenthesized_expression "(uVar7 - 1)" ( (binary_expression "uVar7 - 1" identifier - number_literal) ))) )))) = number_literal) ;) }) while (parenthesized_expression "(local_b8 < *(uint *)(param_1 + 0x14))" ( (binary_expression "local_b8 < *(uint *)(param_1 + 0x14)" identifier < (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) ;) })) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (if_statement "if (*(FILE **)puVar2 != local_ac) {\n    fclose(local_ac);\n  }" if (parenthesized_expression "(*(FILE **)puVar2 != local_ac)" ( (binary_expression "*(FILE **)puVar2 != local_ac" (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) != identifier) )) (compound_statement "{\n    fclose(local_ac);\n  }" { (expression_statement "fclose(local_ac);" (call_expression "fclose(local_ac)" identifier (argument_list "(local_ac)" ( identifier ))) ;) })) (labeled_statement "LAB_000415aa:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0004aab0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0004aab0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0004aab0();\n  }" { comment (expression_statement "FUN_0004aab0();" (call_expression "FUN_0004aab0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar6;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint console_get_userpass_input(prompts_t *p,uchar *in,int inlen)\n\n{\n  prompt_t **pppVar1;\n  int iVar2;\n  char *pcVar3;\n  prompt_t *pr;\n  undefined *puVar4;\n  size_t sVar5;\n  ssize_t sVar6;\n  int iVar7;\n  uint uVar8;\n  int in_GS_OFFSET;\n  uint local_b8;\n  FILE *local_ac;\n  termios oldmode;\n  termios newmode;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (p->n_prompts != 0) {\n    uVar8 = 0;\n    do {\n      pppVar1 = p->prompts + uVar8;\n      uVar8 = uVar8 + 1;\n      prompt_set_result(*pppVar1,"");\n    } while (uVar8 < p->n_prompts);\n    if ((p->n_prompts != 0) && (iVar7 = 0, console_batch_mode != 0)) goto LAB_000415aa;\n  }\n  iVar7 = open64("/dev/tty",2);\n  if (iVar7 < 0) {\n    iVar7 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar7,"w");\n  }\n  puVar4 = PTR_stderr_0006efe0;\n  if ((p->name_reqd != 0) && (pcVar3 = p->name, pcVar3 != (char *)0x0)) {\n    sVar5 = strlen(pcVar3);\n    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n    if (p->name[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }\n  }\n  pcVar3 = p->instruction;\n  if (pcVar3 != (char *)0x0) {\n    sVar5 = strlen(pcVar3);\n    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n    if (p->instruction[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }\n  }\n  if (p->n_prompts != 0) {\n    local_b8 = 0;\n    do {\n      pr = p->prompts[local_b8];\n      tcgetattr(iVar7,(termios *)&oldmode);\n      newmode.c_line = oldmode.c_line;\n      newmode.c_cc[0] = oldmode.c_cc[0];\n      newmode.c_cc[1] = oldmode.c_cc[1];\n      newmode.c_cc[2] = oldmode.c_cc[2];\n      newmode.c_iflag = oldmode.c_iflag;\n      newmode.c_cc[3] = oldmode.c_cc[3];\n      newmode.c_cc[4] = oldmode.c_cc[4];\n      newmode.c_cc[5] = oldmode.c_cc[5];\n      newmode.c_cc[6] = oldmode.c_cc[6];\n      newmode.c_oflag = oldmode.c_oflag;\n      newmode.c_cc[7] = oldmode.c_cc[7];\n      newmode.c_cc[8] = oldmode.c_cc[8];\n      newmode.c_cc[9] = oldmode.c_cc[9];\n      newmode.c_cc[10] = oldmode.c_cc[10];\n      newmode.c_cflag = oldmode.c_cflag;\n      newmode.c_cc[0xb] = oldmode.c_cc[0xb];\n      newmode.c_cc[0xc] = oldmode.c_cc[0xc];\n      newmode.c_cc[0xd] = oldmode.c_cc[0xd];\n      newmode.c_cc[0xe] = oldmode.c_cc[0xe];\n      newmode.c_cc[0xf] = oldmode.c_cc[0xf];\n      newmode.c_cc[0x10] = oldmode.c_cc[0x10];\n      newmode.c_cc[0x11] = oldmode.c_cc[0x11];\n      newmode.c_cc[0x12] = oldmode.c_cc[0x12];\n      newmode.c_cc[0x13] = oldmode.c_cc[0x13];\n      newmode.c_cc[0x14] = oldmode.c_cc[0x14];\n      newmode.c_cc[0x15] = oldmode.c_cc[0x15];\n      newmode.c_cc[0x16] = oldmode.c_cc[0x16];\n      newmode.c_cc[0x17] = oldmode.c_cc[0x17];\n      newmode.c_cc[0x18] = oldmode.c_cc[0x18];\n      newmode.c_cc[0x19] = oldmode.c_cc[0x19];\n      newmode.c_cc[0x1a] = oldmode.c_cc[0x1a];\n      newmode.c_cc[0x1b] = oldmode.c_cc[0x1b];\n      newmode.c_cc[0x1c] = oldmode.c_cc[0x1c];\n      newmode.c_cc[0x1d] = oldmode.c_cc[0x1d];\n      newmode.c_cc[0x1e] = oldmode.c_cc[0x1e];\n      newmode.c_cc[0x1f] = oldmode.c_cc[0x1f];\n      newmode._49_3_ = oldmode._49_3_;\n      newmode.c_ispeed = oldmode.c_ispeed;\n      newmode.c_ospeed = oldmode.c_ospeed;\n      newmode.c_lflag = oldmode.c_lflag | 0xb;\n      if (pr->echo == 0) {\n        newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar7,0,(termios *)&newmode);\n      pcVar3 = pr->prompt;\n      sVar5 = strlen(pcVar3);\n      uVar8 = 0;\n      console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n      do {\n        prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200);\n        sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize);\n        if (sVar6 < 1) {\n          tcsetattr(iVar7,0,(termios *)&oldmode);\n          if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }\n          if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }\n          iVar7 = 0;\n          goto LAB_000415aa;\n        }\n        uVar8 = uVar8 + sVar6;\n      } while (pr->result[uVar8 - 1] != '\n');\n      tcsetattr(iVar7,0,(termios *)&oldmode);\n      if (pr->echo == 0) {\n        console_prompt_text((FILE *)local_ac,"\n",1);\n      }\n      local_b8 = local_b8 + 1;\n      pr->result[uVar8 - 1] = '\0';\n    } while (local_b8 < p->n_prompts);\n  }\n  iVar7 = 1;\n  if (*(FILE **)puVar4 != local_ac) {\n    fclose(local_ac);\n  }\nLAB_000415aa:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar7;\n}\n\n" comment comment (function_definition "int console_get_userpass_input(prompts_t *p,uchar *in,int inlen)\n\n{\n  prompt_t **pppVar1;\n  int iVar2;\n  char *pcVar3;\n  prompt_t *pr;\n  undefined *puVar4;\n  size_t sVar5;\n  ssize_t sVar6;\n  int iVar7;\n  uint uVar8;\n  int in_GS_OFFSET;\n  uint local_b8;\n  FILE *local_ac;\n  termios oldmode;\n  termios newmode;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (p->n_prompts != 0) {\n    uVar8 = 0;\n    do {\n      pppVar1 = p->prompts + uVar8;\n      uVar8 = uVar8 + 1;\n      prompt_set_result(*pppVar1,"");\n    } while (uVar8 < p->n_prompts);\n    if ((p->n_prompts != 0) && (iVar7 = 0, console_batch_mode != 0)) goto LAB_000415aa;\n  }\n  iVar7 = open64("/dev/tty",2);\n  if (iVar7 < 0) {\n    iVar7 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar7,"w");\n  }\n  puVar4 = PTR_stderr_0006efe0;\n  if ((p->name_reqd != 0) && (pcVar3 = p->name, pcVar3 != (char *)0x0)) {\n    sVar5 = strlen(pcVar3);\n    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n    if (p->name[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }\n  }\n  pcVar3 = p->instruction;\n  if (pcVar3 != (char *)0x0) {\n    sVar5 = strlen(pcVar3);\n    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n    if (p->instruction[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }\n  }\n  if (p->n_prompts != 0) {\n    local_b8 = 0;\n    do {\n      pr = p->prompts[local_b8];\n      tcgetattr(iVar7,(termios *)&oldmode);\n      newmode.c_line = oldmode.c_line;\n      newmode.c_cc[0] = oldmode.c_cc[0];\n      newmode.c_cc[1] = oldmode.c_cc[1];\n      newmode.c_cc[2] = oldmode.c_cc[2];\n      newmode.c_iflag = oldmode.c_iflag;\n      newmode.c_cc[3] = oldmode.c_cc[3];\n      newmode.c_cc[4] = oldmode.c_cc[4];\n      newmode.c_cc[5] = oldmode.c_cc[5];\n      newmode.c_cc[6] = oldmode.c_cc[6];\n      newmode.c_oflag = oldmode.c_oflag;\n      newmode.c_cc[7] = oldmode.c_cc[7];\n      newmode.c_cc[8] = oldmode.c_cc[8];\n      newmode.c_cc[9] = oldmode.c_cc[9];\n      newmode.c_cc[10] = oldmode.c_cc[10];\n      newmode.c_cflag = oldmode.c_cflag;\n      newmode.c_cc[0xb] = oldmode.c_cc[0xb];\n      newmode.c_cc[0xc] = oldmode.c_cc[0xc];\n      newmode.c_cc[0xd] = oldmode.c_cc[0xd];\n      newmode.c_cc[0xe] = oldmode.c_cc[0xe];\n      newmode.c_cc[0xf] = oldmode.c_cc[0xf];\n      newmode.c_cc[0x10] = oldmode.c_cc[0x10];\n      newmode.c_cc[0x11] = oldmode.c_cc[0x11];\n      newmode.c_cc[0x12] = oldmode.c_cc[0x12];\n      newmode.c_cc[0x13] = oldmode.c_cc[0x13];\n      newmode.c_cc[0x14] = oldmode.c_cc[0x14];\n      newmode.c_cc[0x15] = oldmode.c_cc[0x15];\n      newmode.c_cc[0x16] = oldmode.c_cc[0x16];\n      newmode.c_cc[0x17] = oldmode.c_cc[0x17];\n      newmode.c_cc[0x18] = oldmode.c_cc[0x18];\n      newmode.c_cc[0x19] = oldmode.c_cc[0x19];\n      newmode.c_cc[0x1a] = oldmode.c_cc[0x1a];\n      newmode.c_cc[0x1b] = oldmode.c_cc[0x1b];\n      newmode.c_cc[0x1c] = oldmode.c_cc[0x1c];\n      newmode.c_cc[0x1d] = oldmode.c_cc[0x1d];\n      newmode.c_cc[0x1e] = oldmode.c_cc[0x1e];\n      newmode.c_cc[0x1f] = oldmode.c_cc[0x1f];\n      newmode._49_3_ = oldmode._49_3_;\n      newmode.c_ispeed = oldmode.c_ispeed;\n      newmode.c_ospeed = oldmode.c_ospeed;\n      newmode.c_lflag = oldmode.c_lflag | 0xb;\n      if (pr->echo == 0) {\n        newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar7,0,(termios *)&newmode);\n      pcVar3 = pr->prompt;\n      sVar5 = strlen(pcVar3);\n      uVar8 = 0;\n      console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n      do {\n        prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200);\n        sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize);\n        if (sVar6 < 1) {\n          tcsetattr(iVar7,0,(termios *)&oldmode);\n          if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }\n          if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }\n          iVar7 = 0;\n          goto LAB_000415aa;\n        }\n        uVar8 = uVar8 + sVar6;\n      } while (pr->result[uVar8 - 1] != '\n');\n      tcsetattr(iVar7,0,(termios *)&oldmode);\n      if (pr->echo == 0) {\n        console_prompt_text((FILE *)local_ac,"\n",1);\n      }\n      local_b8 = local_b8 + 1;\n      pr->result[uVar8 - 1] = '\0';\n    } while (local_b8 < p->n_prompts);\n  }\n  iVar7 = 1;\n  if (*(FILE **)puVar4 != local_ac) {\n    fclose(local_ac);\n  }\nLAB_000415aa:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar7;\n}" primitive_type (function_declarator "console_get_userpass_input(prompts_t *p,uchar *in,int inlen)" identifier (parameter_list "(prompts_t *p,uchar *in,int inlen)" ( (parameter_declaration "prompts_t *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "uchar *in" type_identifier (pointer_declarator "*in" * identifier)) , (parameter_declaration "int inlen" primitive_type identifier) ))) (compound_statement "{\n  prompt_t **pppVar1;\n  int iVar2;\n  char *pcVar3;\n  prompt_t *pr;\n  undefined *puVar4;\n  size_t sVar5;\n  ssize_t sVar6;\n  int iVar7;\n  uint uVar8;\n  int in_GS_OFFSET;\n  uint local_b8;\n  FILE *local_ac;\n  termios oldmode;\n  termios newmode;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (p->n_prompts != 0) {\n    uVar8 = 0;\n    do {\n      pppVar1 = p->prompts + uVar8;\n      uVar8 = uVar8 + 1;\n      prompt_set_result(*pppVar1,"");\n    } while (uVar8 < p->n_prompts);\n    if ((p->n_prompts != 0) && (iVar7 = 0, console_batch_mode != 0)) goto LAB_000415aa;\n  }\n  iVar7 = open64("/dev/tty",2);\n  if (iVar7 < 0) {\n    iVar7 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar7,"w");\n  }\n  puVar4 = PTR_stderr_0006efe0;\n  if ((p->name_reqd != 0) && (pcVar3 = p->name, pcVar3 != (char *)0x0)) {\n    sVar5 = strlen(pcVar3);\n    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n    if (p->name[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }\n  }\n  pcVar3 = p->instruction;\n  if (pcVar3 != (char *)0x0) {\n    sVar5 = strlen(pcVar3);\n    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n    if (p->instruction[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }\n  }\n  if (p->n_prompts != 0) {\n    local_b8 = 0;\n    do {\n      pr = p->prompts[local_b8];\n      tcgetattr(iVar7,(termios *)&oldmode);\n      newmode.c_line = oldmode.c_line;\n      newmode.c_cc[0] = oldmode.c_cc[0];\n      newmode.c_cc[1] = oldmode.c_cc[1];\n      newmode.c_cc[2] = oldmode.c_cc[2];\n      newmode.c_iflag = oldmode.c_iflag;\n      newmode.c_cc[3] = oldmode.c_cc[3];\n      newmode.c_cc[4] = oldmode.c_cc[4];\n      newmode.c_cc[5] = oldmode.c_cc[5];\n      newmode.c_cc[6] = oldmode.c_cc[6];\n      newmode.c_oflag = oldmode.c_oflag;\n      newmode.c_cc[7] = oldmode.c_cc[7];\n      newmode.c_cc[8] = oldmode.c_cc[8];\n      newmode.c_cc[9] = oldmode.c_cc[9];\n      newmode.c_cc[10] = oldmode.c_cc[10];\n      newmode.c_cflag = oldmode.c_cflag;\n      newmode.c_cc[0xb] = oldmode.c_cc[0xb];\n      newmode.c_cc[0xc] = oldmode.c_cc[0xc];\n      newmode.c_cc[0xd] = oldmode.c_cc[0xd];\n      newmode.c_cc[0xe] = oldmode.c_cc[0xe];\n      newmode.c_cc[0xf] = oldmode.c_cc[0xf];\n      newmode.c_cc[0x10] = oldmode.c_cc[0x10];\n      newmode.c_cc[0x11] = oldmode.c_cc[0x11];\n      newmode.c_cc[0x12] = oldmode.c_cc[0x12];\n      newmode.c_cc[0x13] = oldmode.c_cc[0x13];\n      newmode.c_cc[0x14] = oldmode.c_cc[0x14];\n      newmode.c_cc[0x15] = oldmode.c_cc[0x15];\n      newmode.c_cc[0x16] = oldmode.c_cc[0x16];\n      newmode.c_cc[0x17] = oldmode.c_cc[0x17];\n      newmode.c_cc[0x18] = oldmode.c_cc[0x18];\n      newmode.c_cc[0x19] = oldmode.c_cc[0x19];\n      newmode.c_cc[0x1a] = oldmode.c_cc[0x1a];\n      newmode.c_cc[0x1b] = oldmode.c_cc[0x1b];\n      newmode.c_cc[0x1c] = oldmode.c_cc[0x1c];\n      newmode.c_cc[0x1d] = oldmode.c_cc[0x1d];\n      newmode.c_cc[0x1e] = oldmode.c_cc[0x1e];\n      newmode.c_cc[0x1f] = oldmode.c_cc[0x1f];\n      newmode._49_3_ = oldmode._49_3_;\n      newmode.c_ispeed = oldmode.c_ispeed;\n      newmode.c_ospeed = oldmode.c_ospeed;\n      newmode.c_lflag = oldmode.c_lflag | 0xb;\n      if (pr->echo == 0) {\n        newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar7,0,(termios *)&newmode);\n      pcVar3 = pr->prompt;\n      sVar5 = strlen(pcVar3);\n      uVar8 = 0;\n      console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n      do {\n        prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200);\n        sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize);\n        if (sVar6 < 1) {\n          tcsetattr(iVar7,0,(termios *)&oldmode);\n          if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }\n          if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }\n          iVar7 = 0;\n          goto LAB_000415aa;\n        }\n        uVar8 = uVar8 + sVar6;\n      } while (pr->result[uVar8 - 1] != '\n');\n      tcsetattr(iVar7,0,(termios *)&oldmode);\n      if (pr->echo == 0) {\n        console_prompt_text((FILE *)local_ac,"\n",1);\n      }\n      local_b8 = local_b8 + 1;\n      pr->result[uVar8 - 1] = '\0';\n    } while (local_b8 < p->n_prompts);\n  }\n  iVar7 = 1;\n  if (*(FILE **)puVar4 != local_ac) {\n    fclose(local_ac);\n  }\nLAB_000415aa:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar7;\n}" { (declaration "prompt_t **pppVar1;" type_identifier (pointer_declarator "**pppVar1" * (pointer_declarator "*pppVar1" * identifier)) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "prompt_t *pr;" type_identifier (pointer_declarator "*pr" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "ssize_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_b8;" type_identifier identifier ;) (declaration "FILE *local_ac;" type_identifier (pointer_declarator "*local_ac" * identifier) ;) (declaration "termios oldmode;" type_identifier identifier ;) (declaration "termios newmode;" type_identifier identifier ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (p->n_prompts != 0) {\n    uVar8 = 0;\n    do {\n      pppVar1 = p->prompts + uVar8;\n      uVar8 = uVar8 + 1;\n      prompt_set_result(*pppVar1,"");\n    } while (uVar8 < p->n_prompts);\n    if ((p->n_prompts != 0) && (iVar7 = 0, console_batch_mode != 0)) goto LAB_000415aa;\n  }" if (parenthesized_expression "(p->n_prompts != 0)" ( (binary_expression "p->n_prompts != 0" (field_expression "p->n_prompts" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    uVar8 = 0;\n    do {\n      pppVar1 = p->prompts + uVar8;\n      uVar8 = uVar8 + 1;\n      prompt_set_result(*pppVar1,"");\n    } while (uVar8 < p->n_prompts);\n    if ((p->n_prompts != 0) && (iVar7 = 0, console_batch_mode != 0)) goto LAB_000415aa;\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n      pppVar1 = p->prompts + uVar8;\n      uVar8 = uVar8 + 1;\n      prompt_set_result(*pppVar1,"");\n    } while (uVar8 < p->n_prompts);" do (compound_statement "{\n      pppVar1 = p->prompts + uVar8;\n      uVar8 = uVar8 + 1;\n      prompt_set_result(*pppVar1,"");\n    }" { (expression_statement "pppVar1 = p->prompts + uVar8;" (assignment_expression "pppVar1 = p->prompts + uVar8" identifier = (binary_expression "p->prompts + uVar8" (field_expression "p->prompts" identifier -> field_identifier) + identifier)) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "prompt_set_result(*pppVar1,"");" (call_expression "prompt_set_result(*pppVar1,"")" identifier (argument_list "(*pppVar1,"")" ( (pointer_expression "*pppVar1" * identifier) , (string_literal """" " ") ))) ;) }) while (parenthesized_expression "(uVar8 < p->n_prompts)" ( (binary_expression "uVar8 < p->n_prompts" identifier < (field_expression "p->n_prompts" identifier -> field_identifier)) )) ;) (if_statement "if ((p->n_prompts != 0) && (iVar7 = 0, console_batch_mode != 0)) goto LAB_000415aa;" if (parenthesized_expression "((p->n_prompts != 0) && (iVar7 = 0, console_batch_mode != 0))" ( (binary_expression "(p->n_prompts != 0) && (iVar7 = 0, console_batch_mode != 0)" (parenthesized_expression "(p->n_prompts != 0)" ( (binary_expression "p->n_prompts != 0" (field_expression "p->n_prompts" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(iVar7 = 0, console_batch_mode != 0)" ( (comma_expression "iVar7 = 0, console_batch_mode != 0" (assignment_expression "iVar7 = 0" identifier = number_literal) , (binary_expression "console_batch_mode != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000415aa;" goto statement_identifier ;)) })) (expression_statement "iVar7 = open64("/dev/tty",2);" (assignment_expression "iVar7 = open64("/dev/tty",2)" identifier = (call_expression "open64("/dev/tty",2)" identifier (argument_list "("/dev/tty",2)" ( (string_literal ""/dev/tty"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar7 < 0) {\n    iVar7 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar7,"w");\n  }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar7 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "local_ac = *(FILE **)PTR_stderr_0006efe0;" (assignment_expression "local_ac = *(FILE **)PTR_stderr_0006efe0" identifier = (pointer_expression "*(FILE **)PTR_stderr_0006efe0" * (cast_expression "(FILE **)PTR_stderr_0006efe0" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n    local_ac = fdopen(iVar7,"w");\n  }" else (compound_statement "{\n    local_ac = fdopen(iVar7,"w");\n  }" { (expression_statement "local_ac = fdopen(iVar7,"w");" (assignment_expression "local_ac = fdopen(iVar7,"w")" identifier = (call_expression "fdopen(iVar7,"w")" identifier (argument_list "(iVar7,"w")" ( identifier , (string_literal ""w"" " string_content ") )))) ;) }))) (expression_statement "puVar4 = PTR_stderr_0006efe0;" (assignment_expression "puVar4 = PTR_stderr_0006efe0" identifier = identifier) ;) (if_statement "if ((p->name_reqd != 0) && (pcVar3 = p->name, pcVar3 != (char *)0x0)) {\n    sVar5 = strlen(pcVar3);\n    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n    if (p->name[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }\n  }" if (parenthesized_expression "((p->name_reqd != 0) && (pcVar3 = p->name, pcVar3 != (char *)0x0))" ( (binary_expression "(p->name_reqd != 0) && (pcVar3 = p->name, pcVar3 != (char *)0x0)" (parenthesized_expression "(p->name_reqd != 0)" ( (binary_expression "p->name_reqd != 0" (field_expression "p->name_reqd" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(pcVar3 = p->name, pcVar3 != (char *)0x0)" ( (comma_expression "pcVar3 = p->name, pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = p->name" identifier = (field_expression "p->name" identifier -> field_identifier)) , (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    sVar5 = strlen(pcVar3);\n    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n    if (p->name[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }\n  }" { (expression_statement "sVar5 = strlen(pcVar3);" (assignment_expression "sVar5 = strlen(pcVar3)" identifier = (call_expression "strlen(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "console_prompt_text((FILE *)local_ac,pcVar3,sVar5);" (call_expression "console_prompt_text((FILE *)local_ac,pcVar3,sVar5)" identifier (argument_list "((FILE *)local_ac,pcVar3,sVar5)" ( (cast_expression "(FILE *)local_ac" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (if_statement "if (p->name[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }" if (parenthesized_expression "(p->name[sVar5 - 1] != '\n')" ( (binary_expression "p->name[sVar5 - 1] != '\n'" (subscript_expression "p->name[sVar5 - 1]" (field_expression "p->name" identifier -> field_identifier) [ (binary_expression "sVar5 - 1" identifier - number_literal) ]) != (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }" { (expression_statement "console_prompt_text((FILE *)local_ac,"\n",1);" (call_expression "console_prompt_text((FILE *)local_ac,"\n",1)" identifier (argument_list "((FILE *)local_ac,"\n",1)" ( (cast_expression "(FILE *)local_ac" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""\n"" " escape_sequence ") , number_literal ))) ;) })) })) (expression_statement "pcVar3 = p->instruction;" (assignment_expression "pcVar3 = p->instruction" identifier = (field_expression "p->instruction" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    sVar5 = strlen(pcVar3);\n    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n    if (p->instruction[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar5 = strlen(pcVar3);\n    console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n    if (p->instruction[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }\n  }" { (expression_statement "sVar5 = strlen(pcVar3);" (assignment_expression "sVar5 = strlen(pcVar3)" identifier = (call_expression "strlen(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "console_prompt_text((FILE *)local_ac,pcVar3,sVar5);" (call_expression "console_prompt_text((FILE *)local_ac,pcVar3,sVar5)" identifier (argument_list "((FILE *)local_ac,pcVar3,sVar5)" ( (cast_expression "(FILE *)local_ac" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (if_statement "if (p->instruction[sVar5 - 1] != '\n') {\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }" if (parenthesized_expression "(p->instruction[sVar5 - 1] != '\n')" ( (binary_expression "p->instruction[sVar5 - 1] != '\n'" (subscript_expression "p->instruction[sVar5 - 1]" (field_expression "p->instruction" identifier -> field_identifier) [ (binary_expression "sVar5 - 1" identifier - number_literal) ]) != (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n      console_prompt_text((FILE *)local_ac,"\n",1);\n    }" { (expression_statement "console_prompt_text((FILE *)local_ac,"\n",1);" (call_expression "console_prompt_text((FILE *)local_ac,"\n",1)" identifier (argument_list "((FILE *)local_ac,"\n",1)" ( (cast_expression "(FILE *)local_ac" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""\n"" " escape_sequence ") , number_literal ))) ;) })) })) (if_statement "if (p->n_prompts != 0) {\n    local_b8 = 0;\n    do {\n      pr = p->prompts[local_b8];\n      tcgetattr(iVar7,(termios *)&oldmode);\n      newmode.c_line = oldmode.c_line;\n      newmode.c_cc[0] = oldmode.c_cc[0];\n      newmode.c_cc[1] = oldmode.c_cc[1];\n      newmode.c_cc[2] = oldmode.c_cc[2];\n      newmode.c_iflag = oldmode.c_iflag;\n      newmode.c_cc[3] = oldmode.c_cc[3];\n      newmode.c_cc[4] = oldmode.c_cc[4];\n      newmode.c_cc[5] = oldmode.c_cc[5];\n      newmode.c_cc[6] = oldmode.c_cc[6];\n      newmode.c_oflag = oldmode.c_oflag;\n      newmode.c_cc[7] = oldmode.c_cc[7];\n      newmode.c_cc[8] = oldmode.c_cc[8];\n      newmode.c_cc[9] = oldmode.c_cc[9];\n      newmode.c_cc[10] = oldmode.c_cc[10];\n      newmode.c_cflag = oldmode.c_cflag;\n      newmode.c_cc[0xb] = oldmode.c_cc[0xb];\n      newmode.c_cc[0xc] = oldmode.c_cc[0xc];\n      newmode.c_cc[0xd] = oldmode.c_cc[0xd];\n      newmode.c_cc[0xe] = oldmode.c_cc[0xe];\n      newmode.c_cc[0xf] = oldmode.c_cc[0xf];\n      newmode.c_cc[0x10] = oldmode.c_cc[0x10];\n      newmode.c_cc[0x11] = oldmode.c_cc[0x11];\n      newmode.c_cc[0x12] = oldmode.c_cc[0x12];\n      newmode.c_cc[0x13] = oldmode.c_cc[0x13];\n      newmode.c_cc[0x14] = oldmode.c_cc[0x14];\n      newmode.c_cc[0x15] = oldmode.c_cc[0x15];\n      newmode.c_cc[0x16] = oldmode.c_cc[0x16];\n      newmode.c_cc[0x17] = oldmode.c_cc[0x17];\n      newmode.c_cc[0x18] = oldmode.c_cc[0x18];\n      newmode.c_cc[0x19] = oldmode.c_cc[0x19];\n      newmode.c_cc[0x1a] = oldmode.c_cc[0x1a];\n      newmode.c_cc[0x1b] = oldmode.c_cc[0x1b];\n      newmode.c_cc[0x1c] = oldmode.c_cc[0x1c];\n      newmode.c_cc[0x1d] = oldmode.c_cc[0x1d];\n      newmode.c_cc[0x1e] = oldmode.c_cc[0x1e];\n      newmode.c_cc[0x1f] = oldmode.c_cc[0x1f];\n      newmode._49_3_ = oldmode._49_3_;\n      newmode.c_ispeed = oldmode.c_ispeed;\n      newmode.c_ospeed = oldmode.c_ospeed;\n      newmode.c_lflag = oldmode.c_lflag | 0xb;\n      if (pr->echo == 0) {\n        newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar7,0,(termios *)&newmode);\n      pcVar3 = pr->prompt;\n      sVar5 = strlen(pcVar3);\n      uVar8 = 0;\n      console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n      do {\n        prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200);\n        sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize);\n        if (sVar6 < 1) {\n          tcsetattr(iVar7,0,(termios *)&oldmode);\n          if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }\n          if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }\n          iVar7 = 0;\n          goto LAB_000415aa;\n        }\n        uVar8 = uVar8 + sVar6;\n      } while (pr->result[uVar8 - 1] != '\n');\n      tcsetattr(iVar7,0,(termios *)&oldmode);\n      if (pr->echo == 0) {\n        console_prompt_text((FILE *)local_ac,"\n",1);\n      }\n      local_b8 = local_b8 + 1;\n      pr->result[uVar8 - 1] = '\0';\n    } while (local_b8 < p->n_prompts);\n  }" if (parenthesized_expression "(p->n_prompts != 0)" ( (binary_expression "p->n_prompts != 0" (field_expression "p->n_prompts" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    local_b8 = 0;\n    do {\n      pr = p->prompts[local_b8];\n      tcgetattr(iVar7,(termios *)&oldmode);\n      newmode.c_line = oldmode.c_line;\n      newmode.c_cc[0] = oldmode.c_cc[0];\n      newmode.c_cc[1] = oldmode.c_cc[1];\n      newmode.c_cc[2] = oldmode.c_cc[2];\n      newmode.c_iflag = oldmode.c_iflag;\n      newmode.c_cc[3] = oldmode.c_cc[3];\n      newmode.c_cc[4] = oldmode.c_cc[4];\n      newmode.c_cc[5] = oldmode.c_cc[5];\n      newmode.c_cc[6] = oldmode.c_cc[6];\n      newmode.c_oflag = oldmode.c_oflag;\n      newmode.c_cc[7] = oldmode.c_cc[7];\n      newmode.c_cc[8] = oldmode.c_cc[8];\n      newmode.c_cc[9] = oldmode.c_cc[9];\n      newmode.c_cc[10] = oldmode.c_cc[10];\n      newmode.c_cflag = oldmode.c_cflag;\n      newmode.c_cc[0xb] = oldmode.c_cc[0xb];\n      newmode.c_cc[0xc] = oldmode.c_cc[0xc];\n      newmode.c_cc[0xd] = oldmode.c_cc[0xd];\n      newmode.c_cc[0xe] = oldmode.c_cc[0xe];\n      newmode.c_cc[0xf] = oldmode.c_cc[0xf];\n      newmode.c_cc[0x10] = oldmode.c_cc[0x10];\n      newmode.c_cc[0x11] = oldmode.c_cc[0x11];\n      newmode.c_cc[0x12] = oldmode.c_cc[0x12];\n      newmode.c_cc[0x13] = oldmode.c_cc[0x13];\n      newmode.c_cc[0x14] = oldmode.c_cc[0x14];\n      newmode.c_cc[0x15] = oldmode.c_cc[0x15];\n      newmode.c_cc[0x16] = oldmode.c_cc[0x16];\n      newmode.c_cc[0x17] = oldmode.c_cc[0x17];\n      newmode.c_cc[0x18] = oldmode.c_cc[0x18];\n      newmode.c_cc[0x19] = oldmode.c_cc[0x19];\n      newmode.c_cc[0x1a] = oldmode.c_cc[0x1a];\n      newmode.c_cc[0x1b] = oldmode.c_cc[0x1b];\n      newmode.c_cc[0x1c] = oldmode.c_cc[0x1c];\n      newmode.c_cc[0x1d] = oldmode.c_cc[0x1d];\n      newmode.c_cc[0x1e] = oldmode.c_cc[0x1e];\n      newmode.c_cc[0x1f] = oldmode.c_cc[0x1f];\n      newmode._49_3_ = oldmode._49_3_;\n      newmode.c_ispeed = oldmode.c_ispeed;\n      newmode.c_ospeed = oldmode.c_ospeed;\n      newmode.c_lflag = oldmode.c_lflag | 0xb;\n      if (pr->echo == 0) {\n        newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar7,0,(termios *)&newmode);\n      pcVar3 = pr->prompt;\n      sVar5 = strlen(pcVar3);\n      uVar8 = 0;\n      console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n      do {\n        prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200);\n        sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize);\n        if (sVar6 < 1) {\n          tcsetattr(iVar7,0,(termios *)&oldmode);\n          if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }\n          if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }\n          iVar7 = 0;\n          goto LAB_000415aa;\n        }\n        uVar8 = uVar8 + sVar6;\n      } while (pr->result[uVar8 - 1] != '\n');\n      tcsetattr(iVar7,0,(termios *)&oldmode);\n      if (pr->echo == 0) {\n        console_prompt_text((FILE *)local_ac,"\n",1);\n      }\n      local_b8 = local_b8 + 1;\n      pr->result[uVar8 - 1] = '\0';\n    } while (local_b8 < p->n_prompts);\n  }" { (expression_statement "local_b8 = 0;" (assignment_expression "local_b8 = 0" identifier = number_literal) ;) (do_statement "do {\n      pr = p->prompts[local_b8];\n      tcgetattr(iVar7,(termios *)&oldmode);\n      newmode.c_line = oldmode.c_line;\n      newmode.c_cc[0] = oldmode.c_cc[0];\n      newmode.c_cc[1] = oldmode.c_cc[1];\n      newmode.c_cc[2] = oldmode.c_cc[2];\n      newmode.c_iflag = oldmode.c_iflag;\n      newmode.c_cc[3] = oldmode.c_cc[3];\n      newmode.c_cc[4] = oldmode.c_cc[4];\n      newmode.c_cc[5] = oldmode.c_cc[5];\n      newmode.c_cc[6] = oldmode.c_cc[6];\n      newmode.c_oflag = oldmode.c_oflag;\n      newmode.c_cc[7] = oldmode.c_cc[7];\n      newmode.c_cc[8] = oldmode.c_cc[8];\n      newmode.c_cc[9] = oldmode.c_cc[9];\n      newmode.c_cc[10] = oldmode.c_cc[10];\n      newmode.c_cflag = oldmode.c_cflag;\n      newmode.c_cc[0xb] = oldmode.c_cc[0xb];\n      newmode.c_cc[0xc] = oldmode.c_cc[0xc];\n      newmode.c_cc[0xd] = oldmode.c_cc[0xd];\n      newmode.c_cc[0xe] = oldmode.c_cc[0xe];\n      newmode.c_cc[0xf] = oldmode.c_cc[0xf];\n      newmode.c_cc[0x10] = oldmode.c_cc[0x10];\n      newmode.c_cc[0x11] = oldmode.c_cc[0x11];\n      newmode.c_cc[0x12] = oldmode.c_cc[0x12];\n      newmode.c_cc[0x13] = oldmode.c_cc[0x13];\n      newmode.c_cc[0x14] = oldmode.c_cc[0x14];\n      newmode.c_cc[0x15] = oldmode.c_cc[0x15];\n      newmode.c_cc[0x16] = oldmode.c_cc[0x16];\n      newmode.c_cc[0x17] = oldmode.c_cc[0x17];\n      newmode.c_cc[0x18] = oldmode.c_cc[0x18];\n      newmode.c_cc[0x19] = oldmode.c_cc[0x19];\n      newmode.c_cc[0x1a] = oldmode.c_cc[0x1a];\n      newmode.c_cc[0x1b] = oldmode.c_cc[0x1b];\n      newmode.c_cc[0x1c] = oldmode.c_cc[0x1c];\n      newmode.c_cc[0x1d] = oldmode.c_cc[0x1d];\n      newmode.c_cc[0x1e] = oldmode.c_cc[0x1e];\n      newmode.c_cc[0x1f] = oldmode.c_cc[0x1f];\n      newmode._49_3_ = oldmode._49_3_;\n      newmode.c_ispeed = oldmode.c_ispeed;\n      newmode.c_ospeed = oldmode.c_ospeed;\n      newmode.c_lflag = oldmode.c_lflag | 0xb;\n      if (pr->echo == 0) {\n        newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar7,0,(termios *)&newmode);\n      pcVar3 = pr->prompt;\n      sVar5 = strlen(pcVar3);\n      uVar8 = 0;\n      console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n      do {\n        prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200);\n        sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize);\n        if (sVar6 < 1) {\n          tcsetattr(iVar7,0,(termios *)&oldmode);\n          if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }\n          if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }\n          iVar7 = 0;\n          goto LAB_000415aa;\n        }\n        uVar8 = uVar8 + sVar6;\n      } while (pr->result[uVar8 - 1] != '\n');\n      tcsetattr(iVar7,0,(termios *)&oldmode);\n      if (pr->echo == 0) {\n        console_prompt_text((FILE *)local_ac,"\n",1);\n      }\n      local_b8 = local_b8 + 1;\n      pr->result[uVar8 - 1] = '\0';\n    } while (local_b8 < p->n_prompts);" do (compound_statement "{\n      pr = p->prompts[local_b8];\n      tcgetattr(iVar7,(termios *)&oldmode);\n      newmode.c_line = oldmode.c_line;\n      newmode.c_cc[0] = oldmode.c_cc[0];\n      newmode.c_cc[1] = oldmode.c_cc[1];\n      newmode.c_cc[2] = oldmode.c_cc[2];\n      newmode.c_iflag = oldmode.c_iflag;\n      newmode.c_cc[3] = oldmode.c_cc[3];\n      newmode.c_cc[4] = oldmode.c_cc[4];\n      newmode.c_cc[5] = oldmode.c_cc[5];\n      newmode.c_cc[6] = oldmode.c_cc[6];\n      newmode.c_oflag = oldmode.c_oflag;\n      newmode.c_cc[7] = oldmode.c_cc[7];\n      newmode.c_cc[8] = oldmode.c_cc[8];\n      newmode.c_cc[9] = oldmode.c_cc[9];\n      newmode.c_cc[10] = oldmode.c_cc[10];\n      newmode.c_cflag = oldmode.c_cflag;\n      newmode.c_cc[0xb] = oldmode.c_cc[0xb];\n      newmode.c_cc[0xc] = oldmode.c_cc[0xc];\n      newmode.c_cc[0xd] = oldmode.c_cc[0xd];\n      newmode.c_cc[0xe] = oldmode.c_cc[0xe];\n      newmode.c_cc[0xf] = oldmode.c_cc[0xf];\n      newmode.c_cc[0x10] = oldmode.c_cc[0x10];\n      newmode.c_cc[0x11] = oldmode.c_cc[0x11];\n      newmode.c_cc[0x12] = oldmode.c_cc[0x12];\n      newmode.c_cc[0x13] = oldmode.c_cc[0x13];\n      newmode.c_cc[0x14] = oldmode.c_cc[0x14];\n      newmode.c_cc[0x15] = oldmode.c_cc[0x15];\n      newmode.c_cc[0x16] = oldmode.c_cc[0x16];\n      newmode.c_cc[0x17] = oldmode.c_cc[0x17];\n      newmode.c_cc[0x18] = oldmode.c_cc[0x18];\n      newmode.c_cc[0x19] = oldmode.c_cc[0x19];\n      newmode.c_cc[0x1a] = oldmode.c_cc[0x1a];\n      newmode.c_cc[0x1b] = oldmode.c_cc[0x1b];\n      newmode.c_cc[0x1c] = oldmode.c_cc[0x1c];\n      newmode.c_cc[0x1d] = oldmode.c_cc[0x1d];\n      newmode.c_cc[0x1e] = oldmode.c_cc[0x1e];\n      newmode.c_cc[0x1f] = oldmode.c_cc[0x1f];\n      newmode._49_3_ = oldmode._49_3_;\n      newmode.c_ispeed = oldmode.c_ispeed;\n      newmode.c_ospeed = oldmode.c_ospeed;\n      newmode.c_lflag = oldmode.c_lflag | 0xb;\n      if (pr->echo == 0) {\n        newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar7,0,(termios *)&newmode);\n      pcVar3 = pr->prompt;\n      sVar5 = strlen(pcVar3);\n      uVar8 = 0;\n      console_prompt_text((FILE *)local_ac,pcVar3,sVar5);\n      do {\n        prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200);\n        sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize);\n        if (sVar6 < 1) {\n          tcsetattr(iVar7,0,(termios *)&oldmode);\n          if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }\n          if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }\n          iVar7 = 0;\n          goto LAB_000415aa;\n        }\n        uVar8 = uVar8 + sVar6;\n      } while (pr->result[uVar8 - 1] != '\n');\n      tcsetattr(iVar7,0,(termios *)&oldmode);\n      if (pr->echo == 0) {\n        console_prompt_text((FILE *)local_ac,"\n",1);\n      }\n      local_b8 = local_b8 + 1;\n      pr->result[uVar8 - 1] = '\0';\n    }" { (expression_statement "pr = p->prompts[local_b8];" (assignment_expression "pr = p->prompts[local_b8]" identifier = (subscript_expression "p->prompts[local_b8]" (field_expression "p->prompts" identifier -> field_identifier) [ identifier ])) ;) (expression_statement "tcgetattr(iVar7,(termios *)&oldmode);" (call_expression "tcgetattr(iVar7,(termios *)&oldmode)" identifier (argument_list "(iVar7,(termios *)&oldmode)" ( identifier , (cast_expression "(termios *)&oldmode" ( (type_descriptor "termios *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&oldmode" & identifier)) ))) ;) (expression_statement "newmode.c_line = oldmode.c_line;" (assignment_expression "newmode.c_line = oldmode.c_line" (field_expression "newmode.c_line" identifier . field_identifier) = (field_expression "oldmode.c_line" identifier . field_identifier)) ;) (expression_statement "newmode.c_cc[0] = oldmode.c_cc[0];" (assignment_expression "newmode.c_cc[0] = oldmode.c_cc[0]" (subscript_expression "newmode.c_cc[0]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[1] = oldmode.c_cc[1];" (assignment_expression "newmode.c_cc[1] = oldmode.c_cc[1]" (subscript_expression "newmode.c_cc[1]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[1]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[2] = oldmode.c_cc[2];" (assignment_expression "newmode.c_cc[2] = oldmode.c_cc[2]" (subscript_expression "newmode.c_cc[2]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[2]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_iflag = oldmode.c_iflag;" (assignment_expression "newmode.c_iflag = oldmode.c_iflag" (field_expression "newmode.c_iflag" identifier . field_identifier) = (field_expression "oldmode.c_iflag" identifier . field_identifier)) ;) (expression_statement "newmode.c_cc[3] = oldmode.c_cc[3];" (assignment_expression "newmode.c_cc[3] = oldmode.c_cc[3]" (subscript_expression "newmode.c_cc[3]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[3]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[4] = oldmode.c_cc[4];" (assignment_expression "newmode.c_cc[4] = oldmode.c_cc[4]" (subscript_expression "newmode.c_cc[4]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[4]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[5] = oldmode.c_cc[5];" (assignment_expression "newmode.c_cc[5] = oldmode.c_cc[5]" (subscript_expression "newmode.c_cc[5]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[5]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[6] = oldmode.c_cc[6];" (assignment_expression "newmode.c_cc[6] = oldmode.c_cc[6]" (subscript_expression "newmode.c_cc[6]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[6]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_oflag = oldmode.c_oflag;" (assignment_expression "newmode.c_oflag = oldmode.c_oflag" (field_expression "newmode.c_oflag" identifier . field_identifier) = (field_expression "oldmode.c_oflag" identifier . field_identifier)) ;) (expression_statement "newmode.c_cc[7] = oldmode.c_cc[7];" (assignment_expression "newmode.c_cc[7] = oldmode.c_cc[7]" (subscript_expression "newmode.c_cc[7]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[7]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[8] = oldmode.c_cc[8];" (assignment_expression "newmode.c_cc[8] = oldmode.c_cc[8]" (subscript_expression "newmode.c_cc[8]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[8]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[9] = oldmode.c_cc[9];" (assignment_expression "newmode.c_cc[9] = oldmode.c_cc[9]" (subscript_expression "newmode.c_cc[9]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[9]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[10] = oldmode.c_cc[10];" (assignment_expression "newmode.c_cc[10] = oldmode.c_cc[10]" (subscript_expression "newmode.c_cc[10]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[10]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cflag = oldmode.c_cflag;" (assignment_expression "newmode.c_cflag = oldmode.c_cflag" (field_expression "newmode.c_cflag" identifier . field_identifier) = (field_expression "oldmode.c_cflag" identifier . field_identifier)) ;) (expression_statement "newmode.c_cc[0xb] = oldmode.c_cc[0xb];" (assignment_expression "newmode.c_cc[0xb] = oldmode.c_cc[0xb]" (subscript_expression "newmode.c_cc[0xb]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0xb]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0xc] = oldmode.c_cc[0xc];" (assignment_expression "newmode.c_cc[0xc] = oldmode.c_cc[0xc]" (subscript_expression "newmode.c_cc[0xc]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0xc]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0xd] = oldmode.c_cc[0xd];" (assignment_expression "newmode.c_cc[0xd] = oldmode.c_cc[0xd]" (subscript_expression "newmode.c_cc[0xd]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0xd]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0xe] = oldmode.c_cc[0xe];" (assignment_expression "newmode.c_cc[0xe] = oldmode.c_cc[0xe]" (subscript_expression "newmode.c_cc[0xe]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0xe]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0xf] = oldmode.c_cc[0xf];" (assignment_expression "newmode.c_cc[0xf] = oldmode.c_cc[0xf]" (subscript_expression "newmode.c_cc[0xf]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0xf]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x10] = oldmode.c_cc[0x10];" (assignment_expression "newmode.c_cc[0x10] = oldmode.c_cc[0x10]" (subscript_expression "newmode.c_cc[0x10]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x10]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x11] = oldmode.c_cc[0x11];" (assignment_expression "newmode.c_cc[0x11] = oldmode.c_cc[0x11]" (subscript_expression "newmode.c_cc[0x11]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x11]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x12] = oldmode.c_cc[0x12];" (assignment_expression "newmode.c_cc[0x12] = oldmode.c_cc[0x12]" (subscript_expression "newmode.c_cc[0x12]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x12]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x13] = oldmode.c_cc[0x13];" (assignment_expression "newmode.c_cc[0x13] = oldmode.c_cc[0x13]" (subscript_expression "newmode.c_cc[0x13]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x13]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x14] = oldmode.c_cc[0x14];" (assignment_expression "newmode.c_cc[0x14] = oldmode.c_cc[0x14]" (subscript_expression "newmode.c_cc[0x14]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x14]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x15] = oldmode.c_cc[0x15];" (assignment_expression "newmode.c_cc[0x15] = oldmode.c_cc[0x15]" (subscript_expression "newmode.c_cc[0x15]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x15]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x16] = oldmode.c_cc[0x16];" (assignment_expression "newmode.c_cc[0x16] = oldmode.c_cc[0x16]" (subscript_expression "newmode.c_cc[0x16]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x16]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x17] = oldmode.c_cc[0x17];" (assignment_expression "newmode.c_cc[0x17] = oldmode.c_cc[0x17]" (subscript_expression "newmode.c_cc[0x17]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x17]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x18] = oldmode.c_cc[0x18];" (assignment_expression "newmode.c_cc[0x18] = oldmode.c_cc[0x18]" (subscript_expression "newmode.c_cc[0x18]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x18]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x19] = oldmode.c_cc[0x19];" (assignment_expression "newmode.c_cc[0x19] = oldmode.c_cc[0x19]" (subscript_expression "newmode.c_cc[0x19]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x19]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x1a] = oldmode.c_cc[0x1a];" (assignment_expression "newmode.c_cc[0x1a] = oldmode.c_cc[0x1a]" (subscript_expression "newmode.c_cc[0x1a]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x1a]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x1b] = oldmode.c_cc[0x1b];" (assignment_expression "newmode.c_cc[0x1b] = oldmode.c_cc[0x1b]" (subscript_expression "newmode.c_cc[0x1b]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x1b]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x1c] = oldmode.c_cc[0x1c];" (assignment_expression "newmode.c_cc[0x1c] = oldmode.c_cc[0x1c]" (subscript_expression "newmode.c_cc[0x1c]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x1c]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x1d] = oldmode.c_cc[0x1d];" (assignment_expression "newmode.c_cc[0x1d] = oldmode.c_cc[0x1d]" (subscript_expression "newmode.c_cc[0x1d]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x1d]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x1e] = oldmode.c_cc[0x1e];" (assignment_expression "newmode.c_cc[0x1e] = oldmode.c_cc[0x1e]" (subscript_expression "newmode.c_cc[0x1e]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x1e]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode.c_cc[0x1f] = oldmode.c_cc[0x1f];" (assignment_expression "newmode.c_cc[0x1f] = oldmode.c_cc[0x1f]" (subscript_expression "newmode.c_cc[0x1f]" (field_expression "newmode.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "oldmode.c_cc[0x1f]" (field_expression "oldmode.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "newmode._49_3_ = oldmode._49_3_;" (assignment_expression "newmode._49_3_ = oldmode._49_3_" (field_expression "newmode._49_3_" identifier . field_identifier) = (field_expression "oldmode._49_3_" identifier . field_identifier)) ;) (expression_statement "newmode.c_ispeed = oldmode.c_ispeed;" (assignment_expression "newmode.c_ispeed = oldmode.c_ispeed" (field_expression "newmode.c_ispeed" identifier . field_identifier) = (field_expression "oldmode.c_ispeed" identifier . field_identifier)) ;) (expression_statement "newmode.c_ospeed = oldmode.c_ospeed;" (assignment_expression "newmode.c_ospeed = oldmode.c_ospeed" (field_expression "newmode.c_ospeed" identifier . field_identifier) = (field_expression "oldmode.c_ospeed" identifier . field_identifier)) ;) (expression_statement "newmode.c_lflag = oldmode.c_lflag | 0xb;" (assignment_expression "newmode.c_lflag = oldmode.c_lflag | 0xb" (field_expression "newmode.c_lflag" identifier . field_identifier) = (binary_expression "oldmode.c_lflag | 0xb" (field_expression "oldmode.c_lflag" identifier . field_identifier) | number_literal)) ;) (if_statement "if (pr->echo == 0) {\n        newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;\n      }" if (parenthesized_expression "(pr->echo == 0)" ( (binary_expression "pr->echo == 0" (field_expression "pr->echo" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;\n      }" { (expression_statement "newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;" (assignment_expression "newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3" (field_expression "newmode.c_lflag" identifier . field_identifier) = (binary_expression "oldmode.c_lflag & 0xfffffff7 | 3" (binary_expression "oldmode.c_lflag & 0xfffffff7" (field_expression "oldmode.c_lflag" identifier . field_identifier) & number_literal) | number_literal)) ;) })) (expression_statement "tcsetattr(iVar7,0,(termios *)&newmode);" (call_expression "tcsetattr(iVar7,0,(termios *)&newmode)" identifier (argument_list "(iVar7,0,(termios *)&newmode)" ( identifier , number_literal , (cast_expression "(termios *)&newmode" ( (type_descriptor "termios *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&newmode" & identifier)) ))) ;) (expression_statement "pcVar3 = pr->prompt;" (assignment_expression "pcVar3 = pr->prompt" identifier = (field_expression "pr->prompt" identifier -> field_identifier)) ;) (expression_statement "sVar5 = strlen(pcVar3);" (assignment_expression "sVar5 = strlen(pcVar3)" identifier = (call_expression "strlen(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "console_prompt_text((FILE *)local_ac,pcVar3,sVar5);" (call_expression "console_prompt_text((FILE *)local_ac,pcVar3,sVar5)" identifier (argument_list "((FILE *)local_ac,pcVar3,sVar5)" ( (cast_expression "(FILE *)local_ac" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (do_statement "do {\n        prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200);\n        sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize);\n        if (sVar6 < 1) {\n          tcsetattr(iVar7,0,(termios *)&oldmode);\n          if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }\n          if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }\n          iVar7 = 0;\n          goto LAB_000415aa;\n        }\n        uVar8 = uVar8 + sVar6;\n      } while (pr->result[uVar8 - 1] != '\n');" do (compound_statement "{\n        prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200);\n        sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize);\n        if (sVar6 < 1) {\n          tcsetattr(iVar7,0,(termios *)&oldmode);\n          if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }\n          if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }\n          iVar7 = 0;\n          goto LAB_000415aa;\n        }\n        uVar8 = uVar8 + sVar6;\n      }" { (expression_statement "prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200);" (call_expression "prompt_ensure_result_size(pr,((int)(uVar8 * 5) >> 2) + 0x200)" identifier (argument_list "(pr,((int)(uVar8 * 5) >> 2) + 0x200)" ( identifier , (binary_expression "((int)(uVar8 * 5) >> 2) + 0x200" (parenthesized_expression "((int)(uVar8 * 5) >> 2)" ( (binary_expression "(int)(uVar8 * 5) >> 2" (cast_expression "(int)(uVar8 * 5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar8 * 5)" ( (binary_expression "uVar8 * 5" identifier * number_literal) ))) >> number_literal) )) + number_literal) ))) ;) (expression_statement "sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize);" (assignment_expression "sVar6 = read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize)" identifier = (call_expression "read(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize)" identifier (argument_list "(iVar7,pr->result + uVar8,~uVar8 + pr->resultsize)" ( identifier , (binary_expression "pr->result + uVar8" (field_expression "pr->result" identifier -> field_identifier) + identifier) , (binary_expression "~uVar8 + pr->resultsize" (unary_expression "~uVar8" ~ identifier) + (field_expression "pr->resultsize" identifier -> field_identifier)) )))) ;) (if_statement "if (sVar6 < 1) {\n          tcsetattr(iVar7,0,(termios *)&oldmode);\n          if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }\n          if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }\n          iVar7 = 0;\n          goto LAB_000415aa;\n        }" if (parenthesized_expression "(sVar6 < 1)" ( (binary_expression "sVar6 < 1" identifier < number_literal) )) (compound_statement "{\n          tcsetattr(iVar7,0,(termios *)&oldmode);\n          if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }\n          if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }\n          iVar7 = 0;\n          goto LAB_000415aa;\n        }" { (expression_statement "tcsetattr(iVar7,0,(termios *)&oldmode);" (call_expression "tcsetattr(iVar7,0,(termios *)&oldmode)" identifier (argument_list "(iVar7,0,(termios *)&oldmode)" ( identifier , number_literal , (cast_expression "(termios *)&oldmode" ( (type_descriptor "termios *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&oldmode" & identifier)) ))) ;) (if_statement "if (pr->echo == 0) {\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }" if (parenthesized_expression "(pr->echo == 0)" ( (binary_expression "pr->echo == 0" (field_expression "pr->echo" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n            console_prompt_text((FILE *)local_ac,"\n",1);\n          }" { (expression_statement "console_prompt_text((FILE *)local_ac,"\n",1);" (call_expression "console_prompt_text((FILE *)local_ac,"\n",1)" identifier (argument_list "((FILE *)local_ac,"\n",1)" ( (cast_expression "(FILE *)local_ac" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""\n"" " escape_sequence ") , number_literal ))) ;) })) (if_statement "if (*(FILE **)puVar4 != local_ac) {\n            fclose(local_ac);\n          }" if (parenthesized_expression "(*(FILE **)puVar4 != local_ac)" ( (binary_expression "*(FILE **)puVar4 != local_ac" (pointer_expression "*(FILE **)puVar4" * (cast_expression "(FILE **)puVar4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) != identifier) )) (compound_statement "{\n            fclose(local_ac);\n          }" { (expression_statement "fclose(local_ac);" (call_expression "fclose(local_ac)" identifier (argument_list "(local_ac)" ( identifier ))) ;) })) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000415aa;" goto statement_identifier ;) })) (expression_statement "uVar8 = uVar8 + sVar6;" (assignment_expression "uVar8 = uVar8 + sVar6" identifier = (binary_expression "uVar8 + sVar6" identifier + identifier)) ;) }) while (parenthesized_expression "(pr->result[uVar8 - 1] != '\n')" ( (binary_expression "pr->result[uVar8 - 1] != '\n'" (subscript_expression "pr->result[uVar8 - 1]" (field_expression "pr->result" identifier -> field_identifier) [ (binary_expression "uVar8 - 1" identifier - number_literal) ]) != (char_literal "'\n'" ' escape_sequence ')) )) ;) (expression_statement "tcsetattr(iVar7,0,(termios *)&oldmode);" (call_expression "tcsetattr(iVar7,0,(termios *)&oldmode)" identifier (argument_list "(iVar7,0,(termios *)&oldmode)" ( identifier , number_literal , (cast_expression "(termios *)&oldmode" ( (type_descriptor "termios *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&oldmode" & identifier)) ))) ;) (if_statement "if (pr->echo == 0) {\n        console_prompt_text((FILE *)local_ac,"\n",1);\n      }" if (parenthesized_expression "(pr->echo == 0)" ( (binary_expression "pr->echo == 0" (field_expression "pr->echo" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        console_prompt_text((FILE *)local_ac,"\n",1);\n      }" { (expression_statement "console_prompt_text((FILE *)local_ac,"\n",1);" (call_expression "console_prompt_text((FILE *)local_ac,"\n",1)" identifier (argument_list "((FILE *)local_ac,"\n",1)" ( (cast_expression "(FILE *)local_ac" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""\n"" " escape_sequence ") , number_literal ))) ;) })) (expression_statement "local_b8 = local_b8 + 1;" (assignment_expression "local_b8 = local_b8 + 1" identifier = (binary_expression "local_b8 + 1" identifier + number_literal)) ;) (expression_statement "pr->result[uVar8 - 1] = '\0';" (assignment_expression "pr->result[uVar8 - 1] = '\0'" (subscript_expression "pr->result[uVar8 - 1]" (field_expression "pr->result" identifier -> field_identifier) [ (binary_expression "uVar8 - 1" identifier - number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) while (parenthesized_expression "(local_b8 < p->n_prompts)" ( (binary_expression "local_b8 < p->n_prompts" identifier < (field_expression "p->n_prompts" identifier -> field_identifier)) )) ;) })) (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) (if_statement "if (*(FILE **)puVar4 != local_ac) {\n    fclose(local_ac);\n  }" if (parenthesized_expression "(*(FILE **)puVar4 != local_ac)" ( (binary_expression "*(FILE **)puVar4 != local_ac" (pointer_expression "*(FILE **)puVar4" * (cast_expression "(FILE **)puVar4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) != identifier) )) (compound_statement "{\n    fclose(local_ac);\n  }" { (expression_statement "fclose(local_ac);" (call_expression "fclose(local_ac)" identifier (argument_list "(local_ac)" ( identifier ))) ;) })) (labeled_statement "LAB_000415aa:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit "undefined4 FUN_000412b0(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  ssize_t sVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_b8;\n  FILE *local_ac;\n  termios local_98;\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x412b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }\n  iVar3 = open64("/dev/tty",2);\n  if (iVar3 < 0) {\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar3,"w");\n  }\n  puVar2 = PTR_stderr_0006efe0;\n  if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(char **)(param_1 + 0xc) != (char *)0x0) {\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(int *)(param_1 + 0x14) != 0) {\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }\n  uVar6 = 1;\n  if (*(FILE **)puVar2 != local_ac) {\n    fclose(local_ac);\n  }\nLAB_000415aa:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004aab0();\n  }\n  return uVar6;\n}\n\n" (function_definition "undefined4 FUN_000412b0(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  ssize_t sVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_b8;\n  FILE *local_ac;\n  termios local_98;\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x412b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }\n  iVar3 = open64("/dev/tty",2);\n  if (iVar3 < 0) {\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar3,"w");\n  }\n  puVar2 = PTR_stderr_0006efe0;\n  if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(char **)(param_1 + 0xc) != (char *)0x0) {\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(int *)(param_1 + 0x14) != 0) {\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }\n  uVar6 = 1;\n  if (*(FILE **)puVar2 != local_ac) {\n    fclose(local_ac);\n  }\nLAB_000415aa:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004aab0();\n  }\n  return uVar6;\n}" type_identifier (function_declarator "FUN_000412b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  ssize_t sVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_b8;\n  FILE *local_ac;\n  termios local_98;\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x412b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }\n  iVar3 = open64("/dev/tty",2);\n  if (iVar3 < 0) {\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar3,"w");\n  }\n  puVar2 = PTR_stderr_0006efe0;\n  if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(char **)(param_1 + 0xc) != (char *)0x0) {\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(int *)(param_1 + 0x14) != 0) {\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }\n  uVar6 = 1;\n  if (*(FILE **)puVar2 != local_ac) {\n    fclose(local_ac);\n  }\nLAB_000415aa:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004aab0();\n  }\n  return uVar6;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "ssize_t sVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_b8;" type_identifier identifier ;) (declaration "FILE *local_ac;" type_identifier (pointer_declarator "*local_ac" * identifier) ;) (declaration "termios local_98;" type_identifier identifier ;) (declaration "termios local_5c;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x412b9;" (assignment_expression "uStack_14 = 0x412b9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));" do (compound_statement "{\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    }" { (expression_statement "iVar3 = uVar7 * 4;" (assignment_expression "iVar3 = uVar7 * 4" identifier = (binary_expression "uVar7 * 4" identifier * number_literal)) ;) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);" (call_expression "FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd)" identifier (argument_list "(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd)" ( (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + iVar3)" ( (binary_expression "*(int *)(param_1 + 0x18) + iVar3" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + identifier) )))) , (pointer_expression "&DAT_0004bdfd" & identifier) ))) ;) }) while (parenthesized_expression "(uVar7 < *(uint *)(param_1 + 0x14))" ( (binary_expression "uVar7 < *(uint *)(param_1 + 0x14)" identifier < (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) ;) (if_statement "if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;" if (parenthesized_expression "((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0))" ( (binary_expression "(*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)" (parenthesized_expression "(*(uint *)(param_1 + 0x14) != 0)" ( (binary_expression "*(uint *)(param_1 + 0x14) != 0" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(uVar6 = 0, DAT_0006f240 != 0)" ( (comma_expression "uVar6 = 0, DAT_0006f240 != 0" (assignment_expression "uVar6 = 0" identifier = number_literal) , (binary_expression "DAT_0006f240 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000415aa;" goto statement_identifier ;)) })) (expression_statement "iVar3 = open64("/dev/tty",2);" (assignment_expression "iVar3 = open64("/dev/tty",2)" identifier = (call_expression "open64("/dev/tty",2)" identifier (argument_list "("/dev/tty",2)" ( (string_literal ""/dev/tty"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar3 < 0) {\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar3,"w");\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "local_ac = *(FILE **)PTR_stderr_0006efe0;" (assignment_expression "local_ac = *(FILE **)PTR_stderr_0006efe0" identifier = (pointer_expression "*(FILE **)PTR_stderr_0006efe0" * (cast_expression "(FILE **)PTR_stderr_0006efe0" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n    local_ac = fdopen(iVar3,"w");\n  }" else (compound_statement "{\n    local_ac = fdopen(iVar3,"w");\n  }" { (expression_statement "local_ac = fdopen(iVar3,"w");" (assignment_expression "local_ac = fdopen(iVar3,"w")" identifier = (call_expression "fdopen(iVar3,"w")" identifier (argument_list "(iVar3,"w")" ( identifier , (string_literal ""w"" " string_content ") )))) ;) }))) (expression_statement "puVar2 = PTR_stderr_0006efe0;" (assignment_expression "puVar2 = PTR_stderr_0006efe0" identifier = identifier) ;) (if_statement "if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" if (parenthesized_expression "((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0))" ( (binary_expression "(*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)" (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(char **)(param_1 + 4) != (char *)0x0)" ( (binary_expression "*(char **)(param_1 + 4) != (char *)0x0" (pointer_expression "*(char **)(param_1 + 4)" * (cast_expression "(char **)(param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" { (expression_statement "sVar4 = strlen(*(char **)(param_1 + 4));" (assignment_expression "sVar4 = strlen(*(char **)(param_1 + 4))" identifier = (call_expression "strlen(*(char **)(param_1 + 4))" identifier (argument_list "(*(char **)(param_1 + 4))" ( (pointer_expression "*(char **)(param_1 + 4)" * (cast_expression "(char **)(param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n')" ( (binary_expression "*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + -1 + sVar4)" * (cast_expression "(char *)(*(int *)(param_1 + 4) + -1 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + -1 + sVar4)" ( (binary_expression "*(int *)(param_1 + 4) + -1 + sVar4" (binary_expression "*(int *)(param_1 + 4) + -1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) + identifier) )))) != (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_000404f0();\n    }" { (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) })) })) (if_statement "if (*(char **)(param_1 + 0xc) != (char *)0x0) {\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" if (parenthesized_expression "(*(char **)(param_1 + 0xc) != (char *)0x0)" ( (binary_expression "*(char **)(param_1 + 0xc) != (char *)0x0" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" { (expression_statement "sVar4 = strlen(*(char **)(param_1 + 0xc));" (assignment_expression "sVar4 = strlen(*(char **)(param_1 + 0xc))" identifier = (call_expression "strlen(*(char **)(param_1 + 0xc))" identifier (argument_list "(*(char **)(param_1 + 0xc))" ( (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n')" ( (binary_expression "*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n'" (pointer_expression "*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4)" * (cast_expression "(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + -1 + sVar4)" ( (binary_expression "*(int *)(param_1 + 0xc) + -1 + sVar4" (binary_expression "*(int *)(param_1 + 0xc) + -1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) + identifier) )))) != (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_000404f0();\n    }" { (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) })) })) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }" { (expression_statement "local_b8 = 0;" (assignment_expression "local_b8 = 0" identifier = number_literal) ;) (do_statement "do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));" do (compound_statement "{\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    }" { (expression_statement "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4)" * (cast_expression "(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + local_b8 * 4)" ( (binary_expression "*(int *)(param_1 + 0x18) + local_b8 * 4" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + (binary_expression "local_b8 * 4" identifier * number_literal)) ))))) ;) (expression_statement "tcgetattr(iVar3,&local_98);" (call_expression "tcgetattr(iVar3,&local_98)" identifier (argument_list "(iVar3,&local_98)" ( identifier , (pointer_expression "&local_98" & identifier) ))) ;) (expression_statement "local_5c.c_line = local_98.c_line;" (assignment_expression "local_5c.c_line = local_98.c_line" (field_expression "local_5c.c_line" identifier . field_identifier) = (field_expression "local_98.c_line" identifier . field_identifier)) ;) (expression_statement "local_5c.c_cc[0] = local_98.c_cc[0];" (assignment_expression "local_5c.c_cc[0] = local_98.c_cc[0]" (subscript_expression "local_5c.c_cc[0]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[1] = local_98.c_cc[1];" (assignment_expression "local_5c.c_cc[1] = local_98.c_cc[1]" (subscript_expression "local_5c.c_cc[1]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[1]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[2] = local_98.c_cc[2];" (assignment_expression "local_5c.c_cc[2] = local_98.c_cc[2]" (subscript_expression "local_5c.c_cc[2]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[2]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_iflag = local_98.c_iflag;" (assignment_expression "local_5c.c_iflag = local_98.c_iflag" (field_expression "local_5c.c_iflag" identifier . field_identifier) = (field_expression "local_98.c_iflag" identifier . field_identifier)) ;) (expression_statement "local_5c.c_cc[3] = local_98.c_cc[3];" (assignment_expression "local_5c.c_cc[3] = local_98.c_cc[3]" (subscript_expression "local_5c.c_cc[3]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[3]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[4] = local_98.c_cc[4];" (assignment_expression "local_5c.c_cc[4] = local_98.c_cc[4]" (subscript_expression "local_5c.c_cc[4]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[4]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[5] = local_98.c_cc[5];" (assignment_expression "local_5c.c_cc[5] = local_98.c_cc[5]" (subscript_expression "local_5c.c_cc[5]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[5]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[6] = local_98.c_cc[6];" (assignment_expression "local_5c.c_cc[6] = local_98.c_cc[6]" (subscript_expression "local_5c.c_cc[6]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[6]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_oflag = local_98.c_oflag;" (assignment_expression "local_5c.c_oflag = local_98.c_oflag" (field_expression "local_5c.c_oflag" identifier . field_identifier) = (field_expression "local_98.c_oflag" identifier . field_identifier)) ;) (expression_statement "local_5c.c_cc[7] = local_98.c_cc[7];" (assignment_expression "local_5c.c_cc[7] = local_98.c_cc[7]" (subscript_expression "local_5c.c_cc[7]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[7]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[8] = local_98.c_cc[8];" (assignment_expression "local_5c.c_cc[8] = local_98.c_cc[8]" (subscript_expression "local_5c.c_cc[8]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[8]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[9] = local_98.c_cc[9];" (assignment_expression "local_5c.c_cc[9] = local_98.c_cc[9]" (subscript_expression "local_5c.c_cc[9]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[9]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[10] = local_98.c_cc[10];" (assignment_expression "local_5c.c_cc[10] = local_98.c_cc[10]" (subscript_expression "local_5c.c_cc[10]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[10]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cflag = local_98.c_cflag;" (assignment_expression "local_5c.c_cflag = local_98.c_cflag" (field_expression "local_5c.c_cflag" identifier . field_identifier) = (field_expression "local_98.c_cflag" identifier . field_identifier)) ;) (expression_statement "local_5c.c_cc[0xb] = local_98.c_cc[0xb];" (assignment_expression "local_5c.c_cc[0xb] = local_98.c_cc[0xb]" (subscript_expression "local_5c.c_cc[0xb]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0xb]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0xc] = local_98.c_cc[0xc];" (assignment_expression "local_5c.c_cc[0xc] = local_98.c_cc[0xc]" (subscript_expression "local_5c.c_cc[0xc]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0xc]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0xd] = local_98.c_cc[0xd];" (assignment_expression "local_5c.c_cc[0xd] = local_98.c_cc[0xd]" (subscript_expression "local_5c.c_cc[0xd]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0xd]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0xe] = local_98.c_cc[0xe];" (assignment_expression "local_5c.c_cc[0xe] = local_98.c_cc[0xe]" (subscript_expression "local_5c.c_cc[0xe]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0xe]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0xf] = local_98.c_cc[0xf];" (assignment_expression "local_5c.c_cc[0xf] = local_98.c_cc[0xf]" (subscript_expression "local_5c.c_cc[0xf]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0xf]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x10] = local_98.c_cc[0x10];" (assignment_expression "local_5c.c_cc[0x10] = local_98.c_cc[0x10]" (subscript_expression "local_5c.c_cc[0x10]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x10]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x11] = local_98.c_cc[0x11];" (assignment_expression "local_5c.c_cc[0x11] = local_98.c_cc[0x11]" (subscript_expression "local_5c.c_cc[0x11]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x11]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x12] = local_98.c_cc[0x12];" (assignment_expression "local_5c.c_cc[0x12] = local_98.c_cc[0x12]" (subscript_expression "local_5c.c_cc[0x12]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x12]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x13] = local_98.c_cc[0x13];" (assignment_expression "local_5c.c_cc[0x13] = local_98.c_cc[0x13]" (subscript_expression "local_5c.c_cc[0x13]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x13]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x14] = local_98.c_cc[0x14];" (assignment_expression "local_5c.c_cc[0x14] = local_98.c_cc[0x14]" (subscript_expression "local_5c.c_cc[0x14]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x14]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x15] = local_98.c_cc[0x15];" (assignment_expression "local_5c.c_cc[0x15] = local_98.c_cc[0x15]" (subscript_expression "local_5c.c_cc[0x15]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x15]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x16] = local_98.c_cc[0x16];" (assignment_expression "local_5c.c_cc[0x16] = local_98.c_cc[0x16]" (subscript_expression "local_5c.c_cc[0x16]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x16]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x17] = local_98.c_cc[0x17];" (assignment_expression "local_5c.c_cc[0x17] = local_98.c_cc[0x17]" (subscript_expression "local_5c.c_cc[0x17]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x17]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x18] = local_98.c_cc[0x18];" (assignment_expression "local_5c.c_cc[0x18] = local_98.c_cc[0x18]" (subscript_expression "local_5c.c_cc[0x18]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x18]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x19] = local_98.c_cc[0x19];" (assignment_expression "local_5c.c_cc[0x19] = local_98.c_cc[0x19]" (subscript_expression "local_5c.c_cc[0x19]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x19]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];" (assignment_expression "local_5c.c_cc[0x1a] = local_98.c_cc[0x1a]" (subscript_expression "local_5c.c_cc[0x1a]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1a]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];" (assignment_expression "local_5c.c_cc[0x1b] = local_98.c_cc[0x1b]" (subscript_expression "local_5c.c_cc[0x1b]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1b]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];" (assignment_expression "local_5c.c_cc[0x1c] = local_98.c_cc[0x1c]" (subscript_expression "local_5c.c_cc[0x1c]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1c]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];" (assignment_expression "local_5c.c_cc[0x1d] = local_98.c_cc[0x1d]" (subscript_expression "local_5c.c_cc[0x1d]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1d]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];" (assignment_expression "local_5c.c_cc[0x1e] = local_98.c_cc[0x1e]" (subscript_expression "local_5c.c_cc[0x1e]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1e]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];" (assignment_expression "local_5c.c_cc[0x1f] = local_98.c_cc[0x1f]" (subscript_expression "local_5c.c_cc[0x1f]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) = (subscript_expression "local_98.c_cc[0x1f]" (field_expression "local_98.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "local_5c._49_3_ = local_98._49_3_;" (assignment_expression "local_5c._49_3_ = local_98._49_3_" (field_expression "local_5c._49_3_" identifier . field_identifier) = (field_expression "local_98._49_3_" identifier . field_identifier)) ;) (expression_statement "local_5c.c_ispeed = local_98.c_ispeed;" (assignment_expression "local_5c.c_ispeed = local_98.c_ispeed" (field_expression "local_5c.c_ispeed" identifier . field_identifier) = (field_expression "local_98.c_ispeed" identifier . field_identifier)) ;) (expression_statement "local_5c.c_ospeed = local_98.c_ospeed;" (assignment_expression "local_5c.c_ospeed = local_98.c_ospeed" (field_expression "local_5c.c_ospeed" identifier . field_identifier) = (field_expression "local_98.c_ospeed" identifier . field_identifier)) ;) (expression_statement "local_5c.c_lflag = local_98.c_lflag | 0xb;" (assignment_expression "local_5c.c_lflag = local_98.c_lflag | 0xb" (field_expression "local_5c.c_lflag" identifier . field_identifier) = (binary_expression "local_98.c_lflag | 0xb" (field_expression "local_98.c_lflag" identifier . field_identifier) | number_literal)) ;) (if_statement "if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }" if (parenthesized_expression "(puVar1[1] == 0)" ( (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }" { (expression_statement "local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;" (assignment_expression "local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3" (field_expression "local_5c.c_lflag" identifier . field_identifier) = (binary_expression "local_98.c_lflag & 0xfffffff7 | 3" (binary_expression "local_98.c_lflag & 0xfffffff7" (field_expression "local_98.c_lflag" identifier . field_identifier) & number_literal) | number_literal)) ;) })) (expression_statement "tcsetattr(iVar3,0,&local_5c);" (call_expression "tcsetattr(iVar3,0,&local_5c)" identifier (argument_list "(iVar3,0,&local_5c)" ( identifier , number_literal , (pointer_expression "&local_5c" & identifier) ))) ;) (expression_statement "strlen((char *)*puVar1);" (call_expression "strlen((char *)*puVar1)" identifier (argument_list "((char *)*puVar1)" ( (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) ))) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) (do_statement "do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');" do (compound_statement "{\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      }" { (expression_statement "FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);" (call_expression "FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200)" identifier (argument_list "(puVar1,((int)(uVar7 * 5) >> 2) + 0x200)" ( identifier , (binary_expression "((int)(uVar7 * 5) >> 2) + 0x200" (parenthesized_expression "((int)(uVar7 * 5) >> 2)" ( (binary_expression "(int)(uVar7 * 5) >> 2" (cast_expression "(int)(uVar7 * 5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar7 * 5)" ( (binary_expression "uVar7 * 5" identifier * number_literal) ))) >> number_literal) )) + number_literal) ))) ;) (expression_statement "sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);" (assignment_expression "sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3])" identifier = (call_expression "read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3])" identifier (argument_list "(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3])" ( identifier , (cast_expression "(void *)(puVar1[2] + uVar7)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[2] + uVar7)" ( (binary_expression "puVar1[2] + uVar7" (subscript_expression "puVar1[2]" identifier [ number_literal ]) + identifier) ))) , (binary_expression "~uVar7 + puVar1[3]" (unary_expression "~uVar7" ~ identifier) + (subscript_expression "puVar1[3]" identifier [ number_literal ])) )))) ;) (if_statement "if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }" if (parenthesized_expression "(sVar5 < 1)" ( (binary_expression "sVar5 < 1" identifier < number_literal) )) (compound_statement "{\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }" { (expression_statement "tcsetattr(iVar3,0,&local_98);" (call_expression "tcsetattr(iVar3,0,&local_98)" identifier (argument_list "(iVar3,0,&local_98)" ( identifier , number_literal , (pointer_expression "&local_98" & identifier) ))) ;) (if_statement "if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }" if (parenthesized_expression "(puVar1[1] == 0)" ( (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            FUN_000404f0();\n          }" { (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }" if (parenthesized_expression "(*(FILE **)puVar2 != local_ac)" ( (binary_expression "*(FILE **)puVar2 != local_ac" (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) != identifier) )) (compound_statement "{\n            fclose(local_ac);\n          }" { (expression_statement "fclose(local_ac);" (call_expression "fclose(local_ac)" identifier (argument_list "(local_ac)" ( identifier ))) ;) })) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000415aa;" goto statement_identifier ;) })) (expression_statement "uVar7 = uVar7 + sVar5;" (assignment_expression "uVar7 = uVar7 + sVar5" identifier = (binary_expression "uVar7 + sVar5" identifier + identifier)) ;) }) while (parenthesized_expression "(*(char *)(puVar1[2] + -1 + uVar7) != '\n')" ( (binary_expression "*(char *)(puVar1[2] + -1 + uVar7) != '\n'" (pointer_expression "*(char *)(puVar1[2] + -1 + uVar7)" * (cast_expression "(char *)(puVar1[2] + -1 + uVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[2] + -1 + uVar7)" ( (binary_expression "puVar1[2] + -1 + uVar7" (binary_expression "puVar1[2] + -1" (subscript_expression "puVar1[2]" identifier [ number_literal ]) + number_literal) + identifier) )))) != (char_literal "'\n'" ' escape_sequence ')) )) ;) (expression_statement "tcsetattr(iVar3,0,&local_98);" (call_expression "tcsetattr(iVar3,0,&local_98)" identifier (argument_list "(iVar3,0,&local_98)" ( identifier , number_literal , (pointer_expression "&local_98" & identifier) ))) ;) (if_statement "if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }" if (parenthesized_expression "(puVar1[1] == 0)" ( (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        FUN_000404f0();\n      }" { (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_b8 = local_b8 + 1;" (assignment_expression "local_b8 = local_b8 + 1" identifier = (binary_expression "local_b8 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;" (assignment_expression "*(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0" (pointer_expression "*(undefined1 *)(puVar1[2] + (uVar7 - 1))" * (cast_expression "(undefined1 *)(puVar1[2] + (uVar7 - 1))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[2] + (uVar7 - 1))" ( (binary_expression "puVar1[2] + (uVar7 - 1)" (subscript_expression "puVar1[2]" identifier [ number_literal ]) + (parenthesized_expression "(uVar7 - 1)" ( (binary_expression "uVar7 - 1" identifier - number_literal) ))) )))) = number_literal) ;) }) while (parenthesized_expression "(local_b8 < *(uint *)(param_1 + 0x14))" ( (binary_expression "local_b8 < *(uint *)(param_1 + 0x14)" identifier < (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) ;) })) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (if_statement "if (*(FILE **)puVar2 != local_ac) {\n    fclose(local_ac);\n  }" if (parenthesized_expression "(*(FILE **)puVar2 != local_ac)" ( (binary_expression "*(FILE **)puVar2 != local_ac" (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) != identifier) )) (compound_statement "{\n    fclose(local_ac);\n  }" { (expression_statement "fclose(local_ac);" (call_expression "fclose(local_ac)" identifier (argument_list "(local_ac)" ( identifier ))) ;) })) (labeled_statement "LAB_000415aa:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004aab0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004aab0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0004aab0();\n  }" { (expression_statement "FUN_0004aab0();" (call_expression "FUN_0004aab0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) , (pointer_expression & IDENT) ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression IDENT != LIT)) ))) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (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 (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 (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 (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 (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)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (binary_expression (binary_expression (field_expression IDENT . field_identifier) & LIT) | LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT * LIT) ))) >> LIT) )) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) ))) , (binary_expression (unary_expression ~ IDENT) + (subscript_expression IDENT [ LIT ])) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT) )))) != (char_literal ' escape_sequence ')) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (parenthesized_expression ( (binary_expression IDENT - LIT) ))) )))) = LIT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000412b0(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  ssize_t sVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_b8;\n  FILE *local_ac;\n  termios local_98;\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x412b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }\n  iVar3 = open64("/dev/tty",2);\n  if (iVar3 < 0) {\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar3,"w");\n  }\n  puVar2 = PTR_stderr_0006efe0;\n  if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(char **)(param_1 + 0xc) != (char *)0x0) {\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(int *)(param_1 + 0x14) != 0) {\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }\n  uVar6 = 1;\n  if (*(FILE **)puVar2 != local_ac) {\n    fclose(local_ac);\n  }\nLAB_000415aa:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004aab0();\n  }\n  return uVar6;\n}" (type_identifier "undefined4") (function_declarator "FUN_000412b0(int param_1)" (identifier "FUN_000412b0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  ssize_t sVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_b8;\n  FILE *local_ac;\n  termios local_98;\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x412b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }\n  iVar3 = open64("/dev/tty",2);\n  if (iVar3 < 0) {\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar3,"w");\n  }\n  puVar2 = PTR_stderr_0006efe0;\n  if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(char **)(param_1 + 0xc) != (char *)0x0) {\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }\n  if (*(int *)(param_1 + 0x14) != 0) {\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }\n  uVar6 = 1;\n  if (*(FILE **)puVar2 != local_ac) {\n    fclose(local_ac);\n  }\nLAB_000415aa:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004aab0();\n  }\n  return uVar6;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "ssize_t sVar5;" (primitive_type "ssize_t") (identifier "sVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_b8;" (type_identifier "uint") (identifier "local_b8") (; ";")) (declaration "FILE *local_ac;" (type_identifier "FILE") (pointer_declarator "*local_ac" (* "*") (identifier "local_ac")) (; ";")) (declaration "termios local_98;" (type_identifier "termios") (identifier "local_98") (; ";")) (declaration "termios local_5c;" (type_identifier "termios") (identifier "local_5c") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x412b9;" (assignment_expression "uStack_14 = 0x412b9" (identifier "uStack_14") (= "=") (number_literal "0x412b9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar7 = 0;\n    do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));\n    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;\n  }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    } while (uVar7 < *(uint *)(param_1 + 0x14));" (do "do") (compound_statement "{\n      iVar3 = uVar7 * 4;\n      uVar7 = uVar7 + 1;\n      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);\n    }" ({ "{") (expression_statement "iVar3 = uVar7 * 4;" (assignment_expression "iVar3 = uVar7 * 4" (identifier "iVar3") (= "=") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) (; ";")) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);" (call_expression "FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd)" (identifier "FUN_00019c30") (argument_list "(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd)" (( "(") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + iVar3)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + iVar3" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (identifier "iVar3")) () ")")))) (, ",") (pointer_expression "&DAT_0004bdfd" (& "&") (identifier "DAT_0004bdfd")) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 < *(uint *)(param_1 + 0x14))" (( "(") (binary_expression "uVar7 < *(uint *)(param_1 + 0x14)" (identifier "uVar7") (< "<") (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0))" (( "(") (binary_expression "(*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)" (parenthesized_expression "(*(uint *)(param_1 + 0x14) != 0)" (( "(") (binary_expression "*(uint *)(param_1 + 0x14) != 0" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar6 = 0, DAT_0006f240 != 0)" (( "(") (comma_expression "uVar6 = 0, DAT_0006f240 != 0" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (, ",") (binary_expression "DAT_0006f240 != 0" (identifier "DAT_0006f240") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_000415aa;" (goto "goto") (statement_identifier "LAB_000415aa") (; ";"))) (} "}"))) (expression_statement "iVar3 = open64("/dev/tty",2);" (assignment_expression "iVar3 = open64("/dev/tty",2)" (identifier "iVar3") (= "=") (call_expression "open64("/dev/tty",2)" (identifier "open64") (argument_list "("/dev/tty",2)" (( "(") (string_literal ""/dev/tty"" (" """) (string_content "/dev/tty") (" """)) (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if (iVar3 < 0) {\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }\n  else {\n    local_ac = fdopen(iVar3,"w");\n  }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = 0;\n    local_ac = *(FILE **)PTR_stderr_0006efe0;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_ac = *(FILE **)PTR_stderr_0006efe0;" (assignment_expression "local_ac = *(FILE **)PTR_stderr_0006efe0" (identifier "local_ac") (= "=") (pointer_expression "*(FILE **)PTR_stderr_0006efe0" (* "*") (cast_expression "(FILE **)PTR_stderr_0006efe0" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_0006efe0")))) (; ";")) (} "}")) (else_clause "else {\n    local_ac = fdopen(iVar3,"w");\n  }" (else "else") (compound_statement "{\n    local_ac = fdopen(iVar3,"w");\n  }" ({ "{") (expression_statement "local_ac = fdopen(iVar3,"w");" (assignment_expression "local_ac = fdopen(iVar3,"w")" (identifier "local_ac") (= "=") (call_expression "fdopen(iVar3,"w")" (identifier "fdopen") (argument_list "(iVar3,"w")" (( "(") (identifier "iVar3") (, ",") (string_literal ""w"" (" """) (string_content "w") (" """)) () ")")))) (; ";")) (} "}")))) (expression_statement "puVar2 = PTR_stderr_0006efe0;" (assignment_expression "puVar2 = PTR_stderr_0006efe0" (identifier "puVar2") (= "=") (identifier "PTR_stderr_0006efe0")) (; ";")) (if_statement "if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0))" (( "(") (binary_expression "(*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)" (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char **)(param_1 + 4) != (char *)0x0)" (( "(") (binary_expression "*(char **)(param_1 + 4) != (char *)0x0" (pointer_expression "*(char **)(param_1 + 4)" (* "*") (cast_expression "(char **)(param_1 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    sVar4 = strlen(*(char **)(param_1 + 4));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" ({ "{") (expression_statement "sVar4 = strlen(*(char **)(param_1 + 4));" (assignment_expression "sVar4 = strlen(*(char **)(param_1 + 4))" (identifier "sVar4") (= "=") (call_expression "strlen(*(char **)(param_1 + 4))" (identifier "strlen") (argument_list "(*(char **)(param_1 + 4))" (( "(") (pointer_expression "*(char **)(param_1 + 4)" (* "*") (cast_expression "(char **)(param_1 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" (identifier "FUN_000404f0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n')" (( "(") (binary_expression "*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + -1 + sVar4)" (* "*") (cast_expression "(char *)(*(int *)(param_1 + 4) + -1 + sVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + -1 + sVar4)" (( "(") (binary_expression "*(int *)(param_1 + 4) + -1 + sVar4" (binary_expression "*(int *)(param_1 + 4) + -1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "-1")) (+ "+") (identifier "sVar4")) () ")")))) (!= "!=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (compound_statement "{\n      FUN_000404f0();\n    }" ({ "{") (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" (identifier "FUN_000404f0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (*(char **)(param_1 + 0xc) != (char *)0x0) {\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" (if "if") (parenthesized_expression "(*(char **)(param_1 + 0xc) != (char *)0x0)" (( "(") (binary_expression "*(char **)(param_1 + 0xc) != (char *)0x0" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar4 = strlen(*(char **)(param_1 + 0xc));\n    FUN_000404f0();\n    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }\n  }" ({ "{") (expression_statement "sVar4 = strlen(*(char **)(param_1 + 0xc));" (assignment_expression "sVar4 = strlen(*(char **)(param_1 + 0xc))" (identifier "sVar4") (= "=") (call_expression "strlen(*(char **)(param_1 + 0xc))" (identifier "strlen") (argument_list "(*(char **)(param_1 + 0xc))" (( "(") (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" (identifier "FUN_000404f0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {\n      FUN_000404f0();\n    }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n')" (( "(") (binary_expression "*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n'" (pointer_expression "*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4)" (* "*") (cast_expression "(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0xc) + -1 + sVar4)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) + -1 + sVar4" (binary_expression "*(int *)(param_1 + 0xc) + -1" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "-1")) (+ "+") (identifier "sVar4")) () ")")))) (!= "!=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (compound_statement "{\n      FUN_000404f0();\n    }" ({ "{") (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" (identifier "FUN_000404f0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    local_b8 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));\n  }" ({ "{") (expression_statement "local_b8 = 0;" (assignment_expression "local_b8 = 0" (identifier "local_b8") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    } while (local_b8 < *(uint *)(param_1 + 0x14));" (do "do") (compound_statement "{\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);\n      tcgetattr(iVar3,&local_98);\n      local_5c.c_line = local_98.c_line;\n      local_5c.c_cc[0] = local_98.c_cc[0];\n      local_5c.c_cc[1] = local_98.c_cc[1];\n      local_5c.c_cc[2] = local_98.c_cc[2];\n      local_5c.c_iflag = local_98.c_iflag;\n      local_5c.c_cc[3] = local_98.c_cc[3];\n      local_5c.c_cc[4] = local_98.c_cc[4];\n      local_5c.c_cc[5] = local_98.c_cc[5];\n      local_5c.c_cc[6] = local_98.c_cc[6];\n      local_5c.c_oflag = local_98.c_oflag;\n      local_5c.c_cc[7] = local_98.c_cc[7];\n      local_5c.c_cc[8] = local_98.c_cc[8];\n      local_5c.c_cc[9] = local_98.c_cc[9];\n      local_5c.c_cc[10] = local_98.c_cc[10];\n      local_5c.c_cflag = local_98.c_cflag;\n      local_5c.c_cc[0xb] = local_98.c_cc[0xb];\n      local_5c.c_cc[0xc] = local_98.c_cc[0xc];\n      local_5c.c_cc[0xd] = local_98.c_cc[0xd];\n      local_5c.c_cc[0xe] = local_98.c_cc[0xe];\n      local_5c.c_cc[0xf] = local_98.c_cc[0xf];\n      local_5c.c_cc[0x10] = local_98.c_cc[0x10];\n      local_5c.c_cc[0x11] = local_98.c_cc[0x11];\n      local_5c.c_cc[0x12] = local_98.c_cc[0x12];\n      local_5c.c_cc[0x13] = local_98.c_cc[0x13];\n      local_5c.c_cc[0x14] = local_98.c_cc[0x14];\n      local_5c.c_cc[0x15] = local_98.c_cc[0x15];\n      local_5c.c_cc[0x16] = local_98.c_cc[0x16];\n      local_5c.c_cc[0x17] = local_98.c_cc[0x17];\n      local_5c.c_cc[0x18] = local_98.c_cc[0x18];\n      local_5c.c_cc[0x19] = local_98.c_cc[0x19];\n      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];\n      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];\n      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];\n      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];\n      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];\n      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];\n      local_5c._49_3_ = local_98._49_3_;\n      local_5c.c_ispeed = local_98.c_ispeed;\n      local_5c.c_ospeed = local_98.c_ospeed;\n      local_5c.c_lflag = local_98.c_lflag | 0xb;\n      if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }\n      tcsetattr(iVar3,0,&local_5c);\n      strlen((char *)*puVar1);\n      uVar7 = 0;\n      FUN_000404f0();\n      do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');\n      tcsetattr(iVar3,0,&local_98);\n      if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }\n      local_b8 = local_b8 + 1;\n      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;\n    }" ({ "{") (expression_statement "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4)" (* "*") (cast_expression "(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + local_b8 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + local_b8 * 4" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (binary_expression "local_b8 * 4" (identifier "local_b8") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "tcgetattr(iVar3,&local_98);" (call_expression "tcgetattr(iVar3,&local_98)" (identifier "tcgetattr") (argument_list "(iVar3,&local_98)" (( "(") (identifier "iVar3") (, ",") (pointer_expression "&local_98" (& "&") (identifier "local_98")) () ")"))) (; ";")) (expression_statement "local_5c.c_line = local_98.c_line;" (assignment_expression "local_5c.c_line = local_98.c_line" (field_expression "local_5c.c_line" (identifier "local_5c") (. ".") (field_identifier "c_line")) (= "=") (field_expression "local_98.c_line" (identifier "local_98") (. ".") (field_identifier "c_line"))) (; ";")) (expression_statement "local_5c.c_cc[0] = local_98.c_cc[0];" (assignment_expression "local_5c.c_cc[0] = local_98.c_cc[0]" (subscript_expression "local_5c.c_cc[0]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[1] = local_98.c_cc[1];" (assignment_expression "local_5c.c_cc[1] = local_98.c_cc[1]" (subscript_expression "local_5c.c_cc[1]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "local_98.c_cc[1]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[2] = local_98.c_cc[2];" (assignment_expression "local_5c.c_cc[2] = local_98.c_cc[2]" (subscript_expression "local_5c.c_cc[2]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "local_98.c_cc[2]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "local_5c.c_iflag = local_98.c_iflag;" (assignment_expression "local_5c.c_iflag = local_98.c_iflag" (field_expression "local_5c.c_iflag" (identifier "local_5c") (. ".") (field_identifier "c_iflag")) (= "=") (field_expression "local_98.c_iflag" (identifier "local_98") (. ".") (field_identifier "c_iflag"))) (; ";")) (expression_statement "local_5c.c_cc[3] = local_98.c_cc[3];" (assignment_expression "local_5c.c_cc[3] = local_98.c_cc[3]" (subscript_expression "local_5c.c_cc[3]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "local_98.c_cc[3]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[4] = local_98.c_cc[4];" (assignment_expression "local_5c.c_cc[4] = local_98.c_cc[4]" (subscript_expression "local_5c.c_cc[4]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "4") (] "]")) (= "=") (subscript_expression "local_98.c_cc[4]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[5] = local_98.c_cc[5];" (assignment_expression "local_5c.c_cc[5] = local_98.c_cc[5]" (subscript_expression "local_5c.c_cc[5]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "5") (] "]")) (= "=") (subscript_expression "local_98.c_cc[5]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[6] = local_98.c_cc[6];" (assignment_expression "local_5c.c_cc[6] = local_98.c_cc[6]" (subscript_expression "local_5c.c_cc[6]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "6") (] "]")) (= "=") (subscript_expression "local_98.c_cc[6]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "local_5c.c_oflag = local_98.c_oflag;" (assignment_expression "local_5c.c_oflag = local_98.c_oflag" (field_expression "local_5c.c_oflag" (identifier "local_5c") (. ".") (field_identifier "c_oflag")) (= "=") (field_expression "local_98.c_oflag" (identifier "local_98") (. ".") (field_identifier "c_oflag"))) (; ";")) (expression_statement "local_5c.c_cc[7] = local_98.c_cc[7];" (assignment_expression "local_5c.c_cc[7] = local_98.c_cc[7]" (subscript_expression "local_5c.c_cc[7]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "7") (] "]")) (= "=") (subscript_expression "local_98.c_cc[7]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[8] = local_98.c_cc[8];" (assignment_expression "local_5c.c_cc[8] = local_98.c_cc[8]" (subscript_expression "local_5c.c_cc[8]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "8") (] "]")) (= "=") (subscript_expression "local_98.c_cc[8]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[9] = local_98.c_cc[9];" (assignment_expression "local_5c.c_cc[9] = local_98.c_cc[9]" (subscript_expression "local_5c.c_cc[9]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "9") (] "]")) (= "=") (subscript_expression "local_98.c_cc[9]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[10] = local_98.c_cc[10];" (assignment_expression "local_5c.c_cc[10] = local_98.c_cc[10]" (subscript_expression "local_5c.c_cc[10]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "10") (] "]")) (= "=") (subscript_expression "local_98.c_cc[10]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "10") (] "]"))) (; ";")) (expression_statement "local_5c.c_cflag = local_98.c_cflag;" (assignment_expression "local_5c.c_cflag = local_98.c_cflag" (field_expression "local_5c.c_cflag" (identifier "local_5c") (. ".") (field_identifier "c_cflag")) (= "=") (field_expression "local_98.c_cflag" (identifier "local_98") (. ".") (field_identifier "c_cflag"))) (; ";")) (expression_statement "local_5c.c_cc[0xb] = local_98.c_cc[0xb];" (assignment_expression "local_5c.c_cc[0xb] = local_98.c_cc[0xb]" (subscript_expression "local_5c.c_cc[0xb]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xb") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0xb]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xb") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0xc] = local_98.c_cc[0xc];" (assignment_expression "local_5c.c_cc[0xc] = local_98.c_cc[0xc]" (subscript_expression "local_5c.c_cc[0xc]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xc") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0xc]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0xd] = local_98.c_cc[0xd];" (assignment_expression "local_5c.c_cc[0xd] = local_98.c_cc[0xd]" (subscript_expression "local_5c.c_cc[0xd]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xd") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0xd]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xd") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0xe] = local_98.c_cc[0xe];" (assignment_expression "local_5c.c_cc[0xe] = local_98.c_cc[0xe]" (subscript_expression "local_5c.c_cc[0xe]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xe") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0xe]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xe") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0xf] = local_98.c_cc[0xf];" (assignment_expression "local_5c.c_cc[0xf] = local_98.c_cc[0xf]" (subscript_expression "local_5c.c_cc[0xf]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xf") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0xf]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xf") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x10] = local_98.c_cc[0x10];" (assignment_expression "local_5c.c_cc[0x10] = local_98.c_cc[0x10]" (subscript_expression "local_5c.c_cc[0x10]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x10") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x10]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x10") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x11] = local_98.c_cc[0x11];" (assignment_expression "local_5c.c_cc[0x11] = local_98.c_cc[0x11]" (subscript_expression "local_5c.c_cc[0x11]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x11") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x11]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x11") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x12] = local_98.c_cc[0x12];" (assignment_expression "local_5c.c_cc[0x12] = local_98.c_cc[0x12]" (subscript_expression "local_5c.c_cc[0x12]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x12") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x12]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x12") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x13] = local_98.c_cc[0x13];" (assignment_expression "local_5c.c_cc[0x13] = local_98.c_cc[0x13]" (subscript_expression "local_5c.c_cc[0x13]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x13") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x13]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x13") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x14] = local_98.c_cc[0x14];" (assignment_expression "local_5c.c_cc[0x14] = local_98.c_cc[0x14]" (subscript_expression "local_5c.c_cc[0x14]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x14") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x14]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x14") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x15] = local_98.c_cc[0x15];" (assignment_expression "local_5c.c_cc[0x15] = local_98.c_cc[0x15]" (subscript_expression "local_5c.c_cc[0x15]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x15") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x15]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x15") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x16] = local_98.c_cc[0x16];" (assignment_expression "local_5c.c_cc[0x16] = local_98.c_cc[0x16]" (subscript_expression "local_5c.c_cc[0x16]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x16") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x16]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x16") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x17] = local_98.c_cc[0x17];" (assignment_expression "local_5c.c_cc[0x17] = local_98.c_cc[0x17]" (subscript_expression "local_5c.c_cc[0x17]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x17") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x17]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x17") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x18] = local_98.c_cc[0x18];" (assignment_expression "local_5c.c_cc[0x18] = local_98.c_cc[0x18]" (subscript_expression "local_5c.c_cc[0x18]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x18") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x18]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x18") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x19] = local_98.c_cc[0x19];" (assignment_expression "local_5c.c_cc[0x19] = local_98.c_cc[0x19]" (subscript_expression "local_5c.c_cc[0x19]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x19") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x19]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x19") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];" (assignment_expression "local_5c.c_cc[0x1a] = local_98.c_cc[0x1a]" (subscript_expression "local_5c.c_cc[0x1a]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1a") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x1a]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1a") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];" (assignment_expression "local_5c.c_cc[0x1b] = local_98.c_cc[0x1b]" (subscript_expression "local_5c.c_cc[0x1b]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1b") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x1b]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1b") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];" (assignment_expression "local_5c.c_cc[0x1c] = local_98.c_cc[0x1c]" (subscript_expression "local_5c.c_cc[0x1c]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1c") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x1c]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1c") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];" (assignment_expression "local_5c.c_cc[0x1d] = local_98.c_cc[0x1d]" (subscript_expression "local_5c.c_cc[0x1d]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1d") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x1d]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1d") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];" (assignment_expression "local_5c.c_cc[0x1e] = local_98.c_cc[0x1e]" (subscript_expression "local_5c.c_cc[0x1e]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1e") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x1e]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1e") (] "]"))) (; ";")) (expression_statement "local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];" (assignment_expression "local_5c.c_cc[0x1f] = local_98.c_cc[0x1f]" (subscript_expression "local_5c.c_cc[0x1f]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1f") (] "]")) (= "=") (subscript_expression "local_98.c_cc[0x1f]" (field_expression "local_98.c_cc" (identifier "local_98") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0x1f") (] "]"))) (; ";")) (expression_statement "local_5c._49_3_ = local_98._49_3_;" (assignment_expression "local_5c._49_3_ = local_98._49_3_" (field_expression "local_5c._49_3_" (identifier "local_5c") (. ".") (field_identifier "_49_3_")) (= "=") (field_expression "local_98._49_3_" (identifier "local_98") (. ".") (field_identifier "_49_3_"))) (; ";")) (expression_statement "local_5c.c_ispeed = local_98.c_ispeed;" (assignment_expression "local_5c.c_ispeed = local_98.c_ispeed" (field_expression "local_5c.c_ispeed" (identifier "local_5c") (. ".") (field_identifier "c_ispeed")) (= "=") (field_expression "local_98.c_ispeed" (identifier "local_98") (. ".") (field_identifier "c_ispeed"))) (; ";")) (expression_statement "local_5c.c_ospeed = local_98.c_ospeed;" (assignment_expression "local_5c.c_ospeed = local_98.c_ospeed" (field_expression "local_5c.c_ospeed" (identifier "local_5c") (. ".") (field_identifier "c_ospeed")) (= "=") (field_expression "local_98.c_ospeed" (identifier "local_98") (. ".") (field_identifier "c_ospeed"))) (; ";")) (expression_statement "local_5c.c_lflag = local_98.c_lflag | 0xb;" (assignment_expression "local_5c.c_lflag = local_98.c_lflag | 0xb" (field_expression "local_5c.c_lflag" (identifier "local_5c") (. ".") (field_identifier "c_lflag")) (= "=") (binary_expression "local_98.c_lflag | 0xb" (field_expression "local_98.c_lflag" (identifier "local_98") (. ".") (field_identifier "c_lflag")) (| "|") (number_literal "0xb"))) (; ";")) (if_statement "if (puVar1[1] == 0) {\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }" (if "if") (parenthesized_expression "(puVar1[1] == 0)" (( "(") (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;\n      }" ({ "{") (expression_statement "local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;" (assignment_expression "local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3" (field_expression "local_5c.c_lflag" (identifier "local_5c") (. ".") (field_identifier "c_lflag")) (= "=") (binary_expression "local_98.c_lflag & 0xfffffff7 | 3" (binary_expression "local_98.c_lflag & 0xfffffff7" (field_expression "local_98.c_lflag" (identifier "local_98") (. ".") (field_identifier "c_lflag")) (& "&") (number_literal "0xfffffff7")) (| "|") (number_literal "3"))) (; ";")) (} "}"))) (expression_statement "tcsetattr(iVar3,0,&local_5c);" (call_expression "tcsetattr(iVar3,0,&local_5c)" (identifier "tcsetattr") (argument_list "(iVar3,0,&local_5c)" (( "(") (identifier "iVar3") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_5c" (& "&") (identifier "local_5c")) () ")"))) (; ";")) (expression_statement "strlen((char *)*puVar1);" (call_expression "strlen((char *)*puVar1)" (identifier "strlen") (argument_list "((char *)*puVar1)" (( "(") (cast_expression "(char *)*puVar1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) () ")"))) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" (identifier "FUN_000404f0") (argument_list "()" (( "(") () ")"))) (; ";")) (do_statement "do {\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');" (do "do") (compound_statement "{\n        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);\n        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);\n        if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }\n        uVar7 = uVar7 + sVar5;\n      }" ({ "{") (expression_statement "FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);" (call_expression "FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200)" (identifier "FUN_00019c10") (argument_list "(puVar1,((int)(uVar7 * 5) >> 2) + 0x200)" (( "(") (identifier "puVar1") (, ",") (binary_expression "((int)(uVar7 * 5) >> 2) + 0x200" (parenthesized_expression "((int)(uVar7 * 5) >> 2)" (( "(") (binary_expression "(int)(uVar7 * 5) >> 2" (cast_expression "(int)(uVar7 * 5)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar7 * 5)" (( "(") (binary_expression "uVar7 * 5" (identifier "uVar7") (* "*") (number_literal "5")) () ")"))) (>> ">>") (number_literal "2")) () ")")) (+ "+") (number_literal "0x200")) () ")"))) (; ";")) (expression_statement "sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);" (assignment_expression "sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3])" (identifier "sVar5") (= "=") (call_expression "read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3])" (identifier "read") (argument_list "(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3])" (( "(") (identifier "iVar3") (, ",") (cast_expression "(void *)(puVar1[2] + uVar7)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1[2] + uVar7)" (( "(") (binary_expression "puVar1[2] + uVar7" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (+ "+") (identifier "uVar7")) () ")"))) (, ",") (binary_expression "~uVar7 + puVar1[3]" (unary_expression "~uVar7" (~ "~") (identifier "uVar7")) (+ "+") (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]"))) () ")")))) (; ";")) (if_statement "if (sVar5 < 1) {\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }" (if "if") (parenthesized_expression "(sVar5 < 1)" (( "(") (binary_expression "sVar5 < 1" (identifier "sVar5") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n          tcsetattr(iVar3,0,&local_98);\n          if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }\n          if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }\n          uVar6 = 0;\n          goto LAB_000415aa;\n        }" ({ "{") (expression_statement "tcsetattr(iVar3,0,&local_98);" (call_expression "tcsetattr(iVar3,0,&local_98)" (identifier "tcsetattr") (argument_list "(iVar3,0,&local_98)" (( "(") (identifier "iVar3") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_98" (& "&") (identifier "local_98")) () ")"))) (; ";")) (if_statement "if (puVar1[1] == 0) {\n            FUN_000404f0();\n          }" (if "if") (parenthesized_expression "(puVar1[1] == 0)" (( "(") (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_000404f0();\n          }" ({ "{") (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" (identifier "FUN_000404f0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(FILE **)puVar2 != local_ac) {\n            fclose(local_ac);\n          }" (if "if") (parenthesized_expression "(*(FILE **)puVar2 != local_ac)" (( "(") (binary_expression "*(FILE **)puVar2 != local_ac" (pointer_expression "*(FILE **)puVar2" (* "*") (cast_expression "(FILE **)puVar2" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar2"))) (!= "!=") (identifier "local_ac")) () ")")) (compound_statement "{\n            fclose(local_ac);\n          }" ({ "{") (expression_statement "fclose(local_ac);" (call_expression "fclose(local_ac)" (identifier "fclose") (argument_list "(local_ac)" (( "(") (identifier "local_ac") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000415aa;" (goto "goto") (statement_identifier "LAB_000415aa") (; ";")) (} "}"))) (expression_statement "uVar7 = uVar7 + sVar5;" (assignment_expression "uVar7 = uVar7 + sVar5" (identifier "uVar7") (= "=") (binary_expression "uVar7 + sVar5" (identifier "uVar7") (+ "+") (identifier "sVar5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(char *)(puVar1[2] + -1 + uVar7) != '\n')" (( "(") (binary_expression "*(char *)(puVar1[2] + -1 + uVar7) != '\n'" (pointer_expression "*(char *)(puVar1[2] + -1 + uVar7)" (* "*") (cast_expression "(char *)(puVar1[2] + -1 + uVar7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1[2] + -1 + uVar7)" (( "(") (binary_expression "puVar1[2] + -1 + uVar7" (binary_expression "puVar1[2] + -1" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "-1")) (+ "+") (identifier "uVar7")) () ")")))) (!= "!=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (; ";")) (expression_statement "tcsetattr(iVar3,0,&local_98);" (call_expression "tcsetattr(iVar3,0,&local_98)" (identifier "tcsetattr") (argument_list "(iVar3,0,&local_98)" (( "(") (identifier "iVar3") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_98" (& "&") (identifier "local_98")) () ")"))) (; ";")) (if_statement "if (puVar1[1] == 0) {\n        FUN_000404f0();\n      }" (if "if") (parenthesized_expression "(puVar1[1] == 0)" (( "(") (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_000404f0();\n      }" ({ "{") (expression_statement "FUN_000404f0();" (call_expression "FUN_000404f0()" (identifier "FUN_000404f0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "local_b8 = local_b8 + 1;" (assignment_expression "local_b8 = local_b8 + 1" (identifier "local_b8") (= "=") (binary_expression "local_b8 + 1" (identifier "local_b8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;" (assignment_expression "*(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0" (pointer_expression "*(undefined1 *)(puVar1[2] + (uVar7 - 1))" (* "*") (cast_expression "(undefined1 *)(puVar1[2] + (uVar7 - 1))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1[2] + (uVar7 - 1))" (( "(") (binary_expression "puVar1[2] + (uVar7 - 1)" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (+ "+") (parenthesized_expression "(uVar7 - 1)" (( "(") (binary_expression "uVar7 - 1" (identifier "uVar7") (- "-") (number_literal "1")) () ")"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_b8 < *(uint *)(param_1 + 0x14))" (( "(") (binary_expression "local_b8 < *(uint *)(param_1 + 0x14)" (identifier "local_b8") (< "<") (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" (identifier "uVar6") (= "=") (number_literal "1")) (; ";")) (if_statement "if (*(FILE **)puVar2 != local_ac) {\n    fclose(local_ac);\n  }" (if "if") (parenthesized_expression "(*(FILE **)puVar2 != local_ac)" (( "(") (binary_expression "*(FILE **)puVar2 != local_ac" (pointer_expression "*(FILE **)puVar2" (* "*") (cast_expression "(FILE **)puVar2" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar2"))) (!= "!=") (identifier "local_ac")) () ")")) (compound_statement "{\n    fclose(local_ac);\n  }" ({ "{") (expression_statement "fclose(local_ac);" (call_expression "fclose(local_ac)" (identifier "fclose") (argument_list "(local_ac)" (( "(") (identifier "local_ac") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_000415aa:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004aab0();\n  }" (statement_identifier "LAB_000415aa") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004aab0();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0004aab0();\n  }" ({ "{") (expression_statement "FUN_0004aab0();" (call_expression "FUN_0004aab0()" (identifier "FUN_0004aab0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}")))

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

int function_1(type_1 *p,type_2 *in,int inlen)

{
  type_3 **pppVar1;
  int var_20;
  char *var_8;
  type_3 *pr;
  type_4 *puVar4;
  size_t var_11;
  ssize_t var_16;
  int var_6;
  type_5 var_2;
  int var_1;
  type_5 var_19;
  type_6 *var_17;
  type_7 oldmode;
  type_7 newmode;
  
  var_20 = *(int *)(var_1 + 0x14);
  if (p->n_prompts != 0) {
    var_2 = 0;
    do {
      pppVar1 = p->prompts + var_2;
      var_2 = var_2 + 1;
      var_3(*pppVar1,"");
    } while (var_2 < p->n_prompts);
    if ((p->n_prompts != 0) && (var_6 = 0, var_4 != 0)) goto LAB_000415aa;
  }
  var_6 = var_5("/dev/tty",2);
  if (var_6 < 0) {
    var_6 = 0;
    var_17 = *(type_6 **)PTR_stderr_0006efe0;
  }
  else {
    var_17 = var_7(var_6,"w");
  }
  puVar4 = PTR_stderr_0006efe0;
  if ((p->name_reqd != 0) && (var_8 = p->name, var_8 != (char *)0x0)) {
    var_11 = var_9(var_8);
    var_10((type_6 *)var_17,var_8,var_11);
    if (p->name[var_11 - 1] != '\n') {
      var_10((type_6 *)var_17,"\n",1);
    }
  }
  var_8 = p->instruction;
  if (var_8 != (char *)0x0) {
    var_11 = var_9(var_8);
    var_10((type_6 *)var_17,var_8,var_11);
    if (p->instruction[var_11 - 1] != '\n') {
      var_10((type_6 *)var_17,"\n",1);
    }
  }
  if (p->n_prompts != 0) {
    var_19 = 0;
    do {
      pr = p->prompts[var_19];
      var_12(var_6,(type_7 *)&oldmode);
      newmode.c_line = oldmode.c_line;
      newmode.c_cc[0] = oldmode.c_cc[0];
      newmode.c_cc[1] = oldmode.c_cc[1];
      newmode.c_cc[2] = oldmode.c_cc[2];
      newmode.c_iflag = oldmode.c_iflag;
      newmode.c_cc[3] = oldmode.c_cc[3];
      newmode.c_cc[4] = oldmode.c_cc[4];
      newmode.c_cc[5] = oldmode.c_cc[5];
      newmode.c_cc[6] = oldmode.c_cc[6];
      newmode.c_oflag = oldmode.c_oflag;
      newmode.c_cc[7] = oldmode.c_cc[7];
      newmode.c_cc[8] = oldmode.c_cc[8];
      newmode.c_cc[9] = oldmode.c_cc[9];
      newmode.c_cc[10] = oldmode.c_cc[10];
      newmode.c_cflag = oldmode.c_cflag;
      newmode.c_cc[0xb] = oldmode.c_cc[0xb];
      newmode.c_cc[0xc] = oldmode.c_cc[0xc];
      newmode.c_cc[0xd] = oldmode.c_cc[0xd];
      newmode.c_cc[0xe] = oldmode.c_cc[0xe];
      newmode.c_cc[0xf] = oldmode.c_cc[0xf];
      newmode.c_cc[0x10] = oldmode.c_cc[0x10];
      newmode.c_cc[0x11] = oldmode.c_cc[0x11];
      newmode.c_cc[0x12] = oldmode.c_cc[0x12];
      newmode.c_cc[0x13] = oldmode.c_cc[0x13];
      newmode.c_cc[0x14] = oldmode.c_cc[0x14];
      newmode.c_cc[0x15] = oldmode.c_cc[0x15];
      newmode.c_cc[0x16] = oldmode.c_cc[0x16];
      newmode.c_cc[0x17] = oldmode.c_cc[0x17];
      newmode.c_cc[0x18] = oldmode.c_cc[0x18];
      newmode.c_cc[0x19] = oldmode.c_cc[0x19];
      newmode.c_cc[0x1a] = oldmode.c_cc[0x1a];
      newmode.c_cc[0x1b] = oldmode.c_cc[0x1b];
      newmode.c_cc[0x1c] = oldmode.c_cc[0x1c];
      newmode.c_cc[0x1d] = oldmode.c_cc[0x1d];
      newmode.c_cc[0x1e] = oldmode.c_cc[0x1e];
      newmode.c_cc[0x1f] = oldmode.c_cc[0x1f];
      newmode._49_3_ = oldmode._49_3_;
      newmode.c_ispeed = oldmode.c_ispeed;
      newmode.c_ospeed = oldmode.c_ospeed;
      newmode.c_lflag = oldmode.c_lflag | 0xb;
      if (pr->echo == 0) {
        newmode.c_lflag = oldmode.c_lflag & 0xfffffff7 | 3;
      }
      var_13(var_6,0,(type_7 *)&newmode);
      var_8 = pr->prompt;
      var_11 = var_9(var_8);
      var_2 = 0;
      var_10((type_6 *)var_17,var_8,var_11);
      do {
        var_14(pr,((int)(var_2 * 5) >> 2) + 0x200);
        var_16 = var_15(var_6,pr->result + var_2,~var_2 + pr->resultsize);
        if (var_16 < 1) {
          var_13(var_6,0,(type_7 *)&oldmode);
          if (pr->echo == 0) {
            var_10((type_6 *)var_17,"\n",1);
          }
          if (*(type_6 **)puVar4 != var_17) {
            var_18(var_17);
          }
          var_6 = 0;
          goto LAB_000415aa;
        }
        var_2 = var_2 + var_16;
      } while (pr->result[var_2 - 1] != '\n');
      var_13(var_6,0,(type_7 *)&oldmode);
      if (pr->echo == 0) {
        var_10((type_6 *)var_17,"\n",1);
      }
      var_19 = var_19 + 1;
      pr->result[var_2 - 1] = '\0';
    } while (var_19 < p->n_prompts);
  }
  var_6 = 1;
  if (*(type_6 **)puVar4 != var_17) {
    var_18(var_17);
  }
LAB_000415aa:
  if (var_20 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_21();
  }
  return var_6;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (identifier))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (identifier))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (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: (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: (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: (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: (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (binary_expression left: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)) right: (number_literal)))))) (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 (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (binary_expression left: (unary_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (identifier))))) right: (char_literal (escape_sequence))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) right: (number_literal)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

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

undefined4 MASKED(int param_1)

{
  undefined4 *puVar1;
  undefined *puVar2;
  int iVar3;
  size_t sVar4;
  ssize_t sVar5;
  undefined4 uVar6;
  uint uVar7;
  int in_GS_OFFSET;
  uint local_b8;
  FILE *local_ac;
  termios local_98;
  termios local_5c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x412b9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(param_1 + 0x14) != 0) {
    uVar7 = 0;
    do {
      iVar3 = uVar7 * 4;
      uVar7 = uVar7 + 1;
      FUN_00019c30(*(undefined4 *)(*(int *)(param_1 + 0x18) + iVar3),&DAT_0004bdfd);
    } while (uVar7 < *(uint *)(param_1 + 0x14));
    if ((*(uint *)(param_1 + 0x14) != 0) && (uVar6 = 0, DAT_0006f240 != 0)) goto LAB_000415aa;
  }
  iVar3 = open64("/dev/tty",2);
  if (iVar3 < 0) {
    iVar3 = 0;
    local_ac = *(FILE **)PTR_stderr_0006efe0;
  }
  else {
    local_ac = fdopen(iVar3,"w");
  }
  puVar2 = PTR_stderr_0006efe0;
  if ((*(int *)(param_1 + 8) != 0) && (*(char **)(param_1 + 4) != (char *)0x0)) {
    sVar4 = strlen(*(char **)(param_1 + 4));
    FUN_000404f0();
    if (*(char *)(*(int *)(param_1 + 4) + -1 + sVar4) != '\n') {
      FUN_000404f0();
    }
  }
  if (*(char **)(param_1 + 0xc) != (char *)0x0) {
    sVar4 = strlen(*(char **)(param_1 + 0xc));
    FUN_000404f0();
    if (*(char *)(*(int *)(param_1 + 0xc) + -1 + sVar4) != '\n') {
      FUN_000404f0();
    }
  }
  if (*(int *)(param_1 + 0x14) != 0) {
    local_b8 = 0;
    do {
      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + local_b8 * 4);
      tcgetattr(iVar3,&local_98);
      local_5c.c_line = local_98.c_line;
      local_5c.c_cc[0] = local_98.c_cc[0];
      local_5c.c_cc[1] = local_98.c_cc[1];
      local_5c.c_cc[2] = local_98.c_cc[2];
      local_5c.c_iflag = local_98.c_iflag;
      local_5c.c_cc[3] = local_98.c_cc[3];
      local_5c.c_cc[4] = local_98.c_cc[4];
      local_5c.c_cc[5] = local_98.c_cc[5];
      local_5c.c_cc[6] = local_98.c_cc[6];
      local_5c.c_oflag = local_98.c_oflag;
      local_5c.c_cc[7] = local_98.c_cc[7];
      local_5c.c_cc[8] = local_98.c_cc[8];
      local_5c.c_cc[9] = local_98.c_cc[9];
      local_5c.c_cc[10] = local_98.c_cc[10];
      local_5c.c_cflag = local_98.c_cflag;
      local_5c.c_cc[0xb] = local_98.c_cc[0xb];
      local_5c.c_cc[0xc] = local_98.c_cc[0xc];
      local_5c.c_cc[0xd] = local_98.c_cc[0xd];
      local_5c.c_cc[0xe] = local_98.c_cc[0xe];
      local_5c.c_cc[0xf] = local_98.c_cc[0xf];
      local_5c.c_cc[0x10] = local_98.c_cc[0x10];
      local_5c.c_cc[0x11] = local_98.c_cc[0x11];
      local_5c.c_cc[0x12] = local_98.c_cc[0x12];
      local_5c.c_cc[0x13] = local_98.c_cc[0x13];
      local_5c.c_cc[0x14] = local_98.c_cc[0x14];
      local_5c.c_cc[0x15] = local_98.c_cc[0x15];
      local_5c.c_cc[0x16] = local_98.c_cc[0x16];
      local_5c.c_cc[0x17] = local_98.c_cc[0x17];
      local_5c.c_cc[0x18] = local_98.c_cc[0x18];
      local_5c.c_cc[0x19] = local_98.c_cc[0x19];
      local_5c.c_cc[0x1a] = local_98.c_cc[0x1a];
      local_5c.c_cc[0x1b] = local_98.c_cc[0x1b];
      local_5c.c_cc[0x1c] = local_98.c_cc[0x1c];
      local_5c.c_cc[0x1d] = local_98.c_cc[0x1d];
      local_5c.c_cc[0x1e] = local_98.c_cc[0x1e];
      local_5c.c_cc[0x1f] = local_98.c_cc[0x1f];
      local_5c._49_3_ = local_98._49_3_;
      local_5c.c_ispeed = local_98.c_ispeed;
      local_5c.c_ospeed = local_98.c_ospeed;
      local_5c.c_lflag = local_98.c_lflag | 0xb;
      if (puVar1[1] == 0) {
        local_5c.c_lflag = local_98.c_lflag & 0xfffffff7 | 3;
      }
      tcsetattr(iVar3,0,&local_5c);
      strlen((char *)*puVar1);
      uVar7 = 0;
      FUN_000404f0();
      do {
        FUN_00019c10(puVar1,((int)(uVar7 * 5) >> 2) + 0x200);
        sVar5 = read(iVar3,(void *)(puVar1[2] + uVar7),~uVar7 + puVar1[3]);
        if (sVar5 < 1) {
          tcsetattr(iVar3,0,&local_98);
          if (puVar1[1] == 0) {
            FUN_000404f0();
          }
          if (*(FILE **)puVar2 != local_ac) {
            fclose(local_ac);
          }
          uVar6 = 0;
          goto LAB_000415aa;
        }
        uVar7 = uVar7 + sVar5;
      } while (*(char *)(puVar1[2] + -1 + uVar7) != '\n');
      tcsetattr(iVar3,0,&local_98);
      if (puVar1[1] == 0) {
        FUN_000404f0();
      }
      local_b8 = local_b8 + 1;
      *(undefined1 *)(puVar1[2] + (uVar7 - 1)) = 0;
    } while (local_b8 < *(uint *)(param_1 + 0x14));
  }
  uVar6 = 1;
  if (*(FILE **)puVar2 != local_ac) {
    fclose(local_ac);
  }
LAB_000415aa:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0004aab0();
  }
  return uVar6;
}

