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

```asm
<cvmx_nand_compute_boot_ecc>:
  endbr64
  push   %r15
  lea    0x100(%rdi),%r8
  xor    %edx,%edx
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,-0x20(%rsp)
  mov    %rsi,-0x8(%rsp)
  mov    %rdi,%rsi
  nopl   0x0(%rax)
L201:
  movzbl (%rsi),%ecx
  add    $0x1,%rsi
  mov    %ecx,%eax
  mov    %ecx,%edi
  shr    $0x2,%al
  shr    $0x4,%dil
  xor    %edi,%eax
  xor    %ecx,%eax
  shr    $0x6,%cl
  xor    %ecx,%eax
  and    $0x1,%eax
  xor    %eax,%edx
  cmp    %rsi,%r8
  jne    L201
  mov    -0x20(%rsp),%rsi
  nopw   0x0(%rax,%rax,1)
L50:
  movzbl (%rsi),%ecx
  add    $0x1,%rsi
  mov    %ecx,%eax
  mov    %ecx,%edi
  shr    %al
  shr    $0x4,%dil
  xor    %edi,%eax
  xor    %ecx,%eax
  shr    $0x5,%cl
  xor    %ecx,%eax
  add    %eax,%eax
  and    $0x2,%eax
  xor    %eax,%edx
  cmp    %rsi,%r8
  jne    L50
  mov    -0x20(%rsp),%rsi
  nopl   0x0(%rax,%rax,1)
L248:
  movzbl (%rsi),%ecx
  add    $0x1,%rsi
  mov    %ecx,%eax
  mov    %ecx,%edi
  shr    %al
  shr    $0x2,%dil
  xor    %edi,%eax
  xor    %ecx,%eax
  shr    $0x3,%cl
  xor    %ecx,%eax
  shl    $0x2,%eax
  and    $0x4,%eax
  xor    %eax,%edx
  cmp    %rsi,%r8
  jne    L248
  mov    -0x20(%rsp),%rcx
  nopl   0x0(%rax)
L293:
  movzbl (%rcx),%esi
  add    $0x2,%rcx
  mov    %esi,%eax
  mov    %esi,%edi
  shr    $0x2,%dil
  shr    %al
  xor    %edi,%eax
  mov    %esi,%edi
  xor    %esi,%eax
  shr    $0x3,%dil
  xor    %edi,%eax
  mov    %esi,%edi
  shr    $0x4,%dil
  xor    %edi,%eax
  mov    %esi,%edi
  shr    $0x5,%dil
  xor    %edi,%eax
  mov    %esi,%edi
  shr    $0x7,%sil
  shr    $0x6,%dil
  xor    %edi,%eax
  xor    %esi,%eax
  shl    $0x3,%eax
  and    $0x8,%eax
  xor    %eax,%edx
  cmp    %rcx,%r8
  jne    L293
  mov    -0x20(%rsp),%r9
  xor    %esi,%esi
  lea    0x2(%r9),%rdi
  nopl   0x0(%rax,%rax,1)
L6:
  lea    (%r9,%rsi,1),%rcx
L259:
  movzbl (%rcx),%r10d
  add    $0x1,%rcx
  mov    %r10d,%eax
  mov    %r10d,%r11d
  shr    $0x2,%r11b
  shr    %al
  xor    %r11d,%eax
  mov    %r10d,%r11d
  xor    %r10d,%eax
  shr    $0x3,%r11b
  xor    %r11d,%eax
  mov    %r10d,%r11d
  shr    $0x4,%r11b
  xor    %r11d,%eax
  mov    %r10d,%r11d
  shr    $0x5,%r11b
  xor    %r11d,%eax
  mov    %r10d,%r11d
  shr    $0x7,%r10b
  shr    $0x6,%r11b
  xor    %r11d,%eax
  xor    %r10d,%eax
  shl    $0x4,%eax
  and    $0x10,%eax
  xor    %eax,%edx
  cmp    %rcx,%rdi
  jne    L259
  add    $0x4,%rsi
  add    $0x4,%rdi
  cmp    $0x100,%rsi
  jne    L6
  mov    -0x20(%rsp),%rax
  lea    0x104(%rax),%rdi
  lea    0x4(%rax),%r10
  mov    %rdi,-0x18(%rsp)
  mov    %r10,%rsi
  nopl   0x0(%rax,%rax,1)
L7:
  lea    -0x4(%rsi),%rcx
L283:
  movzbl (%rcx),%r9d
  add    $0x1,%rcx
  mov    %r9d,%eax
  mov    %r9d,%r11d
  shr    $0x2,%r11b
  shr    %al
  xor    %r11d,%eax
  mov    %r9d,%r11d
  xor    %r9d,%eax
  shr    $0x3,%r11b
  xor    %r11d,%eax
  mov    %r9d,%r11d
  shr    $0x4,%r11b
  xor    %r11d,%eax
  mov    %r9d,%r11d
  shr    $0x5,%r11b
  xor    %r11d,%eax
  mov    %r9d,%r11d
  shr    $0x7,%r9b
  shr    $0x6,%r11b
  xor    %r11d,%eax
  xor    %r9d,%eax
  shl    $0x5,%eax
  and    $0x20,%eax
  xor    %eax,%edx
  cmp    %rcx,%rsi
  jne    L283
  add    $0x8,%rsi
  cmp    %rsi,%rdi
  jne    L7
  mov    -0x20(%rsp),%rax
  lea    0x108(%rax),%rdi
  lea    0x8(%rax),%r11
  mov    %rdi,-0x10(%rsp)
  mov    %r11,%rsi
  nopl   0x0(%rax,%rax,1)
L21:
  lea    -0x8(%rsi),%rcx
  nopl   0x0(%rax)
L237:
  movzbl (%rcx),%r9d
  add    $0x1,%rcx
  mov    %r9d,%eax
  mov    %r9d,%ebx
  shr    $0x2,%bl
  shr    %al
  xor    %ebx,%eax
  mov    %r9d,%ebx
  xor    %r9d,%eax
  shr    $0x3,%bl
  xor    %ebx,%eax
  mov    %r9d,%ebx
  shr    $0x4,%bl
  xor    %ebx,%eax
  mov    %r9d,%ebx
  shr    $0x5,%bl
  xor    %ebx,%eax
  mov    %r9d,%ebx
  shr    $0x7,%r9b
  shr    $0x6,%bl
  xor    %ebx,%eax
  xor    %r9d,%eax
  shl    $0x6,%eax
  and    $0x40,%eax
  xor    %eax,%edx
  cmp    %rcx,%rsi
  jne    L237
  add    $0x10,%rsi
  cmp    %rsi,%rdi
  jne    L21
  mov    -0x20(%rsp),%rax
  lea    0x10(%rax),%rsi
  lea    0x110(%rax),%rdi
  nopl   (%rax)
L227:
  lea    -0x10(%rsi),%rcx
  nopl   0x0(%rax)
L58:
  movzbl (%rcx),%r9d
  add    $0x1,%rcx
  mov    %r9d,%eax
  mov    %r9d,%ebx
  shr    $0x2,%bl
  shr    %al
  xor    %ebx,%eax
  mov    %r9d,%ebx
  xor    %r9d,%eax
  shr    $0x3,%bl
  xor    %ebx,%eax
  mov    %r9d,%ebx
  shr    $0x4,%bl
  xor    %ebx,%eax
  mov    %r9d,%ebx
  shr    $0x5,%bl
  xor    %ebx,%eax
  mov    %r9d,%ebx
  shr    $0x7,%r9b
  shr    $0x6,%bl
  xor    %ebx,%eax
  xor    %r9d,%eax
  shl    $0x7,%eax
  xor    %eax,%edx
  cmp    %rcx,%rsi
  jne    L58
  add    $0x20,%rsi
  cmp    %rsi,%rdi
  jne    L227
  mov    -0x20(%rsp),%rax
  xor    %ebp,%ebp
  xor    %esi,%esi
  lea    0x20(%rax),%rbx
  mov    %rbx,%r9
L198:
  lea    -0x20(%r9),%rcx
  cs nopw 0x0(%rax,%rax,1)
L250:
  movzbl (%rcx),%edi
  add    $0x1,%rcx
  mov    %edi,%eax
  mov    %edi,%r12d
  shr    $0x2,%r12b
  shr    %al
  xor    %r12d,%eax
  mov    %edi,%r12d
  xor    %edi,%eax
  shr    $0x3,%r12b
  xor    %r12d,%eax
  mov    %edi,%r12d
  shr    $0x4,%r12b
  xor    %r12d,%eax
  mov    %edi,%r12d
  shr    $0x5,%r12b
  xor    %r12d,%eax
  mov    %edi,%r12d
  shr    $0x7,%dil
  shr    $0x6,%r12b
  xor    %r12d,%eax
  xor    %edi,%eax
  and    $0x1,%eax
  xor    %eax,%esi
  cmp    %rcx,%r9
  jne    L250
  add    $0x40,%rbp
  add    $0x40,%r9
  cmp    $0x100,%rbp
  jne    L198
  mov    -0x20(%rsp),%rax
  xor    %r12d,%r12d
  lea    0x40(%rax),%rbp
  mov    %rbp,%r9
L9:
  lea    -0x40(%r9),%rcx
  nopl   0x0(%rax,%rax,1)
L292:
  movzbl (%rcx),%edi
  add    $0x1,%rcx
  mov    %edi,%eax
  mov    %edi,%r13d
  shr    $0x2,%r13b
  shr    %al
  xor    %r13d,%eax
  mov    %edi,%r13d
  xor    %edi,%eax
  shr    $0x3,%r13b
  xor    %r13d,%eax
  mov    %edi,%r13d
  shr    $0x4,%r13b
  xor    %r13d,%eax
  mov    %edi,%r13d
  shr    $0x5,%r13b
  xor    %r13d,%eax
  mov    %edi,%r13d
  shr    $0x7,%dil
  shr    $0x6,%r13b
  xor    %r13d,%eax
  xor    %edi,%eax
  add    %eax,%eax
  and    $0x2,%eax
  xor    %eax,%esi
  cmp    %rcx,%r9
  jne    L292
  sub    $0xffffffffffffff80,%r12
  sub    $0xffffffffffffff80,%r9
  cmp    $0x100,%r12
  jne    L9
  mov    -0x20(%rsp),%rdi
  lea    0x80(%rdi),%r9
  mov    %r9,%r12
  nopl   0x0(%rax)
L318:
  movzbl (%rdi),%ecx
  add    $0x1,%rdi
  mov    %ecx,%eax
  mov    %ecx,%r13d
  shr    $0x2,%r13b
  shr    %al
  xor    %r13d,%eax
  mov    %ecx,%r13d
  xor    %ecx,%eax
  shr    $0x3,%r13b
  xor    %r13d,%eax
  mov    %ecx,%r13d
  shr    $0x4,%r13b
  xor    %r13d,%eax
  mov    %ecx,%r13d
  shr    $0x5,%r13b
  xor    %r13d,%eax
  mov    %ecx,%r13d
  shr    $0x7,%cl
  shr    $0x6,%r13b
  xor    %r13d,%eax
  xor    %ecx,%eax
  shl    $0x2,%eax
  and    $0x4,%eax
  xor    %eax,%esi
  cmp    %rdi,%r9
  jne    L318
  mov    -0x20(%rsp),%rdi
  cs nopw 0x0(%rax,%rax,1)
L173:
  movzbl (%rdi),%ecx
  add    $0x1,%rdi
  mov    %ecx,%eax
  mov    %ecx,%r13d
  shr    $0x3,%r13b
  shr    %al
  xor    %r13d,%eax
  mov    %ecx,%r13d
  shr    $0x7,%cl
  shr    $0x5,%r13b
  xor    %r13d,%eax
  xor    %ecx,%eax
  shl    $0x5,%eax
  and    $0x20,%eax
  xor    %eax,%esi
  cmp    %rdi,%r8
  jne    L173
  mov    -0x20(%rsp),%rdi
  cs nopw 0x0(%rax,%rax,1)
L316:
  movzbl (%rdi),%ecx
  add    $0x1,%rdi
  mov    %ecx,%eax
  mov    %ecx,%r13d
  shr    $0x3,%r13b
  shr    $0x2,%al
  xor    %r13d,%eax
  mov    %ecx,%r13d
  shr    $0x7,%cl
  shr    $0x6,%r13b
  xor    %r13d,%eax
  xor    %ecx,%eax
  shl    $0x6,%eax
  and    $0x40,%eax
  xor    %eax,%esi
  cmp    %rdi,%r8
  jne    L316
  mov    -0x20(%rsp),%rdi
  nopw   0x0(%rax,%rax,1)
L341:
  movzbl (%rdi),%ecx
  add    $0x1,%rdi
  mov    %ecx,%eax
  mov    %ecx,%r13d
  shr    $0x5,%r13b
  shr    $0x4,%al
  xor    %r13d,%eax
  mov    %ecx,%r13d
  shr    $0x7,%cl
  shr    $0x6,%r13b
  xor    %r13d,%eax
  xor    %ecx,%eax
  shl    $0x7,%eax
  xor    %eax,%esi
  cmp    %rdi,%r8
  jne    L341
  mov    -0x20(%rsp),%rax
  lea    0x1(%rax),%r13
  lea    0x101(%rax),%r14
  xor    %eax,%eax
  nopl   0x0(%rax)
L228:
  movzbl 0x0(%r13),%edi
  add    $0x2,%r13
  mov    %edi,%ecx
  mov    %edi,%r15d
  shr    $0x2,%r15b
  shr    %cl
  xor    %r15d,%ecx
  mov    %edi,%r15d
  xor    %edi,%ecx
  shr    $0x3,%r15b
  xor    %r15d,%ecx
  mov    %edi,%r15d
  shr    $0x4,%r15b
  xor    %r15d,%ecx
  mov    %edi,%r15d
  shr    $0x5,%r15b
  xor    %r15d,%ecx
  mov    %edi,%r15d
  shr    $0x7,%dil
  shr    $0x6,%r15b
  xor    %r15d,%ecx
  xor    %edi,%ecx
  and    $0x1,%ecx
  xor    %ecx,%eax
  cmp    %r13,%r14
  jne    L228
  mov    -0x20(%rsp),%r14
  jmp    L257
L165:
  add    $0x4,%r14
  cmp    %r14,%r8
  je     L305
L257:
  mov    $0x2,%edi
L161:
  movzbl (%r14,%rdi,1),%r13d
  mov    %r13d,%ecx
  mov    %r13d,%r15d
  shr    $0x2,%r15b
  shr    %cl
  xor    %r15d,%ecx
  mov    %r13d,%r15d
  xor    %r13d,%ecx
  shr    $0x3,%r15b
  xor    %r15d,%ecx
  mov    %r13d,%r15d
  shr    $0x4,%r15b
  xor    %r15d,%ecx
  mov    %r13d,%r15d
  shr    $0x5,%r15b
  xor    %r15d,%ecx
  mov    %r13d,%r15d
  shr    $0x7,%r13b
  shr    $0x6,%r15b
  xor    %r15d,%ecx
  xor    %r13d,%ecx
  add    %ecx,%ecx
  and    $0x2,%ecx
  xor    %ecx,%eax
  cmp    $0x3,%rdi
  je     L165
  mov    $0x3,%edi
  jmp    L161
L305:
  mov    -0x18(%rsp),%r13
  nopl   (%rax)
L264:
  lea    -0x4(%r10),%rdi
L300:
  movzbl 0x4(%rdi),%r14d
  add    $0x1,%rdi
  mov    %r14d,%ecx
  mov    %r14d,%r15d
  shr    $0x2,%r15b
  shr    %cl
  xor    %r15d,%ecx
  mov    %r14d,%r15d
  xor    %r14d,%ecx
  shr    $0x3,%r15b
  xor    %r15d,%ecx
  mov    %r14d,%r15d
  shr    $0x4,%r15b
  xor    %r15d,%ecx
  mov    %r14d,%r15d
  shr    $0x5,%r15b
  xor    %r15d,%ecx
  mov    %r14d,%r15d
  shr    $0x7,%r14b
  shr    $0x6,%r15b
  xor    %r15d,%ecx
  xor    %r14d,%ecx
  shl    $0x2,%ecx
  and    $0x4,%ecx
  xor    %ecx,%eax
  cmp    %rdi,%r10
  jne    L300
  add    $0x8,%r10
  cmp    %r10,%r13
  jne    L264
  mov    -0x10(%rsp),%r10
  nopl   0x0(%rax)
L297:
  lea    -0x8(%r11),%rdi
  nopl   0x0(%rax)
L62:
  movzbl 0x8(%rdi),%r13d
  add    $0x1,%rdi
  mov    %r13d,%ecx
  mov    %r13d,%r14d
  shr    $0x2,%r14b
  shr    %cl
  xor    %r14d,%ecx
  mov    %r13d,%r14d
  xor    %r13d,%ecx
  shr    $0x3,%r14b
  xor    %r14d,%ecx
  mov    %r13d,%r14d
  shr    $0x4,%r14b
  xor    %r14d,%ecx
  mov    %r13d,%r14d
  shr    $0x5,%r14b
  xor    %r14d,%ecx
  mov    %r13d,%r14d
  shr    $0x7,%r13b
  shr    $0x6,%r14b
  xor    %r14d,%ecx
  xor    %r13d,%ecx
  shl    $0x3,%ecx
  and    $0x8,%ecx
  xor    %ecx,%eax
  cmp    %rdi,%r11
  jne    L62
  add    $0x10,%r11
  cmp    %r11,%r10
  jne    L297
  mov    -0x20(%rsp),%r10
  add    $0x120,%r10
  nopl   0x0(%rax)
L212:
  lea    -0x10(%rbx),%rdi
  nopl   0x0(%rax)
L90:
  movzbl (%rdi),%r11d
  add    $0x1,%rdi
  mov    %r11d,%ecx
  mov    %r11d,%r13d
  shr    $0x2,%r13b
  shr    %cl
  xor    %r13d,%ecx
  mov    %r11d,%r13d
  xor    %r11d,%ecx
  shr    $0x3,%r13b
  xor    %r13d,%ecx
  mov    %r11d,%r13d
  shr    $0x4,%r13b
  xor    %r13d,%ecx
  mov    %r11d,%r13d
  shr    $0x5,%r13b
  xor    %r13d,%ecx
  mov    %r11d,%r13d
  shr    $0x7,%r11b
  shr    $0x6,%r13b
  xor    %r13d,%ecx
  xor    %r11d,%ecx
  shl    $0x4,%ecx
  and    $0x10,%ecx
  xor    %ecx,%eax
  cmp    %rdi,%rbx
  jne    L90
  add    $0x20,%rbx
  cmp    %rbx,%r10
  jne    L212
  xor    %r10d,%r10d
L213:
  lea    -0x20(%rbp),%rdi
  cs nopw 0x0(%rax,%rax,1)
L25:
  movzbl (%rdi),%r11d
  add    $0x1,%rdi
  mov    %r11d,%ecx
  mov    %r11d,%ebx
  shr    $0x2,%bl
  shr    %cl
  xor    %ebx,%ecx
  mov    %r11d,%ebx
  xor    %r11d,%ecx
  shr    $0x3,%bl
  xor    %ebx,%ecx
  mov    %r11d,%ebx
  shr    $0x4,%bl
  xor    %ebx,%ecx
  mov    %r11d,%ebx
  shr    $0x5,%bl
  xor    %ebx,%ecx
  mov    %r11d,%ebx
  shr    $0x7,%r11b
  shr    $0x6,%bl
  xor    %ebx,%ecx
  xor    %r11d,%ecx
  shl    $0x5,%ecx
  and    $0x20,%ecx
  xor    %ecx,%eax
  cmp    %rdi,%rbp
  jne    L25
  add    $0x40,%r10
  add    $0x40,%rbp
  cmp    $0x100,%r10
  jne    L213
  xor    %r10d,%r10d
L186:
  lea    -0x40(%r12),%rdi
  nopl   (%rax)
L101:
  movzbl (%rdi),%r11d
  add    $0x1,%rdi
  mov    %r11d,%ecx
  mov    %r11d,%ebx
  shr    $0x2,%bl
  shr    %cl
  xor    %ebx,%ecx
  mov    %r11d,%ebx
  xor    %r11d,%ecx
  shr    $0x3,%bl
  xor    %ebx,%ecx
  mov    %r11d,%ebx
  shr    $0x4,%bl
  xor    %ebx,%ecx
  mov    %r11d,%ebx
  shr    $0x5,%bl
  xor    %ebx,%ecx
  mov    %r11d,%ebx
  shr    $0x7,%r11b
  shr    $0x6,%bl
  xor    %ebx,%ecx
  xor    %r11d,%ecx
  shl    $0x6,%ecx
  and    $0x40,%ecx
  xor    %ecx,%eax
  cmp    %rdi,%r12
  jne    L101
  sub    $0xffffffffffffff80,%r10
  sub    $0xffffffffffffff80,%r12
  cmp    $0x100,%r10
  jne    L186
  nopl   (%rax)
L203:
  movzbl (%r9),%edi
  add    $0x1,%r9
  mov    %edi,%ecx
  mov    %edi,%r10d
  shr    $0x2,%r10b
  shr    %cl
  xor    %r10d,%ecx
  mov    %edi,%r10d
  xor    %edi,%ecx
  shr    $0x3,%r10b
  xor    %r10d,%ecx
  mov    %edi,%r10d
  shr    $0x4,%r10b
  xor    %r10d,%ecx
  mov    %edi,%r10d
  shr    $0x5,%r10b
  xor    %r10d,%ecx
  mov    %edi,%r10d
  shr    $0x7,%dil
  shr    $0x6,%r10b
  xor    %r10d,%ecx
  xor    %edi,%ecx
  shl    $0x7,%ecx
  xor    %ecx,%eax
  cmp    %r9,%r8
  jne    L203
  mov    -0x8(%rsp),%rdi
  mov    %dl,(%rdi)
  mov    %sil,0x1(%rdi)
  mov    %al,0x2(%rdi)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void cvmx_nand_compute_boot_ecc(unsigned char *block, unsigned char *eccp) {
  unsigned char pd0, pd1, pd2;
  int i, j;
  pd0 = pd1 = pd2 = 0;
  for (i = 0; i < 256; i++)
    pd0 ^= (block[i] ^ (block[i] >> 2) ^ (block[i] >> 4) ^ (block[i] >> 6)) & 1;
  for (i = 0; i < 256; i++)
    pd0 ^= ((block[i] ^ (block[i] >> 1) ^ (block[i] >> 4) ^ (block[i] >> 5)) & 1) << 1;
  for (i = 0; i < 256; i++)
    pd0 ^= ((block[i] ^ (block[i] >> 1) ^ (block[i] >> 2) ^ (block[i] >> 3)) & 1) << 2;
  for (i = 0; i < 128; i++)
    pd0 ^= ((block[2 * i] ^ (block[2 * i] >> 1) ^ (block[2 * i] >> 2) ^ (block[2 * i] >> 3) ^ (block[2 * i] >> 4) ^ (block[2 * i] >> 5) ^ (block[2 * i] >> 6) ^ (block[2 * i] >> 7)) & 1) << 3;
  for (i = 0; i < 64; i++)
    for (j = 0; j < 2; j++)
      pd0 ^= ((block[4 * i + j] ^ (block[4 * i + j] >> 1) ^ (block[4 * i + j] >> 2) ^ (block[4 * i + j] >> 3) ^ (block[4 * i + j] >> 4) ^ (block[4 * i + j] >> 5) ^ (block[4 * i + j] >> 6) ^ (block[4 * i + j] >> 7)) & 1) << 4;
  for (i = 0; i < 32; i++)
    for (j = 0; j < 4; j++)
      pd0 ^= ((block[8 * i + j] ^ (block[8 * i + j] >> 1) ^ (block[8 * i + j] >> 2) ^ (block[8 * i + j] >> 3) ^ (block[8 * i + j] >> 4) ^ (block[8 * i + j] >> 5) ^ (block[8 * i + j] >> 6) ^ (block[8 * i + j] >> 7)) & 1) << 5;
  for (i = 0; i < 16; i++)
    for (j = 0; j < 8; j++)
      pd0 ^= ((block[16 * i + j] ^ (block[16 * i + j] >> 1) ^ (block[16 * i + j] >> 2) ^ (block[16 * i + j] >> 3) ^ (block[16 * i + j] >> 4) ^ (block[16 * i + j] >> 5) ^ (block[16 * i + j] >> 6) ^ (block[16 * i + j] >> 7)) & 1) << 6;
  for (i = 0; i < 8; i++)
    for (j = 0; j < 16; j++)
      pd0 ^= ((block[32 * i + j] ^ (block[32 * i + j] >> 1) ^ (block[32 * i + j] >> 2) ^ (block[32 * i + j] >> 3) ^ (block[32 * i + j] >> 4) ^ (block[32 * i + j] >> 5) ^ (block[32 * i + j] >> 6) ^ (block[32 * i + j] >> 7)) & 1) << 7;
  for (i = 0; i < 4; i++)
    for (j = 0; j < 32; j++)
      pd1 ^= ((block[64 * i + j] ^ (block[64 * i + j] >> 1) ^ (block[64 * i + j] >> 2) ^ (block[64 * i + j] >> 3) ^ (block[64 * i + j] >> 4) ^ (block[64 * i + j] >> 5) ^ (block[64 * i + j] >> 6) ^ (block[64 * i + j] >> 7)) & 1) << 0;
  for (i = 0; i < 2; i++)
    for (j = 0; j < 64; j++)
      pd1 ^= ((block[128 * i + j] ^ (block[128 * i + j] >> 1) ^ (block[128 * i + j] >> 2) ^ (block[128 * i + j] >> 3) ^ (block[128 * i + j] >> 4) ^ (block[128 * i + j] >> 5) ^ (block[128 * i + j] >> 6) ^ (block[128 * i + j] >> 7)) & 1) << 1;
  for (i = 0; i < 128; i++)
    pd1 ^= ((block[i] ^ (block[i] >> 1) ^ (block[i] >> 2) ^ (block[i] >> 3) ^ (block[i] >> 4) ^ (block[i] >> 5) ^ (block[i] >> 6) ^ (block[i] >> 7)) & 1) << 2;
  for (i = 0; i < 256; i++)
    pd1 ^= (((block[i] >> 1) ^ (block[i] >> 3) ^ (block[i] >> 5) ^ (block[i] >> 7)) & 1) << 5;
  for (i = 0; i < 256; i++)
    pd1 ^= (((block[i] >> 2) ^ (block[i] >> 3) ^ (block[i] >> 6) ^ (block[i] >> 7)) & 1) << 6;
  for (i = 0; i < 256; i++)
    pd1 ^= (((block[i] >> 4) ^ (block[i] >> 5) ^ (block[i] >> 6) ^ (block[i] >> 7)) & 1) << 7;
  for (i = 0; i < 128; i++)
    pd2 ^= ((block[2 * i + 1] ^ (block[2 * i + 1] >> 1) ^ (block[2 * i + 1] >> 2) ^ (block[2 * i + 1] >> 3) ^ (block[2 * i + 1] >> 4) ^ (block[2 * i + 1] >> 5) ^ (block[2 * i + 1] >> 6) ^ (block[2 * i + 1] >> 7)) & 1) << 0;
  for (i = 0; i < 64; i++)
    for (j = 2; j < 4; j++)
      pd2 ^= ((block[4 * i + j] ^ (block[4 * i + j] >> 1) ^ (block[4 * i + j] >> 2) ^ (block[4 * i + j] >> 3) ^ (block[4 * i + j] >> 4) ^ (block[4 * i + j] >> 5) ^ (block[4 * i + j] >> 6) ^ (block[4 * i + j] >> 7)) & 1) << 1;
  for (i = 0; i < 32; i++)
    for (j = 4; j < 8; j++)
      pd2 ^= ((block[8 * i + j] ^ (block[8 * i + j] >> 1) ^ (block[8 * i + j] >> 2) ^ (block[8 * i + j] >> 3) ^ (block[8 * i + j] >> 4) ^ (block[8 * i + j] >> 5) ^ (block[8 * i + j] >> 6) ^ (block[8 * i + j] >> 7)) & 1) << 2;
  for (i = 0; i < 16; i++)
    for (j = 8; j < 16; j++)
      pd2 ^= ((block[16 * i + j] ^ (block[16 * i + j] >> 1) ^ (block[16 * i + j] >> 2) ^ (block[16 * i + j] >> 3) ^ (block[16 * i + j] >> 4) ^ (block[16 * i + j] >> 5) ^ (block[16 * i + j] >> 6) ^ (block[16 * i + j] >> 7)) & 1) << 3;
  for (i = 0; i < 8; i++)
    for (j = 16; j < 32; j++)
      pd2 ^= ((block[32 * i + j] ^ (block[32 * i + j] >> 1) ^ (block[32 * i + j] >> 2) ^ (block[32 * i + j] >> 3) ^ (block[32 * i + j] >> 4) ^ (block[32 * i + j] >> 5) ^ (block[32 * i + j] >> 6) ^ (block[32 * i + j] >> 7)) & 1) << 4;
  for (i = 0; i < 4; i++)
    for (j = 32; j < 64; j++)
      pd2 ^= ((block[64 * i + j] ^ (block[64 * i + j] >> 1) ^ (block[64 * i + j] >> 2) ^ (block[64 * i + j] >> 3) ^ (block[64 * i + j] >> 4) ^ (block[64 * i + j] >> 5) ^ (block[64 * i + j] >> 6) ^ (block[64 * i + j] >> 7)) & 1) << 5;
  for (i = 0; i < 2; i++)
    for (j = 64; j < 128; j++)
      pd2 ^= ((block[128 * i + j] ^ (block[128 * i + j] >> 1) ^ (block[128 * i + j] >> 2) ^ (block[128 * i + j] >> 3) ^ (block[128 * i + j] >> 4) ^ (block[128 * i + j] >> 5) ^ (block[128 * i + j] >> 6) ^ (block[128 * i + j] >> 7)) & 1) << 6;
  for (i = 128; i < 256; i++)
    pd2 ^= ((block[i] ^ (block[i] >> 1) ^ (block[i] >> 2) ^ (block[i] >> 3) ^ (block[i] >> 4) ^ (block[i] >> 5) ^ (block[i] >> 6) ^ (block[i] >> 7)) & 1) << 7;
  eccp[0] = pd0;
  eccp[1] = pd1;
  eccp[2] = pd2;
}
```