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

```asm
<find_sum>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x18(%rbp)
  movl   $0x1,-0xc(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L74
L63:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x10(%rbp)
L74:
  mov    -0x10(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L63
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  jmp    L37
L0:
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  jmp    L86
L7:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x20(%rbp),%rdx
  add    %rcx,%rdx
  imul   -0xc(%rbp),%eax
  mov    %eax,(%rdx)
  subl   $0x1,-0x10(%rbp)
L86:
  cmpl   $0x0,-0x10(%rbp)
  jns    L7
  movl   $0x0,-0x8(%rbp)
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  jmp    L116
L96:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    -0x8(%rbp),%edx
  add    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x9,%eax
  jle    L29
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%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,-0x8(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%edi
  sar    $0x1f,%edi
  sub    %edi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  mov    %edx,(%rsi)
  jmp    L30
L29:
  movl   $0x0,-0x8(%rbp)
L30:
  subl   $0x1,-0x10(%rbp)
L116:
  cmpl   $0x0,-0x10(%rbp)
  jns    L96
  addl   $0x1,-0xc(%rbp)
L37:
  cmpl   $0x64,-0xc(%rbp)
  jle    L0
  movl   $0x0,-0x4(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L80
L18:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    %eax,-0x4(%rbp)
  addl   $0x1,-0x10(%rbp)
L80:
  mov    -0x10(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L18
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D8
datatype: string
name: disassemble_data
arguments: tag: D6
datatype: string

tool: D8: %d

tool: D6: 
%d


assistant: ```c
void find_sum(int n, int *fact, int size) {
  int i, count = 1, temp = 0;
  for (i = 0; i < size; i++) {
    fact[i] = 0;
  }
  fact[size - 1] = 1;
  while (count <= 100) {
    for (i = size - 1; i >= 0; i--) {
      fact[i] = fact[i] * count;
    }
    temp = 0;
    for (i = size - 1; i >= 0; i--) {
      fact[i] += temp;
      if (fact[i] > 9) {
        temp = fact[i] / 10;
        fact[i] = fact[i] % 10;
      } else {
        temp = 0;
      }
    }
    count++;
  }
  int sum = 0;
  for (i = 0; i < size; i++) {
    printf("%d", fact[i]);
    sum += fact[i];
  }
  printf("\n%d\n", sum);
}
```