	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FONT_Init                      ## -- Begin function FONT_Init
	.p2align	4, 0x90
_FONT_Init:                             ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$6, %edi
	callq	_ipl_set_config
	movl	$32, %edi
	movl	$131360, %esi                   ## imm = 0x20120
	callq	_memalign
	movq	_ipl_fontarea@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$131360, %edx                   ## imm = 0x20120
	callq	_memset
	movl	$119072, %edi                   ## imm = 0x1D120
	addq	(%r14), %rdi
	movl	$12288, %esi                    ## imm = 0x3000
	movl	$2084608, %edx                  ## imm = 0x1FCF00
	callq	___SYS_ReadROM
	movq	(%r14), %rsi
	leaq	119072(%rsi), %rdi
	callq	_decode_szp
	movq	(%r14), %rax
	movq	_fontHeader@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movslq	(%rax), %rcx
	leal	(%rax,%rcx), %edx
	addl	$31, %edx
	andl	$-32, %edx
	movslq	%edx, %rsi
	movq	_fontImage@GOTPCREL(%rip), %rdx
	movq	%rsi, (%rdx)
	leaq	(%rax,%rcx,4), %rdi
	callq	_expand_font
	movq	(%r15), %rax
	movq	_font_size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rax), %esi
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	16(%rax), %rdx
	movslq	%esi, %rsi
	addq	%rdx, %rsi
	movl	(%rax,%rsi,4), %edx
	movl	%edx, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	4(%rax), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	8(%rax), %rsi
	cmpq	%rsi, %rbx
	jg	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %esi
	subl	%edx, %esi
	jmp	LBB0_6
LBB0_7:
	movl	20(%rax), %ecx
	movq	_fheight@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	imull	24(%rax), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movl	$32, %edi
	callq	_memalign
	movq	%rax, %rcx
	movq	_fontTexture@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.8:
	movq	(%r14), %rdi
	callq	_free
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipl_fontarea,8,3               ## @ipl_fontarea
	.comm	_fontHeader,8,3                 ## @fontHeader
	.comm	_fontImage,8,3                  ## @fontImage
	.comm	_font_size,8,3                  ## @font_size
	.comm	_fheight,4,2                    ## @fheight
	.comm	_fontTexture,8,3                ## @fontTexture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FONT_Init                      ; -- Begin function FONT_Init
	.p2align	2
_FONT_Init:                             ; @FONT_Init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w0, #6
	bl	_ipl_set_config
	mov	w0, #32
	mov	w1, #288
	movk	w1, #2, lsl #16
	bl	_memalign
Lloh0:
	adrp	x19, _ipl_fontarea@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ipl_fontarea@GOTPAGEOFF]
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.1:
	mov	w1, #0
	mov	w2, #288
	movk	w2, #2, lsl #16
	bl	_memset
	ldr	x8, [x19]
	mov	w20, #53536
	movk	w20, #1, lsl #16
	add	x0, x8, x20
	mov	w1, #12288
	mov	w2, #52992
	movk	w2, #31, lsl #16
	bl	___SYS_ReadROM
	ldr	x1, [x19]
	add	x0, x1, x20
	bl	_decode_szp
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _fontHeader@GOTPAGE
Lloh3:
	ldr	x20, [x20, _fontHeader@GOTPAGEOFF]
	str	x8, [x20]
	ldrsw	x9, [x8]
	add	w10, w8, w9
	add	w10, w10, #31
	and	w10, w10, #0xffffffe0
	sxtw	x1, w10
Lloh4:
	adrp	x10, _fontImage@GOTPAGE
Lloh5:
	ldr	x10, [x10, _fontImage@GOTPAGEOFF]
Lloh6:
	str	x1, [x10]
	add	x0, x8, x9, lsl #2
	bl	_expand_font
	mov	x9, #0
	ldr	x8, [x20]
Lloh7:
	adrp	x10, _font_size@GOTPAGE
Lloh8:
	ldr	x10, [x10, _font_size@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x8, #12]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x8, #16]
	add	w11, w12, w11
	ldr	w11, [x8, w11, sxtw #2]
	str	w11, [x10, x9, lsl #2]
	add	x9, x9, #1
	cmp	x9, #256
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x11, [x8, #4]
	cmp	x9, x11
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x12, [x8, #8]
	cmp	x9, x12
	b.gt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w11, w9, w11
	b	LBB0_3
LBB0_7:
Lloh10:
	adrp	x9, _fheight@GOTPAGE
Lloh11:
	ldr	x9, [x9, _fheight@GOTPAGEOFF]
	ldp	w10, w8, [x8, #20]
Lloh12:
	str	w10, [x9]
	mul	w8, w8, w10
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	mov	w0, #32
	bl	_memalign
Lloh13:
	adrp	x8, _fontTexture@GOTPAGE
Lloh14:
	ldr	x8, [x8, _fontTexture@GOTPAGEOFF]
Lloh15:
	str	x0, [x8]
	cbz	x0, LBB0_9
; %bb.8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	ldr	x0, [x19]
	bl	_free
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ipl_fontarea,8,3               ; @ipl_fontarea
	.comm	_fontHeader,8,3                 ; @fontHeader
	.comm	_fontImage,8,3                  ; @fontImage
	.comm	_font_size,8,3                  ; @font_size
	.comm	_fheight,4,2                    ; @fheight
	.comm	_fontTexture,8,3                ; @fontTexture
.subsections_via_symbols
