	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MField_Draw                    ## -- Begin function MField_Draw
	.p2align	4, 0x90
_MField_Draw:                           ## @MField_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_STRING_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%rbx), %r12d
	movq	8(%rbx), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	xorl	%r13d, %r13d
	cmpl	%r12d, %eax
	jl	LBB0_3
## %bb.1:
	movl	16(%rbx), %r13d
	leal	(%r12,%r13), %eax
	cmpl	%ecx, %eax
	jle	LBB0_3
## %bb.2:
	movl	%ecx, %eax
	subl	%r12d, %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	cmovgl	%eax, %r13d
	movl	%r13d, 16(%rbx)
LBB0_3:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leal	(%r12,%r13), %eax
	movl	%ecx, %ebx
	subl	%r13d, %ebx
	cmpl	%ecx, %eax
	cmovlel	%r12d, %ebx
	movq	_MAX_STRING_CHARS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_trap_Error
LBB0_5:
	movslq	%r13d, %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	movb	$0, (%r15,%rax)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	movl	%r14d, %ecx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_UI_DrawString
	movq	_UI_PULSE@GOTPCREL(%rip), %rbx
	testl	%r14d, (%rbx)
	je	LBB0_17
## %bb.6:
	xorl	%eax, %eax
	callq	_trap_Key_GetOverstrikeMode
	cmpq	$1, %rax
	movl	$11, %edx
	sbbl	$0, %edx
	movl	(%rbx), %r12d
	notl	%r12d
	andl	%r14d, %r12d
	movq	_UI_BLINK@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_UI_SMALLFONT@GOTPCREL(%rip), %rcx
	movq	_UI_GIANTFONT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_7
## %bb.8:
	movq	_BIGCHAR_WIDTH@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_GIANTCHAR_WIDTH@GOTPCREL(%rip), %rax
LBB0_9:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	testl	%r12d, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_SMALLCHAR_WIDTH@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
	movq	_UI_CENTER@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movl	%edx, %r15d
	callq	_strlen
	movl	%r15d, %edx
	imull	%ebx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	subl	%ecx, %esi
	movq	_UI_CENTER@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_13:
	movq	_UI_RIGHT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_14
## %bb.15:
	movq	%r15, %rdi
	movl	%edx, %r15d
	callq	_strlen
	movq	_UI_CENTER@GOTPCREL(%rip), %rcx
	movl	%r15d, %edx
	imull	%ebx, %eax
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	subl	%eax, %esi
	jmp	LBB0_16
LBB0_14:
	movl	-52(%rbp), %esi                 ## 4-byte Reload
LBB0_16:
	movl	20(%r14), %edi
	subl	%r13d, %edi
	imull	%ebx, %edi
	addl	%esi, %edi
	movq	_UI_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %r12d
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_UI_DrawChar
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_STRING_CHARS,4,2           ## @MAX_STRING_CHARS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"drawLen >= MAX_STRING_CHARS"

	.comm	_UI_PULSE,4,2                   ## @UI_PULSE
	.comm	_UI_BLINK,4,2                   ## @UI_BLINK
	.comm	_UI_SMALLFONT,4,2               ## @UI_SMALLFONT
	.comm	_SMALLCHAR_WIDTH,4,2            ## @SMALLCHAR_WIDTH
	.comm	_UI_GIANTFONT,4,2               ## @UI_GIANTFONT
	.comm	_GIANTCHAR_WIDTH,4,2            ## @GIANTCHAR_WIDTH
	.comm	_BIGCHAR_WIDTH,4,2              ## @BIGCHAR_WIDTH
	.comm	_UI_CENTER,4,2                  ## @UI_CENTER
	.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	_MField_Draw                    ; -- Begin function MField_Draw
	.p2align	2
_MField_Draw:                           ; @MField_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
	sub	sp, sp, #16
	mov	x19, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _MAX_STRING_CHARS@GOTPAGE
