user: What is the c source code of the assembly code below?

```asm
<line_split>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    -0x28(%rbp),%rbx
  mov    -0x38(%rbp),%r12
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L279
L140:
  add    $0x1,%rbx
L289:
  movzbl (%rbx),%eax
  test   %al,%al
  je     L238
  movzbl (%rbx),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L140
L238:
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L228
  mov    -0x1c(%rbp),%eax
  jmp    L150
L228:
  cmpl   $0x0,-0x18(%rbp)
  je     L47
  mov    %rbx,%rsi
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <error@plt>
  jmp    L252
L47:
  movzbl (%rbx),%eax
  cmp    $0x24,%al
  jne    L33
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  cmp    $0x6e,%al
  jne    L302
  add    $0x1,%rbx
  mov    -0x1c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x1c(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %r12,(%rax)
  mov    %r12,%rax
  lea    0x1(%rax),%r12
  movb   $0x0,(%rax)
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <skip_trailing_space@plt>
  mov    -0x1c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x1c(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %r12,(%rax)
  jmp    L252
L302:
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L282
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <error@plt>
  jmp    L252
L282:
  mov    -0x1c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x1c(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %r12,(%rax)
  mov    %r12,%rax
  lea    0x1(%rax),%r12
  movb   $0x24,(%rax)
  mov    %rbx,%rdx
  lea    0x1(%rdx),%rbx
  mov    %r12,%rax
  lea    0x1(%rax),%r12
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L252
L33:
  movzbl (%rbx),%eax
  cmp    $0x22,%al
  jne    L7
  movl   $0x1,-0x18(%rbp)
  mov    -0x1c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x1c(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %r12,(%rax)
  mov    %rbx,%rdx
  lea    0x1(%rdx),%rbx
  mov    %r12,%rax
  lea    0x1(%rax),%r12
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L252
L7:
  mov    -0x1c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x1c(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %r12,(%rax)
L252:
  movl   $0x1,-0x14(%rbp)
  jmp    L186
L240:
  movzbl (%rbx),%eax
  cmp    $0x24,%al
  jne    L41
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  cmp    $0x6e,%al
  jne    L225
  cmpl   $0x0,-0x18(%rbp)
  jne    L225
  add    $0x1,%rbx
  mov    %r12,%rax
  lea    0x1(%rax),%r12
  movb   $0x0,(%rax)
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <skip_trailing_space@plt>
  movl   $0x0,-0x14(%rbp)
  jmp    L216
L225:
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L292
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <error@plt>
  jmp    L216
L292:
  mov    %r12,%rax
  lea    0x1(%rax),%r12
  movb   $0x24,(%rax)
  jmp    L216
L41:
  movzbl (%rbx),%eax
  cmp    $0x22,%al
  jne    L125
  cmpl   $0x0,-0x18(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x18(%rbp)
  jmp    L216
L125:
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L216
  mov    %r12,%rax
  lea    0x1(%rax),%r12
  movb   $0x0,(%rax)
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <skip_trailing_space@plt>
  movl   $0x0,-0x14(%rbp)
L216:
  cmpl   $0x0,-0x14(%rbp)
  je     L186
  mov    %rbx,%rdx
  lea    0x1(%rdx),%rbx
  mov    %r12,%rax
  lea    0x1(%rax),%r12
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L186:
  cmpl   $0x0,-0x14(%rbp)
  jne    L240
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L279
  cmpl   $0x0,-0x18(%rbp)
  je     L279
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <error@plt>
L279:
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L289
  cmpl   $0x0,-0x18(%rbp)
  je     L207
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <error@plt>
L207:
  mov    -0x1c(%rbp),%eax
L150:
  add    $0x30,%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D11
type_guessed: string
name: unpack_data
arguments: data_tag: D19
type_guessed: string
name: unpack_data
arguments: data_tag: D31
type_guessed: string
name: unpack_data
arguments: data_tag: D30
type_guessed: string

tool: D11: This cannot happen: a line started inside a string: %s

tool: D19: Tried to quote newline (last char on line was $).

tool: D31: String does not end (mismatched " on input line: %s).

tool: D30: This cannot happen. Inside line_split.

assistant: ```c
int line_split(the_line, the_array, the_buffer)
char *the_line, *the_buffer;
char **the_array;
{
  int linenr, inside_quotes, copying;
  register char *line_cp, *buffer_cp;
  line_cp = the_line;
  buffer_cp = the_buffer;
  linenr = 0;
  inside_quotes = 0;
  copying = 0;
  while (*line_cp) {
    while (*line_cp && isspace(*line_cp))
      ++line_cp;
    if (!*line_cp)
      return linenr;
    else if (inside_quotes)
      error("This cannot happen: a line started inside a string: %s", line_cp);
    else if (*line_cp == '$') {
      ++line_cp;
      if (*line_cp == 'n') {
        ++line_cp;
        the_array[linenr++] = buffer_cp;
        *buffer_cp++ = '\0';
        skip_trailing_space(the_array[linenr - 1]);
        the_array[linenr++] = buffer_cp;
      } else if (*line_cp == '\0') {
        error("Tried to quote newline (last char on line was $).");
      } else {
        the_array[linenr++] = buffer_cp;
        *buffer_cp++ = '$';
        *buffer_cp++ = *line_cp++;
      }
    } else if (*line_cp == '"') {
      inside_quotes = 1;
      the_array[linenr++] = buffer_cp;
      *buffer_cp++ = *line_cp++;
    } else {
      the_array[linenr++] = buffer_cp;
    }
    copying = 1;
    while (copying) {
      if (*line_cp == '$') {
        ++line_cp;
        if (*line_cp == 'n' && !inside_quotes) {
          ++line_cp;
          *buffer_cp++ = '\0';
          skip_trailing_space(the_array[linenr - 1]);
          copying = 0;
        } else if (*line_cp == '\0') {
          error("Tried to quote newline (last char on line was $).");
        } else {
          *buffer_cp++ = '$';
        }
      } else if (*line_cp == '"') {
        inside_quotes = !inside_quotes;
      } else if (!*line_cp) {
        *buffer_cp++ = '\0';
        skip_trailing_space(the_array[linenr - 1]);
        copying = 0;
      } else {
      }
      if (copying)
        *buffer_cp++ = *line_cp++;
    }
    if (!*line_cp && inside_quotes)
      error("String does not end (mismatched \" on input line: %s).", the_line);
  }
  if (inside_quotes)
    error("This cannot happen. Inside line_split.");
  return linenr;
}
```