	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_text_debug
_draw_text_debug:                       ## @draw_text_debug
	.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
	movl	%edx, %r14d
	movq	%rdi, %rbx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	testl	%esi, %esi
	jle	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%esi
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpb	$10, %al
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$0, (%rbx)
	jne	LBB0_1
	jmp	LBB0_11
LBB0_6:
	movq	_g_menuscreen_h@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_me_sfont_h@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	cltd
	idivl	%esi
	cmpl	%r14d, %eax
	jle	LBB0_11
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	imull	%r14d, %esi
	movl	$1, %edi
	movq	%rbx, %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpb	$10, %al
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	movl	(%r15), %eax
	movl	(%r12), %esi
	cltd
	idivl	%esi
	cmpl	%eax, %r14d
	jl	LBB0_7
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_menuscreen_h,4,2             ## @g_menuscreen_h
	.comm	_me_sfont_h,4,2                 ## @me_sfont_h
	.no_dead_strip	_draw_text_debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_text_debug
_draw_text_debug:                       ; @draw_text_debug
	.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, x2
	mov	x20, x0
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	subs	w1, w1, #1
	b.lt	LBB0_5
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x20, x20, #1
	ldurb	w8, [x20, #-1]
	cbz	w8, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	cmp	w8, #10
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [x20]
	cbnz	w8, LBB0_1
	b	LBB0_10
LBB0_5:
Lloh0:
	adrp	x21, _g_menuscreen_h@GOTPAGE
Lloh1:
	ldr	x21, [x21, _g_menuscreen_h@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	adrp	x22, _me_sfont_h@GOTPAGE
Lloh3:
	ldr	x22, [x22, _me_sfont_h@GOTPAGEOFF]
	ldr	w8, [x22]
	sdiv	w9, w9, w8
	cmp	w9, w19
	b.le	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mul	w1, w8, w19
	mov	w0, #1
	mov	x2, x20
	mov	w3, #65535
	bl	_smalltext_out16
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x20, x20, #1
	ldurb	w8, [x20, #-1]
	cbz	w8, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w8, #10
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w19, w19, #1
	ldr	w9, [x21]
	ldr	w8, [x22]
	sdiv	w9, w9, w8
	cmp	w19, w9
	b.lt	LBB0_6
LBB0_10:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_g_menuscreen_h,4,2             ; @g_menuscreen_h
	.comm	_me_sfont_h,4,2                 ; @me_sfont_h
	.no_dead_strip	_draw_text_debug
.subsections_via_symbols
