	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edit_redraw                    ## -- Begin function edit_redraw
	.p2align	4, 0x90
_edit_redraw:                           ## @edit_redraw
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cmdbuf@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_cmdbuf_len@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movb	$0, (%rax,%rcx)
	movq	_ps2@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rbx, %rsi
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	_cmdbuf_pos@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rcx
	movb	(%rcx,%rax), %r13b
	movb	$0, (%rcx,%rax)
	movq	(%r15), %rax
	testq	%rax, %rax
	cmovneq	%rax, %rbx
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	movq	(%r14), %rax
	movq	(%r12), %rcx
	movb	%r13b, (%rax,%rcx)
LBB0_2:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fflush                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cmdbuf,8,3                     ## @cmdbuf
	.comm	_cmdbuf_len,8,3                 ## @cmdbuf_len
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r%s> %s"

	.comm	_ps2,8,3                        ## @ps2
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_cmdbuf_pos,8,3                 ## @cmdbuf_pos
	.comm	_stdout,4,2                     ## @stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edit_redraw                    ; -- Begin function edit_redraw
	.p2align	2
_edit_redraw:                           ; @edit_redraw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _cmdbuf@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cmdbuf@GOTPAGEOFF]
Lloh2:
	adrp	x23, _cmdbuf_len@GOTPAGE
Lloh3:
	ldr	x23, [x23, _cmdbuf_len@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x23]
	strb	wzr, [x8, x9]
Lloh4:
	adrp	x20, _ps2@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ps2@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x1, x21, x8, eq
	ldr	x2, [x19]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh10:
	adrp	x22, _cmdbuf_pos@GOTPAGE
Lloh11:
	ldr	x22, [x22, _cmdbuf_pos@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x19]
	ldrb	w23, [x9, x8]
	strb	wzr, [x9, x8]
	ldr	x8, [x20]
	cmp	x8, #0
	csel	x1, x21, x8, eq
	ldr	x2, [x19]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x8, [x19]
	ldr	x9, [x22]
	strb	w23, [x8, x9]
LBB0_2:
Lloh14:
	adrp	x8, _stdout@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fflush
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_cmdbuf,8,3                     ; @cmdbuf
	.comm	_cmdbuf_len,8,3                 ; @cmdbuf_len
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r%s> %s"

	.comm	_ps2,8,3                        ; @ps2
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_cmdbuf_pos,8,3                 ; @cmdbuf_pos
	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
