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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x3c(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x3c(%rbp)
  mov    -0x40(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  mov    %eax,%esi
  sar    $0x1f,%esi
  mov    %edx,%ecx
  sub    %esi,%ecx
  imul   $0x64,%ecx,%edx
  sub    %edx,%eax
  mov    %eax,%ecx
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%edi
  sar    $0x1f,%edi
  sub    %edi,%eax
  mov    %eax,%esi
  mov    %esi,%eax
  shl    $0x2,%eax
  add    %esi,%eax
  add    %eax,%eax
  mov    %edx,%esi
  sub    %eax,%esi
  mov    %ecx,%eax
  sub    %esi,%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,-0x38(%rbp)
  mov    -0x40(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x10624dd3,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x6,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x3e8,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  movslq %eax,%rcx
  imul   $0x51eb851f,%rcx,%rcx
  shr    $0x20,%rcx
  sar    $0x5,%ecx
  mov    %eax,%esi
  sar    $0x1f,%esi
  sub    %esi,%ecx
  imul   $0x64,%ecx,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x40(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x68db8bad,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0xc,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x2710,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  movslq %eax,%rcx
  imul   $0x10624dd3,%rcx,%rcx
  shr    $0x20,%rcx
  sar    $0x6,%ecx
  mov    %eax,%esi
  sar    $0x1f,%esi
  sub    %esi,%ecx
  imul   $0x3e8,%ecx,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movslq %eax,%rdx
  imul   $0x10624dd3,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x6,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x40(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x14f8b589,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0xd,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x186a0,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  movslq %eax,%rcx
  imul   $0x68db8bad,%rcx,%rcx
  shr    $0x20,%rcx
  sar    $0xc,%ecx
  mov    %eax,%esi
  sar    $0x1f,%esi
  sub    %esi,%ecx
  imul   $0x2710,%ecx,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movslq %eax,%rdx
  imul   $0x68db8bad,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0xc,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x40(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x431bde83,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x12,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0xf4240,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  movslq %eax,%rcx
  imul   $0x14f8b589,%rcx,%rcx
  shr    $0x20,%rcx
  sar    $0xd,%ecx
  mov    %eax,%esi
  sar    $0x1f,%esi
  sub    %esi,%ecx
  imul   $0x186a0,%ecx,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movslq %eax,%rdx
  imul   $0x14f8b589,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0xd,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x40(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x6b5fca6b,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x16,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x989680,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  movslq %eax,%rcx
  imul   $0x431bde83,%rcx,%rcx
  shr    $0x20,%rcx
  sar    $0x12,%ecx
  mov    %eax,%esi
  sar    $0x1f,%esi
  sub    %esi,%ecx
  imul   $0xf4240,%ecx,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movslq %eax,%rdx
  imul   $0x431bde83,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x12,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x40(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x55e63b89,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x19,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x5f5e100,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  movslq %eax,%rcx
  imul   $0x6b5fca6b,%rcx,%rcx
  shr    $0x20,%rcx
  sar    $0x16,%ecx
  mov    %eax,%esi
  sar    $0x1f,%esi
  sub    %esi,%ecx
  imul   $0x989680,%ecx,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movslq %eax,%rdx
  imul   $0x6b5fca6b,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x16,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x40(%rbp),%eax
  mov    -0x2c(%rbp),%r8d
  mov    -0x28(%rbp),%edi
  mov    -0x24(%rbp),%ecx
  mov    -0x20(%rbp),%edx
  mov    -0x3c(%rbp),%esi
  push   %rsi
  mov    -0x38(%rbp),%esi
  push   %rsi
  mov    -0x34(%rbp),%esi
  push   %rsi
  mov    -0x30(%rbp),%esi
  push   %rsi
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %eax,%esi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x20,%rsp
  mov    $0x7,%esi
  mov    $0x2,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  mov    %eax,%ebx
  mov    $0x6,%esi
  mov    $0x2,%edi
  call   <pow@plt>
  imul   -0x24(%rbp),%eax
  add    %eax,%ebx
  mov    $0x5,%esi
  mov    $0x2,%edi
  call   <pow@plt>
  imul   -0x28(%rbp),%eax
  add    %eax,%ebx
  mov    $0x4,%esi
  mov    $0x2,%edi
  call   <pow@plt>
  imul   -0x2c(%rbp),%eax
  add    %eax,%ebx
  mov    $0x3,%esi
  mov    $0x2,%edi
  call   <pow@plt>
  imul   -0x30(%rbp),%eax
  add    %eax,%ebx
  mov    $0x2,%esi
  mov    $0x2,%edi
  call   <pow@plt>
  imul   -0x34(%rbp),%eax
  add    %eax,%ebx
  mov    $0x1,%esi
  mov    $0x2,%edi
  call   <pow@plt>
  imul   -0x38(%rbp),%eax
  add    %eax,%ebx
  mov    $0x0,%esi
  mov    $0x2,%edi
  call   <pow@plt>
  imul   -0x3c(%rbp),%eax
  add    %ebx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D24
type_guessed: string
name: disassemble_data
arguments: data_tag: D30
type_guessed: string
name: disassemble_data
arguments: data_tag: D13
type_guessed: string
name: disassemble_data
arguments: data_tag: D9
type_guessed: string

tool: D24: enter the number

tool: D30: %d

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

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