	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __console_clear
___console_clear:                       ## @__console_clear
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_curr_con@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movl	4(%rax), %ecx
	imull	(%rax), %ecx
	leal	1(%rcx), %edx
	cmpl	$3, %edx
	jb	LBB0_20
## %bb.2:
	movl	%ecx, %r11d
	shrl	$31, %r11d
	addl	%ecx, %r11d
	sarl	%r11d
	movq	48(%rax), %rcx
	leal	-1(%r11), %r10d
	cmpl	$7, %r10d
	jb	LBB0_13
## %bb.3:
	leaq	44(%rax), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_5
## %bb.4:
	leaq	(%rcx,%r10,4), %rdx
	addq	$4, %rdx
	leaq	40(%rax), %rsi
	cmpq	%rdx, %rsi
	jb	LBB0_13
LBB0_5:
	incq	%r10
	movq	%r10, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.7:
	movq	%r9, %rsi
	andq	$-2, %rsi
	movd	40(%rax), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rdi,4)
	movdqu	%xmm0, 16(%rcx,%rdi,4)
	movdqu	%xmm0, 32(%rcx,%rdi,4)
	movdqu	%xmm0, 48(%rcx,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	movd	40(%rax), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rcx,%rdi,4)
	movdqu	%xmm0, 16(%rcx,%rdi,4)
LBB0_11:
	cmpq	%r8, %r10
	je	LBB0_20
## %bb.12:
	leaq	(%rcx,%r8,4), %rcx
	subl	%r8d, %r11d
LBB0_13:
	leal	-1(%r11), %r8d
	testb	$7, %r11b
	je	LBB0_17
## %bb.14:
	movl	%r11d, %edx
	andl	$7, %edx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	40(%rax), %esi
	movl	%esi, (%rcx)
	addq	$4, %rcx
	incq	%rdi
	cmpl	%edi, %edx
	jne	LBB0_15
## %bb.16:
	subl	%edi, %r11d
LBB0_17:
	cmpl	$7, %r8d
	jb	LBB0_20
## %bb.18:
	movl	%r11d, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	40(%rax), %edi
	movl	%edi, (%rcx,%rsi,4)
	movl	40(%rax), %edi
	movl	%edi, 4(%rcx,%rsi,4)
	movl	40(%rax), %edi
	movl	%edi, 8(%rcx,%rsi,4)
	movl	40(%rax), %edi
	movl	%edi, 12(%rcx,%rsi,4)
	movl	40(%rax), %edi
	movl	%edi, 16(%rcx,%rsi,4)
	movl	40(%rax), %edi
	movl	%edi, 20(%rcx,%rsi,4)
	movl	40(%rax), %edi
	movl	%edi, 24(%rcx,%rsi,4)
	movl	40(%rax), %edi
	movl	%edi, 28(%rcx,%rsi,4)
	addq	$8, %rsi
	cmpl	%esi, %edx
	jne	LBB0_19
LBB0_20:
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 24(%rax)
	movdqu	%xmm0, 8(%rax)
LBB0_21:
	popq	%rbp
	retq
LBB0_6:
	xorl	%edi, %edi
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_curr_con,8,3                   ## @curr_con
	.no_dead_strip	___console_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __console_clear
___console_clear:                       ; @__console_clear
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _curr_con@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curr_con@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.1:
	ldp	w9, w10, [x8]
	mul	w9, w10, w9
	add	w10, w9, #1
	cmp	w10, #3
	b.lo	LBB0_10
; %bb.2:
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	ldr	x12, [x8, #48]
	sub	w10, w9, #1
	cmp	w10, #15
	b.hs	LBB0_4
; %bb.3:
	mov	x10, x12
	b	LBB0_9
LBB0_4:
	add	x11, x12, w10, uxtw #2
	add	x11, x11, #4
	add	x14, x8, #40
	add	x13, x8, #44
	cmp	x12, x13
	ccmp	x14, x11, #2, lo
	b.lo	LBB0_8
; %bb.5:
	add	x11, x10, #1
	and	x13, x11, #0x1fffffff0
	add	x10, x12, x13, lsl #2
	sub	w9, w9, w13
	ld1r.4s	{ v0 }, [x14]
	add	x12, x12, #32
	mov	x14, x13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x11, x13
	b.ne	LBB0_9
	b	LBB0_10
LBB0_8:
	mov	x10, x12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, #40]
	str	w11, [x10], #4
	subs	w9, w9, #1
	b.ne	LBB0_9
LBB0_10:
	movi.2d	v0, #0000000000000000
	stur	q0, [x8, #24]
	stur	q0, [x8, #8]
LBB0_11:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_curr_con,8,3                   ; @curr_con
	.no_dead_strip	___console_clear
.subsections_via_symbols
