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


x86 assembly (clang, -O0):
<ns2cvra_>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x80,%rsp
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   1040 <_s2_f2c3darr@plt>
mov    %rax,-0x60(%rbp)
mov    0x50(%rbp),%rax
mov    %rax,-0x68(%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),%r12d
mov    0x18(%rbp),%rax
mov    (%rax),%r15d
mov    0x20(%rbp),%rax
mov    (%rax),%r14d
mov    0x28(%rbp),%rax
mov    (%rax),%ebx
mov    0x30(%rbp),%r11
mov    0x38(%rbp),%rax
mov    (%rax),%r10b
mov    0x40(%rbp),%rax
movss  (%rax),%xmm0
mov    0x48(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x68(%rbp),%rax
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)
mov    %rax,0x30(%rsp)
call   1030 <ns2cvra@plt>
mov    %eax,-0x54(%rbp)
lea    0xdc9(%rip),%rdi
lea    0xdc9(%rip),%rsi
call   1050 <_s2warn@plt>
mov    -0x54(%rbp),%eax
add    $0x80,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<ns2cvra_>:
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   1040 <_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
sub    $0x8,%rsp
mov    %rax,%rdi
push   0x88(%rsp)
push   %rbx
push   0x78(%rsp)
push   %rbp
push   %r14
push   %r11
push   %r10
call   1030 <ns2cvra@plt>
add    $0x40,%rsp
mov    %eax,%ebx
lea    0xe35(%rip),%rdi
lea    0xe35(%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 @ns2cvra_(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, i8* %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 i8*
%31 = alloca i32
%32 = alloca float***
%33 = 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 i8* %14, i8** %30
%34 = load float*, float** %16
%35 = load i32*, i32** %17
%36 = load i32, i32* %35
%37 = load i32*, i32** %18
%38 = load i32, i32* %37
%39 = load i32*, i32** %19
%40 = load i32, i32* %39
%41 = call float*** @_s2_f2c3darr(float* %34, i32 %36, i32 %38, i32 %40)
store float*** %41, float**** %32
%42 = load i8*, i8** %30
%43 = bitcast i8* %42 to float (float*)*
store float (float*)* %43, float (float*)** %33
%44 = load float***, float**** %32
%45 = load i32*, i32** %17
%46 = load i32, i32* %45
%47 = load i32*, i32** %18
%48 = load i32, i32* %47
%49 = load i32*, i32** %19
%50 = load i32, i32* %49
%51 = load i32*, i32** %20
%52 = load i32, i32* %51
%53 = load i32*, i32** %21
%54 = load i32, i32* %53
%55 = load i32*, i32** %22
%56 = load i32, i32* %55
%57 = load i32*, i32** %23
%58 = load i32, i32* %57
%59 = load i32*, i32** %24
%60 = load i32, i32* %59
%61 = load i32*, i32** %25
%62 = load i32, i32* %61
%63 = load float*, float** %26
%64 = load i8*, i8** %27
%65 = load i8, i8* %64
%66 = load float*, float** %28
%67 = load float, float* %66
%68 = load float*, float** %29
%69 = load float, float* %68
%70 = load float (float*)*, float (float*)** %33
%71 = call i32 @ns2cvra(float*** %44, i32 %46, i32 %48, i32 %50, i32 %52, i32 %54, i32 %56, i32 %58, i32 %60, i32 %62, float* %63, i8 signext %65, float %67, float %69, float (float*)* %70)
store i32 %71, i32* %31
%72 = 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))
%73 = load i32, i32* %31
ret i32 %73
}

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 @ns2cvra_(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, i8* %14) {
%16 = load i32, i32* %1
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = tail call float*** @_s2_f2c3darr(float* %0, i32 %16, i32 %17, i32 %18)
%20 = bitcast i8* %14 to float (float*)*
%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 = tail call i32 @ns2cvra(float*** %19, 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 (float*)* %20)
%34 = 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 %33
}