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

```asm
<temp_parm>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rcx,0x28(%rsp)
  mov    %r8,0x20(%rsp)
  mov    %r9,0x10(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  movl   $0x0,(%r8)
  cmpl   $0x0,(%rsi)
  jle    L138
  mov    %rdi,%r13
  mov    %rsi,%r14
  mov    %rdx,%r15
  movl   $0x0,0xc(%rsp)
  mov    $0x0,%ebx
  lea    0x38(%rsp),%rax
  mov    %rax,0x18(%rsp)
  jmp    L194
L146:
  lea    0x40(%rsp),%rbx
  mov    %r15,%rdx
  lea    D16(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rdi
  call   <store_error_message@plt>
  movl   $0x1,0xc(%rsp)
  jmp    L151
L100:
  mov    0x38(%rsp),%rax
  movsbl (%rax),%esi
  lea    D9(%rip),%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L148
L206:
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  mov    0x20(%rsp),%rax
  movl   $0x1,(%rax)
  addl   $0x2,0xc(%rsp)
L66:
  add    $0x1,%ebx
  mov    (%r14),%eax
  cmp    %ebx,%eax
  jle    L86
L194:
  movslq %ebx,%rbp
  shl    $0x3,%rbp
  lea    0x0(%r13,%rbp,1),%r12
  mov    (%r12),%rdi
  call   <strupper@plt>
  mov    %r15,%rsi
  mov    (%r12),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L66
  mov    (%r12),%rax
  movb   $0x0,(%rax)
  add    $0x1,%ebx
  cmp    %ebx,(%r14)
  jle    L146
  lea    0x8(%r13,%rbp,1),%rbp
  mov    0x0(%rbp),%rdi
  call   <strupper@plt>
  mov    0x18(%rsp),%rsi
  mov    0x0(%rbp),%rdi
  call   <strtod@plt>
  mov    0x10(%rsp),%rax
  movsd  %xmm0,(%rax)
  mov    0x38(%rsp),%rax
  movsbl (%rax),%esi
  lea    D27(%rip),%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L100
  mov    0x38(%rsp),%rax
  movsbl 0x1(%rax),%esi
  lea    D9(%rip),%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L100
  mov    0x38(%rsp),%rax
  movzbl (%rax),%eax
  mov    0x28(%rsp),%rcx
  mov    %al,(%rcx)
  jmp    L206
L148:
  lea    0x40(%rsp),%rbx
  mov    %r15,%rdx
  lea    D14(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rdi
  call   <store_error_message@plt>
  movl   $0x1,0xc(%rsp)
  jmp    L151
L86:
  cmpl   $0x0,0xc(%rsp)
  je     L151
  test   %eax,%eax
  jle    L72
  mov    $0x1,%esi
  mov    $0x0,%ecx
  lea    0x10(%r13),%r10
  jmp    L161
L210:
  mov    %rax,0x0(%r13,%rcx,8)
  mov    %r9,(%rdx)
  movb   $0x0,(%r9)
L204:
  mov    (%r14),%eax
  add    $0x1,%rcx
  add    $0x1,%rsi
  cmp    %ecx,%eax
  jle    L72
L161:
  mov    0x0(%r13,%rcx,8),%r9
  cmpb   $0x0,(%r9)
  jne    L204
  cmp    %esi,%eax
  jle    L204
  movslq %esi,%rdx
  lea    0x0(%r13,%rdx,8),%rdx
  sub    $0x2,%eax
  sub    %ecx,%eax
  add    %rcx,%rax
  lea    (%r10,%rax,8),%r8
L186:
  mov    (%rdx),%rax
  cmpb   $0x0,(%rax)
  jne    L210
  add    $0x8,%rdx
  cmp    %r8,%rdx
  jne    L186
  jmp    L204
L72:
  sub    0xc(%rsp),%eax
  mov    %eax,(%r14)
  movl   $0x0,0xc(%rsp)
L151:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L12
  mov    0xc(%rsp),%eax
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L138:
  movl   $0x0,0xc(%rsp)
  jmp    L151
L12:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D16
datatype: string
name: parse_data
arguments: label: D9
datatype: string
name: parse_data
arguments: label: D27
datatype: string
name: parse_data
arguments: label: D14
datatype: string

tool: D16: Missing %s value.

tool: D9:  	


tool: D27: CFKR

tool: D14: Invalid %s value or scale.

assistant: ```c
int temp_parm(char **tokens, int *ntokens, char *tparmname, char *tscale, int *tflag, double *tvalue) {
  char msg[80];
  int j, k, count = 0;
  char *sp, *tmptok;
  *tflag = 0;
  j = 0;
  while (j < *ntokens) {
    strupper(tokens[j]);
    if (strcmp(tokens[j], tparmname) == 0) {
      *tokens[j] = '\0';
      j++;
      if (j >= *ntokens) {
        sprintf(msg, "Missing %s value.", tparmname);
        store_error_message(msg);
        return 1;
      }
      strupper(tokens[j]);
      *tvalue = strtod(tokens[j], &sp);
      if (strchr("CFKR", *sp) && strchr(" \t\n\r", *(sp + 1))) {
        *tscale = *sp;
      } else if (!strchr(" \t\n\r", *sp)) {
        sprintf(msg, "Invalid %s value or scale.", tparmname);
        store_error_message(msg);
        return 1;
      }
      *tokens[j] = '\0';
      *tflag = 1;
      count += 2;
    }
    j++;
  }
  if (count == 0)
    return 0;
  for (j = 0; j < *ntokens; j++) {
    if (*tokens[j] == '\0') {
      for (k = j + 1; k < *ntokens; k++) {
        if (*tokens[k] != '\0') {
          tmptok = tokens[j];
          tokens[j] = tokens[k];
          tokens[k] = tmptok;
          *tmptok = '\0';
          break;
        }
      }
    }
  }
  *ntokens -= count;
  return 0;
}
```