user: Converte this assembly snippet into its equivalent C code:

```asm
<XLS>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x260,%rsp
  mov    %edi,-0x234(%rbp)
  mov    %rsi,-0x240(%rbp)
  mov    %edx,-0x238(%rbp)
  mov    %rcx,-0x248(%rbp)
  mov    %r8,-0x250(%rbp)
  mov    %r9d,-0x254(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x260(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x240(%rbp),%rcx
  lea    -0x230(%rbp),%rax
  mov    $0x8,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x240(%rbp),%rax
  lea    0x20(%rax),%rcx
  mov    -0x238(%rbp),%edx
  lea    -0x210(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x250(%rbp),%rax
  mov    $0x80,%esi
  mov    %rax,%rdi
  call   <set_stage_in_tweak@plt>
  mov    -0x254(%rbp),%edx
  mov    -0x250(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <set_block_number_in_tweak@plt>
  mov    -0x250(%rbp),%rdx
  mov    -0x248(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  cmpl   $0x0,-0x234(%rbp)
  je     L1
  lea    -0x1f0(%rbp),%rcx
  mov    -0x248(%rbp),%rdx
  lea    -0x230(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xc0,%edi
  call   <aesTweakEncrypt@plt>
  jmp    L2
L1:
  lea    -0x1f0(%rbp),%rcx
  mov    -0x248(%rbp),%rdx
  lea    -0x230(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xc0,%edi
  call   <aesTweakDecrypt@plt>
L2:
  mov    $0x8,%eax
  sub    -0x238(%rbp),%eax
  mov    %eax,%edx
  lea    -0x1f0(%rbp),%rcx
  lea    -0x1d0(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x238(%rbp),%eax
  movslq %eax,%rdx
  mov    $0x8,%eax
  sub    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  lea    -0x1f0(%rbp),%rax
  lea    (%rax,%rdx,1),%rcx
  mov    -0x238(%rbp),%edx
  lea    -0x1b0(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    $0x8,%eax
  sub    -0x238(%rbp),%eax
  mov    %eax,%edx
  lea    -0x1d0(%rbp),%rcx
  lea    -0x190(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    $0x7,%eax
  sub    -0x238(%rbp),%eax
  cltq
  mov    -0x190(%rbp,%rax,4),%edx
  mov    $0x7,%eax
  sub    -0x238(%rbp),%eax
  xor    $0x1,%edx
  cltq
  mov    %edx,-0x190(%rbp,%rax,4)
  lea    -0x150(%rbp),%rdi
  lea    -0x170(%rbp),%rcx
  mov    -0x238(%rbp),%edx
  lea    -0x210(%rbp),%rsi
  lea    -0x1b0(%rbp),%rax
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <mix@plt>
  mov    $0x8,%eax
  sub    -0x238(%rbp),%eax
  mov    %eax,%edx
  lea    -0x190(%rbp),%rcx
  lea    -0x130(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x238(%rbp),%eax
  movslq %eax,%rdx
  mov    $0x8,%eax
  sub    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  lea    -0x130(%rbp),%rax
  lea    (%rax,%rdx,1),%rcx
  mov    -0x238(%rbp),%edx
  lea    -0x170(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  mov    -0x250(%rbp),%rax
  mov    $0x90,%esi
  mov    %rax,%rdi
  call   <set_stage_in_tweak@plt>
  mov    -0x250(%rbp),%rdx
  mov    -0x248(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  cmpl   $0x0,-0x234(%rbp)
  je     L58
  lea    -0x110(%rbp),%rcx
  mov    -0x248(%rbp),%rdx
  lea    -0x130(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xc0,%edi
  call   <aesTweakEncrypt@plt>
  jmp    L48
L58:
  lea    -0x110(%rbp),%rcx
  mov    -0x248(%rbp),%rdx
  lea    -0x130(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xc0,%edi
  call   <aesTweakDecrypt@plt>
L48:
  mov    $0x8,%eax
  sub    -0x238(%rbp),%eax
  mov    %eax,%edx
  lea    -0x110(%rbp),%rcx
  lea    -0xf0(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x238(%rbp),%eax
  movslq %eax,%rdx
  mov    $0x8,%eax
  sub    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  lea    -0x110(%rbp),%rax
  lea    (%rax,%rdx,1),%rcx
  mov    -0x238(%rbp),%edx
  lea    -0xd0(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    $0x8,%eax
  sub    -0x238(%rbp),%eax
  mov    %eax,%edx
  lea    -0xf0(%rbp),%rcx
  lea    -0xb0(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    $0x7,%eax
  sub    -0x238(%rbp),%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%edx
  mov    $0x7,%eax
  sub    -0x238(%rbp),%eax
  xor    $0x1,%edx
  cltq
  mov    %edx,-0xb0(%rbp,%rax,4)
  lea    -0x30(%rbp),%rdi
  lea    -0x90(%rbp),%rcx
  mov    -0x238(%rbp),%edx
  lea    -0x150(%rbp),%rsi
  lea    -0xd0(%rbp),%rax
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <mix@plt>
  mov    $0x8,%eax
  sub    -0x238(%rbp),%eax
  mov    %eax,%edx
  lea    -0xb0(%rbp),%rcx
  lea    -0x70(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x238(%rbp),%eax
  movslq %eax,%rdx
  mov    $0x8,%eax
  sub    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  lea    -0x70(%rbp),%rax
  lea    (%rax,%rdx,1),%rcx
  mov    -0x238(%rbp),%edx
  lea    -0x90(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  mov    -0x250(%rbp),%rax
  mov    $0x80,%esi
  mov    %rax,%rdi
  call   <set_stage_in_tweak@plt>
  mov    -0x250(%rbp),%rdx
  mov    -0x248(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  cmpl   $0x0,-0x234(%rbp)
  je     L5
  lea    -0x50(%rbp),%rcx
  mov    -0x248(%rbp),%rdx
  lea    -0x70(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xc0,%edi
  call   <aesTweakEncrypt@plt>
  jmp    L37
L5:
  lea    -0x50(%rbp),%rcx
  mov    -0x248(%rbp),%rdx
  lea    -0x70(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xc0,%edi
  call   <aesTweakDecrypt@plt>
L37:
  lea    -0x50(%rbp),%rcx
  mov    -0x260(%rbp),%rax
  mov    $0x8,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x260(%rbp),%rax
  lea    0x20(%rax),%rcx
  mov    -0x238(%rbp),%edx
  lea    -0x30(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L19
  call   <__stack_chk_fail@plt>
L19:
  leave
  ret
```

