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

```asm
<search_rep>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %rdi,%r12
  mov    %rsi,%r15
  mov    %rdx,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  mov    $0x3d,%esi
  call   <strchr@plt>
  mov    %rax,%r14
  mov    $0x0,%ebx
  jmp    L262
L30:
  movzbl 0x0(%rbp,%rbx,1),%eax
  mov    %al,(%r12,%rbx,1)
  add    $0x1,%rbx
L262:
  mov    %ebx,%r13d
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L30
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    $0x8,%eax
  jg     L43
  cmp    $0x7,%ebx
  jg     L35
  movslq %ebx,%r13
  lea    (%r12,%r13,1),%rax
  lea    0x1(%r12,%r13,1),%rdx
  mov    $0x7,%ecx
  sub    %ebx,%ecx
  add    %rcx,%rdx
L66:
  movb   $0x20,(%rax)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L66
  mov    $0x8,%r13d
L35:
  movslq %r13d,%rbx
  add    %r12,%rbx
  movb   $0x3d,(%rbx)
  add    $0x1,%r13d
  lea    D10(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L142
  cmpb   $0x27,0x2(%r14)
  je     L25
  movslq %r13d,%r13
  add    %r12,%r13
  mov    $0x2f,%esi
  mov    %r13,%rdi
  call   <strchr@plt>
  lea    D72(%rip),%rbx
  test   %rax,%rax
  je     L179
  lea    0x50(%r12),%rdx
  lea    0x60(%rsp),%rbx
  sub    %eax,%edx
  mov    %rax,%rsi
  mov    %rbx,%rdi
  call   <strncpy@plt>
L179:
  lea    0x1(%r14),%rdi
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  divsd  D85(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <convert_deg_to_str@plt>
  mov    %rax,%rdx
  mov    %rsp,%rbp
  mov    %rbx,%rcx
  lea    D132(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    $0x47,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  jmp    L25
L142:
  lea    D121(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L154
  cmpb   $0x27,0x2(%r14)
  je     L25
  movslq %r13d,%r13
  add    %r12,%r13
  mov    $0x2f,%esi
  mov    %r13,%rdi
  call   <strchr@plt>
  lea    D29(%rip),%rbp
  test   %rax,%rax
  je     L259
  lea    0x50(%r12),%rdx
  lea    0x60(%rsp),%rbp
  sub    %eax,%edx
  mov    %rax,%rsi
  mov    %rbp,%rdi
  call   <strncpy@plt>
L259:
  lea    0x1(%r14),%rdi
  call   <atof@plt>
  mov    %eax,%edi
  call   <convert_deg_to_str@plt>
  mov    %rax,%rdx
  mov    %rsp,%r12
  mov    %rbp,%rcx
  lea    D132(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    $0x47,%edx
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  jmp    L25
L154:
  lea    D3(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L39
  cmpb   $0x27,0x2(%r14)
  je     L25
  movslq %r13d,%r13
  add    %r12,%r13
  mov    $0x2f,%esi
  mov    %r13,%rdi
  call   <strchr@plt>
  lea    D136(%rip),%rbp
  test   %rax,%rax
  je     L220
  lea    0x50(%r12),%rdx
  lea    0x60(%rsp),%rbp
  sub    %eax,%edx
  mov    %rax,%rsi
  mov    %rbp,%rdi
  call   <strncpy@plt>
L220:
  lea    0x1(%r14),%rdi
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  divsd  D24(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <convert_deg_to_str@plt>
  mov    %rax,%rdx
  mov    %rsp,%r12
  mov    %rbp,%rcx
  lea    D132(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    $0x47,%edx
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  jmp    L25
L39:
  lea    D102(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L172
  mov    %r14,%rsi
  sub    %r12,%rsi
  mov    $0x50,%eax
  sub    %esi,%eax
  test   %eax,%eax
  jle    L79
  mov    $0x51,%ecx
  sub    %esi,%ecx
  mov    $0x1,%eax
L237:
  movzbl (%r14,%rax,1),%edx
  mov    %dl,(%rbx,%rax,1)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L237
L79:
  sub    %esi,%r13d
  lea    0x4f(%r13),%esi
  cmp    $0x4f,%esi
  jg     L25
  movslq %esi,%rdx
  lea    (%r12,%rdx,1),%rax
  lea    0x1(%r12,%rdx,1),%rdx
  mov    $0x4f,%ecx
  sub    %esi,%ecx
  add    %rcx,%rdx
L137:
  movb   $0x20,(%rax)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L137
  jmp    L25
L172:
  cmpb   $0x27,0x2(%r14)
  je     L25
  movslq %r13d,%r13
  add    %r12,%r13
  mov    $0x2f,%esi
  mov    %r13,%rdi
  call   <strchr@plt>
  lea    D76(%rip),%rbp
  test   %rax,%rax
  je     L246
  lea    0x50(%r12),%rdx
  lea    0x60(%rsp),%rbp
  sub    %eax,%edx
  mov    %rax,%rsi
  mov    %rbp,%rdi
  call   <strncpy@plt>
L246:
  lea    0x1(%r14),%rdi
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  divsd  D24(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <convert_deg_to_str@plt>
  mov    %rax,%rdx
  mov    %rsp,%r12
  mov    %rbp,%rcx
  lea    D132(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    $0x47,%edx
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  jmp    L25
L43:
  mov    %rbp,%rdi
  call   <strlen@plt>
  movslq %eax,%rbx
  jmp    L229
L74:
  movb   $0x20,(%r12,%rbx,1)
  add    $0x1,%rbx
L229:
  mov    %r15,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L74
L25:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L205
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L205:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D10
type_infered: string
name: disassemble_data
arguments: data_tag: D72
type_infered: string
name: disassemble_data
arguments: data_tag: D85
type_infered: f64
name: disassemble_data
arguments: data_tag: D132
type_infered: string
name: disassemble_data
arguments: data_tag: D121
type_infered: string
name: disassemble_data
arguments: data_tag: D29
type_infered: string
name: disassemble_data
arguments: data_tag: D3
type_infered: string
name: disassemble_data
arguments: data_tag: D136
type_infered: string
name: disassemble_data
arguments: data_tag: D24
type_infered: f64
name: disassemble_data
arguments: data_tag: D102
type_infered: string
name: disassemble_data
arguments: data_tag: D76
type_infered: string

tool: D10: RA

tool: D72: / Right Ascension

tool: D85: 15

tool: D132:  %-29.29s %-40.40s

tool: D121: DEC

tool: D29: / Declination

tool: D3: UT

tool: D136: / UT

tool: D24: 3600

tool: D102: ST

tool: D76: / 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;
}
```