user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  movl   $0x0,-0x90(%rbp)
  movl   $0x0,-0x84(%rbp)
  lea    -0x94(%rbp),%rax
  mov    %rax,%rsi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x94(%rbp),%ecx
  movslq %ecx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x80(%rbp)
  movslq %ecx,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  imul   $0x190,%r15,%rdx
  imul   $0x0,%r14,%rax
  lea    (%rdx,%rax,1),%rsi
  mov    $0x190,%eax
  mul    %r14
  add    %rdx,%rsi
  mov    %rsi,%rdx
  movslq %ecx,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  movslq %ecx,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  imul   $0x190,%r13,%rdx
  imul   $0x0,%r12,%rax
  lea    (%rdx,%rax,1),%rsi
  mov    $0x190,%eax
  mul    %r12
  add    %rdx,%rsi
  mov    %rsi,%rdx
  movslq %ecx,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  mov    %rax,%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L96:
  cmp    %rdx,%rsp
  je     L62
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L96
L62:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L60
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L60:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x78(%rbp)
  movl   $0x0,-0x8c(%rbp)
  jmp    L17
L35:
  mov    -0x8c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  mov    -0x78(%rbp),%rdx
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x8c(%rbp)
L17:
  mov    -0x94(%rbp),%eax
  cmp    %eax,-0x8c(%rbp)
  jl     L35
  movl   $0x31,-0x88(%rbp)
  jmp    L105
L166:
  movl   $0x0,-0x8c(%rbp)
  jmp    L111
L86:
  mov    -0x78(%rbp),%rsi
  mov    -0x88(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x8c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rsi,%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %eax,-0x90(%rbp)
  addl   $0x1,-0x8c(%rbp)
L111:
  mov    -0x94(%rbp),%eax
  cmp    %eax,-0x8c(%rbp)
  jl     L86
  mov    -0x90(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    %ecx,%eax
  add    $0x30,%eax
  mov    %eax,%edx
  mov    -0x84(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  addl   $0x1,-0x84(%rbp)
  mov    -0x90(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x90(%rbp)
  subl   $0x1,-0x88(%rbp)
L105:
  cmpl   $0x0,-0x88(%rbp)
  jns    L166
  mov    -0x84(%rbp),%eax
  mov    %eax,-0x88(%rbp)
  jmp    L171
L97:
  mov    -0x90(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    %ecx,%eax
  add    $0x30,%eax
  mov    %eax,%edx
  mov    -0x88(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  mov    -0x90(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x90(%rbp)
  addl   $0x1,-0x88(%rbp)
L171:
  cmpl   $0x34,-0x88(%rbp)
  jle    L97
  movl   $0x0,-0x8c(%rbp)
  movl   $0x34,-0x88(%rbp)
  jmp    L156
L120:
  mov    -0x8c(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  mov    %al,-0x95(%rbp)
  mov    -0x88(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%edx
  mov    -0x8c(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  mov    -0x88(%rbp),%eax
  cltq
  movzbl -0x95(%rbp),%edx
  mov    %dl,-0x70(%rbp,%rax,1)
  addl   $0x1,-0x8c(%rbp)
  subl   $0x1,-0x88(%rbp)
L156:
  mov    -0x8c(%rbp),%eax
  cmp    -0x88(%rbp),%eax
  jle    L120
  movl   $0x0,-0x8c(%rbp)
  jmp    L161
L48:
  mov    -0x8c(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x30,%al
  je     L134
  mov    -0x8c(%rbp),%eax
  mov    %eax,-0x88(%rbp)
  jmp    L123
L134:
  addl   $0x1,-0x8c(%rbp)
L161:
  cmpl   $0x34,-0x8c(%rbp)
  jle    L48
L123:
  mov    -0x88(%rbp),%eax
  mov    %eax,-0x84(%rbp)
  jmp    L189
L13:
  mov    -0x84(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  movsbl %al,%eax
  mov    %eax,%esi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addl   $0x1,-0x84(%rbp)
L189:
  mov    -0x88(%rbp),%eax
  add    $0x9,%eax
  cmp    %eax,-0x84(%rbp)
  jle    L13
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L34
  call   <__stack_chk_fail@plt>
L34:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D29
type_infered: string
name: extract_symbolic_data
arguments: tag: D3
type_infered: string
name: extract_symbolic_data
arguments: tag: D16
type_infered: string

tool: D29: %d

tool: D3: %s

tool: D16: %c

assistant: ```c
int main() {
  int q = 0, n, i, j, k = 0;
  scanf("%d", &n);
  char a[n][50], t[53], tmp;
  for (i = 0; i < n; i++) {
    scanf("%s", a[i]);
  }
  for (j = 49; j >= 0; j--) {
    for (i = 0; i < n; i++) {
      q += a[i][j] - 48;
    }
    t[k] = (q % 10) + 48;
    k++;
    q /= 10;
  }
  for (j = k; j < 53; j++) {
    t[j] = (q % 10) + 48;
    q /= 10;
  }
  i = 0;
  j = 52;
  while (i <= j) {
    tmp = t[i];
    t[i] = t[j];
    t[j] = tmp;
    i++;
    j--;
  }
  for (i = 0; i < 53; i++) {
    if (t[i] != '0') {
      j = i;
      break;
    }
  }
  for (k = j; k < j + 10; k++)
    printf("%c", t[k]);
  return 0;
}
```