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

```asm
<parseInfo>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,0xc(%rsp)
  mov    %rsi,%rbp
  mov    %rdx,%rbx
  mov    %r8,%r12
  mov    %r9,%r15
  mov    0x50(%rsp),%r13
  movzbl (%rsi),%eax
  cmp    $0x73,%al
  je     L14
  cmp    $0x64,%al
  je     L184
  cmp    $0x6c,%al
  je     L87
  cmp    $0x62,%al
  jne    L42
L87:
  movl   $0x3,(%rcx)
  jmp    L110
L14:
  movl   $0x7,(%rcx)
L110:
  movzbl 0x1(%rbp),%eax
  cmp    $0x63,%al
  je     L163
  cmp    $0x72,%al
  jne    L44
  movl   $0x0,(%r12)
  jmp    L171
L184:
  movl   $0x6,(%rcx)
  jmp    L110
L42:
  lea    D21(%rip),%rdi
  call   <ERROR@plt>
  jmp    L110
L163:
  movl   $0x1,(%r12)
L171:
  movl   $0x1,0x0(%r13)
  cmpb   $0x5b,(%rbx)
  sete   %al
  movzbl %al,%eax
  add    %rax,%rbx
  cmpb   $0x0,(%rbx)
  je     L230
  cmpl   $0x0,0xc(%rsp)
  jle    L230
  mov    %r15,%r12
  mov    $0x0,%ebp
  jmp    L3
L44:
  lea    D0(%rip),%rdi
  call   <ERROR@plt>
  jmp    L171
L221:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  jbe    L221
  lea    -0x2d(%rax),%edx
  cmp    $0x1,%dl
  jbe    L221
L81:
  cmp    $0x78,%al
  sete   %al
  movzbl %al,%eax
  add    %rax,%rbx
  add    $0x1,%ebp
  add    $0x4,%r12
  cmpb   $0x0,(%rbx)
  je     L71
  cmp    %ebp,0xc(%rsp)
  jle    L71
L3:
  mov    %r12,%rdx
  lea    D4(%rip),%rsi
  mov    %rbx,%rdi
  call   <sscanf@plt>
  test   %eax,%eax
  je     L71
  cmpb   $0x5d,(%rbx)
  je     L71
  mov    0x0(%r13),%eax
  imul   (%r12),%eax
  mov    %eax,0x0(%r13)
  movzbl (%rbx),%eax
  lea    -0x2d(%rax),%edx
  cmp    $0x1,%dl
  jbe    L221
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  jbe    L221
  jmp    L81
L230:
  mov    $0x0,%ebp
L71:
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cmp    %ebp,%eax
  jle    L54
  cltq
L132:
  movl   $0x1,(%r15,%rax,4)
  sub    $0x1,%rax
  cmp    %eax,%ebp
  jl     L132
  mov    %ebp,%eax
L54:
  movslq %eax,%rdx
  movl   $0x1,(%r15,%rdx,4)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D21
type_guessed: string
name: extract_symbolic_data
arguments: tag: D0
type_guessed: string
name: extract_symbolic_data
arguments: tag: D4
type_guessed: string

tool: D21: Unsupported type string

tool: D0: Unsupported complex type

tool: D4: %d

assistant: ```c
int parseInfo(int nd, char *typestr, char *szstr, int *type, int *complexp, int *sz, int *numel) {
  char *cp = szstr;
  int i, nch;
  if (typestr[0] == 's')
    *type = 7;
  else if (typestr[0] == 'd')
    *type = 6;
  else if (typestr[0] == 'l' || typestr[0] == 'b')
    *type = 3;
  else
    ERROR("Unsupported type string");
  if (typestr[1] == 'c')
    *complexp = 1;
  else if (typestr[1] == 'r')
    *complexp = 0;
  else
    ERROR("Unsupported complex type");
  *numel = 1;
  if (*cp == '[')
    cp++;
  for (i = 0; *cp != 0 && i < nd; i++) {
    nch = sscanf(cp, "%d", sz + i);
    if (nch == 0 || *cp == ']')
      break;
    *numel *= sz[i];
    for (; (*cp >= '0' && *cp <= '9') || *cp == '.' || *cp == '-'; cp++)
      ;
    if (*cp == 'x')
      cp++;
  }
  if (*cp == ']')
    cp++;
  for (nd--; i < nd; nd--) {
    sz[nd] = 1;
  }
  sz[nd] = 1;
  return nd;
}
```