	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function teken_subr_erase_display
_teken_subr_erase_display:              ## @teken_subr_erase_display
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, -16(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -28(%rbp)
	cmpl	$2, %esi
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	cmpl	$1, %esi
	jne	LBB0_5
## %bb.2:
	movl	$1, %esi
	callq	_teken_subr_erase_line
	movl	12(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movl	$0, -24(%rbp)
	movl	%eax, -32(%rbp)
	jmp	LBB0_7
LBB0_4:
	movl	$0, -24(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -32(%rbp)
	jmp	LBB0_7
LBB0_5:
	xorl	%esi, %esi
	callq	_teken_subr_erase_line
	movl	4(%rbx), %eax
	movl	12(%rbx), %ecx
	leal	-1(%rax), %edx
	cmpl	%edx, %ecx
	je	LBB0_8
## %bb.6:
	incl	%ecx
	movl	%ecx, -24(%rbp)
	movl	%eax, -32(%rbp)
LBB0_7:
	movq	_BLANK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%rbx, %rcx
	callq	_teken_funcs_fill
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLANK,4,2                      ## @BLANK
	.no_dead_strip	_teken_subr_erase_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function teken_subr_erase_display
_teken_subr_erase_display:              ; @teken_subr_erase_display
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	xzr, [sp, #24]
	ldr	w8, [x0, #8]
	str	w8, [sp, #12]
	cmp	w1, #2
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x19
	cmp	w1, #1
	b.ne	LBB0_5
; %bb.2:
	bl	_teken_subr_erase_line
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_8
; %bb.3:
	str	wzr, [sp, #16]
	b	LBB0_7
LBB0_4:
	ldr	w8, [x19, #4]
	str	wzr, [sp, #16]
	b	LBB0_7
LBB0_5:
	mov	w1, #0
	bl	_teken_subr_erase_line
	ldr	w9, [x19, #12]
	ldr	w8, [x19, #4]
	sub	w10, w8, #1
	cmp	w9, w10
	b.eq	LBB0_8
; %bb.6:
	add	w9, w9, #1
	str	w9, [sp, #16]
LBB0_7:
	str	w8, [sp, #8]
Lloh0:
	adrp	x8, _BLANK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLANK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x3, x19
	bl	_teken_funcs_fill
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BLANK,4,2                      ; @BLANK
	.no_dead_strip	_teken_subr_erase_display
.subsections_via_symbols
