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

```asm
<cm_read_line>:
  endbr64
  push   %r12
  push   %rbp
  lea    D48(%rip),%rbp
  push   %rbx
  mov    %rdi,%rbx
  add    $0xffffffffffffff80,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  mov    %rbp,%rsi
  lea    0x8(%rsp),%rdx
  lea    0x8(%rbx),%rdi
  mov    %rax,%r12
  xor    %eax,%eax
  call   <sscanf@plt>
  mov    %rbp,%rsi
  lea    0x10(%rsp),%rdx
  xor    %eax,%eax
  lea    D57(%rip),%rbp
  lea    0xe(%rbx),%rdi
  call   <sscanf@plt>
  lea    0x18(%rsp),%rdx
  lea    0x1a(%rbx),%rdi
  xor    %eax,%eax
  mov    %rbp,%rsi
  call   <sscanf@plt>
  lea    0x20(%rsp),%rdx
  lea    0x25(%rbx),%rdi
  xor    %eax,%eax
  mov    %rbp,%rsi
  call   <sscanf@plt>
  lea    0x28(%rsp),%rdx
  lea    0x30(%rbx),%rdi
  xor    %eax,%eax
  mov    %rbp,%rsi
  call   <sscanf@plt>
  lea    0x30(%rsp),%rdx
  lea    0x3b(%rbx),%rdi
  xor    %eax,%eax
  mov    %rbp,%rsi
  call   <sscanf@plt>
  lea    0x38(%rsp),%rdx
  lea    0x46(%rbx),%rdi
  xor    %eax,%eax
  lea    D56(%rip),%rsi
  call   <sscanf@plt>
  lea    0x40(%rsp),%rdx
  lea    0x50(%rbx),%rdi
  xor    %eax,%eax
  lea    D90(%rip),%rsi
  call   <sscanf@plt>
  xor    %eax,%eax
  lea    0x48(%rsp),%rdx
  lea    0x5c(%rbx),%rdi
  lea    D130(%rip),%rsi
  call   <sscanf@plt>
  cmp    $0xa6,%r12
  ja     L31
L22:
  movsd  0x8(%rsp),%xmm0
  lea    D35(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  0x10(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D120(%rip),%rdi
  call   <printf@plt>
  movsd  0x18(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D105(%rip),%rdi
  call   <printf@plt>
  movsd  0x20(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D117(%rip),%rdi
  call   <printf@plt>
  movsd  0x28(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D154(%rip),%rdi
  call   <printf@plt>
  movsd  0x30(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D140(%rip),%rdi
  call   <printf@plt>
  movsd  0x38(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D21(%rip),%rdi
  call   <printf@plt>
  movsd  0x40(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D73(%rip),%rdi
  call   <printf@plt>
  movsd  0x48(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D3(%rip),%rdi
  call   <printf@plt>
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  sub    $0xffffffffffffff80,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L31:
  lea    0x50(%rsp),%rbp
  xor    %esi,%esi
  mov    $0x1d,%edx
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    %rbp,%rdx
  lea    0xa6(%rbx),%rdi
  xor    %eax,%eax
  lea    D9(%rip),%rsi
  call   <sscanf@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <strrchr@plt>
  cmpb   $0x20,-0x1(%rax)
  lea    -0x1(%rax),%rdx
  jne    L3
  nopl   0x0(%rax,%rax,1)
L8:
  sub    $0x1,%rdx
  cmpb   $0x20,(%rdx)
  je     L8
L3:
  movb   $0x0,0x1(%rdx)
  mov    %rbp,%rsi
  lea    D24(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L22
L25:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D48
type_guessed: string
name: parse_data
arguments: data_tag: D57
type_guessed: string
name: parse_data
arguments: data_tag: D56
type_guessed: string
name: parse_data
arguments: data_tag: D90
type_guessed: string
name: parse_data
arguments: data_tag: D130
type_guessed: string
name: parse_data
arguments: data_tag: D35
type_guessed: string
name: parse_data
arguments: data_tag: D120
type_guessed: string
name: parse_data
arguments: data_tag: D105
type_guessed: string
name: parse_data
arguments: data_tag: D117
type_guessed: string
name: parse_data
arguments: data_tag: D154
type_guessed: string
name: parse_data
arguments: data_tag: D140
type_guessed: string
name: parse_data
arguments: data_tag: D21
type_guessed: string
name: parse_data
arguments: data_tag: D73
type_guessed: string
name: parse_data
arguments: data_tag: D3
type_guessed: string
name: parse_data
arguments: data_tag: D9
type_guessed: string
name: parse_data
arguments: data_tag: D24
type_guessed: string

tool: D48: %8lf

tool: D57: %15lf

tool: D56: %17lf

tool: D90: %20lf

tool: D130: %19lf

tool: D35: abs mag: %f


tool: D120: slope: %f


tool: D105: mean anomaly at epoch: %f


tool: D117: arg of perihelion: %f


tool: D154: longitude of ascending node: %f


tool: D140: inclination: %f


tool: D21: eccentricity: %f


tool: D73: mean motion: %f


tool: D3: semimajor: %f


tool: D9: %28c

tool: D24: name = '%s'


assistant: ```c
void cm_read_line(const char *line) {
  double H, G, M, arg_peri, long_asc, incl, ecc, mean_motion, semimajor;
  size_t slen = strlen(line);
  sscanf(&line[8], "%8lf", &H);
  sscanf(&line[14], "%8lf", &G);
  sscanf(&line[26], "%15lf", &M);
  sscanf(&line[37], "%15lf", &arg_peri);
  sscanf(&line[48], "%15lf", &long_asc);
  sscanf(&line[59], "%15lf", &incl);
  sscanf(&line[70], "%17lf", &ecc);
  sscanf(&line[80], "%20lf", &mean_motion);
  sscanf(&line[92], "%19lf", &semimajor);
  if (slen > 166) {
    char name[194 - 167 + 2];
    memset(name, 0, sizeof(name));
    sscanf(&line[166], "%28c", name);
    char *p = strrchr(name, '\0');
    p--;
    while (*p == ' ')
      p--;
    p[1] = '\0';
    printf("name = '%s'\n", name);
  }
  printf("abs mag: %f\n", H);
  printf("slope: %f\n", G);
  printf("mean anomaly at epoch: %f\n", M);
  printf("arg of perihelion: %f\n", arg_peri);
  printf("longitude of ascending node: %f\n", long_asc);
  printf("inclination: %f\n", incl);
  printf("eccentricity: %f\n", ecc);
  printf("mean motion: %f\n", mean_motion);
  printf("semimajor: %f\n", semimajor);
}
```