	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pagerExclusiveLock
_pagerExclusiveLock:                    ## @pagerExclusiveLock
	.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	%rdi, %r14
	movq	(%rdi), %rax
	movq	_SHARED_LOCK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	sete	%cl
	movq	_EXCLUSIVE_LOCK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_pagerLockDb
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_pagerUnlockDb
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHARED_LOCK,8,3                ## @SHARED_LOCK
	.comm	_EXCLUSIVE_LOCK,8,3             ## @EXCLUSIVE_LOCK
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_pagerExclusiveLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pagerExclusiveLock
_pagerExclusiveLock:                    ; @pagerExclusiveLock
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _SHARED_LOCK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SHARED_LOCK@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
Lloh2:
	adrp	x20, _EXCLUSIVE_LOCK@GOTPAGE
Lloh3:
	ldr	x20, [x20, _EXCLUSIVE_LOCK@GOTPAGEOFF]
	ldr	x9, [x20]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	x1, [x20]
	mov	x0, x19
	bl	_pagerLockDb
	mov	x20, x0
Lloh4:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_pagerUnlockDb
LBB0_2:
	mov	x0, x20
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SHARED_LOCK,8,3                ; @SHARED_LOCK
	.comm	_EXCLUSIVE_LOCK,8,3             ; @EXCLUSIVE_LOCK
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_pagerExclusiveLock
.subsections_via_symbols
