	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clear_prompt                   ## -- Begin function clear_prompt
	.p2align	4, 0x90
_clear_prompt:                          ## @clear_prompt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_STATUS_PAUSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_PROMPT_PAUSED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PROMPT_ACTIVE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_strlen
	movq	%rax, %rbx
	movq	_stdout@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$13, %edi
	callq	_fputc
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	$32, %edi
	callq	_fputc
	decq	%rbx
	jne	LBB0_4
LBB0_5:
	movl	(%r14), %esi
	movl	$13, %edi
	callq	_fputc
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fflush                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_PAUSED,8,3              ## @STATUS_PAUSED
	.comm	_PROMPT_PAUSED,4,2              ## @PROMPT_PAUSED
	.comm	_PROMPT_ACTIVE,4,2              ## @PROMPT_ACTIVE
	.comm	_stdout,4,2                     ## @stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clear_prompt                   ; -- Begin function clear_prompt
	.p2align	2
_clear_prompt:                          ; @clear_prompt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _STATUS_PAUSED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATUS_PAUSED@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PROMPT_PAUSED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PROMPT_PAUSED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _PROMPT_ACTIVE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _PROMPT_ACTIVE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w0, [x8]
	bl	_strlen
	mov	x19, x0
Lloh7:
	adrp	x20, _stdout@GOTPAGE
Lloh8:
	ldr	x20, [x20, _stdout@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #13
	bl	_fputc
	cbz	x19, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	w0, #32
	bl	_fputc
	subs	x19, x19, #1
	b.ne	LBB0_1
LBB0_2:
	ldr	w1, [x20]
	mov	w0, #13
	bl	_fputc
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fflush
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_PAUSED,8,3              ; @STATUS_PAUSED
	.comm	_PROMPT_PAUSED,4,2              ; @PROMPT_PAUSED
	.comm	_PROMPT_ACTIVE,4,2              ; @PROMPT_ACTIVE
	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
