#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 _s2priv_ns2cvr(float ***, int, int, int, int, int, int, int, int, int,
                   float *, char, float, float, int, int, float (*)(float *));
int ns2cvra(float ***grid, int adim, int bdim, int cdim, int a1, int a2, int b1,
            int b2, int c1, int c2, float *tr, char trans, float datamin,
            float datamax, float (*ialphafn)(float *)) {
  return _s2priv_ns2cvr(grid, adim, bdim, cdim, a1, a2, b1, b2, c1, c2, tr,
                        trans, datamin, datamax, 0., 1., ialphafn);
}


x86 assembly (clang, -O0):
<ns2cvra>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%al
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x30(%rbp)
mov    %esi,-0x34(%rbp)
mov    %edx,-0x38(%rbp)
mov    %ecx,-0x3c(%rbp)
mov    %r8d,-0x40(%rbp)
mov    %r9d,-0x44(%rbp)
movss  %xmm0,-0x48(%rbp)
movss  %xmm1,-0x4c(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    -0x40(%rbp),%r8d
mov    -0x44(%rbp),%r9d
mov    0x10(%rbp),%r12d
mov    0x18(%rbp),%r15d
mov    0x20(%rbp),%r14d
mov    0x28(%rbp),%ebx
mov    0x30(%rbp),%r11
mov    0x38(%rbp),%r10b
movss  -0x48(%rbp),%xmm0
movss  -0x4c(%rbp),%xmm1
mov    0x40(%rbp),%rax
xor    %r13d,%r13d
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11,0x20(%rsp)
movsbl %r10b,%r10d
mov    %r10d,0x28(%rsp)
movl   $0x0,0x30(%rsp)
movl   $0x1,0x38(%rsp)
mov    %rax,0x40(%rsp)
call   1030 <_s2priv_ns2cvr@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<ns2cvra>:
push   %r14
push   %rbx
push   %rax
mov    0x20(%rsp),%r10d
mov    0x28(%rsp),%r11d
mov    0x30(%rsp),%r14d
mov    0x38(%rsp),%ebx
movsbl 0x48(%rsp),%eax
sub    $0x8,%rsp
push   0x58(%rsp)
push   $0x1
push   $0x0
push   %rax
push   0x68(%rsp)
push   %rbx
push   %r14
push   %r11
push   %r10
call   1030 <_s2priv_ns2cvr@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i32 @ns2cvra(float*** %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, float* %10, i8 signext %11, float %12, float %13, float (float*)* %14) {
%16 = tail call i32 @_s2priv_ns2cvr(float*** %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, float* %10, i8 signext %11, float %12, float %13, i32 0, i32 1, float (float*)* %14)
ret i32 %16
}