user: Translate the below assembly code into C programming language:

```asm
<check_t_terms>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  lea    D42(%rip),%r13
  push   %r12
  lea    D16(%rip),%r12
  push   %rbp
  mov    %rsi,%rbp
  mov    %r12,%rsi
  push   %rbx
  sub    $0x58,%rsp
  divsd  D85(%rip),%xmm0
  movapd %xmm0,%xmm2
  movapd %xmm0,%xmm1
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  mulsd  %xmm0,%xmm2
  movapd %xmm0,%xmm3
  unpcklpd %xmm1,%xmm1
  movsd  %xmm0,0x18(%rsp)
  movaps %xmm1,0x20(%rsp)
  unpcklpd %xmm2,%xmm0
  mulpd  %xmm1,%xmm0
  movaps %xmm0,0x30(%rsp)
  unpckhpd %xmm0,%xmm0
  mulsd  %xmm3,%xmm0
  movsd  %xmm0,0x40(%rsp)
  call   <strpbrk@plt>
  movq   $0x0,0x0(%rbp)
  movsbl (%r15),%esi
  test   %rax,%rax
  setne  %al
  xor    %ebx,%ebx
  movzbl %al,%eax
  mov    %eax,0x14(%rsp)
  mov    D68(%rip),%rax
  mov    %rax,0x8(%rsp)
L325:
  test   %sil,%sil
  jne    L44
L23:
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L206
  test   %ebx,%ebx
  je     L165
L223:
  movsd  0x8(%rsp),%xmm0
  addsd  0x0(%rbp),%xmm0
  movsd  %xmm0,0x0(%rbp)
L165:
  movzbl (%r15),%eax
  cmp    $0x2d,%al
  je     L300
  test   %al,%al
  je     L88
  mov    D68(%rip),%rax
  mov    %rax,0x8(%rsp)
L298:
  movsbl 0x1(%r15),%esi
  add    $0x1,%r15
L81:
  add    $0x1,%ebx
  test   %sil,%sil
  je     L23
L44:
  lea    D3(%rip),%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L77
  movsbl 0x1(%r15),%esi
  add    $0x1,%r15
  jmp    L325
  cs nopw 0x0(%rax,%rax,1)
L300:
  movsd  D20(%rip),%xmm4
  movsd  %xmm4,0x8(%rsp)
  jmp    L298
L206:
  movsbl (%r15),%esi
  test   %sil,%sil
  jne    L308
  test   %ebx,%ebx
  jne    L223
L88:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L85
  mov    0x14(%rsp),%eax
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L143:
  movsbl 0x1(%r15),%esi
  add    $0x1,%r15
  test   %sil,%sil
  je     L20
L308:
  mov    %r13,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L143
  movsbl (%r15),%esi
  test   %sil,%sil
  je     L20
  lea    D9(%rip),%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L20
  movzbl 0x1(%r15),%eax
  lea    0x1(%r15),%r14
  test   %al,%al
  je     L275
  movsbl %al,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L275
  movsd  0x8(%rsp),%xmm7
  mulsd  0x18(%rsp),%xmm7
  movsbl 0x1(%r15),%esi
  mov    %r14,%r15
  movsd  %xmm7,0x8(%rsp)
  jmp    L242
  xchg   %ax,%ax
L77:
  movsbl (%r15),%esi
  jmp    L23
  nopl   0x0(%rax)
L20:
  mov    %r15,%rdi
  call   <atof@plt>
  pxor   %xmm5,%xmm5
  ucomisd %xmm5,%xmm0
  jp     L48
  jne    L48
  movsbl (%r15),%esi
  cmp    $0x30,%sil
  je     L48
L242:
  test   %sil,%sil
  je     L267
  lea    D43(%rip),%r14
  jmp    L13
L232:
  movsbl 0x1(%r15),%esi
  add    $0x1,%r15
  test   %sil,%sil
  je     L81
L13:
  mov    %r14,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L232
  movsbl (%r15),%esi
  jmp    L81
  nopl   0x0(%rax,%rax,1)
L48:
  mov    %r15,%rdi
  call   <atof@plt>
  mulsd  0x8(%rsp),%xmm0
  movsbl (%r15),%esi
  movsd  %xmm0,0x8(%rsp)
  jmp    L242
  nopw   0x0(%rax,%rax,1)
L275:
  mov    %r14,%rdi
  call   <atoi@plt>
  cmp    $0x4,%eax
  jbe    L214
  movsbl 0x1(%r15),%esi
  mov    %r14,%r15
  jmp    L242
L214:
  cltq
  movsd  0x8(%rsp),%xmm7
  movsbl 0x1(%r15),%esi
  mov    %r14,%r15
  mulsd  0x20(%rsp,%rax,8),%xmm7
  movsd  %xmm7,0x8(%rsp)
  jmp    L242
L267:
  add    $0x1,%ebx
  jmp    L23
L85:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D42
datatype: string
name: retrieve_data
arguments: data_label: D16
datatype: string
name: retrieve_data
arguments: data_label: D85
datatype: byte[8]
name: retrieve_data
arguments: data_label: D68
datatype: byte[8]
name: retrieve_data
arguments: data_label: D3
datatype: string
name: retrieve_data
arguments: data_label: D20
datatype: byte[8]
name: retrieve_data
arguments: data_label: D9
datatype: string
name: retrieve_data
arguments: data_label: D43
datatype: string

tool: D42: * 	

tool: D16: +-

tool: {"D85": [0x00,0x00,0x00,0x00,0xa0,0xd5,0xe1,0x40]}

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

tool: D3:  	

tool: {"D20": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

tool: D9: tT

tool: D43: 0123456789.

assistant: ```c
int check_t_terms(double t, char *sinp, double *doutp) {
  int i, isgn = 1, z;
  int retc = 0;
  char *sp;
  double tt[5], fac;
  tt[0] = t / 36525;
  tt[1] = tt[0];
  tt[2] = tt[1] * tt[1];
  tt[3] = tt[2] * tt[1];
  tt[4] = tt[3] * tt[1];
  if ((sp = strpbrk(sinp, "+-")) != NULL)
    retc = 1;
  sp = sinp;
  *doutp = 0;
  fac = 1;
  z = 0;
  while (1) {
    while (*sp != '\0' && strchr(" \t", *sp) != NULL)
      sp++;
    if (strchr("+-", *sp) || *sp == '\0') {
      if (z > 0)
        *doutp += fac;
      isgn = 1;
      if (*sp == '-')
        isgn = -1;
      fac = 1 * isgn;
      if (*sp == '\0')
        return retc;
      sp++;
    } else {
      while (*sp != '\0' && strchr("* \t", *sp) != NULL)
        sp++;
      if (*sp != '\0' && strchr("tT", *sp) != NULL) {
        sp++;
        if (*sp != '\0' && strchr("+-", *sp))
          fac *= tt[0];
        else if ((i = atoi(sp)) <= 4 && i >= 0)
          fac *= tt[i];
      } else {
        if (atof(sp) != 0 || *sp == '0')
          fac *= atof(sp);
      }
      while (*sp != '\0' && strchr("0123456789.", *sp))
        sp++;
    }
    z++;
  }
  return retc;
}
```