	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UIDrawMenuCursor               ## -- Begin function UIDrawMenuCursor
	.p2align	4, 0x90
_UIDrawMenuCursor:                      ## @UIDrawMenuCursor
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_menu_num_options@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_text_num_lines@GOTPCREL(%rip), %r15
	movq	_menu_index@GOTPCREL(%rip), %r12
	movq	_ui_bg_tiles@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	%sil, %cl
	leal	(%rcx,%rcx,8), %edi
	incl	%edi
	movl	(%rax), %r8d
	movl	%edx, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_set_win_tiles
	incl	%ebx
	cmpl	(%r14), %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	xorl	%ecx, %ecx
	cmpl	%edi, %ebx
	setge	%sil
	movl	%ebx, %eax
	cltd
	idivl	%edi
	incl	%edx
	movq	%r13, %rax
	cmpl	(%r12), %ebx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ui_cursor_tiles@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_menu_num_options,4,2           ## @menu_num_options
	.comm	_text_num_lines,4,2             ## @text_num_lines
	.comm	_menu_index,4,2                 ## @menu_index
	.comm	_ui_cursor_tiles,4,2            ## @ui_cursor_tiles
	.comm	_ui_bg_tiles,4,2                ## @ui_bg_tiles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UIDrawMenuCursor               ; -- Begin function UIDrawMenuCursor
	.p2align	2
_UIDrawMenuCursor:                      ; @UIDrawMenuCursor
	.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
Lloh0:
	adrp	x19, _menu_num_options@GOTPAGE
Lloh1:
	ldr	x19, [x19, _menu_num_options@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh2:
	adrp	x21, _text_num_lines@GOTPAGE
Lloh3:
	ldr	x21, [x21, _text_num_lines@GOTPAGEOFF]
	mov	w22, #10
Lloh4:
	adrp	x23, _menu_index@GOTPAGE
Lloh5:
	ldr	x23, [x23, _menu_index@GOTPAGEOFF]
Lloh6:
	adrp	x24, _ui_cursor_tiles@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ui_cursor_tiles@GOTPAGEOFF]
Lloh8:
	adrp	x25, _ui_bg_tiles@GOTPAGE
Lloh9:
	ldr	x25, [x25, _ui_bg_tiles@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w20, w8
	csinc	w0, w22, wzr, ge
	sdiv	w9, w20, w8
	msub	w8, w9, w8, w20
	add	w1, w8, #1
	ldr	w8, [x23]
	cmp	w20, w8
	csel	x8, x24, x25, eq
	ldr	w4, [x8]
	mov	w2, #1
	mov	w3, #1
	bl	_set_win_tiles
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_menu_num_options,4,2           ; @menu_num_options
	.comm	_text_num_lines,4,2             ; @text_num_lines
	.comm	_menu_index,4,2                 ; @menu_index
	.comm	_ui_cursor_tiles,4,2            ; @ui_cursor_tiles
	.comm	_ui_bg_tiles,4,2                ; @ui_bg_tiles
.subsections_via_symbols
