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

```asm
<cvmx_nand_compute_boot_ecc>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,-0x18(%rsp)
  mov    %rsi,-0x8(%rsp)
  mov    %rdi,%rsi
  lea    0x100(%rdi),%r8
  mov    $0x0,%edx
L37:
  movzbl (%rsi),%ecx
  mov    %ecx,%eax
  shr    $0x2,%al
  mov    %ecx,%edi
  shr    $0x4,%dil
  xor    %edi,%eax
  xor    %ecx,%eax
  shr    $0x6,%cl
  xor    %ecx,%eax
  and    $0x1,%eax
  xor    %eax,%edx
  add    $0x1,%rsi
  cmp    %r8,%rsi
  jne    L37
  mov    -0x18(%rsp),%rsi
L205:
  movzbl (%rsi),%ecx
  mov    %ecx,%eax
  shr    %al
  mov    %ecx,%edi
  shr    $0x4,%dil
  xor    %edi,%eax
  xor    %ecx,%eax
  shr    $0x5,%cl
  xor    %ecx,%eax
  add    %eax,%eax
  and    $0x2,%eax
  xor    %eax,%edx
  add    $0x1,%rsi
  cmp    %r8,%rsi
  jne    L205
  mov    -0x18(%rsp),%rsi
L290:
  movzbl (%rsi),%ecx
  mov    %ecx,%eax
  shr    %al
  mov    %ecx,%edi
  shr    $0x2,%dil
  xor    %edi,%eax
  xor    %ecx,%eax
  shr    $0x3,%cl
  xor    %ecx,%eax
  shl    $0x2,%eax
  and    $0x4,%eax
  xor    %eax,%edx
  add    $0x1,%rsi
  cmp    %r8,%rsi
  jne    L290
  mov    -0x18(%rsp),%rcx
L117:
  movzbl (%rcx),%esi
  mov    %esi,%eax
  shr    %al
  mov    %esi,%edi
  shr    $0x2,%dil
  xor    %edi,%eax
  xor    %esi,%eax
  mov    %esi,%edi
  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    $0x6,%dil
  xor    %edi,%eax
  shr    $0x7,%sil
  xor    %esi,%eax
  shl    $0x3,%eax
  and    $0x8,%eax
  xor    %eax,%edx
  add    $0x2,%rcx
  cmp    %r8,%rcx
  jne    L117
  mov    -0x18(%rsp),%r9
  lea    0x2(%r9),%rdi
  mov    $0x0,%esi
  jmp    L363
L89:
  add    $0x4,%rdi
  add    $0x4,%rsi
  cmp    $0x100,%rsi
  je     L371
L363:
  lea    (%r9,%rsi,1),%rcx
L82:
  movzbl (%rcx),%r10d
  mov    %r10d,%eax
  shr    %al
  mov    %r10d,%r11d
  shr    $0x2,%r11b
  xor    %r11d,%eax
  xor    %r10d,%eax
  mov    %r10d,%r11d
  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    $0x6,%r11b
  xor    %r11d,%eax
  shr    $0x7,%r10b
  xor    %r10d,%eax
  shl    $0x4,%eax
  and    $0x10,%eax
  xor    %eax,%edx
  add    $0x1,%rcx
  cmp    %rdi,%rcx
  jne    L82
  jmp    L89
L371:
  mov    -0x18(%rsp),%rax
  lea    0x4(%rax),%r9
  lea    0x104(%rax),%r12
  mov    %r9,%rsi
  jmp    L318
L222:
  add    $0x8,%rsi
  cmp    %r12,%rsi
  je     L216
L318:
  lea    -0x4(%rsi),%rcx
L324:
  movzbl (%rcx),%edi
  mov    %edi,%eax
  shr    %al
  mov    %edi,%r10d
  shr    $0x2,%r10b
  xor    %r10d,%eax
  xor    %edi,%eax
  mov    %edi,%r10d
  shr    $0x3,%r10b
  xor    %r10d,%eax
  mov    %edi,%r10d
  shr    $0x4,%r10b
  xor    %r10d,%eax
  mov    %edi,%r10d
  shr    $0x5,%r10b
  xor    %r10d,%eax
  mov    %edi,%r10d
  shr    $0x6,%r10b
  xor    %r10d,%eax
  shr    $0x7,%dil
  xor    %edi,%eax
  shl    $0x5,%eax
  and    $0x20,%eax
  xor    %eax,%edx
  add    $0x1,%rcx
  cmp    %rsi,%rcx
  jne    L324
  jmp    L222
L216:
  mov    -0x18(%rsp),%rax
  lea    0x8(%rax),%r11
  lea    0x108(%rax),%rdi
  mov    %rdi,-0x10(%rsp)
  mov    %r11,%rsi
  jmp    L409
L4:
  add    $0x10,%rsi
  cmp    %rdi,%rsi
  je     L80
L409:
  lea    -0x8(%rsi),%rcx
L99:
  movzbl (%rcx),%r10d
  mov    %r10d,%eax
  shr    %al
  mov    %r10d,%ebx
  shr    $0x2,%bl
  xor    %ebx,%eax
  xor    %r10d,%eax
  mov    %r10d,%ebx
  shr    $0x3,%bl
  xor    %ebx,%eax
  mov    %r10d,%ebx
  shr    $0x4,%bl
  xor    %ebx,%eax
  mov    %r10d,%ebx
  shr    $0x5,%bl
  xor    %ebx,%eax
  mov    %r10d,%ebx
  shr    $0x6,%bl
  xor    %ebx,%eax
  shr    $0x7,%r10b
  xor    %r10d,%eax
  shl    $0x6,%eax
  and    $0x40,%eax
  xor    %eax,%edx
  add    $0x1,%rcx
  cmp    %rsi,%rcx
  jne    L99
  jmp    L4
L80:
  mov    -0x18(%rsp),%rax
  lea    0x10(%rax),%rsi
  lea    0x110(%rax),%rdi
L131:
  lea    -0x10(%rsi),%rcx
L43:
  movzbl (%rcx),%r10d
  mov    %r10d,%eax
  shr    %al
  mov    %r10d,%ebx
  shr    $0x2,%bl
  xor    %ebx,%eax
  xor    %r10d,%eax
  mov    %r10d,%ebx
  shr    $0x3,%bl
  xor    %ebx,%eax
  mov    %r10d,%ebx
  shr    $0x4,%bl
  xor    %ebx,%eax
  mov    %r10d,%ebx
  shr    $0x5,%bl
  xor    %ebx,%eax
  mov    %r10d,%ebx
  shr    $0x6,%bl
  xor    %ebx,%eax
  shr    $0x7,%r10b
  xor    %r10d,%eax
  shl    $0x7,%eax
  xor    %eax,%edx
  add    $0x1,%rcx
  cmp    %rsi,%rcx
  jne    L43
  add    $0x20,%rsi
  cmp    %rdi,%rsi
  jne    L131
  mov    -0x18(%rsp),%rax
  lea    0x20(%rax),%rbx
  mov    %rbx,%r10
  mov    $0x0,%ebp
  mov    $0x0,%esi
L368:
  lea    -0x20(%r10),%rcx
L92:
  movzbl (%rcx),%edi
  mov    %edi,%eax
  shr    %al
  mov    %edi,%r13d
  shr    $0x2,%r13b
  xor    %r13d,%eax
  xor    %edi,%eax
  mov    %edi,%r13d
  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    $0x6,%r13b
  xor    %r13d,%eax
  shr    $0x7,%dil
  xor    %edi,%eax
  and    $0x1,%eax
  xor    %eax,%esi
  add    $0x1,%rcx
  cmp    %r10,%rcx
  jne    L92
  add    $0x40,%r10
  add    $0x40,%rbp
  cmp    $0x100,%rbp
  jne    L368
  mov    -0x18(%rsp),%rax
  lea    0x40(%rax),%rbp
  mov    %rbp,%r10
  mov    $0x0,%r14d
L300:
  lea    -0x40(%r10),%rcx
L170:
  movzbl (%rcx),%edi
  mov    %edi,%eax
  shr    %al
  mov    %edi,%r13d
  shr    $0x2,%r13b
  xor    %r13d,%eax
  xor    %edi,%eax
  mov    %edi,%r13d
  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    $0x6,%r13b
  xor    %r13d,%eax
  shr    $0x7,%dil
  xor    %edi,%eax
  add    %eax,%eax
  and    $0x2,%eax
  xor    %eax,%esi
  add    $0x1,%rcx
  cmp    %r10,%rcx
  jne    L170
  sub    $0xffffffffffffff80,%r10
  sub    $0xffffffffffffff80,%r14
  cmp    $0x100,%r14
  jne    L300
  mov    -0x18(%rsp),%rdi
  lea    0x80(%rdi),%r10
L442:
  movzbl (%rdi),%ecx
  mov    %ecx,%eax
  shr    %al
  mov    %ecx,%r13d
  shr    $0x2,%r13b
  xor    %r13d,%eax
  xor    %ecx,%eax
  mov    %ecx,%r13d
  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    $0x6,%r13b
  xor    %r13d,%eax
  shr    $0x7,%cl
  xor    %ecx,%eax
  shl    $0x2,%eax
  and    $0x4,%eax
  xor    %eax,%esi
  add    $0x1,%rdi
  cmp    %r10,%rdi
  jne    L442
  mov    -0x18(%rsp),%rdi
L437:
  movzbl (%rdi),%ecx
  mov    %ecx,%eax
  shr    %al
  mov    %ecx,%r13d
  shr    $0x3,%r13b
  xor    %r13d,%eax
  mov    %ecx,%r13d
  shr    $0x5,%r13b
  xor    %r13d,%eax
  shr    $0x7,%cl
  xor    %ecx,%eax
  shl    $0x5,%eax
  and    $0x20,%eax
  xor    %eax,%esi
  add    $0x1,%rdi
  cmp    %r8,%rdi
  jne    L437
  mov    -0x18(%rsp),%rdi
L427:
  movzbl (%rdi),%ecx
  mov    %ecx,%eax
  shr    $0x2,%al
  mov    %ecx,%r13d
  shr    $0x3,%r13b
  xor    %r13d,%eax
  mov    %ecx,%r13d
  shr    $0x6,%r13b
  xor    %r13d,%eax
  shr    $0x7,%cl
  xor    %ecx,%eax
  shl    $0x6,%eax
  and    $0x40,%eax
  xor    %eax,%esi
  add    $0x1,%rdi
  cmp    %r8,%rdi
  jne    L427
  mov    -0x18(%rsp),%rdi
L391:
  movzbl (%rdi),%ecx
  mov    %ecx,%eax
  shr    $0x4,%al
  mov    %ecx,%r13d
  shr    $0x5,%r13b
  xor    %r13d,%eax
  mov    %ecx,%r13d
  shr    $0x6,%r13b
  xor    %r13d,%eax
  shr    $0x7,%cl
  xor    %ecx,%eax
  shl    $0x7,%eax
  xor    %eax,%esi
  add    $0x1,%rdi
  cmp    %r8,%rdi
  jne    L391
  mov    -0x18(%rsp),%rax
  lea    0x1(%rax),%r13
  lea    0x101(%rax),%r14
  mov    $0x0,%eax
L383:
  movzbl 0x0(%r13),%edi
  mov    %edi,%ecx
  shr    %cl
  mov    %edi,%r15d
  shr    $0x2,%r15b
  xor    %r15d,%ecx
  xor    %edi,%ecx
  mov    %edi,%r15d
  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    $0x6,%r15b
  xor    %r15d,%ecx
  shr    $0x7,%dil
  xor    %edi,%ecx
  and    $0x1,%ecx
  xor    %ecx,%eax
  add    $0x2,%r13
  cmp    %r14,%r13
  jne    L383
  mov    -0x18(%rsp),%r14
  jmp    L309
L165:
  add    $0x4,%r14
  cmp    %r8,%r14
  je     L96
L309:
  mov    $0x2,%edi
L235:
  movzbl (%r14,%rdi,1),%r13d
  mov    %r13d,%ecx
  shr    %cl
  mov    %r13d,%r15d
  shr    $0x2,%r15b
  xor    %r15d,%ecx
  xor    %r13d,%ecx
  mov    %r13d,%r15d
  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    $0x6,%r15b
  xor    %r15d,%ecx
  shr    $0x7,%r13b
  xor    %r13d,%ecx
  add    %ecx,%ecx
  and    $0x2,%ecx
  xor    %ecx,%eax
  add    $0x1,%rdi
  cmp    $0x4,%rdi
  jne    L235
  jmp    L165
L356:
  add    $0x8,%r9
  cmp    %r12,%r9
  je     L358
L96:
  lea    -0x4(%r9),%rdi
L150:
  movzbl 0x4(%rdi),%r13d
  mov    %r13d,%ecx
  shr    %cl
  mov    %r13d,%r14d
  shr    $0x2,%r14b
  xor    %r14d,%ecx
  xor    %r13d,%ecx
  mov    %r13d,%r14d
  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    $0x6,%r14b
  xor    %r14d,%ecx
  shr    $0x7,%r13b
  xor    %r13d,%ecx
  shl    $0x2,%ecx
  and    $0x4,%ecx
  xor    %ecx,%eax
  add    $0x1,%rdi
  cmp    %r9,%rdi
  jne    L150
  jmp    L356
L269:
  add    $0x10,%r11
  cmp    %r9,%r11
  je     L206
L57:
  lea    -0x8(%r11),%rdi
L98:
  movzbl 0x8(%rdi),%r12d
  mov    %r12d,%ecx
  shr    %cl
  mov    %r12d,%r13d
  shr    $0x2,%r13b
  xor    %r13d,%ecx
  xor    %r12d,%ecx
  mov    %r12d,%r13d
  shr    $0x3,%r13b
  xor    %r13d,%ecx
  mov    %r12d,%r13d
  shr    $0x4,%r13b
  xor    %r13d,%ecx
  mov    %r12d,%r13d
  shr    $0x5,%r13b
  xor    %r13d,%ecx
  mov    %r12d,%r13d
  shr    $0x6,%r13b
  xor    %r13d,%ecx
  shr    $0x7,%r12b
  xor    %r12d,%ecx
  shl    $0x3,%ecx
  and    $0x8,%ecx
  xor    %ecx,%eax
  add    $0x1,%rdi
  cmp    %r11,%rdi
  jne    L98
  jmp    L269
L358:
  mov    -0x10(%rsp),%r9
  jmp    L57
L206:
  mov    -0x18(%rsp),%rdi
  lea    0x120(%rdi),%r9
L71:
  lea    -0x10(%rbx),%rdi
L294:
  movzbl (%rdi),%r11d
  mov    %r11d,%ecx
  shr    %cl
  mov    %r11d,%r12d
  shr    $0x2,%r12b
  xor    %r12d,%ecx
  xor    %r11d,%ecx
  mov    %r11d,%r12d
  shr    $0x3,%r12b
  xor    %r12d,%ecx
  mov    %r11d,%r12d
  shr    $0x4,%r12b
  xor    %r12d,%ecx
  mov    %r11d,%r12d
  shr    $0x5,%r12b
  xor    %r12d,%ecx
  mov    %r11d,%r12d
  shr    $0x6,%r12b
  xor    %r12d,%ecx
  shr    $0x7,%r11b
  xor    %r11d,%ecx
  shl    $0x4,%ecx
  and    $0x10,%ecx
  xor    %ecx,%eax
  add    $0x1,%rdi
  cmp    %rdi,%rbx
  jne    L294
  add    $0x20,%rbx
  cmp    %rbx,%r9
  jne    L71
  mov    $0x0,%r9d
L130:
  lea    -0x20(%rbp),%rdi
L278:
  movzbl (%rdi),%r11d
  mov    %r11d,%ecx
  shr    %cl
  mov    %r11d,%ebx
  shr    $0x2,%bl
  xor    %ebx,%ecx
  xor    %r11d,%ecx
  mov    %r11d,%ebx
  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    $0x6,%bl
  xor    %ebx,%ecx
  shr    $0x7,%r11b
  xor    %r11d,%ecx
  shl    $0x5,%ecx
  and    $0x20,%ecx
  xor    %ecx,%eax
  add    $0x1,%rdi
  cmp    %rbp,%rdi
  jne    L278
  add    $0x40,%rbp
  add    $0x40,%r9
  cmp    $0x100,%r9
  jne    L130
  mov    $0x0,%r9d
L204:
  lea    -0x40(%r10),%rdi
L351:
  movzbl (%rdi),%r11d
  mov    %r11d,%ecx
  shr    %cl
  mov    %r11d,%ebx
  shr    $0x2,%bl
  xor    %ebx,%ecx
  xor    %r11d,%ecx
  mov    %r11d,%ebx
  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    $0x6,%bl
  xor    %ebx,%ecx
  shr    $0x7,%r11b
  xor    %r11d,%ecx
  shl    $0x6,%ecx
  and    $0x40,%ecx
  xor    %ecx,%eax
  add    $0x1,%rdi
  cmp    %rdi,%r10
  jne    L351
  sub    $0xffffffffffffff80,%r10
  sub    $0xffffffffffffff80,%r9
  cmp    $0x100,%r9
  jne    L204
  mov    -0x18(%rsp),%rdi
  sub    $0xffffffffffffff80,%rdi
L384:
  movzbl (%rdi),%r9d
  mov    %r9d,%ecx
  shr    %cl
  mov    %r9d,%r10d
  shr    $0x2,%r10b
  xor    %r10d,%ecx
  xor    %r9d,%ecx
  mov    %r9d,%r10d
  shr    $0x3,%r10b
  xor    %r10d,%ecx
  mov    %r9d,%r10d
  shr    $0x4,%r10b
  xor    %r10d,%ecx
  mov    %r9d,%r10d
  shr    $0x5,%r10b
  xor    %r10d,%ecx
  mov    %r9d,%r10d
  shr    $0x6,%r10b
  xor    %r10d,%ecx
  shr    $0x7,%r9b
  xor    %r9d,%ecx
  shl    $0x7,%ecx
  xor    %ecx,%eax
  add    $0x1,%rdi
  cmp    %r8,%rdi
  jne    L384
  mov    -0x8(%rsp),%rbx
  mov    %dl,(%rbx)
  mov    %sil,0x1(%rbx)
  mov    %al,0x2(%rbx)
  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;
}
```