
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void put_cur_glyph_and_inc_cursor(void)

{
  uint uVar1;
  long lVar2;
  char *pcVar3;
  lineedit_statics *plVar4;
  wchar_t wVar5;
  size_t sVar6;
  int iVar7;
  wchar_t wc;
  long in_FS_OFFSET;
  bb_mbstate_t mbst;
  char buf [7];
  
  plVar4 = lineedit_ptr_to_statics;
  lVar2 = *(long *)(in_FS_OFFSET + 0x28);
  wc = lineedit_ptr_to_statics->command_ps[lineedit_ptr_to_statics->cursor];
  if (wc == L'\0') {
    wc = L' ';
LAB_0019ed22:
    iVar7 = plVar4->cmdedit_x - plVar4->cmdedit_termw;
    if (unicode_status != '\x02') {
LAB_0019ed9c:
      pcVar3 = stdout->_IO_write_ptr;
      if (pcVar3 < stdout->_IO_write_end) {
        stdout->_IO_write_ptr = pcVar3 + 1;
        *pcVar3 = (char)wc;
      }
      else {
        __overflow(stdout,wc & 0xff);
      }
      goto LAB_0019ed60;
    }
  }
  else {
    lineedit_ptr_to_statics->cursor = lineedit_ptr_to_statics->cursor + 1;
    if (unicode_status != '\x02') {
      uVar1 = plVar4->cmdedit_x + 1;
      plVar4->cmdedit_x = uVar1;
      iVar7 = uVar1 - plVar4->cmdedit_termw;
      goto LAB_0019ed9c;
    }
    uVar1 = plVar4->cmdedit_x + 1;
    plVar4->cmdedit_x = uVar1;
    if (wc < L'̀') {
      wVar5 = bb_wcwidth(wc);
      if (wVar5 != L'\x01') {
        wc = L'?';
      }
      goto LAB_0019ed22;
    }
    iVar7 = uVar1 - plVar4->cmdedit_termw;
    wc = L'?';
  }
  mbst.bogus = '\0';
  sVar6 = bb_wcrtomb(buf,wc,&mbst);
  if (0 < (long)sVar6) {
    buf[sVar6] = '\0';
    fputs_unlocked(buf,stdout);
  }
LAB_0019ed60:
  if (-1 < iVar7) {
    puts("\r");
    plVar4->cmdedit_y = plVar4->cmdedit_y + 1;
    plVar4->cmdedit_x = 0;
  }
  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}



void FUN_0019ecb0(void)

{
  char *pcVar1;
  long lVar2;
  int iVar3;
  long lVar4;
  uint uVar5;
  long in_FS_OFFSET;
  undefined1 local_28;
  char local_27 [7];
  long local_20;
  
  lVar2 = DAT_001c6a00;
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);
  if (uVar5 == 0) {
    uVar5 = 0x20;
LAB_0019ed22:
    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);
    if (DAT_001c6a10 != '\x02') {
LAB_0019ed9c:
      pcVar1 = stdout->_IO_write_ptr;
      if (pcVar1 < stdout->_IO_write_end) {
        stdout->_IO_write_ptr = pcVar1 + 1;
        *pcVar1 = (char)uVar5;
      }
      else {
        __overflow(stdout,uVar5 & 0xff);
      }
      goto LAB_0019ed60;
    }
  }
  else {
    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;
    if (DAT_001c6a10 != '\x02') {
      iVar3 = *(int *)(lVar2 + 0xc) + 1;
      *(int *)(lVar2 + 0xc) = iVar3;
      iVar3 = iVar3 - *(int *)(lVar2 + 8);
      goto LAB_0019ed9c;
    }
    iVar3 = *(int *)(lVar2 + 0xc) + 1;
    *(int *)(lVar2 + 0xc) = iVar3;
    if ((int)uVar5 < 0x300) {
      iVar3 = FUN_001a55ec(uVar5);
      if (iVar3 != 1) {
        uVar5 = 0x3f;
      }
      goto LAB_0019ed22;
    }
    iVar3 = iVar3 - *(int *)(lVar2 + 8);
    uVar5 = 0x3f;
  }
  local_28 = 0;
  lVar4 = FUN_001a5402(local_27,uVar5,&local_28);
  if (0 < lVar4) {
    local_27[lVar4] = '\0';
    fputs_unlocked(local_27,stdout);
  }
LAB_0019ed60:
  if (-1 < iVar3) {
    puts("\r");
    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;
    *(undefined4 *)(lVar2 + 0xc) = 0;
  }
  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}


PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x10
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
MOV RBP,qword ptr [0x001c6a00]
MOV EAX,dword ptr [RBP + 0x18]
MOV ECX,EAX
MOV RDX,qword ptr [RBP + 0x28]
MOV R12D,dword ptr [RDX + RCX*0x4]
TEST R12D,R12D
JZ 0x0019edb8
ADD EAX,0x1
MOV dword ptr [RBP + 0x18],EAX
CMP byte ptr [0x001c6a10],0x2
JNZ 0x0019ed90
MOV EAX,dword ptr [RBP + 0xc]
LEA EBX,[RAX + 0x1]
MOV dword ptr [RBP + 0xc],EBX
CMP R12D,0x2ff
JG 0x0019edd0
MOV EDI,R12D
CALL 0x001a55ec
CMP EAX,0x1
MOV EAX,0x3f
CMOVNZ R12D,EAX
MOV EBX,dword ptr [RBP + 0xc]
SUB EBX,dword ptr [RBP + 0x8]
CMP byte ptr [0x001c6a10],0x2
JNZ 0x0019ed9c
MOV byte ptr [RSP],0x0
MOV RDX,RSP
LEA RDI,[RSP + 0x1]
MOV ESI,R12D
CALL 0x001a5402
TEST RAX,RAX
JLE 0x0019ed60
MOV byte ptr [RSP + RAX*0x1 + 0x1],0x0
LEA RDI,[RSP + 0x1]
MOV RSI,qword ptr [0x001c62a8]
CALL 0x0010b950
TEST EBX,EBX
JS 0x0019ed7b
LEA RDI,[0x1c02d9]
CALL 0x0010b260
ADD dword ptr [RBP + 0x10],0x1
MOV dword ptr [RBP + 0xc],0x0
MOV RAX,qword ptr [RSP + 0x8]
XOR RAX,qword ptr FS:[0x28]
JZ 0x0019edde
CALL 0x0010b500
MOV EAX,dword ptr [RBP + 0xc]
LEA EBX,[RAX + 0x1]
MOV dword ptr [RBP + 0xc],EBX
SUB EBX,dword ptr [RBP + 0x8]
MOV RDI,qword ptr [0x001c62a8]
MOV RAX,qword ptr [RDI + 0x28]
CMP RAX,qword ptr [RDI + 0x30]
JC 0x0019edc3
MOVZX ESI,R12B
CALL 0x0010b5f0
JMP 0x0019ed60
MOV R12D,0x20
JMP 0x0019ed22
LEA RDX,[RAX + 0x1]
MOV qword ptr [RDI + 0x28],RDX
MOV byte ptr [RAX],R12B
JMP 0x0019ed60
SUB EBX,dword ptr [RBP + 0x8]
MOV R12D,0x3f
JMP 0x0019ed31
ADD RSP,0x10
POP RBX
POP RBP
POP R12
RET
(translation_unit "void FUN_0019ecb0(void)\n\n{\n  char *pcVar1;\n  long lVar2;\n  int iVar3;\n  long lVar4;\n  uint uVar5;\n  long in_FS_OFFSET;\n  undefined1 local_28;\n  char local_27 [7];\n  long local_20;\n  \n  lVar2 = DAT_001c6a00;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);\n  if (uVar5 == 0) {\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }\n  local_28 = 0;\n  lVar4 = FUN_001a5402(local_27,uVar5,&local_28);\n  if (0 < lVar4) {\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }\nLAB_0019ed60:\n  if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0019ecb0(void)\n\n{\n  char *pcVar1;\n  long lVar2;\n  int iVar3;\n  long lVar4;\n  uint uVar5;\n  long in_FS_OFFSET;\n  undefined1 local_28;\n  char local_27 [7];\n  long local_20;\n  \n  lVar2 = DAT_001c6a00;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);\n  if (uVar5 == 0) {\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }\n  local_28 = 0;\n  lVar4 = FUN_001a5402(local_27,uVar5,&local_28);\n  if (0 < lVar4) {\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }\nLAB_0019ed60:\n  if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0019ecb0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *pcVar1;\n  long lVar2;\n  int iVar3;\n  long lVar4;\n  uint uVar5;\n  long in_FS_OFFSET;\n  undefined1 local_28;\n  char local_27 [7];\n  long local_20;\n  \n  lVar2 = DAT_001c6a00;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);\n  if (uVar5 == 0) {\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }\n  local_28 = 0;\n  lVar4 = FUN_001a5402(local_27,uVar5,&local_28);\n  if (0 < lVar4) {\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }\nLAB_0019ed60:\n  if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_28;" type_identifier identifier ;) (declaration "char local_27 [7];" primitive_type (array_declarator "local_27 [7]" identifier [ number_literal ]) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = DAT_001c6a00;" (assignment_expression "lVar2 = DAT_001c6a00" identifier = identifier) ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);" (assignment_expression "uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" identifier = (pointer_expression "*(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" * (cast_expression "(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" ( (binary_expression "*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4" (pointer_expression "*(long *)(DAT_001c6a00 + 0x28)" * (cast_expression "(long *)(DAT_001c6a00 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x28)" ( (binary_expression "DAT_001c6a00 + 0x28" identifier + number_literal) )))) + (binary_expression "(ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4" (binary_expression "(ulong)*(uint *)(DAT_001c6a00 + 0x18)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)(DAT_001c6a00 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x18)" ( (binary_expression "DAT_001c6a00 + 0x18" identifier + number_literal) )))) * number_literal)) ))))) ;) (if_statement "if (uVar5 == 0) {\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }" { (expression_statement "uVar5 = 0x20;" (assignment_expression "uVar5 = 0x20" identifier = number_literal) ;) (labeled_statement "LAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);" statement_identifier : (expression_statement "iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);" (assignment_expression "iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8)" identifier = (binary_expression "*(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8)" (pointer_expression "*(int *)(lVar2 + 0xc)" * (cast_expression "(int *)(lVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) - (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))))) ;)) (if_statement "if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }" if (parenthesized_expression "(DAT_001c6a10 != '\x02')" ( (binary_expression "DAT_001c6a10 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }" { (labeled_statement "LAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;" statement_identifier : (expression_statement "pcVar1 = stdout->_IO_write_ptr;" (assignment_expression "pcVar1 = stdout->_IO_write_ptr" identifier = (field_expression "stdout->_IO_write_ptr" identifier -> field_identifier)) ;)) (if_statement "if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }" if (parenthesized_expression "(pcVar1 < stdout->_IO_write_end)" ( (binary_expression "pcVar1 < stdout->_IO_write_end" identifier < (field_expression "stdout->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }" { (expression_statement "stdout->_IO_write_ptr = pcVar1 + 1;" (assignment_expression "stdout->_IO_write_ptr = pcVar1 + 1" (field_expression "stdout->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar1 = (char)uVar5;" (assignment_expression "*pcVar1 = (char)uVar5" (pointer_expression "*pcVar1" * identifier) = (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n        __overflow(stdout,uVar5 & 0xff);\n      }" else (compound_statement "{\n        __overflow(stdout,uVar5 & 0xff);\n      }" { (expression_statement "__overflow(stdout,uVar5 & 0xff);" (call_expression "__overflow(stdout,uVar5 & 0xff)" identifier (argument_list "(stdout,uVar5 & 0xff)" ( identifier , (binary_expression "uVar5 & 0xff" identifier & number_literal) ))) ;) }))) (goto_statement "goto LAB_0019ed60;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }" else (compound_statement "{\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }" { (expression_statement "*(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;" (assignment_expression "*(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1" (pointer_expression "*(uint *)(DAT_001c6a00 + 0x18)" * (cast_expression "(uint *)(DAT_001c6a00 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x18)" ( (binary_expression "DAT_001c6a00 + 0x18" identifier + number_literal) )))) = (binary_expression "*(uint *)(DAT_001c6a00 + 0x18) + 1" (pointer_expression "*(uint *)(DAT_001c6a00 + 0x18)" * (cast_expression "(uint *)(DAT_001c6a00 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x18)" ( (binary_expression "DAT_001c6a00 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }" if (parenthesized_expression "(DAT_001c6a10 != '\x02')" ( (binary_expression "DAT_001c6a10 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }" { (expression_statement "iVar3 = *(int *)(lVar2 + 0xc) + 1;" (assignment_expression "iVar3 = *(int *)(lVar2 + 0xc) + 1" identifier = (binary_expression "*(int *)(lVar2 + 0xc) + 1" (pointer_expression "*(int *)(lVar2 + 0xc)" * (cast_expression "(int *)(lVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(lVar2 + 0xc) = iVar3;" (assignment_expression "*(int *)(lVar2 + 0xc) = iVar3" (pointer_expression "*(int *)(lVar2 + 0xc)" * (cast_expression "(int *)(lVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = iVar3 - *(int *)(lVar2 + 8);" (assignment_expression "iVar3 = iVar3 - *(int *)(lVar2 + 8)" identifier = (binary_expression "iVar3 - *(int *)(lVar2 + 8)" identifier - (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))))) ;) (goto_statement "goto LAB_0019ed9c;" goto statement_identifier ;) })) (expression_statement "iVar3 = *(int *)(lVar2 + 0xc) + 1;" (assignment_expression "iVar3 = *(int *)(lVar2 + 0xc) + 1" identifier = (binary_expression "*(int *)(lVar2 + 0xc) + 1" (pointer_expression "*(int *)(lVar2 + 0xc)" * (cast_expression "(int *)(lVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(lVar2 + 0xc) = iVar3;" (assignment_expression "*(int *)(lVar2 + 0xc) = iVar3" (pointer_expression "*(int *)(lVar2 + 0xc)" * (cast_expression "(int *)(lVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }" if (parenthesized_expression "((int)uVar5 < 0x300)" ( (binary_expression "(int)uVar5 < 0x300" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }" { (expression_statement "iVar3 = FUN_001a55ec(uVar5);" (assignment_expression "iVar3 = FUN_001a55ec(uVar5)" identifier = (call_expression "FUN_001a55ec(uVar5)" identifier (argument_list "(uVar5)" ( identifier )))) ;) (if_statement "if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }" if (parenthesized_expression "(iVar3 != 1)" ( (binary_expression "iVar3 != 1" identifier != number_literal) )) (compound_statement "{\n        uVar5 = 0x3f;\n      }" { (expression_statement "uVar5 = 0x3f;" (assignment_expression "uVar5 = 0x3f" identifier = number_literal) ;) })) (goto_statement "goto LAB_0019ed22;" goto statement_identifier ;) })) (expression_statement "iVar3 = iVar3 - *(int *)(lVar2 + 8);" (assignment_expression "iVar3 = iVar3 - *(int *)(lVar2 + 8)" identifier = (binary_expression "iVar3 - *(int *)(lVar2 + 8)" identifier - (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))))) ;) (expression_statement "uVar5 = 0x3f;" (assignment_expression "uVar5 = 0x3f" identifier = number_literal) ;) }))) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "lVar4 = FUN_001a5402(local_27,uVar5,&local_28);" (assignment_expression "lVar4 = FUN_001a5402(local_27,uVar5,&local_28)" identifier = (call_expression "FUN_001a5402(local_27,uVar5,&local_28)" identifier (argument_list "(local_27,uVar5,&local_28)" ( identifier , identifier , (pointer_expression "&local_28" & identifier) )))) ;) (if_statement "if (0 < lVar4) {\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }" if (parenthesized_expression "(0 < lVar4)" ( (binary_expression "0 < lVar4" number_literal < identifier) )) (compound_statement "{\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }" { (expression_statement "local_27[lVar4] = '\0';" (assignment_expression "local_27[lVar4] = '\0'" (subscript_expression "local_27[lVar4]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "fputs_unlocked(local_27,stdout);" (call_expression "fputs_unlocked(local_27,stdout)" identifier (argument_list "(local_27,stdout)" ( identifier , identifier ))) ;) })) (labeled_statement "LAB_0019ed60:\n  if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }" statement_identifier : (if_statement "if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }" { (expression_statement "puts("\r");" (call_expression "puts("\r")" identifier (argument_list "("\r")" ( (string_literal ""\r"" " escape_sequence ") ))) ;) (expression_statement "*(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;" (assignment_expression "*(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1" (pointer_expression "*(int *)(lVar2 + 0x10)" * (cast_expression "(int *)(lVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 0x10) + 1" (pointer_expression "*(int *)(lVar2 + 0x10)" * (cast_expression "(int *)(lVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(undefined4 *)(lVar2 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(lVar2 + 0xc) = 0" (pointer_expression "*(undefined4 *)(lVar2 + 0xc)" * (cast_expression "(undefined4 *)(lVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) = number_literal) ;) }))) (if_statement "if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_20 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid put_cur_glyph_and_inc_cursor(void)\n\n{\n  uint uVar1;\n  long lVar2;\n  char *pcVar3;\n  lineedit_statics *plVar4;\n  wchar_t wVar5;\n  size_t sVar6;\n  int iVar7;\n  wchar_t wc;\n  long in_FS_OFFSET;\n  bb_mbstate_t mbst;\n  char buf [7];\n  \n  plVar4 = lineedit_ptr_to_statics;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  wc = lineedit_ptr_to_statics->command_ps[lineedit_ptr_to_statics->cursor];\n  if (wc == L'\0') {\n    wc = L' ';\nLAB_0019ed22:\n    iVar7 = plVar4->cmdedit_x - plVar4->cmdedit_termw;\n    if (unicode_status != '\x02') {\nLAB_0019ed9c:\n      pcVar3 = stdout->_IO_write_ptr;\n      if (pcVar3 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)wc;\n      }\n      else {\n        __overflow(stdout,wc & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    lineedit_ptr_to_statics->cursor = lineedit_ptr_to_statics->cursor + 1;\n    if (unicode_status != '\x02') {\n      uVar1 = plVar4->cmdedit_x + 1;\n      plVar4->cmdedit_x = uVar1;\n      iVar7 = uVar1 - plVar4->cmdedit_termw;\n      goto LAB_0019ed9c;\n    }\n    uVar1 = plVar4->cmdedit_x + 1;\n    plVar4->cmdedit_x = uVar1;\n    if (wc < L'̀') {\n      wVar5 = bb_wcwidth(wc);\n      if (wVar5 != L'\x01') {\n        wc = L'?';\n      }\n      goto LAB_0019ed22;\n    }\n    iVar7 = uVar1 - plVar4->cmdedit_termw;\n    wc = L'?';\n  }\n  mbst.bogus = '\0';\n  sVar6 = bb_wcrtomb(buf,wc,&mbst);\n  if (0 < (long)sVar6) {\n    buf[sVar6] = '\0';\n    fputs_unlocked(buf,stdout);\n  }\nLAB_0019ed60:\n  if (-1 < iVar7) {\n    puts("\r");\n    plVar4->cmdedit_y = plVar4->cmdedit_y + 1;\n    plVar4->cmdedit_x = 0;\n  }\n  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" comment (function_definition "void put_cur_glyph_and_inc_cursor(void)\n\n{\n  uint uVar1;\n  long lVar2;\n  char *pcVar3;\n  lineedit_statics *plVar4;\n  wchar_t wVar5;\n  size_t sVar6;\n  int iVar7;\n  wchar_t wc;\n  long in_FS_OFFSET;\n  bb_mbstate_t mbst;\n  char buf [7];\n  \n  plVar4 = lineedit_ptr_to_statics;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  wc = lineedit_ptr_to_statics->command_ps[lineedit_ptr_to_statics->cursor];\n  if (wc == L'\0') {\n    wc = L' ';\nLAB_0019ed22:\n    iVar7 = plVar4->cmdedit_x - plVar4->cmdedit_termw;\n    if (unicode_status != '\x02') {\nLAB_0019ed9c:\n      pcVar3 = stdout->_IO_write_ptr;\n      if (pcVar3 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)wc;\n      }\n      else {\n        __overflow(stdout,wc & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    lineedit_ptr_to_statics->cursor = lineedit_ptr_to_statics->cursor + 1;\n    if (unicode_status != '\x02') {\n      uVar1 = plVar4->cmdedit_x + 1;\n      plVar4->cmdedit_x = uVar1;\n      iVar7 = uVar1 - plVar4->cmdedit_termw;\n      goto LAB_0019ed9c;\n    }\n    uVar1 = plVar4->cmdedit_x + 1;\n    plVar4->cmdedit_x = uVar1;\n    if (wc < L'̀') {\n      wVar5 = bb_wcwidth(wc);\n      if (wVar5 != L'\x01') {\n        wc = L'?';\n      }\n      goto LAB_0019ed22;\n    }\n    iVar7 = uVar1 - plVar4->cmdedit_termw;\n    wc = L'?';\n  }\n  mbst.bogus = '\0';\n  sVar6 = bb_wcrtomb(buf,wc,&mbst);\n  if (0 < (long)sVar6) {\n    buf[sVar6] = '\0';\n    fputs_unlocked(buf,stdout);\n  }\nLAB_0019ed60:\n  if (-1 < iVar7) {\n    puts("\r");\n    plVar4->cmdedit_y = plVar4->cmdedit_y + 1;\n    plVar4->cmdedit_x = 0;\n  }\n  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "put_cur_glyph_and_inc_cursor(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  long lVar2;\n  char *pcVar3;\n  lineedit_statics *plVar4;\n  wchar_t wVar5;\n  size_t sVar6;\n  int iVar7;\n  wchar_t wc;\n  long in_FS_OFFSET;\n  bb_mbstate_t mbst;\n  char buf [7];\n  \n  plVar4 = lineedit_ptr_to_statics;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  wc = lineedit_ptr_to_statics->command_ps[lineedit_ptr_to_statics->cursor];\n  if (wc == L'\0') {\n    wc = L' ';\nLAB_0019ed22:\n    iVar7 = plVar4->cmdedit_x - plVar4->cmdedit_termw;\n    if (unicode_status != '\x02') {\nLAB_0019ed9c:\n      pcVar3 = stdout->_IO_write_ptr;\n      if (pcVar3 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)wc;\n      }\n      else {\n        __overflow(stdout,wc & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    lineedit_ptr_to_statics->cursor = lineedit_ptr_to_statics->cursor + 1;\n    if (unicode_status != '\x02') {\n      uVar1 = plVar4->cmdedit_x + 1;\n      plVar4->cmdedit_x = uVar1;\n      iVar7 = uVar1 - plVar4->cmdedit_termw;\n      goto LAB_0019ed9c;\n    }\n    uVar1 = plVar4->cmdedit_x + 1;\n    plVar4->cmdedit_x = uVar1;\n    if (wc < L'̀') {\n      wVar5 = bb_wcwidth(wc);\n      if (wVar5 != L'\x01') {\n        wc = L'?';\n      }\n      goto LAB_0019ed22;\n    }\n    iVar7 = uVar1 - plVar4->cmdedit_termw;\n    wc = L'?';\n  }\n  mbst.bogus = '\0';\n  sVar6 = bb_wcrtomb(buf,wc,&mbst);\n  if (0 < (long)sVar6) {\n    buf[sVar6] = '\0';\n    fputs_unlocked(buf,stdout);\n  }\nLAB_0019ed60:\n  if (-1 < iVar7) {\n    puts("\r");\n    plVar4->cmdedit_y = plVar4->cmdedit_y + 1;\n    plVar4->cmdedit_x = 0;\n  }\n  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "lineedit_statics *plVar4;" type_identifier (pointer_declarator "*plVar4" * identifier) ;) (declaration "wchar_t wVar5;" type_identifier identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "wchar_t wc;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bb_mbstate_t mbst;" type_identifier identifier ;) (declaration "char buf [7];" primitive_type (array_declarator "buf [7]" identifier [ number_literal ]) ;) (expression_statement "plVar4 = lineedit_ptr_to_statics;" (assignment_expression "plVar4 = lineedit_ptr_to_statics" identifier = identifier) ;) (expression_statement "lVar2 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar2 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "wc = lineedit_ptr_to_statics->command_ps[lineedit_ptr_to_statics->cursor];" (assignment_expression "wc = lineedit_ptr_to_statics->command_ps[lineedit_ptr_to_statics->cursor]" identifier = (subscript_expression "lineedit_ptr_to_statics->command_ps[lineedit_ptr_to_statics->cursor]" (field_expression "lineedit_ptr_to_statics->command_ps" identifier -> field_identifier) [ (field_expression "lineedit_ptr_to_statics->cursor" identifier -> field_identifier) ])) ;) (if_statement "if (wc == L'\0') {\n    wc = L' ';\nLAB_0019ed22:\n    iVar7 = plVar4->cmdedit_x - plVar4->cmdedit_termw;\n    if (unicode_status != '\x02') {\nLAB_0019ed9c:\n      pcVar3 = stdout->_IO_write_ptr;\n      if (pcVar3 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)wc;\n      }\n      else {\n        __overflow(stdout,wc & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    lineedit_ptr_to_statics->cursor = lineedit_ptr_to_statics->cursor + 1;\n    if (unicode_status != '\x02') {\n      uVar1 = plVar4->cmdedit_x + 1;\n      plVar4->cmdedit_x = uVar1;\n      iVar7 = uVar1 - plVar4->cmdedit_termw;\n      goto LAB_0019ed9c;\n    }\n    uVar1 = plVar4->cmdedit_x + 1;\n    plVar4->cmdedit_x = uVar1;\n    if (wc < L'̀') {\n      wVar5 = bb_wcwidth(wc);\n      if (wVar5 != L'\x01') {\n        wc = L'?';\n      }\n      goto LAB_0019ed22;\n    }\n    iVar7 = uVar1 - plVar4->cmdedit_termw;\n    wc = L'?';\n  }" if (parenthesized_expression "(wc == L'\0')" ( (binary_expression "wc == L'\0'" identifier == (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n    wc = L' ';\nLAB_0019ed22:\n    iVar7 = plVar4->cmdedit_x - plVar4->cmdedit_termw;\n    if (unicode_status != '\x02') {\nLAB_0019ed9c:\n      pcVar3 = stdout->_IO_write_ptr;\n      if (pcVar3 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)wc;\n      }\n      else {\n        __overflow(stdout,wc & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }" { (expression_statement "wc = L' ';" (assignment_expression "wc = L' '" identifier = (char_literal "L' '" L' character ')) ;) (labeled_statement "LAB_0019ed22:\n    iVar7 = plVar4->cmdedit_x - plVar4->cmdedit_termw;" statement_identifier : (expression_statement "iVar7 = plVar4->cmdedit_x - plVar4->cmdedit_termw;" (assignment_expression "iVar7 = plVar4->cmdedit_x - plVar4->cmdedit_termw" identifier = (binary_expression "plVar4->cmdedit_x - plVar4->cmdedit_termw" (field_expression "plVar4->cmdedit_x" identifier -> field_identifier) - (field_expression "plVar4->cmdedit_termw" identifier -> field_identifier))) ;)) (if_statement "if (unicode_status != '\x02') {\nLAB_0019ed9c:\n      pcVar3 = stdout->_IO_write_ptr;\n      if (pcVar3 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)wc;\n      }\n      else {\n        __overflow(stdout,wc & 0xff);\n      }\n      goto LAB_0019ed60;\n    }" if (parenthesized_expression "(unicode_status != '\x02')" ( (binary_expression "unicode_status != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0019ed9c:\n      pcVar3 = stdout->_IO_write_ptr;\n      if (pcVar3 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)wc;\n      }\n      else {\n        __overflow(stdout,wc & 0xff);\n      }\n      goto LAB_0019ed60;\n    }" { (labeled_statement "LAB_0019ed9c:\n      pcVar3 = stdout->_IO_write_ptr;" statement_identifier : (expression_statement "pcVar3 = stdout->_IO_write_ptr;" (assignment_expression "pcVar3 = stdout->_IO_write_ptr" identifier = (field_expression "stdout->_IO_write_ptr" identifier -> field_identifier)) ;)) (if_statement "if (pcVar3 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)wc;\n      }\n      else {\n        __overflow(stdout,wc & 0xff);\n      }" if (parenthesized_expression "(pcVar3 < stdout->_IO_write_end)" ( (binary_expression "pcVar3 < stdout->_IO_write_end" identifier < (field_expression "stdout->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        stdout->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)wc;\n      }" { (expression_statement "stdout->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "stdout->_IO_write_ptr = pcVar3 + 1" (field_expression "stdout->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)wc;" (assignment_expression "*pcVar3 = (char)wc" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)wc" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n        __overflow(stdout,wc & 0xff);\n      }" else (compound_statement "{\n        __overflow(stdout,wc & 0xff);\n      }" { (expression_statement "__overflow(stdout,wc & 0xff);" (call_expression "__overflow(stdout,wc & 0xff)" identifier (argument_list "(stdout,wc & 0xff)" ( identifier , (binary_expression "wc & 0xff" identifier & number_literal) ))) ;) }))) (goto_statement "goto LAB_0019ed60;" goto statement_identifier ;) })) }) (else_clause "else {\n    lineedit_ptr_to_statics->cursor = lineedit_ptr_to_statics->cursor + 1;\n    if (unicode_status != '\x02') {\n      uVar1 = plVar4->cmdedit_x + 1;\n      plVar4->cmdedit_x = uVar1;\n      iVar7 = uVar1 - plVar4->cmdedit_termw;\n      goto LAB_0019ed9c;\n    }\n    uVar1 = plVar4->cmdedit_x + 1;\n    plVar4->cmdedit_x = uVar1;\n    if (wc < L'̀') {\n      wVar5 = bb_wcwidth(wc);\n      if (wVar5 != L'\x01') {\n        wc = L'?';\n      }\n      goto LAB_0019ed22;\n    }\n    iVar7 = uVar1 - plVar4->cmdedit_termw;\n    wc = L'?';\n  }" else (compound_statement "{\n    lineedit_ptr_to_statics->cursor = lineedit_ptr_to_statics->cursor + 1;\n    if (unicode_status != '\x02') {\n      uVar1 = plVar4->cmdedit_x + 1;\n      plVar4->cmdedit_x = uVar1;\n      iVar7 = uVar1 - plVar4->cmdedit_termw;\n      goto LAB_0019ed9c;\n    }\n    uVar1 = plVar4->cmdedit_x + 1;\n    plVar4->cmdedit_x = uVar1;\n    if (wc < L'̀') {\n      wVar5 = bb_wcwidth(wc);\n      if (wVar5 != L'\x01') {\n        wc = L'?';\n      }\n      goto LAB_0019ed22;\n    }\n    iVar7 = uVar1 - plVar4->cmdedit_termw;\n    wc = L'?';\n  }" { (expression_statement "lineedit_ptr_to_statics->cursor = lineedit_ptr_to_statics->cursor + 1;" (assignment_expression "lineedit_ptr_to_statics->cursor = lineedit_ptr_to_statics->cursor + 1" (field_expression "lineedit_ptr_to_statics->cursor" identifier -> field_identifier) = (binary_expression "lineedit_ptr_to_statics->cursor + 1" (field_expression "lineedit_ptr_to_statics->cursor" identifier -> field_identifier) + number_literal)) ;) (if_statement "if (unicode_status != '\x02') {\n      uVar1 = plVar4->cmdedit_x + 1;\n      plVar4->cmdedit_x = uVar1;\n      iVar7 = uVar1 - plVar4->cmdedit_termw;\n      goto LAB_0019ed9c;\n    }" if (parenthesized_expression "(unicode_status != '\x02')" ( (binary_expression "unicode_status != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      uVar1 = plVar4->cmdedit_x + 1;\n      plVar4->cmdedit_x = uVar1;\n      iVar7 = uVar1 - plVar4->cmdedit_termw;\n      goto LAB_0019ed9c;\n    }" { (expression_statement "uVar1 = plVar4->cmdedit_x + 1;" (assignment_expression "uVar1 = plVar4->cmdedit_x + 1" identifier = (binary_expression "plVar4->cmdedit_x + 1" (field_expression "plVar4->cmdedit_x" identifier -> field_identifier) + number_literal)) ;) (expression_statement "plVar4->cmdedit_x = uVar1;" (assignment_expression "plVar4->cmdedit_x = uVar1" (field_expression "plVar4->cmdedit_x" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar7 = uVar1 - plVar4->cmdedit_termw;" (assignment_expression "iVar7 = uVar1 - plVar4->cmdedit_termw" identifier = (binary_expression "uVar1 - plVar4->cmdedit_termw" identifier - (field_expression "plVar4->cmdedit_termw" identifier -> field_identifier))) ;) (goto_statement "goto LAB_0019ed9c;" goto statement_identifier ;) })) (expression_statement "uVar1 = plVar4->cmdedit_x + 1;" (assignment_expression "uVar1 = plVar4->cmdedit_x + 1" identifier = (binary_expression "plVar4->cmdedit_x + 1" (field_expression "plVar4->cmdedit_x" identifier -> field_identifier) + number_literal)) ;) (expression_statement "plVar4->cmdedit_x = uVar1;" (assignment_expression "plVar4->cmdedit_x = uVar1" (field_expression "plVar4->cmdedit_x" identifier -> field_identifier) = identifier) ;) (if_statement "if (wc < L'̀') {\n      wVar5 = bb_wcwidth(wc);\n      if (wVar5 != L'\x01') {\n        wc = L'?';\n      }\n      goto LAB_0019ed22;\n    }" if (parenthesized_expression "(wc < L'̀')" ( (binary_expression "wc < L'̀'" identifier < (char_literal "L'̀'" L' character ')) )) (compound_statement "{\n      wVar5 = bb_wcwidth(wc);\n      if (wVar5 != L'\x01') {\n        wc = L'?';\n      }\n      goto LAB_0019ed22;\n    }" { (expression_statement "wVar5 = bb_wcwidth(wc);" (assignment_expression "wVar5 = bb_wcwidth(wc)" identifier = (call_expression "bb_wcwidth(wc)" identifier (argument_list "(wc)" ( identifier )))) ;) (if_statement "if (wVar5 != L'\x01') {\n        wc = L'?';\n      }" if (parenthesized_expression "(wVar5 != L'\x01')" ( (binary_expression "wVar5 != L'\x01'" identifier != (char_literal "L'\x01'" L' escape_sequence ')) )) (compound_statement "{\n        wc = L'?';\n      }" { (expression_statement "wc = L'?';" (assignment_expression "wc = L'?'" identifier = (char_literal "L'?'" L' character ')) ;) })) (goto_statement "goto LAB_0019ed22;" goto statement_identifier ;) })) (expression_statement "iVar7 = uVar1 - plVar4->cmdedit_termw;" (assignment_expression "iVar7 = uVar1 - plVar4->cmdedit_termw" identifier = (binary_expression "uVar1 - plVar4->cmdedit_termw" identifier - (field_expression "plVar4->cmdedit_termw" identifier -> field_identifier))) ;) (expression_statement "wc = L'?';" (assignment_expression "wc = L'?'" identifier = (char_literal "L'?'" L' character ')) ;) }))) (expression_statement "mbst.bogus = '\0';" (assignment_expression "mbst.bogus = '\0'" (field_expression "mbst.bogus" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "sVar6 = bb_wcrtomb(buf,wc,&mbst);" (assignment_expression "sVar6 = bb_wcrtomb(buf,wc,&mbst)" identifier = (call_expression "bb_wcrtomb(buf,wc,&mbst)" identifier (argument_list "(buf,wc,&mbst)" ( identifier , identifier , (pointer_expression "&mbst" & identifier) )))) ;) (if_statement "if (0 < (long)sVar6) {\n    buf[sVar6] = '\0';\n    fputs_unlocked(buf,stdout);\n  }" if (parenthesized_expression "(0 < (long)sVar6)" ( (binary_expression "0 < (long)sVar6" number_literal < (cast_expression "(long)sVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )) (compound_statement "{\n    buf[sVar6] = '\0';\n    fputs_unlocked(buf,stdout);\n  }" { (expression_statement "buf[sVar6] = '\0';" (assignment_expression "buf[sVar6] = '\0'" (subscript_expression "buf[sVar6]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "fputs_unlocked(buf,stdout);" (call_expression "fputs_unlocked(buf,stdout)" identifier (argument_list "(buf,stdout)" ( identifier , identifier ))) ;) })) (labeled_statement "LAB_0019ed60:\n  if (-1 < iVar7) {\n    puts("\r");\n    plVar4->cmdedit_y = plVar4->cmdedit_y + 1;\n    plVar4->cmdedit_x = 0;\n  }" statement_identifier : (if_statement "if (-1 < iVar7) {\n    puts("\r");\n    plVar4->cmdedit_y = plVar4->cmdedit_y + 1;\n    plVar4->cmdedit_x = 0;\n  }" if (parenthesized_expression "(-1 < iVar7)" ( (binary_expression "-1 < iVar7" number_literal < identifier) )) (compound_statement "{\n    puts("\r");\n    plVar4->cmdedit_y = plVar4->cmdedit_y + 1;\n    plVar4->cmdedit_x = 0;\n  }" { (expression_statement "puts("\r");" (call_expression "puts("\r")" identifier (argument_list "("\r")" ( (string_literal ""\r"" " escape_sequence ") ))) ;) (expression_statement "plVar4->cmdedit_y = plVar4->cmdedit_y + 1;" (assignment_expression "plVar4->cmdedit_y = plVar4->cmdedit_y + 1" (field_expression "plVar4->cmdedit_y" identifier -> field_identifier) = (binary_expression "plVar4->cmdedit_y + 1" (field_expression "plVar4->cmdedit_y" identifier -> field_identifier) + number_literal)) ;) (expression_statement "plVar4->cmdedit_x = 0;" (assignment_expression "plVar4->cmdedit_x = 0" (field_expression "plVar4->cmdedit_x" identifier -> field_identifier) = number_literal) ;) }))) (if_statement "if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar2 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar2 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0019ecb0(void)\n\n{\n  char *pcVar1;\n  long lVar2;\n  int iVar3;\n  long lVar4;\n  uint uVar5;\n  long in_FS_OFFSET;\n  undefined1 local_28;\n  char local_27 [7];\n  long local_20;\n  \n  lVar2 = DAT_001c6a00;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);\n  if (uVar5 == 0) {\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }\n  local_28 = 0;\n  lVar4 = FUN_001a5402(local_27,uVar5,&local_28);\n  if (0 < lVar4) {\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }\nLAB_0019ed60:\n  if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0019ecb0(void)\n\n{\n  char *pcVar1;\n  long lVar2;\n  int iVar3;\n  long lVar4;\n  uint uVar5;\n  long in_FS_OFFSET;\n  undefined1 local_28;\n  char local_27 [7];\n  long local_20;\n  \n  lVar2 = DAT_001c6a00;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);\n  if (uVar5 == 0) {\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }\n  local_28 = 0;\n  lVar4 = FUN_001a5402(local_27,uVar5,&local_28);\n  if (0 < lVar4) {\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }\nLAB_0019ed60:\n  if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0019ecb0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *pcVar1;\n  long lVar2;\n  int iVar3;\n  long lVar4;\n  uint uVar5;\n  long in_FS_OFFSET;\n  undefined1 local_28;\n  char local_27 [7];\n  long local_20;\n  \n  lVar2 = DAT_001c6a00;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);\n  if (uVar5 == 0) {\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }\n  local_28 = 0;\n  lVar4 = FUN_001a5402(local_27,uVar5,&local_28);\n  if (0 < lVar4) {\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }\nLAB_0019ed60:\n  if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_28;" type_identifier identifier ;) (declaration "char local_27 [7];" primitive_type (array_declarator "local_27 [7]" identifier [ number_literal ]) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = DAT_001c6a00;" (assignment_expression "lVar2 = DAT_001c6a00" identifier = identifier) ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);" (assignment_expression "uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" identifier = (pointer_expression "*(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" * (cast_expression "(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" ( (binary_expression "*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4" (pointer_expression "*(long *)(DAT_001c6a00 + 0x28)" * (cast_expression "(long *)(DAT_001c6a00 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x28)" ( (binary_expression "DAT_001c6a00 + 0x28" identifier + number_literal) )))) + (binary_expression "(ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4" (binary_expression "(ulong)*(uint *)(DAT_001c6a00 + 0x18)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)(DAT_001c6a00 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x18)" ( (binary_expression "DAT_001c6a00 + 0x18" identifier + number_literal) )))) * number_literal)) ))))) ;) (if_statement "if (uVar5 == 0) {\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }" { (expression_statement "uVar5 = 0x20;" (assignment_expression "uVar5 = 0x20" identifier = number_literal) ;) (labeled_statement "LAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);" statement_identifier : (expression_statement "iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);" (assignment_expression "iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8)" identifier = (binary_expression "*(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8)" (pointer_expression "*(int *)(lVar2 + 0xc)" * (cast_expression "(int *)(lVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) - (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))))) ;)) (if_statement "if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }" if (parenthesized_expression "(DAT_001c6a10 != '\x02')" ( (binary_expression "DAT_001c6a10 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }" { (labeled_statement "LAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;" statement_identifier : (expression_statement "pcVar1 = stdout->_IO_write_ptr;" (assignment_expression "pcVar1 = stdout->_IO_write_ptr" identifier = (field_expression "stdout->_IO_write_ptr" identifier -> field_identifier)) ;)) (if_statement "if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }" if (parenthesized_expression "(pcVar1 < stdout->_IO_write_end)" ( (binary_expression "pcVar1 < stdout->_IO_write_end" identifier < (field_expression "stdout->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }" { (expression_statement "stdout->_IO_write_ptr = pcVar1 + 1;" (assignment_expression "stdout->_IO_write_ptr = pcVar1 + 1" (field_expression "stdout->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar1 = (char)uVar5;" (assignment_expression "*pcVar1 = (char)uVar5" (pointer_expression "*pcVar1" * identifier) = (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n        __overflow(stdout,uVar5 & 0xff);\n      }" else (compound_statement "{\n        __overflow(stdout,uVar5 & 0xff);\n      }" { (expression_statement "__overflow(stdout,uVar5 & 0xff);" (call_expression "__overflow(stdout,uVar5 & 0xff)" identifier (argument_list "(stdout,uVar5 & 0xff)" ( identifier , (binary_expression "uVar5 & 0xff" identifier & number_literal) ))) ;) }))) (goto_statement "goto LAB_0019ed60;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }" else (compound_statement "{\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }" { (expression_statement "*(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;" (assignment_expression "*(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1" (pointer_expression "*(uint *)(DAT_001c6a00 + 0x18)" * (cast_expression "(uint *)(DAT_001c6a00 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x18)" ( (binary_expression "DAT_001c6a00 + 0x18" identifier + number_literal) )))) = (binary_expression "*(uint *)(DAT_001c6a00 + 0x18) + 1" (pointer_expression "*(uint *)(DAT_001c6a00 + 0x18)" * (cast_expression "(uint *)(DAT_001c6a00 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x18)" ( (binary_expression "DAT_001c6a00 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }" if (parenthesized_expression "(DAT_001c6a10 != '\x02')" ( (binary_expression "DAT_001c6a10 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }" { (expression_statement "iVar3 = *(int *)(lVar2 + 0xc) + 1;" (assignment_expression "iVar3 = *(int *)(lVar2 + 0xc) + 1" identifier = (binary_expression "*(int *)(lVar2 + 0xc) + 1" (pointer_expression "*(int *)(lVar2 + 0xc)" * (cast_expression "(int *)(lVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(lVar2 + 0xc) = iVar3;" (assignment_expression "*(int *)(lVar2 + 0xc) = iVar3" (pointer_expression "*(int *)(lVar2 + 0xc)" * (cast_expression "(int *)(lVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = iVar3 - *(int *)(lVar2 + 8);" (assignment_expression "iVar3 = iVar3 - *(int *)(lVar2 + 8)" identifier = (binary_expression "iVar3 - *(int *)(lVar2 + 8)" identifier - (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))))) ;) (goto_statement "goto LAB_0019ed9c;" goto statement_identifier ;) })) (expression_statement "iVar3 = *(int *)(lVar2 + 0xc) + 1;" (assignment_expression "iVar3 = *(int *)(lVar2 + 0xc) + 1" identifier = (binary_expression "*(int *)(lVar2 + 0xc) + 1" (pointer_expression "*(int *)(lVar2 + 0xc)" * (cast_expression "(int *)(lVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(lVar2 + 0xc) = iVar3;" (assignment_expression "*(int *)(lVar2 + 0xc) = iVar3" (pointer_expression "*(int *)(lVar2 + 0xc)" * (cast_expression "(int *)(lVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }" if (parenthesized_expression "((int)uVar5 < 0x300)" ( (binary_expression "(int)uVar5 < 0x300" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }" { (expression_statement "iVar3 = FUN_001a55ec(uVar5);" (assignment_expression "iVar3 = FUN_001a55ec(uVar5)" identifier = (call_expression "FUN_001a55ec(uVar5)" identifier (argument_list "(uVar5)" ( identifier )))) ;) (if_statement "if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }" if (parenthesized_expression "(iVar3 != 1)" ( (binary_expression "iVar3 != 1" identifier != number_literal) )) (compound_statement "{\n        uVar5 = 0x3f;\n      }" { (expression_statement "uVar5 = 0x3f;" (assignment_expression "uVar5 = 0x3f" identifier = number_literal) ;) })) (goto_statement "goto LAB_0019ed22;" goto statement_identifier ;) })) (expression_statement "iVar3 = iVar3 - *(int *)(lVar2 + 8);" (assignment_expression "iVar3 = iVar3 - *(int *)(lVar2 + 8)" identifier = (binary_expression "iVar3 - *(int *)(lVar2 + 8)" identifier - (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))))) ;) (expression_statement "uVar5 = 0x3f;" (assignment_expression "uVar5 = 0x3f" identifier = number_literal) ;) }))) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "lVar4 = FUN_001a5402(local_27,uVar5,&local_28);" (assignment_expression "lVar4 = FUN_001a5402(local_27,uVar5,&local_28)" identifier = (call_expression "FUN_001a5402(local_27,uVar5,&local_28)" identifier (argument_list "(local_27,uVar5,&local_28)" ( identifier , identifier , (pointer_expression "&local_28" & identifier) )))) ;) (if_statement "if (0 < lVar4) {\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }" if (parenthesized_expression "(0 < lVar4)" ( (binary_expression "0 < lVar4" number_literal < identifier) )) (compound_statement "{\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }" { (expression_statement "local_27[lVar4] = '\0';" (assignment_expression "local_27[lVar4] = '\0'" (subscript_expression "local_27[lVar4]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "fputs_unlocked(local_27,stdout);" (call_expression "fputs_unlocked(local_27,stdout)" identifier (argument_list "(local_27,stdout)" ( identifier , identifier ))) ;) })) (labeled_statement "LAB_0019ed60:\n  if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }" statement_identifier : (if_statement "if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }" { (expression_statement "puts("\r");" (call_expression "puts("\r")" identifier (argument_list "("\r")" ( (string_literal ""\r"" " escape_sequence ") ))) ;) (expression_statement "*(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;" (assignment_expression "*(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1" (pointer_expression "*(int *)(lVar2 + 0x10)" * (cast_expression "(int *)(lVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 0x10) + 1" (pointer_expression "*(int *)(lVar2 + 0x10)" * (cast_expression "(int *)(lVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(undefined4 *)(lVar2 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(lVar2 + 0xc) = 0" (pointer_expression "*(undefined4 *)(lVar2 + 0xc)" * (cast_expression "(undefined4 *)(lVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xc)" ( (binary_expression "lVar2 + 0xc" identifier + number_literal) )))) = number_literal) ;) }))) (if_statement "if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_20 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT & LIT) ))) ;) }))) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence ") ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0019ecb0(void)\n\n{\n  char *pcVar1;\n  long lVar2;\n  int iVar3;\n  long lVar4;\n  uint uVar5;\n  long in_FS_OFFSET;\n  undefined1 local_28;\n  char local_27 [7];\n  long local_20;\n  \n  lVar2 = DAT_001c6a00;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);\n  if (uVar5 == 0) {\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }\n  local_28 = 0;\n  lVar4 = FUN_001a5402(local_27,uVar5,&local_28);\n  if (0 < lVar4) {\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }\nLAB_0019ed60:\n  if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0019ecb0(void)" (identifier "FUN_0019ecb0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  long lVar2;\n  int iVar3;\n  long lVar4;\n  uint uVar5;\n  long in_FS_OFFSET;\n  undefined1 local_28;\n  char local_27 [7];\n  long local_20;\n  \n  lVar2 = DAT_001c6a00;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);\n  if (uVar5 == 0) {\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }\n  local_28 = 0;\n  lVar4 = FUN_001a5402(local_27,uVar5,&local_28);\n  if (0 < lVar4) {\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }\nLAB_0019ed60:\n  if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 local_28;" (type_identifier "undefined1") (identifier "local_28") (; ";")) (declaration "char local_27 [7];" (primitive_type "char") (array_declarator "local_27 [7]" (identifier "local_27") ([ "[") (number_literal "7") (] "]")) (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "lVar2 = DAT_001c6a00;" (assignment_expression "lVar2 = DAT_001c6a00" (identifier "lVar2") (= "=") (identifier "DAT_001c6a00")) (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);" (assignment_expression "uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" (* "*") (cast_expression "(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4)" (( "(") (binary_expression "*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4" (pointer_expression "*(long *)(DAT_001c6a00 + 0x28)" (* "*") (cast_expression "(long *)(DAT_001c6a00 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c6a00 + 0x28)" (( "(") (binary_expression "DAT_001c6a00 + 0x28" (identifier "DAT_001c6a00") (+ "+") (number_literal "0x28")) () ")")))) (+ "+") (binary_expression "(ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4" (binary_expression "(ulong)*(uint *)(DAT_001c6a00 + 0x18)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(uint *)(DAT_001c6a00 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c6a00 + 0x18)" (( "(") (binary_expression "DAT_001c6a00 + 0x18" (identifier "DAT_001c6a00") (+ "+") (number_literal "0x18")) () ")")))) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (uVar5 == 0) {\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }\n  else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = 0x20;\nLAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);\n    if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }\n  }" ({ "{") (expression_statement "uVar5 = 0x20;" (assignment_expression "uVar5 = 0x20" (identifier "uVar5") (= "=") (number_literal "0x20")) (; ";")) (labeled_statement "LAB_0019ed22:\n    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);" (statement_identifier "LAB_0019ed22") (: ":") (expression_statement "iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);" (assignment_expression "iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8)" (identifier "iVar3") (= "=") (binary_expression "*(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8)" (pointer_expression "*(int *)(lVar2 + 0xc)" (* "*") (cast_expression "(int *)(lVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0xc)" (( "(") (binary_expression "lVar2 + 0xc" (identifier "lVar2") (+ "+") (number_literal "0xc")) () ")")))) (- "-") (pointer_expression "*(int *)(lVar2 + 8)" (* "*") (cast_expression "(int *)(lVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))))) (; ";"))) (if_statement "if (DAT_001c6a10 != '\x02') {\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }" (if "if") (parenthesized_expression "(DAT_001c6a10 != '\x02')" (( "(") (binary_expression "DAT_001c6a10 != '\x02'" (identifier "DAT_001c6a10") (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\nLAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;\n      if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }\n      goto LAB_0019ed60;\n    }" ({ "{") (labeled_statement "LAB_0019ed9c:\n      pcVar1 = stdout->_IO_write_ptr;" (statement_identifier "LAB_0019ed9c") (: ":") (expression_statement "pcVar1 = stdout->_IO_write_ptr;" (assignment_expression "pcVar1 = stdout->_IO_write_ptr" (identifier "pcVar1") (= "=") (field_expression "stdout->_IO_write_ptr" (identifier "stdout") (-> "->") (field_identifier "_IO_write_ptr"))) (; ";"))) (if_statement "if (pcVar1 < stdout->_IO_write_end) {\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }\n      else {\n        __overflow(stdout,uVar5 & 0xff);\n      }" (if "if") (parenthesized_expression "(pcVar1 < stdout->_IO_write_end)" (( "(") (binary_expression "pcVar1 < stdout->_IO_write_end" (identifier "pcVar1") (< "<") (field_expression "stdout->_IO_write_end" (identifier "stdout") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n        stdout->_IO_write_ptr = pcVar1 + 1;\n        *pcVar1 = (char)uVar5;\n      }" ({ "{") (expression_statement "stdout->_IO_write_ptr = pcVar1 + 1;" (assignment_expression "stdout->_IO_write_ptr = pcVar1 + 1" (field_expression "stdout->_IO_write_ptr" (identifier "stdout") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (binary_expression "pcVar1 + 1" (identifier "pcVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar1 = (char)uVar5;" (assignment_expression "*pcVar1 = (char)uVar5" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (= "=") (cast_expression "(char)uVar5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar5"))) (; ";")) (} "}")) (else_clause "else {\n        __overflow(stdout,uVar5 & 0xff);\n      }" (else "else") (compound_statement "{\n        __overflow(stdout,uVar5 & 0xff);\n      }" ({ "{") (expression_statement "__overflow(stdout,uVar5 & 0xff);" (call_expression "__overflow(stdout,uVar5 & 0xff)" (identifier "__overflow") (argument_list "(stdout,uVar5 & 0xff)" (( "(") (identifier "stdout") (, ",") (binary_expression "uVar5 & 0xff" (identifier "uVar5") (& "&") (number_literal "0xff")) () ")"))) (; ";")) (} "}")))) (goto_statement "goto LAB_0019ed60;" (goto "goto") (statement_identifier "LAB_0019ed60") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }" (else "else") (compound_statement "{\n    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;\n    if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }\n    iVar3 = *(int *)(lVar2 + 0xc) + 1;\n    *(int *)(lVar2 + 0xc) = iVar3;\n    if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }\n    iVar3 = iVar3 - *(int *)(lVar2 + 8);\n    uVar5 = 0x3f;\n  }" ({ "{") (expression_statement "*(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;" (assignment_expression "*(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1" (pointer_expression "*(uint *)(DAT_001c6a00 + 0x18)" (* "*") (cast_expression "(uint *)(DAT_001c6a00 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c6a00 + 0x18)" (( "(") (binary_expression "DAT_001c6a00 + 0x18" (identifier "DAT_001c6a00") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(uint *)(DAT_001c6a00 + 0x18) + 1" (pointer_expression "*(uint *)(DAT_001c6a00 + 0x18)" (* "*") (cast_expression "(uint *)(DAT_001c6a00 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c6a00 + 0x18)" (( "(") (binary_expression "DAT_001c6a00 + 0x18" (identifier "DAT_001c6a00") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (DAT_001c6a10 != '\x02') {\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }" (if "if") (parenthesized_expression "(DAT_001c6a10 != '\x02')" (( "(") (binary_expression "DAT_001c6a10 != '\x02'" (identifier "DAT_001c6a10") (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n      iVar3 = *(int *)(lVar2 + 0xc) + 1;\n      *(int *)(lVar2 + 0xc) = iVar3;\n      iVar3 = iVar3 - *(int *)(lVar2 + 8);\n      goto LAB_0019ed9c;\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(lVar2 + 0xc) + 1;" (assignment_expression "iVar3 = *(int *)(lVar2 + 0xc) + 1" (identifier "iVar3") (= "=") (binary_expression "*(int *)(lVar2 + 0xc) + 1" (pointer_expression "*(int *)(lVar2 + 0xc)" (* "*") (cast_expression "(int *)(lVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0xc)" (( "(") (binary_expression "lVar2 + 0xc" (identifier "lVar2") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(lVar2 + 0xc) = iVar3;" (assignment_expression "*(int *)(lVar2 + 0xc) = iVar3" (pointer_expression "*(int *)(lVar2 + 0xc)" (* "*") (cast_expression "(int *)(lVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0xc)" (( "(") (binary_expression "lVar2 + 0xc" (identifier "lVar2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar3 = iVar3 - *(int *)(lVar2 + 8);" (assignment_expression "iVar3 = iVar3 - *(int *)(lVar2 + 8)" (identifier "iVar3") (= "=") (binary_expression "iVar3 - *(int *)(lVar2 + 8)" (identifier "iVar3") (- "-") (pointer_expression "*(int *)(lVar2 + 8)" (* "*") (cast_expression "(int *)(lVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))))) (; ";")) (goto_statement "goto LAB_0019ed9c;" (goto "goto") (statement_identifier "LAB_0019ed9c") (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(lVar2 + 0xc) + 1;" (assignment_expression "iVar3 = *(int *)(lVar2 + 0xc) + 1" (identifier "iVar3") (= "=") (binary_expression "*(int *)(lVar2 + 0xc) + 1" (pointer_expression "*(int *)(lVar2 + 0xc)" (* "*") (cast_expression "(int *)(lVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0xc)" (( "(") (binary_expression "lVar2 + 0xc" (identifier "lVar2") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(lVar2 + 0xc) = iVar3;" (assignment_expression "*(int *)(lVar2 + 0xc) = iVar3" (pointer_expression "*(int *)(lVar2 + 0xc)" (* "*") (cast_expression "(int *)(lVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0xc)" (( "(") (binary_expression "lVar2 + 0xc" (identifier "lVar2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if ((int)uVar5 < 0x300) {\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }" (if "if") (parenthesized_expression "((int)uVar5 < 0x300)" (( "(") (binary_expression "(int)uVar5 < 0x300" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (< "<") (number_literal "0x300")) () ")")) (compound_statement "{\n      iVar3 = FUN_001a55ec(uVar5);\n      if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }\n      goto LAB_0019ed22;\n    }" ({ "{") (expression_statement "iVar3 = FUN_001a55ec(uVar5);" (assignment_expression "iVar3 = FUN_001a55ec(uVar5)" (identifier "iVar3") (= "=") (call_expression "FUN_001a55ec(uVar5)" (identifier "FUN_001a55ec") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")")))) (; ";")) (if_statement "if (iVar3 != 1) {\n        uVar5 = 0x3f;\n      }" (if "if") (parenthesized_expression "(iVar3 != 1)" (( "(") (binary_expression "iVar3 != 1" (identifier "iVar3") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n        uVar5 = 0x3f;\n      }" ({ "{") (expression_statement "uVar5 = 0x3f;" (assignment_expression "uVar5 = 0x3f" (identifier "uVar5") (= "=") (number_literal "0x3f")) (; ";")) (} "}"))) (goto_statement "goto LAB_0019ed22;" (goto "goto") (statement_identifier "LAB_0019ed22") (; ";")) (} "}"))) (expression_statement "iVar3 = iVar3 - *(int *)(lVar2 + 8);" (assignment_expression "iVar3 = iVar3 - *(int *)(lVar2 + 8)" (identifier "iVar3") (= "=") (binary_expression "iVar3 - *(int *)(lVar2 + 8)" (identifier "iVar3") (- "-") (pointer_expression "*(int *)(lVar2 + 8)" (* "*") (cast_expression "(int *)(lVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))))) (; ";")) (expression_statement "uVar5 = 0x3f;" (assignment_expression "uVar5 = 0x3f" (identifier "uVar5") (= "=") (number_literal "0x3f")) (; ";")) (} "}")))) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar4 = FUN_001a5402(local_27,uVar5,&local_28);" (assignment_expression "lVar4 = FUN_001a5402(local_27,uVar5,&local_28)" (identifier "lVar4") (= "=") (call_expression "FUN_001a5402(local_27,uVar5,&local_28)" (identifier "FUN_001a5402") (argument_list "(local_27,uVar5,&local_28)" (( "(") (identifier "local_27") (, ",") (identifier "uVar5") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")")))) (; ";")) (if_statement "if (0 < lVar4) {\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }" (if "if") (parenthesized_expression "(0 < lVar4)" (( "(") (binary_expression "0 < lVar4" (number_literal "0") (< "<") (identifier "lVar4")) () ")")) (compound_statement "{\n    local_27[lVar4] = '\0';\n    fputs_unlocked(local_27,stdout);\n  }" ({ "{") (expression_statement "local_27[lVar4] = '\0';" (assignment_expression "local_27[lVar4] = '\0'" (subscript_expression "local_27[lVar4]" (identifier "local_27") ([ "[") (identifier "lVar4") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "fputs_unlocked(local_27,stdout);" (call_expression "fputs_unlocked(local_27,stdout)" (identifier "fputs_unlocked") (argument_list "(local_27,stdout)" (( "(") (identifier "local_27") (, ",") (identifier "stdout") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0019ed60:\n  if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }" (statement_identifier "LAB_0019ed60") (: ":") (if_statement "if (-1 < iVar3) {\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }" (if "if") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    puts("\r");\n    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;\n    *(undefined4 *)(lVar2 + 0xc) = 0;\n  }" ({ "{") (expression_statement "puts("\r");" (call_expression "puts("\r")" (identifier "puts") (argument_list "("\r")" (( "(") (string_literal ""\r"" (" """) (escape_sequence "\r") (" """)) () ")"))) (; ";")) (expression_statement "*(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;" (assignment_expression "*(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1" (pointer_expression "*(int *)(lVar2 + 0x10)" (* "*") (cast_expression "(int *)(lVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x10)" (( "(") (binary_expression "lVar2 + 0x10" (identifier "lVar2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "*(int *)(lVar2 + 0x10) + 1" (pointer_expression "*(int *)(lVar2 + 0x10)" (* "*") (cast_expression "(int *)(lVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x10)" (( "(") (binary_expression "lVar2 + 0x10" (identifier "lVar2") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(lVar2 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(lVar2 + 0xc) = 0" (pointer_expression "*(undefined4 *)(lVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(lVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0xc)" (( "(") (binary_expression "lVar2 + 0xc" (identifier "lVar2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_20 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 var_6;
  long var_13;
  char *var_4;
  type_2 *plVar4;
  type_3 var_8;
  size_t sVar6;
  int var_11;
  type_3 var_2;
  long var_1;
  type_4 mbst;
  char buf [7];
  
  plVar4 = lineedit_ptr_to_statics;
  var_13 = *(long *)(var_1 + 0x28);
  var_2 = lineedit_ptr_to_statics->command_ps[lineedit_ptr_to_statics->cursor];
  if (var_2 == L'\0') {
    var_2 = L' ';
LAB_0019ed22:
    var_11 = plVar4->cmdedit_x - plVar4->cmdedit_termw;
    if (var_3 != '\x02') {
LAB_0019ed9c:
      var_4 = stdout->_IO_write_ptr;
      if (var_4 < stdout->_IO_write_end) {
        stdout->_IO_write_ptr = var_4 + 1;
        *var_4 = (char)var_2;
      }
      else {
        var_5(stdout,var_2 & 0xff);
      }
      goto LAB_0019ed60;
    }
  }
  else {
    lineedit_ptr_to_statics->cursor = lineedit_ptr_to_statics->cursor + 1;
    if (var_3 != '\x02') {
      var_6 = plVar4->cmdedit_x + 1;
      plVar4->cmdedit_x = var_6;
      var_11 = var_6 - plVar4->cmdedit_termw;
      goto LAB_0019ed9c;
    }
    var_6 = plVar4->cmdedit_x + 1;
    plVar4->cmdedit_x = var_6;
    if (var_2 < L'̀') {
      var_8 = var_7(var_2);
      if (var_8 != L'\x01') {
        var_2 = L'?';
      }
      goto LAB_0019ed22;
    }
    var_11 = var_6 - plVar4->cmdedit_termw;
    var_2 = L'?';
  }
  mbst.bogus = '\0';
  sVar6 = var_9(buf,var_2,&mbst);
  if (0 < (long)sVar6) {
    buf[sVar6] = '\0';
    var_10(buf,stdout);
  }
LAB_0019ed60:
  if (-1 < var_11) {
    var_12("\r");
    plVar4->cmdedit_y = plVar4->cmdedit_y + 1;
    plVar4->cmdedit_x = 0;
  }
  if (var_13 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_14();
  }
  return;
}


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

void MASKED(void)

{
  char *pcVar1;
  long lVar2;
  int iVar3;
  long lVar4;
  uint uVar5;
  long in_FS_OFFSET;
  undefined1 local_28;
  char local_27 [7];
  long local_20;
  
  lVar2 = DAT_001c6a00;
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  uVar5 = *(uint *)(*(long *)(DAT_001c6a00 + 0x28) + (ulong)*(uint *)(DAT_001c6a00 + 0x18) * 4);
  if (uVar5 == 0) {
    uVar5 = 0x20;
LAB_0019ed22:
    iVar3 = *(int *)(lVar2 + 0xc) - *(int *)(lVar2 + 8);
    if (DAT_001c6a10 != '\x02') {
LAB_0019ed9c:
      pcVar1 = stdout->_IO_write_ptr;
      if (pcVar1 < stdout->_IO_write_end) {
        stdout->_IO_write_ptr = pcVar1 + 1;
        *pcVar1 = (char)uVar5;
      }
      else {
        __overflow(stdout,uVar5 & 0xff);
      }
      goto LAB_0019ed60;
    }
  }
  else {
    *(uint *)(DAT_001c6a00 + 0x18) = *(uint *)(DAT_001c6a00 + 0x18) + 1;
    if (DAT_001c6a10 != '\x02') {
      iVar3 = *(int *)(lVar2 + 0xc) + 1;
      *(int *)(lVar2 + 0xc) = iVar3;
      iVar3 = iVar3 - *(int *)(lVar2 + 8);
      goto LAB_0019ed9c;
    }
    iVar3 = *(int *)(lVar2 + 0xc) + 1;
    *(int *)(lVar2 + 0xc) = iVar3;
    if ((int)uVar5 < 0x300) {
      iVar3 = FUN_001a55ec(uVar5);
      if (iVar3 != 1) {
        uVar5 = 0x3f;
      }
      goto LAB_0019ed22;
    }
    iVar3 = iVar3 - *(int *)(lVar2 + 8);
    uVar5 = 0x3f;
  }
  local_28 = 0;
  lVar4 = FUN_001a5402(local_27,uVar5,&local_28);
  if (0 < lVar4) {
    local_27[lVar4] = '\0';
    fputs_unlocked(local_27,stdout);
  }
LAB_0019ed60:
  if (-1 < iVar3) {
    puts("\r");
    *(int *)(lVar2 + 0x10) = *(int *)(lVar2 + 0x10) + 1;
    *(undefined4 *)(lVar2 + 0xc) = 0;
  }
  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}

