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

```asm
<cmd_14>:
  endbr64
  movabs $0x4300000050,%rcx
  push   %r13
  mov    %edx,%r9d
  movabs $0x7700000014,%r8
  movabs $0x430000005f,%rdx
  push   %r12
  lea    -0x2(%r9),%r12d
  movabs $0x2000000030,%r10
  push   %rbp
  mov    %edi,%ebp
  movabs $0x2000000072,%rdi
  push   %rbx
  mov    %rsi,%rbx
  movabs $0x2f00000046,%rsi
  sub    $0x178,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x168(%rsp)
  xor    %eax,%eax
  movl   $0x14,0xc(%rsp)
  movabs $0x6c00000014,%rax
  mov    %rax,0x50(%rsp)
  movabs $0x200000006f,%rax
  mov    %rax,0x58(%rsp)
  movabs $0x3100000033,%rax
  mov    %rax,0x60(%rsp)
  movabs $0x3500000034,%rax
  mov    %rax,0x68(%rsp)
  movabs $0x5200000014,%rax
  mov    %rax,0x70(%rsp)
  movabs $0x2000000045,%rax
  mov    %rax,0x78(%rsp)
  movabs $0x5500000042,%rax
  mov    %rax,0x90(%rsp)
  mov    %rax,0xc0(%rsp)
  mov    %rax,0x100(%rsp)
  mov    %rcx,0x80(%rsp)
  mov    %rdx,0x88(%rsp)
  movl   $0x46,0x98(%rsp)
  mov    %r8,0xa0(%rsp)
  mov    %rdi,0xa8(%rsp)
  mov    %rcx,0xb0(%rsp)
  mov    %rdx,0xb8(%rsp)
  mov    %rsi,0xc8(%rsp)
  mov    %r10,0xd0(%rsp)
  movl   $0x30,0xd8(%rsp)
  mov    %r8,0xe0(%rsp)
  mov    %rdi,0xe8(%rsp)
  mov    %rcx,0xf0(%rsp)
  mov    %rdx,0xf8(%rsp)
  mov    %rsi,0x108(%rsp)
  mov    %r10,0x110(%rsp)
  mov    %rax,0x140(%rsp)
  movabs $0x2000000031,%rax
  mov    %rax,0x150(%rsp)
  movabs $0x3500000031,%rax
  mov    %rax,0x158(%rsp)
  movabs $0xc0000000aa,%rax
  mov    %rax,0x10(%rsp)
  movabs $0x3800000002,%rax
  mov    %rax,0x18(%rsp)
  movabs $0x40000000aa,%rax
  mov    %rax,0x30(%rsp)
  movabs $0xe600000000,%rax
  movl   $0x31,0x118(%rsp)
  mov    %r8,0x120(%rsp)
  mov    %rdi,0x128(%rsp)
  mov    %rcx,0x130(%rsp)
  mov    %rdx,0x138(%rsp)
  mov    %rsi,0x148(%rsp)
  movl   $0x5d,0x20(%rsp)
  mov    %rax,0x38(%rsp)
  movl   $0x3e,0x40(%rsp)
  cmp    $0x3,%r9d
  je     L59
  cmp    $0x8,%r12d
  je     L50
  cmp    $0xb,%r12d
  je     L58
  cmp    $0xf,%r12d
  je     L189
  cmp    $0x10,%r12d
  jne    L27
  lea    0x120(%rsp),%rsi
  mov    $0x10,%edx
  mov    %rbx,%rdi
  call   <cmdcmp@plt>
  test   %rax,%rax
  je     L107
L27:
  lea    D0(%rip),%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  mov    -0x4(%rbx),%esi
  lea    D27(%rip),%r13
  lea    D18(%rip),%rbp
  test   %esi,%esi
  jne    L127
  jmp    L152
  cs nopw 0x0(%rax,%rax,1)
L93:
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  mov    -0x4(%rbx),%esi
  test   %esi,%esi
  je     L152
L127:
  lea    -0x20(%rsi),%eax
  cmp    $0x5a,%eax
  jbe    L93
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  mov    -0x4(%rbx),%esi
  test   %esi,%esi
  jne    L127
L152:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    %r12d,%esi
  lea    D51(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L29:
  mov    0x168(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L113
  add    $0x178,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L59:
  lea    0xc(%rsp),%rsi
  mov    $0x1,%edx
  mov    %rbx,%rdi
  call   <cmdcmp@plt>
  test   %rax,%rax
  jne    L27
  lea    D78(%rip),%rdi
  call   <puts@plt>
  jmp    L29
  nopl   0x0(%rax)
L58:
  lea    0x70(%rsp),%rsi
  mov    $0xb,%edx
  mov    %rbx,%rdi
  call   <cmdcmp@plt>
  test   %rax,%rax
  jne    L27
  lea    D7(%rip),%rdi
  call   <puts@plt>
  jmp    L29
  nopl   0x0(%rax)
L107:
  lea    D46(%rip),%rdi
  call   <puts@plt>
  jmp    L29
  nopl   0x0(%rax)
L50:
  lea    0x50(%rsp),%rsi
  mov    $0x8,%edx
  mov    %rbx,%rdi
  call   <cmdcmp@plt>
  test   %rax,%rax
  jne    L27
  lea    D33(%rip),%rdi
  call   <puts@plt>
  lea    0x30(%rsp),%rsi
  mov    $0x5,%edx
  mov    %ebp,%edi
  call   <writeportb@plt>
  jmp    L29
  nopl   (%rax)
L189:
  lea    0xa0(%rsp),%rsi
  mov    $0xf,%edx
  mov    %rbx,%rdi
  call   <cmdcmp@plt>
  test   %rax,%rax
  je     L181
  lea    0xe0(%rsp),%rsi
  mov    $0xf,%edx
  mov    %rbx,%rdi
  call   <cmdcmp@plt>
  test   %rax,%rax
  jne    L27
  lea    D84(%rip),%rdi
  call   <puts@plt>
  lea    0x10(%rsp),%rsi
  mov    $0x5,%edx
  mov    %ebp,%edi
  call   <writeportb@plt>
  jmp    L29
L181:
  lea    D59(%rip),%rdi
  call   <puts@plt>
  jmp    L29
L113:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D0
data_type: string
name: disassemble_data
arguments: data_tag: D27
data_type: string
name: disassemble_data
arguments: data_tag: D18
data_type: string
name: disassemble_data
arguments: data_tag: D51
data_type: string
name: disassemble_data
arguments: data_tag: D78
data_type: string
name: disassemble_data
arguments: data_tag: D7
data_type: string
name: disassemble_data
arguments: data_tag: D46
data_type: string
name: disassemble_data
arguments: data_tag: D33
data_type: string
name: disassemble_data
arguments: data_tag: D84
data_type: string
name: disassemble_data
arguments: data_tag: D59
data_type: string

tool: D0: > Unknown 0x14 command: 

tool: D27: %i,

tool: D18: '%c',

tool: D51: > size: %i


tool: D78: 0x14: Empty cmd. Something wrong?

tool: D7: 0x14: cbf. About to shut down?

tool: D46: 0x14: cbf2. Don't know what to answer

tool: D33: 0x14: lo 3145

tool: D84: 0x14: cbf1.

tool: D59: 0x14: cbf0. About to shut down?

assistant: ```c
int cmd_14(int fd, int *f, int size) {
  int empty[] = {20};
  int lo_3145[] = {20, 'l', 'o', ' ', '3', '1', '4', '5'};
  int cbf[] = {20, 'R', 'E', ' ', 'P', 'C', '_', 'C', 'B', 'U', 'F'};
  int cbf0[] = {20, 'w', 'r', ' ', 'P', 'C', '_', 'C', 'B', 'U', 'F', '/', '0', ' ', '0'};
  int cbf1[] = {20, 'w', 'r', ' ', 'P', 'C', '_', 'C', 'B', 'U', 'F', '/', '0', ' ', '1'};
  int cbf2[] = {20, 'w', 'r', ' ', 'P', 'C', '_', 'C', 'B', 'U', 'F', '/', '1', ' ', '1', '5'};
  int cbf3[] = {20, 'w', 'r', ' ', 'P', 'C', '_', 'C', 'B', 'U', 'F', '/', '1', ' ', '0'};
  int ipar[] = {20, 'w', 'r', ' ', 'I', 'P', 'A', 'R', '/', '0', '-', '9', '5', ' ', '0'};
  int ipb[] = {20, 'w', 'r', ' ', 'I', 'P', 'B', '/', '0', '-', '9', '5', ' ', '0'};
  int answer1[] = {170, 128, 4, 232, 66};
  int answer2[] = {170, 192, 2, 56, 93};
  int busy[] = {170, 64, 0, 230, 62};
  unsigned char resp[255];
  size -= 2;
  if ((size == 1) && (cmdcmp(f, empty, 1) == 0)) {
    printf("0x14: Empty cmd. Something wrong?\n");
  } else if ((size == 8) && (cmdcmp(f, lo_3145, 8)) == 0) {
    printf("0x14: lo 3145\n");
    writeportb(fd, busy, 5);
  } else if ((size == 11) && (cmdcmp(f, cbf, 11) == 0)) {
    printf("0x14: cbf. About to shut down?\n");
  } else if ((size == 15) && (cmdcmp(f, cbf0, 15) == 0)) {
    printf("0x14: cbf0. About to shut down?\n");
  } else if ((size == 15) && (cmdcmp(f, cbf1, 15) == 0)) {
    printf("0x14: cbf1.\n");
    writeportb(fd, answer2, 5);
  } else if ((size == 16) && (cmdcmp(f, cbf2, 16) == 0)) {
    printf("0x14: cbf2. Don't know what to answer\n");
  } else {
    printf("> Unknown 0x14 command: ");
    int i = 0;
    while (f[i] != 0) {
      if ((f[i] >= 32) && (f[i] <= 122))
        printf("'%c',", f[i++]);
      else
        printf("%i,", f[i++]);
    }
    printf("\n");
    printf("> size: %i\n", size);
  }
  return 0;
}
```