	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_insert                      ## -- Begin function db_insert
	.p2align	4, 0x90
_db_insert:                             ## @db_insert
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, -40(%rbp)
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_INT2FILE
	leaq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	$8, -48(%rbp)
	movq	16(%rbx), %rdi
	movq	_R_IBEFORE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	callq	*(%rdi)
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.2:
	movq	-40(%rbp), %rax
	cmpq	(%rbx), %rax
	jl	LBB0_4
## %bb.3:
	movq	_OOBLNO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_4:
	movq	8(%rbx), %rax
	movq	_OOBLNO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	incq	%rax
	movq	%rax, 8(%rbx)
LBB0_6:
	movq	_F_FIRSTMODIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_rcv_init
LBB0_8:
	movq	_F_MODIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
	movq	-40(%rbp), %rsi
	movq	_LOG_LINE_INSERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_log_line
	movq	_LINE_INSERT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mark_insdel
	movq	%rax, %r15
	movl	(%r12), %esi
	movq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_ex_g_insdel
	movq	%rax, %rbx
	orq	%r15, %rbx
	movq	-40(%rbp), %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_scr_update
	movq	%rax, %rcx
	xorl	%eax, %eax
	orq	%rbx, %rcx
	setne	%al
	jmp	LBB0_12
LBB0_9:
	movq	_EXM_NOFILEYET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ex_emsg
	jmp	LBB0_11
LBB0_10:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_msgq
LBB0_11:
	movl	$1, %eax
LBB0_12:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXM_NOFILEYET,4,2              ## @EXM_NOFILEYET
	.comm	_R_IBEFORE,4,2                  ## @R_IBEFORE
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"005|unable to insert at line %lu"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_insert                      ; -- Begin function db_insert
	.p2align	2
_db_insert:                             ; @db_insert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, #40]
	ldr	x20, [x0]
	cbz	x20, LBB0_9
; %bb.1:
	mov	x0, x19
	mov	x1, x2
	mov	x2, x3
	bl	_INT2FILE
	add	x8, sp, #40
	str	x8, [sp, #8]
	mov	w8, #8
	str	w8, [sp, #16]
	ldr	x0, [x20, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _R_IBEFORE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _R_IBEFORE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	add	x1, sp, #8
	add	x2, sp, #24
	blr	x8
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.2:
	ldr	x9, [sp, #40]
	ldr	x10, [x20]
Lloh3:
	adrp	x8, _OOBLNO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OOBLNO@GOTPAGEOFF]
	cmp	x9, x10
	b.lt	LBB0_4
; %bb.3:
	ldr	x9, [x8]
	str	x9, [x20]
LBB0_4:
	ldr	x9, [x20, #8]
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.5:
	add	x8, x9, #1
	str	x8, [x20, #8]
LBB0_6:
Lloh5:
	adrp	x8, _F_FIRSTMODIFY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_FIRSTMODIFY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_rcv_init
LBB0_8:
Lloh8:
	adrp	x8, _F_MODIFIED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _F_MODIFIED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_SET
	ldr	x1, [sp, #40]
Lloh11:
	adrp	x8, _LOG_LINE_INSERT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOG_LINE_INSERT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_log_line
Lloh14:
	adrp	x21, _LINE_INSERT@GOTPAGE
Lloh15:
	ldr	x21, [x21, _LINE_INSERT@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	x2, [sp, #40]
	mov	x0, x19
	bl	_mark_insdel
	mov	x20, x0
	ldr	w1, [x21]
	ldr	x2, [sp, #40]
	mov	x0, x19
	bl	_ex_g_insdel
	orr	x20, x0, x20
	ldr	x1, [sp, #40]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #1
	bl	_scr_update
	orr	x8, x20, x0
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_12
LBB0_9:
Lloh16:
	adrp	x8, _EXM_NOFILEYET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXM_NOFILEYET@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_ex_emsg
	b	LBB0_11
LBB0_10:
Lloh19:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w3, [sp, #40]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_msgq
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EXM_NOFILEYET,4,2              ; @EXM_NOFILEYET
	.comm	_R_IBEFORE,4,2                  ; @R_IBEFORE
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"005|unable to insert at line %lu"

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