#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 */
float ***_s2_f2c3darr(float *, int, int, int);
int /*<<< orphan*/ _s2warn(char *, char *);
int ns2cvr(float ***, int, int, int, int, int, int, int, int, int, float *,
           char, float, float, float, float);
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) {
  int idret;
  float ***c3grid = _s2_f2c3darr(grid, *adim, *bdim, *cdim);
  idret = ns2cvr(c3grid, *adim, *bdim, *cdim, *a1, *a2, *b1, *b2, *c1, *c2, tr,
                 *trans, *datamin, *datamax, *alphamin, *alphamax);
  _s2warn("ns2cvr", "FORTRAN issue: volume rendering will not respond to "
                    "changes in data grid.\n");
  return idret;
}


x86 assembly (clang, -O0):
<ns2cvr_>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x70,%rsp
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
mov    %r9,-0x50(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rax
mov    (%rax),%esi
mov    -0x38(%rbp),%rax
mov    (%rax),%edx
mov    -0x40(%rbp),%rax
mov    (%rax),%ecx
call   1030 <_s2_f2c3darr@plt>
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rdi
mov    -0x30(%rbp),%rax
mov    (%rax),%esi
mov    -0x38(%rbp),%rax
mov    (%rax),%edx
mov    -0x40(%rbp),%rax
mov    (%rax),%ecx
mov    -0x48(%rbp),%rax
mov    (%rax),%r8d
mov    -0x50(%rbp),%rax
mov    (%rax),%r9d
mov    0x10(%rbp),%rax
mov    (%rax),%r15d
mov    0x18(%rbp),%rax
mov    (%rax),%r14d
mov    0x20(%rbp),%rax
mov    (%rax),%ebx
mov    0x28(%rbp),%rax
mov    (%rax),%r11d
mov    0x30(%rbp),%r10
mov    0x38(%rbp),%rax
mov    (%rax),%al
mov    0x40(%rbp),%r12
movss  (%r12),%xmm0
mov    0x48(%rbp),%r12
movss  (%r12),%xmm1
mov    0x50(%rbp),%r12
movss  (%r12),%xmm2
mov    0x58(%rbp),%r12
movss  (%r12),%xmm3
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)
call   1040 <ns2cvr@plt>
mov    %eax,-0x54(%rbp)
lea    0xdc4(%rip),%rdi
lea    0xdc4(%rip),%rsi
call   1050 <_s2warn@plt>
mov    -0x54(%rbp),%eax
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<ns2cvr_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    0x40(%rsp),%rbp
mov    (%rsi),%esi
mov    (%rdx),%edx
mov    (%rcx),%ecx
call   1030 <_s2_f2c3darr@plt>
mov    (%rbx),%esi
mov    0x0(%r13),%edx
mov    (%r12),%ecx
mov    (%r15),%r8d
mov    (%r14),%r9d
mov    0x0(%rbp),%r10d
mov    0x48(%rsp),%rdi
mov    (%rdi),%r11d
mov    0x50(%rsp),%rdi
mov    (%rdi),%r14d
mov    0x58(%rsp),%rdi
mov    (%rdi),%ebp
mov    0x68(%rsp),%rdi
movsbl (%rdi),%ebx
mov    0x70(%rsp),%rdi
movss  (%rdi),%xmm0
mov    0x78(%rsp),%rdi
movss  (%rdi),%xmm1
mov    0x80(%rsp),%rdi
movss  (%rdi),%xmm2
mov    0x88(%rsp),%rdi
movss  (%rdi),%xmm3
mov    %rax,%rdi
push   %rbx
push   0x68(%rsp)
push   %rbp
push   %r14
push   %r11
push   %r10
call   1040 <ns2cvr@plt>
add    $0x30,%rsp
mov    %eax,%ebx
lea    0xe28(%rip),%rdi
lea    0xe28(%rip),%rsi
call   1050 <_s2warn@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"ns2cvr\00"
@.str.1 = [75 x i8] c"FORTRAN issue: volume rendering will not respond to changes in data grid.\0A\00"
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* %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*
%33 = alloca i32
%34 = 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
%35 = load float*, float** %17
%36 = load i32*, i32** %18
%37 = load i32, i32* %36
%38 = load i32*, i32** %19
%39 = load i32, i32* %38
%40 = load i32*, i32** %20
%41 = load i32, i32* %40
%42 = call float*** @_s2_f2c3darr(float* %35, i32 %37, i32 %39, i32 %41)
store float*** %42, float**** %34
%43 = load float***, float**** %34
%44 = load i32*, i32** %18
%45 = load i32, i32* %44
%46 = load i32*, i32** %19
%47 = load i32, i32* %46
%48 = load i32*, i32** %20
%49 = load i32, i32* %48
%50 = load i32*, i32** %21
%51 = load i32, i32* %50
%52 = load i32*, i32** %22
%53 = load i32, i32* %52
%54 = load i32*, i32** %23
%55 = load i32, i32* %54
%56 = load i32*, i32** %24
%57 = load i32, i32* %56
%58 = load i32*, i32** %25
%59 = load i32, i32* %58
%60 = load i32*, i32** %26
%61 = load i32, i32* %60
%62 = load float*, float** %27
%63 = load i8*, i8** %28
%64 = load i8, i8* %63
%65 = load float*, float** %29
%66 = load float, float* %65
%67 = load float*, float** %30
%68 = load float, float* %67
%69 = load float*, float** %31
%70 = load float, float* %69
%71 = load float*, float** %32
%72 = load float, float* %71
%73 = call i32 @ns2cvr(float*** %43, i32 %45, i32 %47, i32 %49, i32 %51, i32 %53, i32 %55, i32 %57, i32 %59, i32 %61, float* %62, i8 signext %64, float %66, float %68, float %70, float %72)
store i32 %73, i32* %33
%74 = call i32 @_s2warn(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.1, i64 0, i64 0))
%75 = load i32, i32* %33
ret i32 %75
}

LLVM IR (-O2):
@.str = [7 x i8] c"ns2cvr\00"
@.str.1 = [75 x i8] c"FORTRAN issue: volume rendering will not respond to changes in data grid.\0A\00"
define i32 @ns2cvr_(float* %0, i32* nocapture %1, i32* nocapture %2, i32* nocapture %3, i32* nocapture %4, i32* nocapture %5, i32* nocapture %6, i32* nocapture %7, i32* nocapture %8, i32* nocapture %9, float* %10, i8* nocapture %11, float* nocapture %12, float* nocapture %13, float* nocapture %14, float* nocapture %15) {
%17 = load i32, i32* %1
%18 = load i32, i32* %2
%19 = load i32, i32* %3
%20 = tail call float*** @_s2_f2c3darr(float* %0, i32 %17, i32 %18, i32 %19)
%21 = load i32, i32* %1
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = load i32, i32* %4
%25 = load i32, i32* %5
%26 = load i32, i32* %6
%27 = load i32, i32* %7
%28 = load i32, i32* %8
%29 = load i32, i32* %9
%30 = load i8, i8* %11
%31 = load float, float* %12
%32 = load float, float* %13
%33 = load float, float* %14
%34 = load float, float* %15
%35 = tail call i32 @ns2cvr(float*** %20, i32 %21, i32 %22, i32 %23, i32 %24, i32 %25, i32 %26, i32 %27, i32 %28, i32 %29, float* %10, i8 signext %30, float %31, float %32, float %33, float %34)
%36 = tail call i32 @_s2warn(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.1, i64 0, i64 0))
ret i32 %35
}