#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 remez5_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 w5[2] = {
      (1.185268231308989403584147407056378360798378534739e-2),
      (1.185268231308989403584147407056378360798378534739e-2)};
  __attribute__((aligned(16))) static const double w4[2] = {
      (3.87412011356070379615759057344100690905653320886699e-2),
      (3.87412011356070379615759057344100690905653320886699e-2)};
  __attribute__((aligned(16))) static const double w3[2] = {
      (0.16775408658617866431779970932853611481292418818223),
      (0.16775408658617866431779970932853611481292418818223)};
  __attribute__((aligned(16))) static const double w2[2] = {
      (0.49981934577169208735732248650232562589934399402426),
      (0.49981934577169208735732248650232562589934399402426)};
  __attribute__((aligned(16))) static const double w1[2] = {
      (1.00001092396453942157124178508842412412025643386873),
      (1.00001092396453942157124178508842412412025643386873)};
  __attribute__((aligned(16))) static const double w0[2] = {
      (0.99999989311082729779536722205742989232069120354073),
      (0.99999989311082729779536722205742989232069120354073)};
  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(w5);
    xmm1 = _mm_load_pd(w4);
    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(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):
<remez5_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    16a1 <remez5_0_log2_sse+0x481>
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)
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 <remez5_0_log2_sse+0x29>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<remez5_0_log2_sse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %esi,%r14d
mov    %rdi,%rbx
mov    $0x3ff,%edi
mov    $0x3ff,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1140 <_mm_setr_epi32@plt>
test   %r14d,%r14d
jle    1668 <remez5_0_log2_sse+0x448>
mov    %eax,%r12d
xor    %eax,%eax
mov    %r14d,0x18(%rsp)
mov    %r12d,0x14(%rsp)
nop
mov    %eax,0x24(%rsp)
mov    %rbx,0x30(%rsp)
lea    0xdb0(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r12d
lea    0xdb1(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %rbx,%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r15d
lea    0x10(%rbx),%rdi
mov    %rdi,0x28(%rsp)
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %r12d,%esi
call   10f0 <_mm_min_pd@plt>
mov    %eax,%r15d
mov    %ebp,%edi
mov    %r12d,%esi
call   10f0 <_mm_min_pd@plt>
mov    %eax,%ebp
mov    %r15d,%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,%r15d
mov    %eax,0x10(%rsp)
lea    0xd2b(%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,%r13d
mov    %r15d,%edi
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r12d
mov    %r13d,%edi
mov    %r14d,%esi
call   1050 <_mm_cmplt_pd@plt>
mov    %eax,%r15d
mov    %r12d,%edi
mov    %r14d,%esi
call   1050 <_mm_cmplt_pd@plt>
mov    %eax,%ebx
lea    0xccf(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %r15d,%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    %r13d,%edi
mov    %ebp,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%ebp
mov    %r12d,%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,%r15d
mov    %ebx,%edi
call   10c0 <_mm_cvtepi32_pd@plt>
mov    %eax,%r14d
lea    0xca2(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebx
lea    0xca4(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r13d
mov    %r15d,%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    0x10(%rsp),%edi
mov    %ebx,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%r12d
mov    %r15d,%edi
mov    %r13d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %r14d,%edi
mov    %r13d,%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    %r12d,%edi
mov    %r14d,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%r15d
lea    0xc3a(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebx
lea    0xc3c(%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    0xc07(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r15d
lea    0xc08(%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,%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
mov    %ebp,%r12d
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,%r14d
lea    0xb99(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r15d
lea    0xb9a(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,0x10(%rsp)
mov    %ebp,%edi
mov    0xc(%rsp),%r13d
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    0x10(%rsp),%ebp
mov    %ebp,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r14d
mov    %ebx,%edi
mov    %ebp,%esi
mov    0x14(%rsp),%r12d
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r15d
mov    0x1c(%rsp),%edi
mov    %r12d,%esi
call   1080 <_mm_add_epi32@plt>
mov    %eax,%ebx
mov    0x20(%rsp),%edi
mov    %r12d,%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    0x30(%rsp),%rbx
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    %r14d,%esi
mov    0x18(%rsp),%r14d
call   1030 <_mm_store_pd@plt>
mov    0x28(%rsp),%rdi
mov    %ebp,%esi
call   1030 <_mm_store_pd@plt>
mov    0x24(%rsp),%eax
add    $0x20,%rbx
add    $0x4,%eax
cmp    %r14d,%eax
jl     1260 <remez5_0_log2_sse+0x40>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@remez5_0_log2_sse.one = internal constant [2 x double] [double 1.000000e+00, double 1.000000e+00]
@remez5_0_log2_sse.log2e = internal constant [2 x double] [double 0x3FF71547652B82FE, double 0x3FF71547652B82FE]
@remez5_0_log2_sse.maxlog = internal constant [2 x double] [double 0x40862E42FEFA39EF, double 0x40862E42FEFA39EF]
@remez5_0_log2_sse.minlog = internal constant [2 x double] [double 0xC086232BDD7ABCD2, double 0xC086232BDD7ABCD2]
@remez5_0_log2_sse.c1 = internal constant [2 x double] [double 0x3FE62E4000000000, double 0x3FE62E4000000000]
@remez5_0_log2_sse.c2 = internal constant [2 x double] [double 0x3EB7F7D1CF79ABCA, double 0x3EB7F7D1CF79ABCA]
@remez5_0_log2_sse.w5 = internal constant [2 x double] [double 0x3F884638173C9E42, double 0x3F884638173C9E42]
@remez5_0_log2_sse.w4 = internal constant [2 x double] [double 0x3FA3D5E2FFC537A9, double 0x3FA3D5E2FFC537A9]
@remez5_0_log2_sse.w3 = internal constant [2 x double] [double 0x3FC578F745D43901, double 0x3FC578F745D43901]
@remez5_0_log2_sse.w2 = internal constant [2 x double] [double 0x3FDFFD0A47FFD796, double 0x3FDFFD0A47FFD796]
@remez5_0_log2_sse.w1 = internal constant [2 x double] [double 0x3FF0000B74612085, double 0x3FF0000B74612085]
@remez5_0_log2_sse.w0 = internal constant [2 x double] [double 0x3FEFFFFFC69D4393, double 0x3FEFFFFFC69D4393]
define void @remez5_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 = %214, %2
%19 = load i32, i32* %5
%20 = load i32, i32* %4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %217
22: ; preds = %18
%23 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez5_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]* @remez5_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]* @remez5_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]* @remez5_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]* @remez5_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]* @remez5_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]* @remez5_0_log2_sse.w5, i64 0, i64 0))
store i32 %109, i32* %13
%110 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez5_0_log2_sse.w4, 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]* @remez5_0_log2_sse.w3, i64 0, i64 0))
store i32 %123, i32* %13
%124 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez5_0_log2_sse.w2, 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]* @remez5_0_log2_sse.w1, i64 0, i64 0))
store i32 %149, i32* %13
%150 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez5_0_log2_sse.w0, 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 = load i32, i32* %7
%176 = load i32, i32* %6
%177 = call i32 @_mm_add_epi32(i32 %175, i32 %176)
store i32 %177, i32* %7
%178 = load i32, i32* %8
%179 = load i32, i32* %6
%180 = call i32 @_mm_add_epi32(i32 %178, i32 %179)
store i32 %180, i32* %8
%181 = load i32, i32* %7
%182 = call i32 @_mm_slli_epi32(i32 %181, i32 20)
store i32 %182, i32* %7
%183 = load i32, i32* %8
%184 = call i32 @_mm_slli_epi32(i32 %183, i32 20)
store i32 %184, i32* %8
%185 = load i32, i32* %7
%186 = call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%187 = call i32 @_mm_shuffle_epi32(i32 %185, i32 %186)
store i32 %187, i32* %7
%188 = load i32, i32* %8
%189 = call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%190 = call i32 @_mm_shuffle_epi32(i32 %188, i32 %189)
store i32 %190, i32* %8
%191 = load i32, i32* %7
%192 = call i32 @_mm_castsi128_pd(i32 %191)
store i32 %192, i32* %9
%193 = load i32, i32* %8
%194 = call i32 @_mm_castsi128_pd(i32 %193)
store i32 %194, i32* %10
%195 = load i32, i32* %11
%196 = load i32, i32* %9
%197 = call i32 @_mm_mul_pd(i32 %195, i32 %196)
store i32 %197, i32* %11
%198 = load i32, i32* %12
%199 = load i32, i32* %10
%200 = call i32 @_mm_mul_pd(i32 %198, i32 %199)
store i32 %200, i32* %12
%201 = load double*, double** %3
%202 = load i32, i32* %5
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds double, double* %201, i64 %203
%205 = load i32, i32* %11
%206 = call i32 @_mm_store_pd(double* %204, i32 %205)
%207 = load double*, double** %3
%208 = load i32, i32* %5
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds double, double* %207, i64 %209
%211 = getelementptr inbounds double, double* %210, i64 2
%212 = load i32, i32* %12
%213 = call i32 @_mm_store_pd(double* %211, i32 %212)
br label %214
214: ; preds = %22
%215 = load i32, i32* %5
%216 = add nsw i32 %215, 4
store i32 %216, i32* %5
br label %18
217: ; preds = %18
ret void
}