Lloh4:
	ldr	x27, [x27, _MAX_STRING_CHARS@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	w25, [x0]
	ldr	x0, [x0, #8]
	bl	_strlen
	add	w8, w0, #1
	cmp	w0, w25
	b.ge	LBB0_2
; %bb.1:
	mov	w26, #0
	b	LBB0_4
LBB0_2:
	ldr	w26, [x22, #16]
	add	w9, w26, w25
	cmp	w9, w8
	b.le	LBB0_4
; %bb.3:
	sub	w9, w8, w25
	cmp	w9, #0
	csel	w26, w9, wzr, gt
	str	w26, [x22, #16]
LBB0_4:
	sub	w9, w8, w26
	add	w10, w26, w25
	cmp	w10, w8
	csel	w25, w9, w25, gt
	ldr	w8, [x27]
	cmp	w25, w8
	b.lt	LBB0_6
; %bb.5:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Error
LBB0_6:
	ldr	x8, [x22, #8]
	add	x1, x8, w26, sxtw
	mov	x0, x23
	mov	x2, x25
	bl	_memcpy
	strb	wzr, [x23, w25, sxtw]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x24
	mov	x4, x19
	bl	_UI_DrawString
Lloh9:
	adrp	x27, _UI_PULSE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _UI_PULSE@GOTPAGEOFF]
	ldr	w8, [x27]
	tst	w8, w24
	b.eq	LBB0_12
; %bb.7:
	bl	_trap_Key_GetOverstrikeMode
	cmp	x0, #0
	mov	w8, #10
	cinc	w25, w8, ne
	ldr	w8, [x27]
	bic	w8, w24, w8
Lloh11:
	adrp	x9, _UI_BLINK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _UI_BLINK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w24, w8, w9
Lloh14:
	adrp	x8, _UI_SMALLFONT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UI_SMALLFONT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _UI_GIANTFONT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _UI_GIANTFONT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _BIGCHAR_WIDTH@GOTPAGE
Lloh21:
	ldr	x10, [x10, _BIGCHAR_WIDTH@GOTPAGEOFF]
Lloh22:
	adrp	x11, _GIANTCHAR_WIDTH@GOTPAGE
Lloh23:
	ldr	x11, [x11, _GIANTCHAR_WIDTH@GOTPAGEOFF]
	tst	w9, w24
	csel	x9, x10, x11, eq
Lloh24:
	adrp	x10, _SMALLCHAR_WIDTH@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SMALLCHAR_WIDTH@GOTPAGEOFF]
	tst	w24, w8
	csel	x8, x9, x10, eq
	ldr	w27, [x8]
Lloh26:
	adrp	x28, _UI_CENTER@GOTPAGE
Lloh27:
	ldr	x28, [x28, _UI_CENTER@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh28:
	adrp	x9, _UI_RIGHT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _UI_RIGHT@GOTPAGEOFF]
	tst	w8, w24
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x23
	mov	x23, x9
	bl	_strlen
	mov	x9, x23
	mul	w8, w0, w27
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w21, w21, w8, asr #1
	b	LBB0_11
LBB0_9:
	ldr	w8, [x9]
	tst	w8, w24
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x23
	mov	x23, x9
	bl	_strlen
	mov	x9, x23
	msub	w21, w0, w27, w21
LBB0_11:
	ldr	w8, [x22, #20]
	sub	w8, w8, w26
	madd	w0, w8, w27, w21
	ldr	w8, [x28]
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w3, w24, w8
	mov	x1, x20
	mov	x2, x25
	mov	x4, x19
	bl	_UI_DrawChar
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #80
	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
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_STRING_CHARS,4,2           ; @MAX_STRING_CHARS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"drawLen >= MAX_STRING_CHARS"

	.comm	_UI_PULSE,4,2                   ; @UI_PULSE
	.comm	_UI_BLINK,4,2                   ; @UI_BLINK
	.comm	_UI_SMALLFONT,4,2               ; @UI_SMALLFONT
	.comm	_SMALLCHAR_WIDTH,4,2            ; @SMALLCHAR_WIDTH
	.comm	_UI_GIANTFONT,4,2               ; @UI_GIANTFONT
	.comm	_GIANTCHAR_WIDTH,4,2            ; @GIANTCHAR_WIDTH
	.comm	_BIGCHAR_WIDTH,4,2              ; @BIGCHAR_WIDTH
	.comm	_UI_CENTER,4,2                  ; @UI_CENTER
	.comm	_UI_RIGHT,4,2                   ; @UI_RIGHT
.subsections_via_symbols
