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

```asm
<encrypt_32bits>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rax
  mov    %esi,-0x8(%rsp)
  mov    %rdx,%rbp
  mov    %rcx,%r12
  mov    %r9d,-0x4(%rsp)
  mov    0x28(%rdi),%rdi
  mov    %rdi,%r14
  shr    $0x5,%r14
  mov    0x20(%rax),%r15
  mov    %r15,%rbx
  shr    $0x3,%rbx
  mov    0x18(%rax),%r9
  mov    %r9,%rsi
  shr    $0x6,%rsi
  mov    0x10(%rax),%r10
  shr    $0x4,%r10
  mov    0x8(%rax),%r13
  shr    $0x5,%r13
  mov    (%rax),%rdx
  mov    %rdx,%r11
  shr    $0x17,%r11
  mov    %edi,%ecx
  xor    %r14d,%ecx
  xor    %rcx,0x30(%rax)
  mov    %r15d,%ecx
  xor    %ebx,%ecx
  xor    %rdi,%rcx
  mov    %rcx,0x28(%rax)
  mov    %r9d,%ecx
  xor    %esi,%ecx
  xor    %r15,%rcx
  mov    %rcx,0x20(%rax)
  mov    %r10d,%r15d
  xor    0x10(%rax),%r15d
  xor    %r9,%r15
  mov    %r15,0x18(%rax)
  mov    %r13d,%r9d
  xor    0x8(%rax),%r9d
  xor    0x10(%rax),%r9
  mov    %r9,0x10(%rax)
  mov    %edx,%r9d
  xor    %r11d,%r9d
  xor    0x8(%rax),%r9
  mov    %r9,0x8(%rax)
  shr    $0xc,%rdx
  xor    %r15d,%edx
  mov    %ecx,%r15d
  and    %r9d,%r15d
  xor    %r15d,%edx
  xor    %r9d,%ecx
  and    %r14d,%ecx
  xor    %ecx,%edx
  mov    %edx,(%r12)
  mov    (%rax),%r9
  mov    0x10(%rax),%r12
  mov    0x28(%rax),%rcx
  mov    -0x8(%rsp),%r15d
  mov    %r15d,%r14d
  xor    %edx,%r14d
  mov    %r14d,0x0(%rbp)
  mov    %rsi,%rbp
  and    %r11,%rbp
  xor    %r12,%r9
  xor    %rbp,%r9
  and    %rcx,%r10
  xor    %r9,%r10
  not    %rcx
  and    %r13,%rcx
  xor    %r10,%rcx
  and    %ebx,%r8d
  xor    %r8,%rcx
  xor    %r11,%rsi
  shr    $0xe,%rdi
  and    %rdi,%rsi
  xor    %rsi,%rcx
  and    -0x4(%rsp),%edx
  xor    %r15d,%edx
  xor    %rcx,%rdx
  shl    $0x4,%rdx
  not    %rdx
  movabs $0xffffffff0,%rcx
  and    %rcx,%rdx
  xor    0x30(%rax),%rdx
  mov    0x8(%rax),%rsi
  mov    (%rax),%rcx
  shr    $0x20,%rcx
  mov    %rsi,%rdi
  shl    $0x1d,%rdi
  movabs $0x1fffffffe0000000,%r8
  and    %r8,%rdi
  or     %rdi,%rcx
  mov    %rcx,(%rax)
  mov    0x10(%rax),%rdi
  mov    %rdi,%rcx
  shl    $0xe,%rcx
  movabs $0x3fffffffc000,%r8
  and    %r8,%rcx
  shr    $0x20,%rsi
  or     %rsi,%rcx
  mov    %rcx,0x8(%rax)
  mov    0x18(%rax),%rsi
  mov    %rsi,%rcx
  shl    $0xf,%rcx
  movabs $0x7fffffff8000,%r8
  and    %r8,%rcx
  shr    $0x20,%rdi
  or     %rdi,%rcx
  mov    %rcx,0x10(%rax)
  mov    0x20(%rax),%rdi
  mov    %rdi,%rcx
  shl    $0x7,%rcx
  movabs $0x7fffffff80,%r8
  and    %r8,%rcx
  shr    $0x20,%rsi
  or     %rsi,%rcx
  mov    %rcx,0x18(%rax)
  mov    0x28(%rax),%rsi
  mov    %rsi,%rcx
  shl    $0x5,%rcx
  movabs $0x1fffffffe0,%r8
  and    %r8,%rcx
  shr    $0x20,%rdi
  or     %rdi,%rcx
  mov    %rcx,0x20(%rax)
  mov    %rdx,%rcx
  shl    $0x1b,%rcx
  movabs $0x7fffffff8000000,%rdi
  and    %rdi,%rcx
  shr    $0x20,%rsi
  or     %rsi,%rcx
  mov    %rcx,0x28(%rax)
  shr    $0x20,%rdx
  mov    %rdx,0x30(%rax)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void encrypt_32bits(unsigned long long *state, unsigned int plaintextword, unsigned int *ciphertextword, unsigned int *ks, unsigned int ca, unsigned int cb) {
  unsigned long long f;
  unsigned long long word_244, word_23, word_160, word_111, word_66, word_196, word_0, word_107, word_230;
  unsigned long long word_12, word_154, word_235, word_61, word_193;
  word_235 = state[5] >> 5;
  word_196 = state[4] >> 3;
  word_160 = state[3] >> 6;
  word_111 = state[2] >> 4;
  word_66 = state[1] >> 5;
  word_23 = state[0] >> 23;
  word_244 = state[5] >> 14;
  word_12 = state[0] >> 12;
  state[6] ^= (state[5] ^ word_235) & 0xffffffff;
  state[5] ^= (state[4] ^ word_196) & 0xffffffff;
  state[4] ^= (state[3] ^ word_160) & 0xffffffff;
  state[3] ^= (state[2] ^ word_111) & 0xffffffff;
  state[2] ^= (state[1] ^ word_66) & 0xffffffff;
  state[1] ^= (state[0] ^ word_23) & 0xffffffff;
  *ks = word_12 ^ state[3] ^ (((word_235) & (state[1])) ^ ((word_235) & (state[4])) ^ ((state[1]) & (state[4])));
  f = state[0] ^ (state[2] ^ 0xffffffff) ^ (((word_244) & (word_23)) ^ ((word_244) & (word_160)) ^ ((word_23) & (word_160))) ^ (((state[5]) & (word_111)) ^ ((~state[5]) & (word_66))) ^ (word_196 & ca) ^ (cb & *ks);
  *ciphertextword = plaintextword ^ *ks;
  f = (f ^ plaintextword) & 0xffffffff;
  state[6] = state[6] ^ (f << 4);
  state[0] = (state[0] >> 32) | ((state[1] & 0xffffffff) << 29);
  state[1] = (state[1] >> 32) | ((state[2] & 0xffffffff) << 14);
  state[2] = (state[2] >> 32) | ((state[3] & 0xffffffff) << 15);
  state[3] = (state[3] >> 32) | ((state[4] & 0xffffffff) << 7);
  state[4] = (state[4] >> 32) | ((state[5] & 0xffffffff) << 5);
  state[5] = (state[5] >> 32) | ((state[6] & 0xffffffff) << 27);
  state[6] = state[6] >> 32;
  return;
}
```