	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delete_word
_delete_word:                           ## @delete_word
	.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
	xorl	%eax, %eax
	callq	_edit_clear_line
	movq	_cmdbuf_pos@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_cmdbuf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, %edx
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%rdx), %rdi
	cmpb	$32, -1(%rsi,%rdx)
	movq	%rdi, %rdx
	je	LBB0_1
## %bb.3:
	incl	%edi
	movl	%edi, %ecx
LBB0_4:
	movl	%ecx, %edi
	movl	%ecx, %edx
	sarl	$31, %edx
	andl	%ecx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edi, %edi
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	-1(%rdi), %rcx
	cmpb	$32, -1(%rsi,%rdi)
	movq	%rcx, %rdi
	jne	LBB0_5
## %bb.7:
	incl	%ecx
	movl	%ecx, %edx
LBB0_8:
	movslq	%edx, %rbx
	leaq	(%rsi,%rbx), %rdi
	cltq
	addq	%rax, %rsi
	movq	_cmdbuf_len@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	subl	%eax, %edx
	callq	_os_memmove
	movl	%ebx, %eax
	subl	(%r14), %eax
	addl	%eax, (%r15)
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edit_redraw                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cmdbuf_pos,4,2                 ## @cmdbuf_pos
	.comm	_cmdbuf,8,3                     ## @cmdbuf
	.comm	_cmdbuf_len,4,2                 ## @cmdbuf_len
	.no_dead_strip	_delete_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delete_word
_delete_word:                           ; @delete_word
	.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
	bl	_edit_clear_line
Lloh0:
	adrp	x19, _cmdbuf_pos@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cmdbuf_pos@GOTPAGEOFF]
Lloh2:
	adrp	x9, _cmdbuf@GOTPAGE
Lloh3:
	ldr	x9, [x9, _cmdbuf@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh4:
	ldr	x9, [x9]
	cmp	w8, #0
	csel	w11, w8, wzr, lt
	sub	x10, x9, #1
	mov	x12, x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w12, #1
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x13, x12, #1
	ldrb	w14, [x10, x12]
	mov	x12, x13
	cmp	w14, #32
	b.eq	LBB0_1
; %bb.3:
	add	w11, w13, #1
LBB0_4:
	mov	w12, w11
	cmp	w11, #0
	csel	w20, w11, wzr, lt
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w12, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x11, x12, #1
	ldrb	w13, [x10, x12]
	mov	x12, x11
	cmp	w13, #32
	b.ne	LBB0_5
; %bb.7:
	add	w20, w11, #1
LBB0_8:
	add	x0, x9, w20, sxtw
	add	x1, x9, w8, sxtw
Lloh5:
	adrp	x21, _cmdbuf_len@GOTPAGE
Lloh6:
	ldr	x21, [x21, _cmdbuf_len@GOTPAGEOFF]
	ldr	w9, [x21]
	sub	w2, w9, w8
	bl	_os_memmove
	ldr	w8, [x19]
	ldr	w9, [x21]
	sub	w8, w20, w8
	add	w8, w8, w9
	str	w8, [x21]
	str	w20, [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	_edit_redraw
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cmdbuf_pos,4,2                 ; @cmdbuf_pos
	.comm	_cmdbuf,8,3                     ; @cmdbuf
	.comm	_cmdbuf_len,4,2                 ; @cmdbuf_len
	.no_dead_strip	_delete_word
.subsections_via_symbols