assistant: ```c
void XLS(const uint8_t isDirect, uint8_t message[], const uint32_t s, uint8_t *tweakey, uint8_t *tweak, const uint32_t l, uint8_t *cipher) {
  uint8_t M1[8];
  uint8_t M2[8];
  uint8_t X1[8];
  uint8_t X1ns[8];
  uint8_t X1s[8];
  uint8_t Xp1ns[8];
  uint8_t Xp1s[8];
  uint8_t X2[8];
  uint8_t Xp1[8];
  uint8_t Y1[8];
  uint8_t Y1ns[8];
  uint8_t Y1s[8];
  uint8_t Yp1ns[8];
  uint8_t Yp1s[8];
  uint8_t Yp1[8];
  uint8_t C1[8];
  uint8_t C2[8];
  memcpy(M1, message, 8);
  memcpy(M2, message + 8, s);
  set_stage_in_tweak(tweak, (0x8 << 4));
  set_block_number_in_tweak(tweak, l);
  set_tweak_in_tweakey(tweakey, tweak);
  if (isDirect)
    aesTweakEncrypt(192, M1, tweakey, X1);
  else
    aesTweakDecrypt(192, M1, tweakey, X1);
  memcpy(X1ns, X1, 8 - s);
  memcpy(X1s, X1 + 8 - s, s);
  memcpy(Xp1ns, X1ns, 8 - s);
  Xp1ns[8 - s - 1] ^= 1;
  mix(X1s, M2, s, Xp1s, X2);
  memcpy(Xp1, Xp1ns, 8 - s);
  memcpy(Xp1 + 8 - s, Xp1s, s);
  set_stage_in_tweak(tweak, (0x9 << 4));
  set_tweak_in_tweakey(tweakey, tweak);
  if (isDirect)
    aesTweakEncrypt(192, Xp1, tweakey, Y1);
  else
    aesTweakDecrypt(192, Xp1, tweakey, Y1);
  memcpy(Y1ns, Y1, 8 - s);
  memcpy(Y1s, Y1 + 8 - s, s);
  memcpy(Yp1ns, Y1ns, 8 - s);
  Yp1ns[8 - s - 1] ^= 1;
  mix(Y1s, X2, s, Yp1s, C2);
  memcpy(Yp1, Yp1ns, 8 - s);
  memcpy(Yp1 + 8 - s, Yp1s, s);
  set_stage_in_tweak(tweak, (0x8 << 4));
  set_tweak_in_tweakey(tweakey, tweak);
  if (isDirect)
    aesTweakEncrypt(192, Yp1, tweakey, C1);
  else
    aesTweakDecrypt(192, Yp1, tweakey, C1);
  memcpy(cipher, C1, 8);
  memcpy(cipher + 8, C2, s);
}
```