	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiDrawBox                     ## -- Begin function TuiDrawBox
	.p2align	4, 0x90
_TuiDrawBox:                            ## @TuiDrawBox
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rdi, %r15
	movb	32(%rbp), %r10b
	movq	16(%rbp), %rcx
	movq	_VERT@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	movq	_HORZ@GOTPCREL(%rip), %rax
	movl	%r9d, -80(%rbp)                 ## 4-byte Spill
	cmpb	%r9b, (%rax)
	jne	LBB0_2
## %bb.1:
	cmpb	%r8b, %dl
	movq	_VD_UL@GOTPCREL(%rip), %rdx
	cmoveq	_UL@GOTPCREL(%rip), %rdx
	movq	_VD_UR@GOTPCREL(%rip), %rax
	cmoveq	_UR@GOTPCREL(%rip), %rax
	movq	_VD_LL@GOTPCREL(%rip), %rdi
	cmoveq	_LL@GOTPCREL(%rip), %rdi
	movq	_VD_LR@GOTPCREL(%rip), %rbx
	cmoveq	_LR@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_2:
	cmpb	%r8b, %dl
	movq	_D_UL@GOTPCREL(%rip), %rdx
	cmoveq	_HD_UL@GOTPCREL(%rip), %rdx
	movq	_D_UR@GOTPCREL(%rip), %rax
	cmoveq	_HD_UR@GOTPCREL(%rip), %rax
	movq	_D_LL@GOTPCREL(%rip), %rdi
	cmoveq	_HD_LL@GOTPCREL(%rip), %rdi
	movq	_D_LR@GOTPCREL(%rip), %rbx
	cmoveq	_HD_LR@GOTPCREL(%rip), %rbx
LBB0_3:
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movb	(%rbx), %bl
	movb	%bl, -72(%rbp)                  ## 1-byte Spill
	movb	(%rdi), %bl
	movb	%bl, -64(%rbp)                  ## 1-byte Spill
	movb	(%rax), %al
	movb	%al, -56(%rbp)                  ## 1-byte Spill
	movb	(%rdx), %bl
	movsbl	%r10b, %r13d
	testq	%rcx, %rcx
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movl	$32, %r8d
	movq	%rsi, %r15
	movl	%r13d, %r9d
	callq	_TuiFillArea
	movq	%r15, %rsi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
