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

```asm
<sceda_func>:
  endbr64
  push   %r15
  mov    %r8,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  mov    %rcx,%rsi
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %r9d,%ebx
  sub    $0x68,%rsp
  mov    %edx,0x8(%rsp)
  lea    0x20(%rsp),%r14
  mov    $0x10,%edx
  lea    0x40(%rsp),%r13
  mov    %r14,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  call   <memcpy@plt>
  lea    0x30(%rsp),%rax
  mov    $0x8,%edx
  mov    %r15,%rsi
  mov    %rax,%rdi
  mov    %rax,(%rsp)
  call   <memcpy@plt>
  lea    0x38(%rsp),%rdi
  mov    $0x8,%edx
  mov    %r15,%rsi
  call   <memcpy@plt>
  mov    $0x8,%edx
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  lea    0x48(%rsp),%rdi
  mov    $0x8,%edx
  mov    %r15,%rsi
  call   <memcpy@plt>
  mov    0x8(%rsp),%r10d
  movb   $0x0,0x50(%rsp)
  test   %r10d,%r10d
  jle    L69
  movslq %r10d,%r15
  shl    $0x4,%r15
  lea    0x0(%rbp,%r15,1),%rax
  lea    0x10(%rsp),%r15
  mov    %rax,0x8(%rsp)
  jmp    L68
  nopw   0x0(%rax,%rax,1)
L14:
  mov    (%rsp),%rdi
  call   <memcpy@plt>
L51:
  movzbl (%r12),%eax
  xor    0x10(%rsp),%al
  mov    %al,0x0(%rbp)
  movzbl 0x1(%r12),%eax
  xor    0x11(%rsp),%al
  mov    %al,0x1(%rbp)
  movzbl 0x2(%r12),%eax
  xor    0x12(%rsp),%al
  mov    %al,0x2(%rbp)
  movzbl 0x3(%r12),%eax
  xor    0x13(%rsp),%al
  mov    %al,0x3(%rbp)
  movzbl 0x4(%r12),%eax
  xor    0x14(%rsp),%al
  mov    %al,0x4(%rbp)
  movzbl 0x5(%r12),%eax
  xor    0x15(%rsp),%al
  mov    %al,0x5(%rbp)
  movzbl 0x6(%r12),%eax
  xor    0x16(%rsp),%al
  mov    %al,0x6(%rbp)
  movzbl 0x7(%r12),%eax
  xor    0x17(%rsp),%al
  mov    %al,0x7(%rbp)
  movzbl 0x8(%r12),%eax
  xor    0x18(%rsp),%al
  mov    %al,0x8(%rbp)
  movzbl 0x9(%r12),%eax
  xor    0x19(%rsp),%al
  mov    %al,0x9(%rbp)
  movzbl 0xa(%r12),%eax
  xor    0x1a(%rsp),%al
  mov    %al,0xa(%rbp)
  movzbl 0xb(%r12),%eax
  xor    0x1b(%rsp),%al
  mov    %al,0xb(%rbp)
  movzbl 0xc(%r12),%eax
  xor    0x1c(%rsp),%al
  mov    %al,0xc(%rbp)
  movzbl 0xd(%r12),%eax
  xor    0x1d(%rsp),%al
  mov    %al,0xd(%rbp)
  movzbl 0xe(%r12),%eax
  xor    0x1e(%rsp),%al
  mov    %al,0xe(%rbp)
  movzbl 0xf(%r12),%eax
  xor    0x1f(%rsp),%al
  mov    %al,0xf(%rbp)
  test   %ebx,%ebx
  je     L48
  mov    $0x10,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
L11:
  call   <memcpy@plt>
  add    $0x10,%r12
  addb   $0x1,0x40(%rsp)
  add    $0x10,%rbp
  cmp    %rbp,0x8(%rsp)
  je     L69
L68:
  mov    $0x31,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <sceda_digest@plt>
  mov    $0x10,%edx
  mov    %r12,%rsi
  test   %ebx,%ebx
  jne    L14
  mov    %r13,%rdi
  call   <memcpy@plt>
  jmp    L51
  nopl   (%rax)
L48:
  mov    (%rsp),%rdi
  mov    $0x10,%edx
  mov    %rbp,%rsi
  jmp    L11
L69:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L42
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L42:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void sceda_func(unsigned char *output, const unsigned char *original, int blockC, const unsigned char *key, const unsigned char *iv, int decrypting) {
  unsigned char blockKey[49], hashedBlockKey[16], *pt2;
  const unsigned char *pt1;
  int i, j;
  memcpy(blockKey, key, 16);
  memcpy(blockKey + 16, iv, 8);
  memcpy(blockKey + 24, iv, 8);
  memcpy(blockKey + 32, iv, 8);
  memcpy(blockKey + 40, iv, 8);
  blockKey[48] = 0;
  pt1 = original;
  pt2 = output;
  for (i = 0; i < blockC; i++) {
    sceda_digest(hashedBlockKey, blockKey, 49);
    if (decrypting) {
      memcpy(blockKey + 16, pt1, 16);
    } else {
      memcpy(blockKey + 32, pt1, 16);
    }
    for (j = 0; j < 16; j++) {
      pt2[j] = pt1[j] ^ hashedBlockKey[j];
    }
    if (decrypting) {
      memcpy(blockKey + 32, pt2, 16);
    } else {
      memcpy(blockKey + 16, pt2, 16);
    }
    blockKey[32]++;
    pt1 += 16;
    pt2 += 16;
  }
}
```