#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 int /*<<< orphan*/ __m128i;
typedef int /*<<< orphan*/ __m128d;

/* Variables and functions */
int /*<<< orphan*/ _MM_SHUFFLE(int, int, int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_add_epi32(int /*<<< orphan*/, int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_add_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_and_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_castsi128_pd(int /*<<< orphan*/);
int /*<<< orphan*/ _mm_cmplt_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_cvtepi32_pd(int /*<<< orphan*/);
int /*<<< orphan*/ _mm_cvttpd_epi32(int /*<<< orphan*/);
int /*<<< orphan*/ _mm_load_pd(double const *);
int /*<<< orphan*/ _mm_max_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_min_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_mul_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_setr_epi32(int, int, int /*<<< orphan*/,
                                  int /*<<< orphan*/);
int /*<<< orphan*/ _mm_setzero_pd();
int /*<<< orphan*/ _mm_shuffle_epi32(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_slli_epi32(int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_store_pd(double *, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_sub_pd(int /*<<< orphan*/, int /*<<< orphan*/);
void remez9_0_log2_sse(double *values, int num) {
  int i;
  __attribute__((aligned(16))) static const double one[2] = {(1.), (1.)};
  __attribute__((aligned(16))) static const double log2e[2] = {
      (1.4426950408889634073599), (1.4426950408889634073599)};
  __attribute__((aligned(16))) static const double maxlog[2] = {
      (7.09782712893383996843e2), (7.09782712893383996843e2)};
  __attribute__((aligned(16))) static const double minlog[2] = {
      (-7.08396418532264106224e2), (-7.08396418532264106224e2)};
  __attribute__((aligned(16))) static const double c1[2] = {
      (6.93145751953125E-1), (6.93145751953125E-1)};
  __attribute__((aligned(16))) static const double c2[2] = {
      (1.42860682030941723212E-6), (1.42860682030941723212E-6)};
  __attribute__((aligned(16))) static const double w9[2] = {
      (3.9099787920346160288874633639268318097077213911751e-6),
      (3.9099787920346160288874633639268318097077213911751e-6)};
  __attribute__((aligned(16))) static const double w8[2] = {
      (2.299608440919942766555719515783308016700833740918e-5),
      (2.299608440919942766555719515783308016700833740918e-5)};
  __attribute__((aligned(16))) static const double w7[2] = {
      (1.99930498409474044486498978862963995247838069436646e-4),
      (1.99930498409474044486498978862963995247838069436646e-4)};
  __attribute__((aligned(16))) static const double w6[2] = {
      (1.38812674551586429265054343505879910146775323730237e-3),
      (1.38812674551586429265054343505879910146775323730237e-3)};
  __attribute__((aligned(16))) static const double w5[2] = {
      (8.3335688409829575034112982839739473866857586300664e-3),
      (8.3335688409829575034112982839739473866857586300664e-3)};
  __attribute__((aligned(16))) static const double w4[2] = {
      (4.1666622504201078708502686068113075402683415962893e-2),
      (4.1666622504201078708502686068113075402683415962893e-2)};
  __attribute__((aligned(16))) static const double w3[2] = {
      (0.166666671414320541875332123507829990378055646330574),
      (0.166666671414320541875332123507829990378055646330574)};
  __attribute__((aligned(16))) static const double w2[2] = {
      (0.49999999974109940909767965915362308135415179642286),
      (0.49999999974109940909767965915362308135415179642286)};
  __attribute__((aligned(16))) static const double w1[2] = {
      (1.0000000000054730504284163017295863259125942049362),
      (1.0000000000054730504284163017295863259125942049362)};
  __attribute__((aligned(16))) static const double w0[2] = {
      (0.99999999999998091336479463057053516986466888462081),
      (0.99999999999998091336479463057053516986466888462081)};
  const __m128i offset = _mm_setr_epi32(1023, 1023, 0, 0);
  for (i = 0; i < num; i += 4) {
    __m128i k1, k2;
    __m128d p1, p2;
    __m128d a1, a2;
    __m128d xmm0, xmm1;
    __m128d x1, x2;
    xmm0 = _mm_load_pd(maxlog);
    xmm1 = _mm_load_pd(minlog);
    x1 = _mm_load_pd(values + i);
    x2 = _mm_load_pd(values + i + 2);
    x1 = _mm_min_pd(x1, xmm0);
    x2 = _mm_min_pd(x2, xmm0);
    x1 = _mm_max_pd(x1, xmm1);
    x2 = _mm_max_pd(x2, xmm1);
    xmm0 = _mm_load_pd(log2e);
    xmm1 = _mm_setzero_pd();
    a1 = _mm_mul_pd(x1, xmm0);
    a2 = _mm_mul_pd(x2, xmm0);
    p1 = _mm_cmplt_pd(a1, xmm1);
    p2 = _mm_cmplt_pd(a2, xmm1);
    xmm0 = _mm_load_pd(one);
    p1 = _mm_and_pd(p1, xmm0);
    p2 = _mm_and_pd(p2, xmm0);
    a1 = _mm_sub_pd(a1, p1);
    a2 = _mm_sub_pd(a2, p2);
    k1 = _mm_cvttpd_epi32(a1);
    k2 = _mm_cvttpd_epi32(a2);
    p1 = _mm_cvtepi32_pd(k1);
    p2 = _mm_cvtepi32_pd(k2);
    xmm0 = _mm_load_pd(c1);
    xmm1 = _mm_load_pd(c2);
    a1 = _mm_mul_pd(p1, xmm0);
    a2 = _mm_mul_pd(p2, xmm0);
    x1 = _mm_sub_pd(x1, a1);
    x2 = _mm_sub_pd(x2, a2);
    a1 = _mm_mul_pd(p1, xmm1);
    a2 = _mm_mul_pd(p2, xmm1);
    x1 = _mm_sub_pd(x1, a1);
    x2 = _mm_sub_pd(x2, a2);
    xmm0 = _mm_load_pd(w9);
    xmm1 = _mm_load_pd(w8);
    a1 = _mm_mul_pd(x1, xmm0);
    a2 = _mm_mul_pd(x2, xmm0);
    a1 = _mm_add_pd(a1, xmm1);
    a2 = _mm_add_pd(a2, xmm1);
    xmm0 = _mm_load_pd(w7);
    xmm1 = _mm_load_pd(w6);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm0);
    a2 = _mm_add_pd(a2, xmm0);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm1);
    a2 = _mm_add_pd(a2, xmm1);
    xmm0 = _mm_load_pd(w5);
    xmm1 = _mm_load_pd(w4);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm0);
    a2 = _mm_add_pd(a2, xmm0);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm1);
    a2 = _mm_add_pd(a2, xmm1);
    xmm0 = _mm_load_pd(w3);
    xmm1 = _mm_load_pd(w2);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm0);
    a2 = _mm_add_pd(a2, xmm0);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm1);
    a2 = _mm_add_pd(a2, xmm1);
    xmm0 = _mm_load_pd(w1);
    xmm1 = _mm_load_pd(w0);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm0);
    a2 = _mm_add_pd(a2, xmm0);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm1);
    a2 = _mm_add_pd(a2, xmm1);
    k1 = _mm_add_epi32(k1, offset);
    k2 = _mm_add_epi32(k2, offset);
    k1 = _mm_slli_epi32(k1, 20);
    k2 = _mm_slli_epi32(k2, 20);
    k1 = _mm_shuffle_epi32(k1, _MM_SHUFFLE(1, 3, 0, 2));
    k2 = _mm_shuffle_epi32(k2, _MM_SHUFFLE(1, 3, 0, 2));
    p1 = _mm_castsi128_pd(k1);
    p2 = _mm_castsi128_pd(k2);
    a1 = _mm_mul_pd(a1, p1);
    a2 = _mm_mul_pd(a2, p2);
    _mm_store_pd(values + i, a1);
    _mm_store_pd(values + i + 2, a2);
  }
}


