	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_priv_render_text            ## -- Begin function gx_priv_render_text
	.p2align	4, 0x90
_gx_priv_render_text:                   ## @gx_priv_render_text
	.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
	movq	%r9, %r12
	movq	%r8, %r14
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	_inited@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vcos_demand
	leaq	-104(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_gx_priv_save
	movq	_GRAPHICS_RESOURCE_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rdx
	xorq	%r14, %rdx
	movq	_GRAPHICS_RESOURCE_HEIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	xorq	%r12, %rsi
	orq	%rdx, %rsi
	sete	%r13b
	cmpq	%r14, %rcx
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %r14
LBB0_2:
	movq	48(%rbp), %rsi
	movq	32(%rbp), %rdi
	cmpq	%r12, %rax
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %r12
LBB0_4:
	callq	_find_font
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	24(%rbp), %rdi
	testb	%r13b, %r13b
	movq	-120(%rbp), %r13                ## 8-byte Reload
	jne	LBB0_8
## %bb.7:
	movq	%r15, -80(%rbp)
	movq	%r13, -72(%rbp)
	movq	%r14, -64(%rbp)
	movq	%r12, -56(%rbp)
	movq	_VG_SCISSORING@GOTPCREL(%rip), %rax
	movq	%rdi, %r14
	movl	(%rax), %edi
	movq	_VG_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vgSeti
	movq	_VG_SCISSOR_RECTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rdx
	movl	$4, %esi
	callq	_vgSetiv
	movq	%r14, %rdi
LBB0_8:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	40(%rbp), %r14
	movq	_GRAPHICS_TRANSPARENT_COLOUR@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_13
## %bb.9:
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_gx_priv_colour_to_paint
	movq	_VG_CLEAR_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	movq	%rbx, %rdx
	callq	_vgSetfv
	leaq	-88(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-96(%rbp), %r9
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	32(%rbp), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_vgft_get_text_extents
	cmpq	$0, -96(%rbp)
	jle	LBB0_13
## %bb.10:
	cmpq	$0, -88(%rbp)
	jle	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	callq	_vgft_first_line_y_offset
	leaq	(%rax,%r13), %rsi
	movq	-88(%rbp), %rcx
	subq	%rcx, %rsi
	movq	-96(%rbp), %rdx
	movq	%r15, %rdi
	callq	_vgClear
	xorl	%eax, %eax
	callq	_vgGetError
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	-96(%rbp), %r8
	movq	-88(%rbp), %r9
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_GX_LOG
	xorl	%edi, %edi
	callq	_vcos_assert
LBB0_13:
	xorl	%eax, %eax
	callq	_vgCreatePaint
	testl	%eax, %eax
	je	LBB0_5
## %bb.14:
	movl	%eax, %ebx
	movq	16(%rbp), %r14
	movq	_VG_PAINT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VG_PAINT_TYPE_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_vgSetParameteri
	leaq	-80(%rbp), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_gx_priv_colour_to_paint
	movq	_VG_PAINT_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	$4, %edx
	movq	%r12, %rcx
	callq	_vgSetParameterfv
	movq	_VG_FILL_PATH@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_vgSetPaint
	movl	(%r14), %r9d
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	32(%rbp), %rcx
	movq	40(%rbp), %r8
	callq	_vgft_font_draw
	movl	%ebx, %edi
	callq	_vgDestroyPaint
	xorl	%eax, %eax
	callq	_vgGetError
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_vcos_assert
	movq	_VG_SCISSORING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VG_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vgSeti
	movl	-100(%rbp), %ebx                ## 4-byte Reload
	jmp	LBB0_15
LBB0_5:
	movq	_VCOS_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_15:
	leaq	-104(%rbp), %rdi
	callq	_gx_priv_restore
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VCOS_SUCCESS,4,2               ## @VCOS_SUCCESS
	.comm	_inited,4,2                     ## @inited
	.comm	_GRAPHICS_RESOURCE_WIDTH,8,3    ## @GRAPHICS_RESOURCE_WIDTH
	.comm	_GRAPHICS_RESOURCE_HEIGHT,8,3   ## @GRAPHICS_RESOURCE_HEIGHT
	.comm	_VCOS_ENOMEM,4,2                ## @VCOS_ENOMEM
	.comm	_VG_SCISSORING,4,2              ## @VG_SCISSORING
	.comm	_VG_TRUE,4,2                    ## @VG_TRUE
	.comm	_VG_SCISSOR_RECTS,4,2           ## @VG_SCISSOR_RECTS
	.comm	_GRAPHICS_TRANSPARENT_COLOUR,8,3 ## @GRAPHICS_TRANSPARENT_COLOUR
	.comm	_VG_CLEAR_COLOR,4,2             ## @VG_CLEAR_COLOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error %d clearing bg text %d %d %g %g"

	.comm	_VG_PAINT_TYPE,4,2              ## @VG_PAINT_TYPE
	.comm	_VG_PAINT_TYPE_COLOR,4,2        ## @VG_PAINT_TYPE_COLOR
	.comm	_VG_PAINT_COLOR,4,2             ## @VG_PAINT_COLOR
	.comm	_VG_FILL_PATH,4,2               ## @VG_FILL_PATH
	.comm	_VG_FALSE,4,2                   ## @VG_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_priv_render_text            ; -- Begin function gx_priv_render_text
	.p2align	2
_gx_priv_render_text:                   ; @gx_priv_render_text
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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 w27, -88
	.cfi_offset w28, -96
	mov	x26, x7
	str	x6, [sp]                        ; 8-byte Folded Spill
	mov	x27, x5
	mov	x28, x4
	mov	x20, x3
	mov	x21, x2
	mov	x25, x1
	ldr	x24, [x29, #32]
	ldr	x22, [x29, #16]
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _inited@GOTPAGE
Lloh7:
	ldr	x8, [x8, _inited@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_vcos_demand
	add	x0, sp, #36
	mov	x1, x25
	bl	_gx_priv_save
Lloh9:
	adrp	x8, _GRAPHICS_RESOURCE_WIDTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GRAPHICS_RESOURCE_WIDTH@GOTPAGEOFF]
Lloh11:
	adrp	x9, _GRAPHICS_RESOURCE_HEIGHT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GRAPHICS_RESOURCE_HEIGHT@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x8]
Lloh14:
	ldr	x8, [x9]
	cmp	x8, x27
	cset	w23, eq
	cmp	x10, x28
	cset	w19, eq
	b.ne	LBB0_2
; %bb.1:
	ldr	x28, [x25]
LBB0_2:
	cmp	x8, x27
	b.ne	LBB0_4
; %bb.3:
	ldr	x27, [x25, #8]
LBB0_4:
	mov	x0, x22
	mov	x1, x24
	bl	_find_font
	cbz	x0, LBB0_14
; %bb.5:
	mov	x24, x0
	ldr	x25, [x29, #24]
	and	w8, w19, w23
Lloh15:
	adrp	x23, _VG_SCISSORING@GOTPAGE
Lloh16:
	ldr	x23, [x23, _VG_SCISSORING@GOTPAGEOFF]
	tbnz	w8, #0, LBB0_7
; %bb.6:
	stp	x21, x20, [sp, #40]
	stp	x28, x27, [sp, #56]
	ldr	w0, [x23]
Lloh17:
	adrp	x8, _VG_TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VG_TRUE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_vgSeti
Lloh20:
	adrp	x8, _VG_SCISSOR_RECTS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VG_SCISSOR_RECTS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	add	x2, sp, #40
	mov	w1, #4
	bl	_vgSetiv
LBB0_7:
Lloh23:
	adrp	x8, _GRAPHICS_TRANSPARENT_COLOUR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GRAPHICS_TRANSPARENT_COLOUR@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x8, x26
	b.eq	LBB0_12
; %bb.8:
	add	x1, sp, #40
	mov	x0, x26
	bl	_gx_priv_colour_to_paint
Lloh26:
	adrp	x8, _VG_CLEAR_COLOR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VG_CLEAR_COLOR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	add	x2, sp, #40
	mov	w1, #4
	bl	_vgSetfv
	add	x5, sp, #24
	add	x6, sp, #16
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	mov	x3, x21
	mov	x4, x20
	bl	_vgft_get_text_extents
	ldr	x8, [sp, #24]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.9:
	ldr	x8, [sp, #16]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x0, x24
	bl	_vgft_first_line_y_offset
	ldp	x3, x2, [sp, #16]
	add	x8, x0, x20
	sub	x1, x8, x3
	mov	x0, x21
	bl	_vgClear
	bl	_vgGetError
	cbz	w0, LBB0_12
; %bb.11:
	mov	x1, x0
	ldp	x5, x4, [sp, #16]
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_GX_LOG
	mov	w0, #0
	bl	_vcos_assert
LBB0_12:
	bl	_vgCreatePaint
	cbz	w0, LBB0_14
; %bb.13:
	mov	x26, x0
Lloh31:
	adrp	x8, _VG_PAINT_TYPE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VG_PAINT_TYPE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _VG_PAINT_TYPE_COLOR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _VG_PAINT_TYPE_COLOR@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	bl	_vgSetParameteri
	add	x1, sp, #40
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_gx_priv_colour_to_paint
Lloh37:
	adrp	x8, _VG_PAINT_COLOR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _VG_PAINT_COLOR@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	add	x3, sp, #40
	mov	x0, x26
	mov	w2, #4
	bl	_vgSetParameterfv
Lloh40:
	adrp	x19, _VG_FILL_PATH@GOTPAGE
Lloh41:
	ldr	x19, [x19, _VG_FILL_PATH@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x26
	bl	_vgSetPaint
	ldr	w5, [x19]
	mov	x0, x24
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, x25
	bl	_vgft_font_draw
	mov	x0, x26
	bl	_vgDestroyPaint
	bl	_vgGetError
	cmp	w0, #0
	cset	w0, eq
	bl	_vcos_assert
	ldr	w0, [x23]
Lloh42:
	adrp	x8, _VG_FALSE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _VG_FALSE@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	bl	_vgSeti
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_15
LBB0_14:
Lloh45:
	adrp	x8, _VCOS_ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _VCOS_ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w19, [x8]
LBB0_15:
	add	x0, sp, #36
	bl	_gx_priv_restore
	ldr	x8, [sp, #72]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_VCOS_SUCCESS,4,2               ; @VCOS_SUCCESS
	.comm	_inited,4,2                     ; @inited
	.comm	_GRAPHICS_RESOURCE_WIDTH,8,3    ; @GRAPHICS_RESOURCE_WIDTH
	.comm	_GRAPHICS_RESOURCE_HEIGHT,8,3   ; @GRAPHICS_RESOURCE_HEIGHT
	.comm	_VCOS_ENOMEM,4,2                ; @VCOS_ENOMEM
	.comm	_VG_SCISSORING,4,2              ; @VG_SCISSORING
	.comm	_VG_TRUE,4,2                    ; @VG_TRUE
	.comm	_VG_SCISSOR_RECTS,4,2           ; @VG_SCISSOR_RECTS
	.comm	_GRAPHICS_TRANSPARENT_COLOUR,8,3 ; @GRAPHICS_TRANSPARENT_COLOUR
	.comm	_VG_CLEAR_COLOR,4,2             ; @VG_CLEAR_COLOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error %d clearing bg text %d %d %g %g"

	.comm	_VG_PAINT_TYPE,4,2              ; @VG_PAINT_TYPE
	.comm	_VG_PAINT_TYPE_COLOR,4,2        ; @VG_PAINT_TYPE_COLOR
	.comm	_VG_PAINT_COLOR,4,2             ; @VG_PAINT_COLOR
	.comm	_VG_FILL_PATH,4,2               ; @VG_FILL_PATH
	.comm	_VG_FALSE,4,2                   ; @VG_FALSE
.subsections_via_symbols
