	.file	"extr_terminal.c_clear_prompt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	clear_prompt
	.type	clear_prompt, @function
clear_prompt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	mov	rdx, QWORD PTR STATUS_PAUSED[rip]
	cmp	QWORD PTR [rax], rdx
	je	.L12
	mov	edi, DWORD PTR PROMPT_ACTIVE[rip]
	call	strlen@PLT
	mov	rbp, rax
.L3:
	mov	esi, DWORD PTR stdout[rip]
	mov	edi, 13
	call	fputc@PLT
	test	rbp, rbp
	je	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR stdout[rip]
	mov	edi, 32
	add	rbx, 1
	call	fputc@PLT
	cmp	rbp, rbx
	jne	.L5
.L4:
	mov	esi, DWORD PTR stdout[rip]
	mov	edi, 13
	call	fputc@PLT
	mov	edi, DWORD PTR stdout[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	fflush@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR PROMPT_PAUSED[rip]
	call	strlen@PLT
	mov	rbp, rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	clear_prompt, .-clear_prompt
	.comm	stdout,4,4
	.comm	STATUS_PAUSED,8,8
	.comm	PROMPT_PAUSED,4,4
	.comm	PROMPT_ACTIVE,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_terminal.c_clear_prompt.c"
	.text
	.align	2
	.global	clear_prompt
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear_prompt, %function
clear_prompt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	ldr	r3, .L12
	ldr	r2, [r2]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	cmp	r2, r3
	ldreq	r3, .L12+4
	ldrne	r3, .L12+8
	ldr	r5, .L12+12
	ldr	r0, [r3]
	bl	strlen
	mov	r6, r0
	ldr	r1, [r5]
	mov	r0, #13
	bl	fputc
	cmp	r6, #0
	beq	.L4
	mov	r4, #0
.L5:
	mov	r0, #32
	ldr	r1, [r5]
	add	r4, r4, #1
	bl	fputc
	cmp	r6, r4
	bne	.L5
.L4:
	ldr	r1, [r5]
	mov	r0, #13
	bl	fputc
	ldr	r0, [r5]
	pop	{r4, r5, r6, lr}
	b	fflush
.L13:
	.align	2
.L12:
	.word	STATUS_PAUSED
	.word	PROMPT_PAUSED
	.word	PROMPT_ACTIVE
	.word	stdout
	.size	clear_prompt, .-clear_prompt
	.comm	stdout,4,4
	.comm	STATUS_PAUSED,4,4
	.comm	PROMPT_PAUSED,4,4
	.comm	PROMPT_ACTIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
