	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps2_prepare_font
_ps2_prepare_font:                      ## @ps2_prepare_font
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_gsKit_fontm_unpack
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_FONTM_TEXTURE_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rdi
	movl	%eax, 16(%rdi)
	movq	_FONTM_TEXTURE_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movq	_GS_PSM_T4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_GS_PSM_CT32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movq	_GS_FILTER_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gsKit_setup_tbw                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FONTM_TEXTURE_WIDTH,4,2        ## @FONTM_TEXTURE_WIDTH
	.comm	_FONTM_TEXTURE_HEIGHT,4,2       ## @FONTM_TEXTURE_HEIGHT
	.comm	_GS_PSM_T4,4,2                  ## @GS_PSM_T4
	.comm	_GS_PSM_CT32,4,2                ## @GS_PSM_CT32
	.comm	_GS_FILTER_LINEAR,4,2           ## @GS_FILTER_LINEAR
	.no_dead_strip	_ps2_prepare_font
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps2_prepare_font
_ps2_prepare_font:                      ; @ps2_prepare_font
	.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	x19, x1
	mov	x0, x1
	bl	_gsKit_fontm_unpack
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _FONTM_TEXTURE_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FONTM_TEXTURE_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x0, [x19]
	str	w8, [x0, #16]
Lloh3:
	adrp	x8, _FONTM_TEXTURE_HEIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FONTM_TEXTURE_HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GS_PSM_T4@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GS_PSM_T4@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh9:
	adrp	x8, _GS_PSM_CT32@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GS_PSM_CT32@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _GS_FILTER_LINEAR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GS_FILTER_LINEAR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gsKit_setup_tbw
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FONTM_TEXTURE_WIDTH,4,2        ; @FONTM_TEXTURE_WIDTH
	.comm	_FONTM_TEXTURE_HEIGHT,4,2       ; @FONTM_TEXTURE_HEIGHT
	.comm	_GS_PSM_T4,4,2                  ; @GS_PSM_T4
	.comm	_GS_PSM_CT32,4,2                ; @GS_PSM_CT32
	.comm	_GS_FILTER_LINEAR,4,2           ; @GS_FILTER_LINEAR
	.no_dead_strip	_ps2_prepare_font
.subsections_via_symbols
