	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_priv_resource_fill          ## -- Begin function gx_priv_resource_fill
	.p2align	4, 0x90
_gx_priv_resource_fill:                 ## @gx_priv_resource_fill
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %edi
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-64(%rbp), %r13
	movq	%r13, %rsi
	callq	_gx_priv_colour_to_paint
	movq	_VG_SCISSORING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VG_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vgSeti
	movq	_VG_CLEAR_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	movq	%r13, %rdx
	callq	_vgSetfv
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_vgClear
	xorl	%eax, %eax
	callq	_vgGetError
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_GX_LOG
	xorl	%edi, %edi
	callq	_vcos_assert
LBB0_2:
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VG_SCISSORING,4,2              ## @VG_SCISSORING
	.comm	_VG_FALSE,4,2                   ## @VG_FALSE
	.comm	_VG_CLEAR_COLOR,4,2             ## @VG_CLEAR_COLOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vg error %x filling area"

	.comm	_VCOS_SUCCESS,4,2               ## @VCOS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_priv_resource_fill          ; -- Begin function gx_priv_resource_fill
	.p2align	2
_gx_priv_resource_fill:                 ; @gx_priv_resource_fill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x0, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x1, sp, #8
	bl	_gx_priv_colour_to_paint
Lloh3:
	adrp	x8, _VG_SCISSORING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VG_SCISSORING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _VG_FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VG_FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_vgSeti
Lloh9:
	adrp	x8, _VG_CLEAR_COLOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VG_CLEAR_COLOR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #4
	bl	_vgSetfv
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_vgClear
	bl	_vgGetError
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_GX_LOG
	mov	w0, #0
	bl	_vcos_assert
LBB0_2:
Lloh14:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VG_SCISSORING,4,2              ; @VG_SCISSORING
	.comm	_VG_FALSE,4,2                   ; @VG_FALSE
	.comm	_VG_CLEAR_COLOR,4,2             ; @VG_CLEAR_COLOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vg error %x filling area"

	.comm	_VCOS_SUCCESS,4,2               ; @VCOS_SUCCESS
.subsections_via_symbols
