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

```asm
<cmdshell_init_read>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  mov    $0x3e8,%edx
  push   %r14
  mov    %rcx,%r14
  push   %r13
  mov    %rdi,%r13
  lea    D91(%rip),%rdi
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  sub    $0x408,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x3f8(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rbp
  movb   $0x0,0x10(%rsp)
  mov    %rbp,%rsi
  call   <input_line@plt>
  test   %eax,%eax
  je     L121
  mov    %rbp,%rdi
  call   <str_isspace@plt>
  test   %rax,%rax
  je     L210
L121:
  mov    %r13,%rsi
  lea    D70(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L51:
  mov    $0x3e8,%edx
  mov    %rbp,%rsi
  movb   $0x0,0x10(%rsp)
  lea    D188(%rip),%rdi
  call   <input_line@plt>
  test   %eax,%eax
  je     L136
  mov    %rbp,%rdi
  call   <str_isspace@plt>
  test   %rax,%rax
  je     L177
L136:
  mov    %r12,%rsi
  lea    D70(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L96:
  mov    $0x3e8,%edx
  mov    %rbp,%rsi
  movb   $0x0,0x10(%rsp)
  lea    D72(%rip),%rdi
  call   <input_line@plt>
  test   %eax,%eax
  je     L146
  mov    %rbp,%rdi
  call   <str_isspace@plt>
  test   %rax,%rax
  je     L154
L146:
  mov    %r15,%rsi
  lea    D70(%rip),%rdi
  xor    %eax,%eax
  xor    %ebx,%ebx
  call   <printf@plt>
L194:
  mov    $0x3e8,%edx
  mov    %rbp,%rsi
  movb   $0x0,0x10(%rsp)
  lea    D65(%rip),%rdi
  call   <input_line@plt>
  test   %eax,%eax
  je     L166
  mov    %rbp,%rdi
  call   <str_isspace@plt>
  test   %rax,%rax
  je     L91
L166:
  mov    %r14,%rsi
  lea    D70(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L90:
  mov    %ebx,%eax
  xor    $0x1,%eax
  mov    0x3f8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L40
  add    $0x408,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L91:
  lea    D172(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %rbp,%rsi
  test   %rax,%rax
  je     L213
  lea    D55(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %rbp,%rsi
  test   %rax,%rax
  jne    L216
L213:
  mov    %r14,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rsi
  lea    D60(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L90
  nopl   0x0(%rax,%rax,1)
L210:
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rsi
  lea    D60(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L51
  nopl   0x0(%rax)
L177:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rsi
  lea    D60(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L96
  nopl   0x0(%rax)
L154:
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    $0xf,%eax
  jle    L50
  mov    $0xf,%edx
  mov    %rbp,%rsi
  xor    %eax,%eax
  mov    $0x1,%ebx
  lea    D54(%rip),%rdi
  call   <printf@plt>
  jmp    L194
  nopl   (%rax)
L50:
  mov    %rbp,%rdi
  call   <str_isdigit@plt>
  test   %eax,%eax
  je     L149
  lea    D171(%rip),%rsi
  lea    0x8(%rsp),%rdx
  mov    %rbp,%rdi
  call   <sscanf@plt>
  mov    %rbp,%rsi
  cmp    $0x1,%eax
  je     L128
  lea    D31(%rip),%rdi
  xor    %eax,%eax
  mov    $0x1,%ebx
  call   <printf@plt>
  jmp    L194
L149:
  mov    %rbp,%rsi
  lea    D27(%rip),%rdi
  mov    $0x1,%ebx
  call   <printf@plt>
  jmp    L194
  nopl   0x0(%rax)
L216:
  lea    D49(%rip),%rdi
  xor    %eax,%eax
  mov    $0x1,%ebx
  call   <printf@plt>
  jmp    L90
  nopl   0x0(%rax,%rax,1)
L128:
  mov    %r15,%rdi
  xor    %ebx,%ebx
  call   <strcpy@plt>
  mov    %rbp,%rsi
  lea    D60(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L194
L40:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D91
data_type: string
name: parse_data
arguments: data_tag: D70
data_type: string
name: parse_data
arguments: data_tag: D188
data_type: string
name: parse_data
arguments: data_tag: D72
data_type: string
name: parse_data
arguments: data_tag: D65
data_type: string
name: parse_data
arguments: data_tag: D172
data_type: string
name: parse_data
arguments: data_tag: D55
data_type: string
name: parse_data
arguments: data_tag: D60
data_type: string
name: parse_data
arguments: data_tag: D54
data_type: string
name: parse_data
arguments: data_tag: D171
data_type: string
name: parse_data
arguments: data_tag: D31
data_type: string
name: parse_data
arguments: data_tag: D27
data_type: string
name: parse_data
arguments: data_tag: D49
data_type: string

tool: D91: Input source (path): 

tool: D70: Ok unchanged "%s"


tool: D188: Input destination (path): 

tool: D72: Input offset (number >= 0): 

tool: D65: Input cipher (xor, none): 

tool: D172: xor

tool: D55: none

tool: D60: Ok "%s"


tool: D54: Fail "%s", should be between 1 and %d digits


tool: D171: %lf

tool: D31: Fail "%s", should be a number


tool: D27: Fail "%s", should be an unsigned number


tool: D49: Fail "%s", unknown type


assistant: ```c
int cmdshell_init_read(char src[], char dst[], char offset[], char cipher[]) {
  char input[1000];
  int retval, retin;
  int f_bad_offset, f_bad_cipher;
  *input = '\0';
  f_bad_offset = f_bad_cipher = 0;
  retin = input_line("Input source (path): ", input, sizeof input);
  if (!retin || str_isspace(input)) {
    printf("Ok unchanged \"%s\"\n", src);
  } else {
    strcpy(src, input);
    printf("Ok \"%s\"\n", input);
  }
  *input = '\0';
  retin = input_line("Input destination (path): ", input, sizeof input);
  if (!retin || str_isspace(input)) {
    printf("Ok unchanged \"%s\"\n", dst);
  } else {
    strcpy(dst, input);
    printf("Ok \"%s\"\n", input);
  }
  *input = '\0';
  retin = input_line("Input offset (number >= 0): ", input, sizeof input);
  if (!retin || str_isspace(input)) {
    printf("Ok unchanged \"%s\"\n", offset);
  } else {
    double tmp;
    if (strlen(input) > 15) {
      f_bad_offset = 1;
      printf("Fail \"%s\", should be between 1 and %d digits\n", input, 15);
    } else if (!str_isdigit(input)) {
      f_bad_offset = 1;
      printf("Fail \"%s\", should be an unsigned number\n", input);
    } else if (sscanf(input, "%lf", &tmp) == 1) {
      strcpy(offset, input);
      printf("Ok \"%s\"\n", input);
    } else {
      f_bad_offset = 1;
      printf("Fail \"%s\", should be a number\n", input);
    }
  }
  *input = '\0';
  retin = input_line("Input cipher (xor, none): ", input, sizeof input);
  if (!retin || str_isspace(input)) {
    printf("Ok unchanged \"%s\"\n", cipher);
  } else {
    if (strcmp(input, "xor") == 0) {
      strcpy(cipher, input);
      printf("Ok \"%s\"\n", input);
    } else if (strcmp(input, "none") == 0) {
      strcpy(cipher, input);
      printf("Ok \"%s\"\n", input);
    } else {
      f_bad_cipher = 1;
      printf("Fail \"%s\", unknown type\n", input);
    }
  }
  retval = !(f_bad_offset || f_bad_cipher);
  return retval;
}
```