	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gx_fill_gradient
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gx_fill_gradient
	.p2align	4, 0x90
_gx_fill_gradient:                      ## @gx_fill_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	16(%rbp), %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, -64(%rbp)
	movapd	%xmm0, -80(%rbp)
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdi, %r13
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%r9, -120(%rbp)                 ## 8-byte Spill
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-88(%rbp), %rdi
	movq	%r13, %rsi
	callq	_gx_priv_save
	movq	_GRAPHICS_RESOURCE_WIDTH@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	(%r13), %r12
LBB0_4:
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movq	_GRAPHICS_RESOURCE_HEIGHT@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	8(%r13), %r15
LBB0_6:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12, %xmm0
	movsd	%xmm0, -96(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -64(%rbp)
	movq	_VG_PAINT_LINEAR_GRADIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rcx
	movl	%r14d, %edi
	movl	$4, %edx
	callq	_vgSetParameterfv
	movq	_VG_FILL_PATH@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_vgSetPaint
	movq	_VG_PATH_FORMAT_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VG_PATH_DATATYPE_S_32@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VG_PATH_CAPABILITY_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	movl	$8, %edx
	movl	$8, %ecx
	callq	_vgCreatePath
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	xorps	%xmm0, %xmm0
	cvtsi2sdq	-104(%rbp), %xmm0       ## 8-byte Folded Reload
	xorps	%xmm1, %xmm1
	cvtsi2sdq	-112(%rbp), %xmm1       ## 8-byte Folded Reload
	cvtsi2sd	%r15, %xmm3
	cvtsi2sdq	-120(%rbp), %xmm4       ## 8-byte Folded Reload
	movl	%eax, %edi
	movsd	-96(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movapd	%xmm4, %xmm5
	callq	_vguRoundRect
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_vgDrawPath
	movl	%ebx, %edi
	callq	_vgDestroyPath
	xorl	%eax, %eax
	callq	_vgGetError
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_vcos_assert
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_1:
	movq	_VCOS_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_VCOS_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	leaq	-88(%rbp), %rdi
	callq	_gx_priv_restore
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VCOS_SUCCESS,4,2               ## @VCOS_SUCCESS
	.comm	_VCOS_EINVAL,4,2                ## @VCOS_EINVAL
	.comm	_GRAPHICS_RESOURCE_WIDTH,8,3    ## @GRAPHICS_RESOURCE_WIDTH
	.comm	_GRAPHICS_RESOURCE_HEIGHT,8,3   ## @GRAPHICS_RESOURCE_HEIGHT
	.comm	_VG_PAINT_LINEAR_GRADIENT,4,2   ## @VG_PAINT_LINEAR_GRADIENT
	.comm	_VG_FILL_PATH,4,2               ## @VG_FILL_PATH
	.comm	_VG_PATH_FORMAT_STANDARD,4,2    ## @VG_PATH_FORMAT_STANDARD
	.comm	_VG_PATH_DATATYPE_S_32,4,2      ## @VG_PATH_DATATYPE_S_32
	.comm	_VG_PATH_CAPABILITY_ALL,4,2     ## @VG_PATH_CAPABILITY_ALL
	.comm	_VCOS_ENOMEM,4,2                ## @VCOS_ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_fill_gradient               ; -- Begin function gx_fill_gradient
	.p2align	2
_gx_fill_gradient:                      ; @gx_fill_gradient
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x24, x6
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	cbz	w24, LBB0_7
; %bb.1:
	mov	x20, x5
	mov	x21, x4
	mov	x25, x3
	mov	x22, x2
	mov	x23, x1
	mov	x26, x0
Lloh3:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	add	x0, sp, #12
	mov	x1, x26
	bl	_gx_priv_save
Lloh6:
	adrp	x8, _GRAPHICS_RESOURCE_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GRAPHICS_RESOURCE_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x25
	b.ne	LBB0_3
; %bb.2:
	ldr	x25, [x26]
LBB0_3:
Lloh9:
	adrp	x8, _GRAPHICS_RESOURCE_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GRAPHICS_RESOURCE_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.4:
	ldr	x21, [x26, #8]
LBB0_5:
	scvtf	d8, x25
	str	d8, [sp, #32]
Lloh12:
	adrp	x8, _VG_PAINT_LINEAR_GRADIENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VG_PAINT_LINEAR_GRADIENT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	x0, x24
	mov	w2, #4
	bl	_vgSetParameterfv
Lloh15:
	adrp	x25, _VG_FILL_PATH@GOTPAGE
Lloh16:
	ldr	x25, [x25, _VG_FILL_PATH@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x24
	bl	_vgSetPaint
Lloh17:
	adrp	x8, _VG_PATH_FORMAT_STANDARD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VG_PATH_FORMAT_STANDARD@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _VG_PATH_DATATYPE_S_32@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VG_PATH_DATATYPE_S_32@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _VG_PATH_CAPABILITY_ALL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VG_PATH_CAPABILITY_ALL@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
	fmov	d0, #1.00000000
	movi	d1, #0000000000000000
	mov	w2, #8
	mov	w3, #8
	bl	_vgCreatePath
	cbz	w0, LBB0_8
; %bb.6:
	mov	x24, x0
	scvtf	d0, x23
	scvtf	d1, x22
	scvtf	d3, x21
	scvtf	d4, x20
	fmov	d2, d8
	fmov	d5, d4
	bl	_vguRoundRect
	ldr	w1, [x25]
	mov	x0, x24
	bl	_vgDrawPath
	mov	x0, x24
	bl	_vgDestroyPath
	bl	_vgGetError
	cmp	x0, #0
	cset	w0, eq
	bl	_vcos_assert
	b	LBB0_9
LBB0_7:
Lloh26:
	adrp	x8, _VCOS_EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VCOS_EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w19, [x8]
	b	LBB0_10
LBB0_8:
Lloh29:
	adrp	x8, _VCOS_ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VCOS_ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
LBB0_9:
	add	x0, sp, #12
	bl	_gx_priv_restore
LBB0_10:
	ldr	x8, [sp, #56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_VCOS_SUCCESS,4,2               ; @VCOS_SUCCESS
	.comm	_VCOS_EINVAL,4,2                ; @VCOS_EINVAL
	.comm	_GRAPHICS_RESOURCE_WIDTH,8,3    ; @GRAPHICS_RESOURCE_WIDTH
	.comm	_GRAPHICS_RESOURCE_HEIGHT,8,3   ; @GRAPHICS_RESOURCE_HEIGHT
	.comm	_VG_PAINT_LINEAR_GRADIENT,4,2   ; @VG_PAINT_LINEAR_GRADIENT
	.comm	_VG_FILL_PATH,4,2               ; @VG_FILL_PATH
	.comm	_VG_PATH_FORMAT_STANDARD,4,2    ; @VG_PATH_FORMAT_STANDARD
	.comm	_VG_PATH_DATATYPE_S_32,4,2      ; @VG_PATH_DATATYPE_S_32
	.comm	_VG_PATH_CAPABILITY_ALL,4,2     ; @VG_PATH_CAPABILITY_ALL
	.comm	_VCOS_ENOMEM,4,2                ; @VCOS_ENOMEM
.subsections_via_symbols
