user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<gtpt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  movq   %xmm0,%r12
  movq   %xmm1,%rbp
  movq   %xmm2,%rbx
  mov    %rdi,%r15
  mov    %rsi,%r14
  mov    %rdx,%r13
  movapd %xmm7,%xmm2
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  ucomisd D27(%rip),%xmm6
  jp     L12
  je     L43
L12:
  ucomisd D4(%rip),%xmm6
  jp     L68
  jne    L68
  movq   %r12,%xmm0
  subsd  %xmm3,%xmm0
  movsd  %xmm0,0x18(%rsp)
  movq   %rbp,%xmm7
  subsd  %xmm4,%xmm7
  movq   %rbx,%xmm1
  subsd  %xmm5,%xmm1
  lea    0x38(%rsp),%rdx
  lea    0x50(%rsp),%rsi
  lea    0x48(%rsp),%rdi
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm7,0x8(%rsp)
  movapd %xmm7,%xmm0
  call   <gt_agany@plt>
  lea    0x40(%rsp),%rdi
  movsd  0x38(%rsp),%xmm0
  call   <gt_fullrot@plt>
  lea    0x30(%rsp),%rsi
  lea    0x28(%rsp),%rdi
  movsd  0x10(%rsp),%xmm2
  movsd  0x8(%rsp),%xmm1
  movsd  0x40(%rsp),%xmm0
  call   <rt@plt>
  movsd  0x18(%rsp),%xmm0
  subsd  %xmm0,%xmm0
  movq   %r12,%xmm5
  addsd  %xmm5,%xmm0
  movsd  %xmm0,(%r15)
  movsd  0x28(%rsp),%xmm0
  subsd  0x8(%rsp),%xmm0
  movq   %rbp,%xmm5
  addsd  %xmm5,%xmm0
  movsd  %xmm0,(%r14)
  movsd  0x30(%rsp),%xmm0
  subsd  0x10(%rsp),%xmm0
  movq   %rbx,%xmm3
  addsd  %xmm3,%xmm0
  movsd  %xmm0,0x0(%r13)
L55:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L47
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L43:
  movapd %xmm0,%xmm7
  subsd  %xmm3,%xmm7
  movapd %xmm7,%xmm3
  movapd %xmm1,%xmm7
  subsd  %xmm4,%xmm7
  movq   %rbx,%xmm0
  subsd  %xmm5,%xmm0
  movsd  %xmm0,0x18(%rsp)
  lea    0x38(%rsp),%rdx
  lea    0x50(%rsp),%rsi
  lea    0x48(%rsp),%rdi
  movsd  %xmm7,0x10(%rsp)
  movapd %xmm7,%xmm1
  movsd  %xmm3,0x8(%rsp)
  movapd %xmm3,%xmm0
  call   <gt_agany@plt>
  lea    0x40(%rsp),%rdi
  movsd  0x38(%rsp),%xmm0
  call   <gt_fullrot@plt>
  lea    0x28(%rsp),%rsi
  lea    0x30(%rsp),%rdi
  movsd  0x10(%rsp),%xmm2
  movsd  0x8(%rsp),%xmm1
  movsd  0x40(%rsp),%xmm0
  call   <rt@plt>
  movsd  0x30(%rsp),%xmm0
  subsd  0x8(%rsp),%xmm0
  movq   %r12,%xmm5
  addsd  %xmm5,%xmm0
  movsd  %xmm0,(%r15)
  movsd  0x28(%rsp),%xmm0
  subsd  0x10(%rsp),%xmm0
  movq   %rbp,%xmm4
  addsd  %xmm4,%xmm0
  movsd  %xmm0,(%r14)
  movsd  0x18(%rsp),%xmm0
  subsd  %xmm0,%xmm0
  movq   %rbx,%xmm2
  addsd  %xmm2,%xmm0
  movsd  %xmm0,0x0(%r13)
  jmp    L55
L68:
  lea    D1(%rip),%rdi
  call   <printf@plt>
  jmp    L55
L47:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D27
type: byte[8]
name: parse_data
arguments: data_tag: D4
type: byte[8]
name: parse_data
arguments: data_tag: D1
type: string

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

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

tool: D1: rotate Error!


assistant: ```c
void gtpt(double x1, double y1, double z1, double x2, double y2, double z2, double *xr, double *yr, double *zr, double vh, double fnr) {
  double brrt_x, brrt_y, brrt_z;
  double agxy, agz, bsl, drl;
  double rot_x, rot_y, rot_z;
  double afrt_x, afrt_y, afrt_z;
  double ag_a, frt;
  double ag_vh, bsl_vh;
  if (vh == 0) {
    brrt_x = x1 - x2;
    brrt_y = y1 - y2;
    brrt_z = z1 - z2;
    gt_agany(brrt_x, brrt_y, &ag_vh, &bsl_vh, fnr, &ag_a);
    gt_fullrot(ag_a, &frt);
    rt(frt, brrt_x, brrt_y, &afrt_x, &afrt_y);
    afrt_z = brrt_z;
    *xr = x1 + (afrt_x - brrt_x);
    *yr = y1 + (afrt_y - brrt_y);
    *zr = z1 + (afrt_z - brrt_z);
  } else if (vh == 1) {
    brrt_x = x1 - x2;
    brrt_y = y1 - y2;
    brrt_z = z1 - z2;
    gt_agany(brrt_y, brrt_z, &ag_vh, &bsl_vh, fnr, &ag_a);
    gt_fullrot(ag_a, &frt);
    rt(frt, brrt_y, brrt_z, &afrt_y, &afrt_z);
    afrt_x = brrt_x;
    *xr = x1 + (afrt_x - brrt_x);
    *yr = y1 + (afrt_y - brrt_y);
    *zr = z1 + (afrt_z - brrt_z);
  } else {
    printf("rotate Error!\n");
  }
}
```