	.file	"extr_tui-winsource.c_tui_erase_source_content.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tui_erase_source_content
	.type	tui_erase_source_content, @function
tui_erase_source_content:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR 24[rdi]
	test	rdi, rdi
	je	.L1
	mov	ebx, esi
	mov	r12d, DWORD PTR 0[rbp]
	call	werase@PLT
	mov	rdi, rbp
	call	tui_check_and_display_highlight_if_needed@PLT
	cmp	DWORD PTR EMPTY_SOURCE_PROMPT[rip], ebx
	je	.L10
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	tui_refresh_win@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r13, QWORD PTR NO_DISASSEM_STRING[rip]
	mov	rax, QWORD PTR SRC_WIN[rip]
	cmp	QWORD PTR 8[rbp], rax
	jne	.L5
	mov	r13, QWORD PTR NO_SRC_STRING[rip]
.L5:
	sub	r12d, 2
	mov	rdi, r13
	mov	eax, r12d
	shr	eax, 31
	add	r12d, eax
	call	strlen@PLT
	sar	r12d
	mov	edx, 1
	cmp	eax, r12d
	jl	.L11
.L6:
	mov	eax, DWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 24[rbp]
	mov	rcx, r13
	mov	esi, eax
	shr	esi, 31
	add	esi, eax
	sar	esi
	call	mvwaddstr@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	tui_set_source_content_nil@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r13
	call	strlen@PLT
	mov	edx, r12d
	sub	edx, eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	tui_erase_source_content, .-tui_erase_source_content
	.comm	SRC_WIN,8,8
	.comm	NO_SRC_STRING,8,8
	.comm	NO_DISASSEM_STRING,8,8
	.comm	EMPTY_SOURCE_PROMPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tui-winsource.c_tui_erase_source_content.c"
	.text
	.align	2
	.global	tui_erase_source_content
	.syntax unified
	.arm
	.fpu softvfp
	.type	tui_erase_source_content, %function
tui_erase_source_content:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #12]
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r5, r1
	ldr	r6, [r4]
	bl	werase
	mov	r0, r4
	bl	tui_check_and_display_highlight_if_needed
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L10
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	tui_refresh_win
.L10:
	ldr	r3, .L11+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	sub	r6, r6, #2
	cmp	r2, r3
	ldreq	r3, .L11+8
	ldrne	r3, .L11+12
	add	r6, r6, r6, lsr #31
	ldr	r5, [r3]
	asr	r6, r6, #1
	mov	r0, r5
	bl	strlen
	ldr	r1, [r4, #8]
	cmp	r0, r6
	add	r1, r1, r1, lsr #31
	sublt	r2, r6, r0
	mov	r3, r5
	movge	r2, #1
	ldr	r0, [r4, #12]
	asr	r1, r1, #1
	bl	mvwaddstr
	mov	r1, r5
	mov	r0, r4
	bl	tui_set_source_content_nil
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	tui_refresh_win
.L12:
	.align	2
.L11:
	.word	EMPTY_SOURCE_PROMPT
	.word	SRC_WIN
	.word	NO_SRC_STRING
	.word	NO_DISASSEM_STRING
	.size	tui_erase_source_content, .-tui_erase_source_content
	.comm	SRC_WIN,4,4
	.comm	NO_SRC_STRING,4,4
	.comm	NO_DISASSEM_STRING,4,4
	.comm	EMPTY_SOURCE_PROMPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
