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

/* Variables and functions */
int /*<<< orphan*/ fn_WTconformAndDecimatorBy2(float *, float *, unsigned int,
                                               float *, unsigned int const);
int /*<<< orphan*/ memset(float *, int /*<<< orphan*/, int);
void fn_dirUniversalFWT_NoaK(float *a4p_ka[], float *a_da,
                             const unsigned int const cuci_N,
                             unsigned int cuic_w, float *p2tf_HPF,
                             float *p2tf_LPF,
                             const unsigned int const cuic_ord) {
  float a_buff[cuci_N];
  unsigned int ui_j;
  unsigned int ui_i;
  unsigned int ui_ord = cuci_N;
  float *p_p1 = &a_buff[0];
  float *p_p2 = &a_buff[cuci_N >> 1];
  float *pi_temp;
  switch (cuic_w) {
  case 0:
    break;
  case 1:
    fn_WTconformAndDecimatorBy2(a4p_ka[0], a_da, ui_ord, p2tf_HPF, cuic_ord);
    fn_WTconformAndDecimatorBy2(a4p_ka[1], a_da, ui_ord, p2tf_LPF, cuic_ord);
    break;
  default:
    memset(a_buff, 0, (sizeof(a_buff)) >> 1);
    fn_WTconformAndDecimatorBy2(a4p_ka[0], a_da, ui_ord, p2tf_HPF, cuic_ord);
    fn_WTconformAndDecimatorBy2(a_buff, a_da, ui_ord, p2tf_LPF, cuic_ord);
    for (ui_i = 1; ui_i < (cuic_w - 1); ui_i++) {
      ui_ord >>= 1;
      memset(p_p2, 0, (sizeof(a_buff)) >> 1);
      fn_WTconformAndDecimatorBy2(a4p_ka[ui_i], p_p1, ui_ord, p2tf_HPF,
                                  cuic_ord);
      fn_WTconformAndDecimatorBy2(p_p2, p_p1, ui_ord, p2tf_LPF, cuic_ord);
      pi_temp = p_p1;
      p_p1 = p_p2;
      p_p2 = pi_temp;
    }
    ui_ord >>= 1;
    fn_WTconformAndDecimatorBy2(a4p_ka[ui_i], p_p1, ui_ord, p2tf_HPF, cuic_ord);
    ui_i++;
    fn_WTconformAndDecimatorBy2(a4p_ka[ui_i], p_p1, ui_ord, p2tf_LPF, cuic_ord);
    break;
  }
  return;
}


