	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_draw_selection
_menu_draw_selection:                   ## @menu_draw_selection
	.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
	movl	%edx, %r12d
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_menu_sel_color@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jns	LBB0_2
## %bb.1:
	movq	_menu_text_color@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movl	$1, %edx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_text_out16_
	movl	(%rbx), %eax
	testl	%eax, %eax
	js	LBB0_19
## %bb.3:
	movq	_me_mfont_h@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	js	LBB0_19
## %bb.4:
	incl	%ecx
	movq	_g_menuscreen_ptr@GOTPCREL(%rip), %rdx
	movslq	%r15d, %rsi
	addq	%rsi, %rsi
	addq	(%rdx), %rsi
	movq	_g_menuscreen_w@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %r13
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setg	%dl
	subl	%edx, %r14d
	movslq	%r14d, %rdx
	imulq	%r13, %rdx
	leaq	(%rsi,%rdx,2), %rdx
	movq	_me_mfont_w@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	addl	%esi, %esi
	movslq	%esi, %rdi
	leaq	(%rdx,%rdi,2), %rsi
	addq	$-4, %rsi
	subl	%edi, %r12d
	leal	2(%r12), %r8d
	incl	%r12d
	leaq	1(%r12), %r15
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	andq	$-16, %r15
	leaq	-16(%r15), %r11
	movq	%r11, %r9
	shrq	$4, %r9
	incq	%r9
	movl	%r8d, %edx
	subl	%r15d, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movd	%eax, %xmm0
	pshuflw	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0,4,5,6,7]
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movl	%r9d, %r14d
	andl	$7, %r14d
	andq	$-8, %r9
	addq	%r13, %r13
	movq	%r14, %rbx
	shlq	$5, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	%r13, %rsi
	leal	-1(%rcx), %edx
	cmpl	$1, %ecx
	movl	%edx, %ecx
	jle	LBB0_19
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	testl	%r8d, %r8d
	jle	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsi, %rdx
	movl	%r8d, %edi
	cmpl	$15, %r12d
	jb	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$112, %r11
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r9, %r10
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, (%rsi,%rdx,2)
	movdqu	%xmm0, 16(%rsi,%rdx,2)
	movdqu	%xmm0, 32(%rsi,%rdx,2)
	movdqu	%xmm0, 48(%rsi,%rdx,2)
	movdqu	%xmm0, 64(%rsi,%rdx,2)
	movdqu	%xmm0, 80(%rsi,%rdx,2)
	movdqu	%xmm0, 96(%rsi,%rdx,2)
	movdqu	%xmm0, 112(%rsi,%rdx,2)
	movdqu	%xmm0, 128(%rsi,%rdx,2)
	movdqu	%xmm0, 144(%rsi,%rdx,2)
	movdqu	%xmm0, 160(%rsi,%rdx,2)
	movdqu	%xmm0, 176(%rsi,%rdx,2)
	movdqu	%xmm0, 192(%rsi,%rdx,2)
	movdqu	%xmm0, 208(%rsi,%rdx,2)
	movdqu	%xmm0, 224(%rsi,%rdx,2)
	movdqu	%xmm0, 240(%rsi,%rdx,2)
	subq	$-128, %rdx
	addq	$-8, %r10
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%r14, %r14
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rsi,%rdx,2), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, (%rdx,%rdi)
	movdqu	%xmm0, 16(%rdx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rbx
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rsi,%r15,2), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%edi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movw	%ax, (%rdx)
	addq	$2, %rdx
	decl	%edi
	cmpl	$1, %edi
	ja	LBB0_17
	jmp	LBB0_18
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_menu_sel_color,4,2             ## @menu_sel_color
	.comm	_menu_text_color,4,2            ## @menu_text_color
	.comm	_g_menuscreen_ptr,8,3           ## @g_menuscreen_ptr
	.comm	_g_menuscreen_w,4,2             ## @g_menuscreen_w
	.comm	_me_mfont_w,4,2                 ## @me_mfont_w
	.comm	_me_mfont_h,4,2                 ## @me_mfont_h
	.no_dead_strip	_menu_draw_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_draw_selection
_menu_draw_selection:                   ; @menu_draw_selection
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _menu_sel_color@GOTPAGE
Lloh1:
	ldr	x22, [x22, _menu_sel_color@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _menu_text_color@GOTPAGE
Lloh3:
	ldr	x9, [x9, _menu_text_color@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w3, w9, w8, lt
	mov	w2, #1
	bl	_text_out16_
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_11
; %bb.1:
Lloh5:
	adrp	x9, _me_mfont_h@GOTPAGE
Lloh6:
	ldr	x9, [x9, _me_mfont_h@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tbnz	w9, #31, LBB0_11
; %bb.2:
	add	w9, w9, #1
Lloh8:
	adrp	x10, _g_menuscreen_ptr@GOTPAGE
Lloh9:
	ldr	x10, [x10, _g_menuscreen_ptr@GOTPAGEOFF]
Lloh10:
	ldr	x17, [x10]
	sxtw	x0, w21
	add	x11, x17, w21, sxtw #1
Lloh11:
	adrp	x10, _g_menuscreen_w@GOTPAGE
Lloh12:
	ldr	x10, [x10, _g_menuscreen_w@GOTPAGEOFF]
Lloh13:
	ldrsw	x10, [x10]
	cmp	w20, #0
	cset	w12, gt
	sub	w12, w20, w12
	sxtw	x12, w12
	mul	x1, x10, x12
Lloh14:
	adrp	x12, _me_mfont_w@GOTPAGE
Lloh15:
	ldr	x12, [x12, _me_mfont_w@GOTPAGEOFF]
	add	x11, x11, x1, lsl #1
Lloh16:
	ldr	w12, [x12]
	lsl	w2, w12, #1
	add	x11, x11, w2, sxtw #1
	sub	x11, x11, #4
	sub	w13, w19, w2
	add	w12, w13, #2
	add	w13, w13, #1
	add	x14, x13, #1
	and	x15, x14, #0x1ffffffe0
	dup.8h	v0, w8
	sub	w16, w12, w15
	add	x0, x0, x1
	add	x0, x0, w2, sxtw
	add	x17, x17, x0, lsl #1
	add	x17, x17, #28
	lsl	x0, x10, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, x10, lsl #1
	add	x17, x17, x0
	subs	w9, w9, #1
	b.le	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w12, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x11
	mov	x2, x12
	cmp	w13, #31
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x11, x15, lsl #1
	mov	x2, x17
	mov	x3, x15
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x2, #-32]
	stp	q0, q0, [x2], #64
	subs	x3, x3, #32
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x16
	cmp	x14, x15
	b.eq	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w2, w2, #1
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	strh	w8, [x1], #2
	sub	w2, w2, #1
	cmp	w2, #1
	b.hi	LBB0_10
	b	LBB0_3
LBB0_11:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_menu_sel_color,4,2             ; @menu_sel_color
	.comm	_menu_text_color,4,2            ; @menu_text_color
	.comm	_g_menuscreen_ptr,8,3           ; @g_menuscreen_ptr
	.comm	_g_menuscreen_w,4,2             ; @g_menuscreen_w
	.comm	_me_mfont_w,4,2                 ; @me_mfont_w
	.comm	_me_mfont_h,4,2                 ; @me_mfont_h
	.no_dead_strip	_menu_draw_selection
.subsections_via_symbols
