user: Translate the below assembly code into C programming language:

```asm
<gui_main_get_password>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  mov    $0x0,%eax
  call   <initscr@plt>
  mov    $0x0,%eax
  call   <cbreak@plt>
  mov    $0x0,%eax
  call   <noecho@plt>
  mov    $0x0,%eax
  call   <raw@plt>
  mov    $0x0,%eax
  call   <clear@plt>
  movl   $0x0,-0xc(%rbp)
  jmp    L34
L94:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <mvaddstr@plt>
  addl   $0x1,-0xc(%rbp)
L34:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L94
  mov    -0xc(%rbp),%eax
  lea    D20(%rip),%rdx
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <mvaddstr@plt>
  mov    $0x0,%eax
  call   <refresh@plt>
  mov    -0x24(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  movl   $0x0,-0x8(%rbp)
  jmp    L82
L47:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0xa,-0x4(%rbp)
  je     L89
  cmpl   $0x3,-0x4(%rbp)
  jne    L91
  mov    -0x20(%rbp),%rax
  movb   $0x3,(%rax)
  movl   $0x1,-0x8(%rbp)
  jmp    L54
L91:
  cmpl   $0x7f,-0x4(%rbp)
  jne    L69
  cmpl   $0x0,-0x8(%rbp)
  jle    L72
  subl   $0x1,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%eax
  lea    0x3(%rax),%ecx
  mov    -0xc(%rbp),%eax
  lea    D10(%rip),%rdx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <mvaddstr@plt>
  mov    -0x8(%rbp),%eax
  lea    0x3(%rax),%edx
  mov    -0xc(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <move@plt>
  jmp    L72
L69:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    -0x4(%rbp),%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%eax
  lea    0x3(%rax),%ecx
  mov    -0xc(%rbp),%eax
  lea    D19(%rip),%rdx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <mvaddstr@plt>
  addl   $0x1,-0x8(%rbp)
L72:
  mov    $0x0,%eax
  call   <refresh@plt>
L82:
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x8(%rbp)
  jl     L47
  jmp    L54
L89:
  nop
L54:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    $0x0,%eax
  call   <refresh@plt>
  mov    $0x0,%eax
  call   <endwin@plt>
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D20
type_guessed: string
name: parse_data
arguments: data_tag: D10
type_guessed: string
name: parse_data
arguments: data_tag: D19
type_guessed: string

tool: D20: => 

tool: D10:  

tool: D19: *

assistant: ```c
void gui_main_get_password(const char **prompt, char *password, int size) {
  int line, i, ch;
  initscr();
  cbreak();
  noecho();
  raw();
  clear();
  line = 0;
  while (prompt[line]) {
    mvaddstr(line, 0, prompt[line]);
    line++;
  }
  mvaddstr(line, 0, "=> ");
  refresh();
  memset(password, '\0', size);
  i = 0;
  while (i < size - 1) {
    ch = getch();
    if (ch == '\n')
      break;
    if (ch == 3) {
      password[0] = 3;
      i = 1;
      break;
    }
    if (ch == 127) {
      if (i > 0) {
        i--;
        password[i] = '\0';
        mvaddstr(line, 3 + i, " ");
        move(line, 3 + i);
      }
    } else {
      password[i] = ch;
      mvaddstr(line, 3 + i, "*");
      i++;
    }
    refresh();
  }
  password[i] = '\0';
  refresh();
  endwin();
}
```