#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*/ aan_mascara_canal(float *, float *, int, int, float **);
void aan_mascara_imagen(float *red_input, float *green_input, float *blue_input,
                        float *red_output, float *green_output,
                        float *blue_output, int width, int height, float **m) {
  aan_mascara_canal(red_input, red_output, width, height, m);
  aan_mascara_canal(green_input, green_output, width, height, m);
  aan_mascara_canal(blue_input, blue_output, width, height, m);
}


x86 assembly (clang, -O0):
<aan_mascara_imagen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    0x10(%rbp),%edx
mov    0x18(%rbp),%ecx
mov    0x20(%rbp),%r8
call   1030 <aan_mascara_canal@plt>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    0x10(%rbp),%edx
mov    0x18(%rbp),%ecx
mov    0x20(%rbp),%r8
call   1030 <aan_mascara_canal@plt>
mov    -0x18(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    0x10(%rbp),%edx
mov    0x18(%rbp),%ecx
mov    0x20(%rbp),%r8
call   1030 <aan_mascara_canal@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aan_mascara_imagen>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,(%rsp)
mov    %r8,%r12
mov    %rdx,%r15
mov    %rsi,%r13
mov    0x40(%rsp),%ebp
mov    0x48(%rsp),%ebx
mov    0x50(%rsp),%r14
mov    %rcx,%rsi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %r14,%r8
call   1030 <aan_mascara_canal@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %r14,%r8
call   1030 <aan_mascara_canal@plt>
mov    %r15,%rdi
mov    (%rsp),%rsi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %r14,%r8
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <aan_mascara_canal@plt>

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

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