#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 */
int dtoi(float);
int /*<<< orphan*/ g2_b_spline(int, int, double *, int);
double *g2_floatp2doublep(float *, int);
int /*<<< orphan*/ g2_free(double *);
void g2_b_spline_(float *dev, float *N_pt, float *points, float *o) {
  double *d;
  d = g2_floatp2doublep(points, dtoi(*N_pt) * 2);
  g2_b_spline(dtoi(*dev), dtoi(*N_pt), d, dtoi(*o));
  g2_free(d);
}


x86 assembly (clang, -O0):
<g2_b_spline_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
call   1040 <dtoi@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%esi
shl    $0x1,%esi
call   1060 <g2_floatp2doublep@plt>
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
call   1040 <dtoi@plt>
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
call   1040 <dtoi@plt>
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
call   1040 <dtoi@plt>
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x30(%rbp),%rdx
mov    %eax,%ecx
call   1030 <g2_b_spline@plt>
mov    -0x28(%rbp),%rdi
call   1050 <g2_free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g2_b_spline_>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%r12
movss  (%rsi),%xmm0
call   1040 <dtoi@plt>
lea    (%rax,%rax,1),%esi
mov    %r15,%rdi
call   1060 <g2_floatp2doublep@plt>
mov    %rax,%r15
movss  (%r12),%xmm0
call   1040 <dtoi@plt>
mov    %eax,%ebp
movss  (%rbx),%xmm0
call   1040 <dtoi@plt>
mov    %eax,%ebx
movss  (%r14),%xmm0
call   1040 <dtoi@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r15,%rdx
mov    %eax,%ecx
call   1030 <g2_b_spline@plt>
mov    %r15,%rdi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <g2_free@plt>

LLVM IR (-O0):
define void @g2_b_spline_(float* %0, float* %1, float* %2, float* %3) {
%5 = alloca float*
%6 = alloca float*
%7 = alloca float*
%8 = alloca float*
%9 = alloca double*
store float* %0, float** %5
store float* %1, float** %6
store float* %2, float** %7
store float* %3, float** %8
%10 = load float*, float** %7
%11 = load float*, float** %6
%12 = load float, float* %11
%13 = call i32 @dtoi(float %12)
%14 = mul nsw i32 %13, 2
%15 = call double* @g2_floatp2doublep(float* %10, i32 %14)
store double* %15, double** %9
%16 = load float*, float** %5
%17 = load float, float* %16
%18 = call i32 @dtoi(float %17)
%19 = load float*, float** %6
%20 = load float, float* %19
%21 = call i32 @dtoi(float %20)
%22 = load double*, double** %9
%23 = load float*, float** %8
%24 = load float, float* %23
%25 = call i32 @dtoi(float %24)
%26 = call i32 @g2_b_spline(i32 %18, i32 %21, double* %22, i32 %25)
%27 = load double*, double** %9
%28 = call i32 @g2_free(double* %27)
ret void
}

LLVM IR (-O2):
define void @g2_b_spline_(float* nocapture %0, float* nocapture %1, float* %2, float* nocapture %3) {
%5 = load float, float* %1
%6 = tail call i32 @dtoi(float %5)
%7 = shl nsw i32 %6, 1
%8 = tail call double* @g2_floatp2doublep(float* %2, i32 %7)
%9 = load float, float* %0
%10 = tail call i32 @dtoi(float %9)
%11 = load float, float* %1
%12 = tail call i32 @dtoi(float %11)
%13 = load float, float* %3
%14 = tail call i32 @dtoi(float %13)
%15 = tail call i32 @g2_b_spline(i32 %10, i32 %12, double* %8, i32 %14)
%16 = tail call i32 @g2_free(double* %8)
ret void
}