user: Converte this assembly snippet into its equivalent C code:

```asm
<asteroid>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x68db8bad,%rdx,%rdx
  sar    $0x2c,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x2710,%edx,%edx
  sub    %edx,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  sar    $0x1f,%eax
  sub    %eax,%edx
  pxor   %xmm3,%xmm3
  cvtsi2sd %edx,%xmm3
  movsd  %xmm3,0x8(%rsp)
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%r15d
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%ebx
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%ebp
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%r12d
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%r13d
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%r14d
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,(%rsp)
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,0x4(%rsp)
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %r14d,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x26,%rdx
  mov    %r14d,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0xc8,%edx,%edx
  sub    %edx,%r14d
  sub    $0x64,%r14d
  movslq %r13d,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x26,%rdx
  mov    %r13d,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0xc8,%edx,%edx
  sub    %edx,%r13d
  sub    $0x64,%r13d
  movslq %r12d,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x26,%rdx
  mov    %r12d,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0xc8,%edx,%edx
  sub    %edx,%r12d
  sub    $0x64,%r12d
  movslq %ebp,%rdx
  imul   $0x68db8bad,%rdx,%rdx
  sar    $0x2c,%rdx
  mov    %ebp,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x2710,%edx,%edx
  sub    %edx,%ebp
  sub    $0x1388,%ebp
  movslq %ebx,%rdx
  imul   $0x68db8bad,%rdx,%rdx
  sar    $0x2c,%rdx
  mov    %ebx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x2710,%edx,%edx
  sub    %edx,%ebx
  sub    $0x1388,%ebx
  movslq %r15d,%rdx
  imul   $0x68db8bad,%rdx,%rdx
  sar    $0x2c,%rdx
  mov    %r15d,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x2710,%edx,%edx
  sub    %edx,%r15d
  pxor   %xmm2,%xmm2
  cvtsi2sd %r15d,%xmm2
  sub    $0x20,%rsp
  cltd
  shr    $0x18,%edx
  add    %edx,%eax
  movzbl %al,%eax
  sub    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D7(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,0x10(%rsp)
  mov    0x24(%rsp),%esi
  mov    %esi,%edx
  sar    $0x1f,%edx
  shr    $0x18,%edx
  add    %edx,%esi
  movzbl %sil,%eax
  sub    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rsp)
  mov    0x20(%rsp),%eax
  mov    %eax,%edx
  sar    $0x1f,%edx
  shr    $0x18,%edx
  add    %edx,%eax
  movzbl %al,%eax
  sub    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rsp)
  pxor   %xmm7,%xmm7
  cvtsi2sd %r14d,%xmm7
  pxor   %xmm6,%xmm6
  cvtsi2sd %r13d,%xmm6
  pxor   %xmm5,%xmm5
  cvtsi2sd %r12d,%xmm5
  pxor   %xmm4,%xmm4
  cvtsi2sd %ebp,%xmm4
  pxor   %xmm3,%xmm3
  cvtsi2sd %ebx,%xmm3
  subsd  D28(%rip),%xmm2
  movsd  0x28(%rsp),%xmm0
  movapd %xmm0,%xmm1
  divsd  D4(%rip),%xmm1
  call   <makeBody@plt>
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D7
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D28
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D4
type_guessed: f64

tool: {"D7": [0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x3f]}

tool: {"D28": [0x00,0x00,0x00,0x00,0x00,0x88,0xb3,0x40]}

tool: D4: 10

assistant: ```c
void asteroid() {
  int factor = 10000;
  double m = rand() % factor / 10;
  double r = m / 10;
  double xpos = (double)(rand() % factor) - factor / 2;
  double ypos = (rand() % factor) - factor / 2;
  double zpos = (rand() % factor) - factor / 2;
  double i = (rand() % 200) - 100;
  double j = (rand() % 200) - 100;
  double k = (rand() % 200) - 100;
  double rc = (double)(rand() % 256) / 256.0;
  double g = (double)(rand() % 256) / 256.0;
  double b = (double)(rand() % 256) / 256.0;
  makeBody(m, r, xpos, ypos, zpos, i, j, k, rc, g, b);
}
```