#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 /*<<< orphan*/ dtoi(float);
double *g2_floatp2doublep(float *, int /*<<< orphan*/);
int /*<<< orphan*/ g2_free(double *);
int /*<<< orphan*/ g2_set_dash(int /*<<< orphan*/, int /*<<< orphan*/,
                               double *);
void g2_set_dash_(float *dev, float *N, float *dashes) {
  double *d;
  d = g2_floatp2doublep(dashes, dtoi(*N));
  g2_set_dash(dtoi(*dev), dtoi(*N), d);
  g2_free(d);
}


x86 assembly (clang, -O0):
<g2_set_dash_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
call   1040 <dtoi@plt>
mov    -0x30(%rbp),%rdi
mov    %eax,%esi
call   1060 <g2_floatp2doublep@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
call   1040 <dtoi@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
call   1040 <dtoi@plt>
mov    -0x24(%rbp),%edi
mov    %eax,%esi
mov    -0x20(%rbp),%rdx
call   1030 <g2_set_dash@plt>
mov    -0x20(%rbp),%rdi
call   1050 <g2_free@plt>
add    $0x30,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @g2_set_dash_(float* %0, float* %1, float* %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca float*
%7 = alloca double*
store float* %0, float** %4
store float* %1, float** %5
store float* %2, float** %6
%8 = load float*, float** %6
%9 = load float*, float** %5
%10 = load float, float* %9
%11 = call i32 @dtoi(float %10)
%12 = call double* @g2_floatp2doublep(float* %8, i32 %11)
store double* %12, double** %7
%13 = load float*, float** %4
%14 = load float, float* %13
%15 = call i32 @dtoi(float %14)
%16 = load float*, float** %5
%17 = load float, float* %16
%18 = call i32 @dtoi(float %17)
%19 = load double*, double** %7
%20 = call i32 @g2_set_dash(i32 %15, i32 %18, double* %19)
%21 = load double*, double** %7
%22 = call i32 @g2_free(double* %21)
ret void
}

LLVM IR (-O2):
define void @g2_set_dash_(float* nocapture %0, float* nocapture %1, float* %2) {
%4 = load float, float* %1
%5 = tail call i32 @dtoi(float %4)
%6 = tail call double* @g2_floatp2doublep(float* %2, i32 %5)
%7 = load float, float* %0
%8 = tail call i32 @dtoi(float %7)
%9 = load float, float* %1
%10 = tail call i32 @dtoi(float %9)
%11 = tail call i32 @g2_set_dash(i32 %8, i32 %10, double* %6)
%12 = tail call i32 @g2_free(double* %6)
ret void
}