	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_create_gradient             ## -- Begin function gx_create_gradient
	.p2align	4, 0x90
_gx_create_gradient:                    ## @gx_create_gradient
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-116(%rbp), %rdi
	callq	_gx_priv_save
	xorl	%eax, %eax
	callq	_vgCreatePaint
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	$0, -112(%rbp)
	leaq	-104(%rbp), %rsi
	movl	%r15d, %edi
	callq	_gx_priv_colour_to_paint
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, -72(%rbp)
	leaq	-64(%rbp), %rsi
	movl	%r14d, %edi
	callq	_gx_priv_colour_to_paint
	movq	_VG_PAINT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VG_PAINT_TYPE_LINEAR_GRADIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_vgSetParameteri
	movq	_VG_PAINT_COLOR_RAMP_STOPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_vgSetParameterfv
	jmp	LBB0_3
LBB0_1:
	leaq	-116(%rbp), %rdi
	callq	_gx_priv_restore
	xorl	%eax, %eax
	callq	_vgGetError
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_vcos_log
	xorl	%edi, %edi
	callq	_vcos_assert
LBB0_3:
	leaq	-116(%rbp), %rdi
	callq	_gx_priv_restore
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VG_INVALID_HANDLE,8,3          ## @VG_INVALID_HANDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create paint: vg %d\n"

	.comm	_VG_PAINT_TYPE,4,2              ## @VG_PAINT_TYPE
	.comm	_VG_PAINT_TYPE_LINEAR_GRADIENT,4,2 ## @VG_PAINT_TYPE_LINEAR_GRADIENT
	.comm	_VG_PAINT_COLOR_RAMP_STOPS,4,2  ## @VG_PAINT_COLOR_RAMP_STOPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_create_gradient             ; -- Begin function gx_create_gradient
	.p2align	2
_gx_create_gradient:                    ; @gx_create_gradient
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x0, sp, #4
	bl	_gx_priv_save
	bl	_vgCreatePaint
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	str	xzr, [sp, #8]
	add	x22, sp, #8
	add	x1, x22, #8
	mov	x0, x21
	bl	_gx_priv_colour_to_paint
	mov	x8, #4607182418800017408
	str	x8, [sp, #48]
	add	x1, x22, #48
	mov	x0, x20
	bl	_gx_priv_colour_to_paint
Lloh3:
	adrp	x8, _VG_PAINT_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VG_PAINT_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _VG_PAINT_TYPE_LINEAR_GRADIENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VG_PAINT_TYPE_LINEAR_GRADIENT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_vgSetParameteri
Lloh9:
	adrp	x8, _VG_PAINT_COLOR_RAMP_STOPS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VG_PAINT_COLOR_RAMP_STOPS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #10
	bl	_vgSetParameterfv
	b	LBB0_3
LBB0_2:
	add	x0, sp, #4
	bl	_gx_priv_restore
	bl	_vgGetError
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log
	mov	w0, #0
	bl	_vcos_assert
LBB0_3:
	add	x0, sp, #4
	bl	_gx_priv_restore
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VG_INVALID_HANDLE,8,3          ; @VG_INVALID_HANDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create paint: vg %d\n"

	.comm	_VG_PAINT_TYPE,4,2              ; @VG_PAINT_TYPE
	.comm	_VG_PAINT_TYPE_LINEAR_GRADIENT,4,2 ; @VG_PAINT_TYPE_LINEAR_GRADIENT
	.comm	_VG_PAINT_COLOR_RAMP_STOPS,4,2  ; @VG_PAINT_COLOR_RAMP_STOPS
.subsections_via_symbols
