user: 这段汇编代码用C语言表示是什么样的：

```asm
<aes_encrypt>:
  endbr64
  push   %r14
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  lea    0x140(%r12),%r14
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x30,%rsp
  movzbl 0xd(%rdi),%edx
  movzbl 0xb(%rdi),%esi
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movzbl 0x9(%rdi),%eax
  movzbl (%rdi),%ecx
  lea    0x10(%rsp),%rbp
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0x5(%rdi),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0x1(%rdi),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0xc(%rdi),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0x8(%rdi),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0x4(%rdi),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0xf(%rdi),%eax
  shl    $0x8,%rdx
  shl    $0x8,%rax
  or     %rcx,%rdx
  or     %rsi,%rax
  movzbl 0x7(%rdi),%esi
  mov    %rdx,(%rsp)
  shl    $0x8,%rax
  or     %rsi,%rax
  movzbl 0x3(%rdi),%esi
  shl    $0x8,%rax
  or     %rsi,%rax
  movzbl 0xe(%rdi),%esi
  shl    $0x8,%rax
  or     %rsi,%rax
  movzbl 0xa(%rdi),%esi
  shl    $0x8,%rax
  or     %rsi,%rax
  movzbl 0x6(%rdi),%esi
  shl    $0x8,%rax
  or     %rsi,%rax
  movzbl 0x2(%rdi),%esi
  mov    %rbp,%rdi
  shl    $0x8,%rax
  or     %rsi,%rax
  mov    %r12,%rsi
  mov    %rax,0x8(%rsp)
  movdqa (%rsp),%xmm0
  movaps %xmm0,0x10(%rsp)
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  lea    0x20(%r12),%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  lea    0x40(%r12),%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  lea    0x60(%r12),%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  lea    0x80(%r12),%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  lea    0xa0(%r12),%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  lea    0xc0(%r12),%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  lea    0xe0(%r12),%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  lea    0x100(%r12),%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  mov    %rbp,%rdi
  lea    0x120(%r12),%rsi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  cmp    $0x80,%r13d
  je     L33
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  lea    0x180(%r12),%r14
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  mov    %rbp,%rdi
  lea    0x160(%r12),%rsi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  cmp    $0xc0,%r13d
  je     L33
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %rbp,%rdi
  call   <MixColumns@plt>
  lea    0x1a0(%r12),%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
  mov    %rbp,%rdi
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  lea    0x1c0(%r12),%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
  jmp    L26
  nopw   0x0(%rax,%rax,1)
L33:
  call   <SubBytes@plt>
  mov    %rbp,%rdi
  call   <ShiftRows@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <AddRoundKey@plt>
L26:
  movzbl 0x1d(%rsp),%edx
  movzbl 0x19(%rsp),%eax
  movzbl 0x1b(%rsp),%esi
  movzbl 0x10(%rsp),%ecx
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0x15(%rsp),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0x11(%rsp),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0x1c(%rsp),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0x18(%rsp),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0x14(%rsp),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl 0x1f(%rsp),%eax
  shl    $0x8,%rdx
  shl    $0x8,%rax
  or     %rcx,%rdx
  or     %rsi,%rax
  movzbl 0x17(%rsp),%esi
  mov    %rdx,(%rsp)
  shl    $0x8,%rax
  or     %rsi,%rax
  movzbl 0x13(%rsp),%esi
  shl    $0x8,%rax
  or     %rsi,%rax
  movzbl 0x1e(%rsp),%esi
  shl    $0x8,%rax
  or     %rsi,%rax
  movzbl 0x1a(%rsp),%esi
  shl    $0x8,%rax
  or     %rsi,%rax
  movzbl 0x16(%rsp),%esi
  shl    $0x8,%rax
  or     %rsi,%rax
  movzbl 0x12(%rsp),%esi
  shl    $0x8,%rax
  or     %rsi,%rax
  mov    %rax,0x8(%rsp)
  movdqa (%rsp),%xmm1
  movups %xmm1,(%rbx)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L0:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void aes_encrypt(unsigned char in[], unsigned char out[], unsigned long key[], int keysize) {
  unsigned char state[4][4];
  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];
  AddRoundKey(state, &key[0]);
  SubBytes(state);
  ShiftRows(state);
  MixColumns(state);
  AddRoundKey(state, &key[4]);
  SubBytes(state);
  ShiftRows(state);
  MixColumns(state);
  AddRoundKey(state, &key[8]);
  SubBytes(state);
  ShiftRows(state);
  MixColumns(state);
  AddRoundKey(state, &key[12]);
  SubBytes(state);
  ShiftRows(state);
  MixColumns(state);
  AddRoundKey(state, &key[16]);
  SubBytes(state);
  ShiftRows(state);
  MixColumns(state);
  AddRoundKey(state, &key[20]);
  SubBytes(state);
  ShiftRows(state);
  MixColumns(state);
  AddRoundKey(state, &key[24]);
  SubBytes(state);
  ShiftRows(state);
  MixColumns(state);
  AddRoundKey(state, &key[28]);
  SubBytes(state);
  ShiftRows(state);
  MixColumns(state);
  AddRoundKey(state, &key[32]);
  SubBytes(state);
  ShiftRows(state);
  MixColumns(state);
  AddRoundKey(state, &key[36]);
  if (keysize != 128) {
    SubBytes(state);
    ShiftRows(state);
    MixColumns(state);
    AddRoundKey(state, &key[40]);
    SubBytes(state);
    ShiftRows(state);
    MixColumns(state);
    AddRoundKey(state, &key[44]);
    if (keysize != 192) {
      SubBytes(state);
      ShiftRows(state);
      MixColumns(state);
      AddRoundKey(state, &key[48]);
      SubBytes(state);
      ShiftRows(state);
      MixColumns(state);
      AddRoundKey(state, &key[52]);
      SubBytes(state);
      ShiftRows(state);
      AddRoundKey(state, &key[56]);
    } else {
      SubBytes(state);
      ShiftRows(state);
      AddRoundKey(state, &key[48]);
    }
  } else {
    SubBytes(state);
    ShiftRows(state);
    AddRoundKey(state, &key[40]);
  }
  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];
}
```