	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MenuField_Draw                 ## -- Begin function MenuField_Draw
	.p2align	4, 0x90
_MenuField_Draw:                        ## @MenuField_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, %r13
	movl	8(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_QMF_SMALLFONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%rdi), %eax
	movq	_UI_SMALLFONT@GOTPCREL(%rip), %rax
	cmoveq	_UI_BIGFONT@GOTPCREL(%rip), %rax
	movq	_SMALLCHAR_WIDTH@GOTPCREL(%rip), %rcx
	cmoveq	_BIGCHAR_WIDTH@GOTPCREL(%rip), %rcx
	movl	12(%rdi), %r15d
	movl	(%rax), %r14d
	movl	(%rcx), %r12d
	movl	56(%rdi), %edi
	callq	_Menu_ItemAtCursor
	xorl	%ebx, %ebx
	cmpq	%r13, %rax
	movq	_UI_PULSE@GOTPCREL(%rip), %rax
	cmovel	(%rax), %ebx
	movq	_qfalse@GOTPCREL(%rip), %rax
	cmoveq	_qtrue@GOTPCREL(%rip), %rax
	movq	_QMF_GRAYED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_text_color_normal@GOTPCREL(%rip), %rcx
	testl	%edx, 16(%r13)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_text_color_highlight@GOTPCREL(%rip), %rcx
	testl	%edx, 16(%r13)
	je	LBB0_5
LBB0_4:
	movq	_text_color_disabled@GOTPCREL(%rip), %rcx
LBB0_5:
	orl	%r14d, %ebx
	movq	(%rcx), %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	40(%r13), %rdi
	movq	48(%r13), %rdx
	subq	%rdi, %rdx
	incq	%rdx
	movq	24(%r13), %rsi
	movq	32(%r13), %rcx
	subq	%rsi, %rcx
	incq	%rcx
	movq	_listbar_color@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_UI_FillRect
	movq	_UI_CENTER@GOTPCREL(%rip), %rax
	movq	_UI_BLINK@GOTPCREL(%rip), %rdx
	movl	(%rax), %ecx
	orl	%ebx, %ecx
	orl	(%rdx), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	$13, %edx
	movq	%r14, %r8
	callq	_UI_DrawChar
LBB0_7:
	movl	20(%r13), %edx
	testl	%edx, %edx
	movl	%ebx, %r9d
	movl	%r15d, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_9
## %bb.8:
	movl	%r15d, %edi
	subl	%r12d, %edi
	movq	_UI_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	%r9d, %ecx
	movl	%ebx, %esi
	movq	%r14, %r8
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	callq	_UI_DrawString
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
LBB0_9:
	addl	%r15d, %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r9d, %ecx
	movq	%r14, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MField_Draw                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QMF_SMALLFONT,4,2              ## @QMF_SMALLFONT
	.comm	_SMALLCHAR_WIDTH,4,2            ## @SMALLCHAR_WIDTH
	.comm	_SMALLCHAR_HEIGHT,4,2           ## @SMALLCHAR_HEIGHT
	.comm	_UI_SMALLFONT,4,2               ## @UI_SMALLFONT
	.comm	_BIGCHAR_WIDTH,4,2              ## @BIGCHAR_WIDTH
	.comm	_BIGCHAR_HEIGHT,4,2             ## @BIGCHAR_HEIGHT
	.comm	_UI_BIGFONT,4,2                 ## @UI_BIGFONT
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_UI_PULSE,4,2                   ## @UI_PULSE
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_QMF_GRAYED,4,2                 ## @QMF_GRAYED
	.comm	_text_color_disabled,8,3        ## @text_color_disabled
	.comm	_text_color_highlight,8,3       ## @text_color_highlight
	.comm	_text_color_normal,8,3          ## @text_color_normal
	.comm	_listbar_color,4,2              ## @listbar_color
	.comm	_UI_CENTER,4,2                  ## @UI_CENTER
	.comm	_UI_BLINK,4,2                   ## @UI_BLINK
	.comm	_UI_RIGHT,4,2                   ## @UI_RIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MenuField_Draw                 ; -- Begin function MenuField_Draw
	.p2align	2
_MenuField_Draw:                        ; @MenuField_Draw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldp	w21, w19, [x0, #8]
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x9, _QMF_SMALLFONT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QMF_SMALLFONT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _UI_BIGFONT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _UI_BIGFONT@GOTPAGEOFF]
Lloh5:
	adrp	x11, _UI_SMALLFONT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _UI_SMALLFONT@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
