user: Demonstrate the C code that generates the assembly output below:

```asm
<cmdshell_init_read>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x430,%rsp
  mov    %rdi,-0x418(%rbp)
  mov    %rsi,-0x420(%rbp)
  mov    %rdx,-0x428(%rbp)
  mov    %rcx,-0x430(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movb   $0x0,-0x3f0(%rbp)
  movl   $0x0,-0x404(%rbp)
  mov    -0x404(%rbp),%eax
  mov    %eax,-0x408(%rbp)
  lea    -0x3f0(%rbp),%rax
  mov    $0x3e8,%edx
  mov    %rax,%rsi
  lea    D140(%rip),%rax
  mov    %rax,%rdi
  call   <input_line@plt>
  mov    %eax,-0x400(%rbp)
  cmpl   $0x0,-0x400(%rbp)
  je     L154
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rdi
  call   <str_isspace@plt>
  test   %rax,%rax
  je     L179
L154:
  mov    -0x418(%rbp),%rax
  mov    %rax,%rsi
  lea    D119(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L91
L179:
  lea    -0x3f0(%rbp),%rdx
  mov    -0x418(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rsi
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L91:
  movb   $0x0,-0x3f0(%rbp)
  lea    -0x3f0(%rbp),%rax
  mov    $0x3e8,%edx
  mov    %rax,%rsi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <input_line@plt>
  mov    %eax,-0x400(%rbp)
  cmpl   $0x0,-0x400(%rbp)
  je     L138
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rdi
  call   <str_isspace@plt>
  test   %rax,%rax
  je     L89
L138:
  mov    -0x420(%rbp),%rax
  mov    %rax,%rsi
  lea    D119(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L255
L89:
  lea    -0x3f0(%rbp),%rdx
  mov    -0x420(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rsi
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L255:
  movb   $0x0,-0x3f0(%rbp)
  lea    -0x3f0(%rbp),%rax
  mov    $0x3e8,%edx
  mov    %rax,%rsi
  lea    D128(%rip),%rax
  mov    %rax,%rdi
  call   <input_line@plt>
  mov    %eax,-0x400(%rbp)
  cmpl   $0x0,-0x400(%rbp)
  je     L117
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rdi
  call   <str_isspace@plt>
  test   %rax,%rax
  je     L35
L117:
  mov    -0x428(%rbp),%rax
  mov    %rax,%rsi
  lea    D119(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L111
L35:
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0xf,%eax
  jle    L101
  movl   $0x1,-0x408(%rbp)
  lea    -0x3f0(%rbp),%rax
  mov    $0xf,%edx
  mov    %rax,%rsi
  lea    D121(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L111
L101:
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rdi
  call   <str_isdigit@plt>
  test   %eax,%eax
  jne    L55
  movl   $0x1,-0x408(%rbp)
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L111
L55:
  lea    -0x3f8(%rbp),%rdx
  lea    -0x3f0(%rbp),%rax
  lea    D73(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  cmp    $0x1,%eax
  jne    L14
  lea    -0x3f0(%rbp),%rdx
  mov    -0x428(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rsi
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L111
L14:
  movl   $0x1,-0x408(%rbp)
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rsi
  lea    D199(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L111:
  movb   $0x0,-0x3f0(%rbp)
  lea    -0x3f0(%rbp),%rax
  mov    $0x3e8,%edx
  mov    %rax,%rsi
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  call   <input_line@plt>
  mov    %eax,-0x400(%rbp)
  cmpl   $0x0,-0x400(%rbp)
  je     L19
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rdi
  call   <str_isspace@plt>
  test   %rax,%rax
  je     L54
L19:
  mov    -0x430(%rbp),%rax
  mov    %rax,%rsi
  lea    D119(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L7
L54:
  lea    -0x3f0(%rbp),%rax
  lea    D162(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L49
  lea    -0x3f0(%rbp),%rdx
  mov    -0x430(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rsi
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L7
L49:
  lea    -0x3f0(%rbp),%rax
  lea    D169(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L241
  lea    -0x3f0(%rbp),%rdx
  mov    -0x430(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rsi
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L7
L241:
  movl   $0x1,-0x404(%rbp)
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rsi
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L7:
  cmpl   $0x0,-0x408(%rbp)
  jne    L249
  cmpl   $0x0,-0x404(%rbp)
  jne    L249
  mov    $0x1,%eax
  jmp    L146
L249:
  mov    $0x0,%eax
L146:
  mov    %eax,-0x3fc(%rbp)
  mov    -0x3fc(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L126
  call   <__stack_chk_fail@plt>
L126:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D140
datatype: string
name: parse_data
arguments: label: D119
datatype: string
name: parse_data
arguments: label: D65
datatype: string
name: parse_data
arguments: label: D3
datatype: string
name: parse_data
arguments: label: D128
datatype: string
name: parse_data
arguments: label: D121
datatype: string
name: parse_data
arguments: label: D21
datatype: string
name: parse_data
arguments: label: D73
datatype: string
name: parse_data
arguments: label: D199
datatype: string
name: parse_data
arguments: label: D50
datatype: string
name: parse_data
arguments: label: D162
datatype: string
name: parse_data
arguments: label: D169
datatype: string
name: parse_data
arguments: label: D35
datatype: string

tool: D140: Input source (path): 

tool: D119: Ok unchanged "%s"


tool: D65: Ok "%s"


tool: D3: Input destination (path): 

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

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


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


tool: D73: %lf

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


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

tool: D162: xor

tool: D169: none

tool: D35: 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;
}
```