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

```asm
<transformation_D2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rsi
  movl   $0x20,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  sub    $0x1,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  mov    %rax,%r10
  mov    $0x0,%r11d
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L357:
  cmp    %rdx,%rsp
  je     L92
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L357
L92:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L77
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L77:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x10(%rbp)
  movb   $0x0,-0x23(%rbp)
  movb   $0x0,-0x22(%rbp)
  movb   $0x0,-0x21(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L224
L190:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x50(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  mov    %edx,%ecx
  xor    %eax,%ecx
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
  addl   $0x1,-0x20(%rbp)
L224:
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cmp    %eax,-0x20(%rbp)
  jl     L190
  movl   $0x0,-0x20(%rbp)
  jmp    L287
L324:
  cmpl   $0x0,-0x20(%rbp)
  jne    L240
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  add    %eax,%eax
  jmp    L313
L240:
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  movzbl %al,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x10(%rbp),%rdx
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x7,%al
  or     %ecx,%eax
L313:
  mov    %al,-0x23(%rbp)
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  sub    $0x1,%eax
  cmp    %eax,-0x20(%rbp)
  jne    L175
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x3,%al
  jmp    L126
L175:
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x3,%al
  mov    %eax,%ecx
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  mov    -0x10(%rbp),%rdx
  cltq
  movzbl (%rdx,%rax,1),%eax
  movzbl %al,%eax
  shl    $0x5,%eax
  or     %ecx,%eax
L126:
  mov    %al,-0x22(%rbp)
  movzbl -0x23(%rbp),%eax
  xor    -0x22(%rbp),%al
  mov    %al,-0x21(%rbp)
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  mov    %edx,%ecx
  xor    %eax,%ecx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  xor    %ecx,%eax
  mov    -0x20(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x38(%rbp),%rdx
  add    %rcx,%rdx
  xor    -0x21(%rbp),%al
  mov    %al,(%rdx)
  addl   $0x1,-0x20(%rbp)
L287:
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cmp    %eax,-0x20(%rbp)
  jl     L324
  movl   $0x0,-0x20(%rbp)
  jmp    L162
L0:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  mov    %edx,%ecx
  xor    %eax,%ecx
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
  addl   $0x1,-0x20(%rbp)
L162:
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cmp    %eax,-0x20(%rbp)
  jl     L0
  movl   $0x0,-0x20(%rbp)
  jmp    L295
L353:
  cmpl   $0x0,-0x20(%rbp)
  jne    L263
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  add    %eax,%eax
  jmp    L185
L263:
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  movzbl %al,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x10(%rbp),%rdx
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x7,%al
  or     %ecx,%eax
L185:
  mov    %al,-0x23(%rbp)
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  sub    $0x1,%eax
  cmp    %eax,-0x20(%rbp)
  jne    L151
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x3,%al
  jmp    L277
L151:
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x3,%al
  mov    %eax,%ecx
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  mov    -0x10(%rbp),%rdx
  cltq
  movzbl (%rdx,%rax,1),%eax
  movzbl %al,%eax
  shl    $0x5,%eax
  or     %ecx,%eax
L277:
  mov    %al,-0x22(%rbp)
  movzbl -0x23(%rbp),%eax
  xor    -0x22(%rbp),%al
  mov    %al,-0x21(%rbp)
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x50(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  mov    %edx,%ecx
  xor    %eax,%ecx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  xor    %ecx,%eax
  mov    -0x20(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x40(%rbp),%rdx
  add    %rcx,%rdx
  xor    -0x21(%rbp),%al
  mov    %al,(%rdx)
  addl   $0x1,-0x20(%rbp)
L295:
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cmp    %eax,-0x20(%rbp)
  jl     L353
  movl   $0x0,-0x20(%rbp)
  jmp    L61
L109:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x40(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  mov    %edx,%ecx
  xor    %eax,%ecx
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
  addl   $0x1,-0x20(%rbp)
L61:
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cmp    %eax,-0x20(%rbp)
  jl     L109
  movl   $0x0,-0x20(%rbp)
  jmp    L177
L122:
  cmpl   $0x0,-0x20(%rbp)
  jne    L156
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  add    %eax,%eax
  jmp    L283
L156:
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  movzbl %al,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x10(%rbp),%rdx
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x7,%al
  or     %ecx,%eax
L283:
  mov    %al,-0x23(%rbp)
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  sub    $0x1,%eax
  cmp    %eax,-0x20(%rbp)
  jne    L265
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x3,%al
  jmp    L89
L265:
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x3,%al
  mov    %eax,%ecx
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  mov    -0x10(%rbp),%rdx
  cltq
  movzbl (%rdx,%rax,1),%eax
  movzbl %al,%eax
  shl    $0x5,%eax
  or     %ecx,%eax
L89:
  mov    %al,-0x22(%rbp)
  movzbl -0x23(%rbp),%eax
  xor    -0x22(%rbp),%al
  mov    %al,-0x21(%rbp)
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  mov    %edx,%ecx
  xor    %eax,%ecx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  xor    %ecx,%eax
  mov    -0x20(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x48(%rbp),%rdx
  add    %rcx,%rdx
  xor    -0x21(%rbp),%al
  mov    %al,(%rdx)
  addl   $0x1,-0x20(%rbp)
L177:
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cmp    %eax,-0x20(%rbp)
  jl     L122
  movl   $0x0,-0x20(%rbp)
  jmp    L120
L31:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  mov    %edx,%ecx
  xor    %eax,%ecx
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
  addl   $0x1,-0x20(%rbp)
L120:
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cmp    %eax,-0x20(%rbp)
  jl     L31
  movl   $0x0,-0x20(%rbp)
  jmp    L21
L350:
  cmpl   $0x0,-0x20(%rbp)
  jne    L125
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  add    %eax,%eax
  jmp    L355
L125:
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  movzbl %al,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x10(%rbp),%rdx
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x7,%al
  or     %ecx,%eax
L355:
  mov    %al,-0x23(%rbp)
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  sub    $0x1,%eax
  cmp    %eax,-0x20(%rbp)
  jne    L76
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x3,%al
  jmp    L8
L76:
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  shr    $0x3,%al
  mov    %eax,%ecx
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  mov    -0x10(%rbp),%rdx
  cltq
  movzbl (%rdx,%rax,1),%eax
  movzbl %al,%eax
  shl    $0x5,%eax
  or     %ecx,%eax
L8:
  mov    %al,-0x22(%rbp)
  movzbl -0x23(%rbp),%eax
  xor    -0x22(%rbp),%al
  mov    %al,-0x21(%rbp)
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x40(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  mov    %edx,%ecx
  xor    %eax,%ecx
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  xor    %ecx,%eax
  mov    -0x20(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x50(%rbp),%rdx
  add    %rcx,%rdx
  xor    -0x21(%rbp),%al
  mov    %al,(%rdx)
  addl   $0x1,-0x20(%rbp)
L21:
  mov    -0x1c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cmp    %eax,-0x20(%rbp)
  jl     L350
  mov    %rsi,%rsp
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L160
  call   <__stack_chk_fail@plt>
L160:
  leave
  ret
```

