user: 请从给定的汇编指令推导出C源代码:

```asm
<getline_wrapped>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  push   %r13
  lea    D39(%rip),%r13
  push   %r12
  mov    $0x100,%r12d
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    $0x100,%edi
  sub    $0x18,%rsp
  call   <malloc@plt>
  lea    D24(%rip),%rcx
  mov    $0x1a,%edx
  mov    %r13,%rsi
  mov    %eax,%edi
  call   <do_nofail@plt>
  mov    %rax,%r14
  test   %rbp,%rbp
  je     L157
  mov    %rbx,%rdi
  call   <getc_unlocked@plt>
  cmp    $0x5c,%eax
  je     L1
L189:
  cmp    $0x80,%eax
  je     L85
  cmp    $0xa,%eax
  je     L86
L44:
  lea    0x1(%r15),%r9d
  mov    %al,(%r14,%r15,1)
  cmp    %r9d,%r12d
  je     L20
L10:
  mov    %rbx,%rdi
  movslq %r9d,%r15
  call   <getc_unlocked@plt>
  cmp    $0x5c,%eax
  jne    L189
L1:
  mov    %rbx,%rdi
  call   <getc_unlocked@plt>
  cmp    $0xa,%eax
  jne    L44
  addl   $0x1,0x0(%rbp)
  mov    %r15d,%r9d
  jmp    L10
  nopl   0x0(%rax)
L85:
  test   %r15d,%r15d
  je     L139
L86:
  addl   $0x1,0x0(%rbp)
L113:
  cmp    %r12d,%r15d
  je     L65
L140:
  movb   $0x0,(%r14,%r15,1)
L214:
  add    $0x18,%rsp
  mov    %r14,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L157:
  mov    %rbx,%rdi
  lea    D10(%rip),%rbp
  call   <getc_unlocked@plt>
  cmp    $0x5c,%eax
  je     L9
L93:
  cmp    $0x80,%eax
  je     L218
  cmp    $0xa,%eax
  je     L113
L201:
  lea    0x1(%r15),%r8d
  mov    %al,(%r14,%r15,1)
  cmp    %r8d,%r12d
  je     L8
L156:
  mov    %rbx,%rdi
  movslq %r8d,%r15
  call   <getc_unlocked@plt>
  cmp    $0x5c,%eax
  jne    L93
L9:
  mov    %rbx,%rdi
  call   <getc_unlocked@plt>
  cmp    $0xa,%eax
  jne    L201
  mov    %r15d,%r8d
  jmp    L156
  nopl   0x0(%rax,%rax,1)
L218:
  test   %r15d,%r15d
  jne    L113
L139:
  mov    %r14,%rdi
  xor    %r14d,%r14d
  call   <free@plt>
  jmp    L214
  nopw   0x0(%rax,%rax,1)
L65:
  mov    %r14,%rdi
  lea    0x1(%r15),%esi
  call   <realloc@plt>
  lea    D13(%rip),%rcx
  mov    $0x2a,%edx
  mov    %r13,%rsi
  mov    %eax,%edi
  call   <do_nofail@plt>
  mov    %rax,%r14
  jmp    L140
  nopw   0x0(%rax,%rax,1)
L20:
  add    %r12d,%r12d
  mov    %r14,%rdi
  mov    %r9d,0xc(%rsp)
  mov    %r12d,%esi
  call   <realloc@plt>
  lea    D10(%rip),%rcx
  mov    $0x3d,%edx
  mov    %r13,%rsi
  mov    %eax,%edi
  call   <do_nofail@plt>
  mov    0xc(%rsp),%r9d
  mov    %rax,%r14
  jmp    L10
  xchg   %ax,%ax
L8:
  add    %r12d,%r12d
  mov    %r14,%rdi
  mov    %r8d,0xc(%rsp)
  mov    %r12d,%esi
  call   <realloc@plt>
  mov    %rbp,%rcx
  mov    $0x3d,%edx
  mov    %r13,%rsi
  mov    %eax,%edi
  call   <do_nofail@plt>
  mov    0xc(%rsp),%r8d
  mov    %rax,%r14
  jmp    L156
```

tool_calls: name: parse_data
arguments: label: D39
type_infered: string
name: parse_data
arguments: label: D24
type_infered: string
name: parse_data
arguments: label: D10
type_infered: string
name: parse_data
arguments: label: D13
type_infered: string

tool: D39: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Distrotech/module-init-tools/refs/heads/master/usermode/module-init-tools-3.12/util.c

tool: D24: malloc(size)

tool: D10: realloc(buf, size)

tool: D13: realloc(buf, size + 1)

assistant: ```c
char *getline_wrapped(FILE *file, unsigned int *linenum) {
  int size = 256;
  int i = 0;
  char *buf = do_nofail((malloc(size)), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Distrotech/module-init-tools/refs/heads/master/usermode/module-init-tools-3.12/util.c", 26, "malloc(size)");
  for (;;) {
    int ch = getc_unlocked(file);
    switch (ch) {
    case EOF:
      if (i == 0) {
        free(buf);
        return NULL;
      }
    case '\n':
      if (linenum)
        (*linenum)++;
      if (i == size)
        buf = do_nofail((realloc(buf, size + 1)), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Distrotech/module-init-tools/refs/heads/master/usermode/module-init-tools-3.12/util.c", 42, "realloc(buf, size + 1)");
      buf[i] = '\0';
      return buf;
    case '\\':
      ch = getc_unlocked(file);
      if (ch == '\n') {
        if (linenum)
          (*linenum)++;
        continue;
      }
    default:
      buf[i++] = ch;
      if (i == size) {
        size *= 2;
        buf = do_nofail((realloc(buf, size)), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Distrotech/module-init-tools/refs/heads/master/usermode/module-init-tools-3.12/util.c", 61, "realloc(buf, size)");
      }
    }
  }
}
```