user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x18000(%rsp),%r11
L103:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L103
  sub    $0x6e8,%rsp
  lea    D29(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x186d8(%rsp)
  xor    %eax,%eax
  lea    0x2c(%rsp),%rsi
  call   <scanf@plt>
  mov    0x2c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x2c(%rsp)
  test   %eax,%eax
  jle    L202
  lea    0x30(%rsp),%r12
  nopw   0x0(%rax,%rax,1)
L151:
  xor    %eax,%eax
  mov    %r12,%rsi
  lea    D9(%rip),%rdi
  call   <scanf@plt>
  cmpb   $0x0,0x30(%rsp)
  je     L163
  lea    0x31(%rsp),%rax
  xor    %r13d,%r13d
  nopl   0x0(%rax)
L39:
  add    $0x1,%rax
  mov    %r13d,%ebp
  add    $0x1,%r13d
  cmpb   $0x0,-0x1(%rax)
  jne    L39
  movl   $0x1,0x14(%rsp)
  mov    %ebp,%r15d
  xor    %ebx,%ebx
  xor    %r14d,%r14d
  jmp    L164
  xchg   %ax,%ax
L81:
  movslq %r14d,%r10
  movzbl 0x30(%rsp,%r10,1),%eax
  cmp    $0x63,%al
  je     L41
  movslq %r15d,%r11
  movzbl 0x30(%rsp,%r11,1),%ecx
  cmp    $0x63,%cl
  je     L108
  cmp    %cl,%al
  je     L91
  mov    %r13d,%edx
  mov    %r14d,%esi
  mov    %r12,%rdi
  mov    %r11,0x8(%rsp)
  mov    %r10,0x18(%rsp)
  call   <next_right@plt>
  mov    %eax,%ecx
  cmp    %r13d,%eax
  jge    L201
  mov    0x8(%rsp),%r11
  cltq
  movzbl 0x30(%rsp,%r11,1),%edx
  cmp    %dl,0x30(%rsp,%rax,1)
  je     L201
  mov    %r15d,%esi
  mov    %r13d,%edx
  mov    %r12,%rdi
  mov    %ecx,0x8(%rsp)
  call   <next_left@plt>
  mov    %eax,%r15d
  test   %eax,%eax
  js     L139
  mov    0x18(%rsp),%r10
  mov    0x8(%rsp),%ecx
  cltq
  movzbl 0x30(%rsp,%rax,1),%eax
  cmp    %al,0x30(%rsp,%r10,1)
  cmovne %ecx,%r14d
L139:
  cmp    %r13d,%ebx
  jge    L2
L164:
  cmp    %r14d,%r15d
  jge    L81
  addl   $0x1,0x14(%rsp)
  mov    %ebp,%r15d
  xor    %r14d,%r14d
  cmp    %r13d,%ebx
  jl     L164
L2:
  mov    0x14(%rsp),%esi
  lea    D21(%rip),%rdi
  call   <printf@plt>
  mov    0x2c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x2c(%rsp)
  test   %eax,%eax
  jg     L151
L202:
  mov    0x186d8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L120
  add    $0x186e8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L201:
  mov    %ecx,%r14d
  jmp    L139
  nopl   (%rax)
L91:
  mov    %r14d,%esi
  mov    %r13d,%edx
  mov    %r12,%rdi
  movb   $0x63,0x30(%rsp,%r10,1)
  movb   $0x63,0x30(%rsp,%r11,1)
  call   <next_right@plt>
  mov    %r15d,%esi
  mov    %r13d,%edx
  mov    %r12,%rdi
  mov    %eax,%r14d
  call   <next_left@plt>
  mov    %eax,%r15d
  mov    %ebx,%eax
  xor    %ebx,%ebx
  cmp    %r15d,%r14d
  setne  %bl
  lea    0x1(%rbx,%rax,1),%ebx
  jmp    L139
  nopl   0x0(%rax)
L41:
  mov    %r14d,%esi
  mov    %r13d,%edx
  mov    %r12,%rdi
  call   <next_right@plt>
  mov    %eax,%r14d
  jmp    L139
  xchg   %ax,%ax
L108:
  mov    %r15d,%esi
  mov    %r13d,%edx
  mov    %r12,%rdi
  call   <next_left@plt>
  mov    %eax,%r15d
  jmp    L139
  cs nopw 0x0(%rax,%rax,1)
L163:
  movl   $0x1,0x14(%rsp)
  jmp    L2
L120:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D29
type_infered: string
name: read_data
arguments: data_tag: D9
type_infered: string
name: read_data
arguments: data_tag: D21
type_infered: string

tool: D29: %d

tool: D9: %s

tool: D21: %d


assistant: ```c
int main() {
  int t, i, j, len, count, ans, ni, nj;
  char H[100001];
  scanf("%d", &t);
  while (t-- > 0) {
    scanf("%s", H);
    for (i = 0; H[i] != '\0'; i++)
      ;
    len = i;
    count = 0;
    ans = 1;
    for (i = 0, j = len - 1; count < len;) {
      if (i > j) {
        ans++;
        i = 0;
        j = len - 1;
        continue;
      }
      if (H[i] == 'c') {
        i = next_right(H, i, len);
        continue;
      }
      if (H[j] == 'c') {
        j = next_left(H, j, len);
        continue;
      }
      if (H[i] == H[j]) {
        H[i] = 'c';
        H[j] = 'c';
        i = next_right(H, i, len);
        j = next_left(H, j, len);
        count++;
        if (i != j)
          count++;
        continue;
      }
      ni = next_right(H, i, len);
      if (ni >= len) {
        i = ni;
        continue;
      }
      if (H[ni] == H[j]) {
        i = ni;
        continue;
      }
      nj = next_left(H, j, len);
      if (nj < 0) {
        j = nj;
        continue;
      }
      if (H[i] == H[nj]) {
        j = nj;
        continue;
      }
      i = ni;
      j = nj;
    }
    printf("%d\n", ans);
  }
  return 0;
}
```