user: 请将以下的汇编代码转换成C语言代码:

```asm
<get_height>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x28,%rsp
  movsd  %xmm0,-0x88(%rbp)
  movsd  %xmm1,-0x90(%rbp)
  mov    %rdi,-0x98(%rbp)
  mov    %rsi,-0xa0(%rbp)
  mov    -0xa0(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0xa0(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x98(%rbp),%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x78(%rbp),%xmm1
  mov    -0x98(%rbp),%rax
  movsd  0x8(%rax),%xmm0
  mulsd  -0x70(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x98(%rbp),%rax
  movsd  0x18(%rax),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    -0x98(%rbp),%rax
  add    $0x20,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x78(%rbp),%xmm1
  mov    -0x98(%rbp),%rax
  add    $0x20,%rax
  movsd  0x8(%rax),%xmm0
  mulsd  -0x70(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x98(%rbp),%rax
  add    $0x20,%rax
  movsd  0x18(%rax),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x60(%rbp)
  mov    -0xa0(%rbp),%rax
  movsd  0x8(%rax),%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0xa0(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x98(%rbp),%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x78(%rbp),%xmm1
  mov    -0x98(%rbp),%rax
  movsd  0x8(%rax),%xmm0
  mulsd  -0x70(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x98(%rbp),%rax
  movsd  0x18(%rax),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  mov    -0x98(%rbp),%rax
  add    $0x20,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x78(%rbp),%xmm1
  mov    -0x98(%rbp),%rax
  add    $0x20,%rax
  movsd  0x8(%rax),%xmm0
  mulsd  -0x70(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x98(%rbp),%rax
  add    $0x20,%rax
  movsd  0x18(%rax),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  mov    -0xa0(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0xa0(%rbp),%rax
  add    $0x10,%rax
  movsd  0x8(%rax),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x98(%rbp),%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x78(%rbp),%xmm1
  mov    -0x98(%rbp),%rax
  movsd  0x8(%rax),%xmm0
  mulsd  -0x70(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x98(%rbp),%rax
  movsd  0x18(%rax),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0x98(%rbp),%rax
  add    $0x20,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x78(%rbp),%xmm1
  mov    -0x98(%rbp),%rax
  add    $0x20,%rax
  movsd  0x8(%rax),%xmm0
  mulsd  -0x70(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x98(%rbp),%rax
  add    $0x20,%rax
  movsd  0x18(%rax),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x58(%rbp),%xmm0
  subsd  -0x68(%rbp),%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x50(%rbp),%xmm0
  subsd  -0x60(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  -0x48(%rbp),%xmm0
  subsd  -0x68(%rbp),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0x40(%rbp),%xmm0
  subsd  -0x60(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x88(%rbp),%xmm0
  subsd  -0x68(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movsd  -0x90(%rbp),%xmm0
  subsd  -0x60(%rbp),%xmm0
  movsd  %xmm0,-0x60(%rbp)
  movsd  -0x58(%rbp),%xmm0
  mulsd  -0x40(%rbp),%xmm0
  movsd  -0x48(%rbp),%xmm1
  mulsd  -0x50(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  pxor   %xmm0,%xmm0
  ucomisd -0x38(%rbp),%xmm0
  jp     L25
  pxor   %xmm0,%xmm0
  ucomisd -0x38(%rbp),%xmm0
  jne    L25
  pxor   %xmm0,%xmm0
  jmp    L6
L25:
  movsd  -0x40(%rbp),%xmm0
  divsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x48(%rbp),%xmm0
  movq   D38(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  divsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x50(%rbp),%xmm0
  movq   D38(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  divsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x58(%rbp),%xmm0
  divsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x30(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x68(%rbp),%xmm1
  movsd  -0x28(%rbp),%xmm0
  mulsd  -0x60(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x68(%rbp),%xmm1
  movsd  -0x18(%rbp),%xmm0
  mulsd  -0x60(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L0
  movsd  D31(%rip),%xmm0
  comisd -0x10(%rbp),%xmm0
  jb     L0
  movsd  -0x8(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L0
  movsd  D31(%rip),%xmm0
  comisd -0x8(%rbp),%xmm0
  jb     L0
  mov    -0x98(%rbp),%rax
  add    $0x40,%rax
  movsd  0x18(%rax),%xmm1
  mov    -0xa0(%rbp),%rax
  add    $0x20,%rax
  movsd  0x8(%rax),%xmm0
  addsd  %xmm1,%xmm0
  jmp    L6
L0:
  pxor   %xmm0,%xmm0
L6:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D38
datatype: f32[2]
name: unpack_data
arguments: data_tag: D31
datatype: f64

tool: {"D38": [0.0,-0.0]}

tool: D31: 1

assistant: ```c
double get_height(double px, double py, double trans[3][4], double boundary[3][2]) {
  double x, x0, x1, x2;
  double y, y0, y1, y2;
  double d, m00, m01, m10, m11;
  double rx, ry;
  x = boundary[0][0];
  y = boundary[1][0];
  x0 = trans[0][0] * x + trans[0][1] * y + trans[0][3];
  y0 = trans[1][0] * x + trans[1][1] * y + trans[1][3];
  x = boundary[0][1];
  y = boundary[1][0];
  x1 = trans[0][0] * x + trans[0][1] * y + trans[0][3];
  y1 = trans[1][0] * x + trans[1][1] * y + trans[1][3];
  x = boundary[0][0];
  y = boundary[1][1];
  x2 = trans[0][0] * x + trans[0][1] * y + trans[0][3];
  y2 = trans[1][0] * x + trans[1][1] * y + trans[1][3];
  x1 -= x0;
  y1 -= y0;
  x2 -= x0;
  y2 -= y0;
  x0 = px - x0;
  y0 = py - y0;
  d = x1 * y2 - x2 * y1;
  if (d == 0.0)
    return 0.0;
  m00 = y2 / d;
  m01 = -x2 / d;
  m10 = -y1 / d;
  m11 = x1 / d;
  rx = m00 * x0 + m01 * y0;
  ry = m10 * x0 + m11 * y0;
  if (rx >= 0.0 && rx <= 1.0 && ry >= 0.0 && ry <= 1.0) {
    return trans[2][3] + boundary[2][1];
  }
  return 0.0;
}
```