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

```asm
<memdump_main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x300,%rsp
  mov    %rdi,-0x2e8(%rbp)
  mov    %esi,-0x2ec(%rbp)
  mov    %rdx,-0x2f8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x2d0(%rbp)
  movl   $0x2,-0x2cc(%rbp)
  movl   $0x3,-0x2c8(%rbp)
  movl   $0x54,-0x2c4(%rbp)
  movl   $0x55,-0x2c0(%rbp)
  movl   $0x14310,-0x2bc(%rbp)
  movl   $0x20,-0x2b8(%rbp)
  movl   $0x33,-0x2b4(%rbp)
  movl   $0x40,-0x2b0(%rbp)
  movl   $0x1000,-0x2ac(%rbp)
  movl   $0x2000,-0x2a8(%rbp)
  movl   $0x8000,-0x2a4(%rbp)
  movl   $0x0,-0x2a0(%rbp)
  movl   $0x0,-0x2d8(%rbp)
  jmp    L60
L2:
  mov    -0x2d8(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2d8(%rbp),%eax
  cltq
  mov    %dl,-0x190(%rbp,%rax,1)
  addl   $0x1,-0x2d8(%rbp)
L60:
  cmpl   $0x17f,-0x2d8(%rbp)
  jle    L2
  movl   $0x0,-0x2d8(%rbp)
  jmp    L39
L11:
  mov    -0x2d8(%rbp),%eax
  cltq
  mov    -0x2d0(%rbp,%rax,4),%edx
  lea    -0x290(%rbp),%rcx
  lea    -0x190(%rbp),%rax
  mov    $0x100,%r8d
  mov    $0x10,%esi
  mov    %rax,%rdi
  call   <csc_memdump_line@plt>
  mov    %eax,-0x2d4(%rbp)
  lea    -0x290(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <slog_csoup_format@plt>
  mov    %eax,%edx
  mov    $0x8,%esi
  mov    $0x0,%edi
  call   <slog_csoup_puts@plt>
  lea    -0x290(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x2d4(%rbp)
  je     L1
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <slog_csoup_format@plt>
  mov    %eax,%edx
  mov    $0x8,%esi
  mov    $0x0,%edi
  call   <slog_csoup_puts@plt>
  jmp    L6
L1:
  addl   $0x1,-0x2d8(%rbp)
L39:
  cmpl   $0xc,-0x2d8(%rbp)
  jle    L11
L6:
  lea    -0x190(%rbp),%rax
  add    $0x180,%rax
  lea    -0x290(%rbp),%rdx
  mov    $0x100,%r8d
  mov    %rdx,%rcx
  mov    $0x20002,%edx
  mov    $0x10,%esi
  mov    %rax,%rdi
  call   <csc_memdump_line@plt>
  lea    -0x290(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <slog_csoup_format@plt>
  mov    %eax,%edx
  mov    $0x8,%esi
  mov    $0x0,%edi
  call   <slog_csoup_puts@plt>
  lea    -0x190(%rbp),%rax
  add    $0x180,%rax
  mov    $0x0,%r8d
  mov    $0x0,%ecx
  mov    $0x20002,%edx
  mov    $0x10,%esi
  mov    %rax,%rdi
  call   <csc_memdump_line@plt>
  mov    %eax,%esi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <slog_csoup_format@plt>
  mov    %eax,%edx
  mov    $0x8,%esi
  mov    $0x0,%edi
  call   <slog_csoup_puts@plt>
  lea    -0x190(%rbp),%rax
  mov    $0x0,%ecx
  mov    $0x10,%edx
  mov    $0x180,%esi
  mov    %rax,%rdi
  call   <csc_memdump@plt>
  lea    -0x190(%rbp),%rax
  mov    $0xb002,%ecx
  mov    $0x4,%edx
  mov    $0x180,%esi
  mov    %rax,%rdi
  call   <csc_memdump@plt>
  lea    -0x190(%rbp),%rax
  add    $0x180,%rax
  mov    $0x20000,%ecx
  mov    $0x10,%edx
  mov    $0x180,%esi
  mov    %rax,%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    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <slog_csoup_format@plt>
  add    $0x10,%rsp
  mov    %eax,%edx
  mov    $0x8,%esi
  mov    $0x0,%edi
  call   <slog_csoup_puts@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L32
  call   <__stack_chk_fail@plt>
L32:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D17
type: string
name: parse_data
arguments: data_tag: D47
type: string
name: parse_data
arguments: data_tag: D27
type: string
name: parse_data
arguments: data_tag: D35
type: string

tool: D17: %s


tool: D47: BOOM!


tool: D27: SIZE=%d


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


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;
}
```