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

```asm
<gostcrypt>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rsi,%r13
  mov    %rdx,%r12
  mov    (%rdi),%rbx
  mov    0x8(%rdi),%rbp
  mov    %rbx,%rdi
  add    (%rdx),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x8(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x10(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x18(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x20(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x28(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x30(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x38(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    (%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x8(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x10(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x18(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x20(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x28(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x30(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x38(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    (%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x8(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x10(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x18(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x20(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x28(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x30(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x38(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x38(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x30(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x28(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x20(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x18(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    0x10(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbx
  mov    %rbx,%rdi
  add    0x8(%r12),%rdi
  call   <f@plt>
  xor    %rax,%rbp
  mov    %rbp,%rdi
  add    (%r12),%rdi
  call   <f@plt>
  mov    %rbp,0x0(%r13)
  xor    %rax,%rbx
  mov    %rbx,0x8(%r13)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

assistant: ```c
void gostcrypt(uint32_t const in[2], uint32_t out[2], uint32_t const key[8]) {
  register uint32_t n1, n2;
  n1 = in[0];
  n2 = in[1];
  n2 ^= f(n1 + key[0]);
  n1 ^= f(n2 + key[1]);
  n2 ^= f(n1 + key[2]);
  n1 ^= f(n2 + key[3]);
  n2 ^= f(n1 + key[4]);
  n1 ^= f(n2 + key[5]);
  n2 ^= f(n1 + key[6]);
  n1 ^= f(n2 + key[7]);
  n2 ^= f(n1 + key[0]);
  n1 ^= f(n2 + key[1]);
  n2 ^= f(n1 + key[2]);
  n1 ^= f(n2 + key[3]);
  n2 ^= f(n1 + key[4]);
  n1 ^= f(n2 + key[5]);
  n2 ^= f(n1 + key[6]);
  n1 ^= f(n2 + key[7]);
  n2 ^= f(n1 + key[0]);
  n1 ^= f(n2 + key[1]);
  n2 ^= f(n1 + key[2]);
  n1 ^= f(n2 + key[3]);
  n2 ^= f(n1 + key[4]);
  n1 ^= f(n2 + key[5]);
  n2 ^= f(n1 + key[6]);
  n1 ^= f(n2 + key[7]);
  n2 ^= f(n1 + key[7]);
  n1 ^= f(n2 + key[6]);
  n2 ^= f(n1 + key[5]);
  n1 ^= f(n2 + key[4]);
  n2 ^= f(n1 + key[3]);
  n1 ^= f(n2 + key[2]);
  n2 ^= f(n1 + key[1]);
  n1 ^= f(n2 + key[0]);
  out[0] = n2;
  out[1] = n1;
}
```