user: 请将以下的汇编代码转换成C语言代码：

```asm
<args>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdx,0x18(%rsp)
  mov    %rcx,(%rsp)
  mov    %r8,0x8(%rsp)
  mov    %r9,0x10(%rsp)
  cmp    $0x1,%edi
  jle    L252
  lea    0x8(%rsi),%rbx
  lea    -0x2(%rdi),%eax
  lea    0x10(%rsi,%rax,8),%r15
  lea    D12(%rip),%r12
  lea    D129(%rip),%r13
  lea    D111(%rip),%r14
  jmp    L187
L99:
  lea    D23(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
L190:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L10:
  lea    D40(%rip),%rdi
  call   <printf@plt>
  lea    D183(%rip),%rdi
  call   <printf@plt>
  lea    D22(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L190
L15:
  mov    (%rsp),%rax
  movl   $0x1,(%rax)
L173:
  add    $0x8,%rbx
  cmp    %r15,%rbx
  je     L177
L187:
  mov    %r12,%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L99
  mov    %r13,%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L10
  mov    $0x8,%edx
  mov    %r14,%rsi
  mov    (%rbx),%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L146
  lea    D95(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L15
  lea    D166(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L89
  mov    (%rsp),%rax
  movl   $0x2,(%rax)
  jmp    L173
L89:
  lea    D161(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L8
  mov    (%rsp),%rax
  movl   $0x3,(%rax)
  jmp    L173
L8:
  lea    D165(%rip),%rdi
  call   <printf@plt>
  jmp    L173
L146:
  mov    $0x6,%edx
  lea    D30(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L204
  lea    D84(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L118
  mov    0x8(%rsp),%rax
  movb   $0xff,(%rax)
  jmp    L173
L118:
  lea    D190(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L154
  mov    0x8(%rsp),%rax
  movb   $0x0,(%rax)
  jmp    L173
L154:
  lea    D112(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L76
  mov    0x8(%rsp),%rax
  movb   $0x1,(%rax)
  jmp    L173
L76:
  lea    D202(%rip),%rdi
  call   <printf@plt>
  jmp    L173
L204:
  mov    $0x7,%edx
  lea    D121(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L317
  mov    $0x8,%edx
  lea    D156(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L18
  mov    0x10(%rsp),%rax
  movl   $0x1,(%rax)
  jmp    L173
L18:
  mov    $0x8,%edx
  lea    D10(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L173
  mov    0x10(%rsp),%rax
  movl   $0x0,(%rax)
  jmp    L173
L317:
  mov    $0xb,%edx
  lea    D207(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L311
  mov    (%rbx),%rdi
  call   <strlen@plt>
  lea    -0xa(%rax),%edi
  call   <malloc@plt>
  mov    (%rbx),%rsi
  add    $0xb,%rsi
  mov    %rax,%rbp
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <atoi@plt>
  mov    0x60(%rsp),%rcx
  mov    %eax,(%rcx)
  jmp    L173
L311:
  mov    $0xb,%edx
  lea    D19(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L141
  mov    (%rbx),%rdi
  call   <strlen@plt>
  lea    -0xa(%rax),%edi
  call   <malloc@plt>
  mov    (%rbx),%rsi
  add    $0xb,%rsi
  mov    %rax,%rbp
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <atoi@plt>
  mov    0x60(%rsp),%rcx
  mov    %eax,(%rcx)
  jmp    L173
L141:
  mov    (%rbx),%rsi
  mov    0x18(%rsp),%rdi
  call   <strcpy@plt>
  jmp    L173
L177:
  mov    $0x1,%eax
  jmp    L190
L252:
  mov    $0x1,%eax
  jmp    L190
```

