	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __delete_prev_char
___delete_prev_char:                    ## @__delete_prev_char
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_I@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	8(%r15), %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_3
## %bb.1:
	testq	%rsi, %rsi
	jle	LBB0_6
## %bb.2:
	movq	16(%r15), %rdi
	addq	%rsi, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_r_str_utf8_charsize_prev
	movslq	%eax, %r12
	movq	(%r15), %rax
	movq	16(%r15), %r14
	movq	%rax, %rbx
	subq	%r12, %rbx
	movq	%rbx, (%r15)
	addq	%r14, %rbx
	addq	%rax, %r14
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_memmove
	movq	8(%r15), %rcx
	subq	%r12, %rcx
	jmp	LBB0_5
LBB0_3:
	movq	16(%r15), %rdi
	callq	_r_str_utf8_charsize_last
	movq	8(%r15), %rcx
	subq	%rax, %rcx
	movq	%rcx, 8(%r15)
	movq	%rcx, (%r15)
	jns	LBB0_6
## %bb.4:
	xorl	%ecx, %ecx
LBB0_5:
	movq	%rcx, 8(%r15)
LBB0_6:
	movq	16(%r15), %rax
	movb	$0, (%rax,%rcx)
	cmpq	$0, (%r15)
	jns	LBB0_8
## %bb.7:
	movq	$0, (%r15)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I,24,3                         ## @I
	.no_dead_strip	___delete_prev_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __delete_prev_char
___delete_prev_char:                    ; @__delete_prev_char
	.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
Lloh0:
	adrp	x21, _I@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I@GOTPAGEOFF]
	ldp	x1, x8, [x21]
	cmp	x1, x8
	b.ge	LBB0_3
; %bb.1:
	cmp	x1, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	x8, [x21, #16]
	add	x0, x8, x1
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_r_str_utf8_charsize_prev
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	ldr	x8, [x21]
	ldr	x9, [x21, #16]
	sub	x10, x8, x22
	add	x19, x9, x10
	str	x10, [x21]
	add	x20, x9, x8
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_memmove
	ldr	x8, [x21, #8]
	sub	x8, x8, x22
	b	LBB0_5
LBB0_3:
	ldr	x0, [x21, #16]
	bl	_r_str_utf8_charsize_last
	ldr	x8, [x21, #8]
	subs	x8, x8, x0
	stp	x8, x8, [x21]
	b.pl	LBB0_6
; %bb.4:
	mov	x8, #0
LBB0_5:
	str	x8, [x21, #8]
LBB0_6:
	ldr	x9, [x21, #16]
	strb	wzr, [x9, x8]
	ldr	x8, [x21]
	tbz	x8, #63, LBB0_8
; %bb.7:
	str	xzr, [x21]
LBB0_8:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_I,24,3                         ; @I
	.no_dead_strip	___delete_prev_char
.subsections_via_symbols
