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

```asm
<search_rep>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x108,%rsp
  mov    %rdi,-0xf8(%rbp)
  mov    %rsi,-0x100(%rbp)
  mov    %rdx,-0x108(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0xf8(%rbp),%rax
  mov    $0x3d,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0xe0(%rbp)
  mov    -0xe0(%rbp),%rax
  sub    -0xf8(%rbp),%rax
  mov    %eax,%edx
  mov    $0x50,%eax
  sub    %edx,%eax
  mov    %eax,-0xe4(%rbp)
  movl   $0x0,-0xec(%rbp)
  jmp    L224
L219:
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x108(%rbp),%rax
  add    %rdx,%rax
  mov    -0xec(%rbp),%edx
  movslq %edx,%rcx
  mov    -0xf8(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0xec(%rbp)
L224:
  mov    -0x108(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0xec(%rbp)
  jl     L219
  mov    -0x108(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x8,%eax
  jg     L266
  jmp    L240
L86:
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x20,(%rax)
  addl   $0x1,-0xec(%rbp)
L240:
  cmpl   $0x7,-0xec(%rbp)
  jle    L86
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x3d,(%rax)
  addl   $0x1,-0xec(%rbp)
  mov    -0x108(%rbp),%rax
  lea    D35(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L78
  mov    -0xe0(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  je     L324
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  mov    $0x2f,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0xd8(%rbp)
  cmpq   $0x0,-0xd8(%rbp)
  je     L51
  mov    -0xf8(%rbp),%rax
  add    $0x50,%rax
  sub    -0xd8(%rbp),%rax
  mov    %eax,%edx
  mov    -0xd8(%rbp),%rcx
  lea    -0x70(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
L51:
  cmpq   $0x0,-0xd8(%rbp)
  je     L225
  lea    -0x70(%rbp),%rbx
  jmp    L105
L225:
  lea    D77(%rip),%rbx
L105:
  mov    -0xe0(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D98(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <convert_deg_to_str@plt>
  mov    %rax,%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rbx,%rcx
  lea    D112(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  lea    -0xd0(%rbp),%rax
  mov    $0x47,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  jmp    L324
L78:
  mov    -0x108(%rbp),%rax
  lea    D25(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L126
  mov    -0xe0(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  je     L324
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  mov    $0x2f,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0xd8(%rbp)
  cmpq   $0x0,-0xd8(%rbp)
  je     L248
  mov    -0xf8(%rbp),%rax
  add    $0x50,%rax
  sub    -0xd8(%rbp),%rax
  mov    %eax,%edx
  mov    -0xd8(%rbp),%rcx
  lea    -0x70(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
L248:
  cmpq   $0x0,-0xd8(%rbp)
  je     L38
  lea    -0x70(%rbp),%rbx
  jmp    L160
L38:
  lea    D60(%rip),%rbx
L160:
  mov    -0xe0(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <atof@plt>
  mov    %eax,%edi
  call   <convert_deg_to_str@plt>
  mov    %rax,%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rbx,%rcx
  lea    D112(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  lea    -0xd0(%rbp),%rax
  mov    $0x47,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  jmp    L324
L126:
  mov    -0x108(%rbp),%rax
  lea    D97(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L351
  mov    -0xe0(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  je     L324
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  mov    $0x2f,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0xd8(%rbp)
  cmpq   $0x0,-0xd8(%rbp)
  je     L54
  mov    -0xf8(%rbp),%rax
  add    $0x50,%rax
  sub    -0xd8(%rbp),%rax
  mov    %eax,%edx
  mov    -0xd8(%rbp),%rcx
  lea    -0x70(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
L54:
  cmpq   $0x0,-0xd8(%rbp)
  je     L311
  lea    -0x70(%rbp),%rbx
  jmp    L275
L311:
  lea    D90(%rip),%rbx
L275:
  mov    -0xe0(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D140(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <convert_deg_to_str@plt>
  mov    %rax,%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rbx,%rcx
  lea    D112(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  lea    -0xd0(%rbp),%rax
  mov    $0x47,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  jmp    L324
L351:
  mov    -0x108(%rbp),%rax
  lea    D138(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L247
  mov    -0xe0(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  je     L324
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  mov    $0x2f,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0xd8(%rbp)
  cmpq   $0x0,-0xd8(%rbp)
  je     L141
  mov    -0xf8(%rbp),%rax
  add    $0x50,%rax
  sub    -0xd8(%rbp),%rax
  mov    %eax,%edx
  mov    -0xd8(%rbp),%rcx
  lea    -0x70(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
L141:
  cmpq   $0x0,-0xd8(%rbp)
  je     L323
  lea    -0x70(%rbp),%rbx
  jmp    L331
L323:
  lea    D54(%rip),%rbx
L331:
  mov    -0xe0(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D140(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <convert_deg_to_str@plt>
  mov    %rax,%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rbx,%rcx
  lea    D112(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  lea    -0xd0(%rbp),%rax
  mov    $0x47,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  jmp    L324
L247:
  movl   $0x0,-0xe8(%rbp)
  jmp    L53
L359:
  mov    -0xe8(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  mov    -0xec(%rbp),%ecx
  mov    -0xe8(%rbp),%edx
  add    %ecx,%edx
  movslq %edx,%rcx
  mov    -0xf8(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0xe8(%rbp)
L53:
  mov    -0xe8(%rbp),%eax
  cmp    -0xe4(%rbp),%eax
  jl     L359
  mov    -0xe4(%rbp),%eax
  sub    $0x1,%eax
  add    %eax,-0xec(%rbp)
  jmp    L177
L347:
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x20,(%rax)
  addl   $0x1,-0xec(%rbp)
L177:
  cmpl   $0x4f,-0xec(%rbp)
  jle    L347
  jmp    L324
L266:
  mov    -0x108(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xec(%rbp)
  jmp    L149
L203:
  mov    -0xec(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x20,(%rax)
  addl   $0x1,-0xec(%rbp)
L149:
  mov    -0x100(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0xec(%rbp)
  jl     L203
  nop
L324:
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L156
  call   <__stack_chk_fail@plt>
L156:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D35
datatype: string
name: retrieve_data
arguments: label: D77
datatype: string
name: retrieve_data
arguments: label: D98
datatype: f64
name: retrieve_data
arguments: label: D112
datatype: string
name: retrieve_data
arguments: label: D25
datatype: string
name: retrieve_data
arguments: label: D60
datatype: string
name: retrieve_data
arguments: label: D97
datatype: string
name: retrieve_data
arguments: label: D90
datatype: string
name: retrieve_data
arguments: label: D140
datatype: f64
name: retrieve_data
arguments: label: D138
datatype: string
name: retrieve_data
arguments: label: D54
datatype: string

tool: D35: RA

tool: D77: / Right Ascension

tool: D98: 15

tool: D112:  %-29.29s %-40.40s

tool: D25: DEC

tool: D60: / Declination

tool: D97: UT

tool: D90: / UT

tool: D140: 3600

tool: D138: ST

tool: D54: / ST

assistant: ```c
void search_rep(char *line, char *key_i, char *key_o) {
  int i, j;
  char *equal;
  int to_copy;
  char *p;
  char tmp[80 + 1];
  char comment[80 + 1];
  equal = strstr(line, "=");
  to_copy = 80 - (equal - line);
  for (i = 0; i < (int)strlen(key_o); i++) {
    line[i] = key_o[i];
  }
  if (strlen(key_o) <= 8) {
    for (; i < 8; i++) {
      line[i] = ' ';
    }
    line[i] = '=';
    i++;
    if (!strcmp(key_o, "RA")) {
      if (*(equal + 2) != '\'') {
        p = strchr(line + i, '/');
        if (p)
          strncpy(comment, p, line + 80 - p);
        sprintf(tmp, " %-29.29s %-40.40s", convert_deg_to_str(atof(equal + 1) / 15.), (p) ? comment : "/ Right Ascension");
        memcpy(line + i, tmp, 71);
      }
    } else if (!strcmp(key_o, "DEC")) {
      if (*(equal + 2) != '\'') {
        p = strchr(line + i, '/');
        if (p)
          strncpy(comment, p, line + 80 - p);
        sprintf(tmp, " %-29.29s %-40.40s", convert_deg_to_str(atof(equal + 1)), (p) ? comment : "/ Declination");
        memcpy(line + i, tmp, 71);
      }
    } else if (!strcmp(key_o, "UT")) {
      if (*(equal + 2) != '\'') {
        p = strchr(line + i, '/');
        if (p)
          strncpy(comment, p, line + 80 - p);
        sprintf(tmp, " %-29.29s %-40.40s", convert_deg_to_str(atof(equal + 1) / 3600.), (p) ? comment : "/ UT");
        memcpy(line + i, tmp, 71);
      }
    } else if (!strcmp(key_o, "ST")) {
      if (*(equal + 2) != '\'') {
        p = strchr(line + i, '/');
        if (p)
          strncpy(comment, p, line + 80 - p);
        sprintf(tmp, " %-29.29s %-40.40s", convert_deg_to_str(atof(equal + 1) / 3600.), (p) ? comment : "/ ST");
        memcpy(line + i, tmp, 71);
      }
    } else {
      for (j = 0; j < to_copy; j++) {
        line[i + j] = equal[j + 1];
      }
      i += to_copy - 1;
      for (; i < 80; i++) {
        line[i] = ' ';
      }
    }
  } else {
    for (i = (int)strlen(key_o); i < (int)strlen(key_i); i++) {
      line[i] = ' ';
    }
  }
  return;
}
```