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

```asm
<encrypt_digits>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %rax,%r10
  mov    $0x0,%r11d
  mov    %rax,%r8
  mov    $0x0,%r9d
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  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
L20:
  cmp    %rdx,%rsp
  je     L76
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L20
L76:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L94
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L94:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x50(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <copy_arr@plt>
  movl   $0x0,-0x38(%rbp)
  jmp    L84
L91:
  mov    -0x20(%rbp),%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L67
  mov    -0x20(%rbp),%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  jne    L45
L67:
  mov    -0x20(%rbp),%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rsi
  mov    -0x48(%rbp),%rdx
  add    %rsi,%rdx
  imul   %ecx,%eax
  mov    %eax,(%rdx)
  jmp    L8
L45:
  mov    -0x20(%rbp),%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,-0x2c(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x30(%rbp)
  cmpl   $0x0,-0x38(%rbp)
  jle    L10
  mov    -0x38(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,-0x34(%rbp)
L10:
  mov    -0x38(%rbp),%eax
  cltq
  mov    -0x50(%rbp),%rdx
  sub    $0x1,%rdx
  cmp    %rdx,%rax
  jae    L55
  mov    -0x38(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,-0x30(%rbp)
L55:
  mov    -0x2c(%rbp),%edx
  mov    -0x34(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    -0x30(%rbp),%edx
  add    %ecx,%edx
  mov    %edx,(%rax)
L8:
  addl   $0x1,-0x38(%rbp)
L84:
  mov    -0x38(%rbp),%eax
  cltq
  cmp    %rax,-0x50(%rbp)
  ja     L91
  mov    %rbx,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L58
  call   <__stack_chk_fail@plt>
L58:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void encrypt_digits(int src[], size_t size) {
  int temp[size];
  copy_arr(src, size, temp);
  int i;
  for (i = 0; i < size; i++) {
    if (temp[i] % 2 == 0 || temp[i] == 0) {
      src[i] = temp[i] * temp[i];
    } else {
      int currentDigit = temp[i];
      int previos = 0, next = 0;
      if (i > 0) {
        previos = temp[i - 1];
      }
      if (i < size - 1) {
        next = temp[i + 1];
      }
      src[i] = currentDigit + previos + next;
    }
  }
}
```