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

```asm
<asteroid>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  movl   $0x2710,-0x5c(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  idivl  -0x5c(%rbp)
  mov    %edx,%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
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x58(%rbp),%xmm0
  movsd  D27(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  idivl  -0x5c(%rbp)
  mov    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    -0x5c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  idivl  -0x5c(%rbp)
  mov    %edx,%ecx
  mov    -0x5c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  neg    %eax
  add    %ecx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  idivl  -0x5c(%rbp)
  mov    %edx,%ecx
  mov    -0x5c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  neg    %eax
  add    %ecx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x6,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0xc8,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    -0x64(%rdx),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x6,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0xc8,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    -0x64(%rdx),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x6,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0xc8,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    -0x64(%rdx),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x18,%edx
  add    %edx,%eax
  movzbl %al,%eax
  sub    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D23(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x18,%edx
  add    %edx,%eax
  movzbl %al,%eax
  sub    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D23(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x18,%edx
  add    %edx,%eax
  movzbl %al,%eax
  sub    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D23(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x20(%rbp),%xmm6
  movsd  -0x28(%rbp),%xmm5
  movsd  -0x30(%rbp),%xmm4
  movsd  -0x38(%rbp),%xmm3
  movsd  -0x40(%rbp),%xmm2
  movsd  -0x48(%rbp),%xmm1
  movsd  -0x50(%rbp),%xmm0
  mov    -0x58(%rbp),%rax
  sub    $0x8,%rsp
  push   -0x8(%rbp)
  push   -0x10(%rbp)
  push   -0x18(%rbp)
  movapd %xmm6,%xmm7
  movapd %xmm5,%xmm6
  movapd %xmm4,%xmm5
  movapd %xmm3,%xmm4
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <makeBody@plt>
  add    $0x20,%rsp
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D27
type: f64
name: retrieve_data
arguments: data_label: D23
type: f64

tool: D27: 10

tool: D23: 256

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