	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menu_Draw                      ## -- Begin function Menu_Draw
	.p2align	4, 0x90
_Menu_Draw:                             ## @Menu_Draw
	.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	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_24
## %bb.1:
	xorl	%ebx, %ebx
	movq	_QMF_HIDDEN@GOTPCREL(%rip), %r13
	movq	_uis@GOTPCREL(%rip), %r14
	jmp	LBB0_2
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r8), %r8d
	callq	_UI_DrawRect
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_24
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	movl	(%r13), %eax
	testl	%eax, (%r12)
	jne	LBB0_23
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	*%rax
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %r9d
	movq	_QMF_INACTIVE@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %edi
	movl	12(%r12), %esi
	movl	16(%r12), %edx
	subl	%edi, %edx
	incl	%edx
	movl	20(%r12), %ecx
	subl	%esi, %ecx
	incl	%ecx
	movq	_colorYellow@GOTPCREL(%rip), %r8
	movq	_QMF_HASMOUSEFOCUS@GOTPCREL(%rip), %rax
	andl	(%rax), %r9d
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_colorWhite@GOTPCREL(%rip), %r8
	jmp	LBB0_22
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %esi
	leal	-128(%rsi), %eax
	cmpl	$9, %eax
	ja	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_Text_Draw
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_va
	movl	%eax, %edi
	callq	_trap_Error
	jmp	LBB0_18
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_SpinControl_Draw
	jmp	LBB0_18
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_Slider_Draw
	jmp	LBB0_18
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_ScrollList_Draw
	jmp	LBB0_18
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_RadioButton_Draw
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_PText_Draw
	jmp	LBB0_18
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_MenuField_Draw
	jmp	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_BText_Draw
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_Bitmap_Draw
	jmp	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_Action_Draw
	jmp	LBB0_18
LBB0_24:
	movq	%r15, %rdi
	callq	_Menu_ItemAtCursor
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	24(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.27:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_15
	.long	L0_0_set_8
	.long	L0_0_set_16
	.long	L0_0_set_12
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_QMF_HIDDEN,4,2                 ## @QMF_HIDDEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Menu_Draw: unknown type %d"

	.comm	_uis,8,3                        ## @uis
	.comm	_QMF_INACTIVE,4,2               ## @QMF_INACTIVE
	.comm	_QMF_HASMOUSEFOCUS,4,2          ## @QMF_HASMOUSEFOCUS
	.comm	_colorYellow,4,2                ## @colorYellow
	.comm	_colorWhite,4,2                 ## @colorWhite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menu_Draw                      ; -- Begin function Menu_Draw
	.p2align	2
_Menu_Draw:                             ; @Menu_Draw
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.1:
	mov	x22, #0
Lloh0:
	adrp	x23, _QMF_HIDDEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QMF_HIDDEN@GOTPAGEOFF]
Lloh2:
	adrp	x24, _uis@GOTPAGE
Lloh3:
	ldr	x24, [x24, _uis@GOTPAGEOFF]
Lloh4:
	adrp	x25, _QMF_INACTIVE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _QMF_INACTIVE@GOTPAGEOFF]
Lloh6:
	adrp	x26, _QMF_HASMOUSEFOCUS@GOTPAGE
Lloh7:
	ldr	x26, [x26, _QMF_HASMOUSEFOCUS@GOTPAGEOFF]
Lloh8:
	adrp	x27, lJTI0_0@PAGE
Lloh9:
	add	x27, x27, lJTI0_0@PAGEOFF
Lloh10:
	adrp	x28, _colorWhite@GOTPAGE
Lloh11:
	ldr	x28, [x28, _colorWhite@GOTPAGEOFF]
Lloh12:
	adrp	x20, _colorYellow@GOTPAGE
Lloh13:
	ldr	x20, [x20, _colorYellow@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x21, [x8, x22, lsl #3]
	ldr	w8, [x21]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	blr	x8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w0, w1, [x21, #8]
	ldp	w9, w10, [x21, #16]
	sub	w9, w9, w0
	add	w2, w9, #1
	sub	w9, w10, w1
	add	w3, w9, #1
	ldr	w9, [x26]
	tst	w9, w8
	csel	x8, x28, x20, eq
	ldr	w4, [x8]
	bl	_UI_DrawRect
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x21, #4]
	sub	w8, w1, #128
	cmp	w8, #9
	b.hi	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_11
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_Text_Draw
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	bl	_trap_Error
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_SpinControl_Draw
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_Slider_Draw
	b	LBB0_6
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_ScrollList_Draw
	b	LBB0_6
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_RadioButton_Draw
	b	LBB0_6
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_PText_Draw
	b	LBB0_6
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_MenuField_Draw
	b	LBB0_6
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_BText_Draw
	b	LBB0_6
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_Bitmap_Draw
	b	LBB0_6
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_Action_Draw
	b	LBB0_6
LBB0_22:
	mov	x0, x19
	bl	_Menu_ItemAtCursor
	cbz	x0, LBB0_25
; %bb.23:
	ldr	x1, [x0, #24]
	cbz	x1, LBB0_25
; %bb.24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	br	x1
LBB0_25:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_20-LBB0_11)>>2
	.byte	(LBB0_21-LBB0_11)>>2
                                        ; -- End function
	.comm	_QMF_HIDDEN,4,2                 ; @QMF_HIDDEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Menu_Draw: unknown type %d"

	.comm	_uis,8,3                        ; @uis
	.comm	_QMF_INACTIVE,4,2               ; @QMF_INACTIVE
	.comm	_QMF_HASMOUSEFOCUS,4,2          ; @QMF_HASMOUSEFOCUS
	.comm	_colorYellow,4,2                ; @colorYellow
	.comm	_colorWhite,4,2                 ; @colorWhite
.subsections_via_symbols
