	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_priv_font_init              ## -- Begin function gx_priv_font_init
	.p2align	4, 0x90
_gx_priv_font_init:                     ## @gx_priv_font_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_vgft_init
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_VCOS_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_fname@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_default_font@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_sprintf
	movq	(%r12), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_lseek
	movq	%rax, %rbx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_lseek
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_vcos_malloc
	movl	%eax, 16(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_read
	cltq
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.11:
	movq	%rbx, 8(%r15)
	movl	%r14d, %edi
	callq	_close
	movq	(%r12), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_GX_TRACE
	movq	_inited@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_GX_ERROR
	movq	_VCOS_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	(%r12), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_GX_ERROR
	movq	_VCOS_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movq	(%r12), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_GX_ERROR
	movq	_VCOS_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	16(%r15), %edi
	callq	_vcos_free
LBB0_8:
	movl	%r14d, %edi
	callq	_close
LBB0_9:
	xorl	%eax, %eax
	callq	_vgft_term
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCOS_ENOMEM,4,2                ## @VCOS_ENOMEM
	.comm	_fname,8,3                      ## @fname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_default_font,24,3              ## @default_font
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"Could not open font file '%s'"

	.comm	_VCOS_ENOENT,4,2                ## @VCOS_ENOENT
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.2:                               ## @.str.2
	.asciz	"No memory for font %s"

L_.str.3:                               ## @.str.3
	.asciz	"Could not read font %s"

	.comm	_VCOS_EINVAL,4,2                ## @VCOS_EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"Opened font file '%s'"

	.comm	_inited,4,2                     ## @inited
	.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_font_init              ; -- Begin function gx_priv_font_init
	.p2align	2
_gx_priv_font_init:                     ; @gx_priv_font_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_vgft_init
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VCOS_ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCOS_ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_2:
Lloh3:
	adrp	x22, _fname@GOTPAGE
Lloh4:
	ldr	x22, [x22, _fname@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh5:
	adrp	x21, _default_font@GOTPAGE
Lloh6:
	ldr	x21, [x21, _default_font@GOTPAGEOFF]
	ldr	x3, [x21]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_sprintf
	ldr	x0, [x22]
Lloh9:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x19, x0
Lloh12:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	mov	x20, x0
Lloh15:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_lseek
	ldr	x1, [x21]
	mov	x0, x20
	bl	_vcos_malloc
	str	w0, [x21, #16]
	cbz	w0, LBB0_7
; %bb.4:
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_read
	cmp	x20, w0, sxtw
	b.ne	LBB0_8
; %bb.5:
	str	x20, [x21, #8]
	mov	x0, x19
	bl	_close
	ldr	x1, [x22]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_GX_TRACE
Lloh20:
	adrp	x8, _inited@GOTPAGE
Lloh21:
	ldr	x8, [x8, _inited@GOTPAGEOFF]
	mov	w9, #1
Lloh22:
	str	w9, [x8]
Lloh23:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_6:
	ldr	x1, [x21]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_GX_ERROR
Lloh28:
	adrp	x8, _VCOS_ENOENT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VCOS_ENOENT@GOTPAGEOFF]
Lloh30:
	ldr	w20, [x8]
	b	LBB0_10
LBB0_7:
	ldr	x1, [x22]
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_GX_ERROR
Lloh33:
	adrp	x8, _VCOS_ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VCOS_ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w20, [x8]
	b	LBB0_9
LBB0_8:
	ldr	x1, [x22]
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_GX_ERROR
Lloh38:
	adrp	x8, _VCOS_EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _VCOS_EINVAL@GOTPAGEOFF]
Lloh40:
	ldr	w20, [x8]
	ldr	w0, [x21, #16]
	bl	_vcos_free
LBB0_9:
	mov	x0, x19
	bl	_close
LBB0_10:
	bl	_vgft_term
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_VCOS_ENOMEM,4,2                ; @VCOS_ENOMEM
	.comm	_fname,8,3                      ; @fname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_default_font,24,3              ; @default_font
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"Could not open font file '%s'"

	.comm	_VCOS_ENOENT,4,2                ; @VCOS_ENOENT
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.2:                               ; @.str.2
	.asciz	"No memory for font %s"

l_.str.3:                               ; @.str.3
	.asciz	"Could not read font %s"

	.comm	_VCOS_EINVAL,4,2                ; @VCOS_EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"Opened font file '%s'"

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