	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiDrawShadow                  ## -- Begin function TuiDrawShadow
	.p2align	4, 0x90
_TuiDrawShadow:                         ## @TuiDrawShadow
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
                                        ## kill: def $edi killed $edi def $rdi
	movq	_TextVideoBuffer@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movq	_UiScreenHeight@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	-1(%rbx), %eax
	movq	%rcx, %rsi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %eax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	cmpl	$34, %ebx
	setl	%al
	leal	(%rax,%rdi), %ecx
	incl	%ecx
	cmpl	-64(%rbp), %ecx                 ## 4-byte Folded Reload
	jg	LBB0_4
## %bb.2:
	incl	%eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rdx,%rdx), %r13d
	addl	$2, %r13d
	addl	%edi, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, %r14d
	notl	%r14d
	addl	%eax, %r14d
	leal	(%rcx,%rcx), %ebx
	incl	%ebx
	movq	_UiScreenWidth@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_COLOR_GRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_COLOR_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%r12), %ecx
	imull	%r13d, %ecx
	addl	%ebx, %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$2, %ebx
	incl	%r14d
	jne	LBB0_3
LBB0_4:
	movq	_UiScreenWidth@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	decl	%eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpl	%r14d, %eax
	jle	LBB0_8
## %bb.5:
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	jge	LBB0_8
## %bb.6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	negl	%ebx
	leal	1(%r15), %r13d
	movq	_COLOR_BLACK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_COLOR_GRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_ATTR
	movq	_UiScreenWidth@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rsi), %ecx
	imull	%r13d, %ecx
	addl	%r14d, %ecx
	addl	%ecx, %ecx
	addl	$3, %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%rdx,%rcx,4)
	leal	(%rbx,%r13), %eax
	incl	%eax
	movl	%r13d, %ecx
	incl	%ecx
	movl	%ecx, %r13d
	cmpl	$1, %eax
	jne	LBB0_7
LBB0_8:
	movq	_UiScreenHeight@GOTPCREL(%rip), %rax
	cmpl	$33, (%rax)
	movq	%r14, %r13
	jg	LBB0_13
## %bb.9:
	leal	1(%r13), %eax
	movl	(%rsi), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_13
## %bb.10:
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	jge	LBB0_13
## %bb.11:
	movq	%rdx, %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	negl	%ebx
	incl	%r15d
	movq	_COLOR_BLACK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_COLOR_GRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_ATTR
	movq	_UiScreenWidth@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	imull	%r15d, %ecx
	addl	%r13d, %ecx
	addl	%ecx, %ecx
	addl	$5, %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%r14,%rcx,4)
	leal	(%rbx,%r15), %eax
	incl	%eax
	movl	%r15d, %ecx
	incl	%ecx
	movl	%ecx, %r15d
	cmpl	$1, %eax
	jne	LBB0_12
LBB0_13:
	movl	(%rsi), %eax
	decl	%eax
	cmpl	%r13d, %eax
	jle	LBB0_16
## %bb.14:
	movq	_UiScreenHeight@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %ecx
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jle	LBB0_17
## %bb.15:
	movq	_COLOR_GRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_COLOR_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, %ecx
	addl	$2, %ecx
	movq	_UiScreenWidth@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	leal	(%rcx,%r13,2), %ecx
	addl	$3, %ecx
	movslq	%ecx, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
LBB0_16:
	movq	_UiScreenHeight@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	cmpl	$33, %eax
	jg	LBB0_21
## %bb.18:
	leal	1(%r13), %ecx
	movq	_UiScreenWidth@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	decl	%edx
	cmpl	%edx, %ecx
	jge	LBB0_21
## %bb.19:
	decl	%eax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_21
## %bb.20:
	movq	_COLOR_GRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_COLOR_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, %ecx
	addl	$2, %ecx
	movq	_UiScreenWidth@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	leal	(%rcx,%r13,2), %ecx
	addl	$5, %ecx
	movslq	%ecx, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TextVideoBuffer,4,2            ## @TextVideoBuffer
	.comm	_UiScreenHeight,4,2             ## @UiScreenHeight
	.comm	_COLOR_GRAY,4,2                 ## @COLOR_GRAY
	.comm	_COLOR_BLACK,4,2                ## @COLOR_BLACK
	.comm	_UiScreenWidth,4,2              ## @UiScreenWidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiDrawShadow                  ; -- Begin function TuiDrawShadow
	.p2align	2
_TuiDrawShadow:                         ; @TuiDrawShadow
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _TextVideoBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TextVideoBuffer@GOTPAGEOFF]
Lloh2:
	adrp	x9, _UiScreenHeight@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UiScreenHeight@GOTPAGEOFF]
Lloh4:
	ldrsw	x22, [x8]
Lloh5:
	ldr	w8, [x9]
	sub	w9, w8, #1
Lloh6:
	adrp	x23, _UiScreenWidth@GOTPAGE
Lloh7:
	ldr	x23, [x23, _UiScreenWidth@GOTPAGEOFF]
	cmp	w9, w3
	b.le	LBB0_4
