user: 请从给定的汇编指令推导出C源代码：

```asm
<spin_roulette>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,0x8(%rsp)
  lea    D2(%rip),%rdi
  call   <puts@plt>
  lea    D32(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%ebp
  lea    D85(%rip),%r14
  lea    D27(%rip),%r13
  jmp    L47
L149:
  add    $0x1,%ebp
  cmp    $0x80,%ebp
  je     L21
L47:
  movslq %ebp,%rax
  imul   $0x38e38e39,%rax,%rax
  sar    $0x23,%rax
  mov    %ebp,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  lea    (%rax,%rax,8),%eax
  shl    $0x2,%eax
  mov    %ebp,%esi
  sub    %eax,%esi
  add    $0x1,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %eax,%r12d
  mov    $0x30d4,%edi
  call   <usleep@plt>
  test   %r12d,%r12d
  jle    L149
  mov    $0x0,%ebx
L53:
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  cmp    %ebx,%r12d
  jne    L53
  jmp    L149
L21:
  lea    D85(%rip),%r14
  lea    D27(%rip),%r13
  jmp    L79
L89:
  test   %eax,%eax
  jle    L127
  mov    $0x0,%ebx
  lea    D27(%rip),%r13
L164:
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  cmp    %ebx,%r12d
  jne    L164
L127:
  mov    %ebp,%r14d
  add    $0x24,%ebp
  mov    $0x30d4,%r15d
  lea    D27(%rip),%r13
  jmp    L52
L18:
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  cmp    %ebx,%r12d
  jne    L18
L157:
  add    $0x1,%ebp
  cmp    $0xa4,%ebp
  je     L127
L79:
  movslq %ebp,%rax
  imul   $0x38e38e39,%rax,%rax
  sar    $0x23,%rax
  mov    %ebp,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  lea    (%rax,%rax,8),%eax
  shl    $0x2,%eax
  mov    %ebp,%ebx
  sub    %eax,%ebx
  add    $0x1,%ebx
  mov    %ebx,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %eax,%r12d
  movslq %ebx,%rbx
  cmp    0x8(%rsp),%rbx
  je     L89
  mov    $0x30d4,%edi
  call   <usleep@plt>
  test   %r12d,%r12d
  jle    L157
  mov    $0x0,%ebx
  jmp    L18
L165:
  add    $0x1,%r14d
  cmp    %r14d,%ebp
  je     L111
L52:
  movslq %r14d,%rax
  imul   $0x38e38e39,%rax,%rax
  sar    $0x23,%rax
  mov    %r14d,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  lea    (%rax,%rax,8),%eax
  shl    $0x2,%eax
  mov    %r14d,%esi
  sub    %eax,%esi
  add    $0x1,%esi
  lea    D85(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %eax,%r12d
  pxor   %xmm0,%xmm0
  cvtsi2sd %r15d,%xmm0
  mulsd  D10(%rip),%xmm0
  cvttsd2si %xmm0,%r15d
  mov    %r15d,%edi
  call   <usleep@plt>
  test   %r12d,%r12d
  jle    L165
  mov    $0x0,%ebx
L104:
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  cmp    %ebx,%r12d
  jne    L104
  jmp    L165
L111:
  mov    0x8(%rsp),%rsi
  lea    D53(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r15d,%edi
  call   <usleep@plt>
  lea    D2(%rip),%rbx
  mov    %rbx,%rdi
  call   <puts@plt>
  mov    %rbx,%rdi
  call   <puts@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D2
type: string
name: extract_symbolic_data
arguments: label: D32
type: string
name: extract_symbolic_data
arguments: label: D85
type: string
name: extract_symbolic_data
arguments: label: D27
type: string
name: extract_symbolic_data
arguments: label: D10
type: f64
name: extract_symbolic_data
arguments: label: D53
type: string

tool: 

tool: D32: Roulette  :  

tool: D85: %d

tool: D27:  

tool: D10: 1.1

tool: D53: %ld

assistant: ```c
void spin_roulette(long spin) {
  int n;
  puts("");
  printf("Roulette  :  ");
  int i, j;
  int s = 12500;
  for (i = 0; i < 128; i++) {
    n = printf("%d", (i % 36) + 1);
    usleep(s);
    for (j = 0; j < n; j++) {
      printf("\b \b");
    }
  }
  for (i = 128; i < (128 + 36); i++) {
    n = printf("%d", (i % 36) + 1);
    if (((i % 36) + 1) == spin) {
      for (j = 0; j < n; j++) {
        printf("\b \b");
      }
      break;
    }
    usleep(s);
    for (j = 0; j < n; j++) {
      printf("\b \b");
    }
  }
  for (int k = 0; k < 36; k++) {
    n = printf("%d", ((i + k) % 36) + 1);
    s = 1.1 * s;
    usleep(s);
    for (j = 0; j < n; j++) {
      printf("\b \b");
    }
  }
  printf("%ld", spin);
  usleep(s);
  puts("");
  puts("");
}
```