user: Converte this assembly snippet into its equivalent C code:

```asm
<test_parse_depth>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  lea    -0xc000(%rsp),%r11
L32:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L32
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc020(%rbp),%rax
  lea    D52(%rip),%rdx
  lea    D79(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0xc020(%rbp),%rdx
  lea    -0x8020(%rbp),%rax
  lea    D30(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  movb   $0x0,-0x4020(%rbp)
  lea    -0x4020(%rbp),%rdx
  lea    -0x8020(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <parse_depth@plt>
  cmp    $0x3,%eax
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  lea    -0x4020(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  lea    -0xc020(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,%ebx
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  movl   $0x0,-0xc024(%rbp)
  jmp    L10
L37:
  mov    -0xc024(%rbp),%eax
  cltq
  movzbl -0x4020(%rbp,%rax,1),%edx
  mov    -0xc024(%rbp),%eax
  cltq
  movzbl -0xc020(%rbp,%rax,1),%eax
  cmp    %al,%dl
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  addl   $0x1,-0xc024(%rbp)
L10:
  lea    -0x4020(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0xc024(%rbp)
  jl     L37
  lea    -0xc020(%rbp),%rdx
  lea    -0x8020(%rbp),%rax
  lea    D70(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x4020(%rbp),%rdx
  lea    -0x8020(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <parse_depth@plt>
  cmp    $0x4,%eax
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  lea    -0xc020(%rbp),%rdx
  lea    -0x8020(%rbp),%rax
  lea    D15(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x4020(%rbp),%rdx
  lea    -0x8020(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <parse_depth@plt>
  cmp    $0x4,%eax
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  lea    -0xc020(%rbp),%rdx
  lea    -0x8020(%rbp),%rax
  lea    D56(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x4020(%rbp),%rdx
  lea    -0x8020(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <parse_depth@plt>
  cmp    $0xffffffff,%eax
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  lea    D63(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L23
  call   <__stack_chk_fail@plt>
L23:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D13
data_type: string
name: disassemble_data
arguments: tag: D52
data_type: string
name: disassemble_data
arguments: tag: D79
data_type: string
name: disassemble_data
arguments: tag: D30
data_type: string
name: disassemble_data
arguments: tag: D70
data_type: string
name: disassemble_data
arguments: tag: D15
data_type: string
name: disassemble_data
arguments: tag: D56
data_type: string
name: disassemble_data
arguments: tag: D63
data_type: string

tool: D13: test_parse_depth...

tool: D52: title

tool: D79: %s

tool: D30: *** %s

tool: D70: **** %s

tool: D15: ****	%s

tool: D56: *%s*

tool: D63: 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");
}
```