user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<xor_chacha_sidm>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%r13
  mov    %rdx,%r12
  mov    %rcx,0x10(%rsp)
  mov    %r8,%r14
  mov    %r9,%r15
  push   $0xd
  push   $0xc
  push   $0xf
  push   $0xe
  push   $0x9
  push   $0x8
  push   $0xb
  push   $0xa
  push   $0x5
  push   $0x4
  mov    $0x7,%r9d
  mov    $0x6,%r8d
  mov    $0x1,%ecx
  mov    $0x0,%edx
  mov    $0x3,%esi
  mov    $0x2,%edi
  call   <_mm_setr_epi8@plt>
  mov    %eax,0x58(%rsp)
  add    $0x50,%rsp
  push   $0xe
  push   $0xd
  push   $0xc
  push   $0xf
  push   $0xa
  push   $0x9
  push   $0x8
  push   $0xb
  push   $0x6
  push   $0x5
  mov    $0x4,%r9d
  mov    $0x7,%r8d
  mov    $0x2,%ecx
  mov    $0x1,%edx
  mov    $0x0,%esi
  mov    $0x3,%edi
  call   <_mm_setr_epi8@plt>
  mov    %eax,0x5c(%rsp)
  add    $0x50,%rsp
  mov    (%r14),%esi
  mov    %rbx,0x18(%rsp)
  mov    (%rbx),%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%ebp
  mov    (%r15),%esi
  mov    %r13,0x20(%rsp)
  mov    0x0(%r13),%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%ebx
  mov    0x70(%rsp),%rax
  mov    (%rax),%esi
  mov    %r12,0x28(%rsp)
  mov    (%r12),%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%r13d
  mov    0x78(%rsp),%rax
  mov    (%rax),%esi
  mov    0x10(%rsp),%rax
  mov    (%rax),%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%r12d
  mov    (%r14),%esi
  mov    0x18(%rsp),%r14
  mov    (%r14),%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,(%r14)
  mov    (%r15),%esi
  mov    0x20(%rsp),%r14
  mov    (%r14),%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,(%r14)
  mov    0x70(%rsp),%rdx
  mov    (%rdx),%esi
  mov    0x28(%rsp),%r14
  mov    (%r14),%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,(%r14)
  mov    0x78(%rsp),%rcx
  mov    (%rcx),%esi
  mov    0x10(%rsp),%r14
  mov    (%r14),%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,(%r14)
  cmpl   $0x0,0x80(%rsp)
  jle    L16
  mov    $0x0,%r14d
L7:
  mov    %ebx,%esi
  mov    %ebp,%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,%ebp
  mov    %eax,%esi
  mov    %r12d,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%edi
  mov    0x8(%rsp),%esi
  call   <_mm_shuffle_epi8@plt>
  mov    %eax,%r15d
  mov    %eax,%esi
  mov    %r13d,%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,%r12d
  mov    %eax,%esi
  mov    %ebx,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%ebx
  mov    $0xc,%esi
  mov    %eax,%edi
  call   <_mm_slli_epi32@plt>
  mov    %eax,%r13d
  mov    $0x14,%esi
  mov    %ebx,%edi
  call   <_mm_srli_epi32@plt>
  mov    %eax,%esi
  mov    %r13d,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%ebx
  mov    %eax,%esi
  mov    %ebp,%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,%ebp
  mov    %eax,%esi
  mov    %r15d,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%edi
  mov    0xc(%rsp),%esi
  call   <_mm_shuffle_epi8@plt>
  mov    %eax,%r13d
  mov    %eax,%esi
  mov    %r12d,%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,%r12d
  mov    %eax,%esi
  mov    %ebx,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%ebx
  mov    $0x7,%esi
  mov    %eax,%edi
  call   <_mm_slli_epi32@plt>
  mov    %eax,%r15d
  mov    $0x19,%esi
  mov    %ebx,%edi
  call   <_mm_srli_epi32@plt>
  mov    %eax,%esi
  mov    %r15d,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%edi
  mov    $0x39,%esi
  call   <_mm_shuffle_epi32@plt>
  mov    %eax,%ebx
  mov    $0x4e,%esi
  mov    %r12d,%edi
  call   <_mm_shuffle_epi32@plt>
  mov    %eax,%r15d
  mov    $0x93,%esi
  mov    %r13d,%edi
  call   <_mm_shuffle_epi32@plt>
  mov    %eax,%r12d
  mov    %ebx,%esi
  mov    %ebp,%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,%ebp
  mov    %eax,%esi
  mov    %r12d,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%edi
  mov    0x8(%rsp),%esi
  call   <_mm_shuffle_epi8@plt>
  mov    %eax,%r12d
  mov    %eax,%esi
  mov    %r15d,%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,%r13d
  mov    %eax,%esi
  mov    %ebx,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%ebx
  mov    $0xc,%esi
  mov    %eax,%edi
  call   <_mm_slli_epi32@plt>
  mov    %eax,%r15d
  mov    $0x14,%esi
  mov    %ebx,%edi
  call   <_mm_srli_epi32@plt>
  mov    %eax,%esi
  mov    %r15d,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%ebx
  mov    %eax,%esi
  mov    %ebp,%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,%ebp
  mov    %eax,%esi
  mov    %r12d,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%edi
  mov    0xc(%rsp),%esi
  call   <_mm_shuffle_epi8@plt>
  mov    %eax,%r12d
  mov    %eax,%esi
  mov    %r13d,%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,%r13d
  mov    %eax,%esi
  mov    %ebx,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%ebx
  mov    $0x7,%esi
  mov    %eax,%edi
  call   <_mm_slli_epi32@plt>
  mov    %eax,%r15d
  mov    $0x19,%esi
  mov    %ebx,%edi
  call   <_mm_srli_epi32@plt>
  mov    %eax,%esi
  mov    %r15d,%edi
  call   <_mm_xor_si128@plt>
  mov    %eax,%edi
  mov    $0x93,%esi
  call   <_mm_shuffle_epi32@plt>
  mov    %eax,%ebx
  mov    $0x4e,%esi
  mov    %r13d,%edi
  call   <_mm_shuffle_epi32@plt>
  mov    %eax,%r13d
  mov    $0x39,%esi
  mov    %r12d,%edi
  call   <_mm_shuffle_epi32@plt>
  mov    %eax,%r12d
  add    $0x1,%r14d
  cmp    %r14d,0x80(%rsp)
  jne    L7
