user: 下面的汇编指令对应的C源代码是什么：

```asm
<dump_context>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  mov    $0x20,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x10(%rbp)
  jmp    L16
L3:
  mov    -0xc(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L75
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  lea    D34(%rip),%rax
  mov    (%rdx,%rax,1),%rax
  mov    %rax,%rsi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L75:
  shrl   -0xc(%rbp)
  addl   $0x1,-0x10(%rbp)
L16:
  cmpl   $0x18,-0x10(%rbp)
  jle    L3
  mov    $0xa,%edi
  call   <putchar@plt>
  movl   $0x0,-0x10(%rbp)
  jmp    L61
L24:
  mov    -0x10(%rbp),%eax
  cmp    $0xb,%eax
  ja     L55
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  lea    D83(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%edx
  mov    $0x20,%ecx
  mov    -0x4(%rbp),%eax
  sar    %cl,%eax
  mov    %eax,%esi
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  lea    D34(%rip),%rax
  mov    (%rcx,%rax,1),%rax
  mov    %edx,%ecx
  mov    %esi,%edx
  mov    %rax,%rsi
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L29
L55:
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L29:
  mov    -0x10(%rbp),%eax
  cmp    $0xa,%eax
  ja     L36
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  lea    D28(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%edx
  mov    $0x20,%ecx
  mov    -0x4(%rbp),%eax
  sar    %cl,%eax
  mov    %eax,%esi
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  lea    D34(%rip),%rax
  mov    (%rcx,%rax,1),%rax
  mov    %edx,%ecx
  mov    %esi,%edx
  mov    %rax,%rsi
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L36:
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x10(%rbp)
L61:
  mov    -0x10(%rbp),%eax
  cmp    $0xb,%eax
  jbe    L24
  nop
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D0
type: string
name: read_data
arguments: data_tag: D49
type: string
name: read_data
arguments: data_tag: D10
type: string
name: read_data
arguments: data_tag: D99
type: string
name: read_data
arguments: data_tag: D66
type: string

tool: D0:   valid_regs (%08lx):

tool: D49:  %s

tool: D10:   %-8s %08x %08x

tool: D99:                             

tool: D66:       %-8s %08x %08x

assistant: ```c
void dump_context(uint64_t *context) {
  int i, j;
  unsigned int valid;
  uint64_t val;
  static char *names[] = {"ip", "sp", "bsp", "cfm", "rp", "psp", "pfs", "preds", "priunat", "ar.bspstore", "ar.rnat", "ar.unat", "ar.fpsr", "ar.lc", "ar.pfs", "(pad)", "gr4", "gr5", "gr6", "gr7", "br1", "br2", "br3", "br4", "br5"};
  static int col1[] = {
      0, 1, 2, 3, 4, 5, 6, 10, 11, 12, 13, 14,
  };
  static int col2[] = {
      7, 8, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  };
  valid = (unsigned int)(context[0] >> 32);
  printf("  valid_regs (%08lx):", valid);
  for (i = 0; i <= 24; i++) {
    if (valid & 1)
      printf(" %s", names[i]);
    valid >>= 1;
  }
  printf("\n");
  for (i = 0; i < ((sizeof(col1) / sizeof(int)) > (sizeof(col2) / sizeof(int)) ? (sizeof(col1) / sizeof(int)) : (sizeof(col2) / sizeof(int))); i++) {
    if (i < (sizeof(col1) / sizeof(int))) {
      j = col1[i];
      val = context[j + 1];
      printf("  %-8s %08x %08x", names[j], (unsigned int)(val >> 32), (unsigned int)val);
    } else
      printf("                            ");
    if (i < (sizeof(col2) / sizeof(int))) {
      j = col2[i];
      val = context[j + 1];
      printf("      %-8s %08x %08x", names[j], (unsigned int)(val >> 32), (unsigned int)val);
    }
    putchar('\n');
  }
}
```