user: 请从给定的汇编指令推导出C源代码：

```asm
<authmod_fail_completely>:
  endbr64
  push   %r14
  lea    D37(%rip),%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <getenv@plt>
  test   %rax,%rax
  je     L28
  mov    %rax,%rdi
  lea    0xc(%rsp),%rdx
  lea    D51(%rip),%rsi
  call   <sscanf@plt>
  test   %rax,%rax
  jle    L28
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jg     L104
L28:
  mov    $0xc,%edx
  lea    D55(%rip),%rsi
  mov    $0x2,%edi
  call   <write@plt>
  mov    $0x1,%edi
  call   <authexit@plt>
  mov    0xc(%rsp),%eax
L104:
  lea    0x8(,%rax,8),%edi
  call   <malloc@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L76
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jle    L101
L85:
  mov    %r12,%r14
  xor    %ebx,%ebx
  lea    0x10(%rsp),%rbp
  lea    D52(%rip),%r13
  jmp    L135
  nopl   (%rax)
L15:
  add    $0x1,%ebx
  add    $0x8,%r14
  cmp    %ebx,0xc(%rsp)
  jle    L120
L135:
  mov    %ebx,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    %rbp,%rdi
  call   <getenv@plt>
  mov    %rax,(%r14)
  test   %rax,%rax
  jne    L15
  mov    $0x1,%edi
  add    $0x1,%ebx
  add    $0x8,%r14
  call   <authexit@plt>
  cmp    %ebx,0xc(%rsp)
  jg     L135
  nopl   0x0(%rax)
L120:
  movslq %ebx,%rbx
  lea    (%r12,%rbx,8),%rax
L46:
  movq   $0x0,(%rax)
  lea    D32(%rip),%rdi
  call   <getenv@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L113
L20:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <execv@plt>
  mov    %rbp,%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <authexit@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L61
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L76:
  lea    D54(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <authexit@plt>
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jg     L85
L101:
  mov    %r12,%rax
  jmp    L46
  nop
L113:
  mov    $0x1,%edi
  call   <authexit@plt>
  jmp    L20
L61:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D37
type: string
name: extract_symbolic_data
arguments: label: D51
type: string
name: extract_symbolic_data
arguments: label: D55
type: string
name: extract_symbolic_data
arguments: label: D52
type: string
name: extract_symbolic_data
arguments: label: D32
type: string
name: extract_symbolic_data
arguments: label: D54
type: string

tool: D37: AUTHARGC

tool: D51: %d

tool: D55: AUTHFAILURE


tool: D52: AUTHARGV%d

tool: D32: AUTHUSER

tool: D54: malloc

assistant: ```c
void authmod_fail_completely() {
  char **argv;
  int argc, n;
  const char *p = getenv("AUTHARGC");
  char buf[20];
  if (!p || sscanf(p, "%d", &argc) <= 0 || argc <= 0) {
    write(2, "AUTHFAILURE\n", 12);
    authexit(1);
  }
  if ((argv = (char **)malloc((argc + 1) * sizeof(char *))) == 0) {
    perror("malloc");
    authexit(1);
  }
  for (n = 0; n < argc; n++) {
    sprintf(buf, "AUTHARGV%d", n);
    if ((argv[n] = getenv(buf)) == 0)
      authexit(1);
  }
  argv[n] = 0;
  p = getenv("AUTHUSER");
  if (!p)
    authexit(1);
  execv(p, argv);
  perror(p);
  authexit(1);
}
```