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

```asm
<alu>:
  endbr64
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  movabs $0x3030303030303030,%rax
  movb   $0x0,0x17(%rsp)
  mov    %rax,0xf(%rsp)
  cmp    $0xf,%edi
  ja     L18
  mov    %rsi,%r9
  mov    %edi,%edi
  mov    %rdx,%rsi
  mov    %rcx,%r10
  lea    D2(%rip),%rdx
  mov    %r8,%rcx
  movslq (%rdx,%rdi,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_alu_rol@plt>
  nop
L25:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  add    $0x28,%rsp
  ret
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_alu_ror@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_alu_reset@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_add@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_sub@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_and@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_or@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_xor@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_neg_a@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_neg_b@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_not_a@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_not_b@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_adc@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_alu_sbc@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_alu_asl@plt>
  jmp    L25
  nopl   0x0(%rax)
  lea    0xf(%rsp),%rax
  test   %r8,%r8
  mov    %r10,%rdx
  mov    %r9,%rdi
  cmove  %rax,%rcx
  call   <op_alu_lsr@plt>
  jmp    L25
L18:
  mov    %edi,%edx
  mov    %edi,%esi
  lea    D3(%rip),%rdi
  call   <printf@plt>
  jmp    L25
L16:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D3
type_guessed: string

tool: D3: ALU(%i): Invalide operation %i selected

assistant: ```c
void alu(unsigned int alu_opcode, char reg_in_a[], char reg_in_b[], char reg_out_accu[], char flags[]) {
  char dummyflags[9] = "00000000";
  switch (alu_opcode) {
  case 1:
    op_add(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 10:
    op_adc(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 2:
    op_sub(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 11:
    op_alu_sbc(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 3:
    op_and(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 4:
    op_or(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 5:
    op_xor(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 6:
    op_neg_a(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 7:
    op_neg_b(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 8:
    op_not_a(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 9:
    op_not_b(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 12:
    op_alu_asl(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 13:
    op_alu_lsr(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 14:
    op_alu_rol(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 15:
    op_alu_ror(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  case 0:
    op_alu_reset(reg_in_a, reg_in_b, reg_out_accu, (flags == NULL) ? dummyflags : flags);
    break;
  default:
    printf("ALU(%i): Invalide operation %i selected", alu_opcode, alu_opcode);
  }
}
```