LLVM IR (-O2):
@remez5_0_log2_sse.one = internal constant [2 x double] [double 1.000000e+00, double 1.000000e+00]
@remez5_0_log2_sse.log2e = internal constant [2 x double] [double 0x3FF71547652B82FE, double 0x3FF71547652B82FE]
@remez5_0_log2_sse.maxlog = internal constant [2 x double] [double 0x40862E42FEFA39EF, double 0x40862E42FEFA39EF]
@remez5_0_log2_sse.minlog = internal constant [2 x double] [double 0xC086232BDD7ABCD2, double 0xC086232BDD7ABCD2]
@remez5_0_log2_sse.c1 = internal constant [2 x double] [double 0x3FE62E4000000000, double 0x3FE62E4000000000]
@remez5_0_log2_sse.c2 = internal constant [2 x double] [double 0x3EB7F7D1CF79ABCA, double 0x3EB7F7D1CF79ABCA]
@remez5_0_log2_sse.w5 = internal constant [2 x double] [double 0x3F884638173C9E42, double 0x3F884638173C9E42]
@remez5_0_log2_sse.w4 = internal constant [2 x double] [double 0x3FA3D5E2FFC537A9, double 0x3FA3D5E2FFC537A9]
@remez5_0_log2_sse.w3 = internal constant [2 x double] [double 0x3FC578F745D43901, double 0x3FC578F745D43901]
@remez5_0_log2_sse.w2 = internal constant [2 x double] [double 0x3FDFFD0A47FFD796, double 0x3FDFFD0A47FFD796]
@remez5_0_log2_sse.w1 = internal constant [2 x double] [double 0x3FF0000B74612085, double 0x3FF0000B74612085]
@remez5_0_log2_sse.w0 = internal constant [2 x double] [double 0x3FEFFFFFC69D4393, double 0x3FEFFFFFC69D4393]
define void @remez5_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 %85
5: ; preds = %2, %5
%6 = phi i64 [ %82, %5 ], [ 0, %2 ]
%7 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez5_0_log2_sse.maxlog, i64 0, i64 0))
%8 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez5_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]* @remez5_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]* @remez5_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]* @remez5_0_log2_sse.c1, i64 0, i64 0))
%33 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez5_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]* @remez5_0_log2_sse.w5, i64 0, i64 0))
%43 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez5_0_log2_sse.w4, 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]* @remez5_0_log2_sse.w3, i64 0, i64 0))
%49 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez5_0_log2_sse.w2, 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]* @remez5_0_log2_sse.w1, i64 0, i64 0))
%59 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez5_0_log2_sse.w0, 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_add_epi32(i32 %28, i32 %3)
%69 = tail call i32 @_mm_add_epi32(i32 %29, i32 %3)
%70 = tail call i32 @_mm_slli_epi32(i32 %68, i32 20)
%71 = tail call i32 @_mm_slli_epi32(i32 %69, i32 20)
%72 = tail call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%73 = tail call i32 @_mm_shuffle_epi32(i32 %70, i32 %72)
%74 = tail call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%75 = tail call i32 @_mm_shuffle_epi32(i32 %71, i32 %74)
%76 = tail call i32 @_mm_castsi128_pd(i32 %73)
%77 = tail call i32 @_mm_castsi128_pd(i32 %75)
%78 = tail call i32 @_mm_mul_pd(i32 %66, i32 %76)
%79 = tail call i32 @_mm_mul_pd(i32 %67, i32 %77)
%80 = tail call i32 @_mm_store_pd(double* %9, i32 %78)
%81 = tail call i32 @_mm_store_pd(double* %11, i32 %79)
%82 = add nuw i64 %6, 4
%83 = trunc i64 %82 to i32
%84 = icmp slt i32 %83, %1
br i1 %84, label %5, label %85
85: ; preds = %5, %2
ret void
}