x86 assembly (clang, -O0):
<remez9_0_log2_sse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x3ff,%esi
xor    %ecx,%ecx
mov    %esi,%edi
mov    %ecx,%edx
call   1140 <_mm_setr_epi32@plt>
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    17bd <remez9_0_log2_sse+0x59d>
lea    0xdc4(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xdc5(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
add    $0x10,%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10f0 <_mm_min_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10f0 <_mm_min_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1100 <_mm_max_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1100 <_mm_max_pd@plt>
mov    %eax,-0x3c(%rbp)
lea    0xd2c(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
mov    $0x0,%al
call   1120 <_mm_setzero_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_cmplt_pd@plt>
mov    %eax,-0x20(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_cmplt_pd@plt>
mov    %eax,-0x24(%rbp)
lea    0xccb(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
mov    -0x20(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1070 <_mm_and_pd@plt>
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1070 <_mm_and_pd@plt>
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x24(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
call   1090 <_mm_cvttpd_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x2c(%rbp),%edi
call   1090 <_mm_cvttpd_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%edi
call   10c0 <_mm_cvtepi32_pd@plt>
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%edi
call   10c0 <_mm_cvtepi32_pd@plt>
mov    %eax,-0x24(%rbp)
lea    0xc98(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xc99(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x28(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x20(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x28(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x3c(%rbp)
lea    0xc2a(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xc2b(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
lea    0xbf4(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xbf5(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
lea    0xb86(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xb87(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
lea    0xb18(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xb19(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
lea    0xaaa(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xaab(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1080 <_mm_add_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1080 <_mm_add_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%edi
mov    $0x14,%esi
call   1110 <_mm_slli_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x14,%esi
call   1110 <_mm_slli_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    $0x1,%edi
mov    $0x3,%esi
xor    %edx,%edx
mov    $0x2,%ecx
call   1040 <_MM_SHUFFLE@plt>
mov    -0x44(%rbp),%edi
mov    %eax,%esi
call   10b0 <_mm_shuffle_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    $0x1,%edi
mov    $0x3,%esi
xor    %edx,%edx
mov    $0x2,%ecx
call   1040 <_MM_SHUFFLE@plt>
mov    -0x40(%rbp),%edi
mov    %eax,%esi
call   10b0 <_mm_shuffle_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%edi
call   10e0 <_mm_castsi128_pd@plt>
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%edi
call   10e0 <_mm_castsi128_pd@plt>
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x24(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x28(%rbp),%esi
call   1030 <_mm_store_pd@plt>
mov    -0x8(%rbp),%rdi
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
add    $0x10,%rdi
mov    -0x2c(%rbp),%esi
call   1030 <_mm_store_pd@plt>
mov    -0x10(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x10(%rbp)
jmp    1249 <remez9_0_log2_sse+0x29>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<remez9_0_log2_sse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %esi,%r14d
mov    %rdi,%rbp
mov    $0x3ff,%edi
mov    $0x3ff,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1140 <_mm_setr_epi32@plt>
test   %r14d,%r14d
jle    1774 <remez9_0_log2_sse+0x554>
mov    %eax,%r13d
xor    %eax,%eax
mov    %r14d,0x14(%rsp)
mov    %r13d,0x10(%rsp)
nop
mov    %eax,0x24(%rsp)
mov    %rbp,0x30(%rsp)
lea    0xdb0(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r15d
lea    0xdb1(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %rbp,%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebx
lea    0x10(%rbp),%rdi
mov    %rdi,0x28(%rsp)
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r15d,%esi
call   10f0 <_mm_min_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r15d,%esi
call   10f0 <_mm_min_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r14d,%esi
call   1100 <_mm_max_pd@plt>
mov    %eax,%ebx
mov    %eax,0xc(%rsp)
mov    %ebp,%edi
mov    %r14d,%esi
call   1100 <_mm_max_pd@plt>
mov    %eax,%r12d
mov    %eax,0x8(%rsp)
lea    0xd2f(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1120 <_mm_setzero_pd@plt>
mov    %eax,%r14d
mov    %ebx,%edi
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r15d
mov    %r12d,%edi
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r13d
mov    %r15d,%edi
mov    %r14d,%esi
call   1050 <_mm_cmplt_pd@plt>
mov    %eax,%r12d
mov    %r13d,%edi
mov    %r14d,%esi
call   1050 <_mm_cmplt_pd@plt>
mov    %eax,%ebx
lea    0xcd3(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %r12d,%edi
mov    %eax,%esi
call   1070 <_mm_and_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r14d,%esi
call   1070 <_mm_and_pd@plt>
mov    %eax,%ebx
mov    %r15d,%edi
mov    %ebp,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%ebp
mov    %r13d,%edi
mov    %ebx,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
call   1090 <_mm_cvttpd_epi32@plt>
mov    %eax,%ebp
mov    %eax,0x1c(%rsp)
mov    %ebx,%edi
call   1090 <_mm_cvttpd_epi32@plt>
mov    %eax,%ebx
mov    %eax,0x20(%rsp)
mov    %ebp,%edi
call   10c0 <_mm_cvtepi32_pd@plt>
mov    %eax,%r12d
mov    %ebx,%edi
call   10c0 <_mm_cvtepi32_pd@plt>
mov    %eax,%r14d
lea    0xca6(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebx
lea    0xca8(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r15d
mov    %r12d,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %r14d,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    0xc(%rsp),%edi
mov    %ebp,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%ebp
mov    0x8(%rsp),%edi
mov    %ebx,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%r13d
mov    %r12d,%edi
mov    %r15d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %r14d,%edi
mov    %r15d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    %ebx,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%ebp
mov    %eax,0xc(%rsp)
mov    %r13d,%edi
mov    %r14d,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%r15d
lea    0xc3e(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebx
lea    0xc40(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r12d
mov    %r15d,%edi
mov    %r15d,%ebp
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %r12d,%edi
mov    %r14d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r12d
mov    %ebx,%edi
mov    %r14d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r14d
lea    0xc0b(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r15d
lea    0xc0c(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r13d
mov    %r12d,%edi
mov    0xc(%rsp),%ebx
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r12d
mov    %r14d,%edi
mov    %ebp,0x8(%rsp)
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r14d
mov    %r12d,%edi
mov    %r15d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r12d
mov    %r14d,%edi
mov    %r15d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r14d
mov    %r12d,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r15d
mov    %r14d,%edi
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %r15d,%edi
mov    %r13d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r13d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r15d
lea    0xb9c(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r12d
lea    0xb9d(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    0xc(%rsp),%r13d
mov    %r13d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    0x8(%rsp),%ebx
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r15d
mov    %ebp,%edi
mov    %r12d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %r12d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r15d
mov    %ebp,%edi
mov    %r13d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r14d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r14d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r15d
lea    0xb31(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r12d
lea    0xb32(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    %r13d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    0x8(%rsp),%ebx
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r15d
mov    %ebp,%edi
mov    %r12d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %r12d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r15d
mov    %ebp,%edi
mov    %r13d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %ebx,%esi
mov    %ebx,%r12d
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r14d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r14d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r14d
lea    0xac8(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r15d
lea    0xac9(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,0x18(%rsp)
mov    %ebp,%edi
mov    %r13d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %r14d,%edi
mov    %r12d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r15d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r15d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r13d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r12d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    0x18(%rsp),%ebp
mov    %ebp,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r14d
mov    %ebx,%edi
mov    %ebp,%esi
mov    0x10(%rsp),%r13d
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r15d
mov    0x1c(%rsp),%edi
mov    %r13d,%esi
call   1080 <_mm_add_epi32@plt>
mov    %eax,%ebx
mov    0x20(%rsp),%edi
mov    %r13d,%esi
call   1080 <_mm_add_epi32@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    $0x14,%esi
call   1110 <_mm_slli_epi32@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    $0x14,%esi
call   1110 <_mm_slli_epi32@plt>
mov    %eax,%ebp
mov    $0x1,%edi
mov    $0x3,%esi
xor    %edx,%edx
mov    $0x2,%ecx
call   1040 <_MM_SHUFFLE@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   10b0 <_mm_shuffle_epi32@plt>
mov    %eax,%ebx
mov    $0x1,%edi
mov    $0x3,%esi
xor    %edx,%edx
mov    $0x2,%ecx
call   1040 <_MM_SHUFFLE@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10b0 <_mm_shuffle_epi32@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   10e0 <_mm_castsi128_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
call   10e0 <_mm_castsi128_pd@plt>
mov    %eax,%ebp
mov    %r14d,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r14d
mov    %r15d,%edi
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    0x30(%rsp),%rbp
mov    %rbp,%rdi
mov    %r14d,%esi
mov    0x14(%rsp),%r14d
call   1030 <_mm_store_pd@plt>
mov    0x28(%rsp),%rdi
mov    %ebx,%esi
call   1030 <_mm_store_pd@plt>
mov    0x24(%rsp),%eax
add    $0x20,%rbp
add    $0x4,%eax
cmp    %r14d,%eax
jl     1260 <remez9_0_log2_sse+0x40>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@remez9_0_log2_sse.one = internal constant [2 x double] [double 1.000000e+00, double 1.000000e+00]
@remez9_0_log2_sse.log2e = internal constant [2 x double] [double 0x3FF71547652B82FE, double 0x3FF71547652B82FE]
@remez9_0_log2_sse.maxlog = internal constant [2 x double] [double 0x40862E42FEFA39EF, double 0x40862E42FEFA39EF]
@remez9_0_log2_sse.minlog = internal constant [2 x double] [double 0xC086232BDD7ABCD2, double 0xC086232BDD7ABCD2]
@remez9_0_log2_sse.c1 = internal constant [2 x double] [double 0x3FE62E4000000000, double 0x3FE62E4000000000]
@remez9_0_log2_sse.c2 = internal constant [2 x double] [double 0x3EB7F7D1CF79ABCA, double 0x3EB7F7D1CF79ABCA]
@remez9_0_log2_sse.w9 = internal constant [2 x double] [double 0x3ED0664EC95B55A5, double 0x3ED0664EC95B55A5]
@remez9_0_log2_sse.w8 = internal constant [2 x double] [double 0x3EF81CF6E3384043, double 0x3EF81CF6E3384043]
@remez9_0_log2_sse.w7 = internal constant [2 x double] [double 0x3F2A348DE77F1CF5, double 0x3F2A348DE77F1CF5]
@remez9_0_log2_sse.w6 = internal constant [2 x double] [double 0x3F56BE39BE616110, double 0x3F56BE39BE616110]
@remez9_0_log2_sse.w5 = internal constant [2 x double] [double 0x3F811130AD0C429D, double 0x3F811130AD0C429D]
@remez9_0_log2_sse.w4 = internal constant [2 x double] [double 0x3FA55553D9FB0B63, double 0x3FA55553D9FB0B63]
@remez9_0_log2_sse.w3 = internal constant [2 x double] [double 0x3FC555555F876237, double 0x3FC555555F876237]
@remez9_0_log2_sse.w2 = internal constant [2 x double] [double 0x3FDFFFFFFFB8D57E, double 0x3FDFFFFFFFB8D57E]
@remez9_0_log2_sse.w1 = internal constant [2 x double] [double 0x3FF0000000006048, double 0x3FF0000000006048]
@remez9_0_log2_sse.w0 = internal constant [2 x double] [double 0x3FEFFFFFFFFFFF54, double 0x3FEFFFFFFFFFFF54]
define void @remez9_0_log2_sse(double* %0, i32 %1) {
%3 = alloca double*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store double* %0, double** %3
store i32 %1, i32* %4
%17 = call i32 @_mm_setr_epi32(i32 1023, i32 1023, i32 0, i32 0)
store i32 %17, i32* %6
store i32 0, i32* %5
br label %18
18: ; preds = %266, %2
%19 = load i32, i32* %5
%20 = load i32, i32* %4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %269
22: ; preds = %18
%23 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.maxlog, i64 0, i64 0))
store i32 %23, i32* %13
%24 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.minlog, i64 0, i64 0))
store i32 %24, i32* %14
%25 = load double*, double** %3
%26 = load i32, i32* %5
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, double* %25, i64 %27
%29 = call i32 @_mm_load_pd(double* %28)
store i32 %29, i32* %15
%30 = load double*, double** %3
%31 = load i32, i32* %5
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, double* %30, i64 %32
%34 = getelementptr inbounds double, double* %33, i64 2
%35 = call i32 @_mm_load_pd(double* %34)
store i32 %35, i32* %16
%36 = load i32, i32* %15
%37 = load i32, i32* %13
%38 = call i32 @_mm_min_pd(i32 %36, i32 %37)
store i32 %38, i32* %15
%39 = load i32, i32* %16
%40 = load i32, i32* %13
%41 = call i32 @_mm_min_pd(i32 %39, i32 %40)
store i32 %41, i32* %16
%42 = load i32, i32* %15
%43 = load i32, i32* %14
%44 = call i32 @_mm_max_pd(i32 %42, i32 %43)
store i32 %44, i32* %15
%45 = load i32, i32* %16
%46 = load i32, i32* %14
%47 = call i32 @_mm_max_pd(i32 %45, i32 %46)
store i32 %47, i32* %16
%48 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.log2e, i64 0, i64 0))
store i32 %48, i32* %13
%49 = call i32 (...) @_mm_setzero_pd()
store i32 %49, i32* %14
%50 = load i32, i32* %15
%51 = load i32, i32* %13
%52 = call i32 @_mm_mul_pd(i32 %50, i32 %51)
store i32 %52, i32* %11
%53 = load i32, i32* %16
%54 = load i32, i32* %13
%55 = call i32 @_mm_mul_pd(i32 %53, i32 %54)
store i32 %55, i32* %12
%56 = load i32, i32* %11
%57 = load i32, i32* %14
%58 = call i32 @_mm_cmplt_pd(i32 %56, i32 %57)
store i32 %58, i32* %9
%59 = load i32, i32* %12
%60 = load i32, i32* %14
%61 = call i32 @_mm_cmplt_pd(i32 %59, i32 %60)
store i32 %61, i32* %10
%62 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.one, i64 0, i64 0))
store i32 %62, i32* %13
%63 = load i32, i32* %9
%64 = load i32, i32* %13
%65 = call i32 @_mm_and_pd(i32 %63, i32 %64)
store i32 %65, i32* %9
%66 = load i32, i32* %10
%67 = load i32, i32* %13
%68 = call i32 @_mm_and_pd(i32 %66, i32 %67)
store i32 %68, i32* %10
%69 = load i32, i32* %11
%70 = load i32, i32* %9
%71 = call i32 @_mm_sub_pd(i32 %69, i32 %70)
store i32 %71, i32* %11
%72 = load i32, i32* %12
%73 = load i32, i32* %10
%74 = call i32 @_mm_sub_pd(i32 %72, i32 %73)
store i32 %74, i32* %12
%75 = load i32, i32* %11
%76 = call i32 @_mm_cvttpd_epi32(i32 %75)
store i32 %76, i32* %7
%77 = load i32, i32* %12
%78 = call i32 @_mm_cvttpd_epi32(i32 %77)
store i32 %78, i32* %8
%79 = load i32, i32* %7
%80 = call i32 @_mm_cvtepi32_pd(i32 %79)
store i32 %80, i32* %9
%81 = load i32, i32* %8
%82 = call i32 @_mm_cvtepi32_pd(i32 %81)
store i32 %82, i32* %10
%83 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.c1, i64 0, i64 0))
store i32 %83, i32* %13
%84 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.c2, i64 0, i64 0))
store i32 %84, i32* %14
%85 = load i32, i32* %9
%86 = load i32, i32* %13
%87 = call i32 @_mm_mul_pd(i32 %85, i32 %86)
store i32 %87, i32* %11
%88 = load i32, i32* %10
%89 = load i32, i32* %13
%90 = call i32 @_mm_mul_pd(i32 %88, i32 %89)
store i32 %90, i32* %12
%91 = load i32, i32* %15
%92 = load i32, i32* %11
%93 = call i32 @_mm_sub_pd(i32 %91, i32 %92)
store i32 %93, i32* %15
%94 = load i32, i32* %16
%95 = load i32, i32* %12
%96 = call i32 @_mm_sub_pd(i32 %94, i32 %95)
store i32 %96, i32* %16
%97 = load i32, i32* %9
%98 = load i32, i32* %14
%99 = call i32 @_mm_mul_pd(i32 %97, i32 %98)
store i32 %99, i32* %11
%100 = load i32, i32* %10
%101 = load i32, i32* %14
%102 = call i32 @_mm_mul_pd(i32 %100, i32 %101)
store i32 %102, i32* %12
%103 = load i32, i32* %15
%104 = load i32, i32* %11
%105 = call i32 @_mm_sub_pd(i32 %103, i32 %104)
store i32 %105, i32* %15
%106 = load i32, i32* %16
%107 = load i32, i32* %12
%108 = call i32 @_mm_sub_pd(i32 %106, i32 %107)
store i32 %108, i32* %16
%109 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w9, i64 0, i64 0))
store i32 %109, i32* %13
%110 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w8, i64 0, i64 0))
store i32 %110, i32* %14
%111 = load i32, i32* %15
%112 = load i32, i32* %13
%113 = call i32 @_mm_mul_pd(i32 %111, i32 %112)
store i32 %113, i32* %11
%114 = load i32, i32* %16
%115 = load i32, i32* %13
%116 = call i32 @_mm_mul_pd(i32 %114, i32 %115)
store i32 %116, i32* %12
%117 = load i32, i32* %11
%118 = load i32, i32* %14
%119 = call i32 @_mm_add_pd(i32 %117, i32 %118)
store i32 %119, i32* %11
%120 = load i32, i32* %12
%121 = load i32, i32* %14
%122 = call i32 @_mm_add_pd(i32 %120, i32 %121)
store i32 %122, i32* %12
%123 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w7, i64 0, i64 0))
store i32 %123, i32* %13
%124 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w6, i64 0, i64 0))
store i32 %124, i32* %14
%125 = load i32, i32* %11
%126 = load i32, i32* %15
%127 = call i32 @_mm_mul_pd(i32 %125, i32 %126)
store i32 %127, i32* %11
%128 = load i32, i32* %12
%129 = load i32, i32* %16
%130 = call i32 @_mm_mul_pd(i32 %128, i32 %129)
store i32 %130, i32* %12
%131 = load i32, i32* %11
%132 = load i32, i32* %13
%133 = call i32 @_mm_add_pd(i32 %131, i32 %132)
store i32 %133, i32* %11
%134 = load i32, i32* %12
%135 = load i32, i32* %13
%136 = call i32 @_mm_add_pd(i32 %134, i32 %135)
store i32 %136, i32* %12
%137 = load i32, i32* %11
%138 = load i32, i32* %15
%139 = call i32 @_mm_mul_pd(i32 %137, i32 %138)
store i32 %139, i32* %11
%140 = load i32, i32* %12
%141 = load i32, i32* %16
%142 = call i32 @_mm_mul_pd(i32 %140, i32 %141)
store i32 %142, i32* %12
%143 = load i32, i32* %11
%144 = load i32, i32* %14
%145 = call i32 @_mm_add_pd(i32 %143, i32 %144)
store i32 %145, i32* %11
%146 = load i32, i32* %12
%147 = load i32, i32* %14
%148 = call i32 @_mm_add_pd(i32 %146, i32 %147)
store i32 %148, i32* %12
%149 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w5, i64 0, i64 0))
store i32 %149, i32* %13
%150 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w4, i64 0, i64 0))
store i32 %150, i32* %14
%151 = load i32, i32* %11
%152 = load i32, i32* %15
%153 = call i32 @_mm_mul_pd(i32 %151, i32 %152)
store i32 %153, i32* %11
%154 = load i32, i32* %12
%155 = load i32, i32* %16
%156 = call i32 @_mm_mul_pd(i32 %154, i32 %155)
store i32 %156, i32* %12
%157 = load i32, i32* %11
%158 = load i32, i32* %13
%159 = call i32 @_mm_add_pd(i32 %157, i32 %158)
store i32 %159, i32* %11
%160 = load i32, i32* %12
%161 = load i32, i32* %13
%162 = call i32 @_mm_add_pd(i32 %160, i32 %161)
store i32 %162, i32* %12
%163 = load i32, i32* %11
%164 = load i32, i32* %15
%165 = call i32 @_mm_mul_pd(i32 %163, i32 %164)
store i32 %165, i32* %11
%166 = load i32, i32* %12
%167 = load i32, i32* %16
%168 = call i32 @_mm_mul_pd(i32 %166, i32 %167)
store i32 %168, i32* %12
%169 = load i32, i32* %11
%170 = load i32, i32* %14
%171 = call i32 @_mm_add_pd(i32 %169, i32 %170)
store i32 %171, i32* %11
%172 = load i32, i32* %12
%173 = load i32, i32* %14
%174 = call i32 @_mm_add_pd(i32 %172, i32 %173)
store i32 %174, i32* %12
%175 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w3, i64 0, i64 0))
store i32 %175, i32* %13
%176 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w2, i64 0, i64 0))
store i32 %176, i32* %14
%177 = load i32, i32* %11
%178 = load i32, i32* %15
%179 = call i32 @_mm_mul_pd(i32 %177, i32 %178)
store i32 %179, i32* %11
%180 = load i32, i32* %12
%181 = load i32, i32* %16
%182 = call i32 @_mm_mul_pd(i32 %180, i32 %181)
store i32 %182, i32* %12
%183 = load i32, i32* %11
%184 = load i32, i32* %13
%185 = call i32 @_mm_add_pd(i32 %183, i32 %184)
store i32 %185, i32* %11
%186 = load i32, i32* %12
%187 = load i32, i32* %13
%188 = call i32 @_mm_add_pd(i32 %186, i32 %187)
store i32 %188, i32* %12
%189 = load i32, i32* %11
%190 = load i32, i32* %15
%191 = call i32 @_mm_mul_pd(i32 %189, i32 %190)
store i32 %191, i32* %11
%192 = load i32, i32* %12
%193 = load i32, i32* %16
%194 = call i32 @_mm_mul_pd(i32 %192, i32 %193)
store i32 %194, i32* %12
%195 = load i32, i32* %11
%196 = load i32, i32* %14
%197 = call i32 @_mm_add_pd(i32 %195, i32 %196)
store i32 %197, i32* %11
%198 = load i32, i32* %12
%199 = load i32, i32* %14
%200 = call i32 @_mm_add_pd(i32 %198, i32 %199)
store i32 %200, i32* %12
%201 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w1, i64 0, i64 0))
store i32 %201, i32* %13
%202 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w0, i64 0, i64 0))
store i32 %202, i32* %14
%203 = load i32, i32* %11
%204 = load i32, i32* %15
%205 = call i32 @_mm_mul_pd(i32 %203, i32 %204)
store i32 %205, i32* %11
%206 = load i32, i32* %12
%207 = load i32, i32* %16
%208 = call i32 @_mm_mul_pd(i32 %206, i32 %207)
store i32 %208, i32* %12
%209 = load i32, i32* %11
%210 = load i32, i32* %13
%211 = call i32 @_mm_add_pd(i32 %209, i32 %210)
store i32 %211, i32* %11
%212 = load i32, i32* %12
%213 = load i32, i32* %13
%214 = call i32 @_mm_add_pd(i32 %212, i32 %213)
store i32 %214, i32* %12
%215 = load i32, i32* %11
%216 = load i32, i32* %15
%217 = call i32 @_mm_mul_pd(i32 %215, i32 %216)
store i32 %217, i32* %11
%218 = load i32, i32* %12
%219 = load i32, i32* %16
%220 = call i32 @_mm_mul_pd(i32 %218, i32 %219)
store i32 %220, i32* %12
%221 = load i32, i32* %11
%222 = load i32, i32* %14
%223 = call i32 @_mm_add_pd(i32 %221, i32 %222)
store i32 %223, i32* %11
%224 = load i32, i32* %12
%225 = load i32, i32* %14
%226 = call i32 @_mm_add_pd(i32 %224, i32 %225)
store i32 %226, i32* %12
%227 = load i32, i32* %7
%228 = load i32, i32* %6
%229 = call i32 @_mm_add_epi32(i32 %227, i32 %228)
store i32 %229, i32* %7
%230 = load i32, i32* %8
%231 = load i32, i32* %6
%232 = call i32 @_mm_add_epi32(i32 %230, i32 %231)
store i32 %232, i32* %8
%233 = load i32, i32* %7
%234 = call i32 @_mm_slli_epi32(i32 %233, i32 20)
store i32 %234, i32* %7
%235 = load i32, i32* %8
%236 = call i32 @_mm_slli_epi32(i32 %235, i32 20)
store i32 %236, i32* %8
%237 = load i32, i32* %7
%238 = call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%239 = call i32 @_mm_shuffle_epi32(i32 %237, i32 %238)
store i32 %239, i32* %7
%240 = load i32, i32* %8
%241 = call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%242 = call i32 @_mm_shuffle_epi32(i32 %240, i32 %241)
store i32 %242, i32* %8
%243 = load i32, i32* %7
%244 = call i32 @_mm_castsi128_pd(i32 %243)
store i32 %244, i32* %9
%245 = load i32, i32* %8
%246 = call i32 @_mm_castsi128_pd(i32 %245)
store i32 %246, i32* %10
%247 = load i32, i32* %11
%248 = load i32, i32* %9
%249 = call i32 @_mm_mul_pd(i32 %247, i32 %248)
store i32 %249, i32* %11
%250 = load i32, i32* %12
%251 = load i32, i32* %10
%252 = call i32 @_mm_mul_pd(i32 %250, i32 %251)
store i32 %252, i32* %12
%253 = load double*, double** %3
%254 = load i32, i32* %5
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds double, double* %253, i64 %255
%257 = load i32, i32* %11
%258 = call i32 @_mm_store_pd(double* %256, i32 %257)
%259 = load double*, double** %3
%260 = load i32, i32* %5
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds double, double* %259, i64 %261
%263 = getelementptr inbounds double, double* %262, i64 2
%264 = load i32, i32* %12
%265 = call i32 @_mm_store_pd(double* %263, i32 %264)
br label %266
266: ; preds = %22
%267 = load i32, i32* %5
%268 = add nsw i32 %267, 4
store i32 %268, i32* %5
br label %18
269: ; preds = %18
ret void
}

LLVM IR (-O2):
@remez9_0_log2_sse.one = internal constant [2 x double] [double 1.000000e+00, double 1.000000e+00]
@remez9_0_log2_sse.log2e = internal constant [2 x double] [double 0x3FF71547652B82FE, double 0x3FF71547652B82FE]
@remez9_0_log2_sse.maxlog = internal constant [2 x double] [double 0x40862E42FEFA39EF, double 0x40862E42FEFA39EF]
@remez9_0_log2_sse.minlog = internal constant [2 x double] [double 0xC086232BDD7ABCD2, double 0xC086232BDD7ABCD2]
@remez9_0_log2_sse.c1 = internal constant [2 x double] [double 0x3FE62E4000000000, double 0x3FE62E4000000000]
@remez9_0_log2_sse.c2 = internal constant [2 x double] [double 0x3EB7F7D1CF79ABCA, double 0x3EB7F7D1CF79ABCA]
@remez9_0_log2_sse.w9 = internal constant [2 x double] [double 0x3ED0664EC95B55A5, double 0x3ED0664EC95B55A5]
@remez9_0_log2_sse.w8 = internal constant [2 x double] [double 0x3EF81CF6E3384043, double 0x3EF81CF6E3384043]
@remez9_0_log2_sse.w7 = internal constant [2 x double] [double 0x3F2A348DE77F1CF5, double 0x3F2A348DE77F1CF5]
@remez9_0_log2_sse.w6 = internal constant [2 x double] [double 0x3F56BE39BE616110, double 0x3F56BE39BE616110]
@remez9_0_log2_sse.w5 = internal constant [2 x double] [double 0x3F811130AD0C429D, double 0x3F811130AD0C429D]
@remez9_0_log2_sse.w4 = internal constant [2 x double] [double 0x3FA55553D9FB0B63, double 0x3FA55553D9FB0B63]
@remez9_0_log2_sse.w3 = internal constant [2 x double] [double 0x3FC555555F876237, double 0x3FC555555F876237]
@remez9_0_log2_sse.w2 = internal constant [2 x double] [double 0x3FDFFFFFFFB8D57E, double 0x3FDFFFFFFFB8D57E]
@remez9_0_log2_sse.w1 = internal constant [2 x double] [double 0x3FF0000000006048, double 0x3FF0000000006048]
@remez9_0_log2_sse.w0 = internal constant [2 x double] [double 0x3FEFFFFFFFFFFF54, double 0x3FEFFFFFFFFFFF54]
define void @remez9_0_log2_sse(double* %0, i32 %1) {
%3 = tail call i32 @_mm_setr_epi32(i32 1023, i32 1023, i32 0, i32 0)
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %105
5: ; preds = %2, %5
%6 = phi i64 [ %102, %5 ], [ 0, %2 ]
%7 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.maxlog, i64 0, i64 0))
%8 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.minlog, i64 0, i64 0))
%9 = getelementptr inbounds double, double* %0, i64 %6
%10 = tail call i32 @_mm_load_pd(double* %9)
%11 = getelementptr inbounds double, double* %9, i64 2
%12 = tail call i32 @_mm_load_pd(double* %11)
%13 = tail call i32 @_mm_min_pd(i32 %10, i32 %7)
%14 = tail call i32 @_mm_min_pd(i32 %12, i32 %7)
%15 = tail call i32 @_mm_max_pd(i32 %13, i32 %8)
%16 = tail call i32 @_mm_max_pd(i32 %14, i32 %8)
%17 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.log2e, i64 0, i64 0))
%18 = tail call i32 (...) @_mm_setzero_pd()
%19 = tail call i32 @_mm_mul_pd(i32 %15, i32 %17)
%20 = tail call i32 @_mm_mul_pd(i32 %16, i32 %17)
%21 = tail call i32 @_mm_cmplt_pd(i32 %19, i32 %18)
%22 = tail call i32 @_mm_cmplt_pd(i32 %20, i32 %18)
%23 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.one, i64 0, i64 0))
%24 = tail call i32 @_mm_and_pd(i32 %21, i32 %23)
%25 = tail call i32 @_mm_and_pd(i32 %22, i32 %23)
%26 = tail call i32 @_mm_sub_pd(i32 %19, i32 %24)
%27 = tail call i32 @_mm_sub_pd(i32 %20, i32 %25)
%28 = tail call i32 @_mm_cvttpd_epi32(i32 %26)
%29 = tail call i32 @_mm_cvttpd_epi32(i32 %27)
%30 = tail call i32 @_mm_cvtepi32_pd(i32 %28)
%31 = tail call i32 @_mm_cvtepi32_pd(i32 %29)
%32 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.c1, i64 0, i64 0))
%33 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.c2, i64 0, i64 0))
%34 = tail call i32 @_mm_mul_pd(i32 %30, i32 %32)
%35 = tail call i32 @_mm_mul_pd(i32 %31, i32 %32)
%36 = tail call i32 @_mm_sub_pd(i32 %15, i32 %34)
%37 = tail call i32 @_mm_sub_pd(i32 %16, i32 %35)
%38 = tail call i32 @_mm_mul_pd(i32 %30, i32 %33)
%39 = tail call i32 @_mm_mul_pd(i32 %31, i32 %33)
%40 = tail call i32 @_mm_sub_pd(i32 %36, i32 %38)
%41 = tail call i32 @_mm_sub_pd(i32 %37, i32 %39)
%42 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w9, i64 0, i64 0))
%43 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w8, i64 0, i64 0))
%44 = tail call i32 @_mm_mul_pd(i32 %40, i32 %42)
%45 = tail call i32 @_mm_mul_pd(i32 %41, i32 %42)
%46 = tail call i32 @_mm_add_pd(i32 %44, i32 %43)
%47 = tail call i32 @_mm_add_pd(i32 %45, i32 %43)
%48 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w7, i64 0, i64 0))
%49 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w6, i64 0, i64 0))
%50 = tail call i32 @_mm_mul_pd(i32 %46, i32 %40)
%51 = tail call i32 @_mm_mul_pd(i32 %47, i32 %41)
%52 = tail call i32 @_mm_add_pd(i32 %50, i32 %48)
%53 = tail call i32 @_mm_add_pd(i32 %51, i32 %48)
%54 = tail call i32 @_mm_mul_pd(i32 %52, i32 %40)
%55 = tail call i32 @_mm_mul_pd(i32 %53, i32 %41)
%56 = tail call i32 @_mm_add_pd(i32 %54, i32 %49)
%57 = tail call i32 @_mm_add_pd(i32 %55, i32 %49)
%58 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w5, i64 0, i64 0))
%59 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w4, i64 0, i64 0))
%60 = tail call i32 @_mm_mul_pd(i32 %56, i32 %40)
%61 = tail call i32 @_mm_mul_pd(i32 %57, i32 %41)
%62 = tail call i32 @_mm_add_pd(i32 %60, i32 %58)
%63 = tail call i32 @_mm_add_pd(i32 %61, i32 %58)
%64 = tail call i32 @_mm_mul_pd(i32 %62, i32 %40)
%65 = tail call i32 @_mm_mul_pd(i32 %63, i32 %41)
%66 = tail call i32 @_mm_add_pd(i32 %64, i32 %59)
%67 = tail call i32 @_mm_add_pd(i32 %65, i32 %59)
%68 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w3, i64 0, i64 0))
%69 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w2, i64 0, i64 0))
%70 = tail call i32 @_mm_mul_pd(i32 %66, i32 %40)
%71 = tail call i32 @_mm_mul_pd(i32 %67, i32 %41)
%72 = tail call i32 @_mm_add_pd(i32 %70, i32 %68)
%73 = tail call i32 @_mm_add_pd(i32 %71, i32 %68)
%74 = tail call i32 @_mm_mul_pd(i32 %72, i32 %40)
%75 = tail call i32 @_mm_mul_pd(i32 %73, i32 %41)
%76 = tail call i32 @_mm_add_pd(i32 %74, i32 %69)
%77 = tail call i32 @_mm_add_pd(i32 %75, i32 %69)
%78 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w1, i64 0, i64 0))
%79 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez9_0_log2_sse.w0, i64 0, i64 0))
%80 = tail call i32 @_mm_mul_pd(i32 %76, i32 %40)
%81 = tail call i32 @_mm_mul_pd(i32 %77, i32 %41)
%82 = tail call i32 @_mm_add_pd(i32 %80, i32 %78)
%83 = tail call i32 @_mm_add_pd(i32 %81, i32 %78)
%84 = tail call i32 @_mm_mul_pd(i32 %82, i32 %40)
%85 = tail call i32 @_mm_mul_pd(i32 %83, i32 %41)
%86 = tail call i32 @_mm_add_pd(i32 %84, i32 %79)
%87 = tail call i32 @_mm_add_pd(i32 %85, i32 %79)
%88 = tail call i32 @_mm_add_epi32(i32 %28, i32 %3)
%89 = tail call i32 @_mm_add_epi32(i32 %29, i32 %3)
%90 = tail call i32 @_mm_slli_epi32(i32 %88, i32 20)
%91 = tail call i32 @_mm_slli_epi32(i32 %89, i32 20)
%92 = tail call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%93 = tail call i32 @_mm_shuffle_epi32(i32 %90, i32 %92)
%94 = tail call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%95 = tail call i32 @_mm_shuffle_epi32(i32 %91, i32 %94)
%96 = tail call i32 @_mm_castsi128_pd(i32 %93)
%97 = tail call i32 @_mm_castsi128_pd(i32 %95)
%98 = tail call i32 @_mm_mul_pd(i32 %86, i32 %96)
%99 = tail call i32 @_mm_mul_pd(i32 %87, i32 %97)
%100 = tail call i32 @_mm_store_pd(double* %9, i32 %98)
%101 = tail call i32 @_mm_store_pd(double* %11, i32 %99)
%102 = add nuw i64 %6, 4
%103 = trunc i64 %102 to i32
%104 = icmp slt i32 %103, %1
br i1 %104, label %5, label %105
105: ; preds = %5, %2
ret void
}