#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 */
char *_s2_f2cstr(char *, long);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ ns2spheret(float, float, float, float, float, float, float,
                              char *);
void ns2spheret_(float *x, float *y, float *z, float *r, float *red,
                 float *green, float *blue, char *texturefn, long int textlen) {
  char *ttex = _s2_f2cstr(texturefn, textlen);
  ns2spheret(*x, *y, *z, *r, *red, *green, *blue, ttex);
  free(ttex);
}


x86 assembly (clang, -O0):
<ns2spheret_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
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    0x18(%rbp),%rdi
mov    0x20(%rbp),%rsi
call   1050 <_s2_f2cstr@plt>
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm3
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm4
mov    -0x30(%rbp),%rax
movss  (%rax),%xmm5
mov    0x10(%rbp),%rax
movss  (%rax),%xmm6
mov    -0x38(%rbp),%rdi
call   1040 <ns2spheret@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ns2spheret_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,0x10(%rsp)
mov    %r8,0x8(%rsp)
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,%rbp
mov    0x50(%rsp),%r15
mov    0x58(%rsp),%rdi
mov    0x60(%rsp),%rsi
call   1050 <_s2_f2cstr@plt>
mov    %rax,%r14
movss  0x0(%rbp),%xmm0
movss  (%rbx),%xmm1
movss  0x0(%r13),%xmm2
movss  (%r12),%xmm3
mov    0x8(%rsp),%rax
movss  (%rax),%xmm4
mov    0x10(%rsp),%rax
movss  (%rax),%xmm5
movss  (%r15),%xmm6
mov    %r14,%rdi
call   1040 <ns2spheret@plt>
mov    %r14,%rdi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @ns2spheret_(float* %0, float* %1, float* %2, float* %3, float* %4, float* %5, float* %6, i8* %7, i64 %8) {
%10 = alloca float*
%11 = alloca float*
%12 = alloca float*
%13 = alloca float*
%14 = alloca float*
%15 = alloca float*
%16 = alloca float*
%17 = alloca i8*
%18 = alloca i64
%19 = alloca i8*
store float* %0, float** %10
store float* %1, float** %11
store float* %2, float** %12
store float* %3, float** %13
store float* %4, float** %14
store float* %5, float** %15
store float* %6, float** %16
store i8* %7, i8** %17
store i64 %8, i64* %18
%20 = load i8*, i8** %17
%21 = load i64, i64* %18
%22 = call i8* @_s2_f2cstr(i8* %20, i64 %21)
store i8* %22, i8** %19
%23 = load float*, float** %10
%24 = load float, float* %23
%25 = load float*, float** %11
%26 = load float, float* %25
%27 = load float*, float** %12
%28 = load float, float* %27
%29 = load float*, float** %13
%30 = load float, float* %29
%31 = load float*, float** %14
%32 = load float, float* %31
%33 = load float*, float** %15
%34 = load float, float* %33
%35 = load float*, float** %16
%36 = load float, float* %35
%37 = load i8*, i8** %19
%38 = call i32 @ns2spheret(float %24, float %26, float %28, float %30, float %32, float %34, float %36, i8* %37)
%39 = load i8*, i8** %19
%40 = call i32 @free(i8* %39)
ret void
}

LLVM IR (-O2):
define void @ns2spheret_(float* nocapture %0, float* nocapture %1, float* nocapture %2, float* nocapture %3, float* nocapture %4, float* nocapture %5, float* nocapture %6, i8* %7, i64 %8) {
%10 = tail call i8* @_s2_f2cstr(i8* %7, i64 %8)
%11 = load float, float* %0
%12 = load float, float* %1
%13 = load float, float* %2
%14 = load float, float* %3
%15 = load float, float* %4
%16 = load float, float* %5
%17 = load float, float* %6
%18 = tail call i32 @ns2spheret(float %11, float %12, float %13, float %14, float %15, float %16, float %17, i8* %10)
%19 = tail call i32 @free(i8* %10)
ret void
}