LBB0_5:
	movsbl	%bl, %r8d
	movq	%r15, %rdi
	movq	%r15, %rdx
	movq	%rsi, %rcx
	movq	%rsi, %rbx
	movl	%r13d, %r9d
	callq	_TuiFillArea
	movsbl	-56(%rbp), %r8d                 ## 1-byte Folded Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movl	%r13d, %r9d
	callq	_TuiFillArea
	movsbl	-64(%rbp), %r8d                 ## 1-byte Folded Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movl	%r13d, %r9d
	callq	_TuiFillArea
	movsbl	-72(%rbp), %r8d                 ## 1-byte Folded Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movl	%r13d, %r9d
	callq	_TuiFillArea
	leaq	1(%rbx), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	leaq	-1(%r12), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movsbl	-44(%rbp), %r8d                 ## 1-byte Folded Reload
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%r15, %rdx
	movl	%r13d, %r9d
	callq	_TuiFillArea
	leaq	1(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	-1(%r14), %r15
	movsbl	-80(%rbp), %r8d                 ## 1-byte Folded Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	movl	%r8d, %ebx
	movl	%r13d, %r9d
	callq	_TuiFillArea
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r13d, %r9d
	callq	_TuiFillArea
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movl	%ebx, %r8d
	movl	%r13d, %r9d
	callq	_TuiFillArea
	cmpq	$0, 24(%rbp)
	je	LBB0_7
## %bb.6:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_TuiDrawShadow
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HORZ,1,0                       ## @HORZ
	.comm	_VERT,1,0                       ## @VERT
	.comm	_UL,1,0                         ## @UL
	.comm	_UR,1,0                         ## @UR
	.comm	_LL,1,0                         ## @LL
	.comm	_LR,1,0                         ## @LR
	.comm	_VD_UL,1,0                      ## @VD_UL
	.comm	_VD_UR,1,0                      ## @VD_UR
	.comm	_VD_LL,1,0                      ## @VD_LL
	.comm	_VD_LR,1,0                      ## @VD_LR
	.comm	_HD_UL,1,0                      ## @HD_UL
	.comm	_HD_UR,1,0                      ## @HD_UR
	.comm	_HD_LL,1,0                      ## @HD_LL
	.comm	_HD_LR,1,0                      ## @HD_LR
	.comm	_D_UL,1,0                       ## @D_UL
	.comm	_D_UR,1,0                       ## @D_UR
	.comm	_D_LL,1,0                       ## @D_LL
	.comm	_D_LR,1,0                       ## @D_LR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiDrawBox                     ; -- Begin function TuiDrawBox
	.p2align	2
_TuiDrawBox:                            ; @TuiDrawBox
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	stp	x7, x3, [sp, #32]               ; 16-byte Folded Spill
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	ldrsb	w25, [x29, #16]
Lloh0:
	adrp	x8, _HORZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HORZ@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh2:
	adrp	x9, _VERT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VERT@GOTPAGEOFF]
Lloh4:
	adrp	x10, _D_UL@GOTPAGE
Lloh5:
	ldr	x10, [x10, _D_UL@GOTPAGEOFF]
Lloh6:
	adrp	x11, _HD_UL@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HD_UL@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w4, uxtb
Lloh8:
	adrp	x12, _D_UR@GOTPAGE
Lloh9:
	ldr	x12, [x12, _D_UR@GOTPAGEOFF]
Lloh10:
	adrp	x13, _HD_UR@GOTPAGE
Lloh11:
	ldr	x13, [x13, _HD_UR@GOTPAGEOFF]
	csel	x10, x11, x10, eq
	csel	x11, x13, x12, eq
Lloh12:
	adrp	x12, _D_LL@GOTPAGE
Lloh13:
	ldr	x12, [x12, _D_LL@GOTPAGEOFF]
Lloh14:
	adrp	x13, _HD_LL@GOTPAGE
Lloh15:
	ldr	x13, [x13, _HD_LL@GOTPAGEOFF]
	csel	x12, x13, x12, eq
Lloh16:
	adrp	x13, _D_LR@GOTPAGE
Lloh17:
	ldr	x13, [x13, _D_LR@GOTPAGEOFF]
Lloh18:
	adrp	x14, _HD_LR@GOTPAGE
Lloh19:
	ldr	x14, [x14, _HD_LR@GOTPAGEOFF]
	csel	x13, x14, x13, eq
Lloh20:
	adrp	x14, _VD_UL@GOTPAGE
Lloh21:
	ldr	x14, [x14, _VD_UL@GOTPAGEOFF]
Lloh22:
	adrp	x15, _UL@GOTPAGE
Lloh23:
	ldr	x15, [x15, _UL@GOTPAGEOFF]
	mov	x19, x4
	cmp	w9, w4, uxtb
	csel	x9, x15, x14, eq
Lloh24:
	adrp	x14, _VD_UR@GOTPAGE
Lloh25:
	ldr	x14, [x14, _VD_UR@GOTPAGEOFF]
Lloh26:
	adrp	x15, _UR@GOTPAGE
Lloh27:
	ldr	x15, [x15, _UR@GOTPAGEOFF]
Lloh28:
	adrp	x16, _VD_LL@GOTPAGE
Lloh29:
	ldr	x16, [x16, _VD_LL@GOTPAGEOFF]
	csel	x14, x15, x14, eq
Lloh30:
	adrp	x15, _LL@GOTPAGE
Lloh31:
	ldr	x15, [x15, _LL@GOTPAGEOFF]
	csel	x15, x15, x16, eq
Lloh32:
	adrp	x16, _VD_LR@GOTPAGE
Lloh33:
	ldr	x16, [x16, _VD_LR@GOTPAGEOFF]
Lloh34:
	adrp	x17, _LR@GOTPAGE
Lloh35:
	ldr	x17, [x17, _LR@GOTPAGEOFF]
	csel	x16, x17, x16, eq
	mov	x26, x5
	cmp	w8, w5, uxtb
	csel	x8, x10, x9, ne
	csel	x9, x11, x14, ne
	csel	x10, x12, x15, ne
	csel	x11, x13, x16, ne
	ldrb	w21, [x11]
	ldrb	w24, [x10]
	ldrb	w27, [x9]
	ldrb	w28, [x8]
	cbz	x6, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	ldr	x3, [sp, #40]                   ; 8-byte Folded Reload
	mov	w4, #32
	mov	x5, x25
	bl	_TuiFillArea
LBB0_2:
	sxtb	w4, w28
	mov	x0, x23
	mov	x1, x22
	mov	x2, x23
	mov	x3, x22
	mov	x5, x25
	bl	_TuiFillArea
	sxtb	w4, w27
	mov	x0, x20
	mov	x1, x22
	mov	x2, x20
	mov	x3, x22
	mov	x5, x25
	bl	_TuiFillArea
	sxtb	w4, w24
	mov	x0, x23
	mov	x27, x20
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	mov	x1, x20
	mov	x2, x23
	mov	x3, x20
	mov	x5, x25
	bl	_TuiFillArea
	sxtb	w4, w21
	mov	x0, x27
	mov	x1, x20
	mov	x2, x27
	mov	x3, x20
	mov	x5, x25
	bl	_TuiFillArea
	mov	x21, x23
	add	x23, x22, #1
	sub	x28, x20, #1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x21
	mov	x3, x28
	mov	x4, x19
	mov	x5, x25
	bl	_TuiFillArea
	stp	x21, x22, [sp, #8]              ; 16-byte Folded Spill
	add	x21, x21, #1
	sub	x24, x27, #1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	mov	x3, x22
	mov	x4, x26
	mov	x5, x25
	bl	_TuiFillArea
	mov	x0, x27
	mov	x1, x23
	str	x27, [sp, #24]                  ; 8-byte Folded Spill
	mov	x2, x27
	mov	x3, x28
	mov	x4, x19
	mov	x5, x25
	bl	_TuiFillArea
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x20
	mov	x4, x26
	mov	x5, x25
	bl	_TuiFillArea
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_4
; %bb.3:
	ldp	x0, x1, [sp, #8]                ; 16-byte Folded Reload
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x3, [sp, #40]                   ; 8-byte Folded Reload
	bl	_TuiDrawShadow
LBB0_4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HORZ,1,0                       ; @HORZ
	.comm	_VERT,1,0                       ; @VERT
	.comm	_UL,1,0                         ; @UL
	.comm	_UR,1,0                         ; @UR
	.comm	_LL,1,0                         ; @LL
	.comm	_LR,1,0                         ; @LR
	.comm	_VD_UL,1,0                      ; @VD_UL
	.comm	_VD_UR,1,0                      ; @VD_UR
	.comm	_VD_LL,1,0                      ; @VD_LL
	.comm	_VD_LR,1,0                      ; @VD_LR
	.comm	_HD_UL,1,0                      ; @HD_UL
	.comm	_HD_UR,1,0                      ; @HD_UR
	.comm	_HD_LL,1,0                      ; @HD_LL
	.comm	_HD_LR,1,0                      ; @HD_LR
	.comm	_D_UL,1,0                       ; @D_UL
	.comm	_D_UR,1,0                       ; @D_UR
	.comm	_D_LL,1,0                       ; @D_LL
	.comm	_D_LR,1,0                       ; @D_LR
.subsections_via_symbols
