	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_menu
_print_menu:                            ## @print_menu
	.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	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movslq	-44(%rbp), %r14                 ## 4-byte Folded Reload
	movl	%esi, %ebx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	shlq	$2, %r14
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r15), %esi
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r13d, %ecx
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_print_item
	incq	%r13
	addq	$4, %r14
	cmpq	%r13, %r12
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rdx
	addq	%r14, %rdx
	movq	_Unselected@GOTPCREL(%rip), %rax
	cmpq	%r13, %rbx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_Selected@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.6:
	movq	_INPUT_ROWS@GOTPCREL(%rip), %rcx
	movl	(%r15), %eax
	movl	32(%r15), %edi
	cltd
	idivl	(%rcx)
	movl	%edx, %r12d
	movq	_menubox_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlg_attrset
	testl	%r12d, %r12d
	jne	LBB0_7
LBB0_11:
	movl	32(%r15), %edi
	callq	_wnoutrefresh
	movl	28(%r15), %edi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	%esi, %ecx
	movl	24(%r15), %r8d
	movl	8(%r15), %r9d
	movl	4(%r15), %eax
	addl	%r9d, %eax
	movq	16(%r15), %rbx
	movslq	(%r15), %rdx
	leaq	(%rbx,%rdx), %r10
	incq	%r10
	movq	_menubox_border2_attr@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	movq	_menubox_border_attr@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	subq	$8, %rsp
	movl	%esi, %edx
	pushq	%r14
	pushq	%r11
	pushq	%r10
	pushq	%rbx
	pushq	%rax
	callq	_dlg_draw_scrollbar
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	decl	%r12d
	je	LBB0_11
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	(%r15), %esi
	movl	32(%r15), %edi
	subl	%r12d, %esi
	xorl	%edx, %edx
	callq	_wmove
	cmpl	$0, 4(%r15)
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	32(%r15), %edi
	movl	$32, %esi
	callq	_waddch
	incl	%ebx
	cmpl	4(%r15), %ebx
	jl	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_Selected,4,2                   ## @Selected
	.comm	_Unselected,4,2                 ## @Unselected
	.comm	_INPUT_ROWS,4,2                 ## @INPUT_ROWS
	.comm	_menubox_attr,4,2               ## @menubox_attr
	.comm	_menubox_border2_attr,4,2       ## @menubox_border2_attr
	.comm	_menubox_border_attr,4,2        ## @menubox_border_attr
	.no_dead_strip	_print_menu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_menu
_print_menu:                            ; @print_menu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	cmp	w3, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	sbfiz	x24, x19, #2, #32
Lloh0:
	adrp	x25, _Selected@GOTPAGE
Lloh1:
	ldr	x25, [x25, _Selected@GOTPAGEOFF]
Lloh2:
	adrp	x26, _Unselected@GOTPAGE
Lloh3:
	ldr	x26, [x26, _Unselected@GOTPAGEOFF]
	mov	w27, w1
	mov	w28, w21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #32]
	ldr	x8, [x20, #40]
	add	x2, x8, x24
	cmp	x27, x23
	csel	x8, x25, x26, eq
	ldr	w4, [x8]
	mov	x0, x20
	mov	x3, x23
	mov	x5, x22
	bl	_print_item
	add	x23, x23, #1
	add	x24, x24, #4
	cmp	x28, x23
	b.ne	LBB0_2
LBB0_3:
	cbz	w22, LBB0_5
; %bb.4:
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _INPUT_ROWS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _INPUT_ROWS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w22, w10, w9, w8
	ldr	w0, [x20, #32]
Lloh7:
	adrp	x8, _menubox_attr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _menubox_attr@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_dlg_attrset
	cbnz	w22, LBB0_7
LBB0_5:
	ldr	w0, [x20, #32]
	bl	_wnoutrefresh
	add	w3, w21, w19
	ldp	w4, w0, [x20, #24]
	ldp	w8, w5, [x20, #4]
	ldrsw	x9, [x20]
	add	w6, w8, w5
	ldr	x7, [x20, #16]
	add	x8, x7, x9
	add	x8, x8, #1
Lloh10:
	adrp	x9, _menubox_border2_attr@GOTPAGE
Lloh11:
	ldr	x9, [x9, _menubox_border2_attr@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _menubox_border_attr@GOTPAGE
Lloh14:
	ldr	x10, [x10, _menubox_border_attr@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	stp	w9, w10, [sp, #8]
	str	x8, [sp]
	mov	x1, x19
	mov	x2, x19
	bl	_dlg_draw_scrollbar
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	subs	w22, w22, #1
	b.eq	LBB0_5
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w0, [x20, #32]
	ldr	w8, [x20]
	sub	w1, w8, w22
	mov	w2, #0
	bl	_wmove
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #0
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x20, #32]
	mov	w1, #32
	bl	_waddch
	add	w23, w23, #1
	ldr	w8, [x20, #4]
	cmp	w23, w8
	b.lt	LBB0_9
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_Selected,4,2                   ; @Selected
	.comm	_Unselected,4,2                 ; @Unselected
	.comm	_INPUT_ROWS,4,2                 ; @INPUT_ROWS
	.comm	_menubox_attr,4,2               ; @menubox_attr
	.comm	_menubox_border2_attr,4,2       ; @menubox_border2_attr
	.comm	_menubox_border_attr,4,2        ; @menubox_border_attr
	.no_dead_strip	_print_menu
.subsections_via_symbols