assistant: ```c
void transformation_D2(unsigned char *x0, unsigned char *x1, unsigned char *x2, unsigned char *x3) {
  const int LEN = 32;
  unsigned char temp[LEN / 8];
  int i;
  unsigned char extL = 0, extR = 0, L = 0;
  for (i = 0; i < LEN / 8; i++)
    temp[i] = x1[i] ^ x3[i];
  for (i = 0; i < LEN / 8; i++) {
    extL = i == 0 ? temp[0] << 1 : (temp[i] << 1) | (temp[i - 1] >> 7);
    extR = i == LEN / 8 - 1 ? temp[i] >> 3 : (temp[i] >> 3) | (temp[i + 1] << 5);
    L = extL ^ extR;
    x0[i] = x0[i] ^ x2[i] ^ x3[i] ^ L;
  }
  for (i = 0; i < LEN / 8; i++)
    temp[i] = x2[i] ^ x0[i];
  for (i = 0; i < LEN / 8; i++) {
    extL = i == 0 ? temp[0] << 1 : (temp[i] << 1) | (temp[i - 1] >> 7);
    extR = i == LEN / 8 - 1 ? temp[i] >> 3 : (temp[i] >> 3) | (temp[i + 1] << 5);
    L = extL ^ extR;
    x1[i] = x1[i] ^ x3[i] ^ x0[i] ^ L;
  }
  for (i = 0; i < LEN / 8; i++)
    temp[i] = x3[i] ^ x1[i];
  for (i = 0; i < LEN / 8; i++) {
    extL = i == 0 ? temp[0] << 1 : (temp[i] << 1) | (temp[i - 1] >> 7);
    extR = i == LEN / 8 - 1 ? temp[i] >> 3 : (temp[i] >> 3) | (temp[i + 1] << 5);
    L = extL ^ extR;
    x2[i] = x2[i] ^ x0[i] ^ x1[i] ^ L;
  }
  for (i = 0; i < LEN / 8; i++)
    temp[i] = x0[i] ^ x2[i];
  for (i = 0; i < LEN / 8; i++) {
    extL = i == 0 ? temp[0] << 1 : (temp[i] << 1) | (temp[i - 1] >> 7);
    extR = i == LEN / 8 - 1 ? temp[i] >> 3 : (temp[i] >> 3) | (temp[i + 1] << 5);
    L = extL ^ extR;
    x3[i] = x3[i] ^ x1[i] ^ x2[i] ^ L;
  }
}
```