#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, float, float,
                   int /*<<< orphan*/ *);
int ns2cvr(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 alphamin, float alphamax) {
  return _s2priv_ns2cvr(grid, adim, bdim, cdim, a1, a2, b1, b2, c1, c2, tr,
                        trans, datamin, datamax, alphamin, alphamax, NULL);
}


x86 assembly (clang, -O0):
<ns2cvr>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x70,%rsp
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,-0x28(%rbp)
mov    %esi,-0x2c(%rbp)
mov    %edx,-0x30(%rbp)
mov    %ecx,-0x34(%rbp)
mov    %r8d,-0x38(%rbp)
mov    %r9d,-0x3c(%rbp)
movss  %xmm0,-0x40(%rbp)
movss  %xmm1,-0x44(%rbp)
movss  %xmm2,-0x48(%rbp)
movss  %xmm3,-0x4c(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x30(%rbp),%edx
mov    -0x34(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x3c(%rbp),%r9d
mov    0x10(%rbp),%r15d
mov    0x18(%rbp),%r14d
mov    0x20(%rbp),%ebx
mov    0x28(%rbp),%r11d
mov    0x30(%rbp),%r10
mov    0x38(%rbp),%al
movss  -0x40(%rbp),%xmm0
movss  -0x44(%rbp),%xmm1
movss  -0x48(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm3
xor    %r12d,%r12d
mov    %r15d,(%rsp)
mov    %r14d,0x8(%rsp)
mov    %ebx,0x10(%rsp)
mov    %r11d,0x18(%rsp)
mov    %r10,0x20(%rsp)
movsbl %al,%eax
mov    %eax,0x28(%rsp)
movq   $0x0,0x30(%rsp)
call   1030 <_s2priv_ns2cvr@plt>
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<ns2cvr>:
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   $0x0
push   %rax
push   0x58(%rsp)
push   %rbx
push   %r14
push   %r11
push   %r10
call   1030 <_s2priv_ns2cvr@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i32 @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, float %14, float %15) {
%17 = 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, float %14, float %15, i32* null)
ret i32 %17
}