	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apndWrite
_apndWrite:                             ## @apndWrite
	.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	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_ORIGFILE
	movslq	%r12d, %r14
	addq	%rbx, %r14
	movq	_APND_MAX_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	jge	LBB0_1
## %bb.2:
	movq	(%rax), %r8
	addq	(%r15), %rbx
	movq	%r13, %rsi
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	callq	*(%r8)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_7
## %bb.3:
	movq	(%r15), %rcx
	addq	%r14, %rcx
	cmpq	8(%r15), %rcx
	jle	LBB0_7
## %bb.4:
	movq	$0, -48(%rbp)
	movq	%r13, %rdi
	movq	(%r13), %rax
	leaq	-48(%rbp), %rsi
	callq	*8(%rax)
	cmpl	(%rbx), %eax
	jne	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rcx
	movq	_APND_MARK_SIZE@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	movq	%rcx, 8(%r15)
	addq	(%r15), %r14
	cmpq	%rcx, %r14
	jle	LBB0_7
## %bb.6:
	movq	%r14, 8(%r15)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_apndWriteMark
	jmp	LBB0_7
LBB0_1:
	movq	_SQLITE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APND_MAX_SIZE,8,3              ## @APND_MAX_SIZE
	.comm	_SQLITE_FULL,4,2                ## @SQLITE_FULL
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_APND_MARK_SIZE,8,3             ## @APND_MARK_SIZE
	.no_dead_strip	_apndWrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apndWrite
_apndWrite:                             ; @apndWrite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_ORIGFILE
	add	x24, x23, w21, sxtw
Lloh0:
	adrp	x8, _APND_MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APND_MAX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ge	LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x3, x9, x23
	mov	x1, x22
	mov	x2, x21
	blr	x8
Lloh3:
	adrp	x21, _SQLITE_OK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.2:
	ldp	x8, x9, [x19]
	add	x8, x8, x24
	cmp	x8, x9
	b.le	LBB0_7
; %bb.3:
	str	xzr, [sp, #8]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [sp, #8]
Lloh5:
	adrp	x9, _APND_MARK_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _APND_MARK_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sub	x9, x8, x9
	str	x9, [x19, #8]
	ldr	x8, [x19]
	add	x8, x8, x24
	cmp	x8, x9
	b.le	LBB0_7
; %bb.5:
	str	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_apndWriteMark
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _SQLITE_FULL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SQLITE_FULL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_7:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_APND_MAX_SIZE,8,3              ; @APND_MAX_SIZE
	.comm	_SQLITE_FULL,4,2                ; @SQLITE_FULL
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_APND_MARK_SIZE,8,3             ; @APND_MARK_SIZE
	.no_dead_strip	_apndWrite
.subsections_via_symbols
