// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/password_entry.c
// Function: gt_get_password
GtStr* gt_get_password(GT_UNUSED const char *prompt, GT_UNUSED GtError *err)
{
#ifndef _WIN32
  int flags,
      GT_UNUSED retval;
  char buf[255];
  struct termios term_attr;
  gt_assert(prompt);
  gt_error_check(err);

  if (tcgetattr(STDIN_FILENO, &term_attr)) {
    gt_error_set(err, "tcgetattr() failed");
    return NULL;
  }
  flags = term_attr.c_lflag;
  term_attr.c_lflag &= ~ECHO;
  if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &term_attr)) {
    gt_error_set(err, "tcsetattr() failed");
    return NULL;
  }
  fprintf(stderr, "%s", prompt);
  retval = scanf("%254s", buf);
  gt_assert(retval == 1);
  term_attr.c_lflag = flags;
  if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &term_attr)) {
    gt_error_set(err, "tcsetattr() failed");
    return NULL;
  }
  fprintf(stderr, "\n");
  return gt_str_new_cstr(buf);
#else
  /* XXX */
  fprintf(stderr, "gt_get_password() not implemented\n");
  exit(EXIT_FAILURE);
#endif
}

// Assembly:
subq $0x168, %rsp            # imm = 0x168
movq %rdi, 0x158(%rsp)
movq %rsi, 0x150(%rsp)
cmpq $0x0, 0x158(%rsp)
jne 0x176f7a
movq 0x48507f(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x38464a(%rip), %rsi    # 0x4fb59d
leaq 0x3972b1(%rip), %rdx    # 0x50e20b
leaq 0x3972b1(%rip), %rcx    # 0x50e212
leaq 0x3972ba(%rip), %r8     # 0x50e222
movl $0x22, %r9d
movb $0x0, %al
callq 0x33960
callq 0x2f830
jmp 0x176f7c
jmp 0x176f7e
cmpq $0x0, 0x150(%rsp)
je 0x176fd4
movq 0x150(%rsp), %rdi
callq 0x33160
testb $0x1, %al
jne 0x176f9c
jmp 0x176fd4
movq 0x485025(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x3845f0(%rip), %rsi    # 0x4fb59d
leaq 0x3847bc(%rip), %rdx    # 0x4fb770
leaq 0x397257(%rip), %rcx    # 0x50e212
leaq 0x397260(%rip), %r8     # 0x50e222
movl $0x23, %r9d
movb $0x0, %al
callq 0x33960
callq 0x2f830
jmp 0x176fd6
xorl %edi, %edi
leaq 0x4(%rsp), %rsi
callq 0x31fb0
cmpl $0x0, %eax
je 0x17700e
movq 0x150(%rsp), %rdi
leaq 0x397246(%rip), %rsi    # 0x50e23c
movb $0x0, %al
callq 0x31a40
movq $0x0, 0x160(%rsp)
jmp 0x17714e
movl 0x10(%rsp), %eax
movl %eax, 0x14c(%rsp)
movl 0x10(%rsp), %eax
andl $-0x9, %eax
movl %eax, 0x10(%rsp)
xorl %edi, %edi
movl $0x2, %esi
leaq 0x4(%rsp), %rdx
callq 0x2f190
cmpl $0x0, %eax
je 0x177061
movq 0x150(%rsp), %rdi
leaq 0x397206(%rip), %rsi    # 0x50e24f
movb $0x0, %al
callq 0x31a40
movq $0x0, 0x160(%rsp)
jmp 0x17714e
movq 0x484f60(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
movq 0x158(%rsp), %rdx
leaq 0x401247(%rip), %rsi    # 0x5782c1
movb $0x0, %al
callq 0x33960
leaq 0x40(%rsp), %rsi
leaq 0x3971d5(%rip), %rdi    # 0x50e262
movb $0x0, %al
callq 0x32d20
movl %eax, 0x148(%rsp)
cmpl $0x1, 0x148(%rsp)
je 0x1770dd
movq 0x484f1c(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x3844e7(%rip), %rsi    # 0x4fb59d
leaq 0x3971ab(%rip), %rdx    # 0x50e268
leaq 0x39714e(%rip), %rcx    # 0x50e212
leaq 0x397157(%rip), %r8     # 0x50e222
movl $0x31, %r9d
movb $0x0, %al
callq 0x33960
callq 0x2f830
jmp 0x1770df
movl 0x14c(%rsp), %eax
movl %eax, 0x10(%rsp)
xorl %edi, %edi
movl $0x2, %esi
leaq 0x4(%rsp), %rdx
callq 0x2f190
cmpl $0x0, %eax
je 0x177124
movq 0x150(%rsp), %rdi
leaq 0x397140(%rip), %rsi    # 0x50e24f
movb $0x0, %al
callq 0x31a40
movq $0x0, 0x160(%rsp)
jmp 0x17714e
movq 0x484e9d(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x3f6f12(%rip), %rsi    # 0x56e047
movb $0x0, %al
callq 0x33960
leaq 0x40(%rsp), %rdi
callq 0x310f0
movq %rax, 0x160(%rsp)
movq 0x160(%rsp), %rax
addq $0x168, %rsp            # imm = 0x168
retq
nop