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

/* Variables and functions */
int /*<<< orphan*/ affine(int const, int const, int const,
                          int /*<<< orphan*/ const *, int const, int const,
                          int const, float *, float const, float const,
                          float const, float const, float const, float const);
void pencil_affine_linear(const int src_rows, const int src_cols,
                          const int src_step, const uint8_t src[],
                          const int dst_rows, const int dst_cols,
                          const int dst_step, float dst[], const float a00,
                          const float a01, const float a10, const float a11,
                          const float b00, const float b10) {
  affine(src_rows, src_cols, src_step, src, dst_rows, dst_cols, dst_step, dst,
         a00, a01, a10, a11, b00, b10);
}


x86 assembly (clang, -O0):
<pencil_affine_linear>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
movss  %xmm0,-0x24(%rbp)
movss  %xmm1,-0x28(%rbp)
movss  %xmm2,-0x2c(%rbp)
movss  %xmm3,-0x30(%rbp)
movss  %xmm4,-0x34(%rbp)
movss  %xmm5,-0x38(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
mov    0x10(%rbp),%r10d
mov    0x18(%rbp),%rax
movss  -0x24(%rbp),%xmm0
movss  -0x28(%rbp),%xmm1
movss  -0x2c(%rbp),%xmm2
movss  -0x30(%rbp),%xmm3
movss  -0x34(%rbp),%xmm4
movss  -0x38(%rbp),%xmm5
mov    %r10d,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <affine@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pencil_affine_linear>:
jmp    1030 <affine@plt>

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

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