#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 ns2cis(float ***, int, int, int, int, int, int, int, int, int, float *,
           float, int, char, float, float, float, float);
int ns2cis_(float *grid, int *adim, int *bdim, int *cdim, int *a1, int *a2,
            int *b1, int *b2, int *c1, int *c2, float *tr, float *level,
            int *resolution, char *trans, float *alpha, float *red,
            float *green, float *blue) {
  int idret;
  float ***c3grid = _s2_f2c3darr(grid, *adim, *bdim, *cdim);
  idret = ns2cis(c3grid, *adim, *bdim, *cdim, *a1, *a2, *b1, *b2, *c1, *c2, tr,
                 *level, *resolution, *trans, *alpha, *red, *green, *blue);
  _s2warn(
      "ns2cis",
      "FORTRAN issue: isosurface will not respond to changes in data grid.\n");
  return idret;
}


x86 assembly (clang, -O0):
<ns2cis_>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    0x68(%rbp),%rax
mov    0x60(%rbp),%rax
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,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x48(%rbp)
mov    %r8,-0x50(%rbp)
mov    %r9,-0x58(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
mov    -0x40(%rbp),%rax
mov    (%rax),%edx
mov    -0x48(%rbp),%rax
mov    (%rax),%ecx
call   1030 <_s2_f2c3darr@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
mov    -0x40(%rbp),%rax
mov    (%rax),%edx
mov    -0x48(%rbp),%rax
mov    (%rax),%ecx
mov    -0x50(%rbp),%rax
mov    (%rax),%r8d
mov    -0x58(%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
movss  (%rax),%xmm0
mov    0x40(%rbp),%rax
mov    (%rax),%r10d
mov    0x48(%rbp),%rax
mov    (%rax),%al
mov    0x50(%rbp),%r13
movss  0x0(%r13),%xmm1
mov    0x58(%rbp),%r13
movss  0x0(%r13),%xmm2
mov    0x60(%rbp),%r13
movss  0x0(%r13),%xmm3
mov    0x68(%rbp),%r13
movss  0x0(%r13),%xmm4
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10d,0x28(%rsp)
movsbl %al,%eax
mov    %eax,0x30(%rsp)
call   1040 <ns2cis@plt>
mov    %eax,-0x5c(%rbp)
lea    0xda6(%rip),%rdi
lea    0xda6(%rip),%rsi
call   1050 <_s2warn@plt>
mov    -0x5c(%rbp),%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<ns2cis_>:
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    0x68(%rsp),%rbp
mov    (%rsi),%esi
mov    (%rdx),%edx
mov    (%rcx),%ecx
call   1030 <_s2_f2c3darr@plt>
movss  0x0(%rbp),%xmm0
mov    0x80(%rsp),%rcx
movss  (%rcx),%xmm1
mov    0x88(%rsp),%rcx
movss  (%rcx),%xmm2
mov    0x90(%rsp),%rcx
movss  (%rcx),%xmm3
mov    0x98(%rsp),%rcx
movss  (%rcx),%xmm4
mov    (%rbx),%esi
mov    0x0(%r13),%edx
mov    (%r12),%ecx
mov    (%r15),%r8d
mov    (%r14),%r9d
mov    0x40(%rsp),%rdi
mov    (%rdi),%r10d
mov    0x48(%rsp),%rdi
mov    (%rdi),%r11d
mov    0x50(%rsp),%rdi
mov    (%rdi),%r14d
mov    0x58(%rsp),%rdi
mov    (%rdi),%r15d
mov    0x70(%rsp),%rdi
mov    (%rdi),%ebp
mov    0x78(%rsp),%rdi
movsbl (%rdi),%ebx
sub    $0x8,%rsp
mov    %rax,%rdi
push   %rbx
push   %rbp
push   0x78(%rsp)
push   %r15
push   %r14
push   %r11
push   %r10
call   1040 <ns2cis@plt>
add    $0x40,%rsp
mov    %eax,%ebx
lea    0xe0b(%rip),%rdi
lea    0xe0b(%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"ns2cis\00"
@.str.1 = [69 x i8] c"FORTRAN issue: isosurface will not respond to changes in data grid.\0A\00"
define i32 @ns2cis_(float* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, float* %10, float* %11, i32* %12, i8* %13, float* %14, float* %15, float* %16, float* %17) {
%19 = alloca float*
%20 = alloca i32*
%21 = alloca i32*
%22 = alloca i32*
%23 = alloca i32*
%24 = alloca i32*
%25 = alloca i32*
%26 = alloca i32*
%27 = alloca i32*
%28 = alloca i32*
%29 = alloca float*
%30 = alloca float*
%31 = alloca i32*
%32 = alloca i8*
%33 = alloca float*
%34 = alloca float*
%35 = alloca float*
%36 = alloca float*
%37 = alloca i32
%38 = alloca float***
store float* %0, float** %19
store i32* %1, i32** %20
store i32* %2, i32** %21
store i32* %3, i32** %22
store i32* %4, i32** %23
store i32* %5, i32** %24
store i32* %6, i32** %25
store i32* %7, i32** %26
store i32* %8, i32** %27
store i32* %9, i32** %28
store float* %10, float** %29
store float* %11, float** %30
store i32* %12, i32** %31
store i8* %13, i8** %32
store float* %14, float** %33
store float* %15, float** %34
store float* %16, float** %35
store float* %17, float** %36
%39 = load float*, float** %19
%40 = load i32*, i32** %20
%41 = load i32, i32* %40
%42 = load i32*, i32** %21
%43 = load i32, i32* %42
%44 = load i32*, i32** %22
%45 = load i32, i32* %44
%46 = call float*** @_s2_f2c3darr(float* %39, i32 %41, i32 %43, i32 %45)
store float*** %46, float**** %38
%47 = load float***, float**** %38
%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 i32*, i32** %27
%63 = load i32, i32* %62
%64 = load i32*, i32** %28
%65 = load i32, i32* %64
%66 = load float*, float** %29
%67 = load float*, float** %30
%68 = load float, float* %67
%69 = load i32*, i32** %31
%70 = load i32, i32* %69
%71 = load i8*, i8** %32
%72 = load i8, i8* %71
%73 = load float*, float** %33
%74 = load float, float* %73
%75 = load float*, float** %34
%76 = load float, float* %75
%77 = load float*, float** %35
%78 = load float, float* %77
%79 = load float*, float** %36
%80 = load float, float* %79
%81 = call i32 @ns2cis(float*** %47, i32 %49, i32 %51, i32 %53, i32 %55, i32 %57, i32 %59, i32 %61, i32 %63, i32 %65, float* %66, float %68, i32 %70, i8 signext %72, float %74, float %76, float %78, float %80)
store i32 %81, i32* %37
%82 = call i32 @_s2warn(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0))
%83 = load i32, i32* %37
ret i32 %83
}

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