	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps2_font_render_msg
_ps2_font_render_msg:                   ## @ps2_font_render_msg
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	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	%rdx, %r15
	movq	%rsi, %rbx
	movq	_FONTM_TEXTURE_LEFT_MARGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	8(%rsi), %rax
	movq	8(%rax), %rdi
	movl	(%rdi), %r12d
	movq	_FONTM_TEXTURE_BOTTOM_MARGIN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r12d
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %esi
	callq	_ps2_upload_font
	movq	8(%rbx), %rax
	movl	$0, (%rax)
	movq	8(%rax), %rdi
LBB0_3:
	movl	(%rbx), %esi
	movq	_FONTM_TEXTURE_ZPOSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_FONTM_TEXTURE_SCALED@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_FONTM_TEXTURE_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, %edx
	movl	%r12d, %ecx
	pushq	%r15
	pushq	%rax
	callq	_gsKit_fontm_print_scaled
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FONTM_TEXTURE_LEFT_MARGIN,4,2  ## @FONTM_TEXTURE_LEFT_MARGIN
	.comm	_FONTM_TEXTURE_BOTTOM_MARGIN,4,2 ## @FONTM_TEXTURE_BOTTOM_MARGIN
	.comm	_FONTM_TEXTURE_ZPOSITION,4,2    ## @FONTM_TEXTURE_ZPOSITION
	.comm	_FONTM_TEXTURE_SCALED,4,2       ## @FONTM_TEXTURE_SCALED
	.comm	_FONTM_TEXTURE_COLOR,4,2        ## @FONTM_TEXTURE_COLOR
	.no_dead_strip	_ps2_font_render_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps2_font_render_msg
_ps2_font_render_msg:                   ; @ps2_font_render_msg
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_4
; %bb.1:
	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, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _FONTM_TEXTURE_LEFT_MARGIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FONTM_TEXTURE_LEFT_MARGIN@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x8, [x1, #8]
	ldr	x0, [x8, #8]
	ldr	w9, [x0]
Lloh3:
	adrp	x10, _FONTM_TEXTURE_BOTTOM_MARGIN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FONTM_TEXTURE_BOTTOM_MARGIN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sub	w22, w9, w10
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w1, [x21]
	bl	_ps2_upload_font
	ldr	x8, [x21, #8]
	str	wzr, [x8]
	ldr	x0, [x8, #8]
LBB0_3:
	ldr	w1, [x21]
Lloh6:
	adrp	x8, _FONTM_TEXTURE_ZPOSITION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FONTM_TEXTURE_ZPOSITION@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _FONTM_TEXTURE_SCALED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FONTM_TEXTURE_SCALED@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x8, _FONTM_TEXTURE_COLOR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FONTM_TEXTURE_COLOR@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	x2, x20
	mov	x3, x22
	mov	x7, x19
	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
	b	_gsKit_fontm_print_scaled
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FONTM_TEXTURE_LEFT_MARGIN,4,2  ; @FONTM_TEXTURE_LEFT_MARGIN
	.comm	_FONTM_TEXTURE_BOTTOM_MARGIN,4,2 ; @FONTM_TEXTURE_BOTTOM_MARGIN
	.comm	_FONTM_TEXTURE_ZPOSITION,4,2    ; @FONTM_TEXTURE_ZPOSITION
	.comm	_FONTM_TEXTURE_SCALED,4,2       ; @FONTM_TEXTURE_SCALED
	.comm	_FONTM_TEXTURE_COLOR,4,2        ; @FONTM_TEXTURE_COLOR
	.no_dead_strip	_ps2_font_render_msg
.subsections_via_symbols