tool_calls: name: disassemble_data
arguments: data_label: D12
data_type: string
name: disassemble_data
arguments: data_label: D129
data_type: string
name: disassemble_data
arguments: data_label: D111
data_type: string
name: disassemble_data
arguments: data_label: D23
data_type: string
name: disassemble_data
arguments: data_label: D40
data_type: string
name: disassemble_data
arguments: data_label: D183
data_type: string
name: disassemble_data
arguments: data_label: D22
data_type: string
name: disassemble_data
arguments: data_label: D95
data_type: string
name: disassemble_data
arguments: data_label: D166
data_type: string
name: disassemble_data
arguments: data_label: D161
data_type: string
name: disassemble_data
arguments: data_label: D165
data_type: string
name: disassemble_data
arguments: data_label: D30
data_type: string
name: disassemble_data
arguments: data_label: D84
data_type: string
name: disassemble_data
arguments: data_label: D190
data_type: string
name: disassemble_data
arguments: data_label: D112
data_type: string
name: disassemble_data
arguments: data_label: D202
data_type: string
name: disassemble_data
arguments: data_label: D121
data_type: string
name: disassemble_data
arguments: data_label: D156
data_type: string
name: disassemble_data
arguments: data_label: D10
data_type: string
name: disassemble_data
arguments: data_label: D207
data_type: string
name: disassemble_data
arguments: data_label: D19
data_type: string

tool: D12: --version

tool: D129: --help

tool: D111: --width=

tool: D23: BestFriend brainfuck interpreter


tool: D40: Usage: bestfriend [FILE]


tool: D183: Runs FILE as a brainfuck program.


tool: D22: If multiple FILEs are given, the last will be run.


tool: D95: --width=32

tool: D166: --width=16

tool: D161: --width=8

tool: D165: Invalid cell width, defaulting to 32-bit.


tool: D30: --eof=

tool: D84: --eof=-1

tool: D190: --eof=0

tool: D112: --eof=nochg

tool: D202: Invalid EOF behaviour, defaulting to -1.


tool: D121: --wrap=

tool: D156: --wrap=y

tool: D10: --wrap=n

tool: D207: --fwdbound=

tool: D19: --revbound=

assistant: ```c
bool args(int argc, char **argv, char *bfpath, int *cwidth, char *eofval, bool *wrap, int *max_fwdsize, int *max_revsize) {
  char *temp;
  for (int i = 1; i < argc; i++) {
    if (strcmp(argv[i], "--version") == 0) {
      printf("BestFriend brainfuck interpreter\n");
      return false;
    } else if (strcmp(argv[i], "--help") == 0) {
      printf("Usage: bestfriend [FILE]\n");
      printf("Runs FILE as a brainfuck program.\n");
      printf("If multiple FILEs are given, the last will be run.\n");
      return false;
    } else if (strncmp(argv[i], "--width=", 8) == 0) {
      if (strcmp(argv[i], "--width=32") == 0) {
        *cwidth = 1;
      } else if (strcmp(argv[i], "--width=16") == 0) {
        *cwidth = 2;
      } else if (strcmp(argv[i], "--width=8") == 0) {
        *cwidth = 3;
      } else {
        printf("Invalid cell width, defaulting to 32-bit.\n");
      }
    } else if (strncmp(argv[i], "--eof=", 6) == 0) {
      if (strcmp(argv[i], "--eof=-1") == 0) {
        *eofval = -1;
      } else if (strcmp(argv[i], "--eof=0") == 0) {
        *eofval = 0;
      } else if (strcmp(argv[i], "--eof=nochg") == 0) {
        *eofval = 1;
      } else {
        printf("Invalid EOF behaviour, defaulting to -1.\n");
      }
    } else if (strncmp(argv[i], "--wrap=", 7) == 0) {
      if (strncmp(argv[i], "--wrap=y", 8) == 0) {
        *wrap = true;
      } else if (strncmp(argv[i], "--wrap=n", 8) == 0) {
        *wrap = false;
      }
    } else if (strncmp(argv[i], "--fwdbound=", 11) == 0) {
      temp = malloc((strlen(argv[i]) - 10) * sizeof(char));
      strcpy(temp, argv[i] + 11);
      *max_fwdsize = atoi(temp);
    } else if (strncmp(argv[i], "--revbound=", 11) == 0) {
      temp = malloc((strlen(argv[i]) - 10) * sizeof(char));
      strcpy(temp, argv[i] + 11);
      *max_fwdsize = atoi(temp);
    } else {
      strcpy(bfpath, argv[i]);
    }
  }
  return true;
}
```