user: Please show me the C implementation that matches the assembly code listed below:

```asm
<test_parse_depth>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0xc000(%rsp),%r11
L32:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L32
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc008(%rsp)
  xor    %eax,%eax
  lea    D71(%rip),%rdi
  call   <printf@plt>
  mov    %rsp,%rbp
  lea    D70(%rip),%rdx
  lea    D51(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  lea    0x4000(%rsp),%r12
  mov    %rbp,%rdx
  lea    D28(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  movb   $0x0,0x8000(%rsp)
  lea    0x8000(%rsp),%rbx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <parse_depth@plt>
  cmp    $0x3,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    %eax,%ebx
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x0,%ebx
  lea    0x8000(%rsp),%rbp
  jmp    L31
L4:
  movzbl (%rsp,%rbx,1),%eax
  cmp    %al,0x0(%rbp,%rbx,1)
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  add    $0x1,%rbx
L31:
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L4
  mov    %rsp,%r12
  lea    0x4000(%rsp),%rbx
  mov    %r12,%rdx
  lea    D65(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  lea    0x8000(%rsp),%rbp
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <parse_depth@plt>
  cmp    $0x4,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %r12,%rdx
  lea    D46(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <parse_depth@plt>
  cmp    $0x4,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %r12,%rdx
  lea    D56(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <parse_depth@plt>
  cmp    $0xffffffff,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    D62(%rip),%rdi
  call   <printf@plt>
  mov    0xc008(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0xc010,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D71
type_infered: string
name: read_data
arguments: data_label: D70
type_infered: string
name: read_data
arguments: data_label: D51
type_infered: string
name: read_data
arguments: data_label: D28
type_infered: string
name: read_data
arguments: data_label: D65
type_infered: string
name: read_data
arguments: data_label: D46
type_infered: string
name: read_data
arguments: data_label: D56
type_infered: string
name: read_data
arguments: data_label: D62
type_infered: string

tool: D71: test_parse_depth...

tool: D70: title

tool: D51: %s

tool: D28: *** %s

tool: D65: **** %s

tool: D46: ****	%s

tool: D56: *%s*

tool: D62: Ok


assistant: ```c
void test_parse_depth() {
  char title[(4096 * 4)];
  char line1[(4096 * 4)];
  char header[(4096 * 4)];
  int i;
  printf("test_parse_depth...");
  sprintf(title, "%s", "title");
  sprintf(line1, "*** %s", title);
  header[0] = 0;
  assert(parse_depth(line1, header) == 3);
  assert(strlen(header) == strlen(title));
  for (i = 0; i < strlen(header); i++) {
    assert(header[i] == title[i]);
  }
  sprintf(line1, "**** %s", title);
  assert(parse_depth(line1, header) == 4);
  sprintf(line1, "****\t%s", title);
  assert(parse_depth(line1, header) == 4);
  sprintf(line1, "*%s*", title);
  assert(parse_depth(line1, header) == -1);
  printf("Ok\n");
}
```