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

```asm
<main>:
  endbr64
  push   %r15
  lea    D28(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  lea    D11(%rip),%rdi
  call   <scanf@plt>
  movslq 0x14(%rsp),%rdx
  imul   $0x66666667,%rdx,%rbx
  mov    %edx,%edi
  mov    %rdx,%rsi
  imul   $0x51eb851f,%rdx,%rcx
  sar    $0x1f,%edi
  sar    $0x22,%rbx
  sub    %edi,%ebx
  sar    $0x25,%rcx
  lea    (%rbx,%rbx,4),%eax
  sub    %edi,%ecx
  mov    %edx,%ebx
  add    %eax,%eax
  sub    %eax,%ebx
  imul   $0x64,%ecx,%eax
  mov    %edx,%ecx
  push   %rbx
  sub    %eax,%ecx
  mov    %ecx,%eax
  sub    %ebx,%eax
  movslq %eax,%rbp
  sar    $0x1f,%eax
  imul   $0x66666667,%rbp,%rbp
  sar    $0x22,%rbp
  sub    %eax,%ebp
  imul   $0x10624dd3,%rdx,%rax
  push   %rbp
  sar    $0x26,%rax
  sub    %edi,%eax
  imul   $0x3e8,%eax,%r8d
  mov    %edx,%eax
  sub    %r8d,%eax
  mov    %eax,%r8d
  sub    %ecx,%r8d
  imul   $0x68db8bad,%rdx,%rcx
  movslq %r8d,%r12
  sar    $0x1f,%r8d
  imul   $0x51eb851f,%r12,%r12
  sar    $0x2c,%rcx
  sar    $0x25,%r12
  sub    %r8d,%r12d
  sub    %edi,%ecx
  imul   $0x2710,%ecx,%r8d
  mov    %edx,%ecx
  push   %r12
  sub    %r8d,%ecx
  mov    %ecx,%r8d
  sub    %eax,%r8d
  imul   $0x14f8b589,%rdx,%rax
  movslq %r8d,%r13
  sar    $0x1f,%r8d
  imul   $0x10624dd3,%r13,%r13
  sar    $0x2d,%rax
  sub    %edi,%eax
  sar    $0x26,%r13
  sub    %r8d,%r13d
  imul   $0x186a0,%eax,%r8d
  mov    %edx,%eax
  push   %r13
  sub    %r8d,%eax
  mov    %eax,%r8d
  sub    %ecx,%r8d
  imul   $0x431bde83,%rdx,%rcx
  movslq %r8d,%r14
  sar    $0x1f,%r8d
  imul   $0x68db8bad,%r14,%r14
  sar    $0x32,%rcx
  sub    %edi,%ecx
  sar    $0x2c,%r14
  sub    %r8d,%r14d
  imul   $0xf4240,%ecx,%r8d
  mov    %edx,%ecx
  sub    %r8d,%ecx
  mov    %ecx,%r9d
  sub    %eax,%r9d
  imul   $0x6b5fca6b,%rdx,%rax
  movslq %r9d,%r8
  sar    $0x1f,%r9d
  imul   $0x14f8b589,%r8,%r8
  sar    $0x36,%rax
  sub    %edi,%eax
  sar    $0x2d,%r8
  sub    %r9d,%r8d
  imul   $0x989680,%eax,%r9d
  mov    %edx,%eax
  mov    %r8d,0x2c(%rsp)
  sub    %r9d,%eax
  imul   $0x55e63b89,%rdx,%rdx
  mov    %eax,%r9d
  sub    %ecx,%r9d
  sar    $0x39,%rdx
  movslq %r9d,%rcx
  sar    $0x1f,%r9d
  sub    %edi,%edx
  imul   $0x431bde83,%rcx,%rcx
  mov    %esi,%edi
  imul   $0x5f5e100,%edx,%edx
  sar    $0x32,%rcx
  sub    %edx,%edi
  sub    %r9d,%ecx
  mov    %r14d,%r9d
  mov    %edi,%edx
  lea    D13(%rip),%rdi
  mov    %ecx,0x28(%rsp)
  sub    %eax,%edx
  xor    %eax,%eax
  movslq %edx,%r15
  sar    $0x1f,%edx
  imul   $0x6b5fca6b,%r15,%r15
  sar    $0x36,%r15
  sub    %edx,%r15d
  mov    %r15d,%edx
  call   <printf@plt>
  add    $0x20,%rsp
  mov    $0x7,%esi
  mov    $0x2,%edi
  call   <pow@plt>
  mov    $0x6,%esi
  mov    $0x2,%edi
  imul   %eax,%r15d
  call   <pow@plt>
  mov    0x8(%rsp),%ecx
  mov    $0x5,%esi
  mov    $0x2,%edi
  imul   %ecx,%eax
  add    %eax,%r15d
  call   <pow@plt>
  mov    0xc(%rsp),%r8d
  mov    $0x4,%esi
  mov    $0x2,%edi
  imul   %r8d,%eax
  add    %eax,%r15d
  call   <pow@plt>
  mov    $0x3,%esi
  mov    $0x2,%edi
  imul   %r14d,%eax
  lea    (%rax,%r15,1),%r14d
  call   <pow@plt>
  mov    $0x2,%esi
  mov    $0x2,%edi
  imul   %r13d,%eax
  add    %eax,%r14d
  call   <pow@plt>
  mov    $0x1,%esi
  mov    $0x2,%edi
  imul   %r12d,%eax
  lea    (%rax,%r14,1),%r12d
  call   <pow@plt>
  xor    %esi,%esi
  mov    $0x2,%edi
  imul   %ebp,%eax
  add    %eax,%r12d
  call   <pow@plt>
  lea    D3(%rip),%rdi
  imul   %ebx,%eax
  lea    (%rax,%r12,1),%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D28
type: string
name: parse_data
arguments: tag: D11
type: string
name: parse_data
arguments: tag: D13
type: string
name: parse_data
arguments: tag: D3
type: string

tool: D28: enter the number

tool: D11: %d

tool: D13: 
%d ==> %d %d %d %d %d %d %d %d

tool: D3: 
decimal equavalent = %d

assistant: ```c
int main(void) {
  int decimal, n, n1, n2, n3, n4, n5, n6, n7, n8;
  printf("enter the number");
  scanf("%d", &n);
  n8 = n % 10;
  n7 = (n % 100 - n % 10) / 10;
  n6 = (n % 1000 - n % 100) / 100;
  n5 = (n % 10000 - n % 1000) / 1000;
  n4 = (n % 100000 - n % 10000) / 10000;
  n3 = (n % 1000000 - n % 100000) / 100000;
  n2 = (n % 10000000 - n % 1000000) / 1000000;
  n1 = (n % 100000000 - n % 10000000) / 10000000;
  printf("\n%d ==> %d %d %d %d %d %d %d %d", n, n1, n2, n3, n4, n5, n6, n7, n8);
  decimal = n1 * pow(2, 7) + n2 * pow(2, 6) + n3 * pow(2, 5) + n4 * pow(2, 4) + n5 * pow(2, 3) + n6 * pow(2, 2) + n7 * pow(2, 1) + n8 * pow(2, 0);
  printf("\ndecimal equavalent = %d", decimal);
}
```