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

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

tool_calls: name: extract_symbolic_data
arguments: label: D19
type_infered: string
name: extract_symbolic_data
arguments: label: D30
type_infered: string
name: extract_symbolic_data
arguments: label: D29
type_infered: string
name: extract_symbolic_data
arguments: label: D0
type_infered: string

tool: D19: enter the number

tool: D30: %d

tool: D29: 
%d ==> %d %d %d %d %d %d %d %d

tool: D0: 
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);
}
```