	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_erase_source_content       ## -- Begin function tui_erase_source_content
	.p2align	4, 0x90
_tui_erase_source_content:              ## @tui_erase_source_content
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movl	%esi, %r14d
	movl	(%rbx), %r15d
	callq	_werase
	movq	%rbx, %rdi
	callq	_tui_check_and_display_highlight_if_needed
	movq	_EMPTY_SOURCE_PROMPT@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_8
## %bb.2:
	movl	%r15d, %eax
	addl	$-2, %eax
	shrl	$31, %eax
	addl	%eax, %r15d
	addl	$-2, %r15d
	sarl	%r15d
	movq	8(%rbx), %rax
	movq	_SRC_WIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_NO_SRC_STRING@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_NO_DISASSEM_STRING@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_strlen
	movl	$1, %edx
	cmpl	%r15d, %eax
	jge	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_strlen
	subl	%eax, %r15d
	movl	%r15d, %edx
LBB0_7:
	movq	24(%rbx), %rdi
	movl	16(%rbx), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movq	%r14, %rcx
	callq	_mvwaddstr
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tui_set_source_content_nil
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tui_refresh_win                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EMPTY_SOURCE_PROMPT,4,2        ## @EMPTY_SOURCE_PROMPT
	.comm	_SRC_WIN,8,3                    ## @SRC_WIN
	.comm	_NO_SRC_STRING,8,3              ## @NO_SRC_STRING
	.comm	_NO_DISASSEM_STRING,8,3         ## @NO_DISASSEM_STRING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_erase_source_content       ; -- Begin function tui_erase_source_content
	.p2align	2
_tui_erase_source_content:              ; @tui_erase_source_content
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #2
	sub	w8, w8, #1
	cmp	w9, #0
	csel	w21, w8, w9, lt
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x1
	bl	_werase
	mov	x0, x19
	bl	_tui_check_and_display_highlight_if_needed
Lloh0:
	adrp	x8, _EMPTY_SOURCE_PROMPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EMPTY_SOURCE_PROMPT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.2:
	asr	w21, w21, #1
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _SRC_WIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SRC_WIN@GOTPAGEOFF]
Lloh5:
	adrp	x10, _NO_SRC_STRING@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NO_SRC_STRING@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x11, _NO_DISASSEM_STRING@GOTPAGE
Lloh9:
	ldr	x11, [x11, _NO_DISASSEM_STRING@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x20, [x8]
	mov	x0, x20
	bl	_strlen
	cmp	w0, w21
	b.ge	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_strlen
	sub	w2, w21, w0
	b	LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w2, #1
LBB0_6:
	ldr	x0, [x19, #24]
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	mov	x3, x20
	bl	_mvwaddstr
	mov	x0, x19
	mov	x1, x20
	bl	_tui_set_source_content_nil
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tui_refresh_win
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EMPTY_SOURCE_PROMPT,4,2        ; @EMPTY_SOURCE_PROMPT
	.comm	_SRC_WIN,8,3                    ; @SRC_WIN
	.comm	_NO_SRC_STRING,8,3              ; @NO_SRC_STRING
	.comm	_NO_DISASSEM_STRING,8,3         ; @NO_DISASSEM_STRING
.subsections_via_symbols
