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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jle    L17
  lea    0x8(%rsi),%rbx
  lea    -0x2(%rdi),%eax
  lea    0x10(%rsi,%rax,8),%r15
  mov    $0x0,%r13d
  mov    $0x0,%r12d
  mov    $0x1,%r14d
L97:
  mov    (%rbx),%rbp
  lea    D104(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  cmove  %r14d,%r12d
  lea    D21(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  cmove  %r14d,%r13d
  add    $0x8,%rbx
  cmp    %r15,%rbx
  jne    L97
L51:
  mov    $0x190,%esi
  mov    $0x190,%edi
  mov    $0x0,%eax
  call   <prefsize@plt>
  lea    D0(%rip),%rdi
  mov    $0x0,%eax
  call   <vinit@plt>
  lea    D36(%rip),%rdi
  mov    $0x0,%eax
  call   <winopen@plt>
  mov    $0x1b,%edi
  mov    $0x0,%eax
  call   <qdevice@plt>
  mov    $0x51,%edi
  mov    $0x0,%eax
  call   <qdevice@plt>
  mov    $0x106,%edi
  mov    $0x0,%eax
  call   <unqdevice@plt>
  lea    0x26(%rsp),%rbx
L33:
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <qread@plt>
  cmp    $0x105,%eax
  jne    L33
  mov    $0x0,%eax
  call   <doublebuffer@plt>
  mov    $0x0,%eax
  call   <gconfig@plt>
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <polymode@plt>
  test   %r13d,%r13d
  jne    L98
L46:
  test   %r12d,%r12d
  jne    L8
L86:
  movsd  D112(%rip),%xmm2
  movsd  D135(%rip),%xmm1
  movsd  D96(%rip),%xmm0
  mov    $0x190,%edi
  mov    $0x3,%eax
  call   <perspective@plt>
  mov    $0x0,%edi
  pxor   %xmm5,%xmm5
  movapd %xmm5,%xmm4
  movapd %xmm5,%xmm3
  movsd  D100(%rip),%xmm2
  movapd %xmm5,%xmm1
  movapd %xmm5,%xmm0
  mov    $0x6,%eax
  call   <lookat@plt>
  mov    $0x0,%eax
  call   <maketetra@plt>
  movss  D9(%rip),%xmm5
  movss  %xmm5,0x8(%rsp)
  pxor   %xmm5,%xmm5
  movss  %xmm5,0xc(%rsp)
L40:
  mov    $0x0,%ebx
L102:
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <color@plt>
  mov    $0x0,%eax
  call   <clear@plt>
  mov    $0x78,%esi
  mov    $0x2,%edi
  mov    $0x0,%eax
  call   <rotate@plt>
  mov    $0x7a,%esi
  mov    $0x2,%edi
  mov    $0x0,%eax
  call   <rotate@plt>
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <color@plt>
  mov    $0x0,%eax
  call   <pushmatrix@plt>
  mov    $0x78,%esi
  mov    $0x384,%edi
  mov    $0x0,%eax
  call   <rotate@plt>
  mov    D34(%rip),%rax
  movq   %rax,%xmm2
  pxor   %xmm1,%xmm1
  movapd %xmm1,%xmm0
  mov    $0x3,%eax
  call   <circ@plt>
  mov    $0x0,%eax
  call   <popmatrix@plt>
  mov    $0x4,%edi
  mov    $0x0,%eax
  call   <color@plt>
  pxor   %xmm2,%xmm2
  movapd %xmm2,%xmm1
  movapd %xmm2,%xmm0
  mov    $0x3,%eax
  call   <move@plt>
  pxor   %xmm6,%xmm6
  cvtss2sd 0x8(%rsp),%xmm6
  movq   %xmm6,%r12
  pxor   %xmm7,%xmm7
  cvtss2sd 0xc(%rsp),%xmm7
  movq   %xmm7,%rbp
  movapd %xmm6,%xmm2
  pxor   %xmm1,%xmm1
  movapd %xmm7,%xmm0
  mov    $0x3,%eax
  call   <draw@plt>
  mov    $0x0,%eax
  call   <pushmatrix@plt>
  movq   %r12,%xmm2
  pxor   %xmm1,%xmm1
  movq   %rbp,%xmm0
  mov    $0x3,%eax
  call   <translate@plt>
  mov    $0x78,%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <rotate@plt>
  mov    $0x79,%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <rotate@plt>
  mov    $0x7a,%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <rotate@plt>
  mov    D129(%rip),%rax
  movq   %rax,%xmm2
  movq   %rax,%xmm1
  movq   %rax,%xmm0
  mov    $0x3,%eax
  call   <scale@plt>
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <callobj@plt>
  mov    $0x0,%eax
  call   <popmatrix@plt>
  lea    0x18(%rsp),%rdi
  lea    0x10(%rsp),%rsi
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  mulsd  D111(%rip),%xmm0
  divsd  D126(%rip),%xmm0
  call   <sincos@plt>
  movsd  D34(%rip),%xmm0
  mulsd  0x10(%rsp),%xmm0
  pxor   %xmm3,%xmm3
  cvtsd2ss %xmm0,%xmm3
  movss  %xmm3,0x8(%rsp)
  movsd  D34(%rip),%xmm0
  mulsd  0x18(%rsp),%xmm0
  pxor   %xmm4,%xmm4
  cvtsd2ss %xmm0,%xmm4
  movss  %xmm4,0xc(%rsp)
  mov    $0x0,%eax
  call   <swapbuffers@plt>
  mov    $0x0,%eax
  call   <qtest@plt>
  test   %eax,%eax
  jne    L30
  add    $0x2,%ebx
  cmp    $0xe10,%ebx
  jne    L102
  jmp    L40
L17:
  mov    $0x0,%r13d
  mov    $0x0,%r12d
  jmp    L51
L98:
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <polymode@plt>
  jmp    L46
L8:
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <backface@plt>
  jmp    L86
L30:
  mov    $0x0,%eax
  call   <gexit@plt>
  mov    $0x0,%edi
  call   <exit@plt>
```

tool_calls: name: read_data
arguments: label: D104
type: string
name: read_data
arguments: label: D21
type: string
name: read_data
arguments: label: D0
type: string
name: read_data
arguments: label: D36
type: string
name: read_data
arguments: label: D112
type: f64
name: read_data
arguments: label: D135
type: f64
name: read_data
arguments: label: D96
type: f64
name: read_data
arguments: label: D100
type: f64
name: read_data
arguments: label: D9
type: f32
name: read_data
arguments: label: D34
type: byte[8]
name: read_data
arguments: label: D129
type: f64
name: read_data
arguments: label: D111
type: f64
name: read_data
arguments: label: D126
type: f32[2]

tool: D104: -b

tool: D21: -f

tool: D0: mswin

tool: D36: tetra

tool: D112: 15

tool: D135: 0.001

tool: D96: 1

tool: D100: 5

tool: D9: 1.6

tool: {"D34": [0x00,0x00,0x00,0xa0,0x99,0x99,0xf9,0x3f]}

tool: D129: 0.4

tool: D111: 3.1415926535

tool: {"D126": [0.0,3.6015625]}

assistant: ```c
main(argc, argv) int argc;
char **argv;
{
  char dev[20];
  int i, but;
  int rotval = 0, drotval = 2;
  float R = 1.6, tx = 0.0, tz = R, zeye = 5.0;
  int do_backface = 0;
  int do_fill = 0;
  short val;
  for (i = 1; i < argc; i++) {
    if (!strcmp(argv[i], "-b"))
      do_backface = 1;
    if (!strcmp(argv[i], "-f"))
      do_fill = 1;
  }
  prefsize(400L, 400L);
  vinit("mswin");
  winopen("tetra");
  qdevice('\033');
  qdevice('Q');
  unqdevice(262);
  while (qread(&val) != 261)
    ;
  doublebuffer();
  gconfig();
  polymode(0);
  if (do_fill)
    polymode(1);
  if (do_backface)
    backface(1);
  perspective(400, 1.0, 0.001, 15.0);
  lookat(0.0, 0.0, zeye, 0.0, 0.0, 0.0, 0);
  maketetra();
  do {
    for (rotval = 0; rotval < 3600; rotval += drotval) {
      color(0);
      clear();
      rotate(drotval, 'x');
      rotate(drotval, 'z');
      color(1);
      pushmatrix();
      rotate(900, 'x');
      circ(0.0, 0.0, R);
      popmatrix();
      color(4);
      move(0.0, 0.0, 0.0);
      draw(tx, 0.0, tz);
      pushmatrix();
      translate(tx, 0.0, tz);
      rotate(rotval, 'x');
      rotate(rotval, 'y');
      rotate(rotval, 'z');
      scale(0.4, 0.4, 0.4);
      callobj(1L);
      popmatrix();
      tz = R * cos((double)(rotval * 3.1415926535 / 180));
      tx = R * sin((double)(rotval * 3.1415926535 / 180));
      swapbuffers();
      if (qtest()) {
        gexit();
        exit(0);
      }
    }
  } while (1);
}
```