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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  movl   $0x0,0x2c(%rsp)
  mov    $0x1,%r15d
  jmp    L441
L1:
  add    $0x1,%ebx
  cmp    $0xa,%ebx
  je     L426
L516:
  cmp    %r14d,%r15d
  je     L1
  cmp    %r12d,%r15d
  je     L1
  cmp    %r13d,%r15d
  je     L1
  mov    0xc(%rsp),%eax
  cmp    %eax,%r15d
  je     L1
  mov    0x10(%rsp),%ecx
  cmp    %ecx,%r15d
  je     L1
  mov    0x14(%rsp),%edx
  cmp    %edx,%r12d
  je     L1
  cmp    %ebp,%r15d
  je     L1
  cmp    %ebx,%r15d
  je     L1
  cmp    %r12d,%r14d
  je     L1
  cmp    %r13d,%r14d
  je     L1
  cmp    %eax,%r14d
  je     L1
  cmp    %ecx,%r14d
  je     L1
  cmp    %ebp,%r14d
  je     L1
  cmp    %ebx,%r14d
  je     L1
  cmp    %r13d,%r12d
  je     L1
  cmp    %eax,%r12d
  je     L1
  cmp    %ecx,%r12d
  je     L1
  cmp    %ebp,%r12d
  je     L1
  cmp    %ebx,%r12d
  je     L1
  cmp    %eax,%r13d
  je     L1
  cmp    %ecx,%r13d
  je     L1
  cmp    %edx,%r13d
  je     L1
  cmp    %ebp,%r13d
  je     L1
  cmp    %ebx,%r13d
  je     L1
  cmp    %ecx,%eax
  je     L1
  cmp    %edx,%eax
  je     L1
  cmp    %ebp,%eax
  je     L1
  cmp    %ebx,%eax
  je     L1
  cmp    %edx,%ecx
  je     L1
  cmp    %ebp,%ecx
  je     L1
  cmp    %ebx,%ecx
  je     L1
  cmp    %ebp,%edx
  je     L1
  cmp    %ebx,%edx
  je     L1
  cmp    %ebx,%ebp
  je     L1
  add    0x20(%rsp),%ecx
  mov    0x18(%rsp),%eax
  add    %ebx,%eax
  cmp    %eax,%ecx
  jne    L1
  addl   $0x1,0x2c(%rsp)
  push   %rbx
  push   %rbp
  mov    0x24(%rsp),%eax
  push   %rax
  mov    0x28(%rsp),%eax
  push   %rax
  mov    0x2c(%rsp),%r9d
  mov    %r13d,%r8d
  mov    %r12d,%ecx
  mov    %r14d,%edx
  mov    %r15d,%esi
  lea    D6(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x20,%rsp
  jmp    L1
L426:
  add    $0x1,%ebp
  addl   $0xa,0x18(%rsp)
  cmp    $0xa,%ebp
  je     L153
L205:
  mov    $0x1,%ebx
  jmp    L516
L153:
  addl   $0x1,0x14(%rsp)
  mov    0x14(%rsp),%eax
  addl   $0x64,0x1c(%rsp)
  cmp    $0xa,%eax
  je     L479
L462:
  mov    0x1c(%rsp),%eax
  mov    %eax,0x18(%rsp)
  mov    $0x1,%ebp
  jmp    L205
L479:
  addl   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%eax
  cmp    $0xa,%eax
  je     L440
L179:
  movl   $0x6e,0x1c(%rsp)
  movl   $0x1,0x14(%rsp)
  jmp    L462
L440:
  addl   $0x1,0xc(%rsp)
  mov    0xc(%rsp),%eax
  addl   $0xa,0x20(%rsp)
  cmp    $0xa,%eax
  je     L138
L137:
  movl   $0x1,0x10(%rsp)
  jmp    L179
L138:
  mov    %r13d,%eax
  mov    %r14d,%r13d
  mov    %r12d,%r14d
  mov    %eax,%r12d
  add    $0x1,%r12d
  addl   $0x64,0x24(%rsp)
  cmp    $0xa,%r12d
  je     L19
L475:
  mov    0x24(%rsp),%eax
  mov    %eax,0x20(%rsp)
  movl   $0x1,0xc(%rsp)
  mov    %r12d,%eax
  mov    %r14d,%r12d
  mov    %r13d,%r14d
  mov    %eax,%r13d
  jmp    L137
L19:
  mov    %r14d,%eax
  mov    %r15d,%r14d
  mov    %r13d,%r15d
  mov    %eax,%r13d
  add    $0x1,%r13d
  cmp    $0xa,%r13d
  je     L228
L380:
  mov    0x28(%rsp),%eax
  lea    0x6e(%rax,%r13,1),%eax
  mov    %eax,0x24(%rsp)
  mov    $0x1,%r12d
  mov    %r13d,%eax
  mov    %r15d,%r13d
  mov    %r14d,%r15d
  mov    %eax,%r14d
  jmp    L475
L228:
  mov    %r15d,%eax
  mov    %r14d,%r15d
  mov    %eax,%r14d
  add    $0x1,%r14d
  addl   $0xa,0x28(%rsp)
  cmp    $0xa,%r14d
  je     L474
L439:
  mov    $0x1,%r13d
  mov    %r14d,%eax
  mov    %r15d,%r14d
  mov    %eax,%r15d
  jmp    L380
L474:
  add    $0x1,%r15d
  cmp    $0xa,%r15d
  je     L213
L441:
  imul   $0x64,%r15d,%eax
  add    $0xa,%eax
  mov    %eax,0x28(%rsp)
  mov    $0x1,%r14d
  jmp    L439
L213:
  mov    0x2c(%rsp),%eax
  mov    %eax,%esi
  shr    $0x1f,%esi
  add    %eax,%esi
  sar    %esi
  lea    D16(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    $0x0,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D6
type_infered: string
name: disassemble_data
arguments: tag: D16
type_infered: string

tool: D6: %d%d%d + %d%d%d = %d%d%d 


tool: D16: total = %d

assistant: ```c
int main() {
  int a, b, c, d, e, f, g, h, i, total = 0;
  for (a = 1; a <= 9; ++a)
    for (b = 1; b <= 9; ++b)
      for (c = 1; c <= 9; ++c)
        for (d = 1; d <= 9; ++d)
          for (e = 1; e <= 9; ++e)
            for (f = 1; f <= 9; ++f)
              for (g = 1; g <= 9; ++g)
                for (h = 1; h <= 9; ++h)
                  for (i = 1; i <= 9; ++i) {
                    if (a != b && a != c && a != d && a != e && a != f && c != g && a != h && a != i && b != c && b != d && b != e && b != f && c != g && b != h && b != i && c != d && c != e && c != f && c != g && c != h && c != i && d != e && d != f && d != g && d != h && d != i && e != f && e != g && e != h && e != i && f != g && f != h && f != i && g != h && g != i && h != i && a * 100 + b * 10 + c + d * 100 + e * 10 + f == g * 100 + h * 10 + i) {
                      total++;
                      printf("%d%d%d + %d%d%d = %d%d%d \n", a, b, c, d, e, f, g, h, i);
                    }
                  }
  printf("total = %d", total / 2);
  getchar();
  getchar();
  return 0;
}
```