user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0xc3000(%rsp),%r11
L113:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L113
  sub    $0x558,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc3548(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rsi
  lea    D6(%rip),%rdi
  call   <scanf@plt>
  lea    0x10(%rsp),%rdi
  mov    $0x61a94,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  lea    0x61ab0(%rsp),%rdi
  mov    $0x61a94,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  mov    (%rsp),%rax
  lea    -0x1(%rax),%rdx
  mov    %rdx,(%rsp)
  lea    0x10(%rsp),%r12
  lea    0x61aa4(%rsp),%rbx
  lea    D6(%rip),%r14
  lea    D16(%rip),%r13
  test   %rax,%rax
  jne    L64
L155:
  mov    0xc3548(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L50
  mov    $0x0,%eax
  add    $0xc3558,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L108:
  add    $0x1,%rcx
  cmp    %rcx,%rsi
  jl     L152
L89:
  mov    %rsi,%rax
  cqto
  idiv   %rcx
  test   %rdx,%rdx
  jne    L108
  mov    %ecx,0x10(%rsp,%rdi,4)
  mov    %rsi,%rax
  cqto
  idiv   %rcx
  mov    %rax,%rsi
  lea    0x1(%rdi),%rdi
  mov    $0x1,%ecx
  jmp    L108
L260:
  mov    $0x0,%edi
L152:
  mov    %rdi,%rsi
  mov    $0x2,%edi
  call   <pow@plt>
  mov    $0x2,%r11d
  mov    $0x1,%r8d
  cmp    $0x1,%rax
  jg     L48
  movslq 0x61ab0(%rsp),%rsi
  add    $0x1,%rsi
L17:
  mov    %r13,%rdi
  call   <printf@plt>
  mov    (%rsp),%rax
  lea    -0x1(%rax),%rdx
  mov    %rdx,(%rsp)
  test   %rax,%rax
  je     L155
L64:
  mov    %r12,%rax
L214:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L214
  lea    0x8(%rsp),%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%rsi
  cmp    $0x1,%rsi
  jle    L260
  mov    $0x0,%edi
  mov    $0x2,%ecx
  jmp    L89
L164:
  add    $0x4,%rcx
  sar    %rdx
  je     L90
L198:
  test   $0x1,%dl
  je     L164
  movslq (%rcx),%r9
  imul   %r9,%rsi
  jmp    L164
L90:
  mov    %esi,0x61aac(%rsp,%r8,4)
  cmp    %r11,%rax
  jle    L271
L233:
  add    $0x1,%r8
  add    $0x1,%r11
L48:
  mov    %r8,%r10
  lea    -0x1(%r8),%rdi
  mov    %r12,%rcx
  mov    %r8,%rdx
  mov    $0x1,%esi
  test   %r8,%r8
  jne    L198
  movl   $0x1,0x61aac(%rsp)
  jmp    L233
L271:
  test   %r10,%r10
  jg     L97
L286:
  movslq 0x61ab0(%rsp),%rsi
  add    $0x1,%rsi
  cmp    $0x1,%r10
  jle    L17
  lea    0x61ab4(%rsp),%rax
  lea    0x61ab0(%rsp,%r8,4),%rcx
  jmp    L10
L254:
  mov    %rax,%rcx
L52:
  lea    0x1(%rcx),%rax
  mov    %rdi,%r15
  sub    %rcx,%r15
  cmp    %rax,%r15
  jle    L220
  mov    0x61ab0(%rsp,%rax,4),%ecx
  cmp    %esi,%ecx
  jge    L254
  mov    %eax,%ebp
  mov    %ecx,%esi
  jmp    L254
L220:
  cmp    %r9d,%esi
  je     L170
  movslq %ebp,%rax
  mov    0x61ab0(%rsp,%rax,4),%ecx
  mov    %ecx,0x61ab0(%rsp,%r11,4)
  mov    %r9d,0x61ab0(%rsp,%rax,4)
L170:
  lea    0x1(%rdx),%rax
  cmp    %rdi,%rdx
  jge    L286
  mov    %rax,%rdx
L97:
  mov    %rdx,%r11
  mov    0x61ab0(%rsp,%rdx,4),%r9d
  mov    %r8,%rax
  sub    %rdx,%rax
  mov    %rdx,%rcx
  mov    %r9d,%esi
  cmp    %rdx,%rax
  jg     L52
  jmp    L170
L126:
  movslq %edx,%rdx
  add    %rdx,%rsi
L162:
  add    $0x4,%rax
  cmp    %rcx,%rax
  je     L17
L10:
  mov    (%rax),%edx
  cmp    -0x4(%rax),%edx
  jne    L126
  jmp    L162
L50:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D6
type_infered: string
name: extract_symbolic_data
arguments: data_label: D16
type_infered: string

tool: D6: %lld

tool: D16: %lld


assistant: ```c
int main() {
  long long int t, n, sum, i, l, j, k, temp, num, p, f, prod, set;
  scanf("%lld", &t);
  int prm[100005] = {0}, fact[100005] = {0};
  while (t--) {
    p = f = 0;
    sum = 1;
    for (i = 0; i < 100005; i++)
      prm[i] = fact[100005] = 0;
    scanf("%lld", &n);
    num = n;
    for (i = 2; i <= num; i++) {
      if (num % i == 0) {
        prm[p++] = i;
        num /= i;
        i = 1;
      }
    }
    set = pow(2, p);
    for (i = 1; i < set; i++) {
      k = i;
      l = 0;
      prod = 1;
      while (k) {
        if (k & 1) {
          prod *= prm[l];
        }
        k = k >> 1;
        l++;
      }
      fact[f++] = prod;
    }
    int pos;
    for (i = 0; i < f; i++) {
      int min = fact[i];
      for (j = i; j < f - j; j++) {
        if (min > fact[j]) {
          min = fact[j];
          pos = j;
        }
      }
      if (min != fact[i]) {
        temp = fact[i];
        fact[i] = fact[pos];
        fact[pos] = temp;
      }
    }
    sum += fact[0];
    for (i = 1; i < f; i++) {
      if (fact[i] != fact[i - 1]) {
        sum += fact[i];
      }
    }
    printf("%lld\n", sum);
  }
  return 0;
}
```