user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  movabs $0xfedcba9876543210,%r15
  push   %r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  sub    $0xe8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xd8(%rsp)
  movabs $0x460c608546f8e8c5,%rax
  lea    0xd8(%rsp),%rbp
  lea    0x40(%rsp),%r13
  movq   $0x0,0x18(%rsp)
  movq   $0xffffffffffffffff,0x20(%rsp)
  mov    %rax,0x78(%rsp)
  movabs $0x284b830370f83b8a,%rax
  mov    %rax,0x80(%rsp)
  movabs $0xf621ed22513e1454,%rax
  mov    %rax,0x88(%rsp)
  movabs $0x11a83a5d3125065d,%rax
  mov    %rax,0x90(%rsp)
  movabs $0x713ad82dd427686b,%rax
  mov    %rax,0x98(%rsp)
  movabs $0x2799a4dd4b792f99,%rax
  mov    %rax,0xa0(%rsp)
  movabs $0xdede871aa7901c49,%rax
  mov    %rax,0xa8(%rsp)
  movabs $0xa7efc24936c03196,%rax
  mov    %rax,0xb0(%rsp)
  movabs $0x3b0a1d2b61a78bb8,%rax
  mov    %rax,0xb8(%rsp)
  movabs $0xae1621674dbfca76,%rax
  mov    %rax,0xc0(%rsp)
  movabs $0x4319230430d76b0a,%rax
  mov    %rax,0xc8(%rsp)
  movabs $0x65046380f6cc1431,%rax
  mov    %rax,0xd0(%rsp)
  movabs $0xffffffff00000000,%rax
  mov    %rax,0x28(%rsp)
  mov    $0xffffffff,%eax
  mov    %rax,0x30(%rsp)
  lea    0x78(%rsp),%rax
  mov    %rax,0x8(%rsp)
L9:
  mov    %r15,%rbx
  mov    0x8(%rsp),%r14
  add    $0x1a37f7fb,%r15d
  shr    $0x20,%rbx
  sub    $0x64442738,%ebx
  nopl   0x0(%rax,%rax,1)
L33:
  xor    %r15d,%ebx
  mov    %r15d,%esi
  add    $0x8,%r14
  mov    %ebx,%edi
  and    $0x1f,%esi
  call   <rotl@plt>
  add    -0x8(%r14),%eax
  mov    %r15d,%edi
  mov    %eax,%esi
  xor    %eax,%edi
  mov    %eax,%ebx
  and    $0x1f,%esi
  call   <rotl@plt>
  add    -0x4(%r14),%eax
  mov    %eax,%r15d
  cmp    %rbp,%r14
  jne    L33
  shl    $0x20,%rbx
  or     %r15,%rbx
  mov    %rbx,0x0(%r13,%r12,1)
  add    $0x8,%r12
  cmp    $0x28,%r12
  je     L11
  mov    0x10(%rsp,%r12,1),%r15
  jmp    L9
  nopw   0x0(%rax,%rax,1)
L11:
  lea    D28(%rip),%rsi
  lea    D36(%rip),%rdx
  xor    %eax,%eax
  xor    %ebx,%ebx
  lea    D24(%rip),%rdi
  lea    D6(%rip),%rbp
  call   <printf@plt>
  movabs $0xfedcba9876543210,%rsi
L6:
  mov    0x0(%r13,%rbx,1),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x8,%rbx
  call   <printf@plt>
  cmp    $0x28,%rbx
  je     L40
  mov    0x10(%rsp,%rbx,1),%rsi
  jmp    L6
  nop
L40:
  mov    0xd8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L37
  add    $0xe8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D28
type_guessed: string
name: unpack_data
arguments: tag: D36
type_guessed: string
name: unpack_data
arguments: tag: D24
type_guessed: string
name: unpack_data
arguments: tag: D6
type_guessed: string

tool: D28: INPUT

tool: D36: : RESULT

tool: D24: %s%22s


tool: D6: 0x%016llX : 0x%016llX


assistant: ```c
int main() {
  int i, s;
  int skey[26] = {0x9BBBD8C8, 0x1A37F7FB, 0x46F8E8C5, 0x460C6085, 0x70F83B8A, 0x284B8303, 0x513E1454, 0xF621ED22, 0x3125065D, 0x11A83A5D, 0xD427686B, 0x713AD82D, 0x4B792F99, 0x2799A4DD, 0xA7901C49, 0xDEDE871A, 0x36C03196, 0xA7EFC249, 0x61A78BB8, 0x3B0A1D2B, 0x4DBFCA76, 0xAE162167, 0x30D76B0A, 0x43192304, 0xF6CC1431, 0x65046380};
  unsigned long long din[5] = {0xFEDCBA9876543210, 0x0000000000000000, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFF00000000, 0x00000000FFFFFFFF};
  unsigned long long dout[5];
  unsigned long long sig = 0;
  unsigned long long res = 0;
  unsigned int A = 0;
  unsigned int B = 0;
  for (s = 0; s < 5; s++) {
    sig = din[s];
    A = sig >> 32;
    B = sig & 0xFFFFFFFF;
    A += skey[0];
    B += skey[1];
    for (i = 1; i <= 12; i++) {
      A ^= B;
      A = rotl(A, B & 0x1f);
      A += skey[2 * i];
      B ^= A;
      B = rotl(B, A & 0x1f);
      B += skey[2 * i + 1];
    }
    res = (long long)A << 32 | B;
    dout[s] = res;
  }
  printf("%s%22s\n", "INPUT", ": RESULT");
  for (i = 0; i < 5; i++) {
    printf("0x%016llX : 0x%016llX\n", din[i], dout[i]);
  }
  return 0;
}
```