user: Translate the below assembly code into C programming language:

```asm
<box_intersect>:
  endbr64
  sub    $0x48,%rsp
  movapd %xmm0,%xmm10
  pxor   %xmm0,%xmm0
  mov    %rdi,%rax
  mov    %fs:0x28,%rcx
  mov    %rcx,0x38(%rsp)
  xor    %ecx,%ecx
  ucomisd %xmm0,%xmm3
  mov    %rsi,%rdx
  jp     L797
  jne    L797
  pxor   %xmm8,%xmm8
  movaps %xmm8,(%rsp)
L284:
  ucomisd %xmm0,%xmm4
  jp     L492
  jne    L492
  pxor   %xmm8,%xmm8
  movaps %xmm8,0x10(%rsp)
L823:
  ucomisd %xmm0,%xmm5
  jp     L711
  jne    L711
  pxor   %xmm1,%xmm1
  movaps %xmm1,0x20(%rsp)
L525:
  movsd  (%rsp),%xmm2
  ucomisd %xmm0,%xmm2
  jp     L67
  jne    L67
  movsd  0x8(%rsp),%xmm2
  ucomisd %xmm0,%xmm2
  jp     L356
  jne    L356
  movsd  0x10(%rsp),%xmm2
  ucomisd %xmm0,%xmm2
  jp     L206
  je     L412
L206:
  movsd  0x18(%rsp),%xmm3
  ucomisd %xmm0,%xmm3
  jp     L870
  jne    L870
  movsd  0x20(%rsp),%xmm4
  ucomisd %xmm0,%xmm4
  jp     L421
  movapd %xmm0,%xmm3
  je     L344
L421:
  movapd %xmm2,%xmm3
L712:
  movsd  0x28(%rsp),%xmm1
  ucomisd %xmm0,%xmm1
  jp     L804
  movq   %xmm1,%rsi
  movq   %xmm4,%rdi
  cmovne %rsi,%rdi
  movq   %rdi,%xmm1
L804:
  comisd %xmm3,%xmm1
  jbe    L143
  movsd  %xmm3,(%rax)
  mov    $0x1,%eax
  movsd  %xmm1,(%rdx)
  jmp    L399
  nopw   0x0(%rax,%rax,1)
L356:
  movsd  0x10(%rsp),%xmm1
  ucomisd %xmm0,%xmm1
  jp     L640
  jne    L640
  movsd  0x18(%rsp),%xmm3
  ucomisd %xmm0,%xmm3
  jp     L870
  je     L303
L870:
  movsd  0x20(%rsp),%xmm4
  ucomisd %xmm0,%xmm4
  jp     L421
L606:
  jne    L421
L344:
  movsd  0x28(%rsp),%xmm1
  ucomisd %xmm0,%xmm1
  jp     L396
  jne    L396
L279:
  ucomisd %xmm0,%xmm2
  mov    $0x0,%esi
  setnp  %cl
  cmovne %esi,%ecx
  test   %cl,%cl
  je     L80
  ucomisd %xmm0,%xmm3
  setnp  %cl
  cmovne %esi,%ecx
  test   %cl,%cl
  je     L80
  xor    %eax,%eax
L399:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L19
  add    $0x48,%rsp
  ret
L67:
  movsd  0x8(%rsp),%xmm3
  ucomisd %xmm0,%xmm3
  jp     L621
  je     L356
L621:
  movsd  0x10(%rsp),%xmm1
  ucomisd %xmm0,%xmm1
  jp     L640
  jne    L640
  movsd  0x18(%rsp),%xmm1
  ucomisd %xmm0,%xmm1
  jp     L431
  je     L870
L431:
  movapd %xmm1,%xmm3
  jmp    L870
  nopl   0x0(%rax,%rax,1)
L711:
  movsd  D4(%rip),%xmm8
  movapd %xmm3,%xmm14
  movapd %xmm6,%xmm12
  movsd  0x50(%rsp),%xmm11
  movq   D55(%rip),%xmm9
  mulsd  %xmm8,%xmm11
  xorpd  %xmm9,%xmm12
  mulsd  %xmm8,%xmm12
  movapd %xmm11,%xmm13
  addsd  %xmm2,%xmm13
  xorpd  %xmm9,%xmm13
  divsd  %xmm5,%xmm13
  mulsd  %xmm13,%xmm14
  addsd  %xmm10,%xmm14
  comisd %xmm12,%xmm14
  ja     L196
L869:
  movapd %xmm0,%xmm13
L682:
  subsd  %xmm2,%xmm11
  movsd  %xmm13,0x20(%rsp)
  divsd  %xmm5,%xmm11
  mulsd  %xmm11,%xmm3
  addsd  %xmm10,%xmm3
  comisd %xmm12,%xmm3
  jbe    L423
  mulsd  %xmm8,%xmm6
  comisd %xmm3,%xmm6
  jbe    L423
  mulsd  %xmm11,%xmm4
  xorpd  %xmm9,%xmm7
  mulsd  %xmm8,%xmm7
  addsd  %xmm4,%xmm1
  comisd %xmm7,%xmm1
  jbe    L423
  xorpd  %xmm9,%xmm7
  comisd %xmm1,%xmm7
  jbe    L423
  movsd  %xmm11,0x28(%rsp)
  jmp    L525
  nopl   (%rax)
L492:
  movapd %xmm7,%xmm14
  movapd %xmm3,%xmm13
  movapd %xmm6,%xmm12
  movsd  D4(%rip),%xmm8
  movq   D55(%rip),%xmm9
  mulsd  %xmm8,%xmm14
  xorpd  %xmm9,%xmm12
  mulsd  %xmm8,%xmm12
  movapd %xmm14,%xmm11
  addsd  %xmm1,%xmm11
  xorpd  %xmm9,%xmm11
  divsd  %xmm4,%xmm11
  mulsd  %xmm11,%xmm13
  addsd  %xmm10,%xmm13
  comisd %xmm12,%xmm13
  ja     L281
L260:
  movapd %xmm0,%xmm11
L430:
  subsd  %xmm1,%xmm14
  movsd  %xmm11,0x10(%rsp)
  movapd %xmm3,%xmm13
  movapd %xmm14,%xmm11
  divsd  %xmm4,%xmm11
  mulsd  %xmm11,%xmm13
  addsd  %xmm10,%xmm13
  comisd %xmm12,%xmm13
  jbe    L678
  movapd %xmm6,%xmm12
  mulsd  %xmm8,%xmm12
  comisd %xmm13,%xmm12
  jbe    L678
  movapd %xmm5,%xmm13
  movsd  0x50(%rsp),%xmm12
  mulsd  %xmm11,%xmm13
  xorpd  %xmm9,%xmm12
  mulsd  %xmm12,%xmm8
  addsd  %xmm2,%xmm13
  comisd %xmm8,%xmm13
  jbe    L678
  xorpd  %xmm9,%xmm8
  comisd %xmm13,%xmm8
  jbe    L678
  movsd  %xmm11,0x18(%rsp)
  jmp    L823
  nopw   0x0(%rax,%rax,1)
L797:
  movsd  D4(%rip),%xmm8
  movapd %xmm6,%xmm14
  movapd %xmm7,%xmm12
  movq   D55(%rip),%xmm9
  mulsd  %xmm8,%xmm14
  xorpd  %xmm9,%xmm12
  mulsd  %xmm8,%xmm12
  movapd %xmm14,%xmm11
  addsd  %xmm10,%xmm11
  xorpd  %xmm9,%xmm11
  divsd  %xmm3,%xmm11
  movapd %xmm11,%xmm13
  mulsd  %xmm4,%xmm13
  addsd  %xmm1,%xmm13
  comisd %xmm12,%xmm13
  ja     L263
L750:
  movapd %xmm0,%xmm11
L425:
  subsd  %xmm10,%xmm14
  movsd  %xmm11,(%rsp)
  movapd %xmm4,%xmm13
  movapd %xmm14,%xmm11
  divsd  %xmm3,%xmm11
  mulsd  %xmm11,%xmm13
  addsd  %xmm1,%xmm13
  comisd %xmm12,%xmm13
  jbe    L489
  xorpd  %xmm9,%xmm12
  comisd %xmm13,%xmm12
  jbe    L489
  movapd %xmm5,%xmm13
  movsd  0x50(%rsp),%xmm12
  mulsd  %xmm11,%xmm13
  xorpd  %xmm9,%xmm12
  mulsd  %xmm12,%xmm8
  addsd  %xmm2,%xmm13
  comisd %xmm8,%xmm13
  jbe    L489
  xorpd  %xmm9,%xmm8
  comisd %xmm13,%xmm8
  jbe    L489
  movsd  %xmm11,0x8(%rsp)
  jmp    L284
  nopl   0x0(%rax)
L263:
  movapd %xmm12,%xmm15
  xorpd  %xmm9,%xmm15
  comisd %xmm13,%xmm15
  jbe    L750
  movapd %xmm11,%xmm13
  movsd  0x50(%rsp),%xmm15
  mulsd  %xmm5,%xmm13
  xorpd  %xmm9,%xmm15
  mulsd  %xmm8,%xmm15
  addsd  %xmm2,%xmm13
  comisd %xmm15,%xmm13
  jbe    L750
  xorpd  %xmm9,%xmm15
  cmpltsd %xmm15,%xmm13
  andpd  %xmm13,%xmm11
  jmp    L425
  nopl   (%rax)
L196:
  movapd %xmm6,%xmm15
  mulsd  %xmm8,%xmm15
  comisd %xmm14,%xmm15
  jbe    L869
  movapd %xmm4,%xmm14
  movapd %xmm7,%xmm15
  mulsd  %xmm13,%xmm14
  xorpd  %xmm9,%xmm15
  mulsd  %xmm8,%xmm15
  addsd  %xmm1,%xmm14
  comisd %xmm15,%xmm14
  jbe    L869
  xorpd  %xmm9,%xmm15
  cmpltsd %xmm15,%xmm14
  andpd  %xmm14,%xmm13
  jmp    L682
  nopl   0x0(%rax,%rax,1)
L281:
  movapd %xmm6,%xmm15
  mulsd  %xmm8,%xmm15
  comisd %xmm13,%xmm15
  jbe    L260
  movapd %xmm5,%xmm13
  movsd  0x50(%rsp),%xmm15
  mulsd  %xmm11,%xmm13
  xorpd  %xmm9,%xmm15
  mulsd  %xmm8,%xmm15
  addsd  %xmm2,%xmm13
  comisd %xmm15,%xmm13
  jbe    L260
  xorpd  %xmm9,%xmm15
  cmpltsd %xmm15,%xmm13
  andpd  %xmm13,%xmm11
  jmp    L430
  nopl   (%rax)
L489:
  movq   $0x0,0x8(%rsp)
  jmp    L284
  cs nopw 0x0(%rax,%rax,1)
L423:
  movq   $0x0,0x28(%rsp)
  jmp    L525
  xchg   %ax,%ax
L678:
  movq   $0x0,0x18(%rsp)
  jmp    L823
  xchg   %ax,%ax
L640:
  movsd  0x18(%rsp),%xmm3
  ucomisd %xmm0,%xmm3
  jp     L870
  jne    L870
  movsd  0x20(%rsp),%xmm4
  ucomisd %xmm0,%xmm4
  jp     L421
  movapd %xmm1,%xmm3
  jmp    L606
  nop
L143:
  movsd  %xmm1,(%rax)
  mov    $0x1,%eax
  movsd  %xmm3,(%rdx)
  jmp    L399
  nopw   0x0(%rax,%rax,1)
L303:
  movsd  0x20(%rsp),%xmm4
  ucomisd %xmm0,%xmm4
  jp     L421
  jne    L421
  mov    $0x1,%ecx
L470:
  movsd  0x28(%rsp),%xmm3
  ucomisd %xmm0,%xmm3
  jp     L111
  je     L355
L111:
  test   %ecx,%ecx
  jne    L80
L169:
  movapd %xmm0,%xmm1
  jmp    L804
L80:
  movapd %xmm3,%xmm1
L396:
  movapd %xmm2,%xmm3
  jmp    L804
L19:
  call   <__stack_chk_fail@plt>
L355:
  movapd %xmm0,%xmm3
  jmp    L279
L412:
  movsd  0x18(%rsp),%xmm3
  ucomisd %xmm0,%xmm3
  jp     L738
  je     L511
L738:
  movsd  0x20(%rsp),%xmm4
  ucomisd %xmm0,%xmm4
  jp     L712
  jne    L712
  movsd  0x28(%rsp),%xmm1
  ucomisd %xmm0,%xmm1
  jp     L804
  movq   %xmm1,%rcx
  movq   %xmm0,%rdi
  cmovne %rcx,%rdi
  movq   %rdi,%xmm1
  jmp    L804
L511:
  movsd  0x20(%rsp),%xmm3
  ucomisd %xmm0,%xmm3
  jp     L411
  jne    L411
  xor    %ecx,%ecx
  movapd %xmm0,%xmm2
  jmp    L470
  xchg   %ax,%ax
L411:
  movsd  0x28(%rsp),%xmm1
  ucomisd %xmm0,%xmm1
  jp     L804
  je     L169
  jmp    L804
```

