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
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x888,%rsp
  lea    D4(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x2878(%rsp)
  xor    %eax,%eax
  lea    0x1c(%rsp),%rsi
  call   <scanf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    0x1c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x1c(%rsp)
  test   %eax,%eax
  je     L157
  lea    0x2730(%rsp),%rax
  lea    0x20(%rsp),%r13
  mov    %rax,(%rsp)
  lea    0x27a0(%rsp),%rax
  lea    0x2810(%rsp),%r14
  mov    %rax,0x8(%rsp)
  lea    0x2dc(%rsp),%rbx
L181:
  mov    %r13,%r15
  mov    %r13,%r12
  xor    %ebp,%ebp
  nopl   0x0(%rax)
L96:
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <gets@plt>
  mov    %r14,%rdi
  call   <strlen@plt>
  cmpb   $0x2d,0x2810(%rsp)
  je     L139
  test   %rax,%rax
  je     L150
  cmp    $0x8,%eax
  jae    L116
  test   $0x4,%al
  jne    L70
  test   %eax,%eax
  je     L73
  movzbl (%r14),%ecx
  mov    %cl,(%r12)
  test   $0x2,%al
  jne    L4
L73:
  movslq %ebp,%rcx
  cltq
  add    $0x1,%ebp
  add    $0x64,%r12
  lea    (%rcx,%rcx,4),%rcx
  movb   $0x0,0x2810(%rsp,%rax,1)
  lea    (%rcx,%rcx,4),%rcx
  lea    0x2880(%rsp,%rcx,4),%rcx
  movb   $0x0,-0x2860(%rax,%rcx,1)
  cmp    $0x8,%ebp
  jne    L96
L139:
  xor    %edi,%edi
  xor    %r8d,%r8d
  nopl   0x0(%rax,%rax,1)
L184:
  mov    %r15,%rdx
  mov    $0x1,%eax
  jmp    L182
  nopw   0x0(%rax,%rax,1)
L84:
  cmp    $0x19,%sil
  ja     L32
  movslq %r8d,%rsi
  add    $0x1,%r8d
  mov    %cl,0x2730(%rsp,%rsi,1)
L32:
  add    $0x1,%rdx
  add    $0x1,%eax
L182:
  lea    -0x1(%rax),%esi
  movzbl (%rdx),%ecx
  cmp    $0x8,%esi
  lea    -0x41(%rcx),%esi
  jbe    L84
  cmp    $0x19,%sil
  ja     L93
  movslq %edi,%rsi
  add    $0x1,%edi
  mov    %cl,0x27a0(%rsp,%rsi,1)
L93:
  cmp    $0x12,%eax
  jne    L32
  add    $0x64,%r15
  cmp    %r15,%rbx
  jne    L184
  mov    (%rsp),%rbp
  movslq %edi,%rdi
  movslq %r8d,%r8
  xor    %eax,%eax
  movb   $0x0,0x27a0(%rsp,%rdi,1)
  movb   $0x0,0x2730(%rsp,%r8,1)
  mov    %rbp,%rdi
  call   <dtb@plt>
  mov    0x8(%rsp),%r15
  xor    %eax,%eax
  mov    %r15,%rdi
  call   <dtb@plt>
  mov    $0x2710,%edx
  mov    %r13,%rdi
  xor    %esi,%esi
  call   <memset@plt>
  xor    %eax,%eax
  mov    $0xc,%ecx
  mov    %r14,%rdi
  rep stos %rax,%es:(%rdi)
  mov    $0xc,%ecx
  movl   $0x0,(%rdi)
  mov    %rbp,%rdi
  rep stos %rax,%es:(%rdi)
  mov    $0xc,%ecx
  movl   $0x0,(%rdi)
  mov    %r15,%rdi
  rep stos %rax,%es:(%rdi)
  mov    0x1c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x1c(%rsp)
  movl   $0x0,(%rdi)
  test   %eax,%eax
  jne    L181
L157:
  mov    0x2878(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0x2888,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L116:
  mov    (%r14),%rcx
  lea    0x8(%r12),%rdi
  and    $0xfffffffffffffff8,%rdi
  mov    %rcx,(%r12)
  mov    %eax,%ecx
  mov    -0x8(%r14,%rcx,1),%rsi
  mov    %rsi,-0x8(%r12,%rcx,1)
  mov    %r12,%rcx
  mov    %r14,%rsi
  sub    %rdi,%rcx
  sub    %rcx,%rsi
  add    %eax,%ecx
  shr    $0x3,%ecx
  rep movsq %ds:(%rsi),%es:(%rdi)
  jmp    L73
L150:
  movslq %ebp,%rax
  add    $0x1,%ebp
  movb   $0x0,0x2810(%rsp)
  add    $0x64,%r12
  lea    (%rax,%rax,4),%rax
  lea    (%rax,%rax,4),%rax
  movb   $0x0,0x20(%rsp,%rax,4)
  cmp    $0x8,%ebp
  jne    L96
  jmp    L139
L70:
  mov    (%r14),%ecx
  mov    %ecx,(%r12)
  mov    %eax,%ecx
  mov    -0x4(%r14,%rcx,1),%esi
  mov    %esi,-0x4(%r12,%rcx,1)
  jmp    L73
L4:
  mov    %eax,%ecx
  movzwl -0x2(%r14,%rcx,1),%esi
  mov    %si,-0x2(%r12,%rcx,1)
  jmp    L73
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D4
datatype: string

tool: D4: %d

assistant: ```c
int main() {
  char ascii1[100];
  char ascii2[100], arr[100];
  char str[100][100];
  int i, j, k1, k2, l, l_num, r_num, r, ls, rs, n, ccase = 0;
  scanf("%d", &n);
  getchar();
  while (n--) {
    char g1[8][18] = {"........||.../\\...", "........||../..\\..", ".../\\...||./....\\.", "../..\\..||/......\\", "./....\\.||\\______/", "/......\\||........", "\\______/||........"};
    char g2[8][18] = {".../\\...||........", "../..\\..||........", "./....\\.||.../\\...", "/......\\||../..\\..", "\\______/||./....\\.", "........||/......\\", "........||\\______/"};
    char g3[8][18] = {"........||........", ".../\\...||.../\\...", "../..\\..||../..\\..", "./....\\.||./....\\.", "/......\\||/......\\", "\\______/||\\______/", "........||........"};
    ccase++;
    i = 0;
    while (i < 8) {
      gets(arr);
      int len = strlen(arr);
      if (arr[0] == '-')
        break;
      for (j = 0; j < len; j++) {
        str[i][j] = arr[j];
      }
      arr[j] = '\0';
      str[i][j] = '\0';
      i++;
    }
    ls = 0;
    rs = 0;
    l = 0;
    r = 0;
    k1 = 0;
    k2 = 0;
    for (i = 0; i < 7; i++) {
      for (j = 0; j < 18; j++) {
        if (j < 9) {
          if (str[i][j] >= 'A' && str[i][j] <= 'Z') {
            ascii1[k1] = str[i][j];
            k1++;
          }
          if (ls == 0) {
            if (str[i][j] == '/') {
              l = i;
              ls = 1;
            }
          }
        } else if (j > 8) {
          if (str[i][j] >= 'A' && str[i][j] <= 'Z') {
            ascii2[k2++] = str[i][j];
          }
          if (rs == 0) {
            if (str[i][j] == '/') {
              r = i;
              rs = 1;
            }
          }
        }
      }
    }
    ascii1[k1] = '\0';
    ascii2[k2] = '\0';
    l_num = dtb(ascii1);
    r_num = dtb(ascii2);
    l_num = 0, r_num = 0;
    r = 0, l = 0;
    memset(str, '\0', sizeof(str));
    memset(arr, '\0', sizeof(arr));
    memset(ascii1, '\0', sizeof(ascii1));
    memset(ascii2, '\0', sizeof(ascii2));
  }
  return 0;
}
```