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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D238(%rip),%rdi
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x6(%rsp),%rbp
  call   <winopen@plt>
  mov    $0x106,%edi
  call   <unqdevice@plt>
  mov    $0x101,%edi
  call   <qdevice@plt>
  xchg   %ax,%ax
L5:
  mov    %rbp,%rdi
  call   <qread@plt>
  cmp    $0x105,%eax
  jne    L5
  movsd  D20(%rip),%xmm8
  movsd  D190(%rip),%xmm2
  mov    $0x384,%edi
  movsd  D16(%rip),%xmm1
  movapd %xmm8,%xmm0
  call   <perspective@plt>
  movsd  D91(%rip),%xmm0
  pxor   %xmm5,%xmm5
  xor    %edi,%edi
  movsd  D235(%rip),%xmm2
  movapd %xmm5,%xmm3
  movapd %xmm5,%xmm4
  movapd %xmm0,%xmm1
  call   <lookat@plt>
  xor    %edi,%edi
  call   <color@plt>
  xor    %eax,%eax
  call   <clear@plt>
  xor    %eax,%eax
  call   <makesphere@plt>
  mov    $0x6,%edi
  call   <color@plt>
  xor    %eax,%eax
  call   <pushmatrix@plt>
  movsd  D136(%rip),%xmm5
  movapd %xmm5,%xmm2
  movapd %xmm5,%xmm1
  movapd %xmm5,%xmm0
  call   <scale@plt>
  mov    $0x1,%edi
  call   <callobj@plt>
  xor    %eax,%eax
  call   <popmatrix@plt>
  mov    $0x7,%edi
  call   <color@plt>
  xor    %eax,%eax
  call   <pushmatrix@plt>
  pxor   %xmm4,%xmm4
  movsd  D254(%rip),%xmm2
  movsd  D18(%rip),%xmm1
  movapd %xmm4,%xmm0
  call   <translate@plt>
  movsd  D270(%rip),%xmm3
  movapd %xmm3,%xmm2
  movapd %xmm3,%xmm1
  movapd %xmm3,%xmm0
  call   <scale@plt>
  mov    $0x1,%edi
  call   <callobj@plt>
  xor    %eax,%eax
  call   <popmatrix@plt>
  mov    $0x1,%edi
  call   <color@plt>
  xor    %eax,%eax
  call   <pushmatrix@plt>
  pxor   %xmm4,%xmm4
  movsd  D273(%rip),%xmm2
  movsd  D189(%rip),%xmm1
  movapd %xmm4,%xmm0
  call   <translate@plt>
  movsd  D122(%rip),%xmm0
  movapd %xmm0,%xmm2
  movapd %xmm0,%xmm1
  call   <scale@plt>
  mov    $0x1,%edi
  call   <callobj@plt>
  xor    %eax,%eax
  call   <popmatrix@plt>
  mov    $0x2,%edi
  call   <color@plt>
  xor    %eax,%eax
  call   <pushmatrix@plt>
  movsd  D213(%rip),%xmm7
  pxor   %xmm4,%xmm4
  movsd  D75(%rip),%xmm1
  movapd %xmm4,%xmm0
  movapd %xmm7,%xmm2
  call   <translate@plt>
  movsd  D194(%rip),%xmm6
  movapd %xmm6,%xmm2
  movapd %xmm6,%xmm1
  movapd %xmm6,%xmm0
  call   <scale@plt>
  mov    $0x1,%edi
  call   <callobj@plt>
  xor    %eax,%eax
  call   <popmatrix@plt>
  mov    $0x3,%edi
  call   <color@plt>
  xor    %eax,%eax
  call   <pushmatrix@plt>
  mov    D213(%rip),%rax
  pxor   %xmm4,%xmm4
  movapd %xmm4,%xmm0
  movq   %rax,%xmm2
  movq   %rax,%xmm1
  call   <translate@plt>
  movsd  D170(%rip),%xmm0
  movapd %xmm0,%xmm2
  movapd %xmm0,%xmm1
  call   <scale@plt>
  mov    $0x1,%edi
  call   <callobj@plt>
  xor    %eax,%eax
  call   <popmatrix@plt>
  mov    $0x4,%edi
  call   <color@plt>
  xor    %eax,%eax
  call   <pushmatrix@plt>
  mov    D213(%rip),%rax
  pxor   %xmm4,%xmm4
  movsd  D283(%rip),%xmm1
  movapd %xmm4,%xmm0
  movq   %rax,%xmm2
  call   <translate@plt>
  mov    D270(%rip),%rax
  movq   %rax,%xmm2
  movq   %rax,%xmm1
  movq   %rax,%xmm0
  call   <scale@plt>
  mov    $0x1,%edi
  call   <callobj@plt>
  xor    %eax,%eax
  call   <popmatrix@plt>
  lea    D48(%rip),%rdi
  call   <hfont@plt>
  mov    D20(%rip),%rax
  pxor   %xmm4,%xmm4
  movapd %xmm4,%xmm0
  movapd %xmm4,%xmm2
  movq   %rax,%xmm3
  movq   %rax,%xmm1
  call   <ortho2@plt>
  mov    $0x1,%edi
  call   <hcentertext@plt>
  mov    D194(%rip),%rax
  movsd  D126(%rip),%xmm0
  movq   %rax,%xmm1
  call   <htextsize@plt>
  mov    D136(%rip),%rax
  movsd  D69(%rip),%xmm0
  movq   %rax,%xmm1
  call   <move2@plt>
  movsd  D217(%rip),%xmm0
  call   <htextang@plt>
  lea    D179(%rip),%rdi
  call   <hcharstr@plt>
  mov    %rbp,%rdi
  call   <qread@plt>
  xor    %eax,%eax
  call   <gexit@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L16:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D238
