user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<gcproj>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r12
  mov    %rsi,(%rsp)
  mov    %rdx,%rbx
  mov    %rcx,0x10(%rsp)
  mov    %r8,%rbp
  mov    %r9,0x8(%rsp)
  mov    0x78(%rsp),%r14
  mov    0x80(%rsp),%r13
  cmpl   $0x0,0x88(%rsp)
  jne    L229
  mov    (%r8),%r15d
  lea    0x28(%rsp),%rbp
  lea    0x20(%rsp),%r13
  movss  (%rdi),%xmm0
  movd   %r15d,%xmm6
  divss  %xmm6,%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    0x70(%rsp),%rdx
  subsd  (%rdx),%xmm0
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <sincos@plt>
  mov    0x20(%rsp),%r12
  movsd  0x28(%rsp),%xmm0
  movsd  %xmm0,0x18(%rsp)
  mov    (%rsp),%rax
  movss  (%rax),%xmm0
  movd   %r15d,%xmm6
  divss  %xmm6,%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    0x8(%rsp),%rax
  subsd  (%rax),%xmm0
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <sincos@plt>
  mov    0x20(%rsp),%r13
  mov    0x28(%rsp),%rbp
  movsd  0x18(%rsp),%xmm3
  movapd %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  movq   %rbp,%xmm7
  mulsd  %xmm7,%xmm0
  mulsd  %xmm7,%xmm0
  addsd  D52(%rip),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L118
  sqrtsd %xmm0,%xmm0
L54:
  movq   %r12,%xmm1
  movq   %rbp,%xmm7
  mulsd  %xmm7,%xmm1
  movapd %xmm1,%xmm7
  mulsd  %xmm0,%xmm7
  movsd  %xmm7,(%rsp)
  movq   %r13,%xmm1
  mulsd  0x18(%rsp),%xmm1
  movapd %xmm1,%xmm4
  mulsd  %xmm0,%xmm4
  movsd  %xmm4,0x8(%rsp)
  movapd %xmm7,%xmm1
  mulsd  %xmm7,%xmm1
  movsd  D52(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm4,%xmm1
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L126
  sqrtsd %xmm0,%xmm0
L66:
  movsd  (%rsp),%xmm5
  movapd %xmm5,%xmm1
  mulsd  (%r14),%xmm1
  movsd  0x8(%rsp),%xmm6
  movapd %xmm6,%xmm2
  mulsd  0x8(%r14),%xmm2
  addsd  %xmm2,%xmm1
  movapd %xmm0,%xmm2
  mulsd  0x10(%r14),%xmm2
  addsd  %xmm2,%xmm1
  movsd  %xmm1,(%rsp)
  movapd %xmm5,%xmm1
  mulsd  0x18(%r14),%xmm1
  movapd %xmm6,%xmm2
  mulsd  0x20(%r14),%xmm2
  addsd  %xmm2,%xmm1
  movapd %xmm0,%xmm2
  mulsd  0x28(%r14),%xmm2
  addsd  %xmm2,%xmm1
  movsd  %xmm1,0x8(%rsp)
  mulsd  0x30(%r14),%xmm5
  movapd %xmm5,%xmm1
  mulsd  0x38(%r14),%xmm6
  addsd  %xmm6,%xmm1
  mulsd  0x40(%r14),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rsp)
  ucomisd D155(%rip),%xmm1
  jp     L212
  jne    L212
  mov    0x10(%rsp),%rax
  movl   $0x0,(%rax)
L36:
  movsd  (%rsp),%xmm5
  ucomisd D155(%rip),%xmm5
  jp     L158
  pxor   %xmm0,%xmm0
  jne    L158
L23:
  pxor   %xmm1,%xmm1
  comisd (%rsp),%xmm1
  ja     L176
  movss  %xmm0,(%rbx)
L210:
  movss  (%rbx),%xmm0
  movss  D116(%rip),%xmm2
  movss  D82(%rip),%xmm1
  comiss %xmm0,%xmm1
  jbe    L208
