user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<memdump_main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x2d0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x2c8(%rsp)
  xor    %eax,%eax
  movl   $0x1,(%rsp)
  movl   $0x2,0x4(%rsp)
  movl   $0x3,0x8(%rsp)
  movl   $0x54,0xc(%rsp)
  movl   $0x55,0x10(%rsp)
  movl   $0x14310,0x14(%rsp)
  movl   $0x20,0x18(%rsp)
  movl   $0x33,0x1c(%rsp)
  movl   $0x40,0x20(%rsp)
  movl   $0x1000,0x24(%rsp)
  movl   $0x2000,0x28(%rsp)
  movl   $0x8000,0x2c(%rsp)
  movl   $0x0,0x30(%rsp)
L6:
  mov    %al,0x140(%rsp,%rax,1)
  add    $0x1,%rax
  cmp    $0x180,%rax
  jne    L6
  mov    %rsp,%r12
  lea    0x34(%rsp),%r14
  lea    D22(%rip),%r13
L35:
  lea    0x40(%rsp),%rbp
  lea    0x140(%rsp),%rdi
  mov    $0x100,%r8d
  mov    %rbp,%rcx
  mov    (%r12),%edx
  mov    $0x10,%esi
  call   <csc_memdump_line@plt>
  mov    %eax,%ebx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <slog_csoup_format@plt>
  mov    %eax,%edx
  mov    $0x8,%esi
  mov    $0x0,%edi
  call   <slog_csoup_puts@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    %eax,%ebx
  jne    L7
  add    $0x4,%r12
  cmp    %r14,%r12
  jne    L35
L10:
  lea    0x40(%rsp),%r12
  lea    0x140(%rsp),%rbp
  lea    0x2c0(%rsp),%rbx
  mov    $0x100,%r8d
  mov    %r12,%rcx
  mov    $0x20002,%edx
  mov    $0x10,%esi
  mov    %rbx,%rdi
  call   <csc_memdump_line@plt>
  mov    %r12,%rsi
  lea    D22(%rip),%rdi
  mov    $0x0,%eax
  call   <slog_csoup_format@plt>
  mov    %eax,%edx
  mov    $0x8,%esi
  mov    $0x0,%edi
  call   <slog_csoup_puts@plt>
  mov    $0x0,%r8d
  mov    $0x0,%ecx
  mov    $0x20002,%edx
  mov    $0x10,%esi
  mov    %rbx,%rdi
  call   <csc_memdump_line@plt>
  mov    %eax,%esi
  lea    D18(%rip),%rdi
  mov    $0x0,%eax
  call   <slog_csoup_format@plt>
  mov    %eax,%edx
  mov    $0x8,%esi
  mov    $0x0,%edi
  call   <slog_csoup_puts@plt>
  mov    $0x0,%ecx
  mov    $0x10,%edx
  mov    $0x180,%esi
  mov    %rbp,%rdi
  call   <csc_memdump@plt>
  mov    $0xb002,%ecx
  mov    $0x4,%edx
  mov    $0x180,%esi
  mov    %rbp,%rdi
  call   <csc_memdump@plt>
  mov    $0x20000,%ecx
  mov    $0x10,%edx
  mov    $0x180,%esi
  mov    %rbx,%rdi
  call   <csc_memdump@plt>
  sub    $0x8,%rsp
  push   $0x8
  mov    $0x4,%r9d
  mov    $0x8,%r8d
  mov    $0x2,%ecx
  mov    $0x8,%edx
  mov    $0x4,%esi
  lea    D28(%rip),%rdi
  mov    $0x0,%eax
  call   <slog_csoup_format@plt>
  mov    %eax,%edx
  mov    $0x8,%esi
  mov    $0x0,%edi
  call   <slog_csoup_puts@plt>
  add    $0x10,%rsp
  mov    0x2c8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  mov    $0x0,%eax
  add    $0x2d0,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L7:
  lea    D24(%rip),%rdi
  mov    $0x0,%eax
  call   <slog_csoup_format@plt>
  mov    %eax,%edx
  mov    $0x8,%esi
  mov    $0x0,%edi
  call   <slog_csoup_puts@plt>
  jmp    L10
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D22
datatype: string
name: extract_symbolic_data
arguments: tag: D18
datatype: string
name: extract_symbolic_data
arguments: tag: D28
datatype: string
name: extract_symbolic_data
arguments: tag: D24
datatype: string

tool: D22: %s


tool: D18: SIZE=%d


tool: D28: Sizeof: int=%ld long=%ld short=%ld longlong=%ld float=%d double=%d


tool: D24: BOOM!


assistant: ```c
int memdump_main(void *rtime, int argc, char **argv) {
  char user[384], buf[256];
  int i, len;
  int flags[] = {1, 2, 3, 4 | 0x50, 5 | 0x50, 0x10 | (((3) << 8) & 0xf00) | 0x10000 | 0x4000, 0x20, 0x30 | 3, 0x40, 0x1000, 0x2000, 0x8000, 0};
  (void)rtime;
  (void)argc;
  (void)argv;
  for (i = 0; i < (int)sizeof(user); user[i] = i, i++)
    ;
  for (i = 0; i < (int)(sizeof(flags) / sizeof(int)); i++) {
    len = csc_memdump_line(user, 16, flags[i], buf, sizeof(buf));
    slog_csoup_puts(0, (8 | 0), slog_csoup_format("%s\n", buf));
    if (len != (int)strlen(buf)) {
      slog_csoup_puts(0, (8 | 0), slog_csoup_format("BOOM!\n"));
      break;
    }
  }
  csc_memdump_line(user + sizeof(user), 16, 2 | 0x20000, buf, sizeof(buf));
  slog_csoup_puts(0, (8 | 0), slog_csoup_format("%s\n", buf));
  slog_csoup_puts(0, (8 | 0), slog_csoup_format("SIZE=%d\n", csc_memdump_line(user + sizeof(user), 16, 2 | 0x20000, NULL, 0)));
  csc_memdump(user, sizeof(user), 16, 0);
  csc_memdump(user, sizeof(user), 4, 2 | 0x1000 | 0x2000 | 0x8000);
  csc_memdump(user + sizeof(user), sizeof(user), 16, 0x20000);
  slog_csoup_puts(0, (8 | 0), slog_csoup_format("Sizeof: int=%ld long=%ld short=%ld longlong=%ld float=%d double=%d\n", sizeof(int), sizeof(long), sizeof(short), sizeof(long long), sizeof(float), sizeof(double)));
  return 0;
}
```