	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function TuiDrawMenuBox
LCPI0_0:
	.space	16,32
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TuiDrawMenuBox
	.p2align	4, 0x90
_TuiDrawMenuBox:                        ## @TuiDrawMenuBox
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_UiMenuBox@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	24(%r13), %rax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movl	(%r13), %r15d
	movl	4(%r13), %eax
	movl	%eax, -212(%rbp)                ## 4-byte Spill
	movq	40(%r13), %rax
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	movq	_D_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_D_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -240(%rbp)                ## 8-byte Spill
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_UiMenuFgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UiMenuBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movl	%r15d, %edi
	movq	-232(%rbp), %rsi                ## 8-byte Reload
	movl	-212(%rbp), %edx                ## 4-byte Reload
	movq	-224(%rbp), %rcx                ## 8-byte Reload
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	pushq	%rax
	pushq	%rbx
	pushq	-240(%rbp)                      ## 8-byte Folded Reload
	callq	_UiDrawBox
	addq	$32, %rsp
LBB0_2:
	cmpq	$0, 8(%r13)
	js	LBB0_3
## %bb.6:
	movq	_UiTimeText@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	-208(%rbp), %r14
	movq	%r14, %rdi
	callq	_strcpy
	movq	%r14, %rdi
	callq	_strlen
	addl	$-2, %eax
	movslq	%eax, %r15
	movb	$0, -208(%rbp,%r15)
	leaq	-128(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	8(%r13), %rdi
	movq	%r14, %rsi
	movl	$10, %edx
	callq	__itoa
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_strcat
	addq	(%rbx), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strcat
	jmp	LBB0_4
LBB0_3:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]
	movups	%xmm0, -65(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movb	$0, -49(%rbp)
LBB0_4:
	movq	_UiCenterMenu@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.7:
	movl	4(%r13), %r14d
	leaq	-128(%rbp), %r15
	movq	%r15, %rdi
	callq	_strlen
	notl	%eax
	addl	%eax, %r14d
	movq	40(%r13), %r12
	movq	_UiMenuFgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UiMenuBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	jmp	LBB0_8
LBB0_5:
	movq	40(%r13), %r14
	addq	$4, %r14
	movq	_UiMenuFgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UiMenuBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	leaq	-128(%rbp), %rdx
	xorl	%edi, %edi
	movq	%r14, %rsi
LBB0_8:
	movl	%eax, %ecx
	callq	_UiDrawText
	movl	16(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.9:
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r13), %r12d
	incq	%r14
	movq	24(%r13), %rbx
	addq	%r14, %rbx
	movq	_UiMenuFgColor@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_UiMenuBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	movl	%r12d, %edi
	movq	%rbx, %rsi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_UiDrawText
	movl	4(%r13), %r12d
	movq	24(%r13), %rbx
	addq	%r14, %rbx
	movl	(%r15), %edi
	movq	_UiMenuBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	movl	%r12d, %edi
	movq	%rbx, %rsi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %ecx
	callq	_UiDrawText
	movl	16(%r13), %eax
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rcx
	cmpq	$0, (%rcx,%r14,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	jmp	LBB0_13
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UiMenuBox,8,3                  ## @UiMenuBox
	.comm	_D_VERT,4,2                     ## @D_VERT
	.comm	_D_HORZ,4,2                     ## @D_HORZ
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_UiMenuFgColor,4,2              ## @UiMenuFgColor
	.comm	_UiMenuBgColor,4,2              ## @UiMenuBgColor
	.comm	_UiTimeText,8,3                 ## @UiTimeText
	.comm	_UiCenterMenu,8,3               ## @UiCenterMenu
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\307"

L_.str.1:                               ## @.str.1
	.asciz	"\266"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiDrawMenuBox                 ; -- Begin function TuiDrawMenuBox
	.p2align	2
_TuiDrawMenuBox:                        ; @TuiDrawMenuBox
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _UiMenuBox@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UiMenuBox@GOTPAGEOFF]
	stur	x8, [x29, #-96]
Lloh5:
	ldr	x8, [x9]
Lloh6:
	adrp	x28, _UiMenuFgColor@GOTPAGE
Lloh7:
	ldr	x28, [x28, _UiMenuFgColor@GOTPAGEOFF]
Lloh8:
	adrp	x24, _UiMenuBgColor@GOTPAGE
Lloh9:
	ldr	x24, [x24, _UiMenuBgColor@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldp	w21, w22, [x19]
	ldr	x23, [x19, #40]
Lloh10:
	adrp	x8, _D_VERT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _D_VERT@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
Lloh13:
	adrp	x8, _D_HORZ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _D_HORZ@GOTPAGEOFF]
Lloh15:
	ldr	w25, [x8]
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh18:
	ldr	w26, [x8]
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w27, [x8]
	ldr	w0, [x28]
	ldr	w1, [x24]
	bl	_ATTR
	str	w0, [sp]
	mov	x0, x21
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x22
	mov	x3, x23
	mov	x4, x20
	mov	x5, x25
	mov	x6, x26
	mov	x7, x27
	bl	_UiDrawBox
LBB0_2:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_4
; %bb.3:
Lloh22:
	adrp	x20, _UiTimeText@GOTPAGE
Lloh23:
	ldr	x20, [x20, _UiTimeText@GOTPAGEOFF]
	ldr	x1, [x20]
	add	x21, sp, #16
	add	x0, sp, #16
	bl	_strcpy
	add	x0, sp, #16
	bl	_strlen
	sub	w8, w0, #2
	sxtw	x22, w8
	strb	wzr, [x21, x22]
	add	x0, sp, #96
	add	x1, sp, #16
	bl	_strcpy
	ldr	x0, [x19, #8]
	add	x1, sp, #16
	mov	w2, #10
	bl	__itoa
	add	x0, sp, #96
	add	x1, sp, #16
	bl	_strcat
	ldr	x8, [x20]
	add	x1, x8, x22
	add	x0, sp, #96
	bl	_strcat
	b	LBB0_5
LBB0_4:
	movi.16b	v0, #32
	stur	q0, [sp, #159]
	stp	q0, q0, [sp, #128]
	stp	q0, q0, [sp, #96]
	strb	wzr, [sp, #175]
LBB0_5:
Lloh24:
	adrp	x8, _UiCenterMenu@GOTPAGE
Lloh25:
	ldr	x8, [x8, _UiCenterMenu@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w20, [x19, #4]
	add	x0, sp, #96
	bl	_strlen
	mvn	w8, w0
	add	w20, w20, w8
	ldr	x21, [x19, #40]
	ldr	w0, [x28]
	ldr	w1, [x24]
	bl	_ATTR
	mov	x3, x0
	add	x2, sp, #96
	mov	x0, x20
	mov	x1, x21
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19, #40]
	add	x20, x8, #4
	ldr	w0, [x28]
	ldr	w1, [x24]
	bl	_ATTR
	mov	x3, x0
	add	x2, sp, #96
	mov	w0, #0
	mov	x1, x20
LBB0_8:
	bl	_UiDrawText
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x25, #0
Lloh27:
	adrp	x20, l_.str@PAGE
Lloh28:
	add	x20, x20, l_.str@PAGEOFF
Lloh29:
	adrp	x21, l_.str.1@PAGE
Lloh30:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w22, [x19]
	ldr	x8, [x19, #24]
	add	x25, x25, #1
	add	x23, x25, x8
	ldr	w0, [x28]
	ldr	w1, [x24]
	bl	_ATTR
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	bl	_UiDrawText
	ldr	w22, [x19, #4]
	ldr	x8, [x19, #24]
	add	x23, x25, x8
	ldr	w0, [x28]
	ldr	w1, [x24]
	bl	_ATTR
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_UiDrawText
	ldr	w8, [x19, #16]
	cmp	x25, w8, sxtw
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	ldr	x9, [x9, x25, lsl #3]
	cbz	x9, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.lt	LBB0_11
LBB0_13:
	ldur	x8, [x29, #-96]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_UiMenuBox,8,3                  ; @UiMenuBox
	.comm	_D_VERT,4,2                     ; @D_VERT
	.comm	_D_HORZ,4,2                     ; @D_HORZ
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_UiMenuFgColor,4,2              ; @UiMenuFgColor
	.comm	_UiMenuBgColor,4,2              ; @UiMenuBgColor
	.comm	_UiTimeText,8,3                 ; @UiTimeText
	.comm	_UiCenterMenu,8,3               ; @UiCenterMenu
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\307"

l_.str.1:                               ; @.str.1
	.asciz	"\266"

.subsections_via_symbols
