	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function clear_screen
LCPI0_0:
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_clear_screen
	.p2align	4, 0x90
_clear_screen:                          ## @clear_screen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_COLS@GOTPCREL(%rip), %rax
	movq	_MAX_ROWS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_14
## %bb.1:
	movq	_VIDEO_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edx, %r9d
	cmpl	$16, %edx
	jb	LBB0_2
## %bb.3:
	movq	_WHITE_ON_BLACK@GOTPCREL(%rip), %r8
	leaq	1(%r8), %rdx
	cmpq	%rdx, %rax
	jae	LBB0_6
## %bb.4:
	leaq	(%rax,%r9,2), %rdx
	cmpq	_WHITE_ON_BLACK@GOTPCREL(%rip), %rdx
	jbe	LBB0_6
LBB0_2:
	xorl	%edx, %edx
LBB0_9:
	movq	%rdx, %rsi
	notq	%rsi
	testb	$1, %r9b
	je	LBB0_11
## %bb.10:
	movb	$32, (%rax,%rdx,2)
	movq	_WHITE_ON_BLACK@GOTPCREL(%rip), %rdi
	movb	(%rdi), %cl
	movb	%cl, 1(%rax,%rdx,2)
	orq	$1, %rdx
LBB0_11:
	addq	%r9, %rsi
	je	LBB0_14
## %bb.12:
	movq	_WHITE_ON_BLACK@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movb	$32, (%rax,%rdx,2)
	movzbl	(%rsi), %ecx
	movb	%cl, 1(%rax,%rdx,2)
	movb	$32, 2(%rax,%rdx,2)
	movzbl	(%rsi), %ecx
	movb	%cl, 3(%rax,%rdx,2)
	addq	$2, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_13
	jmp	LBB0_14
LBB0_6:
	movl	%r9d, %edx
	andl	$-16, %edx
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <32,32,32,32,32,32,32,32,u,u,u,u,u,u,u,u>
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r8), %esi
	movd	%esi, %xmm1
	punpcklbw	%xmm1, %xmm1            ## xmm1 = xmm1[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
	pshuflw	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0,4,5,6,7]
	movdqa	%xmm0, %xmm2
	punpcklbw	%xmm1, %xmm2            ## xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
	movdqu	%xmm2, (%rax,%rdi,2)
	movdqu	%xmm2, 16(%rax,%rdi,2)
	addq	$16, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_7
## %bb.8:
	cmpq	%r9, %rdx
	jne	LBB0_9
LBB0_14:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_get_offset
	movl	%eax, %edi
	popq	%rbp
	jmp	_set_cursor_offset              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_COLS,4,2                   ## @MAX_COLS
	.comm	_MAX_ROWS,4,2                   ## @MAX_ROWS
	.comm	_VIDEO_ADDRESS,8,3              ## @VIDEO_ADDRESS
	.comm	_WHITE_ON_BLACK,1,0             ## @WHITE_ON_BLACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clear_screen                   ; -- Begin function clear_screen
	.p2align	2
_clear_screen:                          ; @clear_screen
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _MAX_COLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_COLS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MAX_ROWS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_ROWS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w9, w9, w8
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
Lloh6:
	adrp	x8, _VIDEO_ADDRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIDEO_ADDRESS@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x8]
Lloh9:
	adrp	x8, _WHITE_ON_BLACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WHITE_ON_BLACK@GOTPAGEOFF]
	cmp	w9, #8
	b.lo	LBB0_5
; %bb.2:
	add	x11, x10, x9, lsl #1
	add	x12, x8, #1
	cmp	x10, x12
	ccmp	x11, x8, #0, lo
	b.hi	LBB0_5
; %bb.3:
	cmp	w9, #64
	b.hs	LBB0_9
; %bb.4:
	mov	x11, #0
	b	LBB0_13
LBB0_5:
	mov	x11, #0
LBB0_6:
	add	x10, x10, x11, lsl #1
	add	x10, x10, #1
	sub	x9, x9, x11
	mov	w11, #32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sturb	w11, [x10, #-1]
	ldrb	w12, [x8]
	strb	w12, [x10], #2
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #0
	mov	w1, #0
	bl	_get_offset
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_cursor_offset
LBB0_9:
	and	x11, x9, #0xffffffc0
	add	x13, x10, #64
	movi.16b	v0, #32
	mov	x12, x11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ld1r.16b	{ v1 }, [x8]
	sub	x14, x13, #64
	st2.16b	{ v0, v1 }, [x14]
	sub	x14, x13, #32
	st2.16b	{ v0, v1 }, [x14]
	add	x14, x13, #128
	st2.16b	{ v0, v1 }, [x13], #32
	st2.16b	{ v0, v1 }, [x13]
	mov	x13, x14
	subs	x12, x12, #64
	b.ne	LBB0_10
; %bb.11:
	cmp	x11, x9
	b.eq	LBB0_8
; %bb.12:
	tst	x9, #0x38
	b.eq	LBB0_6
LBB0_13:
	mov	x13, x11
	and	x11, x9, #0xfffffff8
	add	x12, x10, x13, lsl #1
	sub	x13, x13, x11
	movi.8b	v0, #32
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ld1r.8b	{ v1 }, [x8]
	st2.8b	{ v0, v1 }, [x12], #16
	adds	x13, x13, #8
	b.ne	LBB0_14
; %bb.15:
	cmp	x11, x9
	b.eq	LBB0_8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_COLS,4,2                   ; @MAX_COLS
	.comm	_MAX_ROWS,4,2                   ; @MAX_ROWS
	.comm	_VIDEO_ADDRESS,8,3              ; @VIDEO_ADDRESS
	.comm	_WHITE_ON_BLACK,1,0             ; @WHITE_ON_BLACK
.subsections_via_symbols
