user: What is the c source code of the assembly code below?

```asm
<Cmd_Exec_f>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  lea    -0x19000(%rsp),%r11
L126:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L126
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x19018(%rsp)
  xor    %eax,%eax
  call   <Cmd_Argc@plt>
  cmp    $0x2,%eax
  je     L94
  mov    0x19018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L85
  lea    D68(%rip),%rdi
L32:
  add    $0x19020,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1120 <Sys_Printf@plt>
  nopl   0x0(%rax)
L94:
  mov    $0x1,%edi
  call   <Cmd_Argv@plt>
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <FS_SafePath@plt>
  test   %eax,%eax
  je     L124
  mov    %rbp,%rdi
  call   <FS_FileExtension@plt>
  lea    D61(%rip),%rdi
  mov    %eax,%esi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L118
  lea    0xc(%rsp),%r13
  lea    0x10(%rsp),%r12
  mov    %rbp,%rsi
  movl   $0x19000,0xc(%rsp)
  mov    %r13,%rcx
  mov    %r12,%rdx
  lea    D1(%rip),%rdi
  call   <FS_ReadFile@plt>
  test   %eax,%eax
  je     L121
L1:
  lea    D39(%rip),%rdi
  mov    %rbp,%rsi
  xor    %eax,%eax
  call   <Sys_Printf@plt>
  mov    %r12,%rdi
  call   <Cbuf_InsertText@plt>
L93:
  mov    0x19018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L85
  add    $0x19020,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L124:
  mov    0x19018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L85
  lea    D7(%rip),%rdi
  jmp    L32
  nop
L121:
  mov    %r13,%rcx
  mov    %r12,%rdx
  lea    D49(%rip),%rdi
  mov    %rbp,%rsi
  movl   $0x19000,0xc(%rsp)
  call   <FS_ReadFile@plt>
  test   %eax,%eax
  jne    L1
  mov    %rbp,%rsi
  lea    D31(%rip),%rdi
  call   <Sys_Printf@plt>
  jmp    L93
  nopl   0x0(%rax)
L118:
  mov    0x19018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L85
  lea    D26(%rip),%rdi
  jmp    L32
L85:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D68
data_type: string
name: retrieve_data
arguments: data_tag: D61
data_type: string
name: retrieve_data
arguments: data_tag: D1
data_type: string
name: retrieve_data
arguments: data_tag: D39
data_type: string
name: retrieve_data
arguments: data_tag: D7
data_type: string
name: retrieve_data
arguments: data_tag: D49
data_type: string
name: retrieve_data
arguments: data_tag: D31
data_type: string
name: retrieve_data
arguments: data_tag: D26
data_type: string

tool: D68: exec <filename> : execute a script file


tool: D61: .cfg

tool: D1: qwfwd

tool: D39: execing %s


tool: D7: exec: absolute paths are prohibited


tool: D49: qw

tool: D31: exec: couldn't exec %s


tool: D26: exec: cfg extension required


assistant: ```c
void Cmd_Exec_f(void) {
  char buf[1024 * 100], *name;
  int size;
  if (Cmd_Argc() != 2) {
    Sys_Printf("exec <filename> : execute a script file\n");
    return;
  }
  name = Cmd_Argv(1);
  if (!FS_SafePath(name)) {
    Sys_Printf("exec: absolute paths are prohibited\n");
    return;
  }
  if (strcasecmp(".cfg", FS_FileExtension(name))) {
    Sys_Printf("exec: cfg extension required\n");
    return;
  }
  size = sizeof(buf);
  if (!FS_ReadFile("qwfwd", name, buf, &size)) {
    size = sizeof(buf);
    if (!FS_ReadFile("qw", name, buf, &size)) {
      Sys_Printf("exec: couldn't exec %s\n", name);
      return;
    }
  }
  Sys_Printf("execing %s\n", name);
  Cbuf_InsertText(buf);
}
```