L16:
  mov    %ebp,%esi
  mov    0x18(%rsp),%r14
  mov    (%r14),%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,(%r14)
  mov    %ebx,%esi
  mov    0x20(%rsp),%rbx
  mov    (%rbx),%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,(%rbx)
  mov    %r13d,%esi
  mov    0x28(%rsp),%rbx
  mov    (%rbx),%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,(%rbx)
  mov    %r12d,%esi
  mov    0x10(%rsp),%rbx
  mov    (%rbx),%edi
  call   <_mm_add_epi32@plt>
  mov    %eax,(%rbx)
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void xor_chacha_sidm(__m128i *calc_16, __m128i *calc_12, __m128i *calc_8, __m128i *calc_7, __m128i *calc_1, __m128i *calc_2, __m128i *calc_3, __m128i *calc_4, uint32_t double_rounds) {
  int i;
  __m128i _calc;
  __m128i _rotate_16 = _mm_setr_epi8(2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13);
  __m128i _rotate_8 = _mm_setr_epi8(3, 0, 1, 2, 7, 4, 5, 6, 11, 8, 9, 10, 15, 12, 13, 14);
  __m128i rowa = _mm_xor_si128(*calc_16, *calc_1);
  ;
  __m128i rowb = _mm_xor_si128(*calc_12, *calc_2);
  ;
  __m128i rowc = _mm_xor_si128(*calc_8, *calc_3);
  ;
  __m128i rowd = _mm_xor_si128(*calc_7, *calc_4);
  ;
  *calc_16 = _mm_xor_si128(*calc_16, *calc_1);
  *calc_12 = _mm_xor_si128(*calc_12, *calc_2);
  *calc_8 = _mm_xor_si128(*calc_8, *calc_3);
  *calc_7 = _mm_xor_si128(*calc_7, *calc_4);
  for (i = 0; i < double_rounds; i++) {
    rowa = _mm_add_epi32(rowa, rowb);
    rowd = _mm_xor_si128(rowd, rowa);
    rowd = _mm_shuffle_epi8(rowd, _rotate_16);
    rowc = _mm_add_epi32(rowc, rowd);
    _calc = _mm_xor_si128(rowb, rowc);
    rowb = _mm_slli_epi32(_calc, (12));
    _calc = _mm_srli_epi32(_calc, (32 - 12));
    rowb = _mm_xor_si128(rowb, _calc);
    rowa = _mm_add_epi32(rowa, rowb);
    rowd = _mm_xor_si128(rowd, rowa);
    rowd = _mm_shuffle_epi8(rowd, _rotate_8);
    rowc = _mm_add_epi32(rowc, rowd);
    _calc = _mm_xor_si128(rowb, rowc);
    rowb = _mm_slli_epi32(_calc, (7));
    _calc = _mm_srli_epi32(_calc, (32 - 7));
    rowb = _mm_xor_si128(rowb, _calc);
    rowb = _mm_shuffle_epi32(rowb, 0x39);
    rowc = _mm_shuffle_epi32(rowc, 0x4e);
    rowd = _mm_shuffle_epi32(rowd, 0x93);
    rowa = _mm_add_epi32(rowa, rowb);
    rowd = _mm_xor_si128(rowd, rowa);
    rowd = _mm_shuffle_epi8(rowd, _rotate_16);
    rowc = _mm_add_epi32(rowc, rowd);
    _calc = _mm_xor_si128(rowb, rowc);
    rowb = _mm_slli_epi32(_calc, (12));
    _calc = _mm_srli_epi32(_calc, (32 - 12));
    rowb = _mm_xor_si128(rowb, _calc);
    rowa = _mm_add_epi32(rowa, rowb);
    rowd = _mm_xor_si128(rowd, rowa);
    rowd = _mm_shuffle_epi8(rowd, _rotate_8);
    rowc = _mm_add_epi32(rowc, rowd);
    _calc = _mm_xor_si128(rowb, rowc);
    rowb = _mm_slli_epi32(_calc, (7));
    _calc = _mm_srli_epi32(_calc, (32 - 7));
    rowb = _mm_xor_si128(rowb, _calc);
    rowb = _mm_shuffle_epi32(rowb, 0x93);
    rowc = _mm_shuffle_epi32(rowc, 0x4e);
    rowd = _mm_shuffle_epi32(rowd, 0x39);
  }
  *calc_16 = _mm_add_epi32(*calc_16, rowa);
  *calc_12 = _mm_add_epi32(*calc_12, rowb);
  *calc_8 = _mm_add_epi32(*calc_8, rowc);
  *calc_7 = _mm_add_epi32(*calc_7, rowd);
}
```