user: 下面的汇编指令对应的C源代码是什么:

```asm
<HA_ExtractTemplateAndLines>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D14(%rip),%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x38,%rsp
  mov    %rsi,0x18(%rsp)
  mov    %rdx,0x20(%rsp)
  mov    %rcx,0x28(%rsp)
  jmp    L93
  nop
L12:
  add    $0x1,%ebx
  lea    0x3(%rax),%rdi
L93:
  mov    %r13,%rsi
  call   <strstr@plt>
  test   %rax,%rax
  jne    L12
  sub    $0x1,%ebx
  movslq %ebx,%rdi
  shl    $0x3,%rdi
  call   <malloc@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    %rax,0x8(%rsp)
  call   <strstr@plt>
  movq   $0x0,0x10(%rsp)
  mov    %rax,%r15
  test   %rax,%rax
  je     L9
  mov    %rax,%r14
  sub    %rbp,%r14
  add    $0x1,%r14
  mov    %r14,%rdi
  call   <malloc@plt>
  mov    %r14,%rdx
  mov    %rbp,%rsi
  mov    %rax,%r14
  mov    %rax,%rdi
  mov    %rax,0x10(%rsp)
  call   <my_strlcpy@plt>
  mov    %r14,%rdx
  mov    $0x4,%edi
  xor    %eax,%eax
  lea    D1(%rip),%rsi
  call   <diagnostics@plt>
L9:
  add    $0x3,%r15
  jmp    L88
  nopl   0x0(%rax,%rax,1)
L60:
  add    $0x1,%r15
L88:
  movsbl (%r15),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L60
  test   %ebx,%ebx
  jle    L62
  mov    0x8(%rsp),%r12
  xor    %ebp,%ebp
  nopl   0x0(%rax)
L21:
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <strstr@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L37
  mov    %rax,%rdx
  sub    %r15,%rdx
  add    $0x1,%rdx
  mov    %rdx,%rdi
  mov    %rdx,(%rsp)
  call   <malloc@plt>
  mov    (%rsp),%rdx
  mov    %r15,%rsi
  mov    %rax,(%r12)
  mov    %rax,%rdi
  call   <my_strlcpy@plt>
  mov    (%r12),%rcx
  mov    %ebp,%edx
  mov    $0x4,%edi
  lea    D19(%rip),%rsi
  xor    %eax,%eax
  call   <diagnostics@plt>
L37:
  lea    0x3(%r14),%r15
  jmp    L81
  nopl   0x0(%rax,%rax,1)
L65:
  add    $0x1,%r15
L81:
  movsbl (%r15),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L65
  add    $0x1,%ebp
  add    $0x8,%r12
  cmp    %ebp,%ebx
  jne    L21
L62:
  mov    0x28(%rsp),%rax
  mov    0x8(%rsp),%rcx
  mov    %ebx,(%rax)
  mov    0x20(%rsp),%rax
  mov    %rcx,(%rax)
  mov    0x18(%rsp),%rax
  mov    0x10(%rsp),%rcx
  mov    %rcx,(%rax)
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D14
type_infered: string
name: unpack_data
arguments: data_tag: D1
type_infered: string
name: unpack_data
arguments: data_tag: D19
type_infered: string

tool: D14: \cr

tool: D1: HA_template = '%s'

tool: D19: line[%2d] = '%s'

assistant: ```c
void HA_ExtractTemplateAndLines(const char *s, char **thetemplate, char ***thelines, int *nl) {
  char *p, *ss, *HA_template = NULL;
  char **lines;
  int nlines, i;
  ss = (char *)s;
  nlines = 0;
  while ((p = strstr(ss, "\\cr"))) {
    nlines++;
    ss = p + 3;
  }
  nlines--;
  lines = (char **)malloc(nlines * sizeof(char *));
  p = strstr(s, "\\cr");
  if (p) {
    size_t n = p - s + 1;
    HA_template = (char *)malloc(n * sizeof(char));
    my_strlcpy(HA_template, s, n);
    diagnostics(4, "HA_template = '%s'", HA_template);
  }
  ss = p + 3;
  while (isspace(*ss))
    ss++;
  for (i = 0; i < nlines; i++) {
    p = strstr(ss, "\\cr");
    if (p) {
      size_t n = p - ss + 1;
      lines[i] = (char *)malloc(n * sizeof(char));
      my_strlcpy(lines[i], ss, n);
      diagnostics(4, "line[%2d] = '%s'", i, lines[i]);
    }
    ss = p + 3;
    while (isspace(*ss))
      ss++;
  }
  *nl = nlines;
  *thelines = lines;
  *thetemplate = HA_template;
}
```