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

```asm
<get_box>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  movapd %xmm1,%xmm4
  movapd %xmm3,%xmm1
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm4,%xmm0
  movss  %xmm0,-0x20(%rbp)
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm2,%xmm0
  movss  %xmm0,-0x28(%rbp)
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm0
  movss  %xmm0,-0x30(%rbp)
  movl   $0x0,-0x4(%rbp)
  pxor   %xmm1,%xmm1
  cvtss2sd -0x18(%rbp),%xmm1
  movsd  D41(%rip),%xmm0
  comisd %xmm1,%xmm0
  ja     L106
  pxor   %xmm0,%xmm0
  cvtss2sd -0x18(%rbp),%xmm0
  comisd D75(%rip),%xmm0
  ja     L106
  pxor   %xmm1,%xmm1
  cvtss2sd -0x28(%rbp),%xmm1
  movsd  D18(%rip),%xmm0
  comisd %xmm1,%xmm0
  ja     L106
  pxor   %xmm0,%xmm0
  cvtss2sd -0x28(%rbp),%xmm0
  comisd D138(%rip),%xmm0
  jbe    L134
L106:
  mov    $0xffffffff,%eax
  jmp    L235
L134:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x18(%rbp),%xmm1
  movsd  D1(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L203
  movl   $0x0,-0x4(%rbp)
  jmp    L26
L203:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x18(%rbp),%xmm1
  movsd  D122(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L60
  movl   $0x1,-0x4(%rbp)
  jmp    L26
L60:
  movl   $0x2,-0x4(%rbp)
L26:
  movss  D35(%rip),%xmm0
  comiss -0x20(%rbp),%xmm0
  ja     L181
  movss  D62(%rip),%xmm0
  comiss -0x20(%rbp),%xmm0
  jbe    L224
  addl   $0x3,-0x4(%rbp)
  jmp    L181
L224:
  addl   $0x6,-0x4(%rbp)
L181:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x28(%rbp),%xmm1
  movsd  D120(%rip),%xmm0
  comisd %xmm1,%xmm0
  ja     L47
  pxor   %xmm1,%xmm1
  cvtss2sd -0x28(%rbp),%xmm1
  movsd  D111(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L206
  addl   $0x9,-0x4(%rbp)
  jmp    L47
L206:
  pxor   %xmm0,%xmm0
  comiss -0x28(%rbp),%xmm0
  jbe    L128
  addl   $0x12,-0x4(%rbp)
  jmp    L47
L128:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x28(%rbp),%xmm1
  movsd  D114(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L38
  addl   $0x1b,-0x4(%rbp)
  jmp    L47
L38:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x28(%rbp),%xmm1
  movsd  D11(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L111
  addl   $0x24,-0x4(%rbp)
  jmp    L47
L111:
  addl   $0x2d,-0x4(%rbp)
L47:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x30(%rbp),%xmm1
  movsd  D134(%rip),%xmm0
  comisd %xmm1,%xmm0
  ja     L39
  pxor   %xmm1,%xmm1
  cvtss2sd -0x30(%rbp),%xmm1
  movsd  D22(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L153
  addl   $0x36,-0x4(%rbp)
  jmp    L39
L153:
  addl   $0x6c,-0x4(%rbp)
L39:
  mov    -0x4(%rbp),%eax
L235:
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_label: D41
type: byte[8]
name: parse_data
arguments: data_label: D75
type: f64[2]
name: parse_data
arguments: data_label: D18
type: byte[8]
name: parse_data
arguments: data_label: D138
type: f64[2]
name: parse_data
arguments: data_label: D1
type: byte[8]
name: parse_data
arguments: data_label: D122
type: f64
name: parse_data
arguments: data_label: D35
type: byte[4]
name: parse_data
arguments: data_label: D62
type: f32
name: parse_data
arguments: data_label: D120
type: byte[8]
name: parse_data
arguments: data_label: D111
type: byte[8]
name: parse_data
arguments: data_label: D114
type: f64
name: parse_data
arguments: data_label: D11
type: f64
name: parse_data
arguments: data_label: D134
type: byte[8]
name: parse_data
arguments: data_label: D22
type: f64

tool: {"D41": [0x33,0x33,0x33,0x33,0x33,0x33,0x03,0xc0]}

tool: {"D75": [2.4,-0.2094384]}

tool: {"D18": [0x87,0x66,0x43,0xa3,0xe0,0xce,0xca,0xbf]}

tool: {"D138": [0.2094384,-0.8]}

tool: {"D1": [0x9a,0x99,0x99,0x99,0x99,0x99,0xe9,0xbf]}

tool: D122: 0.8

tool: {"D35": [0x00,0x00,0x00,0xbf]}

tool: D62: 0.5

tool: {"D120": [0x87,0x66,0x43,0xa3,0xe0,0xce,0xba,0xbf]}

tool: {"D111": [0xaf,0x99,0xd7,0x6c,0x40,0xdf,0x91,0xbf]}

tool: D114: 0.0174532

tool: D11: 0.1047192

tool: {"D134": [0x22,0xe0,0x10,0xaa,0xd4,0xec,0xeb,0xbf]}

tool: D22: 0.87266

assistant: ```c
get_box(x, x_dot, theta, theta_dot) float x, x_dot, theta, theta_dot;
{
  int box = 0;
  if (x < -2.4 || x > 2.4 || theta < -0.2094384 || theta > 0.2094384)
    return (-1);
  if (x < -0.8)
    box = 0;
  else if (x < 0.8)
    box = 1;
  else
    box = 2;
  if (x_dot < -0.5)
    ;
  else if (x_dot < 0.5)
    box += 3;
  else
    box += 6;
  if (theta < -0.1047192)
    ;
  else if (theta < -0.0174532)
    box += 9;
  else if (theta < 0)
    box += 18;
  else if (theta < 0.0174532)
    box += 27;
  else if (theta < 0.1047192)
    box += 36;
  else
    box += 45;
  if (theta_dot < -0.87266)
    ;
  else if (theta_dot < 0.87266)
    box += 54;
  else
    box += 108;
  return (box);
}
```