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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x30000(%rsp),%r11
L170:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L170
  sub    $0xd78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x30d68(%rsp)
  xor    %eax,%eax
  movl   $0x1e,0x1c(%rsp)
  movq   $0x0,0x20(%rsp)
  movq   $0x0,0x28(%rsp)
  lea    0x30(%rsp),%rdi
  mov    $0x18690,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  mov    $0x1,%ebp
  lea    0x1f(%rsp),%r12
L120:
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %al,(%r12,%rbp,1)
  mov    %ebp,%ebx
  add    $0x1,%rbp
  cmp    $0x23,%al
  jne    L120
  movq   $0x0,0x186c0(%rsp)
  movq   $0x0,0x186c8(%rsp)
  lea    0x186d0(%rsp),%rdi
  mov    $0x18690,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    $0x1,%ebp
  lea    0x186bf(%rsp),%r12
L1:
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %al,(%r12,%rbp,1)
  mov    %ebp,%r14d
  add    $0x1,%rbp
  cmp    $0xa,%al
  jne    L1
  cmpb   $0x4e,0x186c0(%rsp)
  je     L194
L143:
  lea    0x1c(%rsp),%rdi
  call   <create_sheet@plt>
  mov    %rax,%r13
  mov    $0x0,%r12d
  lea    D11(%rip),%rbp
  lea    0x20(%rsp),%rax
  mov    %rax,0x8(%rsp)
  lea    D16(%rip),%r15
  jmp    L76
L194:
  cmpb   $0x55,0x186c1(%rsp)
  jne    L143
  cmpb   $0x4c,0x186c2(%rsp)
  jne    L143
  cmpb   $0x4c,0x186c3(%rsp)
  jne    L143
  movb   $0x0,0x186c3(%rsp)
  movb   $0x0,0x186c2(%rsp)
  movb   $0x0,0x186c1(%rsp)
  movb   $0x0,0x186c0(%rsp)
  jmp    L143
  movslq %r12d,%rax
  addb   $0x1,0x0(%r13,%rax,1)
L76:
  movslq %ebx,%rax
  movzbl 0x20(%rsp,%rax,1),%eax
  lea    -0x2b(%rax),%edx
  movzbl %dl,%esi
L121:
  test   %al,%al
  je     L138
  cmp    $0x32,%dl
  ja     L121
  movslq 0x0(%rbp,%rsi,4),%rcx
  add    %rbp,%rcx
  notrack jmp *%rcx
  movslq %r12d,%rax
  subb   $0x1,0x0(%r13,%rax,1)
  jmp    L76
  lea    0x1(%r12),%eax
  cltd
  idivl  0x1c(%rsp)
  mov    %edx,%r12d
  jmp    L76
  mov    0x1c(%rsp),%edi
  lea    -0x1(%r12,%rdi,1),%eax
  cltd
  idiv   %edi
  mov    %edx,%r12d
  jmp    L76
  movslq %r12d,%rax
  movslq %r14d,%rdx
  movzbl 0x186c0(%rsp,%rdx,1),%edx
  mov    %dl,0x0(%r13,%rax,1)
  add    $0x1,%r14d
  jmp    L76
  movslq %r12d,%rax
  movsbl 0x0(%r13,%rax,1),%esi
  mov    %r15,%rdi
  call   <printf@plt>
  jmp    L76
  mov    %ebx,%edi
  call   <push@plt>
  movslq %r12d,%rax
  cmpb   $0x0,0x0(%r13,%rax,1)
  jne    L76
  mov    $0x0,%eax
  call   <pop@plt>
  mov    0x8(%rsp),%rdi
  call   <toIFE@plt>
  jmp    L76
  mov    $0x0,%eax
  call   <pop@plt>
  sub    $0x1,%rax
  cmovns %eax,%ebx
  jmp    L76
L138:
  mov    0x30d68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L157
  mov    $0x0,%eax
  add    $0x30d78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L157:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D16
type_guessed: string

tool: D16: %c

assistant: ```c
int main(int argc, char **argv) {
  int buffsize = 30;
  char inf[100000] = {0};
  int incur = 0;
  char s = 'a';
  while (s != '#') {
    s = getchar();
    inf[incur] = s;
    incur++;
  }
  char input[100000] = {0};
  int inputcur = 0;
  s = getchar();
  s = 'a';
  while (s != '\n') {
    s = getchar();
    input[inputcur] = s;
    inputcur++;
  }
  if (input[0] == 'N' && input[1] == 'U' && input[2] == 'L' && input[3] == 'L') {
    input[0] = input[1] = input[2] = input[3] = 0;
  }
  char *sheet;
  int cur = 0;
  sheet = create_sheet(&buffsize);
  char ch;
  while (ch = inf[incur]) {
    switch (ch) {
    case '+':
      sheet[cur] += 1;
      break;
    case '-':
      sheet[cur] -= 1;
      break;
    case '>':
      cur = (cur + 1) % buffsize;
      break;
    case '<':
      cur = (cur - 1 + buffsize) % buffsize;
      break;
    case ',':
      sheet[cur] = input[inputcur];
      inputcur++;
      break;
    case '.':
      printf("%c", sheet[cur]);
      break;
    case '[': {
      push(incur);
      if (sheet[cur]) {
      } else {
        pop();
        toIFE(inf);
      }
      break;
    }
    case ']': {
      long cut_f = (long)pop() - 1;
      if (cut_f >= 0) {
        incur = cut_f;
      } else {
      }
      break;
    }
    }
  }
  return 0;
}
```