	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiSaveScreen                  ## -- Begin function TuiSaveScreen
	.p2align	4, 0x90
_TuiSaveScreen:                         ## @TuiSaveScreen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_UiScreenWidth@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	movq	_UiScreenHeight@GOTPCREL(%rip), %rcx
	imull	(%rcx), %edx
	addl	%edx, %edx
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	movq	_TextVideoBuffer@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %eax
	movl	%eax, (%rdi,%rsi,4)
	movl	(%r8), %eax
	imull	(%rcx), %eax
	incq	%rsi
	addl	%eax, %eax
	cltq
	cmpq	%rax, %rsi
	jl	LBB0_2
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TextVideoBuffer,4,2            ## @TextVideoBuffer
	.comm	_UiScreenWidth,4,2              ## @UiScreenWidth
	.comm	_UiScreenHeight,4,2             ## @UiScreenHeight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiSaveScreen                  ; -- Begin function TuiSaveScreen
	.p2align	2
_TuiSaveScreen:                         ; @TuiSaveScreen
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _UiScreenWidth@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UiScreenWidth@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh2:
	adrp	x9, _UiScreenHeight@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UiScreenHeight@GOTPAGEOFF]
	ldr	w11, [x9]
	mul	w10, w10, w11
	lsl	w10, w10, #1
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x10, #0
Lloh4:
	adrp	x11, _TextVideoBuffer@GOTPAGE
Lloh5:
	ldr	x11, [x11, _TextVideoBuffer@GOTPAGEOFF]
Lloh6:
	ldrsw	x11, [x11]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x10, #2
	ldr	w13, [x11, x12]
	str	w13, [x0, x12]
	add	x10, x10, #1
	ldr	w12, [x8]
	ldr	w13, [x9]
	mul	w12, w12, w13
	lsl	w12, w12, #1
	cmp	x10, w12, sxtw
	b.lt	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TextVideoBuffer,4,2            ; @TextVideoBuffer
	.comm	_UiScreenWidth,4,2              ; @UiScreenWidth
	.comm	_UiScreenHeight,4,2             ; @UiScreenHeight
.subsections_via_symbols