Lloh7:
	adrp	x9, _BIGCHAR_WIDTH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BIGCHAR_WIDTH@GOTPAGEOFF]
	ldr	w22, [x8]
Lloh9:
	adrp	x8, _SMALLCHAR_WIDTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMALLCHAR_WIDTH@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w24, [x8]
	ldr	w0, [x0, #56]
	bl	_Menu_ItemAtCursor
Lloh11:
	adrp	x8, _UI_PULSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UI_PULSE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _qtrue@GOTPAGE
Lloh15:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh16:
	adrp	x10, _qfalse@GOTPAGE
Lloh17:
	ldr	x10, [x10, _qfalse@GOTPAGEOFF]
	cmp	x0, x20
	csel	x9, x9, x10, eq
	csel	w8, w8, wzr, eq
	orr	w22, w8, w22
	ldr	x8, [x9]
	ldr	w9, [x20, #16]
Lloh18:
	adrp	x10, _QMF_GRAYED@GOTPAGE
Lloh19:
	ldr	x10, [x10, _QMF_GRAYED@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _text_color_normal@GOTPAGE
Lloh22:
	ldr	x11, [x11, _text_color_normal@GOTPAGEOFF]
Lloh23:
	adrp	x12, _text_color_highlight@GOTPAGE
Lloh24:
	ldr	x12, [x12, _text_color_highlight@GOTPAGEOFF]
	cmp	x8, #0
	csel	x11, x11, x12, eq
Lloh25:
	adrp	x12, _text_color_disabled@GOTPAGE
Lloh26:
	ldr	x12, [x12, _text_color_disabled@GOTPAGEOFF]
	tst	w10, w9
	csel	x9, x11, x12, eq
	ldr	x23, [x9]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x0, x8, [x20, #40]
	sub	x8, x8, x0
	add	x2, x8, #1
	ldp	x1, x8, [x20, #24]
	sub	x8, x8, x1
	add	x3, x8, #1
Lloh27:
	adrp	x8, _listbar_color@GOTPAGE
Lloh28:
	ldr	x8, [x8, _listbar_color@GOTPAGEOFF]
Lloh29:
	ldr	w4, [x8]
	bl	_UI_FillRect
Lloh30:
	adrp	x8, _UI_CENTER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UI_CENTER@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _UI_BLINK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _UI_BLINK@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w3, w8, w9
	mov	x0, x21
	mov	x1, x19
	mov	w2, #13
	mov	x4, x23
	bl	_UI_DrawChar
LBB0_2:
	ldr	w2, [x20, #20]
	cbz	w2, LBB0_4
; %bb.3:
	sub	w0, w21, w24
Lloh36:
	adrp	x8, _UI_RIGHT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _UI_RIGHT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w3, w8, w22
	mov	x1, x19
	mov	x4, x23
	bl	_UI_DrawString
LBB0_4:
	add	w1, w24, w21
	mov	x0, x20
	mov	x2, x19
	mov	x3, x22
	mov	x4, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_MField_Draw
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_QMF_SMALLFONT,4,2              ; @QMF_SMALLFONT
	.comm	_SMALLCHAR_WIDTH,4,2            ; @SMALLCHAR_WIDTH
	.comm	_SMALLCHAR_HEIGHT,4,2           ; @SMALLCHAR_HEIGHT
	.comm	_UI_SMALLFONT,4,2               ; @UI_SMALLFONT
	.comm	_BIGCHAR_WIDTH,4,2              ; @BIGCHAR_WIDTH
	.comm	_BIGCHAR_HEIGHT,4,2             ; @BIGCHAR_HEIGHT
	.comm	_UI_BIGFONT,4,2                 ; @UI_BIGFONT
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_UI_PULSE,4,2                   ; @UI_PULSE
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_QMF_GRAYED,4,2                 ; @QMF_GRAYED
	.comm	_text_color_disabled,8,3        ; @text_color_disabled
	.comm	_text_color_highlight,8,3       ; @text_color_highlight
	.comm	_text_color_normal,8,3          ; @text_color_normal
	.comm	_listbar_color,4,2              ; @listbar_color
	.comm	_UI_CENTER,4,2                  ; @UI_CENTER
	.comm	_UI_BLINK,4,2                   ; @UI_BLINK
	.comm	_UI_RIGHT,4,2                   ; @UI_RIGHT
.subsections_via_symbols