L109:
  addss  %xmm2,%xmm0
  comiss %xmm0,%xmm1
  ja     L109
  movss  %xmm0,(%rbx)
  jmp    L208
L118:
  call   <sqrt@plt>
  jmp    L54
L126:
  call   <sqrt@plt>
  jmp    L66
L212:
  movsd  0x8(%rsp),%xmm5
  movapd %xmm5,%xmm1
  mulsd  %xmm5,%xmm1
  movsd  (%rsp),%xmm3
  movapd %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L85
  sqrtsd %xmm0,%xmm0
L63:
  divsd  0x18(%rsp),%xmm0
  call   <atan@plt>
  divsd  D28(%rip),%xmm0
  movsd  D92(%rip),%xmm1
  subsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  comisd 0x18(%rsp),%xmm0
  ja     L89
  mov    0x10(%rsp),%rax
  movss  %xmm1,(%rax)
  jmp    L36
L85:
  call   <sqrt@plt>
  jmp    L63
L89:
  subss  D95(%rip),%xmm1
  mov    0x10(%rsp),%rax
  movss  %xmm1,(%rax)
  jmp    L36
L158:
  movsd  0x8(%rsp),%xmm0
  divsd  (%rsp),%xmm0
  call   <atan@plt>
  divsd  D28(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  jmp    L23
L176:
  subss  D95(%rip),%xmm0
  movss  %xmm0,(%rbx)
  jmp    L210
L229:
  lea    0x28(%rsp),%r14
  lea    0x20(%rsp),%r15
  pxor   %xmm0,%xmm0
  cvtss2sd (%rdx),%xmm0
  mulsd  D28(%rip),%xmm0
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <sincos@plt>
  mov    0x20(%rsp),%rbx
  movsd  0x28(%rsp),%xmm5
  movsd  %xmm5,0x18(%rsp)
  mov    0x10(%rsp),%rax
  pxor   %xmm1,%xmm1
  cvtss2sd (%rax),%xmm1
  movsd  D92(%rip),%xmm0
  subsd  %xmm1,%xmm0
  mulsd  D28(%rip),%xmm0
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <sincos@plt>
  movsd  0x20(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm1
  movq   %rbx,%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  0x18(%rsp),%xmm1
  movapd %xmm0,%xmm3
  mulsd  0x0(%r13),%xmm3
  movapd %xmm1,%xmm4
  mulsd  0x8(%r13),%xmm4
  addsd  %xmm4,%xmm3
  movapd %xmm2,%xmm4
  mulsd  0x10(%r13),%xmm4
  addsd  %xmm4,%xmm3
  movsd  %xmm3,0x10(%rsp)
  mulsd  0x18(%r13),%xmm0
  mulsd  0x20(%r13),%xmm1
  addsd  %xmm1,%xmm0
  mulsd  0x28(%r13),%xmm2
  addsd  %xmm2,%xmm0
  movsd  %xmm0,0x18(%rsp)
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  D52(%rip),%xmm0
  subsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L1
  sqrtsd %xmm0,%xmm0
L179:
  movsd  0x10(%rsp),%xmm1
  movapd %xmm1,%xmm3
  divsd  %xmm0,%xmm3
  movq   %xmm3,%rbx
  mulsd  %xmm1,%xmm1
  movsd  D52(%rip),%xmm0
  subsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L202
  sqrtsd %xmm0,%xmm0
L144:
  pxor   %xmm6,%xmm6
  cvtss2sd 0x0(%rbp),%xmm6
  movsd  %xmm6,0x10(%rsp)
  movsd  0x18(%rsp),%xmm1
  divsd  %xmm0,%xmm1
  movapd %xmm1,%xmm0
  call   <asin@plt>
  mov    0x70(%rsp),%rax
  addsd  (%rax),%xmm0
  mulsd  0x10(%rsp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%r12)
  pxor   %xmm7,%xmm7
  cvtss2sd 0x0(%rbp),%xmm7
  movsd  %xmm7,0x10(%rsp)
  movq   %rbx,%xmm0
  call   <asin@plt>
  mov    0x8(%rsp),%rax
  addsd  (%rax),%xmm0
  mulsd  0x10(%rsp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  mov    (%rsp),%rax
  movss  %xmm0,(%rax)
L208:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1:
  call   <sqrt@plt>
  jmp    L179
L202:
  call   <sqrt@plt>
  jmp    L144
```

tool_calls: name: unpack_data
arguments: tag: D52
datatype: f64
name: unpack_data
arguments: tag: D155
datatype: f64
name: unpack_data
arguments: tag: D116
datatype: f32
name: unpack_data
arguments: tag: D82
datatype: byte[4]
name: unpack_data
arguments: tag: D28
datatype: f64
name: unpack_data
arguments: tag: D92
datatype: f64
name: unpack_data
arguments: tag: D95
datatype: f32

tool: D52: 1

tool: D155: 0

tool: D116: 360

tool: {"D82": [0x00,0x00,0x34,0xc3]}

tool: D28: 0.017453292

tool: D92: 90

tool: D95: 180

assistant: ```c
void gcproj(float *xf, float *yf, float *rlon, float *rlat, float *ref_rad, double *g0, double *b0, double *amat, double *ainv, int gflag) {
  double xp, yp, zp;
  double xg, yg, zg;
  double arg;
  double cosG, sinG;
  double cosB, sinB;
  double rperd = 0.017453292;
  if (gflag == 0) {
    arg = (*xf) / (*ref_rad) - (*b0);
    cosB = cos(arg);
    sinB = sin(arg);
    arg = (*yf) / (*ref_rad) - (*g0);
    cosG = cos(arg);
    sinG = sin(arg);
    arg = sqrt(1.0 + sinB * sinB * sinG * sinG);
    xp = sinG * cosB * arg;
    yp = sinB * cosG * arg;
    zp = sqrt(1.0 - xp * xp - yp * yp);
    xg = xp * amat[0] + yp * amat[1] + zp * amat[2];
    yg = xp * amat[3] + yp * amat[4] + zp * amat[5];
    zg = xp * amat[6] + yp * amat[7] + zp * amat[8];
    if (zg != (double)(0.0)) {
      arg = sqrt(xg * xg + yg * yg) / zg;
      (*rlat) = 90.0 - atan(arg) / rperd;
      if (zg < (double)(0.0))
        (*rlat) = (*rlat) - 180.0;
    } else
      (*rlat) = 0.0;
    if (xg != (double)(0.0)) {
      arg = yg / xg;
      (*rlon) = atan(arg) / rperd;
    } else
      (*rlon) = 0.0;
    if (xg < (double)(0.0))
      (*rlon) = (*rlon) - 180.0;
    while ((*rlon) < (double)(-180.0))
      (*rlon) = (*rlon) + 360.0;
  } else {
    arg = (*rlon) * rperd;
    cosG = cos(arg);
    sinG = sin(arg);
    arg = (90.0 - (*rlat)) * rperd;
    cosB = cos(arg);
    sinB = sin(arg);
    xg = sinB * cosG;
    yg = sinB * sinG;
    zg = cosB;
    xp = xg * ainv[0] + yg * ainv[1] + zg * ainv[2];
    yp = xg * ainv[3] + yg * ainv[4] + zg * ainv[5];
    zp = xg * ainv[6] + yg * ainv[7] + zg * ainv[8];
    sinG = xp / sqrt(1.0 - yp * yp);
    sinB = yp / sqrt(1.0 - xp * xp);
    *xf = (double)(*ref_rad) * (asin(sinB) + (*b0));
    *yf = (double)(*ref_rad) * (asin(sinG) + (*g0));
  }
}
```