user: What is the c source code of the assembly code below:

```asm
<spin_roulette>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D30(%rip),%r13
  push   %r12
  lea    D88(%rip),%r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x18,%rsp
  mov    %rdi,0x8(%rsp)
  lea    D103(%rip),%rdi
  call   <puts@plt>
  lea    D57(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  nopl   0x0(%rax)
L42:
  mov    %ebx,%eax
  mov    %ebx,%esi
  mov    %r13,%rdi
  imul   $0x38e38e39,%rax,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,8),%eax
  shl    $0x2,%eax
  sub    %eax,%esi
  xor    %eax,%eax
  add    $0x1,%esi
  call   <printf@plt>
  mov    $0x30d4,%edi
  mov    %eax,%ebp
  call   <usleep@plt>
  test   %ebp,%ebp
  jle    L94
  xor    %r14d,%r14d
  nop
L99:
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r14d
  call   <printf@plt>
  cmp    %r14d,%ebp
  jne    L99
L94:
  add    $0x1,%ebx
  cmp    $0x80,%ebx
  jne    L42
  lea    D88(%rip),%r12
  nopl   (%rax)
L117:
  mov    %ebx,%eax
  mov    %ebx,%r14d
  mov    %r13,%rdi
  imul   $0x38e38e39,%rax,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,8),%eax
  shl    $0x2,%eax
  sub    %eax,%r14d
  xor    %eax,%eax
  add    $0x1,%r14d
  mov    %r14d,%esi
  movslq %r14d,%r14
  call   <printf@plt>
  mov    %eax,%ebp
  cmp    0x8(%rsp),%r14
  je     L115
  mov    $0x30d4,%edi
  call   <usleep@plt>
  test   %ebp,%ebp
  jle    L51
  xor    %r14d,%r14d
  nopl   0x0(%rax,%rax,1)
L113:
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r14d
  call   <printf@plt>
  cmp    %r14d,%ebp
  jne    L113
L51:
  add    $0x1,%ebx
  cmp    $0xa4,%ebx
  jne    L117
L102:
  lea    0x24(%rbx),%eax
  mov    $0x30d4,%r14d
  lea    D88(%rip),%r12
  mov    %eax,0x4(%rsp)
  nopw   0x0(%rax,%rax,1)
L67:
  mov    %ebx,%eax
  mov    %ebx,%esi
  mov    %r13,%rdi
  imul   $0x38e38e39,%rax,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,8),%eax
  shl    $0x2,%eax
  sub    %eax,%esi
  xor    %eax,%eax
  add    $0x1,%esi
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %r14d,%xmm0
  mulsd  D95(%rip),%xmm0
  mov    %eax,%ebp
  cvttsd2si %xmm0,%r14d
  mov    %r14d,%edi
  call   <usleep@plt>
  test   %ebp,%ebp
  jle    L111
  xor    %r15d,%r15d
  nopl   0x0(%rax,%rax,1)
L36:
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r15d
  call   <printf@plt>
  cmp    %r15d,%ebp
  jne    L36
L111:
  add    $0x1,%ebx
  cmp    0x4(%rsp),%ebx
  jne    L67
  mov    0x8(%rsp),%rsi
  lea    D40(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14d,%edi
  call   <usleep@plt>
  lea    D103(%rip),%rdi
  call   <puts@plt>
  add    $0x18,%rsp
  lea    D103(%rip),%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <puts@plt>
L115:
  test   %eax,%eax
  jle    L102
  xor    %r14d,%r14d
  lea    D88(%rip),%r12
L87:
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r14d
  call   <printf@plt>
  cmp    %r14d,%ebp
  jne    L87
  jmp    L102
```

tool_calls: name: unpack_data
arguments: label: D30
data_type: string
name: unpack_data
arguments: label: D88
data_type: string
name: unpack_data
arguments: label: D103
data_type: string
name: unpack_data
arguments: label: D57
data_type: string
name: unpack_data
arguments: label: D95
data_type: f64
name: unpack_data
arguments: label: D40
data_type: string

tool: D30: %d

tool: D88:  

tool: 

tool: D57: Roulette  :  

tool: D95: 1.1

tool: D40: %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("");
}
```