user: Translate the below assembly code into C programming language:

```asm
<parseInfo>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %r9,%r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x18,%rsp
  movzbl (%rsi),%eax
  mov    %edi,0x4(%rsp)
  mov    0x50(%rsp),%rbp
  cmp    $0x73,%al
  je     L149
  cmp    $0x64,%al
  je     L4
  cmp    $0x6c,%al
  je     L184
  cmp    $0x62,%al
  jne    L124
L184:
  movl   $0x3,(%rcx)
  movzbl 0x1(%r13),%eax
  cmp    $0x63,%al
  jne    L153
L209:
  movl   $0x1,(%r8)
  jmp    L15
L4:
  movl   $0x6,(%rcx)
L248:
  movzbl 0x1(%r13),%eax
  cmp    $0x63,%al
  je     L209
L153:
  cmp    $0x72,%al
  jne    L23
  movl   $0x0,(%r8)
L15:
  movl   $0x1,0x0(%rbp)
  movzbl (%rbx),%eax
  cmp    $0x5b,%al
  jne    L242
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
L242:
  mov    0x4(%rsp),%edx
  test   %edx,%edx
  jle    L63
  test   %al,%al
  je     L63
  mov    %r12,%r15
  xor    %r14d,%r14d
  lea    D11(%rip),%r13
  nopl   0x0(%rax)
L86:
  mov    %r15,%rdx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <sscanf@plt>
  test   %eax,%eax
  je     L162
  cmpb   $0x5d,(%rbx)
  je     L162
  mov    0x0(%rbp),%eax
  imul   (%r15),%eax
  mov    %eax,0x0(%rbp)
  movzbl (%rbx),%eax
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  ja     L246
  nopl   0x0(%rax)
L19:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  jbe    L19
L246:
  lea    -0x2d(%rax),%edx
  cmp    $0x1,%dl
  jbe    L19
  cmp    $0x78,%al
  sete   %al
  add    $0x1,%r14d
  add    $0x4,%r15
  movzbl %al,%eax
  add    %rax,%rbx
  cmpb   $0x0,(%rbx)
  je     L162
  cmp    %r14d,0x4(%rsp)
  jg     L86
L162:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  cmp    %r14d,%eax
  jle    L206
  cltq
  nopl   (%rax)
L22:
  movl   $0x1,(%r12,%rax,4)
  sub    $0x1,%rax
  cmp    %eax,%r14d
  jl     L22
L114:
  movslq %r14d,%rax
  movl   $0x1,(%r12,%rax,4)
  add    $0x18,%rsp
  mov    %r14d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L149:
  movl   $0x7,(%rcx)
  jmp    L248
L23:
  lea    D16(%rip),%rdi
  call   <ERROR@plt>
  jmp    L15
L124:
  lea    D23(%rip),%rdi
  mov    %r8,0x8(%rsp)
  call   <ERROR@plt>
  mov    0x8(%rsp),%r8
  jmp    L248
L206:
  mov    %eax,%r14d
  jmp    L114
L63:
  xor    %r14d,%r14d
  jmp    L162
```

tool_calls: name: retrieve_data
arguments: label: D11
data_type: string
name: retrieve_data
arguments: label: D16
data_type: string
name: retrieve_data
arguments: label: D23
data_type: string

tool: D11: %d

tool: D16: Unsupported complex type

tool: D23: Unsupported type string

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;
}
```