user: 这段汇编代码用C语言表示是什么样的？

```asm
<spctrn>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x58,%rsp
  lea    0x2c(%rsp),%r15
  movsd  %xmm1,0x18(%rsp)
  lea    0x2a(%rsp),%rdx
  movapd %xmm2,%xmm1
  lea    0x28(%rsp),%rsi
  movapd %xmm3,%xmm2
  lea    0x40(%rsp),%r9
  mov    %r15,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%r8
  movsd  %xmm3,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  call   <spcspx@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  je     L14
L34:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x58,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L14:
  lea    0x5(%rbx),%r14
  mov    $0x3,%edx
  lea    D17(%rip),%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  movsd  0x8(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm2
  test   %rax,%rax
  je     L39
  movzbl 0x2a(%rsp),%eax
  cmp    $0x77,%al
  je     L26
  cmp    $0x61,%al
  je     L75
  mov    %al,0x5(%rbx)
  movb   $0x32,0x6(%rbx)
L39:
  movsd  0x30(%rsp),%xmm0
  mov    %rbp,%r8
  mov    %r15,%rcx
  mov    %rbx,%rdi
  lea    0x29(%rsp),%rdx
  lea    0x2b(%rsp),%rsi
  lea    0x38(%rsp),%r9
  call   <spcxps@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  jne    L34
  movzbl 0x2b(%rsp),%eax
  cmp    0x2a(%rsp),%al
  jne    L6
  movzbl 0x29(%rsp),%edx
  movb   $0x3f,0x7(%rbx)
  cmp    %dl,%al
  je     L89
  mov    %dl,0x7(%rbx)
L102:
  movsd  0x38(%rsp),%xmm0
  mulsd  0x40(%rsp),%xmm0
  mulsd  0x18(%rsp),%xmm0
  movsd  %xmm0,0x0(%r13)
  jmp    L34
  nopl   0x0(%rax,%rax,1)
L6:
  mov    $0x2,%r12d
  jmp    L34
  nopl   0x0(%rax,%rax,1)
L26:
  lea    D21(%rip),%rsi
  mov    %r14,%rdi
  call   <strcpy@plt>
  movsd  0x8(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm2
  jmp    L39
  nopl   0x0(%rax,%rax,1)
L89:
  lea    D13(%rip),%rsi
  mov    %r14,%rdi
  call   <strcpy@plt>
  jmp    L102
  nopl   0x0(%rax)
L75:
  lea    D2(%rip),%rsi
  mov    %r14,%rdi
  movsd  %xmm2,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  call   <strcpy@plt>
  movsd  0x8(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm2
  jmp    L39
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D17
datatype: string
name: retrieve_data
arguments: label: D21
datatype: string
name: retrieve_data
arguments: label: D13
datatype: string
name: retrieve_data
arguments: label: D2
datatype: string

tool: D17: ???

tool: D21: GRI

tool: D13:     

tool: D2: GRA

assistant: ```c
int spctrn(const char ctypeS1[9], double crvalS1, double cdeltS1, double restfrq, double restwav, char ctypeS2[9], double *crvalS2, double *cdeltS2) {
  char ptype1, ptype2, xtype1, xtype2;
  int restreq, status;
  double crvalX, dS2dX, dXdS1;
  if (status = spcspx(ctypeS1, crvalS1, restfrq, restwav, &ptype1, &xtype1, &restreq, &crvalX, &dXdS1)) {
    return status;
  }
  if (strncmp(ctypeS2 + 5, "???", 3)) {
    if (xtype1 == 'w') {
      strcpy(ctypeS2 + 5, "GRI");
    } else if (xtype1 == 'a') {
      strcpy(ctypeS2 + 5, "GRA");
    } else {
      ctypeS2[5] = xtype1;
      ctypeS2[6] = '2';
    }
  }
  if (status = spcxps(ctypeS2, crvalX, restfrq, restwav, &xtype2, &ptype2, &restreq, crvalS2, &dS2dX)) {
    return status;
  }
  if (xtype2 != xtype1) {
    return 2;
  }
  if (ctypeS2[7] = '?') {
    if (ptype2 == xtype2) {
      strcpy(ctypeS2 + 5, "    ");
    } else {
      ctypeS2[7] = ptype2;
    }
  }
  *cdeltS2 = dS2dX * dXdS1 * cdeltS1;
  return 0;
}
```