#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*/ conv(double *, int, double *, int, double *, int);
void dwt_conv(double *sigIn, int sigInLength, double *lowDe, double *hiDe,
              int filterLen, double *approx, double *detail, int sigOutLength) {
  conv(sigIn, sigInLength, approx, sigOutLength, lowDe, filterLen);
  conv(sigIn, sigInLength, detail, sigOutLength, hiDe, filterLen);
  return;
}


x86 assembly (clang, -O0):
<dwt_conv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x30(%rbp),%rdx
mov    0x18(%rbp),%ecx
mov    -0x18(%rbp),%r8
mov    -0x24(%rbp),%r9d
call   1030 <conv@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    0x10(%rbp),%rdx
mov    0x18(%rbp),%ecx
mov    -0x20(%rbp),%r8
mov    -0x24(%rbp),%r9d
call   1030 <conv@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dwt_conv>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r8d,%r15d
mov    %rcx,%r14
mov    %rdx,%r8
mov    %esi,%r13d
mov    %rdi,%rbx
mov    0x40(%rsp),%r12
mov    0x48(%rsp),%ebp
mov    %r9,%rdx
mov    %ebp,%ecx
mov    %r15d,%r9d
call   1030 <conv@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r12,%rdx
mov    %ebp,%ecx
mov    %r14,%r8
mov    %r15d,%r9d
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <conv@plt>

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

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