type_guessed: string
name: parse_data
arguments: label: D20
type_guessed: f64
name: parse_data
arguments: label: D190
type_guessed: f64
name: parse_data
arguments: label: D16
type_guessed: f64
name: parse_data
arguments: label: D91
type_guessed: f64
name: parse_data
arguments: label: D235
type_guessed: f64
name: parse_data
arguments: label: D136
type_guessed: f64
name: parse_data
arguments: label: D254
type_guessed: f32[2]
name: parse_data
arguments: label: D18
type_guessed: f32[2]
name: parse_data
arguments: label: D270
type_guessed: f64
name: parse_data
arguments: label: D273
type_guessed: f32[2]
name: parse_data
arguments: label: D189
type_guessed: f64
name: parse_data
arguments: label: D122
type_guessed: f64
name: parse_data
arguments: label: D213
type_guessed: f32[2]
name: parse_data
arguments: label: D75
type_guessed: f32[2]
name: parse_data
arguments: label: D194
type_guessed: f64
name: parse_data
arguments: label: D170
type_guessed: f64
name: parse_data
arguments: label: D283
type_guessed: f32[2]
name: parse_data
arguments: label: D48
type_guessed: string
name: parse_data
arguments: label: D126
type_guessed: f64
name: parse_data
arguments: label: D69
type_guessed: f64
name: parse_data
arguments: label: D217
type_guessed: f32[2]
name: parse_data
arguments: label: D179
type_guessed: string

tool: D238: balls

tool: D20: 1

tool: D190: 500

tool: D16: 0.001

tool: D91: 13

tool: D235: 8

tool: D136: 0.5

tool: {"D254": [0.0,2.6875]}

tool: {"D18": [0.0,-2.6875]}

tool: D270: 0.3

tool: {"D273": [0.0,2.4375]}

tool: D189: 10

tool: D122: 0.2

tool: {"D213": [0.0,-2.5625]}

tool: {"D75": [0.0,2.71875]}

tool: D194: 0.15

tool: D170: 0.12

tool: {"D283": [0.0,-2.8125]}

tool: D48: times.rb

tool: D126: 0.08

tool: D69: 0.8

tool: {"D217": [0.0,-3.3515625]}

tool: D179: I'm very ordinary!

assistant: ```c
main() {
  short val;
  winopen("balls");
  unqdevice(262);
  qdevice(257);
  while (qread(&val) != 261)
    ;
  perspective(900, 1.0, 0.001, 500.0);
  lookat(13.0, 13.0, 8.0, 0.0, 0.0, 0.0, 0);
  color(0);
  clear();
  makesphere();
  color(6);
  pushmatrix();
  scale(0.5, 0.5, 0.5);
  callobj(1L);
  popmatrix();
  color(7);
  pushmatrix();
  translate(0.0, -1.4 * 10.0, 1.4 * 10.0);
  scale(0.3, 0.3, 0.3);
  callobj(1L);
  popmatrix();
  color(1);
  pushmatrix();
  translate(0.0, 10.0, 0.7 * 10.0);
  scale(0.2, 0.2, 0.2);
  callobj(1L);
  popmatrix();
  color(2);
  pushmatrix();
  translate(0.0, 1.5 * 10.0, -10.0);
  scale(0.15, 0.15, 0.15);
  callobj(1L);
  popmatrix();
  color(3);
  pushmatrix();
  translate(0.0, -10.0, -10.0);
  scale(0.12, 0.12, 0.12);
  callobj(1L);
  popmatrix();
  color(4);
  pushmatrix();
  translate(0.0, -2.0 * 10.0, -10.0);
  scale(0.3, 0.3, 0.3);
  callobj(1L);
  popmatrix();
  hfont("times.rb");
  ortho2(0.0, 1.0, 0.0, 1.0);
  hcentertext(1);
  htextsize(0.08, 0.15);
  move2(0.8, 0.5);
  htextang(-90.0);
  hcharstr("I'm very ordinary!");
  qread(&val);
  gexit();
}
```