user: What would the C source look like for the assembly code provided here:

```asm
<search_rep>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  mov    %rsi,%r14
  mov    $0x3d,%esi
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0xd8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  xor    %eax,%eax
  call   <strchr@plt>
  mov    %rax,0x8(%rsp)
  jmp    L314
  nopl   0x0(%rax)
L238:
  movzbl (%r15,%rbx,1),%eax
  mov    %al,0x0(%rbp,%rbx,1)
  add    $0x1,%rbx
L314:
  mov    %r15,%rdi
  movslq %ebx,%r12
  mov    %ebx,%r13d
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L238
  mov    %r15,%rdi
  call   <strlen@plt>
  cmp    $0x8,%eax
  jg     L265
  cmp    $0x7,%r12d
  jg     L26
  movabs $0x2020202020202020,%rcx
  mov    $0x8,%eax
  sub    %r12d,%eax
  add    %rbp,%r12
  cmp    $0x8,%eax
  jb     L332
  lea    0x8(%r12),%rsi
  mov    %eax,%edx
  mov    %rcx,(%r12)
  and    $0xfffffffffffffff8,%rsi
  mov    %rcx,-0x8(%r12,%rdx,1)
  sub    %rsi,%r12
  add    %r12d,%eax
  and    $0xfffffff8,%eax
  cmp    $0x8,%eax
  jb     L20
  and    $0xfffffff8,%eax
  xor    %edx,%edx
L180:
  mov    %edx,%edi
  add    $0x8,%edx
  mov    %rcx,(%rsi,%rdi,1)
  cmp    %eax,%edx
  jb     L180
L20:
  mov    $0x8,%r13d
L26:
  movslq %r13d,%rbx
  add    $0x1,%r13d
  add    %rbp,%rbx
  movb   $0x3d,(%rbx)
  movzbl (%r15),%r12d
  cmp    $0x52,%r12d
  je     L181
L85:
  lea    D21(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L2
  mov    0x8(%rsp),%rax
  cmpb   $0x27,0x2(%rax)
  je     L384
  movslq %r13d,%r13
  mov    $0x2f,%esi
  lea    0x0(%rbp,%r13,1),%r12
  lea    D73(%rip),%r13
  mov    %r12,%rdi
  call   <strchr@plt>
  mov    %rax,%rsi
  test   %rax,%rax
  je     L225
  lea    0x50(%rbp),%rdx
  lea    0x70(%rsp),%r13
  sub    %eax,%edx
  mov    %r13,%rdi
  call   <strncpy@plt>
L225:
  mov    0x8(%rsp),%rdi
  add    $0x1,%rdi
  call   <atof@plt>
  mov    %eax,%edi
L23:
  call   <convert_deg_to_str@plt>
  lea    0x10(%rsp),%rbp
  lea    D82(%rip),%rsi
  mov    %r13,%rcx
  mov    %rax,%rdx
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    $0x47,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <memcpy@plt>
  nopl   0x0(%rax)
L384:
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L141
  add    $0xd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L181:
  cmpb   $0x41,0x1(%r15)
  jne    L85
  cmpb   $0x0,0x2(%r15)
  jne    L85
  mov    0x8(%rsp),%rax
  cmpb   $0x27,0x2(%rax)
  je     L384
  movslq %r13d,%r13
  mov    $0x2f,%esi
  lea    D55(%rip),%r12
  add    %rbp,%r13
  mov    %r13,%rdi
  call   <strchr@plt>
  mov    %rax,%rsi
  test   %rax,%rax
  je     L15
  lea    0x50(%rbp),%rdx
  lea    0x70(%rsp),%r12
  sub    %eax,%edx
  mov    %r12,%rdi
  call   <strncpy@plt>
L15:
  mov    0x8(%rsp),%rdi
  lea    0x10(%rsp),%rbp
  add    $0x1,%rdi
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  divsd  D89(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <convert_deg_to_str@plt>
  mov    %rbp,%rdi
  mov    %r12,%rcx
  lea    D82(%rip),%rsi
  mov    %rax,%rdx
  call   <sprintf@plt>
  mov    $0x47,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  jmp    L384
  nopl   0x0(%rax)
L332:
  test   $0x4,%al
  jne    L209
  test   %eax,%eax
  je     L20
  movb   $0x20,(%r12)
  test   $0x2,%al
  je     L20
  mov    $0x2020,%edx
  mov    %dx,-0x2(%r12,%rax,1)
  jmp    L20
  nopl   (%rax)
L265:
  mov    %r15,%rdi
  call   <strlen@plt>
  movslq %eax,%rbx
  jmp    L331
  nopl   (%rax)
L328:
  movb   $0x20,0x0(%rbp,%rbx,1)
  add    $0x1,%rbx
L331:
  mov    %r14,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L328
  jmp    L384
  nopw   0x0(%rax,%rax,1)
L2:
  cmp    $0x55,%r12d
  jne    L269
  cmpb   $0x54,0x1(%r15)
  jne    L269
  cmpb   $0x0,0x2(%r15)
  jne    L269
  mov    0x8(%rsp),%rax
  cmpb   $0x27,0x2(%rax)
  je     L384
  movslq %r13d,%r13
  mov    $0x2f,%esi
  lea    0x0(%rbp,%r13,1),%r12
  lea    D46(%rip),%r13
  mov    %r12,%rdi
  call   <strchr@plt>
  mov    %rax,%rsi
  test   %rax,%rax
  je     L351
L7:
  lea    0x50(%rbp),%rdx
  lea    0x70(%rsp),%r13
  sub    %esi,%edx
  mov    %r13,%rdi
  call   <strncpy@plt>
L351:
  mov    0x8(%rsp),%rdi
  add    $0x1,%rdi
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  divsd  D12(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  jmp    L23
  nopl   (%rax)
L269:
  cmp    $0x53,%r12d
  jne    L187
  cmpb   $0x54,0x1(%r15)
  jne    L187
  cmpb   $0x0,0x2(%r15)
  jne    L187
  mov    0x8(%rsp),%rax
  cmpb   $0x27,0x2(%rax)
  je     L384
  movslq %r13d,%r13
  mov    $0x2f,%esi
  lea    0x0(%rbp,%r13,1),%r12
  lea    D36(%rip),%r13
  mov    %r12,%rdi
  call   <strchr@plt>
  mov    %rax,%rsi
  test   %rax,%rax
  jne    L7
  jmp    L351
L187:
  mov    0x8(%rsp),%rsi
  mov    $0x50,%eax
  sub    %rbp,%rsi
  sub    %esi,%eax
  test   %eax,%eax
  jle    L123
  mov    $0x51,%ecx
  mov    $0x1,%eax
  sub    %esi,%ecx
  nopl   0x0(%rax)
L27:
  mov    0x8(%rsp),%rdx
  movzbl (%rdx,%rax,1),%edx
  mov    %dl,(%rbx,%rax,1)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L27
L123:
  sub    %esi,%r13d
  lea    0x4f(%r13),%eax
  cmp    $0x4f,%eax
  jg     L384
  mov    0xc8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L141
  mov    $0x50,%edx
  add    $0xd8,%rsp
  mov    $0x20,%esi
  sub    %eax,%edx
  cltq
  pop    %rbx
  lea    0x0(%rbp,%rax,1),%rdi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1140 <memset@plt>
L209:
  movl   $0x20202020,(%r12)
  movl   $0x20202020,-0x4(%r12,%rax,1)
  jmp    L20
L141:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D21
data_type: string
name: retrieve_data
arguments: tag: D73
data_type: string
name: retrieve_data
arguments: tag: D82
data_type: string
name: retrieve_data
arguments: tag: D55
data_type: string
name: retrieve_data
arguments: tag: D89
data_type: f64
name: retrieve_data
arguments: tag: D46
data_type: string
name: retrieve_data
arguments: tag: D12
data_type: f64
name: retrieve_data
arguments: tag: D36
data_type: string

tool: D21: DEC

tool: D73: / Declination

tool: D82:  %-29.29s %-40.40s

tool: D55: / Right Ascension

tool: D89: 15

tool: D46: / UT

tool: D12: 3600

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