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

```asm
<get_stdin>:
  endbr64
  push   %r15
  mov    $0x2,%edx
  xor    %esi,%esi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x138,%rsp
  mov    %rdi,0x8(%rsp)
  lea    0x1e(%rsp),%rbx
  lea    0x20(%rsp),%r13
  mov    %rbx,%rdi
  lea    0xa0(%rsp),%r12
  lea    0x1f(%rsp),%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x128(%rsp)
  xor    %eax,%eax
  call   <memset@plt>
  mov    $0x80,%esi
  mov    $0x1,%edi
  call   <calloc@plt>
  mov    $0x80,%esi
  mov    $0x1,%edi
  mov    %rax,%r14
  call   <calloc@plt>
  mov    $0x80,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  mov    %rax,(%rsp)
  call   <memset@plt>
  mov    $0x80,%edx
  xor    %esi,%esi
  mov    %r12,%rdi
  call   <memset@plt>
L228:
  cmpb   $0x0,0x20(%rsp)
  jne    L266
L92:
  mov    $0x80,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  mov    $0x1,%r15d
  call   <memset@plt>
  jmp    L220
  nopl   0x0(%rax,%rax,1)
L125:
  test   %eax,%eax
  jle    L257
  movzbl 0x1e(%rsp),%edx
L209:
  cmp    $0x7f,%r15d
  setne  %sil
  cmp    $0xa,%dl
  setne  %dl
  add    $0x1,%r15
  test   %dl,%sil
  je     L217
L220:
  xor    %edi,%edi
  mov    $0x1,%edx
  mov    %rbx,%rsi
  call   <read@plt>
  cmp    $0x1,%eax
  jne    L125
  movzbl 0x1e(%rsp),%edx
  mov    %dl,0x0(%rbp,%r15,1)
  jmp    L209
  nopl   0x0(%rax)
L217:
  test   %eax,%eax
  je     L122
  cmpb   $0xa,0x1e(%rsp)
  je     L23
  cmp    $0x1,%eax
  je     L41
  jmp    L23
  nopl   (%rax)
L66:
  cmp    $0x1,%eax
  jne    L196
L41:
  xor    %edi,%edi
  mov    $0x1,%edx
  mov    %rbx,%rsi
  call   <read@plt>
  cmpb   $0xa,0x1e(%rsp)
  jne    L66
L196:
  test   %eax,%eax
  js     L142
  je     L122
  cmpb   $0x0,0x20(%rsp)
  je     L92
L266:
  mov    %r12,%rsi
  mov    %r13,%rdi
  xor    %ebx,%ebx
  call   <cleanline@plt>
  mov    %eax,%r15d
  test   %eax,%eax
  jg     L255
  jmp    L191
  nopl   (%rax)
L56:
  movzbl (%r12,%rbx,1),%ecx
  cmp    $0x20,%cl
  je     L141
  mov    %cl,(%r14,%rbx,1)
  add    $0x1,%rbx
L255:
  mov    %r12,%rdi
  call   <strlen@plt>
  lea    0x1(%rbx),%edx
  cmp    %ebx,%eax
  jg     L56
L141:
  mov    (%rsp),%rcx
  movslq %edx,%r13
  lea    0x9f(%rsp),%rbp
  lea    -0x1(%rcx),%rbx
  sub    %r13,%rbx
  jmp    L57
  nopl   0x0(%rax)
L144:
  add    $0x1,%r13
  movzbl 0x0(%rbp,%r13,1),%eax
  cmp    $0x20,%al
  je     L87
  mov    %al,(%rbx,%r13,1)
  mov    %r12,%rdi
  call   <strlen@plt>
L57:
  cmp    %r13d,%eax
  jg     L144
L87:
  mov    0x8(%rsp),%rbx
  mov    $0x80,%edx
  mov    %r14,%rsi
  mov    (%rbx),%rdi
  call   <strlcpy@plt>
  mov    0x8(%rbx),%rdi
  mov    (%rsp),%rbx
  mov    $0x80,%edx
  mov    %rbx,%rsi
  call   <strlcpy@plt>
  mov    %r14,%rdi
  call   <free@plt>
  mov    %rbx,%rdi
  call   <free@plt>
L195:
  mov    0x128(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L252
  add    $0x138,%rsp
  mov    %r15d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L257:
  jne    L142
L122:
  cmpb   $0x0,0x20(%rsp)
  jne    L266
  mov    %r14,%rdi
  mov    $0xfffffffe,%r15d
  call   <free@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  jmp    L195
L23:
  test   %eax,%eax
  jns    L228
L142:
  mov    %r14,%rdi
  mov    $0xffffffff,%r15d
  call   <free@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  jmp    L195
L191:
  mov    %r14,%rdi
  call   <free@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  jmp    L195
L252:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int get_stdin(char *args[]) {
  char buf[2], sbuf[128], dbuf[128], *arg1, *arg2;
  int x, y, z, argmax;
  memset(buf, 0, sizeof(buf));
  argmax = 128 - 1;
  arg1 = (char *)calloc(1, 128);
  arg2 = (char *)calloc(1, 128);
  memset(sbuf, 0, sizeof(sbuf));
  memset(dbuf, 0, sizeof(dbuf));
  while (!sbuf[0]) {
    x = 0;
    y = 0;
    memset(sbuf, 0, sizeof(sbuf));
    do {
      x = read(0, buf, 1);
      if (x == 1)
        sbuf[y] = buf[0];
      y++;
    } while (x > 0 && buf[0] != '\n' && y < ((int)sizeof(sbuf) - 1));
    if (x < 0) {
      free(arg1);
      free(arg2);
      return -1;
    }
    if (!x)
      break;
    while (buf[0] != '\n' && x == 1)
      x = read(0, buf, 1);
    if (x < 0) {
      free(arg1);
      free(arg2);
      return -1;
    }
    if (!x)
      break;
  };
  if (!sbuf[0]) {
    free(arg1);
    free(arg2);
    return -2;
  }
  x = cleanline(sbuf, dbuf);
  if (x < 1) {
    free(arg1);
    free(arg2);
    return x;
  }
  y = 0;
  while (y < (int)strlen(dbuf) && y < argmax && dbuf[y] != ' ') {
    arg1[y] = dbuf[y];
    y++;
  }
  y++;
  z = 0;
  while (y < (int)strlen(dbuf) && z < argmax && dbuf[y] != ' ') {
    arg2[z] = dbuf[y];
    y++;
    z++;
  }
  strlcpy(args[0], arg1, 128);
  strlcpy(args[1], arg2, 128);
  free(arg1);
  free(arg2);
  return x;
}
```