#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef scalar_t__ __m128i;
typedef int /*<<< orphan*/ __m128;

/* Variables and functions */
scalar_t__ _mm_add_epi32(scalar_t__, scalar_t__);
scalar_t__ _mm_and_si128(scalar_t__, scalar_t__);
scalar_t__ _mm_andnot_si128(scalar_t__, scalar_t__);
scalar_t__ _mm_cmplt_epi32(scalar_t__, scalar_t__);
scalar_t__ _mm_load_si128(scalar_t__ const *);
scalar_t__ _mm_or_si128(scalar_t__, scalar_t__);
scalar_t__ _mm_set1_epi32(int const);
scalar_t__ _mm_shuffle_epi32(scalar_t__, int);
scalar_t__ _mm_slli_epi32(scalar_t__, int const);
scalar_t__ _mm_srai_epi32(scalar_t__, int);
int /*<<< orphan*/ _mm_storeu_ps(float *, int /*<<< orphan*/);
scalar_t__ _mm_sub_ps(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ _mm_unpackhi_epi16(scalar_t__, scalar_t__);
scalar_t__ _mm_unpacklo_epi16(scalar_t__, scalar_t__);
scalar_t__ _mm_xor_si128(scalar_t__, scalar_t__);
int FloatUnpacker_sse2(float *dest, void *src, int n, const int Shift2,
                       const int Minimum_, const int MaxExp_,
                       const int stream_32bit) {
  unsigned int *stream32 = (unsigned int *)src;
  unsigned short *stream16 = (unsigned short *)src;
  int __attribute__((aligned(64))) Mantis_[8];
  float __attribute__((aligned(64))) Temp_[8];
  __m128i Mantis0, Mantis1;
  __m128i Temp0, Temp1, Temp02, Temp12, X0, X1, Mask0, Mask1;
  __m128i Minimum, M23, Shift1_31, Xffffff, X7fffff;
  int i, i0, j0, n0, in;
  if (n < 8)
    return (n);
  n0 = n & (~(8 - 1));
  M23 = _mm_set1_epi32(MaxExp_ << 23);
  Shift1_31 = _mm_set1_epi32(1 << 31);
  Minimum = _mm_set1_epi32(Minimum_);
  Xffffff = _mm_set1_epi32(0xffffff);
  X7fffff = _mm_set1_epi32(0x7fffff);
  if (stream_32bit) {
    for (i0 = 0, j0 = 0; i0 < n0; i0 += 8, j0 += 4) {
      in = i0 + 8;
      in = (in > n) ? n : in;
      Mantis0 = _mm_load_si128((const __m128i *)&stream32[j0]);
      Mantis1 = Mantis0;
      X0 = _mm_xor_si128(X0, X0);
      Mantis0 = _mm_unpacklo_epi16(Mantis0, X0);
      Mantis1 = _mm_unpackhi_epi16(Mantis1, X0);
      Mantis0 = _mm_shuffle_epi32(Mantis0, 0xB1);
      Mantis1 = _mm_shuffle_epi32(Mantis1, 0xB1);
      Mantis0 = _mm_slli_epi32(Mantis0, Shift2);
      Mantis1 = _mm_slli_epi32(Mantis1, Shift2);
      Mantis0 = _mm_add_epi32(Mantis0, Minimum);
      Mantis1 = _mm_add_epi32(Mantis1, Minimum);
      Temp02 = _mm_and_si128(Mantis0, Shift1_31);
      Temp12 = _mm_and_si128(Mantis1, Shift1_31);
      Mask0 = _mm_srai_epi32(Mantis0, 31);
      Mask1 = _mm_srai_epi32(Mantis1, 31);
      Mantis0 = _mm_add_epi32(Mantis0, Mask0);
      Mantis1 = _mm_add_epi32(Mantis1, Mask1);
      Mantis0 = _mm_xor_si128(Mantis0, Mask0);
      Mantis1 = _mm_xor_si128(Mantis1, Mask1);
      X0 = Xffffff;
      X1 = Xffffff;
      X0 = _mm_cmplt_epi32(X0, Mantis0);
      X1 = _mm_cmplt_epi32(X1, Mantis1);
      Mantis0 = _mm_or_si128(Mantis0, X0);
      Mantis1 = _mm_or_si128(Mantis1, X1);
      Mantis0 = _mm_and_si128(Mantis0, Xffffff);
      Mantis1 = _mm_and_si128(Mantis1, Xffffff);
      Temp02 = _mm_or_si128(Temp02, M23);
      Temp12 = _mm_or_si128(Temp12, M23);
      Temp0 = Temp02;
      Temp1 = Temp12;
      Mask0 = _mm_slli_epi32(Mantis0, 8);
      Mask1 = _mm_slli_epi32(Mantis1, 8);
      Mask0 = _mm_srai_epi32(Mask0, 31);
      Mask1 = _mm_srai_epi32(Mask1, 31);
      Mask0 = _mm_andnot_si128(Mask0, Temp02);
      Mask1 = _mm_andnot_si128(Mask1, Temp12);
      Mantis0 = _mm_and_si128(Mantis0, X7fffff);
      Mantis1 = _mm_and_si128(Mantis1, X7fffff);
      Temp0 = _mm_or_si128(Temp0, Mantis0);
      Temp1 = _mm_or_si128(Temp1, Mantis1);
      Temp0 = (__m128i)_mm_sub_ps((__m128)Temp0, (__m128)Mask0);
      Temp1 = (__m128i)_mm_sub_ps((__m128)Temp1, (__m128)Mask1);
      _mm_storeu_ps(&dest[i0], (__m128)Temp0);
      _mm_storeu_ps(&dest[i0 + 4], (__m128)Temp1);
    }
  } else {
    for (i0 = 0, j0 = 0; i0 < n0; i0 += 8, j0 += 4) {
      in = i0 + 8;
      in = (in > n) ? n : in;
      Mantis0 = _mm_load_si128((const __m128i *)&stream32[j0]);
      Mantis1 = Mantis0;
      X0 = _mm_xor_si128(X0, X0);
      Mantis0 = _mm_unpacklo_epi16(Mantis0, X0);
      Mantis1 = _mm_unpackhi_epi16(Mantis1, X0);
      Mantis0 = _mm_slli_epi32(Mantis0, Shift2);
      Mantis1 = _mm_slli_epi32(Mantis1, Shift2);
      Mantis0 = _mm_add_epi32(Mantis0, Minimum);
      Mantis1 = _mm_add_epi32(Mantis1, Minimum);
      Temp02 = _mm_and_si128(Mantis0, Shift1_31);
      Temp12 = _mm_and_si128(Mantis1, Shift1_31);
      Mask0 = _mm_srai_epi32(Mantis0, 31);
      Mask1 = _mm_srai_epi32(Mantis1, 31);
      Mantis0 = _mm_add_epi32(Mantis0, Mask0);
      Mantis1 = _mm_add_epi32(Mantis1, Mask1);
      Mantis0 = _mm_xor_si128(Mantis0, Mask0);
      Mantis1 = _mm_xor_si128(Mantis1, Mask1);
      X0 = Xffffff;
      X1 = Xffffff;
      X0 = _mm_cmplt_epi32(X0, Mantis0);
      X1 = _mm_cmplt_epi32(X1, Mantis1);
      Mantis0 = _mm_or_si128(Mantis0, X0);
      Mantis1 = _mm_or_si128(Mantis1, X1);
      Mantis0 = _mm_and_si128(Mantis0, Xffffff);
      Mantis1 = _mm_and_si128(Mantis1, Xffffff);
      Temp02 = _mm_or_si128(Temp02, M23);
      Temp12 = _mm_or_si128(Temp12, M23);
      Temp0 = Temp02;
      Temp1 = Temp12;
      Mask0 = _mm_slli_epi32(Mantis0, 8);
      Mask1 = _mm_slli_epi32(Mantis1, 8);
      Mask0 = _mm_srai_epi32(Mask0, 31);
      Mask1 = _mm_srai_epi32(Mask1, 31);
      Mask0 = _mm_andnot_si128(Mask0, Temp02);
      Mask1 = _mm_andnot_si128(Mask1, Temp12);
      Mantis0 = _mm_and_si128(Mantis0, X7fffff);
      Mantis1 = _mm_and_si128(Mantis1, X7fffff);
      Temp0 = _mm_or_si128(Temp0, Mantis0);
      Temp1 = _mm_or_si128(Temp1, Mantis1);
      Temp0 = (__m128i)_mm_sub_ps((__m128)Temp0, (__m128)Mask0);
      Temp1 = (__m128i)_mm_sub_ps((__m128)Temp1, (__m128)Mask1);
      _mm_storeu_ps(&dest[i0], (__m128)Temp0);
      _mm_storeu_ps(&dest[i0 + 4], (__m128)Temp1);
    }
  }
  return (n0);
}


x86 assembly (clang, -O0):
<FloatUnpacker_sse2>:
push   %rbp
mov    %rsp,%rbp
and    $0xffffffffffffffc0,%rsp
sub    $0x180,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,0x160(%rsp)
mov    %rsi,0x158(%rsp)
mov    %edx,0x154(%rsp)
mov    %ecx,0x150(%rsp)
mov    %r8d,0x14c(%rsp)
mov    %r9d,0x148(%rsp)
mov    0x158(%rsp),%rax
mov    %rax,0x140(%rsp)
mov    0x158(%rsp),%rax
mov    %rax,0x138(%rsp)
cmpl   $0x8,0x154(%rsp)
08
jge    1271 <FloatUnpacker_sse2+0x81>
mov    0x154(%rsp),%eax
mov    %eax,0x16c(%rsp)
jmp    1ca6 <FloatUnpacker_sse2+0xab6>
mov    0x154(%rsp),%eax
and    $0xfffffff8,%eax
mov    %eax,0x38(%rsp)
mov    0x148(%rsp),%edi
shl    $0x17,%edi
call   10a0 <_mm_set1_epi32@plt>
mov    %rax,0x60(%rsp)
mov    $0x80000000,%edi
call   10a0 <_mm_set1_epi32@plt>
mov    %rax,0x58(%rsp)
mov    0x14c(%rsp),%edi
call   10a0 <_mm_set1_epi32@plt>
mov    %rax,0x68(%rsp)
mov    $0xffffff,%edi
call   10a0 <_mm_set1_epi32@plt>
mov    %rax,0x50(%rsp)
mov    $0x7fffff,%edi
call   10a0 <_mm_set1_epi32@plt>
mov    %rax,0x48(%rsp)
cmpl   $0x0,0x10(%rbp)
je     17d5 <FloatUnpacker_sse2+0x5e5>
movl   $0x0,0x40(%rsp)
movl   $0x0,0x3c(%rsp)
mov    0x40(%rsp),%eax
cmp    0x38(%rsp),%eax
jge    17d0 <FloatUnpacker_sse2+0x5e0>
mov    0x40(%rsp),%eax
add    $0x8,%eax
mov    %eax,0x34(%rsp)
mov    0x34(%rsp),%eax
cmp    0x154(%rsp),%eax
jle    1325 <FloatUnpacker_sse2+0x135>
mov    0x154(%rsp),%eax
mov    %eax,0x30(%rsp)
jmp    132d <FloatUnpacker_sse2+0x13d>
mov    0x34(%rsp),%eax
mov    %eax,0x30(%rsp)
mov    0x30(%rsp),%eax
mov    %eax,0x34(%rsp)
mov    0x140(%rsp),%rdi
movslq 0x3c(%rsp),%rax
shl    $0x2,%rax
add    %rax,%rdi
call   1030 <_mm_load_si128@plt>
mov    %rax,0xb8(%rsp)
mov    0xb8(%rsp),%rax
mov    %rax,0xb0(%rsp)
mov    0x88(%rsp),%rdi
mov    0x88(%rsp),%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,0x88(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x88(%rsp),%rsi
call   1100 <_mm_unpacklo_epi16@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x88(%rsp),%rsi
call   1040 <_mm_unpackhi_epi16@plt>
mov    %rax,0xb0(%rsp)
mov    0xb8(%rsp),%rdi
mov    $0xb1,%esi
call   1080 <_mm_shuffle_epi32@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    $0xb1,%esi
call   1080 <_mm_shuffle_epi32@plt>
mov    %rax,0xb0(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x150(%rsp),%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x150(%rsp),%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,0xb0(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x68(%rsp),%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x68(%rsp),%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,0xb0(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x58(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0x98(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x58(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0x90(%rsp)
mov    0xb8(%rsp),%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,0x78(%rsp)
mov    0xb0(%rsp),%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,0x70(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x78(%rsp),%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x70(%rsp),%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,0xb0(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x78(%rsp),%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x70(%rsp),%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,0xb0(%rsp)
mov    0x50(%rsp),%rax
mov    %rax,0x88(%rsp)
mov    0x50(%rsp),%rax
mov    %rax,0x80(%rsp)
mov    0x88(%rsp),%rdi
mov    0xb8(%rsp),%rsi
call   1110 <_mm_cmplt_epi32@plt>
mov    %rax,0x88(%rsp)
mov    0x80(%rsp),%rdi
mov    0xb0(%rsp),%rsi
call   1110 <_mm_cmplt_epi32@plt>
mov    %rax,0x80(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x88(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x80(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0xb0(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x50(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x50(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0xb0(%rsp)
mov    0x98(%rsp),%rdi
mov    0x60(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0x98(%rsp)
mov    0x90(%rsp),%rdi
mov    0x60(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0x90(%rsp)
mov    0x98(%rsp),%rax
mov    %rax,0xa8(%rsp)
mov    0x90(%rsp),%rax
mov    %rax,0xa0(%rsp)
mov    0xb8(%rsp),%rdi
mov    $0x8,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,0x78(%rsp)
mov    0xb0(%rsp),%rdi
mov    $0x8,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,0x70(%rsp)
mov    0x78(%rsp),%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,0x78(%rsp)
mov    0x70(%rsp),%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,0x70(%rsp)
mov    0x78(%rsp),%rdi
mov    0x98(%rsp),%rsi
call   10d0 <_mm_andnot_si128@plt>
mov    %rax,0x78(%rsp)
mov    0x70(%rsp),%rdi
mov    0x90(%rsp),%rsi
call   10d0 <_mm_andnot_si128@plt>
mov    %rax,0x70(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x48(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x48(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0xb0(%rsp)
mov    0xa8(%rsp),%rdi
mov    0xb8(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0xa8(%rsp)
mov    0xa0(%rsp),%rdi
mov    0xb0(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0xa0(%rsp)
mov    0xa8(%rsp),%rax
mov    %eax,%edi
mov    0x78(%rsp),%rax
mov    %eax,%esi
call   1090 <_mm_sub_ps@plt>
mov    %rax,0xa8(%rsp)
mov    0xa0(%rsp),%rax
mov    %eax,%edi
mov    0x70(%rsp),%rax
mov    %eax,%esi
call   1090 <_mm_sub_ps@plt>
mov    %rax,0xa0(%rsp)
mov    0x160(%rsp),%rdi
movslq 0x40(%rsp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    0xa8(%rsp),%rax
mov    %eax,%esi
call   1060 <_mm_storeu_ps@plt>
mov    0x160(%rsp),%rdi
mov    0x40(%rsp),%eax
add    $0x4,%eax
cltq
shl    $0x2,%rax
add    %rax,%rdi
mov    0xa0(%rsp),%rax
mov    %eax,%esi
call   1060 <_mm_storeu_ps@plt>
mov    0x40(%rsp),%eax
add    $0x8,%eax
mov    %eax,0x40(%rsp)
mov    0x3c(%rsp),%eax
add    $0x4,%eax
mov    %eax,0x3c(%rsp)
jmp    12eb <FloatUnpacker_sse2+0xfb>
jmp    1c9b <FloatUnpacker_sse2+0xaab>
movl   $0x0,0x40(%rsp)
movl   $0x0,0x3c(%rsp)
mov    0x40(%rsp),%eax
cmp    0x38(%rsp),%eax
jge    1c96 <FloatUnpacker_sse2+0xaa6>
mov    0x40(%rsp),%eax
add    $0x8,%eax
mov    %eax,0x34(%rsp)
mov    0x34(%rsp),%eax
cmp    0x154(%rsp),%eax
jle    181f <FloatUnpacker_sse2+0x62f>
mov    0x154(%rsp),%eax
mov    %eax,0x2c(%rsp)
jmp    1827 <FloatUnpacker_sse2+0x637>
mov    0x34(%rsp),%eax
mov    %eax,0x2c(%rsp)
mov    0x2c(%rsp),%eax
mov    %eax,0x34(%rsp)
mov    0x140(%rsp),%rdi
movslq 0x3c(%rsp),%rax
shl    $0x2,%rax
add    %rax,%rdi
call   1030 <_mm_load_si128@plt>
mov    %rax,0xb8(%rsp)
mov    0xb8(%rsp),%rax
mov    %rax,0xb0(%rsp)
mov    0x88(%rsp),%rdi
mov    0x88(%rsp),%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,0x88(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x88(%rsp),%rsi
call   1100 <_mm_unpacklo_epi16@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x88(%rsp),%rsi
call   1040 <_mm_unpackhi_epi16@plt>
mov    %rax,0xb0(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x150(%rsp),%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x150(%rsp),%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,0xb0(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x68(%rsp),%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x68(%rsp),%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,0xb0(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x58(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0x98(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x58(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0x90(%rsp)
mov    0xb8(%rsp),%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,0x78(%rsp)
mov    0xb0(%rsp),%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,0x70(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x78(%rsp),%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x70(%rsp),%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,0xb0(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x78(%rsp),%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x70(%rsp),%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,0xb0(%rsp)
mov    0x50(%rsp),%rax
mov    %rax,0x88(%rsp)
mov    0x50(%rsp),%rax
mov    %rax,0x80(%rsp)
mov    0x88(%rsp),%rdi
mov    0xb8(%rsp),%rsi
call   1110 <_mm_cmplt_epi32@plt>
mov    %rax,0x88(%rsp)
mov    0x80(%rsp),%rdi
mov    0xb0(%rsp),%rsi
call   1110 <_mm_cmplt_epi32@plt>
mov    %rax,0x80(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x88(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x80(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0xb0(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x50(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x50(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0xb0(%rsp)
mov    0x98(%rsp),%rdi
mov    0x60(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0x98(%rsp)
mov    0x90(%rsp),%rdi
mov    0x60(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0x90(%rsp)
mov    0x98(%rsp),%rax
mov    %rax,0xa8(%rsp)
mov    0x90(%rsp),%rax
mov    %rax,0xa0(%rsp)
mov    0xb8(%rsp),%rdi
mov    $0x8,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,0x78(%rsp)
mov    0xb0(%rsp),%rdi
mov    $0x8,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,0x70(%rsp)
mov    0x78(%rsp),%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,0x78(%rsp)
mov    0x70(%rsp),%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,0x70(%rsp)
mov    0x78(%rsp),%rdi
mov    0x98(%rsp),%rsi
call   10d0 <_mm_andnot_si128@plt>
mov    %rax,0x78(%rsp)
mov    0x70(%rsp),%rdi
mov    0x90(%rsp),%rsi
call   10d0 <_mm_andnot_si128@plt>
mov    %rax,0x70(%rsp)
mov    0xb8(%rsp),%rdi
mov    0x48(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0xb8(%rsp)
mov    0xb0(%rsp),%rdi
mov    0x48(%rsp),%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0xb0(%rsp)
mov    0xa8(%rsp),%rdi
mov    0xb8(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0xa8(%rsp)
mov    0xa0(%rsp),%rdi
mov    0xb0(%rsp),%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,0xa0(%rsp)
mov    0xa8(%rsp),%rax
mov    %eax,%edi
mov    0x78(%rsp),%rax
mov    %eax,%esi
call   1090 <_mm_sub_ps@plt>
mov    %rax,0xa8(%rsp)
mov    0xa0(%rsp),%rax
mov    %eax,%edi
mov    0x70(%rsp),%rax
mov    %eax,%esi
call   1090 <_mm_sub_ps@plt>
mov    %rax,0xa0(%rsp)
mov    0x160(%rsp),%rdi
movslq 0x40(%rsp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    0xa8(%rsp),%rax
mov    %eax,%esi
call   1060 <_mm_storeu_ps@plt>
mov    0x160(%rsp),%rdi
mov    0x40(%rsp),%eax
add    $0x4,%eax
cltq
shl    $0x2,%rax
add    %rax,%rdi
mov    0xa0(%rsp),%rax
mov    %eax,%esi
call   1060 <_mm_storeu_ps@plt>
mov    0x40(%rsp),%eax
add    $0x8,%eax
mov    %eax,0x40(%rsp)
mov    0x3c(%rsp),%eax
add    $0x4,%eax
mov    %eax,0x3c(%rsp)
jmp    17e5 <FloatUnpacker_sse2+0x5f5>
jmp    1c9b <FloatUnpacker_sse2+0xaab>
mov    0x38(%rsp),%eax
mov    %eax,0x16c(%rsp)
mov    0x16c(%rsp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FloatUnpacker_sse2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %edx,%ebp
cmp    $0x8,%edx
jl     17e2 <FloatUnpacker_sse2+0x5f2>
mov    %r8d,%ebx
mov    %ecx,%r15d
mov    %rsi,%r12
mov    %rdi,%r13
and    $0xfffffff8,%ebp
shl    $0x17,%r9d
mov    %r9d,%edi
call   10a0 <_mm_set1_epi32@plt>
mov    %rax,0x70(%rsp)
mov    $0x80000000,%edi
call   10a0 <_mm_set1_epi32@plt>
mov    %rax,0x68(%rsp)
mov    %ebx,%edi
call   10a0 <_mm_set1_epi32@plt>
mov    %rax,%rbx
mov    $0xffffff,%edi
call   10a0 <_mm_set1_epi32@plt>
mov    %rax,%r14
mov    $0x7fffff,%edi
call   10a0 <_mm_set1_epi32@plt>
cmpl   $0x0,0xb0(%rsp)
mov    %r15d,0x24(%rsp)
je     1533 <FloatUnpacker_sse2+0x343>
test   %ebp,%ebp
je     17e0 <FloatUnpacker_sse2+0x5f0>
mov    %ebp,0x14(%rsp)
mov    %ebp,%ecx
mov    %rcx,0x28(%rsp)
xor    %ecx,%ecx
mov    %rbx,0x40(%rsp)
mov    %r14,0x38(%rsp)
mov    %rax,0x30(%rsp)
mov    %r13,0x58(%rsp)
mov    %r12,0x60(%rsp)
add    $0x8,%rcx
mov    %rcx,0x50(%rsp)
mov    %r12,%rdi
call   1030 <_mm_load_si128@plt>
mov    %rax,%rbx
mov    0x48(%rsp),%rdi
mov    %rdi,%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    %rax,%rsi
call   1100 <_mm_unpacklo_epi16@plt>
mov    %rax,%r14
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1040 <_mm_unpackhi_epi16@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0xb1,%esi
call   1080 <_mm_shuffle_epi32@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    $0xb1,%esi
call   1080 <_mm_shuffle_epi32@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    %r15d,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    %r15d,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,%r14
mov    %rbp,%rdi
mov    0x40(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,%r13
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,%rbp
mov    %r13,%rdi
mov    0x68(%rsp),%rbx
mov    %rbx,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0x8(%rsp)
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0x18(%rsp)
mov    %r13,%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,%r14
mov    %rbp,%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,%r15
mov    %r13,%rdi
mov    %r14,%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    %r15,%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    %r14,%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,%r13
mov    %rbp,%rdi
mov    %r15,%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,%r12
mov    0x38(%rsp),%rbx
mov    %rbx,%rdi
mov    %r13,%rsi
call   1110 <_mm_cmplt_epi32@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    %r12,%rsi
call   1110 <_mm_cmplt_epi32@plt>
mov    %rax,%r14
mov    %r13,%rdi
mov    %rbp,0x48(%rsp)
mov    %rbp,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%r15
mov    %r12,%rdi
mov    %r14,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%rbp
mov    %r15,%rdi
mov    %rbx,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,%r15
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,%r14
mov    0x8(%rsp),%rdi
mov    0x70(%rsp),%rbx
mov    %rbx,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%r13
mov    0x18(%rsp),%rdi
mov    %rbx,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%r12
mov    %r15,%rdi
mov    $0x8,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x8,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    %r13,%rsi
call   10d0 <_mm_andnot_si128@plt>
mov    %rax,0x18(%rsp)
mov    %rbp,%rdi
mov    %r12,%rsi
call   10d0 <_mm_andnot_si128@plt>
mov    %rax,0x8(%rsp)
mov    %r15,%rdi
mov    0x24(%rsp),%r15d
mov    0x30(%rsp),%rbx
mov    %rbx,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,%rbp
mov    %r14,%rdi
mov    %rbx,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,%rbx
mov    %r13,%rdi
mov    0x58(%rsp),%r13
mov    %rbp,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%rbp
mov    %r12,%rdi
mov    0x60(%rsp),%r12
mov    %rbx,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%rbx
mov    %ebp,%edi
mov    0x18(%rsp),%rsi
call   1090 <_mm_sub_ps@plt>
mov    %rax,%rbp
mov    %ebx,%edi
mov    0x8(%rsp),%rsi
call   1090 <_mm_sub_ps@plt>
mov    %rax,%rbx
mov    %r13,%rdi
mov    %ebp,%esi
call   1060 <_mm_storeu_ps@plt>
lea    0x10(%r13),%rdi
mov    %ebx,%esi
call   1060 <_mm_storeu_ps@plt>
mov    0x50(%rsp),%rcx
add    $0x20,%r13
add    $0x10,%r12
cmp    0x28(%rsp),%rcx
jb     1290 <FloatUnpacker_sse2+0xa0>
jmp    17da <FloatUnpacker_sse2+0x5ea>
test   %ebp,%ebp
je     17e0 <FloatUnpacker_sse2+0x5f0>
mov    %ebp,0x14(%rsp)
mov    %ebp,%ecx
mov    %rcx,0x28(%rsp)
xor    %ecx,%ecx
mov    %rbx,0x40(%rsp)
mov    %r14,0x38(%rsp)
mov    %rax,0x30(%rsp)
nopw   0x0(%rax,%rax,1)
mov    %r13,0x58(%rsp)
mov    %r12,0x60(%rsp)
add    $0x8,%rcx
mov    %rcx,0x50(%rsp)
mov    %r12,%rdi
call   1030 <_mm_load_si128@plt>
mov    %rax,%rbx
mov    0x48(%rsp),%rdi
mov    %rdi,%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    %rax,%rsi
call   1100 <_mm_unpacklo_epi16@plt>
mov    %rax,%r14
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1040 <_mm_unpackhi_epi16@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    %r15d,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    %r15d,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,%r14
mov    %rbp,%rdi
mov    0x40(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,%r13
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,%rbp
mov    %r13,%rdi
mov    0x68(%rsp),%rbx
mov    %rbx,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,%r14
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,0x8(%rsp)
mov    %r13,%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,%r15
mov    %rbp,%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,%r12
mov    %r13,%rdi
mov    %r15,%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    %r12,%rsi
call   1050 <_mm_add_epi32@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    %r15,%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,%r15
mov    %rbp,%rdi
mov    %r12,%rsi
call   10c0 <_mm_xor_si128@plt>
mov    %rax,%r13
mov    0x38(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1110 <_mm_cmplt_epi32@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    %r13,%rsi
call   1110 <_mm_cmplt_epi32@plt>
mov    %rax,%r12
mov    %r15,%rdi
mov    %rbp,0x48(%rsp)
mov    %rbp,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%r15
mov    %r13,%rdi
mov    %r12,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%rbp
mov    %r15,%rdi
mov    %rbx,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,%r15
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,%r12
mov    %r14,%rdi
mov    0x70(%rsp),%rbx
mov    %rbx,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%r14
mov    0x8(%rsp),%rdi
mov    %rbx,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%r13
mov    %r15,%rdi
mov    $0x8,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,%rbp
mov    %r12,%rdi
mov    $0x8,%esi
call   10e0 <_mm_slli_epi32@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    $0x1f,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    %r14,%rsi
call   10d0 <_mm_andnot_si128@plt>
mov    %rax,0x18(%rsp)
mov    %rbx,%rdi
mov    %r13,%rsi
call   10d0 <_mm_andnot_si128@plt>
mov    %rax,0x8(%rsp)
mov    %r15,%rdi
mov    0x24(%rsp),%r15d
mov    0x30(%rsp),%rbp
mov    %rbp,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,%rbx
mov    %r12,%rdi
mov    0x60(%rsp),%r12
mov    %rbp,%rsi
call   10f0 <_mm_and_si128@plt>
mov    %rax,%rbp
mov    %r14,%rdi
mov    %rbx,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%rbx
mov    %r13,%rdi
mov    0x58(%rsp),%r13
mov    %rbp,%rsi
call   10b0 <_mm_or_si128@plt>
mov    %rax,%rbp
mov    %ebx,%edi
mov    0x18(%rsp),%rsi
call   1090 <_mm_sub_ps@plt>
mov    %rax,%rbx
mov    %ebp,%edi
mov    0x8(%rsp),%rsi
call   1090 <_mm_sub_ps@plt>
mov    %rax,%rbp
mov    %r13,%rdi
mov    %ebx,%esi
call   1060 <_mm_storeu_ps@plt>
lea    0x10(%r13),%rdi
mov    %ebp,%esi
call   1060 <_mm_storeu_ps@plt>
mov    0x50(%rsp),%rcx
add    $0x20,%r13
add    $0x10,%r12
cmp    0x28(%rsp),%rcx
jb     1560 <FloatUnpacker_sse2+0x370>
mov    0x14(%rsp),%ebp
jmp    17e2 <FloatUnpacker_sse2+0x5f2>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @FloatUnpacker_sse2(float* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca float*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32*
%17 = alloca i16*
%18 = alloca [8 x i32]
%19 = alloca [8 x float]
%20 = alloca i64
%21 = alloca i64
%22 = alloca i64
%23 = alloca i64
%24 = alloca i64
%25 = alloca i64
%26 = alloca i64
%27 = alloca i64
%28 = alloca i64
%29 = alloca i64
%30 = alloca i64
%31 = alloca i64
%32 = alloca i64
%33 = alloca i64
%34 = alloca i64
%35 = alloca i32
%36 = alloca i32
%37 = alloca i32
%38 = alloca i32
%39 = alloca i32
store float* %0, float** %9
store i8* %1, i8** %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
%40 = load i8*, i8** %10
%41 = bitcast i8* %40 to i32*
store i32* %41, i32** %16
%42 = load i8*, i8** %10
%43 = bitcast i8* %42 to i16*
store i16* %43, i16** %17
%44 = load i32, i32* %11
%45 = icmp slt i32 %44, 8
br i1 %45, label %46, label %48
46: ; preds = %7
%47 = load i32, i32* %11
store i32 %47, i32* %8
br label %371
48: ; preds = %7
%49 = load i32, i32* %11
%50 = and i32 %49, -8
store i32 %50, i32* %38
%51 = load i32, i32* %14
%52 = shl i32 %51, 23
%53 = call i64 @_mm_set1_epi32(i32 %52)
store i64 %53, i64* %31
%54 = call i64 @_mm_set1_epi32(i32 -2147483648)
store i64 %54, i64* %32
%55 = load i32, i32* %13
%56 = call i64 @_mm_set1_epi32(i32 %55)
store i64 %56, i64* %30
%57 = call i64 @_mm_set1_epi32(i32 16777215)
store i64 %57, i64* %33
%58 = call i64 @_mm_set1_epi32(i32 8388607)
store i64 %58, i64* %34
%59 = load i32, i32* %15
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %217
61: ; preds = %48
store i32 0, i32* %36
store i32 0, i32* %37
br label %62
62: ; preds = %211, %61
%63 = load i32, i32* %36
%64 = load i32, i32* %38
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %216
66: ; preds = %62
%67 = load i32, i32* %36
%68 = add nsw i32 %67, 8
store i32 %68, i32* %39
%69 = load i32, i32* %39
%70 = load i32, i32* %11
%71 = icmp sgt i32 %69, %70
br i1 %71, label %72, label %74
72: ; preds = %66
%73 = load i32, i32* %11
br label %76
74: ; preds = %66
%75 = load i32, i32* %39
br label %76
76: ; preds = %74, %72
%77 = phi i32 [ %73, %72 ], [ %75, %74 ]
store i32 %77, i32* %39
%78 = load i32*, i32** %16
%79 = load i32, i32* %37
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, i32* %78, i64 %80
%82 = bitcast i32* %81 to i64*
%83 = call i64 @_mm_load_si128(i64* %82)
store i64 %83, i64* %20
%84 = load i64, i64* %20
store i64 %84, i64* %21
%85 = load i64, i64* %26
%86 = load i64, i64* %26
%87 = call i64 @_mm_xor_si128(i64 %85, i64 %86)
store i64 %87, i64* %26
%88 = load i64, i64* %20
%89 = load i64, i64* %26
%90 = call i64 @_mm_unpacklo_epi16(i64 %88, i64 %89)
store i64 %90, i64* %20
%91 = load i64, i64* %21
%92 = load i64, i64* %26
%93 = call i64 @_mm_unpackhi_epi16(i64 %91, i64 %92)
store i64 %93, i64* %21
%94 = load i64, i64* %20
%95 = call i64 @_mm_shuffle_epi32(i64 %94, i32 177)
store i64 %95, i64* %20
%96 = load i64, i64* %21
%97 = call i64 @_mm_shuffle_epi32(i64 %96, i32 177)
store i64 %97, i64* %21
%98 = load i64, i64* %20
%99 = load i32, i32* %12
%100 = call i64 @_mm_slli_epi32(i64 %98, i32 %99)
store i64 %100, i64* %20
%101 = load i64, i64* %21
%102 = load i32, i32* %12
%103 = call i64 @_mm_slli_epi32(i64 %101, i32 %102)
store i64 %103, i64* %21
%104 = load i64, i64* %20
%105 = load i64, i64* %30
%106 = call i64 @_mm_add_epi32(i64 %104, i64 %105)
store i64 %106, i64* %20
%107 = load i64, i64* %21
%108 = load i64, i64* %30
%109 = call i64 @_mm_add_epi32(i64 %107, i64 %108)
store i64 %109, i64* %21
%110 = load i64, i64* %20
%111 = load i64, i64* %32
%112 = call i64 @_mm_and_si128(i64 %110, i64 %111)
store i64 %112, i64* %24
%113 = load i64, i64* %21
%114 = load i64, i64* %32
%115 = call i64 @_mm_and_si128(i64 %113, i64 %114)
store i64 %115, i64* %25
%116 = load i64, i64* %20
%117 = call i64 @_mm_srai_epi32(i64 %116, i32 31)
store i64 %117, i64* %28
%118 = load i64, i64* %21
%119 = call i64 @_mm_srai_epi32(i64 %118, i32 31)
store i64 %119, i64* %29
%120 = load i64, i64* %20
%121 = load i64, i64* %28
%122 = call i64 @_mm_add_epi32(i64 %120, i64 %121)
store i64 %122, i64* %20
%123 = load i64, i64* %21
%124 = load i64, i64* %29
%125 = call i64 @_mm_add_epi32(i64 %123, i64 %124)
store i64 %125, i64* %21
%126 = load i64, i64* %20
%127 = load i64, i64* %28
%128 = call i64 @_mm_xor_si128(i64 %126, i64 %127)
store i64 %128, i64* %20
%129 = load i64, i64* %21
%130 = load i64, i64* %29
%131 = call i64 @_mm_xor_si128(i64 %129, i64 %130)
store i64 %131, i64* %21
%132 = load i64, i64* %33
store i64 %132, i64* %26
%133 = load i64, i64* %33
store i64 %133, i64* %27
%134 = load i64, i64* %26
%135 = load i64, i64* %20
%136 = call i64 @_mm_cmplt_epi32(i64 %134, i64 %135)
store i64 %136, i64* %26
%137 = load i64, i64* %27
%138 = load i64, i64* %21
%139 = call i64 @_mm_cmplt_epi32(i64 %137, i64 %138)
store i64 %139, i64* %27
%140 = load i64, i64* %20
%141 = load i64, i64* %26
%142 = call i64 @_mm_or_si128(i64 %140, i64 %141)
store i64 %142, i64* %20
%143 = load i64, i64* %21
%144 = load i64, i64* %27
%145 = call i64 @_mm_or_si128(i64 %143, i64 %144)
store i64 %145, i64* %21
%146 = load i64, i64* %20
%147 = load i64, i64* %33
%148 = call i64 @_mm_and_si128(i64 %146, i64 %147)
store i64 %148, i64* %20
%149 = load i64, i64* %21
%150 = load i64, i64* %33
%151 = call i64 @_mm_and_si128(i64 %149, i64 %150)
store i64 %151, i64* %21
%152 = load i64, i64* %24
%153 = load i64, i64* %31
%154 = call i64 @_mm_or_si128(i64 %152, i64 %153)
store i64 %154, i64* %24
%155 = load i64, i64* %25
%156 = load i64, i64* %31
%157 = call i64 @_mm_or_si128(i64 %155, i64 %156)
store i64 %157, i64* %25
%158 = load i64, i64* %24
store i64 %158, i64* %22
%159 = load i64, i64* %25
store i64 %159, i64* %23
%160 = load i64, i64* %20
%161 = call i64 @_mm_slli_epi32(i64 %160, i32 8)
store i64 %161, i64* %28
%162 = load i64, i64* %21
%163 = call i64 @_mm_slli_epi32(i64 %162, i32 8)
store i64 %163, i64* %29
%164 = load i64, i64* %28
%165 = call i64 @_mm_srai_epi32(i64 %164, i32 31)
store i64 %165, i64* %28
%166 = load i64, i64* %29
%167 = call i64 @_mm_srai_epi32(i64 %166, i32 31)
store i64 %167, i64* %29
%168 = load i64, i64* %28
%169 = load i64, i64* %24
%170 = call i64 @_mm_andnot_si128(i64 %168, i64 %169)
store i64 %170, i64* %28
%171 = load i64, i64* %29
%172 = load i64, i64* %25
%173 = call i64 @_mm_andnot_si128(i64 %171, i64 %172)
store i64 %173, i64* %29
%174 = load i64, i64* %20
%175 = load i64, i64* %34
%176 = call i64 @_mm_and_si128(i64 %174, i64 %175)
store i64 %176, i64* %20
%177 = load i64, i64* %21
%178 = load i64, i64* %34
%179 = call i64 @_mm_and_si128(i64 %177, i64 %178)
store i64 %179, i64* %21
%180 = load i64, i64* %22
%181 = load i64, i64* %20
%182 = call i64 @_mm_or_si128(i64 %180, i64 %181)
store i64 %182, i64* %22
%183 = load i64, i64* %23
%184 = load i64, i64* %21
%185 = call i64 @_mm_or_si128(i64 %183, i64 %184)
store i64 %185, i64* %23
%186 = load i64, i64* %22
%187 = trunc i64 %186 to i32
%188 = load i64, i64* %28
%189 = trunc i64 %188 to i32
%190 = call i64 @_mm_sub_ps(i32 %187, i32 %189)
store i64 %190, i64* %22
%191 = load i64, i64* %23
%192 = trunc i64 %191 to i32
%193 = load i64, i64* %29
%194 = trunc i64 %193 to i32
%195 = call i64 @_mm_sub_ps(i32 %192, i32 %194)
store i64 %195, i64* %23
%196 = load float*, float** %9
%197 = load i32, i32* %36
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds float, float* %196, i64 %198
%200 = load i64, i64* %22
%201 = trunc i64 %200 to i32
%202 = call i32 @_mm_storeu_ps(float* %199, i32 %201)
%203 = load float*, float** %9
%204 = load i32, i32* %36
%205 = add nsw i32 %204, 4
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds float, float* %203, i64 %206
%208 = load i64, i64* %23
%209 = trunc i64 %208 to i32
%210 = call i32 @_mm_storeu_ps(float* %207, i32 %209)
br label %211
211: ; preds = %76
%212 = load i32, i32* %36
%213 = add nsw i32 %212, 8
store i32 %213, i32* %36
%214 = load i32, i32* %37
%215 = add nsw i32 %214, 4
store i32 %215, i32* %37
br label %62
216: ; preds = %62
br label %369
217: ; preds = %48
store i32 0, i32* %36
store i32 0, i32* %37
br label %218
218: ; preds = %363, %217
%219 = load i32, i32* %36
%220 = load i32, i32* %38
%221 = icmp slt i32 %219, %220
br i1 %221, label %222, label %368
222: ; preds = %218
%223 = load i32, i32* %36
%224 = add nsw i32 %223, 8
store i32 %224, i32* %39
%225 = load i32, i32* %39
%226 = load i32, i32* %11
%227 = icmp sgt i32 %225, %226
br i1 %227, label %228, label %230
228: ; preds = %222
%229 = load i32, i32* %11
br label %232
230: ; preds = %222
%231 = load i32, i32* %39
br label %232
232: ; preds = %230, %228
%233 = phi i32 [ %229, %228 ], [ %231, %230 ]
store i32 %233, i32* %39
%234 = load i32*, i32** %16
%235 = load i32, i32* %37
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds i32, i32* %234, i64 %236
%238 = bitcast i32* %237 to i64*
%239 = call i64 @_mm_load_si128(i64* %238)
store i64 %239, i64* %20
%240 = load i64, i64* %20
store i64 %240, i64* %21
%241 = load i64, i64* %26
%242 = load i64, i64* %26
%243 = call i64 @_mm_xor_si128(i64 %241, i64 %242)
store i64 %243, i64* %26
%244 = load i64, i64* %20
%245 = load i64, i64* %26
%246 = call i64 @_mm_unpacklo_epi16(i64 %244, i64 %245)
store i64 %246, i64* %20
%247 = load i64, i64* %21
%248 = load i64, i64* %26
%249 = call i64 @_mm_unpackhi_epi16(i64 %247, i64 %248)
store i64 %249, i64* %21
%250 = load i64, i64* %20
%251 = load i32, i32* %12
%252 = call i64 @_mm_slli_epi32(i64 %250, i32 %251)
store i64 %252, i64* %20
%253 = load i64, i64* %21
%254 = load i32, i32* %12
%255 = call i64 @_mm_slli_epi32(i64 %253, i32 %254)
store i64 %255, i64* %21
%256 = load i64, i64* %20
%257 = load i64, i64* %30
%258 = call i64 @_mm_add_epi32(i64 %256, i64 %257)
store i64 %258, i64* %20
%259 = load i64, i64* %21
%260 = load i64, i64* %30
%261 = call i64 @_mm_add_epi32(i64 %259, i64 %260)
store i64 %261, i64* %21
%262 = load i64, i64* %20
%263 = load i64, i64* %32
%264 = call i64 @_mm_and_si128(i64 %262, i64 %263)
store i64 %264, i64* %24
%265 = load i64, i64* %21
%266 = load i64, i64* %32
%267 = call i64 @_mm_and_si128(i64 %265, i64 %266)
store i64 %267, i64* %25
%268 = load i64, i64* %20
%269 = call i64 @_mm_srai_epi32(i64 %268, i32 31)
store i64 %269, i64* %28
%270 = load i64, i64* %21
%271 = call i64 @_mm_srai_epi32(i64 %270, i32 31)
store i64 %271, i64* %29
%272 = load i64, i64* %20
%273 = load i64, i64* %28
%274 = call i64 @_mm_add_epi32(i64 %272, i64 %273)
store i64 %274, i64* %20
%275 = load i64, i64* %21
%276 = load i64, i64* %29
%277 = call i64 @_mm_add_epi32(i64 %275, i64 %276)
store i64 %277, i64* %21
%278 = load i64, i64* %20
%279 = load i64, i64* %28
%280 = call i64 @_mm_xor_si128(i64 %278, i64 %279)
store i64 %280, i64* %20
%281 = load i64, i64* %21
%282 = load i64, i64* %29
%283 = call i64 @_mm_xor_si128(i64 %281, i64 %282)
store i64 %283, i64* %21
%284 = load i64, i64* %33
store i64 %284, i64* %26
%285 = load i64, i64* %33
store i64 %285, i64* %27
%286 = load i64, i64* %26
%287 = load i64, i64* %20
%288 = call i64 @_mm_cmplt_epi32(i64 %286, i64 %287)
store i64 %288, i64* %26
%289 = load i64, i64* %27
%290 = load i64, i64* %21
%291 = call i64 @_mm_cmplt_epi32(i64 %289, i64 %290)
store i64 %291, i64* %27
%292 = load i64, i64* %20
%293 = load i64, i64* %26
%294 = call i64 @_mm_or_si128(i64 %292, i64 %293)
store i64 %294, i64* %20
%295 = load i64, i64* %21
%296 = load i64, i64* %27
%297 = call i64 @_mm_or_si128(i64 %295, i64 %296)
store i64 %297, i64* %21
%298 = load i64, i64* %20
%299 = load i64, i64* %33
%300 = call i64 @_mm_and_si128(i64 %298, i64 %299)
store i64 %300, i64* %20
%301 = load i64, i64* %21
%302 = load i64, i64* %33
%303 = call i64 @_mm_and_si128(i64 %301, i64 %302)
store i64 %303, i64* %21
%304 = load i64, i64* %24
%305 = load i64, i64* %31
%306 = call i64 @_mm_or_si128(i64 %304, i64 %305)
store i64 %306, i64* %24
%307 = load i64, i64* %25
%308 = load i64, i64* %31
%309 = call i64 @_mm_or_si128(i64 %307, i64 %308)
store i64 %309, i64* %25
%310 = load i64, i64* %24
store i64 %310, i64* %22
%311 = load i64, i64* %25
store i64 %311, i64* %23
%312 = load i64, i64* %20
%313 = call i64 @_mm_slli_epi32(i64 %312, i32 8)
store i64 %313, i64* %28
%314 = load i64, i64* %21
%315 = call i64 @_mm_slli_epi32(i64 %314, i32 8)
store i64 %315, i64* %29
%316 = load i64, i64* %28
%317 = call i64 @_mm_srai_epi32(i64 %316, i32 31)
store i64 %317, i64* %28
%318 = load i64, i64* %29
%319 = call i64 @_mm_srai_epi32(i64 %318, i32 31)
store i64 %319, i64* %29
%320 = load i64, i64* %28
%321 = load i64, i64* %24
%322 = call i64 @_mm_andnot_si128(i64 %320, i64 %321)
store i64 %322, i64* %28
%323 = load i64, i64* %29
%324 = load i64, i64* %25
%325 = call i64 @_mm_andnot_si128(i64 %323, i64 %324)
store i64 %325, i64* %29
%326 = load i64, i64* %20
%327 = load i64, i64* %34
%328 = call i64 @_mm_and_si128(i64 %326, i64 %327)
store i64 %328, i64* %20
%329 = load i64, i64* %21
%330 = load i64, i64* %34
%331 = call i64 @_mm_and_si128(i64 %329, i64 %330)
store i64 %331, i64* %21
%332 = load i64, i64* %22
%333 = load i64, i64* %20
%334 = call i64 @_mm_or_si128(i64 %332, i64 %333)
store i64 %334, i64* %22
%335 = load i64, i64* %23
%336 = load i64, i64* %21
%337 = call i64 @_mm_or_si128(i64 %335, i64 %336)
store i64 %337, i64* %23
%338 = load i64, i64* %22
%339 = trunc i64 %338 to i32
%340 = load i64, i64* %28
%341 = trunc i64 %340 to i32
%342 = call i64 @_mm_sub_ps(i32 %339, i32 %341)
store i64 %342, i64* %22
%343 = load i64, i64* %23
%344 = trunc i64 %343 to i32
%345 = load i64, i64* %29
%346 = trunc i64 %345 to i32
%347 = call i64 @_mm_sub_ps(i32 %344, i32 %346)
store i64 %347, i64* %23
%348 = load float*, float** %9
%349 = load i32, i32* %36
%350 = sext i32 %349 to i64
%351 = getelementptr inbounds float, float* %348, i64 %350
%352 = load i64, i64* %22
%353 = trunc i64 %352 to i32
%354 = call i32 @_mm_storeu_ps(float* %351, i32 %353)
%355 = load float*, float** %9
%356 = load i32, i32* %36
%357 = add nsw i32 %356, 4
%358 = sext i32 %357 to i64
%359 = getelementptr inbounds float, float* %355, i64 %358
%360 = load i64, i64* %23
%361 = trunc i64 %360 to i32
%362 = call i32 @_mm_storeu_ps(float* %359, i32 %361)
br label %363
363: ; preds = %232
%364 = load i32, i32* %36
%365 = add nsw i32 %364, 8
store i32 %365, i32* %36
%366 = load i32, i32* %37
%367 = add nsw i32 %366, 4
store i32 %367, i32* %37
br label %218
368: ; preds = %218
br label %369
369: ; preds = %368, %216
%370 = load i32, i32* %38
store i32 %370, i32* %8
br label %371
371: ; preds = %369, %46
%372 = load i32, i32* %8
ret i32 %372
}

LLVM IR (-O2):
define i32 @FloatUnpacker_sse2(float* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = bitcast i8* %1 to i32*
%9 = icmp slt i32 %2, 8
br i1 %9, label %140, label %10
10: ; preds = %7
%11 = and i32 %2, -8
%12 = shl i32 %5, 23
%13 = tail call i64 @_mm_set1_epi32(i32 %12)
%14 = tail call i64 @_mm_set1_epi32(i32 -2147483648)
%15 = tail call i64 @_mm_set1_epi32(i32 %4)
%16 = tail call i64 @_mm_set1_epi32(i32 16777215)
%17 = tail call i64 @_mm_set1_epi32(i32 8388607)
%18 = icmp eq i32 %6, 0
%19 = icmp eq i32 %11, 0
br i1 %18, label %23, label %20
20: ; preds = %10
br i1 %19, label %140, label %21
21: ; preds = %20
%22 = zext i32 %11 to i64
br label %26
23: ; preds = %10
br i1 %19, label %140, label %24
24: ; preds = %23
%25 = zext i32 %11 to i64
br label %84
26: ; preds = %21, %26
%27 = phi i64 [ 0, %21 ], [ %30, %26 ]
%28 = phi i64 [ 0, %21 ], [ %82, %26 ]
%29 = phi i64 [ undef, %21 ], [ %51, %26 ]
%30 = add nuw nsw i64 %27, 8
%31 = getelementptr inbounds i32, i32* %8, i64 %28
%32 = bitcast i32* %31 to i64*
%33 = tail call i64 @_mm_load_si128(i64* %32)
%34 = tail call i64 @_mm_xor_si128(i64 %29, i64 %29)
%35 = tail call i64 @_mm_unpacklo_epi16(i64 %33, i64 %34)
%36 = tail call i64 @_mm_unpackhi_epi16(i64 %33, i64 %34)
%37 = tail call i64 @_mm_shuffle_epi32(i64 %35, i32 177)
%38 = tail call i64 @_mm_shuffle_epi32(i64 %36, i32 177)
%39 = tail call i64 @_mm_slli_epi32(i64 %37, i32 %3)
%40 = tail call i64 @_mm_slli_epi32(i64 %38, i32 %3)
%41 = tail call i64 @_mm_add_epi32(i64 %39, i64 %15)
%42 = tail call i64 @_mm_add_epi32(i64 %40, i64 %15)
%43 = tail call i64 @_mm_and_si128(i64 %41, i64 %14)
%44 = tail call i64 @_mm_and_si128(i64 %42, i64 %14)
%45 = tail call i64 @_mm_srai_epi32(i64 %41, i32 31)
%46 = tail call i64 @_mm_srai_epi32(i64 %42, i32 31)
%47 = tail call i64 @_mm_add_epi32(i64 %41, i64 %45)
%48 = tail call i64 @_mm_add_epi32(i64 %42, i64 %46)
%49 = tail call i64 @_mm_xor_si128(i64 %47, i64 %45)
%50 = tail call i64 @_mm_xor_si128(i64 %48, i64 %46)
%51 = tail call i64 @_mm_cmplt_epi32(i64 %16, i64 %49)
%52 = tail call i64 @_mm_cmplt_epi32(i64 %16, i64 %50)
%53 = tail call i64 @_mm_or_si128(i64 %49, i64 %51)
%54 = tail call i64 @_mm_or_si128(i64 %50, i64 %52)
%55 = tail call i64 @_mm_and_si128(i64 %53, i64 %16)
%56 = tail call i64 @_mm_and_si128(i64 %54, i64 %16)
%57 = tail call i64 @_mm_or_si128(i64 %43, i64 %13)
%58 = tail call i64 @_mm_or_si128(i64 %44, i64 %13)
%59 = tail call i64 @_mm_slli_epi32(i64 %55, i32 8)
%60 = tail call i64 @_mm_slli_epi32(i64 %56, i32 8)
%61 = tail call i64 @_mm_srai_epi32(i64 %59, i32 31)
%62 = tail call i64 @_mm_srai_epi32(i64 %60, i32 31)
%63 = tail call i64 @_mm_andnot_si128(i64 %61, i64 %57)
%64 = tail call i64 @_mm_andnot_si128(i64 %62, i64 %58)
%65 = tail call i64 @_mm_and_si128(i64 %55, i64 %17)
%66 = tail call i64 @_mm_and_si128(i64 %56, i64 %17)
%67 = tail call i64 @_mm_or_si128(i64 %57, i64 %65)
%68 = tail call i64 @_mm_or_si128(i64 %58, i64 %66)
%69 = trunc i64 %67 to i32
%70 = trunc i64 %63 to i32
%71 = tail call i64 @_mm_sub_ps(i32 %69, i32 %70)
%72 = trunc i64 %68 to i32
%73 = trunc i64 %64 to i32
%74 = tail call i64 @_mm_sub_ps(i32 %72, i32 %73)
%75 = getelementptr inbounds float, float* %0, i64 %27
%76 = trunc i64 %71 to i32
%77 = tail call i32 @_mm_storeu_ps(float* %75, i32 %76)
%78 = or i64 %27, 4
%79 = getelementptr inbounds float, float* %0, i64 %78
%80 = trunc i64 %74 to i32
%81 = tail call i32 @_mm_storeu_ps(float* %79, i32 %80)
%82 = add nuw nsw i64 %28, 4
%83 = icmp ult i64 %30, %22
br i1 %83, label %26, label %140
84: ; preds = %24, %84
%85 = phi i64 [ 0, %24 ], [ %88, %84 ]
%86 = phi i64 [ 0, %24 ], [ %138, %84 ]
%87 = phi i64 [ undef, %24 ], [ %107, %84 ]
%88 = add nuw nsw i64 %85, 8
%89 = getelementptr inbounds i32, i32* %8, i64 %86
%90 = bitcast i32* %89 to i64*
%91 = tail call i64 @_mm_load_si128(i64* %90)
%92 = tail call i64 @_mm_xor_si128(i64 %87, i64 %87)
%93 = tail call i64 @_mm_unpacklo_epi16(i64 %91, i64 %92)
%94 = tail call i64 @_mm_unpackhi_epi16(i64 %91, i64 %92)
%95 = tail call i64 @_mm_slli_epi32(i64 %93, i32 %3)
%96 = tail call i64 @_mm_slli_epi32(i64 %94, i32 %3)
%97 = tail call i64 @_mm_add_epi32(i64 %95, i64 %15)
%98 = tail call i64 @_mm_add_epi32(i64 %96, i64 %15)
%99 = tail call i64 @_mm_and_si128(i64 %97, i64 %14)
%100 = tail call i64 @_mm_and_si128(i64 %98, i64 %14)
%101 = tail call i64 @_mm_srai_epi32(i64 %97, i32 31)
%102 = tail call i64 @_mm_srai_epi32(i64 %98, i32 31)
%103 = tail call i64 @_mm_add_epi32(i64 %97, i64 %101)
%104 = tail call i64 @_mm_add_epi32(i64 %98, i64 %102)
%105 = tail call i64 @_mm_xor_si128(i64 %103, i64 %101)
%106 = tail call i64 @_mm_xor_si128(i64 %104, i64 %102)
%107 = tail call i64 @_mm_cmplt_epi32(i64 %16, i64 %105)
%108 = tail call i64 @_mm_cmplt_epi32(i64 %16, i64 %106)
%109 = tail call i64 @_mm_or_si128(i64 %105, i64 %107)
%110 = tail call i64 @_mm_or_si128(i64 %106, i64 %108)
%111 = tail call i64 @_mm_and_si128(i64 %109, i64 %16)
%112 = tail call i64 @_mm_and_si128(i64 %110, i64 %16)
%113 = tail call i64 @_mm_or_si128(i64 %99, i64 %13)
%114 = tail call i64 @_mm_or_si128(i64 %100, i64 %13)
%115 = tail call i64 @_mm_slli_epi32(i64 %111, i32 8)
%116 = tail call i64 @_mm_slli_epi32(i64 %112, i32 8)
%117 = tail call i64 @_mm_srai_epi32(i64 %115, i32 31)
%118 = tail call i64 @_mm_srai_epi32(i64 %116, i32 31)
%119 = tail call i64 @_mm_andnot_si128(i64 %117, i64 %113)
%120 = tail call i64 @_mm_andnot_si128(i64 %118, i64 %114)
%121 = tail call i64 @_mm_and_si128(i64 %111, i64 %17)
%122 = tail call i64 @_mm_and_si128(i64 %112, i64 %17)
%123 = tail call i64 @_mm_or_si128(i64 %113, i64 %121)
%124 = tail call i64 @_mm_or_si128(i64 %114, i64 %122)
%125 = trunc i64 %123 to i32
%126 = trunc i64 %119 to i32
%127 = tail call i64 @_mm_sub_ps(i32 %125, i32 %126)
%128 = trunc i64 %124 to i32
%129 = trunc i64 %120 to i32
%130 = tail call i64 @_mm_sub_ps(i32 %128, i32 %129)
%131 = getelementptr inbounds float, float* %0, i64 %85
%132 = trunc i64 %127 to i32
%133 = tail call i32 @_mm_storeu_ps(float* %131, i32 %132)
%134 = or i64 %85, 4
%135 = getelementptr inbounds float, float* %0, i64 %134
%136 = trunc i64 %130 to i32
%137 = tail call i32 @_mm_storeu_ps(float* %135, i32 %136)
%138 = add nuw nsw i64 %86, 4
%139 = icmp ult i64 %88, %25
br i1 %139, label %84, label %140
140: ; preds = %26, %84, %20, %23, %7
%141 = phi i32 [ %2, %7 ], [ 0, %23 ], [ 0, %20 ], [ %11, %84 ], [ %11, %26 ]
ret i32 %141
}