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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x428,%rsp
  mov    %edi,%r13d
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x418(%rsp)
  xor    %eax,%eax
  mov    0x8(%rsi),%rbp
  mov    %rbp,%rdi
  call   <atol@plt>
  mov    %eax,%r15d
  mov    $0x0,%r12d
  cmp    $0x2,%r13d
  jg     L15
L18:
  movq   $0x400,0x8(%rsp)
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%esi
  lea    0x8(%rsp),%r14
  lea    0x10(%rsp),%rbx
  mov    %r14,%r8
  mov    %rbx,%rcx
  mov    %r12d,%edx
  mov    %rbp,%rdi
  call   <level0_0_s@plt>
  mov    %rax,%rsi
  lea    D3(%rip),%r13
  mov    %r13,%rdi
  call   <printf@plt>
  movq   $0x400,0x8(%rsp)
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %r14,%rcx
  mov    %rbx,%rdx
  mov    %r12d,%esi
  mov    %r15d,%edi
  call   <level0_0@plt>
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <printf@plt>
  movq   $0x400,0x8(%rsp)
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%esi
  mov    %r14,%r8
  mov    %rbx,%rcx
  mov    %r12d,%edx
  mov    %rbp,%rdi
  call   <level1_0_s@plt>
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <printf@plt>
  movq   $0x400,0x8(%rsp)
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %r14,%rcx
  mov    %rbx,%rdx
  mov    %r12d,%esi
  mov    %r15d,%edi
  call   <level1_0@plt>
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <printf@plt>
  movq   $0x400,0x8(%rsp)
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%esi
  mov    %r14,%r8
  mov    %rbx,%rcx
  mov    %r12d,%edx
  mov    %rbp,%rdi
  call   <level1_1_s@plt>
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <printf@plt>
  movq   $0x400,0x8(%rsp)
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %r14,%rcx
  mov    %rbx,%rdx
  mov    %r12d,%esi
  mov    %r15d,%edi
  call   <level1_1@plt>
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <printf@plt>
  movq   $0x400,0x8(%rsp)
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%esi
  mov    %r14,%r8
  mov    %rbx,%rcx
  mov    %r12d,%edx
  mov    %rbp,%rdi
  call   <level2_0_s@plt>
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <printf@plt>
  movq   $0x400,0x8(%rsp)
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %r14,%rcx
  mov    %rbx,%rdx
  mov    %r12d,%esi
  mov    %r15d,%edi
  call   <level2_0@plt>
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <printf@plt>
  movq   $0x400,0x8(%rsp)
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%esi
  mov    %r14,%r8
  mov    %rbx,%rcx
  mov    %r12d,%edx
  mov    %rbp,%rdi
  call   <level2_1_s@plt>
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <printf@plt>
  movq   $0x400,0x8(%rsp)
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %r14,%rcx
  mov    %rbx,%rdx
  mov    %r12d,%esi
  mov    %r15d,%edi
  call   <level2_1@plt>
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <printf@plt>
  mov    0x418(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L23
  mov    $0x0,%eax
  add    $0x428,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L15:
  mov    0x10(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r12d
  jmp    L18
L23:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D3
data_type: string

tool: D3: %s


assistant: ```c
int main(int argc, char **argv) {
  int ge = 0;
  char *numstr = argv[1];
  int num = atol(numstr);
  if (argc > 2)
    ge = atoi(argv[2]);
  char regstr[1024];
  size_t reglen = sizeof(regstr);
  printf("%s\n", level0_0_s(numstr, strlen(numstr), ge, regstr, &reglen));
  reglen = sizeof(regstr);
  memset(regstr, 0, reglen);
  printf("%s\n", level0_0(num, ge, regstr, &reglen));
  reglen = sizeof(regstr);
  memset(regstr, 0, reglen);
  printf("%s\n", level1_0_s(numstr, strlen(numstr), ge, regstr, &reglen));
  reglen = sizeof(regstr);
  memset(regstr, 0, reglen);
  printf("%s\n", level1_0(num, ge, regstr, &reglen));
  reglen = sizeof(regstr);
  memset(regstr, 0, reglen);
  printf("%s\n", level1_1_s(numstr, strlen(numstr), ge, regstr, &reglen));
  reglen = sizeof(regstr);
  memset(regstr, 0, reglen);
  printf("%s\n", level1_1(num, ge, regstr, &reglen));
  reglen = sizeof(regstr);
  memset(regstr, 0, reglen);
  printf("%s\n", level2_0_s(numstr, strlen(numstr), ge, regstr, &reglen));
  reglen = sizeof(regstr);
  memset(regstr, 0, reglen);
  printf("%s\n", level2_0(num, ge, regstr, &reglen));
  reglen = sizeof(regstr);
  memset(regstr, 0, reglen);
  printf("%s\n", level2_1_s(numstr, strlen(numstr), ge, regstr, &reglen));
  reglen = sizeof(regstr);
  memset(regstr, 0, reglen);
  printf("%s\n", level2_1(num, ge, regstr, &reglen));
  return 0;
}
```