#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*/ i_conv(double *, int, double *, int, double *, int);
void swt_conv(double *sigIn, int sigInLength, double *approx, int approxLength,
              double *detail, int detailLength, double *filterLow,
              double *filterHi, int filterLength) {
  i_conv(sigIn, sigInLength, approx, sigInLength, filterLow, filterLength);
  i_conv(sigIn, sigInLength, detail, sigInLength, filterHi, filterLength);
  return;
}


x86 assembly (clang, -O0):
<swt_conv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0xc(%rbp),%ecx
mov    0x10(%rbp),%r8
mov    0x20(%rbp),%r9d
call   1030 <i_conv@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x28(%rbp),%rdx
mov    -0xc(%rbp),%ecx
mov    0x18(%rbp),%r8
mov    0x20(%rbp),%r9d
call   1030 <i_conv@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<swt_conv>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8,%r14
mov    %esi,%ebp
mov    %rdi,%rbx
mov    0x38(%rsp),%r15
mov    0x30(%rsp),%r8
mov    0x40(%rsp),%r12d
mov    %esi,%ecx
mov    %r12d,%r9d
call   1030 <i_conv@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r14,%rdx
mov    %ebp,%ecx
mov    %r15,%r8
mov    %r12d,%r9d
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <i_conv@plt>

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

LLVM IR (-O2):
define void @swt_conv(double* %0, i32 %1, double* %2, i32 %3, double* %4, i32 %5, double* %6, double* %7, i32 %8) {
%10 = tail call i32 @i_conv(double* %0, i32 %1, double* %2, i32 %1, double* %6, i32 %8)
%11 = tail call i32 @i_conv(double* %0, i32 %1, double* %4, i32 %1, double* %7, i32 %8)
ret void
}