	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_drop_lock_and_maybe_pin
__bt_drop_lock_and_maybe_pin:           ## @_bt_drop_lock_and_maybe_pin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rsi), %edi
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	8(%rbx), %edi
	callq	_IsMVCCSnapshot
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	4(%rbx), %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_ReleaseBuffer
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.no_dead_strip	__bt_drop_lock_and_maybe_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_drop_lock_and_maybe_pin
__bt_drop_lock_and_maybe_pin:           ; @_bt_drop_lock_and_maybe_pin
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_LockBuffer
	ldr	w0, [x20, #8]
	bl	_IsMVCCSnapshot
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x20]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_ReleaseBuffer
Lloh3:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.no_dead_strip	__bt_drop_lock_and_maybe_pin
.subsections_via_symbols
