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

```asm
<box_intersect>:
  endbr64
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  ucomisd D265(%rip),%xmm3
  jp     L537
  jne    L537
  movq   $0x0,0x8(%rsp)
  movq   $0x0,(%rsp)
L40:
  ucomisd D265(%rip),%xmm4
  jp     L188
  jne    L188
  movq   $0x0,0x18(%rsp)
  movq   $0x0,0x10(%rsp)
L61:
  ucomisd D265(%rip),%xmm5
  jp     L161
  jne    L161
  movq   $0x0,0x28(%rsp)
  movq   $0x0,0x20(%rsp)
L262:
  mov    %rsp,%rax
  lea    0x30(%rsp),%rdx
  mov    $0x0,%ecx
  pxor   %xmm3,%xmm3
  movapd %xmm3,%xmm4
  movapd %xmm3,%xmm1
  mov    $0x1,%r9d
  mov    $0x2,%r8d
  movapd %xmm3,%xmm2
  jmp    L471
L537:
  movsd  D76(%rip),%xmm12
  movapd %xmm6,%xmm10
  mulsd  %xmm12,%xmm10
  movapd %xmm10,%xmm9
  addsd  %xmm0,%xmm9
  movq   D23(%rip),%xmm8
  xorpd  %xmm8,%xmm9
  divsd  %xmm3,%xmm9
  movapd %xmm9,%xmm11
  mulsd  %xmm4,%xmm11
  addsd  %xmm1,%xmm11
  xorpd  %xmm7,%xmm8
  mulsd  %xmm12,%xmm8
  comisd %xmm8,%xmm11
  jbe    L315
  movapd %xmm8,%xmm12
  xorpd  D23(%rip),%xmm12
  comisd %xmm11,%xmm12
  jbe    L342
  movapd %xmm9,%xmm12
  mulsd  %xmm5,%xmm12
  addsd  %xmm2,%xmm12
  movsd  0x50(%rsp),%xmm11
  xorpd  D23(%rip),%xmm11
  mulsd  D76(%rip),%xmm11
  comisd %xmm11,%xmm12
  jbe    L51
  xorpd  D23(%rip),%xmm11
  comisd %xmm12,%xmm11
  ja     L189
  pxor   %xmm9,%xmm9
  jmp    L189
L315:
  pxor   %xmm9,%xmm9
L189:
  movsd  %xmm9,(%rsp)
  subsd  %xmm0,%xmm10
  movapd %xmm10,%xmm9
  divsd  %xmm3,%xmm9
  movapd %xmm4,%xmm10
  mulsd  %xmm9,%xmm10
  addsd  %xmm1,%xmm10
  comisd %xmm8,%xmm10
  jbe    L34
  xorpd  D23(%rip),%xmm8
  comisd %xmm10,%xmm8
  jbe    L34
  movapd %xmm5,%xmm10
  mulsd  %xmm9,%xmm10
  addsd  %xmm2,%xmm10
  movsd  0x50(%rsp),%xmm8
  xorpd  D23(%rip),%xmm8
  mulsd  D76(%rip),%xmm8
  comisd %xmm8,%xmm10
  jbe    L34
  xorpd  D23(%rip),%xmm8
  comisd %xmm10,%xmm8
  jbe    L34
  movsd  %xmm9,0x8(%rsp)
  jmp    L40
L342:
  pxor   %xmm9,%xmm9
  jmp    L189
L51:
  pxor   %xmm9,%xmm9
  jmp    L189
L34:
  movq   $0x0,0x8(%rsp)
  jmp    L40
L188:
  movsd  D76(%rip),%xmm12
  movapd %xmm7,%xmm10
  mulsd  %xmm12,%xmm10
  movapd %xmm10,%xmm8
  addsd  %xmm1,%xmm8
  movq   D23(%rip),%xmm9
  xorpd  %xmm9,%xmm8
  divsd  %xmm4,%xmm8
  movapd %xmm3,%xmm11
  mulsd  %xmm8,%xmm11
  addsd  %xmm0,%xmm11
  xorpd  %xmm6,%xmm9
  mulsd  %xmm12,%xmm9
  comisd %xmm9,%xmm11
  jbe    L53
  movapd %xmm6,%xmm12
  mulsd  D76(%rip),%xmm12
  comisd %xmm11,%xmm12
  jbe    L268
  movapd %xmm5,%xmm12
  mulsd  %xmm8,%xmm12
  addsd  %xmm2,%xmm12
  movsd  0x50(%rsp),%xmm11
  xorpd  D23(%rip),%xmm11
  mulsd  D76(%rip),%xmm11
  comisd %xmm11,%xmm12
  jbe    L214
  xorpd  D23(%rip),%xmm11
  comisd %xmm12,%xmm11
  ja     L255
  pxor   %xmm8,%xmm8
  jmp    L255
L53:
  pxor   %xmm8,%xmm8
L255:
  movsd  %xmm8,0x10(%rsp)
  subsd  %xmm1,%xmm10
  movapd %xmm10,%xmm8
  divsd  %xmm4,%xmm8
  movapd %xmm3,%xmm10
  mulsd  %xmm8,%xmm10
  addsd  %xmm0,%xmm10
  comisd %xmm9,%xmm10
  jbe    L325
  movapd %xmm6,%xmm9
  mulsd  D76(%rip),%xmm9
  comisd %xmm10,%xmm9
  jbe    L325
  movapd %xmm5,%xmm10
  mulsd  %xmm8,%xmm10
  addsd  %xmm2,%xmm10
  movsd  0x50(%rsp),%xmm9
  xorpd  D23(%rip),%xmm9
  mulsd  D76(%rip),%xmm9
  comisd %xmm9,%xmm10
  jbe    L325
  xorpd  D23(%rip),%xmm9
  comisd %xmm10,%xmm9
  jbe    L325
  movsd  %xmm8,0x18(%rsp)
  jmp    L61
L268:
  pxor   %xmm8,%xmm8
  jmp    L255
L214:
  pxor   %xmm8,%xmm8
  jmp    L255
L325:
  movq   $0x0,0x18(%rsp)
  jmp    L61
L161:
  movsd  D76(%rip),%xmm12
  movapd %xmm12,%xmm10
  mulsd  0x50(%rsp),%xmm10
  movapd %xmm10,%xmm8
  addsd  %xmm2,%xmm8
  movq   D23(%rip),%xmm9
  xorpd  %xmm9,%xmm8
  divsd  %xmm5,%xmm8
  movapd %xmm3,%xmm11
  mulsd  %xmm8,%xmm11
  addsd  %xmm0,%xmm11
  xorpd  %xmm6,%xmm9
  mulsd  %xmm12,%xmm9
  comisd %xmm9,%xmm11
  jbe    L511
  movapd %xmm6,%xmm12
  mulsd  D76(%rip),%xmm12
  comisd %xmm11,%xmm12
  jbe    L254
  movapd %xmm4,%xmm12
  mulsd  %xmm8,%xmm12
  addsd  %xmm1,%xmm12
  movapd %xmm7,%xmm11
  xorpd  D23(%rip),%xmm11
  mulsd  D76(%rip),%xmm11
  comisd %xmm11,%xmm12
  jbe    L328
  xorpd  D23(%rip),%xmm11
  comisd %xmm12,%xmm11
  ja     L514
  pxor   %xmm8,%xmm8
  jmp    L514
L511:
  pxor   %xmm8,%xmm8
L514:
  movsd  %xmm8,0x20(%rsp)
  subsd  %xmm2,%xmm10
  movapd %xmm10,%xmm8
  divsd  %xmm5,%xmm8
  mulsd  %xmm8,%xmm3
  addsd  %xmm0,%xmm3
  comisd %xmm9,%xmm3
  jbe    L54
  mulsd  D76(%rip),%xmm6
  comisd %xmm3,%xmm6
  jbe    L54
  mulsd  %xmm8,%xmm4
  addsd  %xmm4,%xmm1
  xorpd  D23(%rip),%xmm7
  mulsd  D76(%rip),%xmm7
  comisd %xmm7,%xmm1
  jbe    L54
  xorpd  D23(%rip),%xmm7
  comisd %xmm1,%xmm7
  jbe    L54
  movsd  %xmm8,0x28(%rsp)
  jmp    L262
L254:
  pxor   %xmm8,%xmm8
  jmp    L514
L328:
  pxor   %xmm8,%xmm8
  jmp    L514
L54:
  movq   $0x0,0x28(%rsp)
  jmp    L262
L109:
  movapd %xmm0,%xmm4
  mov    %r9d,%ecx
L357:
  add    $0x8,%rax
  cmp    %rdx,%rax
  je     L198
L471:
  movsd  (%rax),%xmm0
  ucomisd %xmm1,%xmm0
  jp     L21
  ucomisd %xmm2,%xmm0
  je     L357
L21:
  test   %ecx,%ecx
  je     L109
  movapd %xmm0,%xmm3
  mov    %r8d,%ecx
  jmp    L357
L198:
  ucomisd D265(%rip),%xmm4
  setnp  %al
  mov    $0x0,%edx
  cmovne %edx,%eax
  test   %al,%al
  je     L558
  ucomisd D265(%rip),%xmm3
  setnp  %al
  cmovne %edx,%eax
  mov    $0x0,%edx
  test   %al,%al
  je     L558
L477:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L194
  mov    %edx,%eax
  add    $0x48,%rsp
  ret
L558:
  comisd %xmm4,%xmm3
  jbe    L199
  movsd  %xmm4,(%rdi)
  movsd  %xmm3,(%rsi)
  mov    $0x1,%edx
  jmp    L477
L199:
  movsd  %xmm3,(%rdi)
  movsd  %xmm4,(%rsi)
  mov    $0x1,%edx
  jmp    L477
L194:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D265
type: byte[8]
name: extract_symbolic_data
arguments: data_label: D76
type: byte[8]
name: extract_symbolic_data
arguments: data_label: D23
type: byte[16]

tool: {"D265": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

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

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

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