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

```asm
<parse_innermost>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0xd8,%rsp
  mov    %rdi,-0x98(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0xa0(%rbp)
  movl   $0x0,-0x8c(%rbp)
  movl   $0x0,-0x88(%rbp)
  movl   $0x0,-0x84(%rbp)
  jmp    L22
L187:
  addl   $0x1,-0x88(%rbp)
  mov    -0x84(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  jne    L145
  mov    -0x84(%rbp),%eax
  mov    %eax,-0x8c(%rbp)
  movl   $0x0,-0x88(%rbp)
  jmp    L3
L145:
  mov    -0x84(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  je     L144
L3:
  addl   $0x1,-0x84(%rbp)
L22:
  mov    -0x98(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x84(%rbp)
  jl     L187
  jmp    L20
L144:
  nop
L20:
  mov    -0x88(%rbp),%eax
  lea    0x2(%rax),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x78(%rbp)
  movslq %edx,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  movslq %edx,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %edx,%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L185:
  cmp    %rcx,%rsp
  je     L67
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L185
L67:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L15
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L15:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x70(%rbp)
  mov    -0x88(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    -0x8c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x98(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x70(%rbp),%rax
  mov    %esi,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x88(%rbp),%eax
  add    $0x1,%eax
  mov    -0x70(%rbp),%rdx
  cltq
  movb   $0x0,(%rdx,%rax,1)
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <parse_buffer@plt>
  mov    -0x98(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  sub    -0x8c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x88(%rbp),%eax
  add    %edx,%eax
  add    $0x1,%eax
  mov    %eax,-0x80(%rbp)
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x68(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movslq %edx,%rax
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L77:
  cmp    %rdx,%rsp
  je     L83
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L77
L83:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L142
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L142:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x80(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L148:
  cmp    %rdx,%rsp
  je     L87
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L148
L87:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L106
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L106:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %eax,%ebx
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %ebx,%eax
  mov    %eax,-0x7c(%rbp)
  mov    -0x7c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L123:
  cmp    %rdx,%rsp
  je     L212
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L123
L212:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L128
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L128:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x40(%rbp)
  cmpl   $0x0,-0x8c(%rbp)
  jle    L31
  mov    -0x8c(%rbp),%edx
  mov    -0x98(%rbp),%rcx
  mov    -0x60(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x8c(%rbp),%eax
  add    $0x1,%eax
  mov    -0x60(%rbp),%rdx
  cltq
  movb   $0x0,(%rdx,%rax,1)
  mov    -0x60(%rbp),%rdx
  mov    -0x40(%rbp),%rax
  lea    D10(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L31:
  mov    -0x70(%rbp),%rcx
  mov    -0x40(%rbp),%rdx
  mov    -0x40(%rbp),%rax
  lea    D35(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  cmpl   $0x0,-0x80(%rbp)
  jle    L203
  mov    -0x8c(%rbp),%edx
  mov    -0x88(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x98(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x80(%rbp),%edx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x80(%rbp),%eax
  add    $0x1,%eax
  mov    -0x50(%rbp),%rdx
  cltq
  movb   $0x0,(%rdx,%rax,1)
  mov    -0x50(%rbp),%rcx
  mov    -0x40(%rbp),%rdx
  mov    -0x40(%rbp),%rax
  lea    D35(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L203:
  mov    -0x40(%rbp),%rdx
  mov    -0x98(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x98(%rbp),%rax
  lea    D18(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L52
  mov    -0x98(%rbp),%rax
  mov    %rax,%rdi
  call   <parse_innermost>
L52:
  mov    -0xa0(%rbp),%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L37
  call   <__stack_chk_fail@plt>
L37:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: tag: D10
type_infered: string
name: read_data
arguments: tag: D35
type_infered: string
name: read_data
arguments: tag: D18
type_infered: string

tool: D10: %s

tool: D35: %s%s

tool: D18: (

assistant: ```c
void parse_innermost(char *line) {
  int pos = 0, length = 0;
  for (int i = 0; i < strlen(line); i++) {
    length++;
    if (line[i] == '(') {
      pos = i;
      length = 0;
    } else if (line[i] == ')') {
      break;
    }
  }
  char subseq[length + 2];
  memcpy(subseq, &line[pos], length + 1);
  subseq[length + 1] = 0x00;
  parse_buffer(subseq);
  int sufc = strlen(line) - pos + length + 1;
  char pre[pos];
  char suf[sufc];
  int mergedc = strlen(pre) + strlen(suf) + strlen(subseq);
  char merged[mergedc];
  if (pos > 0) {
    memcpy(pre, &line[0], pos);
    pre[pos + 1] = 0x00;
    sprintf(merged, "%s", pre);
  }
  sprintf(merged, "%s%s", merged, subseq);
  if (sufc > 0) {
    memcpy(suf, &line[pos + length + 1], sufc);
    suf[sufc + 1] = 0x00;
    sprintf(merged, "%s%s", merged, suf);
  }
  strcpy(line, merged);
  if (strstr(line, "(")) {
    parse_innermost(line);
  }
}
```