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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  lea    D8(%rip),%rbp
  lea    D11(%rip),%r12
  lea    0x44(%rsp),%r13
  jmp    L139
L120:
  mov    (%r14),%ecx
  mov    %ecx,%eax
  cltd
  idiv   %r8d
  test   %edx,%edx
  jne    L209
  mov    %ecx,%eax
  cltd
  idiv   %r8d
  mov    %eax,(%r14)
  mov    0x60(%rsp,%rsi,4),%ecx
  lea    0x1(%rcx),%edx
  mov    %edx,0x60(%rsp,%rsi,4)
  mov    %edx,0x40(%rsp,%rsi,4)
  cmp    $0x1,%eax
  jne    L120
L209:
  add    $0x1,%edi
  movslq %edi,%rax
  add    $0x1,%r8d
  mov    %r8d,0x20(%rsp,%rax,4)
  jmp    L123
L150:
  movslq %edi,%rax
  mov    %edx,0x20(%rsp,%rax,4)
  cmp    $0x1,%esi
  je     L69
L192:
  movslq %edi,%rax
  mov    0x20(%rsp,%rax,4),%r8d
  mov    %esi,%eax
  cltd
  idiv   %r8d
  movslq %edi,%rsi
  test   %edx,%edx
  je     L120
  movslq %edi,%rax
  add    $0x1,%r8d
  mov    %r8d,0x20(%rsp,%rax,4)
L123:
  movslq %edi,%rax
  mov    0x20(%rsp,%rax,4),%eax
  mov    (%r14),%esi
  imul   %eax,%eax
  mov    %esi,%edx
  cmp    %esi,%eax
  jg     L150
  movslq %edi,%rax
  mov    0x20(%rsp,%rax,4),%edx
  jmp    L150
L69:
  movl   $0x0,0x20(%rsp,%rax,4)
  mov    %edi,%r14d
  sub    $0x1,%r14d
  jne    L35
  mov    0x40(%rsp),%ecx
  mov    0x20(%rsp),%edx
  mov    %r11d,%esi
  mov    %r12,%rdi
  call   <printf@plt>
L36:
  add    $0x4,%rbx
L139:
  movl   $0x2,0x20(%rsp)
  movl   $0x0,0x60(%rsp)
  movl   $0x0,0x64(%rsp)
  movl   $0x0,0x68(%rsp)
  movl   $0x0,0x6c(%rsp)
  movl   $0x0,0x70(%rsp)
  mov    %rbx,%r14
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    (%rbx),%r11d
  test   %r11d,%r11d
  je     L210
  cmp    $0x1,%r11d
  je     L18
  mov    %r11d,%esi
  mov    $0x0,%edi
  jmp    L192
L35:
  test   %r14d,%r14d
  jle    L59
  lea    0x40(%rsp),%r10
  lea    -0x2(%rdi),%eax
  lea    0x0(%r13,%rax,4),%r15
L235:
  mov    %r10,%r8
  mov    0x4(%r10),%ecx
  mov    (%r10),%eax
  cltd
  idiv   %ecx
  mov    %edx,%edi
  test   %edx,%edx
  je     L167
L22:
  mov    %ecx,(%r8)
  mov    %edi,0x4(%r8)
  mov    %edi,%r9d
  mov    %ecx,%eax
  cltd
  idiv   %edi
  mov    %edx,%edi
  mov    %r9d,%ecx
  test   %edx,%edx
  jne    L22
L167:
  add    $0x4,%r10
  cmp    %r15,%r10
  jne    L235
L87:
  movslq %r14d,%rax
  mov    0x40(%rsp,%rax,4),%r8d
  mov    $0x0,%edi
L189:
  mov    0x60(%rsp,%rdi,4),%eax
  cltd
  idiv   %r8d
  test   %eax,%eax
  jle    L103
  mov    0x20(%rsp,%rdi,4),%ecx
  mov    $0x0,%edx
L47:
  imul   %ecx,%esi
  add    $0x1,%edx
  cmp    %eax,%edx
  jne    L47
L103:
  add    $0x1,%rdi
  cmp    %edi,%r14d
  jge    L189
L68:
  movslq %r14d,%r14
  mov    0x40(%rsp,%r14,4),%ecx
  mov    %esi,%edx
  mov    %r11d,%esi
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L36
L59:
  jns    L87
  jmp    L68
L18:
  mov    %r11d,%esi
  mov    $0xffffffff,%r14d
  jmp    L68
L210:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L27
  mov    $0x0,%eax
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L27:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D8
data_type: string
name: parse_data
arguments: data_label: D11
data_type: string

tool: D8: %d

tool: D11: %d is %d to the power of %d.


assistant: ```c
main() {
  int input, m[5], i, a[5], x, g[5], c, temp, output, d;
  for (i = 0; 1 == 1; i++) {
    a[0] = 2;
    int b[5] = {0, 0, 0, 0, 0};
    x = 0;
    c = 0;
    output = 1;
    scanf("%d", &m[i]);
    if (m[i] == 0)
      break;
    input = m[i];
    while (m[i] != 1) {
      if (m[i] % a[x] == 0) {
        while (m[i] % a[x] == 0) {
          m[i] = m[i] / a[x];
          b[x]++;
          g[x] = b[x];
          if (m[i] == 1)
            break;
        }
        x++;
        a[x] = a[x - 1] + 1;
      } else
        a[x]++;
      if ((a[x] * a[x]) > m[i]) {
        a[x] = m[i];
      }
    }
    a[x] = 0;
    x--;
    if (x == 0) {
      printf("%d is %d to the power of %d.\n", input, a[0], g[0]);
    } else {
      for (c = 0; c < x; c++) {
        while (g[c] % g[c + 1] != 0) {
          temp = g[c] % g[c + 1];
          g[c] = g[c + 1];
          g[c + 1] = temp;
        }
      }
      for (c = 0; c <= x; c++) {
        for (d = 0; d < (b[c] / g[x]); d++) {
          output = output * a[c];
        }
      }
      printf("%d is %d to the power of %d.\n", input, output, g[x]);
    }
  }
  return 0;
}
```