; %bb.1:
	cmp	w8, #34
	mov	w25, #1
	cinc	w8, w25, lt
	add	w8, w8, w0
	cmp	w8, w19
	b.gt	LBB0_4
; %bb.2:
	lsl	w9, w20, #1
	add	w26, w9, #2
	mvn	w9, w19
	add	w27, w9, w8
	bfi	w25, w8, #1, #31
Lloh8:
	adrp	x28, _COLOR_GRAY@GOTPAGE
Lloh9:
	ldr	x28, [x28, _COLOR_GRAY@GOTPAGEOFF]
Lloh10:
	adrp	x24, _COLOR_BLACK@GOTPAGE
Lloh11:
	ldr	x24, [x24, _COLOR_BLACK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	ldr	w1, [x24]
	bl	_ATTR
	ldr	w8, [x23]
	madd	w8, w8, w26, w25
	str	w0, [x22, w8, sxtw #2]
	add	w25, w25, #2
	adds	w27, w27, #1
	b.lo	LBB0_3
LBB0_4:
	ldr	w8, [x23]
	sub	w8, w8, #1
	cmp	w8, w19
	ccmp	w21, w20, #0, gt
	b.ge	LBB0_7
; %bb.5:
Lloh12:
	adrp	x24, _COLOR_GRAY@GOTPAGE
Lloh13:
	ldr	x24, [x24, _COLOR_GRAY@GOTPAGEOFF]
Lloh14:
	adrp	x25, _COLOR_BLACK@GOTPAGE
Lloh15:
	ldr	x25, [x25, _COLOR_BLACK@GOTPAGEOFF]
	mov	x26, x21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w26, w26, #1
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_ATTR
	ldr	w8, [x23]
	madd	w8, w8, w26, w19
	lsl	w8, w8, #1
	add	w8, w8, #3
	str	w0, [x22, w8, sxtw #2]
	cmp	w20, w26
	b.ne	LBB0_6
LBB0_7:
Lloh16:
	adrp	x26, _UiScreenHeight@GOTPAGE
Lloh17:
	ldr	x26, [x26, _UiScreenHeight@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #33
	b.gt	LBB0_11
; %bb.8:
	add	w8, w19, #1
	ldr	w9, [x23]
	sub	w9, w9, #1
	cmp	w8, w9
	ccmp	w21, w20, #0, lt
	b.ge	LBB0_11
; %bb.9:
Lloh18:
	adrp	x24, _COLOR_GRAY@GOTPAGE
Lloh19:
	ldr	x24, [x24, _COLOR_GRAY@GOTPAGEOFF]
Lloh20:
	adrp	x25, _COLOR_BLACK@GOTPAGE
Lloh21:
	ldr	x25, [x25, _COLOR_BLACK@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #1
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_ATTR
	ldr	w8, [x23]
	madd	w8, w8, w21, w19
	lsl	w8, w8, #1
	add	w8, w8, #5
	str	w0, [x22, w8, sxtw #2]
	cmp	w20, w21
	b.ne	LBB0_10
LBB0_11:
	ldr	w8, [x23]
	sub	w8, w8, #1
	cmp	w8, w19
	b.le	LBB0_14
; %bb.12:
	ldr	w8, [x26]
	sub	w9, w8, #1
	cmp	w9, w20
	b.le	LBB0_15
; %bb.13:
Lloh22:
	adrp	x8, _COLOR_GRAY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _COLOR_GRAY@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _COLOR_BLACK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _COLOR_BLACK@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_ATTR
	lsl	w8, w20, #1
	add	w8, w8, #2
	ldr	w9, [x23]
	mul	w8, w9, w8
	add	w8, w8, w19, lsl #1
	add	w8, w8, #3
	str	w0, [x22, w8, sxtw #2]
LBB0_14:
	ldr	w8, [x26]
LBB0_15:
	cmp	w8, #33
	b.gt	LBB0_18
; %bb.16:
	add	w9, w19, #1
	ldr	w10, [x23]
	sub	w10, w10, #1
	sub	w8, w8, #1
	cmp	w9, w10
	ccmp	w8, w20, #4, lt
	b.le	LBB0_18
; %bb.17:
Lloh28:
	adrp	x8, _COLOR_GRAY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _COLOR_GRAY@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _COLOR_BLACK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _COLOR_BLACK@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_ATTR
	lsl	w8, w20, #1
	add	w8, w8, #2
	ldr	w9, [x23]
	mul	w8, w9, w8
	add	w8, w8, w19, lsl #1
	add	w8, w8, #5
	str	w0, [x22, w8, sxtw #2]
LBB0_18:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_TextVideoBuffer,4,2            ; @TextVideoBuffer
	.comm	_UiScreenHeight,4,2             ; @UiScreenHeight
	.comm	_COLOR_GRAY,4,2                 ; @COLOR_GRAY
	.comm	_COLOR_BLACK,4,2                ; @COLOR_BLACK
	.comm	_UiScreenWidth,4,2              ; @UiScreenWidth
.subsections_via_symbols