x86 assembly (clang, -O0):
<fn_dirUniversalFWT_NoaK>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
mov    %rcx,-0x78(%rbp)
mov    %rsp,%rax
mov    %rax,-0x30(%rbp)
lea    0xf(,%rcx,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rax
sub    %rdx,%rax
mov    %rax,-0x70(%rbp)
mov    %rax,%rsp
mov    %rcx,-0x38(%rbp)
mov    -0x14(%rbp),%ecx
mov    %ecx,-0x44(%rbp)
mov    %rax,-0x50(%rbp)
mov    -0x14(%rbp),%ecx
shr    %ecx
lea    (%rax,%rcx,4),%rax
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x64(%rbp)
test   %eax,%eax
je     11ac <fn_dirUniversalFWT_NoaK+0x8c>
jmp    119b <fn_dirUniversalFWT_NoaK+0x7b>
mov    -0x64(%rbp),%eax
sub    $0x1,%eax
je     11b1 <fn_dirUniversalFWT_NoaK+0x91>
jmp    11ed <fn_dirUniversalFWT_NoaK+0xcd>
jmp    1320 <fn_dirUniversalFWT_NoaK+0x200>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    0x10(%rbp),%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x28(%rbp),%rcx
mov    0x10(%rbp),%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
jmp    1320 <fn_dirUniversalFWT_NoaK+0x200>
mov    -0x70(%rbp),%rdi
mov    -0x78(%rbp),%rax
shl    $0x2,%rax
shr    $0x1,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1040 <memset@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    0x10(%rbp),%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
mov    -0x70(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x28(%rbp),%rcx
mov    0x10(%rbp),%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
movl   $0x1,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jae    12d0 <fn_dirUniversalFWT_NoaK+0x1b0>
mov    -0x78(%rbp),%rax
mov    -0x44(%rbp),%ecx
shr    $0x1,%ecx
mov    %ecx,-0x44(%rbp)
mov    -0x58(%rbp),%rdi
shl    $0x2,%rax
shr    $0x1,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1040 <memset@plt>
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    0x10(%rbp),%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
mov    -0x58(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x28(%rbp),%rcx
mov    0x10(%rbp),%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
mov    -0x50(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1240 <fn_dirUniversalFWT_NoaK+0x120>
mov    -0x44(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    0x10(%rbp),%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x28(%rbp),%rcx
mov    0x10(%rbp),%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fn_dirUniversalFWT_NoaK>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %edx,%eax
mov    %rsp,%r15
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
test   %ecx,%ecx
je     12d9 <fn_dirUniversalFWT_NoaK+0x1b9>
mov    %r9,%r12
mov    %edx,%r14d
mov    %rdi,%r13
mov    0x10(%rbp),%ebx
cmp    $0x1,%ecx
jne    1199 <fn_dirUniversalFWT_NoaK+0x79>
mov    0x0(%r13),%rdi
mov    %rsi,%r15
mov    %r14d,%edx
mov    %r8,%rcx
mov    %ebx,%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
mov    0x8(%r13),%rdi
mov    %r15,%rsi
mov    %r14d,%edx
mov    %r12,%rcx
mov    %ebx,%r8d
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fn_WTconformAndDecimatorBy2@plt>
mov    %r12,-0x48(%rbp)
mov    %r14d,%eax
shr    %eax
mov    %eax,-0x2c(%rbp)
lea    (%r14,%r14,1),%edx
mov    %r15,%rdi
mov    %rsi,-0x38(%rbp)
xor    %esi,%esi
mov    %edx,-0x4c(%rbp)
mov    %rcx,-0x58(%rbp)
mov    %r8,%r12
call   1040 <memset@plt>
mov    %r13,-0x40(%rbp)
mov    0x0(%r13),%rdi
mov    -0x38(%rbp),%r13
mov    %r13,%rsi
mov    %r14d,%edx
mov    %r12,-0x60(%rbp)
mov    %r12,%rcx
mov    -0x58(%rbp),%r12
mov    %ebx,%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r12,%r13
mov    -0x48(%rbp),%rcx
mov    %r14d,%edx
mov    %ebx,-0x38(%rbp)
mov    %ebx,%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
lea    -0x1(%r12),%eax
mov    %eax,%ecx
cmp    $0x2,%eax
jb     129f <fn_dirUniversalFWT_NoaK+0x17f>
mov    -0x2c(%rbp),%eax
lea    (%r15,%rax,4),%r12
mov    $0x1,%ebx
mov    %rcx,-0x68(%rbp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%r13
mov    %r14d,-0x2c(%rbp)
shr    %r14d
mov    %r12,%rdi
xor    %esi,%esi
mov    -0x4c(%rbp),%edx
call   1040 <memset@plt>
mov    -0x40(%rbp),%rax
mov    (%rax,%rbx,8),%rdi
mov    %r15,%rsi
mov    %r14d,%edx
mov    -0x60(%rbp),%rcx
mov    -0x38(%rbp),%r15d
mov    %r15d,%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r14d,%edx
mov    -0x48(%rbp),%rcx
mov    %r15d,%r8d
mov    %r12,%r15
call   1030 <fn_WTconformAndDecimatorBy2@plt>
mov    -0x68(%rbp),%rcx
add    $0x1,%rbx
mov    %r13,%r12
cmp    %rbx,%rcx
jne    1230 <fn_dirUniversalFWT_NoaK+0x110>
mov    -0x2c(%rbp),%r12d
shr    $0x2,%r12d
mov    -0x40(%rbp),%r14
mov    -0x58(%rbp),%r13
jmp    12a7 <fn_dirUniversalFWT_NoaK+0x187>
mov    -0x2c(%rbp),%r12d
mov    -0x40(%rbp),%r14
mov    (%r14,%rcx,8),%rdi
mov    %r15,%rsi
mov    %r12d,%edx
mov    -0x60(%rbp),%rcx
mov    -0x38(%rbp),%ebx
mov    %ebx,%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
mov    %r13d,%eax
mov    (%r14,%rax,8),%rdi
mov    %r15,%rsi
mov    %r12d,%edx
mov    -0x48(%rbp),%rcx
mov    %ebx,%r8d
call   1030 <fn_WTconformAndDecimatorBy2@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @fn_dirUniversalFWT_NoaK(float** %0, float* %1, i32 %2, i32 %3, float* %4, float* %5, i32 %6) {
%8 = alloca float**
%9 = alloca float*
%10 = alloca i32
%11 = alloca i32
%12 = alloca float*
%13 = alloca float*
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i64
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca float*
%21 = alloca float*
%22 = alloca float*
store float** %0, float*** %8
store float* %1, float** %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store float* %4, float** %12
store float* %5, float** %13
store i32 %6, i32* %14
%23 = load i32, i32* %10
%24 = zext i32 %23 to i64
%25 = call i8* @llvm.stacksave()
store i8* %25, i8** %15
%26 = alloca float, i64 %24
store i64 %24, i64* %16
%27 = load i32, i32* %10
store i32 %27, i32* %19
%28 = getelementptr inbounds float, float* %26, i64 0
store float* %28, float** %20
%29 = load i32, i32* %10
%30 = lshr i32 %29, 1
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds float, float* %26, i64 %31
store float* %32, float** %21
%33 = load i32, i32* %11
switch i32 %33, label %52 [
i32 0, label %34
i32 1, label %35
]
34: ; preds = %7
br label %130
35: ; preds = %7
%36 = load float**, float*** %8
%37 = getelementptr inbounds float*, float** %36, i64 0
%38 = load float*, float** %37
%39 = load float*, float** %9
%40 = load i32, i32* %19
%41 = load float*, float** %12
%42 = load i32, i32* %14
%43 = call i32 @fn_WTconformAndDecimatorBy2(float* %38, float* %39, i32 %40, float* %41, i32 %42)
%44 = load float**, float*** %8
%45 = getelementptr inbounds float*, float** %44, i64 1
%46 = load float*, float** %45
%47 = load float*, float** %9
%48 = load i32, i32* %19
%49 = load float*, float** %13
%50 = load i32, i32* %14
%51 = call i32 @fn_WTconformAndDecimatorBy2(float* %46, float* %47, i32 %48, float* %49, i32 %50)
br label %130
52: ; preds = %7
%53 = mul nuw i64 4, %24
%54 = lshr i64 %53, 1
%55 = trunc i64 %54 to i32
%56 = call i32 @memset(float* %26, i32 0, i32 %55)
%57 = load float**, float*** %8
%58 = getelementptr inbounds float*, float** %57, i64 0
%59 = load float*, float** %58
%60 = load float*, float** %9
%61 = load i32, i32* %19
%62 = load float*, float** %12
%63 = load i32, i32* %14
%64 = call i32 @fn_WTconformAndDecimatorBy2(float* %59, float* %60, i32 %61, float* %62, i32 %63)
%65 = load float*, float** %9
%66 = load i32, i32* %19
%67 = load float*, float** %13
%68 = load i32, i32* %14
%69 = call i32 @fn_WTconformAndDecimatorBy2(float* %26, float* %65, i32 %66, float* %67, i32 %68)
store i32 1, i32* %18
br label %70
70: ; preds = %102, %52
%71 = load i32, i32* %18
%72 = load i32, i32* %11
%73 = sub i32 %72, 1
%74 = icmp ult i32 %71, %73
br i1 %74, label %75, label %105
75: ; preds = %70
%76 = load i32, i32* %19
%77 = lshr i32 %76, 1
store i32 %77, i32* %19
%78 = load float*, float** %21
%79 = mul nuw i64 4, %24
%80 = lshr i64 %79, 1
%81 = trunc i64 %80 to i32
%82 = call i32 @memset(float* %78, i32 0, i32 %81)
%83 = load float**, float*** %8
%84 = load i32, i32* %18
%85 = zext i32 %84 to i64
%86 = getelementptr inbounds float*, float** %83, i64 %85
%87 = load float*, float** %86
%88 = load float*, float** %20
%89 = load i32, i32* %19
%90 = load float*, float** %12
%91 = load i32, i32* %14
%92 = call i32 @fn_WTconformAndDecimatorBy2(float* %87, float* %88, i32 %89, float* %90, i32 %91)
%93 = load float*, float** %21
%94 = load float*, float** %20
%95 = load i32, i32* %19
%96 = load float*, float** %13
%97 = load i32, i32* %14
%98 = call i32 @fn_WTconformAndDecimatorBy2(float* %93, float* %94, i32 %95, float* %96, i32 %97)
%99 = load float*, float** %20
store float* %99, float** %22
%100 = load float*, float** %21
store float* %100, float** %20
%101 = load float*, float** %22
store float* %101, float** %21
br label %102
102: ; preds = %75
%103 = load i32, i32* %18
%104 = add i32 %103, 1
store i32 %104, i32* %18
br label %70
105: ; preds = %70
%106 = load i32, i32* %19
%107 = lshr i32 %106, 1
store i32 %107, i32* %19
%108 = load float**, float*** %8
%109 = load i32, i32* %18
%110 = zext i32 %109 to i64
%111 = getelementptr inbounds float*, float** %108, i64 %110
%112 = load float*, float** %111
%113 = load float*, float** %20
%114 = load i32, i32* %19
%115 = load float*, float** %12
%116 = load i32, i32* %14
%117 = call i32 @fn_WTconformAndDecimatorBy2(float* %112, float* %113, i32 %114, float* %115, i32 %116)
%118 = load i32, i32* %18
%119 = add i32 %118, 1
store i32 %119, i32* %18
%120 = load float**, float*** %8
%121 = load i32, i32* %18
%122 = zext i32 %121 to i64
%123 = getelementptr inbounds float*, float** %120, i64 %122
%124 = load float*, float** %123
%125 = load float*, float** %20
%126 = load i32, i32* %19
%127 = load float*, float** %13
%128 = load i32, i32* %14
%129 = call i32 @fn_WTconformAndDecimatorBy2(float* %124, float* %125, i32 %126, float* %127, i32 %128)
br label %130
130: ; preds = %105, %35, %34
%131 = load i8*, i8** %15
ret void
}

LLVM IR (-O2):
define void @fn_dirUniversalFWT_NoaK(float** nocapture %0, float* %1, i32 %2, i32 %3, float* %4, float* %5, i32 %6) {
%8 = zext i32 %2 to i64
%9 = alloca float, i64 %8
switch i32 %3, label %16 [
i32 0, label %55
i32 1, label %10
]
10: ; preds = %7
%11 = load float*, float** %0
%12 = tail call i32 @fn_WTconformAndDecimatorBy2(float* %11, float* %1, i32 %2, float* %4, i32 %6)
%13 = getelementptr inbounds float*, float** %0, i64 1
%14 = load float*, float** %13
%15 = tail call i32 @fn_WTconformAndDecimatorBy2(float* %14, float* %1, i32 %2, float* %5, i32 %6)
br label %55
16: ; preds = %7
%17 = lshr i32 %2, 1
%18 = shl i32 %2, 1
%19 = call i32 @memset(float* %9, i32 0, i32 %18)
%20 = load float*, float** %0
%21 = call i32 @fn_WTconformAndDecimatorBy2(float* %20, float* %1, i32 %2, float* %4, i32 %6)
%22 = call i32 @fn_WTconformAndDecimatorBy2(float* %9, float* %1, i32 %2, float* %5, i32 %6)
%23 = add i32 %3, -1
%24 = icmp ugt i32 %23, 1
br i1 %24, label %25, label %44
25: ; preds = %16
%26 = zext i32 %17 to i64
%27 = getelementptr inbounds float, float* %9, i64 %26
%28 = zext i32 %23 to i64
br label %29
29: ; preds = %25, %29
%30 = phi i64 [ 1, %25 ], [ %40, %29 ]
%31 = phi float* [ %27, %25 ], [ %32, %29 ]
%32 = phi float* [ %9, %25 ], [ %31, %29 ]
%33 = phi i32 [ %2, %25 ], [ %34, %29 ]
%34 = lshr i32 %33, 1
%35 = call i32 @memset(float* %31, i32 0, i32 %18)
%36 = getelementptr inbounds float*, float** %0, i64 %30
%37 = load float*, float** %36
%38 = call i32 @fn_WTconformAndDecimatorBy2(float* %37, float* %32, i32 %34, float* %4, i32 %6)
%39 = call i32 @fn_WTconformAndDecimatorBy2(float* %31, float* %32, i32 %34, float* %5, i32 %6)
%40 = add nuw nsw i64 %30, 1
%41 = icmp eq i64 %40, %28
br i1 %41, label %42, label %29
42: ; preds = %29
%43 = lshr i32 %33, 2
br label %44
44: ; preds = %16, %42
%45 = phi i32 [ %43, %42 ], [ %17, %16 ]
%46 = phi float* [ %31, %42 ], [ %9, %16 ]
%47 = zext i32 %23 to i64
%48 = getelementptr inbounds float*, float** %0, i64 %47
%49 = load float*, float** %48
%50 = call i32 @fn_WTconformAndDecimatorBy2(float* %49, float* %46, i32 %45, float* %4, i32 %6)
%51 = zext i32 %3 to i64
%52 = getelementptr inbounds float*, float** %0, i64 %51
%53 = load float*, float** %52
%54 = call i32 @fn_WTconformAndDecimatorBy2(float* %53, float* %46, i32 %45, float* %5, i32 %6)
br label %55
55: ; preds = %44, %10, %7
ret void
}