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

```asm
<seek_config_path>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc38,%rsp
  mov    %rdi,%rbx
  mov    %rsi,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xc28(%rsp)
  xor    %eax,%eax
  lea    0x420(%rsp),%rbp
  mov    $0x800,%edx
  mov    %rbp,%rdi
  call   <strncpy@plt>
  mov    $0x800,%esi
  mov    %rbp,%rdi
  call   <trim_leading@plt>
  mov    %rbp,%rax
  mov    $0x0,%ebp
L136:
  movzbl (%rax),%edx
  test   $0xdf,%dl
  je     L43
  cmp    $0x3e,%dl
  je     L43
  add    $0x1,%ebp
  add    $0x1,%rax
  cmp    $0x1ff,%ebp
  jne    L136
L43:
  lea    0x420(%rsp),%rsi
  lea    0x20(%rsp),%rdi
  mov    %ebp,%edx
  call   <strncpy@plt>
  movslq %ebp,%rbp
  movb   $0x0,0x20(%rsp,%rbp,1)
L298:
  mov    %rbx,%rdi
  call   <fgetc@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  jne    L298
  mov    %rbx,%rdi
  call   <read_compressed_int@plt>
  mov    %eax,%r15d
  test   %eax,%eax
  jle    L29
  mov    %ebp,%r13d
  lea    0x220(%rsp),%r14
  jmp    L138
L46:
  mov    %rbx,%rdx
  mov    $0x200,%esi
  mov    %r14,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L50
  mov    D49(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,0x4(%rsp)
  mov    %r14,%rdi
  call   <strlen@plt>
  add    0x1c(%rsp),%eax
  lea    0x2(%rax),%esi
  mov    0x4(%rsp),%edx
  mov    %rbx,%rdi
  call   <fseek@plt>
  lea    0x1c(%rsp),%rdi
  mov    %rbx,%rcx
  mov    $0x1,%edx
  mov    $0x4,%esi
  call   <fread@plt>
  lea    0x20(%rsp),%rsi
  mov    %r14,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  jne    L90
  mov    D49(%rip),%rax
  mov    (%rax),%edx
  mov    0x1c(%rsp),%esi
  mov    %rbx,%rdi
  call   <fseek@plt>
  lea    0x420(%rsp),%rdi
  mov    $0x3e,%esi
  call   <strchr@plt>
  test   %rax,%rax
  je     L276
  mov    $0x3e,%esi
  mov    0x8(%rsp),%rdi
  call   <strchr@plt>
  lea    0x8(%rax),%rsi
  lea    0x420(%rsp),%rbp
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <seek_config_path>
  mov    %eax,%r12d
L276:
  mov    0xc28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  mov    %r12d,%eax
  add    $0xc38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L255:
  mov    %rbx,%rdi
  call   <fgetc@plt>
  mov    %eax,0x4(%rsp)
  mov    %rbx,%rdx
  mov    $0x200,%esi
  mov    %r14,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L276
  lea    0x20(%rsp),%rsi
  mov    %r14,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  je     L128
  mov    D49(%rip),%rax
  mov    (%rax),%r12d
  mov    %r14,%rdi
  call   <strlen@plt>
  add    0x1c(%rsp),%eax
  lea    0x3(%rax),%esi
  mov    %r12d,%edx
  mov    %rbx,%rdi
  call   <fseek@plt>
  cmpl   $0x0,0x4(%rsp)
  je     L79
  mov    D60(%rip),%rax
  mov    (%rax),%edx
  mov    $0x4,%esi
  mov    %rbx,%rdi
  call   <fseek@plt>
  jmp    L90
L128:
  mov    D49(%rip),%rax
  mov    (%rax),%edx
  mov    0x1c(%rsp),%esi
  mov    %rbx,%rdi
  call   <fseek@plt>
  mov    %ebp,%r12d
  jmp    L276
L79:
  mov    %rbx,%rdi
  call   <fgetc@plt>
  test   %eax,%eax
  jne    L79
  jmp    L90
L39:
  mov    %rbx,%rdx
  mov    $0x200,%esi
  mov    %r14,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L177
  lea    0x20(%rsp),%rsi
  mov    %r14,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  je     L150
  mov    D49(%rip),%rax
  mov    (%rax),%r12d
  mov    %r14,%rdi
  call   <strlen@plt>
  add    0x1c(%rsp),%eax
  lea    0x2(%rax),%esi
  mov    %r12d,%edx
  mov    %rbx,%rdi
  call   <fseek@plt>
  mov    %rbx,%rdi
  call   <skip_array@plt>
L90:
  add    $0x1,%r13d
  cmp    %r13d,%r15d
  je     L76
L138:
  mov    %rbx,%rdi
  call   <ftell@plt>
  mov    %eax,0x1c(%rsp)
  mov    %rbx,%rdi
  call   <fgetc@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  je     L46
  cmp    $0x1,%eax
  je     L255
  cmp    $0x2,%eax
  je     L39
L211:
  mov    %rbx,%rdi
  call   <fgetc@plt>
  test   %eax,%eax
  jne    L211
  jmp    L90
L150:
  mov    D49(%rip),%rax
  mov    (%rax),%edx
  mov    0x1c(%rsp),%esi
  mov    %rbx,%rdi
  call   <fseek@plt>
  mov    %ebp,%r12d
  jmp    L276
L76:
  mov    $0xffffffff,%r12d
  jmp    L276
L29:
  mov    $0xffffffff,%r12d
  jmp    L276
L50:
  mov    $0x1,%r12d
  jmp    L276
L177:
  mov    $0x1,%r12d
  jmp    L276
L40:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int seek_config_path(FILE *f, char *config_path) {
  int i;
  uint8_t type;
  uint32_t num_entries;
  uint32_t fp;
  char path[2048];
  char target[512];
  char buffer[512];
  strncpy(path, config_path, sizeof(path));
  trim_leading(path, sizeof(path));
  for (i = 0; i < sizeof(target) - 1; i++) {
    if (path[i] == 0 || path[i] == '>' || path[i] == ' ')
      break;
  }
  strncpy(target, path, i);
  target[i] = 0;
  while (fgetc(f) != 0)
    ;
  num_entries = read_compressed_int(f);
  for (i = 0; i < num_entries; i++) {
    fp = ftell(f);
    type = fgetc(f);
    if (type == 0) {
      if (fgets(buffer, sizeof(buffer), f) == NULL)
        return 1;
      fseek(f, fp + strlen(buffer) + 2, SEEK_SET);
      fread(&fp, 4, 1, f);
      if (stricmp(buffer, target))
        continue;
      fseek(f, fp, SEEK_SET);
      if (strchr(path, '>') == NULL)
        return 0;
      strcpy(path, strchr(config_path, '>') + 2);
      return seek_config_path(f, path);
    } else if (type == 1) {
      type = fgetc(f);
      if (fgets(buffer, sizeof(buffer), f) == NULL)
        return 1;
      if (stricmp(buffer, target) == 0) {
        fseek(f, fp, SEEK_SET);
        return 0;
      }
      fseek(f, fp + strlen(buffer) + 3, SEEK_SET);
      if (type == 0)
        while (fgetc(f) != 0)
          ;
      else
        fseek(f, 4, SEEK_CUR);
    } else if (type == 2) {
      if (fgets(buffer, sizeof(buffer), f) == NULL)
        return 1;
      if (stricmp(buffer, target) == 0) {
        fseek(f, fp, SEEK_SET);
        return 0;
      }
      fseek(f, fp + strlen(buffer) + 2, SEEK_SET);
      skip_array(f);
    } else {
      while (fgetc(f) != 0)
        ;
    }
  }
  return -1;
}
```