#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 */

/* Variables and functions */
float smf2highv(float *, float, float, float);
float smf2lowv(float *, float, float, float);
int /*<<< orphan*/ smf2splitv(float *, float *, float *, float, float, float);
void smf4linkwitz_rileyv(float *u, float *low, float *high, float x,
                         float w_2) {
  float t1, t2;
  smf2splitv(u, &t1, &t2, x, w_2, 1.414213562373095f);
  *low = smf2lowv(u + 2, t1, w_2, 1.414213562373095f);
  *high = smf2highv(u + 4, t2, w_2, 1.414213562373095f);
}


x86 assembly (clang, -O0):
<smf4linkwitz_rileyv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movss  %xmm0,-0x1c(%rbp)
movss  %xmm1,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movss  -0x1c(%rbp),%xmm0
movss  -0x20(%rbp),%xmm1
lea    -0x24(%rbp),%rsi
lea    -0x28(%rbp),%rdx
movss  0xe94(%rip),%xmm2
call   1040 <smf2splitv@plt>
mov    -0x8(%rbp),%rdi
add    $0x8,%rdi
movss  -0x24(%rbp),%xmm0
movss  -0x20(%rbp),%xmm1
movss  0xe75(%rip),%xmm2
call   1050 <smf2lowv@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rdi
add    $0x10,%rdi
movss  -0x28(%rbp),%xmm0
movss  -0x20(%rbp),%xmm1
movss  0xe4e(%rip),%xmm2
call   1030 <smf2highv@plt>
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<smf4linkwitz_rileyv>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
movss  %xmm1,0x4(%rsp)
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
movss  0xea6(%rip),%xmm2
call   1040 <smf2splitv@plt>
lea    0x8(%rbx),%rdi
movss  0xc(%rsp),%xmm0
movss  0x4(%rsp),%xmm1
movss  0xe89(%rip),%xmm2
call   1050 <smf2lowv@plt>
movss  %xmm0,(%r15)
add    $0x10,%rbx
movss  0x8(%rsp),%xmm0
mov    %rbx,%rdi
movss  0x4(%rsp),%xmm1
movss  0xe64(%rip),%xmm2
call   1030 <smf2highv@plt>
movss  %xmm0,(%r14)
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @smf4linkwitz_rileyv(float* %0, float* %1, float* %2, float %3, float %4) {
%6 = alloca float*
%7 = alloca float*
%8 = alloca float*
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
store float* %0, float** %6
store float* %1, float** %7
store float* %2, float** %8
store float %3, float* %9
store float %4, float* %10
%13 = load float*, float** %6
%14 = load float, float* %9
%15 = load float, float* %10
%16 = call i32 @smf2splitv(float* %13, float* %11, float* %12, float %14, float %15, float 0x3FF6A09E60000000)
%17 = load float*, float** %6
%18 = getelementptr inbounds float, float* %17, i64 2
%19 = load float, float* %11
%20 = load float, float* %10
%21 = call float @smf2lowv(float* %18, float %19, float %20, float 0x3FF6A09E60000000)
%22 = load float*, float** %7
store float %21, float* %22
%23 = load float*, float** %6
%24 = getelementptr inbounds float, float* %23, i64 4
%25 = load float, float* %12
%26 = load float, float* %10
%27 = call float @smf2highv(float* %24, float %25, float %26, float 0x3FF6A09E60000000)
%28 = load float*, float** %8
store float %27, float* %28
ret void
}

LLVM IR (-O2):
define void @smf4linkwitz_rileyv(float* %0, float* nocapture writeonly %1, float* nocapture writeonly %2, float %3, float %4) {
%6 = alloca float
%7 = alloca float
%8 = bitcast float* %6 to i8*
%9 = bitcast float* %7 to i8*
%10 = call i32 @smf2splitv(float* %0, float* %6, float* %7, float %3, float %4, float 0x3FF6A09E60000000)
%11 = getelementptr inbounds float, float* %0, i64 2
%12 = load float, float* %6
%13 = call float @smf2lowv(float* %11, float %12, float %4, float 0x3FF6A09E60000000)
store float %13, float* %1
%14 = getelementptr inbounds float, float* %0, i64 4
%15 = load float, float* %7
%16 = call float @smf2highv(float* %14, float %15, float %4, float 0x3FF6A09E60000000)
store float %16, float* %2
ret void
}