#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 */
int /*<<< orphan*/ kern_r4_sse2_u4_f(double *, double *, double *, double *,
                                     double *, double *, long);
void fftss_r4_sse2_u4_f(double *in, double *out, double *w, long bsize,
                        long blocks) {
  kern_r4_sse2_u4_f(out, out + bsize * blocks * 2, out + bsize * blocks * 4,
                    out + bsize * blocks * 6, in, w, blocks);
}


x86 assembly (clang, -O0):
<fftss_r4_sse2_u4_f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rax
imul   -0x28(%rbp),%rax
shl    $0x1,%rax
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rax
imul   -0x28(%rbp),%rax
shl    $0x2,%rax
shl    $0x3,%rax
add    %rax,%rdx
mov    -0x10(%rbp),%rcx
mov    -0x20(%rbp),%rax
imul   -0x28(%rbp),%rax
imul   $0x6,%rax,%rax
shl    $0x3,%rax
add    %rax,%rcx
mov    -0x8(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x28(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <kern_r4_sse2_u4_f@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fftss_r4_sse2_u4_f>:
push   %rax
mov    %rdx,%r9
mov    %rdi,%r10
imul   %r8,%rcx
mov    %rcx,%rdx
lea    (%rcx,%rcx,2),%rax
shl    $0x4,%rcx
add    %rsi,%rcx
shl    $0x5,%rdx
add    %rsi,%rdx
shl    $0x4,%rax
add    %rsi,%rax
mov    %r8,(%rsp)
mov    %rsi,%rdi
mov    %rcx,%rsi
mov    %rax,%rcx
mov    %r10,%r8
call   1030 <kern_r4_sse2_u4_f@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @fftss_r4_sse2_u4_f(double* %0, double* %1, double* %2, i64 %3, i64 %4) {
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i64
%10 = alloca i64
store double* %0, double** %6
store double* %1, double** %7
store double* %2, double** %8
store i64 %3, i64* %9
store i64 %4, i64* %10
%11 = load double*, double** %7
%12 = load double*, double** %7
%13 = load i64, i64* %9
%14 = load i64, i64* %10
%15 = mul nsw i64 %13, %14
%16 = mul nsw i64 %15, 2
%17 = getelementptr inbounds double, double* %12, i64 %16
%18 = load double*, double** %7
%19 = load i64, i64* %9
%20 = load i64, i64* %10
%21 = mul nsw i64 %19, %20
%22 = mul nsw i64 %21, 4
%23 = getelementptr inbounds double, double* %18, i64 %22
%24 = load double*, double** %7
%25 = load i64, i64* %9
%26 = load i64, i64* %10
%27 = mul nsw i64 %25, %26
%28 = mul nsw i64 %27, 6
%29 = getelementptr inbounds double, double* %24, i64 %28
%30 = load double*, double** %6
%31 = load double*, double** %8
%32 = load i64, i64* %10
%33 = call i32 @kern_r4_sse2_u4_f(double* %11, double* %17, double* %23, double* %29, double* %30, double* %31, i64 %32)
ret void
}

LLVM IR (-O2):
define void @fftss_r4_sse2_u4_f(double* %0, double* %1, double* %2, i64 %3, i64 %4) {
%6 = mul nsw i64 %4, %3
%7 = shl nsw i64 %6, 1
%8 = getelementptr inbounds double, double* %1, i64 %7
%9 = shl nsw i64 %6, 2
%10 = getelementptr inbounds double, double* %1, i64 %9
%11 = mul nsw i64 %6, 6
%12 = getelementptr inbounds double, double* %1, i64 %11
%13 = tail call i32 @kern_r4_sse2_u4_f(double* %1, double* %8, double* %10, double* %12, double* %0, double* %2, i64 %4)
ret void
}