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

```asm
<unpackforblock27_64>:
  endbr64
  push   %r15
  movd   %edi,%xmm4
  push   %r14
  mov    %rsi,%r14
  pshufd $0x0,%xmm4,%xmm1
  push   %r13
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  mov    (%rsi),%rax
  mov    (%rdx),%r15
  mov    0x18(%rax),%esi
  mov    0x24(%rax),%edi
  add    $0x1b0,%rax
  mov    -0x1b0(%rax),%ecx
  mov    %r15,-0x28(%rsp)
  mov    %rdx,-0x10(%rsp)
  mov    -0x1a8(%rax),%ebx
  mov    %esi,-0x1c(%rsp)
  mov    -0x19c(%rax),%r10d
  mov    %edi,-0x18(%rsp)
  mov    -0x194(%rax),%r8d
  mov    -0x190(%rax),%r11d
  mov    -0x188(%rax),%r9d
  mov    -0x1ac(%rax),%edx
  mov    -0x1a4(%rax),%r12d
  mov    -0x1a0(%rax),%r13d
  mov    -0x184(%rax),%edi
  mov    -0x180(%rax),%esi
  mov    -0x17c(%rax),%r15d
  mov    %rax,(%r14)
  mov    %ecx,%eax
  sar    $0x1b,%eax
  mov    %edx,%r14d
  mov    %r15d,-0x14(%rsp)
  movd   %eax,%xmm3
  mov    %ecx,%r15d
  mov    %ecx,%eax
  mov    $0x36,%ecx
  shl    $0xa,%r14d
  movd   %r15d,%xmm0
  mov    -0x28(%rsp),%r15
  sar    %cl,%eax
  punpckldq %xmm3,%xmm0
  mov    $0x2c,%ecx
  or     %r14d,%eax
  mov    %edx,%r14d
  sar    %cl,%edx
  mov    $0x22,%ecx
  sar    $0x11,%r14d
  movd   %eax,%xmm2
  mov    %ebx,%eax
  movd   %r14d,%xmm5
  shl    $0x14,%eax
  punpckldq %xmm5,%xmm2
  or     %eax,%edx
  mov    %ebx,%eax
  punpcklqdq %xmm2,%xmm0
  movdqa D7(%rip),%xmm2
  sar    %cl,%eax
  mov    $0x3d,%ecx
  movd   %eax,%xmm3
  lea    0x0(,%r12,8),%eax
  pand   %xmm2,%xmm0
  paddd  %xmm1,%xmm0
  movups %xmm0,(%r15)
  movd   %edx,%xmm0
  mov    %ebx,%edx
  sar    %cl,%ebx
  or     %eax,%ebx
  sar    $0x7,%edx
  mov    %r12d,%eax
  mov    $0x33,%ecx
  sar    $0x18,%eax
  movd   %ebx,%xmm6
  movd   %edx,%xmm7
  sar    %cl,%r12d
  punpckldq %xmm6,%xmm3
  punpckldq %xmm7,%xmm0
  mov    $0x29,%ecx
  punpcklqdq %xmm3,%xmm0
  pand   %xmm2,%xmm0
  paddd  %xmm1,%xmm0
  movups %xmm0,0x10(%r15)
  movd   %eax,%xmm0
  mov    %r13d,%eax
  shl    $0xd,%eax
  or     %eax,%r12d
  mov    %r13d,%eax
  sar    %cl,%r13d
  mov    $0x3a,%ecx
  sar    $0xe,%eax
  movd   %r12d,%xmm5
  movd   %eax,%xmm3
  mov    %r10d,%eax
  punpckldq %xmm5,%xmm0
  shl    $0x17,%eax
  or     %eax,%r13d
  mov    %r10d,%eax
  movd   %r13d,%xmm4
  sar    $0x4,%eax
  punpckldq %xmm4,%xmm3
  punpcklqdq %xmm3,%xmm0
  movd   %eax,%xmm3
  mov    %r10d,%eax
  sar    %cl,%r10d
  pand   %xmm2,%xmm0
  sar    $0x1f,%eax
  mov    $0x30,%ecx
  paddd  %xmm1,%xmm0
  movd   %eax,%xmm7
  movups %xmm0,0x20(%r15)
  mov    -0x1c(%rsp),%ebx
  punpckldq %xmm7,%xmm3
  mov    %ebx,%edx
  mov    %ebx,%eax
  shl    $0x6,%edx
  sar    %cl,%eax
  mov    $0x26,%ecx
  or     %edx,%r10d
  mov    %ebx,%edx
  mov    -0x18(%rsp),%ebx
  sar    $0x15,%edx
  movd   %r10d,%xmm0
  movd   %edx,%xmm6
  mov    %r8d,%edx
  punpckldq %xmm6,%xmm0
  shl    $0x10,%edx
  punpcklqdq %xmm0,%xmm3
  or     %edx,%eax
  mov    %r8d,%edx
  pand   %xmm2,%xmm3
  sar    $0xb,%edx
  movdqa %xmm3,%xmm0
  movd   %edx,%xmm5
  mov    %r9d,%edx
  paddd  %xmm1,%xmm0
  movups %xmm0,0x30(%r15)
  movd   %eax,%xmm0
  mov    %r8d,%eax
  mov    %r11d,%r8d
  sar    %cl,%eax
  shl    $0x1a,%r8d
  punpckldq %xmm5,%xmm0
  mov    $0x37,%ecx
  or     %r8d,%eax
  mov    %r11d,%r8d
  shl    $0x13,%edx
  sar    %r8d
  movd   %eax,%xmm3
  mov    %r11d,%eax
  sar    %cl,%r11d
  movd   %r8d,%xmm4
  sar    $0x1c,%eax
  mov    $0x2d,%ecx
  punpckldq %xmm4,%xmm3
  punpcklqdq %xmm3,%xmm0
  pand   %xmm2,%xmm0
  paddd  %xmm1,%xmm0
  movups %xmm0,0x40(%r15)
  movd   %eax,%xmm0
  mov    %ebx,%eax
  shl    $0x9,%eax
  or     %eax,%r11d
  mov    %ebx,%eax
  sar    %cl,%ebx
  mov    $0x23,%ecx
  sar    $0x12,%eax
  movd   %r11d,%xmm7
  movd   %eax,%xmm3
  mov    %ebx,%eax
  punpckldq %xmm7,%xmm0
  or     %edx,%eax
  lea    0x0(,%rdi,4),%edx
  movd   %eax,%xmm6
  mov    %r9d,%eax
  punpckldq %xmm6,%xmm3
  sar    $0x8,%eax
  punpcklqdq %xmm3,%xmm0
  movd   %eax,%xmm3
  mov    %r9d,%eax
  sar    %cl,%eax
  mov    $0x3e,%ecx
  pand   %xmm2,%xmm0
  sar    %cl,%r9d
  movd   %eax,%xmm5
  mov    $0x34,%ecx
  mov    %esi,%eax
  or     %edx,%r9d
  shl    $0xc,%eax
  mov    %edi,%edx
  paddd  %xmm1,%xmm0
  sar    %cl,%edi
  sar    $0x19,%edx
  movups %xmm0,0x50(%r15)
  movd   %r9d,%xmm0
  or     %eax,%edi
  mov    %esi,%eax
  movd   %edx,%xmm4
  mov    $0x2a,%ecx
  and    $0x7ffffff,%edi
  punpckldq %xmm4,%xmm0
  punpckldq %xmm5,%xmm3
  sar    %cl,%esi
  add    %ebp,%edi
  sar    $0xf,%eax
  punpcklqdq %xmm0,%xmm3
  mov    -0x10(%rsp),%rdx
  mov    %edi,0x70(%r15)
  and    $0x7ffffff,%eax
  mov    -0x14(%rsp),%edi
  pand   %xmm2,%xmm3
  add    %ebp,%eax
  movdqa %xmm3,%xmm0
  mov    %eax,0x74(%r15)
  mov    %edi,%eax
  paddd  %xmm1,%xmm0
  shl    $0x16,%eax
  movups %xmm0,0x60(%r15)
  or     %eax,%esi
  mov    %edi,%eax
  and    $0x7ffffff,%esi
  shr    $0x5,%eax
  add    %ebp,%esi
  add    %ebp,%eax
  mov    %esi,0x78(%r15)
  mov    %eax,0x7c(%r15)
  subq   $0xffffffffffffff80,(%rdx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: read_data
arguments: tag: D7
type_guessed: byte[16]

tool: {"D7": [0xff,0xff,0xff,0x07,0xff,0xff,0xff,0x07,0xff,0xff,0xff,0x07,0xff,0xff,0xff,0x07]}

assistant: ```c
void unpackforblock27_64(const uint64_t base, const uint8_t **pw, uint64_t **pout) {
  const uint64_t *pw64 = *(const uint64_t **)pw;
  uint64_t *out = *pout;
  const uint64_t mask = (134217727ULL);
  uint64_t w0 = pw64[0];
  uint64_t w1 = pw64[1];
  uint64_t w2 = pw64[2];
  uint64_t w3 = pw64[3];
  uint64_t w4 = pw64[4];
  uint64_t w5 = pw64[5];
  uint64_t w6 = pw64[6];
  uint64_t w7 = pw64[7];
  uint64_t w8 = pw64[8];
  uint64_t w9 = pw64[9];
  uint64_t w10 = pw64[10];
  uint64_t w11 = pw64[11];
  uint64_t w12 = pw64[12];
  uint64_t w13 = pw64[13];
  *pw += 108;
  out[0] = base + ((w0)&mask);
  out[1] = base + ((w0 >> 27) & mask);
  out[2] = base + (((w0 >> 54) | (w1 << 10)) & mask);
  out[3] = base + ((w1 >> 17) & mask);
  out[4] = base + (((w1 >> 44) | (w2 << 20)) & mask);
  out[5] = base + ((w2 >> 7) & mask);
  out[6] = base + ((w2 >> 34) & mask);
  out[7] = base + (((w2 >> 61) | (w3 << 3)) & mask);
  out[8] = base + ((w3 >> 24) & mask);
  out[9] = base + (((w3 >> 51) | (w4 << 13)) & mask);
  out[10] = base + ((w4 >> 14) & mask);
  out[11] = base + (((w4 >> 41) | (w5 << 23)) & mask);
  out[12] = base + ((w5 >> 4) & mask);
  out[13] = base + ((w5 >> 31) & mask);
  out[14] = base + (((w5 >> 58) | (w6 << 6)) & mask);
  out[15] = base + ((w6 >> 21) & mask);
  out[16] = base + (((w6 >> 48) | (w7 << 16)) & mask);
  out[17] = base + ((w7 >> 11) & mask);
  out[18] = base + (((w7 >> 38) | (w8 << 26)) & mask);
  out[19] = base + ((w8 >> 1) & mask);
  out[20] = base + ((w8 >> 28) & mask);
  out[21] = base + (((w8 >> 55) | (w9 << 9)) & mask);
  out[22] = base + ((w9 >> 18) & mask);
  out[23] = base + (((w9 >> 45) | (w10 << 19)) & mask);
  out[24] = base + ((w10 >> 8) & mask);
  out[25] = base + ((w10 >> 35) & mask);
  out[26] = base + (((w10 >> 62) | (w11 << 2)) & mask);
  out[27] = base + ((w11 >> 25) & mask);
  out[28] = base + (((w11 >> 52) | (w12 << 12)) & mask);
  out[29] = base + ((w12 >> 15) & mask);
  out[30] = base + (((w12 >> 42) | (w13 << 22)) & mask);
  out[31] = base + ((w13 >> 5) & mask);
  *pout += 32;
}
```