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


x86 assembly (clang, -O0):
<g2_filled_raspln_>:
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,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
call   1040 <dtoi@plt>
mov    -0x38(%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,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
call   1040 <dtoi@plt>
mov    -0x2c(%rbp),%edi
mov    %eax,%esi
mov    -0x28(%rbp),%rdx
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
call   1030 <g2_filled_raspln@plt>
mov    -0x28(%rbp),%rdi
call   1050 <g2_free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g2_filled_raspln_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r13
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,%rbx
movss  (%r12),%xmm0
call   1040 <dtoi@plt>
mov    %eax,%ebp
movss  0x0(%r13),%xmm0
call   1040 <dtoi@plt>
movss  (%r14),%xmm0
mov    %ebp,%edi
mov    %eax,%esi
mov    %rbx,%rdx
call   1030 <g2_filled_raspln@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <g2_free@plt>

LLVM IR (-O0):
define void @g2_filled_raspln_(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 @g2_filled_raspln(i32 %18, i32 %21, double* %22, float %24)
%26 = load double*, double** %9
%27 = call i32 @g2_free(double* %26)
ret void
}

LLVM IR (-O2):
define void @g2_filled_raspln_(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 @g2_filled_raspln(i32 %10, i32 %12, double* %8, float %13)
%15 = tail call i32 @g2_free(double* %8)
ret void
}