tool_calls: name: extract_symbolic_data
arguments: label: D4
type: byte[8]
name: extract_symbolic_data
arguments: label: D55
type: byte[8]

tool: {"D4": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

tool: {"D55": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

assistant: ```c
int box_intersect(double *dt_in, double *dt_out, double x, double y, double z, double vx, double vy, double vz, double dx, double dy, double dz) {
  double x_in, y_in, z_in, tt, t[6], a, b;
  int i, count, s;
  if (vx != 0) {
    tt = -(dx / 2 + x) / vx;
    y_in = y + tt * vy;
    z_in = z + tt * vz;
    if (y_in > -dy / 2 && y_in < dy / 2 && z_in > -dz / 2 && z_in < dz / 2)
      t[0] = tt;
    else
      t[0] = 0;
    tt = (dx / 2 - x) / vx;
    y_in = y + tt * vy;
    z_in = z + tt * vz;
    if (y_in > -dy / 2 && y_in < dy / 2 && z_in > -dz / 2 && z_in < dz / 2)
      t[1] = tt;
    else
      t[1] = 0;
  } else
    t[0] = t[1] = 0;
  if (vy != 0) {
    tt = -(dy / 2 + y) / vy;
    x_in = x + tt * vx;
    z_in = z + tt * vz;
    if (x_in > -dx / 2 && x_in < dx / 2 && z_in > -dz / 2 && z_in < dz / 2)
      t[2] = tt;
    else
      t[2] = 0;
    tt = (dy / 2 - y) / vy;
    x_in = x + tt * vx;
    z_in = z + tt * vz;
    if (x_in > -dx / 2 && x_in < dx / 2 && z_in > -dz / 2 && z_in < dz / 2)
      t[3] = tt;
    else
      t[3] = 0;
  } else
    t[2] = t[3] = 0;
  if (vz != 0) {
    tt = -(dz / 2 + z) / vz;
    x_in = x + tt * vx;
    y_in = y + tt * vy;
    if (x_in > -dx / 2 && x_in < dx / 2 && y_in > -dy / 2 && y_in < dy / 2)
      t[4] = tt;
    else
      t[4] = 0;
    tt = (dz / 2 - z) / vz;
    x_in = x + tt * vx;
    y_in = y + tt * vy;
    if (x_in > -dx / 2 && x_in < dx / 2 && y_in > -dy / 2 && y_in < dy / 2)
      t[5] = tt;
    else
      t[5] = 0;
  } else
    t[4] = t[5] = 0;
  a = b = s = 0;
  count = 0;
  for (i = 0; i < 6; i = i + 1)
    if (t[i] == 0)
      s = s + 1;
    else if (count == 0) {
      a = t[i];
      count = 1;
    } else {
      b = t[i];
      count = 2;
    }
  if (a == 0 && b == 0)
    return 0;
  else if (a < b) {
    *dt_in = a;
    *dt_out = b;
    return 1;
  } else {
    *dt_in = b;
    *dt_out = a;
    return 1;
  }
}
```