	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unixUnfetch
_unixUnfetch:                           ## @unixUnfetch
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_UNUSED_PARAMETER
	testq	%r15, %r15
	sete	%al
	cmpq	$0, (%r14)
	setne	%cl
	xorb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	addq	8(%r14), %rbx
	xorl	%edi, %edi
	cmpq	%r15, %rbx
	sete	%dil
	callq	_assert
	movq	(%r14), %rdi
	decq	%rdi
	movq	%rdi, (%r14)
	jmp	LBB0_3
LBB0_2:
	movl	$1, %edi
	callq	_assert
	movq	%r14, %rdi
	callq	_unixUnmapfile
	movq	(%r14), %rdi
LBB0_3:
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_unixUnfetch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unixUnfetch
_unixUnfetch:                           ; @unixUnfetch
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_UNUSED_PARAMETER
	cmp	x20, #0
	cset	w8, eq
	ldr	x9, [x19]
	cmp	x9, #0
	cset	w9, ne
	eor	w0, w8, w9
	bl	_assert
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	cmp	x8, x20
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_assert
	mov	x0, x19
	bl	_unixUnmapfile
	ldr	x8, [x19]
LBB0_3:
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_assert
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_unixUnfetch
.subsections_via_symbols
