user: Translate the below assembly code into C programming language:

```asm
<encryptablock>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x138,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x128(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x70(%rsp)
  movq   $0x0,0x78(%rsp)
  movq   $0x0,0x80(%rsp)
  movq   $0x0,0x88(%rsp)
  movq   $0x0,0x90(%rsp)
  movq   $0x0,0x98(%rsp)
  movq   $0x0,0xa0(%rsp)
  movq   $0x0,0xa8(%rsp)
  movq   $0x0,0xb0(%rsp)
  movq   $0x0,0xb8(%rsp)
  movq   $0x0,0xc0(%rsp)
  movq   $0x0,0xc8(%rsp)
  movq   $0x0,0xd0(%rsp)
  movq   $0x0,0xd8(%rsp)
  movq   $0x0,0xe0(%rsp)
  movq   $0x0,0xe8(%rsp)
  movq   $0x0,0xf0(%rsp)
  movq   $0x0,0xf8(%rsp)
  movq   $0x0,0x100(%rsp)
  movq   $0x0,0x108(%rsp)
  movq   $0x0,0x110(%rsp)
  movq   $0x0,0x118(%rsp)
  movq   $0x0,0x60(%rsp)
  movq   $0x0,0x68(%rsp)
  lea    0x70(%rsp),%r12
  mov    %r12,%rsi
  call   <expandkey@plt>
  lea    0x60(%rsp),%rbp
  mov    $0x0,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <getroundkey@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <addroundkey@plt>
  mov    $0x1,%ebp
  lea    0x3(%rbx),%rax
  mov    %rax,(%rsp)
L18:
  lea    0x2(%rbx),%r14
  lea    0x1(%rbx),%r13
  mov    (%rsp),%rcx
  mov    %r14,%rdx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <subbytes@plt>
  lea    0x7(%rbx),%rax
  lea    0x6(%rbx),%rdx
  lea    0x5(%rbx),%rsi
  lea    0x4(%rbx),%rdi
  mov    %rax,0x8(%rsp)
  mov    %rax,%rcx
  mov    %rdx,0x10(%rsp)
  mov    %rsi,0x18(%rsp)
  mov    %rdi,0x20(%rsp)
  call   <subbytes@plt>
  lea    0xb(%rbx),%r8
  lea    0xa(%rbx),%r9
  lea    0x9(%rbx),%r10
  lea    0x8(%rbx),%r11
  mov    %r8,0x28(%rsp)
  mov    %r8,%rcx
  mov    %r9,0x30(%rsp)
  mov    %r9,%rdx
  mov    %r10,0x38(%rsp)
  mov    %r10,%rsi
  mov    %r11,0x40(%rsp)
  mov    %r11,%rdi
  call   <subbytes@plt>
  lea    0xf(%rbx),%rax
  lea    0xe(%rbx),%r15
  mov    %r15,%r8
  lea    0xd(%rbx),%r15
  lea    0xc(%rbx),%r12
  mov    %rax,0x48(%rsp)
  mov    %rax,%rcx
  mov    %r8,0x50(%rsp)
  mov    %r8,%rdx
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <subbytes@plt>
  mov    %rbx,%rdi
  call   <rotate_word@plt>
  mov    (%rsp),%rcx
  mov    %r14,%rdx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <mixcolumns@plt>
  mov    0x8(%rsp),%rcx
  mov    0x10(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  mov    0x20(%rsp),%rdi
  call   <mixcolumns@plt>
  mov    0x28(%rsp),%rcx
  mov    0x30(%rsp),%rdx
  mov    0x38(%rsp),%rsi
  mov    0x40(%rsp),%rdi
  call   <mixcolumns@plt>
  mov    0x48(%rsp),%rcx
  mov    0x50(%rsp),%rdx
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <mixcolumns@plt>
  lea    0x60(%rsp),%rax
  lea    0x70(%rsp),%rdi
  mov    %ebp,%edx
  mov    %rax,0x58(%rsp)
  mov    %rax,%rsi
  call   <getroundkey@plt>
  mov    0x58(%rsp),%rsi
  mov    %rbx,%rdi
  call   <addroundkey@plt>
  add    $0x1,%ebp
  cmp    $0xa,%ebp
  jne    L18
  mov    (%rsp),%rcx
  mov    %r14,%rdx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <subbytes@plt>
  mov    0x8(%rsp),%rcx
  mov    0x10(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  mov    0x20(%rsp),%rdi
  call   <subbytes@plt>
  mov    0x28(%rsp),%rcx
  mov    0x30(%rsp),%rdx
  mov    0x38(%rsp),%rsi
  mov    0x40(%rsp),%rdi
  call   <subbytes@plt>
  mov    0x48(%rsp),%rcx
  mov    0x50(%rsp),%rdx
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <subbytes@plt>
  mov    %rbx,%rdi
  call   <rotate_word@plt>
  lea    0x60(%rsp),%rbp
  lea    0x70(%rsp),%rdi
  mov    $0xa,%edx
  mov    %rbp,%rsi
  call   <getroundkey@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <addroundkey@plt>
  mov    0x128(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x138,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void encryptablock(unsigned char *state, unsigned char *key) {
  unsigned char expandedkey[176] = {0};
  unsigned char roundkey[16] = {0};
  expandkey(key, expandedkey);
  getroundkey(expandedkey, roundkey, 0);
  addroundkey(state, roundkey);
  for (int i = 1; i < 10; i++) {
    subbytes(&state[0], &state[1], &state[2], &state[3]);
    subbytes(&state[4], &state[5], &state[6], &state[7]);
    subbytes(&state[8], &state[9], &state[10], &state[11]);
    subbytes(&state[12], &state[13], &state[14], &state[15]);
    rotate_word(state);
    mixcolumns(&state[0], &state[1], &state[2], &state[3]);
    mixcolumns(&state[4], &state[5], &state[6], &state[7]);
    mixcolumns(&state[8], &state[9], &state[10], &state[11]);
    mixcolumns(&state[12], &state[13], &state[14], &state[15]);
    getroundkey(expandedkey, roundkey, i);
    addroundkey(state, roundkey);
  }
  subbytes(&state[0], &state[1], &state[2], &state[3]);
  subbytes(&state[4], &state[5], &state[6], &state[7]);
  subbytes(&state[8], &state[9], &state[10], &state[11]);
  subbytes(&state[12], &state[13], &state[14], &state[15]);
  rotate_word(state);
  getroundkey(expandedkey, roundkey, 10);
  addroundkey(state, roundkey);
}
```