	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MenuField_Init                 ## -- Begin function MenuField_Init
	.p2align	4, 0x90
_MenuField_Init:                        ## @MenuField_Init
	.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, %rbx
	addq	$64, %rdi
	callq	_MField_Clear
	movq	_QMF_SMALLFONT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_BIGCHAR_HEIGHT@GOTPCREL(%rip), %rax
	movq	_SMALLCHAR_HEIGHT@GOTPCREL(%rip), %rcx
	andl	(%rbx), %r15d
	jne	LBB0_1
## %bb.2:
	movq	_BIGCHAR_WIDTH@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_SMALLCHAR_WIDTH@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	(%rax), %r13d
	movl	(%rcx), %r14d
	movl	(%rdx), %r12d
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	callq	_strlen
	incl	%eax
	imull	%r12d, %eax
	cltq
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	testl	%r15d, %r15d
	cmovel	%r13d, %r14d
	movq	8(%rbx), %rcx
	movq	24(%rbx), %rdx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	movq	%rsi, 48(%rbx)
	movq	%rcx, 40(%rbx)
	movslq	%r12d, %rax
	addq	%rax, %rdx
	movslq	64(%rbx), %rsi
	imulq	%rax, %rsi
	addq	%rdx, %rsi
	movq	%rsi, 32(%rbx)
	movslq	%r14d, %rax
	addq	%rcx, %rax
	movq	%rax, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_BIGCHAR_WIDTH,4,2              ## @BIGCHAR_WIDTH
	.comm	_BIGCHAR_HEIGHT,4,2             ## @BIGCHAR_HEIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MenuField_Init                 ; -- Begin function MenuField_Init
	.p2align	2
_MenuField_Init:                        ; @MenuField_Init
	.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	x19, x0
	add	x0, x0, #64
	bl	_MField_Clear
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _QMF_SMALLFONT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QMF_SMALLFONT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _BIGCHAR_HEIGHT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BIGCHAR_HEIGHT@GOTPAGEOFF]
	ands	w22, w9, w8
Lloh5:
	ldr	w21, [x10]
Lloh6:
	adrp	x8, _SMALLCHAR_HEIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMALLCHAR_HEIGHT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _BIGCHAR_WIDTH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BIGCHAR_WIDTH@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
Lloh11:
	adrp	x8, _SMALLCHAR_WIDTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SMALLCHAR_WIDTH@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_strlen
	madd	w8, w20, w0, w20
	sxtw	x8, w8
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
	cmp	w22, #0
	csel	w9, w21, w23, eq
	ldr	x10, [x19, #24]
	sub	x8, x10, x8
	str	x8, [x19, #48]
	ldr	x8, [x19, #8]
	sxtw	x11, w20
	add	x10, x10, x11
	ldrsw	x12, [x19, #64]
	madd	x10, x12, x11, x10
	stp	x10, x8, [x19, #32]
	add	x8, x8, w9, sxtw
	str	x8, [x19, #16]
	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
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	_BIGCHAR_WIDTH,4,2              ; @BIGCHAR_WIDTH
	.comm	_BIGCHAR_HEIGHT,4,2             ; @BIGCHAR_HEIGHT
.subsections_via_symbols
