user: What is the c source code of the assembly code below?

```asm
<cli_read>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    0x8(%rdx),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  test   %rdi,%rdi
  je     L113
  xor    %edx,%edx
  xor    %esi,%esi
  call   <strtol@plt>
  mov    %eax,%ebx
L48:
  mov    0x10(%r12),%rdi
  test   %rdi,%rdi
  je     L59
  xor    %edx,%edx
  xor    %esi,%esi
  call   <strtol@plt>
  mov    %eax,0x8(%rsp)
  mov    %eax,%ecx
  lea    (%rbx,%rax,1),%eax
  cmp    $0x10000,%eax
  jg     L69
  test   %ecx,%ecx
  jg     L21
L65:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  add    $0x28,%rsp
  mov    $0xa,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <putchar@plt>
  nopw   0x0(%rax,%rax,1)
L69:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  add    $0x28,%rsp
  lea    D44(%rip),%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10c0 <puts@plt>
  xchg   %ax,%ax
L59:
  cmp    $0xfff0,%ebx
  jg     L69
  movl   $0x10,0x8(%rsp)
L21:
  add    $0x1,%ebx
  xor    %r13d,%r13d
  lea    0x16(%rsp),%r12
  lea    D21(%rip),%r15
  lea    D32(%rip),%r14
  nopl   0x0(%rax)
L34:
  lea    -0x1(%rbx),%edx
  test   $0xf,%r13b
  jne    L88
  test   %r13d,%r13d
  je     L19
  mov    $0xa,%edi
  mov    %edx,0xc(%rsp)
  call   <putchar@plt>
  mov    0xc(%rsp),%edx
L19:
  mov    %edx,%esi
  lea    D46(%rip),%rdi
  xor    %eax,%eax
  mov    %edx,0xc(%rsp)
  call   <printf@plt>
  mov    0xc(%rsp),%edx
L88:
  xor    %esi,%esi
  mov    %rbp,%rdi
  add    $0x2,%r13d
  call   <get_byte_at@plt>
  mov    %r12,%rsi
  mov    %eax,%edi
  call   <byte2ascii@plt>
  movsbl 0x17(%rsp),%edx
  mov    %r15,%rdi
  xor    %eax,%eax
  movsbl 0x16(%rsp),%esi
  call   <printf@plt>
  mov    %ebx,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <get_byte_at@plt>
  mov    %r12,%rsi
  add    $0x2,%ebx
  mov    %eax,%edi
  call   <byte2ascii@plt>
  movsbl 0x17(%rsp),%edx
  mov    %r14,%rdi
  xor    %eax,%eax
  movsbl 0x16(%rsp),%esi
  call   <printf@plt>
  cmp    0x8(%rsp),%r13d
  jl     L34
  jmp    L65
  nopl   0x0(%rax)
L113:
  lea    D5(%rip),%rdi
  call   <puts@plt>
  jmp    L48
L40:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D44
type: string
name: disassemble_data
arguments: data_label: D21
type: string
name: disassemble_data
arguments: data_label: D32
type: string
name: disassemble_data
arguments: data_label: D46
type: string
name: disassemble_data
arguments: data_label: D5
type: string

tool: D44: command reads out-of-bounds memory

tool: D21: %c%c

tool: D32: %c%c 

tool: D46: 0x%04x:  

tool: D5: insufficient arguments for read command

assistant: ```c
void cli_read(struct state *context, struct debug_state *dbg_context, char **args) {
  int start, nbytes, i;
  if (args[1] == NULL) {
    printf("insufficient arguments for read command\n");
  } else {
    start = strtol(args[1], NULL, 0);
  }
  if (args[2] == NULL) {
    nbytes = 16;
  } else {
    nbytes = strtol(args[2], NULL, 0);
  }
  if (start + nbytes > 0x10000) {
    printf("command reads out-of-bounds memory\n");
  } else {
    for (i = 0; i < nbytes; i += 2) {
      if (i % 16 == 0) {
        if (i) {
          printf("\n");
        }
        printf("0x%04x:  ", start + i);
      }
      char byteval[2];
      byte2ascii(get_byte_at(context, NULL, start + i), byteval);
      printf("%c%c", byteval[0], byteval[1]);
      byte2ascii(get_byte_at(context, NULL, start + i + 1), byteval);
      printf("%c%c ", byteval[0], byteval[1]);
    }
    printf("\n");
  }
}
```