#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_fma_u4_b(double *, double *, double *, double *,
                                    double *, double *, double *, double *,
                                    double *, double *, long, long);
void fftss_r4_fma_u4_b(double *in, double *out, double *w, long bsize,
                       long blocks) {
  kern_r4_fma_u4_b(out, out + bsize * blocks * 2, out + bsize * blocks * 4,
                   out + bsize * blocks * 6, in, in + bsize * 2, in + bsize * 4,
                   in + bsize * 6, w, w + bsize * blocks * 6, bsize, blocks);
}


x86 assembly (clang, -O0):
<fftss_r4_fma_u4_b>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x58,%rsp
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x38(%rbp),%rax
imul   -0x40(%rbp),%rax
shl    $0x1,%rax
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x28(%rbp),%rdx
mov    -0x38(%rbp),%rax
imul   -0x40(%rbp),%rax
shl    $0x2,%rax
shl    $0x3,%rax
add    %rax,%rdx
mov    -0x28(%rbp),%rcx
mov    -0x38(%rbp),%rax
imul   -0x40(%rbp),%rax
imul   $0x6,%rax,%rax
shl    $0x3,%rax
add    %rax,%rcx
mov    -0x20(%rbp),%r8
mov    -0x20(%rbp),%r9
mov    -0x38(%rbp),%rax
shl    $0x1,%rax
shl    $0x3,%rax
add    %rax,%r9
mov    -0x20(%rbp),%r15
mov    -0x38(%rbp),%rax
shl    $0x2,%rax
shl    $0x3,%rax
add    %rax,%r15
mov    -0x20(%rbp),%r14
imul   $0x6,-0x38(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r14
mov    -0x30(%rbp),%rbx
mov    -0x30(%rbp),%r11
mov    -0x38(%rbp),%rax
imul   -0x40(%rbp),%rax
imul   $0x6,%rax,%rax
shl    $0x3,%rax
add    %rax,%r11
mov    -0x38(%rbp),%r10
mov    -0x40(%rbp),%rax
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1030 <kern_r4_fma_u4_b@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<fftss_r4_fma_u4_b>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %r8,%r11
mov    %rcx,%r12
mov    %rdx,%r10
mov    %rsi,%r14
mov    %rdi,%r8
mov    %r11,%rdx
imul   %rcx,%rdx
mov    %rdx,%rcx
shl    $0x4,%rcx
add    %rcx,%rsi
shl    $0x5,%rdx
add    %r14,%rdx
lea    (%rcx,%rcx,2),%r15
lea    (%r14,%r15,1),%rcx
mov    %r12,%r9
shl    $0x4,%r9
add    %rdi,%r9
mov    %r12,%rax
shl    $0x5,%rax
add    %rdi,%rax
lea    (%r12,%r12,2),%rbx
shl    $0x4,%rbx
add    %rdi,%rbx
add    %r10,%r15
mov    %r14,%rdi
push   %r11
push   %r12
push   %r15
push   %r10
push   %rbx
push   %rax
call   1030 <kern_r4_fma_u4_b@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @fftss_r4_fma_u4_b(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** %6
%32 = load i64, i64* %9
%33 = mul nsw i64 %32, 2
%34 = getelementptr inbounds double, double* %31, i64 %33
%35 = load double*, double** %6
%36 = load i64, i64* %9
%37 = mul nsw i64 %36, 4
%38 = getelementptr inbounds double, double* %35, i64 %37
%39 = load double*, double** %6
%40 = load i64, i64* %9
%41 = mul nsw i64 %40, 6
%42 = getelementptr inbounds double, double* %39, i64 %41
%43 = load double*, double** %8
%44 = load double*, double** %8
%45 = load i64, i64* %9
%46 = load i64, i64* %10
%47 = mul nsw i64 %45, %46
%48 = mul nsw i64 %47, 6
%49 = getelementptr inbounds double, double* %44, i64 %48
%50 = load i64, i64* %9
%51 = load i64, i64* %10
%52 = call i32 @kern_r4_fma_u4_b(double* %11, double* %17, double* %23, double* %29, double* %30, double* %34, double* %38, double* %42, double* %43, double* %49, i64 %50, i64 %51)
ret void
}

LLVM IR (-O2):
define void @fftss_r4_fma_u4_b(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 = shl nsw i64 %3, 1
%14 = getelementptr inbounds double, double* %0, i64 %13
%15 = shl nsw i64 %3, 2
%16 = getelementptr inbounds double, double* %0, i64 %15
%17 = mul nsw i64 %3, 6
%18 = getelementptr inbounds double, double* %0, i64 %17
%19 = getelementptr inbounds double, double* %2, i64 %11
%20 = tail call i32 @kern_r4_fma_u4_b(double* %1, double* %8, double* %10, double* %12, double* %0, double* %14, double* %16, double* %18, double* %2, double* %19, i64 %3, i64 %4)
ret void
}