user: Demonstrate the C code that generates the assembly output below:

```asm
<load_char_table>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edx,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  test   %rdi,%rdi
  setne  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  xor    %edi,%edi
  test   %r12,%r12
  setne  %dil
  call   <assert@plt>
  mov    0x8(%rsp),%ecx
  test   %ecx,%ecx
  jle    L439
  movslq %ecx,%rdx
  xor    %esi,%esi
  mov    %r12,%rdi
  call   <memset@plt>
  mov    0x8(%rsp),%ecx
L439:
  movzbl 0x0(%r13),%eax
  cmp    $0x9,%al
  je     L139
  xor    %ebx,%ebx
  cmp    $0x20,%al
  jne    L141
L139:
  mov    $0x1,%eax
L95:
  movzbl 0x0(%r13,%rax,1),%edx
  mov    %eax,%ebx
  add    $0x1,%rax
  cmp    $0x20,%dl
  je     L95
  cmp    $0x9,%dl
  je     L95
L141:
  mov    %r13,%rdi
  mov    %ecx,0x8(%rsp)
  call   <strlen@plt>
  mov    0x8(%rsp),%ecx
  sub    %ebx,%eax
  cmp    %ebx,%eax
  mov    %eax,%r15d
  jl     L421
  xor    %r8d,%r8d
  xor    %r14d,%r14d
  lea    D52(%rip),%r9
  xor    %ebp,%ebp
  jmp    L229
  nopl   0x0(%rax,%rax,1)
L398:
  test   %r14d,%r14d
  je     L119
  cmp    $0x5c,%esi
  je     L373
L161:
  cmp    %ecx,%ebp
  je     L293
  movslq %ebp,%rdx
  add    $0x1,%ebp
  mov    %al,(%r12,%rdx,1)
L338:
  add    $0x1,%ebx
  mov    $0x1,%r14d
  cmp    %ebx,%r15d
  jl     L335
L229:
  movslq %ebx,%rax
  movsbl 0x0(%r13,%rax,1),%esi
  mov    %esi,0x1c(%rsp)
  mov    %esi,%eax
  test   %esi,%esi
  je     L254
  cmp    $0x22,%esi
  jne    L398
  test   %r14d,%r14d
  je     L338
  test   %r8d,%r8d
  jne    L216
  add    $0x1,%ebx
  mov    %r14d,%r8d
  mov    $0x1,%r14d
  cmp    %ebx,%r15d
  jge    L229
  nopl   (%rax)
L335:
  mov    $0x1,%r14d
  cmp    %ebp,%ecx
  jle    L374
  movslq %ebp,%rbp
  movb   $0x0,(%r12,%rbp,1)
  jmp    L374
  nopl   0x0(%rax)
L373:
  lea    -0x1(%r15),%eax
  cmp    %ebx,%eax
  je     L293
  lea    0x1(%rbx),%edx
  movslq %edx,%rax
  movzbl 0x0(%r13,%rax,1),%eax
  cmp    $0x30,%al
  je     L274
  cmp    $0x6e,%al
  je     L423
  jg     L177
  cmp    $0x22,%al
  je     L370
  cmp    $0x5c,%al
  jne    L1
L370:
  mov    %edx,%ebx
  jmp    L161
  nopl   (%rax)
L177:
  cmp    $0x72,%al
  jne    L85
  mov    %edx,%ebx
  mov    $0xd,%eax
  jmp    L161
  nopl   0x0(%rax,%rax,1)
L216:
  lea    D3(%rip),%rdi
  xor    %r14d,%r14d
  call   <puts@plt>
L374:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L247
  add    $0x38,%rsp
  mov    %r14d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L274:
  mov    %edx,%ebx
  xor    %eax,%eax
  jmp    L161
  nopl   0x0(%rax)
L423:
  mov    %edx,%ebx
  mov    $0xa,%eax
  jmp    L161
  nopl   0x0(%rax)
L85:
  sub    $0x3,%r15d
  cmp    %r15d,%edx
  jl     L341
L293:
  lea    D2(%rip),%rdi
  xor    %r14d,%r14d
  call   <puts@plt>
  jmp    L374
  nopw   0x0(%rax,%rax,1)
L254:
  cmp    $0x1,%r8d
  jne    L180
  test   %r14d,%r14d
  jne    L335
L180:
  lea    D17(%rip),%rdi
  xor    %r14d,%r14d
  call   <puts@plt>
  jmp    L374
L119:
  lea    D68(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L374
L341:
  lea    D65(%rip),%rdi
  xor    %r14d,%r14d
  call   <puts@plt>
  jmp    L374
L421:
  xor    %ebp,%ebp
  jmp    L335
L247:
  call   <__stack_chk_fail@plt>
L1:
  lea    -0x3(%r15),%esi
  mov    %ecx,0xc(%rsp)
  mov    %r8d,0x8(%rsp)
  cmp    %edx,%esi
  jle    L293
  lea    -0x30(%rax),%esi
  lea    0x2(%rbx),%edx
  cmp    $0x9,%sil
  ja     L341
  mov    %al,0x23(%rsp)
  movslq %edx,%rax
  add    $0x3,%ebx
  movzbl 0x0(%r13,%rax,1),%eax
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  ja     L341
  mov    %al,0x24(%rsp)
  movslq %ebx,%rax
  movzbl 0x0(%r13,%rax,1),%eax
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  ja     L341
  mov    %r9,%rsi
  lea    0x1c(%rsp),%rdx
  lea    0x23(%rsp),%rdi
  mov    %al,0x25(%rsp)
  movb   $0x0,0x26(%rsp)
  call   <sscanf@plt>
  mov    0x8(%rsp),%r8d
  mov    0xc(%rsp),%ecx
  lea    D52(%rip),%r9
  cmp    $0x1,%eax
  jne    L341
  movzbl 0x1c(%rsp),%eax
  jmp    L161
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D52
data_type: string
name: extract_symbolic_data
arguments: data_tag: D3
data_type: string
name: extract_symbolic_data
arguments: data_tag: D2
data_type: string
name: extract_symbolic_data
arguments: data_tag: D17
data_type: string
name: extract_symbolic_data
arguments: data_tag: D68
data_type: string
name: extract_symbolic_data
arguments: data_tag: D65
data_type: string

tool: D52: %03o

tool: D3: load_char_table: Unexpected '"'

tool: D2: load_char_table: String longer than expected

tool: D17: load_char_table: Unexpected end of string

tool: D68: load_char_table: Unrecognized character '%c'


tool: D65: load_char_table: Invalid octal number

assistant: ```c
int load_char_table(const char *data, char *table, int maxlen) {
  int i, j, startpos;
  char temp[5];
  int val, write, len;
  char ch;
  int start, stop;
  assert(data != NULL);
  assert(table != NULL);
  for (i = 0; i < maxlen; i++) {
    table[i] = '\0';
  }
  write = 0;
  start = 0;
  stop = 0;
  startpos = 0;
  while (data[startpos] == ' ' || data[startpos] == '\t')
    startpos++;
  len = strlen(data) - startpos;
  for (i = startpos; i <= len; i++) {
    val = data[i];
    if (val == '\0') {
      if (start == 1 && stop == 1)
        break;
      printf("load_char_table: Unexpected end of string\n");
      return 0;
    }
    if (val == '"') {
      if (start == 0) {
        start = 1;
        continue;
      } else if (stop == 0) {
        stop = 1;
        continue;
      } else {
        printf("load_char_table: Unexpected '\"'\n");
        return 0;
      }
    } else {
      if (start == 0) {
        printf("load_char_table: Unrecognized "
               "character '%c'\n",
               val);
        return 0;
      }
    }
    if (val == '\\') {
      if (i == len - 1) {
        printf("load_char_table: String longer "
               "than expected\n");
        return 0;
      }
      i++;
      if (data[i] == '0') {
        ch = '\0';
      } else if (data[i] == 'n') {
        ch = '\n';
      } else if (data[i] == 'r') {
        ch = '\r';
      } else if (data[i] == '\\') {
        ch = '\\';
      } else if (data[i] == '"') {
        ch = '"';
      } else {
        if (i >= len - 3) {
          printf("load_char_table: String "
                 "longer than expected\n");
          return 0;
        }
        for (j = 0; j < 3; j++) {
          ch = data[i];
          i++;
          if (ch < '0' || ch > '9') {
            printf("load_char_table: "
                   "Invalid octal "
                   "number\n");
            return 0;
          }
          temp[j] = ch;
        }
        i--;
        temp[3] = '\0';
        if (sscanf(temp, "%03o", &val) != 1) {
          printf("load_char_table: Invalid "
                 "octal number\n");
          return 0;
        }
        ch = val;
      }
    } else {
      ch = val;
    }
    if (write == maxlen) {
      printf("load_char_table: String longer than "
             "expected\n");
      return 0;
    }
    table[write] = ch;
    write++;
  }
  if (write < maxlen) {
    table[write] = '\0';
  }
  return 1;
}
```