#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_f2c2darr(float *, int, int);
int /*<<< orphan*/ _s2_free2darr(float **, int);
int /*<<< orphan*/ s2surpa(float **, int, int, int, int, int, int, float, float,
                           float *);
void s2surpa_(float *data, int *nx, int *ny, int *i1, int *i2, int *j1, int *j2,
              float *datamin, float *datamax, float *tr) {
  float **cdata = _s2_f2c2darr(data, *nx, *ny);
  s2surpa(cdata, *nx, *ny, *i1, *i2, *j1, *j2, *datamin, *datamax, tr);
  _s2_free2darr(cdata, *nx);
}


x86 assembly (clang, -O0):
<s2surpa_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    -0x18(%rbp),%rax
mov    (%rax),%edx
call   1040 <_s2_f2c2darr@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    -0x18(%rbp),%rax
mov    (%rax),%edx
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
mov    -0x28(%rbp),%rax
mov    (%rax),%r8d
mov    -0x30(%rbp),%rax
mov    (%rax),%r9d
mov    0x10(%rbp),%rax
mov    (%rax),%r10d
mov    0x18(%rbp),%rax
movss  (%rax),%xmm0
mov    0x20(%rbp),%rax
movss  (%rax),%xmm1
mov    0x28(%rbp),%rax
mov    %r10d,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <s2surpa@plt>
mov    -0x38(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
call   1050 <_s2_free2darr@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<s2surpa_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,0x18(%rsp)
mov    %r8,0x10(%rsp)
mov    %rcx,%r12
mov    %rdx,%rbx
mov    %rsi,%r13
mov    0x78(%rsp),%rax
mov    %rax,0x20(%rsp)
mov    0x70(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    0x68(%rsp),%r15
mov    0x60(%rsp),%r14
mov    (%rsi),%esi
mov    (%rdx),%edx
call   1040 <_s2_f2c2darr@plt>
mov    %rax,%rbp
mov    0x0(%r13),%esi
mov    (%rbx),%edx
mov    (%r12),%ecx
mov    0x10(%rsp),%rax
mov    (%rax),%r8d
mov    0x18(%rsp),%rax
mov    (%rax),%r9d
mov    (%r14),%eax
movss  (%r15),%xmm0
mov    0x8(%rsp),%rdi
movss  (%rdi),%xmm1
mov    %rbp,%rdi
push   0x20(%rsp)
push   %rax
call   1030 <s2surpa@plt>
add    $0x10,%rsp
mov    0x0(%r13),%esi
mov    %rbp,%rdi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <_s2_free2darr@plt>

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

LLVM IR (-O2):
define void @s2surpa_(float* %0, i32* nocapture %1, i32* nocapture %2, i32* nocapture %3, i32* nocapture %4, i32* nocapture %5, i32* nocapture %6, float* nocapture %7, float* nocapture %8, float* %9) {
%11 = load i32, i32* %1
%12 = load i32, i32* %2
%13 = tail call float** @_s2_f2c2darr(float* %0, i32 %11, i32 %12)
%14 = load i32, i32* %1
%15 = load i32, i32* %2
%16 = load i32, i32* %3
%17 = load i32, i32* %4
%18 = load i32, i32* %5
%19 = load i32, i32* %6
%20 = load float, float* %7
%21 = load float, float* %8
%22 = tail call i32 @s2surpa(float** %13, i32 %14, i32 %15, i32 %16, i32 %17, i32 %18, i32 %19, float %20, float %21, float* %9)
%23 = load i32, i32* %1
%24 = tail call i32 @_s2_free2darr(float** %13, i32 %23)
ret void
}