user: 下面的汇编指令对应的C源代码是什么：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x818,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x808(%rsp)
  xor    %eax,%eax
  cmp    $0x3,%edi
  jle    L20
  mov    0x8(%rsi),%r13
  mov    0x10(%rsi),%r12
  mov    0x18(%rsi),%rbp
  cmp    $0x5,%edi
  je     L0
  lea    D38(%rip),%rdi
  call   <getpass@plt>
  mov    %rax,%rsi
  mov    %rsp,%r14
  mov    %r14,%rdi
  call   <strcpy@plt>
  lea    D20(%rip),%rdi
  call   <getpass@plt>
  mov    %rax,%rbx
  lea    0x400(%rsp),%r15
  mov    %rax,%rsi
  mov    %r15,%rdi
  call   <strcpy@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L33
L36:
  mov    %rsp,%rdi
  mov    %rdi,%rsi
  call   <crypt@plt>
  mov    %rax,%r14
  lea    D67(%rip),%rsi
  mov    %r13,%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  mov    %r14,%r8
  mov    %r12,%rcx
  mov    %rbp,%rdx
  lea    D70(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
L25:
  mov    0x808(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L29
  add    $0x818,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L20:
  lea    D5(%rip),%rdi
  call   <printf@plt>
  lea    D42(%rip),%rdi
  call   <printf@plt>
  lea    D49(%rip),%rdi
  call   <printf@plt>
  lea    D73(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L25
L33:
  lea    D83(%rip),%rdi
  call   <printf@plt>
  mov    $0x2,%eax
  jmp    L25
L0:
  mov    0x20(%rsi),%rsi
  mov    %rsp,%rdi
  call   <strcpy@plt>
  jmp    L36
L29:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D38
data_type: string
name: disassemble_data
arguments: tag: D20
data_type: string
name: disassemble_data
arguments: tag: D67
data_type: string
name: disassemble_data
arguments: tag: D70
data_type: string
name: disassemble_data
arguments: tag: D5
data_type: string
name: disassemble_data
arguments: tag: D42
data_type: string
name: disassemble_data
arguments: tag: D49
data_type: string
name: disassemble_data
arguments: tag: D73
data_type: string
name: disassemble_data
arguments: tag: D83
data_type: string

tool: D38: Password: 

tool: D20: Password (again): 

tool: D67: a

tool: D70: %s:%s:%s


tool: D5: Usage:



tool: D42: htdigest passwordfile realm username


tool: D49: htdigest passwordfile realm username password



tool: D73: Creates or updates an Apache/nginx compatible htdigest file


tool: D83: Passwords did not match


assistant: ```c
int main(int argc, char **argv) {
  char password_first[1024], password_repeat[1024];
  char *input, *passwordfile, *username, *realm, *encrypted;
  FILE *htpasswd_file;
  if (argc < 4) {
    printf("Usage:\n\n");
    printf("htdigest passwordfile realm username\n");
    printf("htdigest passwordfile realm username password\n\n");
    printf("Creates or updates an Apache/nginx compatible htdigest file\n");
    return 1;
  }
  passwordfile = argv[1];
  realm = argv[2];
  username = argv[3];
  if (argc != 5) {
    input = getpass("Password: ");
    strcpy(password_first, input);
    input = getpass("Password (again): ");
    strcpy(password_repeat, input);
    memset(input, 0, strlen(input));
    int password_compare = strcmp(password_first, password_repeat);
    if (password_compare != 0) {
      printf("Passwords did not match\n");
      return 2;
    }
  } else {
    strcpy(password_first, argv[4]);
  }
  encrypted = (char *)crypt(password_first, password_first);
  htpasswd_file = fopen(passwordfile, "a");
  fprintf(htpasswd_file, "%s:%s:%s\n", username, realm, encrypted);
  fclose(htpasswd_file);
  return 0;
}
```