	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_delete                      ## -- Begin function db_delete
	.p2align	4, 0x90
_db_delete:                             ## @db_delete
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	_LINE_DELETE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_mark_insdel
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movl	(%r13), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ex_g_insdel
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	movq	_LOG_LINE_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_log_line
	leaq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$8, -56(%rbp)
	movq	16(%r14), %rdi
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	callq	*(%rdi)
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_msgq
	jmp	LBB0_13
LBB0_1:
	movq	_EXM_NOFILEYET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ex_emsg
	movl	$1, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-48(%rbp), %rax
	cmpq	(%r14), %rax
	jg	LBB0_8
## %bb.7:
	movq	_OOBLNO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_8:
	movq	8(%r14), %rax
	movq	_OOBLNO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	decq	%rax
	movq	%rax, 8(%r14)
LBB0_10:
	movq	_F_FIRSTMODIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_rcv_init
LBB0_12:
	movq	_F_MODIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_SET
	movq	-48(%rbp), %rsi
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_scr_update
	movl	%eax, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EXM_NOFILEYET,4,2              ## @EXM_NOFILEYET
	.comm	_LINE_DELETE,4,2                ## @LINE_DELETE
	.comm	_LOG_LINE_DELETE,4,2            ## @LOG_LINE_DELETE
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"003|unable to delete line %lu"

	.comm	_OOBLNO,8,3                     ## @OOBLNO
	.comm	_F_FIRSTMODIFY,4,2              ## @F_FIRSTMODIFY
	.comm	_F_MODIFIED,4,2                 ## @F_MODIFIED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_delete                      ; -- Begin function db_delete
	.p2align	2
_db_delete:                             ; @db_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	str	x1, [sp, #24]
	ldr	x20, [x0]
	cbz	x20, LBB0_4
; %bb.1:
	mov	x21, x1
Lloh0:
	adrp	x22, _LINE_DELETE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LINE_DELETE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_mark_insdel
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_ex_g_insdel
	cbz	x0, LBB0_6
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EXM_NOFILEYET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EXM_NOFILEYET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_ex_emsg
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh5:
	adrp	x8, _LOG_LINE_DELETE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOG_LINE_DELETE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_log_line
	add	x8, sp, #24
	str	x8, [sp, #8]
	mov	w8, #8
	str	w8, [sp, #16]
	ldr	x0, [x20, #16]
	ldr	x8, [x0]
	add	x1, sp, #8
	mov	w2, #0
	blr	x8
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w3, [sp, #24]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_msgq
	mov	w0, #1
	b	LBB0_5
LBB0_8:
	ldr	x9, [sp, #24]
	ldr	x10, [x20]
Lloh13:
	adrp	x8, _OOBLNO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OOBLNO@GOTPAGEOFF]
	cmp	x9, x10
	b.gt	LBB0_10
; %bb.9:
	ldr	x9, [x8]
	str	x9, [x20]
LBB0_10:
	ldr	x9, [x20, #8]
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_12
; %bb.11:
	sub	x8, x9, #1
	str	x8, [x20, #8]
LBB0_12:
Lloh15:
	adrp	x8, _F_FIRSTMODIFY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _F_FIRSTMODIFY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_rcv_init
LBB0_14:
Lloh18:
	adrp	x8, _F_MODIFIED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _F_MODIFIED@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_SET
	ldr	x1, [sp, #24]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w3, #1
	bl	_scr_update
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EXM_NOFILEYET,4,2              ; @EXM_NOFILEYET
	.comm	_LINE_DELETE,4,2                ; @LINE_DELETE
	.comm	_LOG_LINE_DELETE,4,2            ; @LOG_LINE_DELETE
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"003|unable to delete line %lu"

	.comm	_OOBLNO,8,3                     ; @OOBLNO
	.comm	_F_FIRSTMODIFY,4,2              ; @F_FIRSTMODIFY
	.comm	_F_MODIFIED,4,2                 ; @F_MODIFIED
.subsections_via_symbols
