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

```asm
<aes_encrypt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x100,%rsp
  mov    %rdi,-0xe8(%rbp)
  mov    %rsi,-0xf0(%rbp)
  mov    %rdx,-0xf8(%rbp)
  mov    %ecx,-0xfc(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movw   $0x0,-0xd2(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0xd0(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0x1(%rax),%eax
  mov    %al,-0xcc(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0x2(%rax),%eax
  mov    %al,-0xc8(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0x3(%rax),%eax
  mov    %al,-0xc4(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0x4(%rax),%eax
  mov    %al,-0xcf(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0x5(%rax),%eax
  mov    %al,-0xcb(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0x6(%rax),%eax
  mov    %al,-0xc7(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0x7(%rax),%eax
  mov    %al,-0xc3(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0x8(%rax),%eax
  mov    %al,-0xce(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0x9(%rax),%eax
  mov    %al,-0xca(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0xa(%rax),%eax
  mov    %al,-0xc6(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0xb(%rax),%eax
  mov    %al,-0xc2(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0xc(%rax),%eax
  mov    %al,-0xcd(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0xd(%rax),%eax
  mov    %al,-0xc9(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0xe(%rax),%eax
  mov    %al,-0xc5(%rbp)
  mov    -0xe8(%rbp),%rax
  movzbl 0xf(%rax),%eax
  mov    %al,-0xc1(%rbp)
  lea    -0xc0(%rbp),%rcx
  mov    -0xf8(%rbp),%rax
  mov    $0x80,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <KeyExpansion@plt>
  lea    -0xc0(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <AddRoundKey@plt>
  movw   $0x1,-0xd2(%rbp)
  jmp    L25
L27:
  lea    -0xd0(%rbp),%rax
  mov    %rax,%rdi
  call   <SubBytes@plt>
  lea    -0xd0(%rbp),%rax
  mov    %rax,%rdi
  call   <ShiftRows@plt>
  lea    -0xd0(%rbp),%rax
  mov    %rax,%rdi
  call   <MixColumns@plt>
  movswl -0xd2(%rbp),%eax
  shl    $0x2,%eax
  lea    -0xc0(%rbp),%rdx
  cltq
  shl    $0x2,%rax
  add    %rax,%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <AddRoundKey@plt>
  movzwl -0xd2(%rbp),%eax
  add    $0x1,%eax
  mov    %ax,-0xd2(%rbp)
L25:
  cmpw   $0x9,-0xd2(%rbp)
  jle    L27
  lea    -0xd0(%rbp),%rax
  mov    %rax,%rdi
  call   <SubBytes@plt>
  lea    -0xd0(%rbp),%rax
  mov    %rax,%rdi
  call   <ShiftRows@plt>
  movswl -0xd2(%rbp),%eax
  shl    $0x2,%eax
  lea    -0xc0(%rbp),%rdx
  cltq
  shl    $0x2,%rax
  add    %rax,%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <AddRoundKey@plt>
  movzbl -0xd0(%rbp),%edx
  mov    -0xf0(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0xf0(%rbp),%rax
  lea    0x1(%rax),%rdx
  movzbl -0xcc(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0x2(%rax),%rdx
  movzbl -0xc8(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0x3(%rax),%rdx
  movzbl -0xc4(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0x4(%rax),%rdx
  movzbl -0xcf(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0x5(%rax),%rdx
  movzbl -0xcb(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0x6(%rax),%rdx
  movzbl -0xc7(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0x7(%rax),%rdx
  movzbl -0xc3(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0x8(%rax),%rdx
  movzbl -0xce(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0x9(%rax),%rdx
  movzbl -0xca(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0xa(%rax),%rdx
  movzbl -0xc6(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0xb(%rax),%rdx
  movzbl -0xc2(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0xc(%rax),%rdx
  movzbl -0xcd(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0xd(%rax),%rdx
  movzbl -0xc9(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0xe(%rax),%rdx
  movzbl -0xc5(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0xf0(%rbp),%rax
  lea    0xf(%rax),%rdx
  movzbl -0xc1(%rbp),%eax
  mov    %al,(%rdx)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L17
  call   <__stack_chk_fail@plt>
L17:
  leave
  ret
```

assistant: ```c
void aes_encrypt(unsigned char in[], unsigned char out[], unsigned char key[], int keysize) {
  unsigned char state[4][4];
  short i = 0;
  unsigned int w[44];
  state[0][0] = in[0];
  state[1][0] = in[1];
  state[2][0] = in[2];
  state[3][0] = in[3];
  state[0][1] = in[4];
  state[1][1] = in[5];
  state[2][1] = in[6];
  state[3][1] = in[7];
  state[0][2] = in[8];
  state[1][2] = in[9];
  state[2][2] = in[10];
  state[3][2] = in[11];
  state[0][3] = in[12];
  state[1][3] = in[13];
  state[2][3] = in[14];
  state[3][3] = in[15];
  KeyExpansion(key, w, 128);
  AddRoundKey(state, (unsigned char *)&w[0]);
  for (i = 1; i < 10; i++) {
    SubBytes(state);
    ShiftRows(state);
    MixColumns(state);
    AddRoundKey(state, (unsigned char *)&w[4 * i]);
  }
  SubBytes(state);
  ShiftRows(state);
  AddRoundKey(state, (unsigned char *)&w[4 * i]);
  out[0] = state[0][0];
  out[1] = state[1][0];
  out[2] = state[2][0];
  out[3] = state[3][0];
  out[4] = state[0][1];
  out[5] = state[1][1];
  out[6] = state[2][1];
  out[7] = state[3][1];
  out[8] = state[0][2];
  out[9] = state[1][2];
  out[10] = state[2][2];
  out[11] = state[3][2];
  out[12] = state[0][3];
  out[13] = state[1][3];
  out[14] = state[2][3];
  out[15] = state[3][3];
}
```