	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_menu_message
_draw_menu_message:                     ## @draw_menu_message
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movb	(%rdi), %dl
	xorl	%eax, %eax
	testb	%dl, %dl
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	je	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	movq	%rbx, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	xorl	%edi, %edi
	testb	%dl, %dl
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, %dl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movzbl	1(%rsi,%rdi), %edx
	incq	%rdi
	testb	%dl, %dl
	jne	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ecx, %edi
	cmovgl	%edi, %ecx
	testb	%dl, %dl
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	1(%rsi,%rdi), %dl
	addq	%rdi, %rsi
	incq	%rsi
	incl	%r12d
	testb	%dl, %dl
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	xorl	%ecx, %ecx
LBB0_9:
	movq	_g_menuscreen_w@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %r15d
	shrl	$31, %r15d
	addl	%edx, %r15d
	movq	_me_mfont_w@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	sarl	%r15d
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	subl	%edx, %r15d
	movq	_g_menuscreen_h@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_me_mfont_h@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	testl	%r15d, %r15d
	cmovlel	%eax, %r15d
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_menu_draw_begin
	cmpb	$0, (%rbx)
	je	LBB0_17
## %bb.10:
	imull	%r12d, %r13d
	movl	%r13d, %eax
	shrl	$31, %eax
	addl	%r13d, %eax
	sarl	%eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	subl	%eax, %ecx
	xorl	%r12d, %r12d
	testl	%ecx, %ecx
	cmovgl	%ecx, %r12d
	movl	(%r14), %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$1, %al
	sbbq	$-1, %rbx
	movl	(%r14), %eax
	addl	%eax, %r12d
	cmpb	$0, (%rbx)
	je	LBB0_17
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	_g_menuscreen_h@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	%eax, %ecx
	cmpl	%ecx, %r12d
	jg	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r15d, %edi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_text_out16
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx), %eax
	testb	%al, %al
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpb	$10, %al
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%rbx
	jmp	LBB0_13
LBB0_17:
	xorl	%eax, %eax
	callq	_menu_separation
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	callq	*%rax
LBB0_19:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_draw_end                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_g_menuscreen_w,4,2             ## @g_menuscreen_w
	.comm	_me_mfont_w,4,2                 ## @me_mfont_w
	.comm	_g_menuscreen_h,4,2             ## @g_menuscreen_h
	.comm	_me_mfont_h,4,2                 ## @me_mfont_h
	.no_dead_strip	_draw_menu_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_menu_message
_draw_menu_message:                     ; @draw_menu_message
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldrb	w9, [x0]
	cbz	w9, LBB0_7
; %bb.1:
	mov	w8, #0
	mov	w22, #1
	mov	x10, x20
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x11, #0
	add	x12, x10, #1
	cbz	w9, LBB0_5
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w9, #10
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldrb	w9, [x12, x11]
	add	x11, x11, #1
	cbnz	w9, LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w11, w8
	csel	w8, w11, w8, gt
	cbz	w9, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, x11
	ldrb	w9, [x10, #1]!
	add	w22, w22, #1
	cbnz	w9, LBB0_2
	b	LBB0_8
LBB0_7:
	mov	w8, #0
	mov	w22, #1
LBB0_8:
Lloh0:
	adrp	x9, _g_menuscreen_w@GOTPAGE
Lloh1:
	ldr	x9, [x9, _g_menuscreen_w@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
Lloh3:
	adrp	x10, _me_mfont_w@GOTPAGE
Lloh4:
	ldr	x10, [x10, _me_mfont_w@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mul	w8, w10, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w8, w9, w8, asr #1
Lloh6:
	adrp	x23, _g_menuscreen_h@GOTPAGE
Lloh7:
	ldr	x23, [x23, _g_menuscreen_h@GOTPAGEOFF]
	ldr	w25, [x23]
Lloh8:
	adrp	x24, _me_mfont_h@GOTPAGE
Lloh9:
	ldr	x24, [x24, _me_mfont_h@GOTPAGEOFF]
	ldr	w26, [x24]
	cmp	w8, #0
	csel	w21, w8, wzr, gt
	mov	w0, #1
	mov	w1, #0
	bl	_menu_draw_begin
	ldrb	w8, [x20]
	cbz	w8, LBB0_15
; %bb.9:
	mul	w8, w26, w22
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w25, #0
	cinc	w9, w25, lt
	asr	w9, w9, #1
	sub	w8, w9, w8, asr #1
	cmp	w8, #0
	csel	w22, w8, wzr, gt
	ldr	w8, [x24]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, #0
	cinc	x20, x20, ne
	ldr	w8, [x24]
	add	w22, w8, w22
	ldrb	w9, [x20]
	cbz	w9, LBB0_15
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w9, [x23]
	sub	w8, w9, w8
	cmp	w22, w8
	b.gt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_text_out16
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x20]
	cmp	w8, #0
	ccmp	w8, #10, #4, ne
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x20, x20, #1
	b	LBB0_13
LBB0_15:
	bl	_menu_separation
	cbz	x19, LBB0_17
; %bb.16:
	blr	x19
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_menu_draw_end
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_g_menuscreen_w,4,2             ; @g_menuscreen_w
	.comm	_me_mfont_w,4,2                 ; @me_mfont_w
	.comm	_g_menuscreen_h,4,2             ; @g_menuscreen_h
	.comm	_me_mfont_h,4,2                 ; @me_mfont_h
	.no_dead_strip	_draw_menu_message
.subsections_via_symbols
