	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PinBuffer_Locked
_PinBuffer_Locked:                      ## @PinBuffer_Locked
	.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	%rdi, %r14
	callq	_BufferDescriptorGetBuffer
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_GetPrivateRefCountEntry
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_Assert
	movq	%r14, %rdi
	callq	_pg_atomic_read_u32
	movl	%eax, %ebx
	movq	_BM_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_Assert
	movq	_BUF_REFCOUNT_ONE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_UnlockBufHdr
	movq	%r14, %rdi
	callq	_BufferDescriptorGetBuffer
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NewPrivateRefCountEntry
	incl	(%rax)
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ResourceOwnerRememberBuffer    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BM_LOCKED,4,2                  ## @BM_LOCKED
	.comm	_BUF_REFCOUNT_ONE,8,3           ## @BUF_REFCOUNT_ONE
	.comm	_CurrentResourceOwner,4,2       ## @CurrentResourceOwner
	.no_dead_strip	_PinBuffer_Locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PinBuffer_Locked
_PinBuffer_Locked:                      ; @PinBuffer_Locked
	.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, x0
	bl	_BufferDescriptorGetBuffer
	mov	w1, #0
	bl	_GetPrivateRefCountEntry
	cmp	x0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_pg_atomic_read_u32
	mov	x20, x0
Lloh0:
	adrp	x8, _BM_LOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BM_LOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_Assert
Lloh3:
	adrp	x8, _BUF_REFCOUNT_ONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUF_REFCOUNT_ONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w1, w20, w8
	mov	x0, x19
	bl	_UnlockBufHdr
	mov	x0, x19
	bl	_BufferDescriptorGetBuffer
	mov	x19, x0
	bl	_NewPrivateRefCountEntry
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
Lloh6:
	adrp	x8, _CurrentResourceOwner@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CurrentResourceOwner@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ResourceOwnerRememberBuffer
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BM_LOCKED,4,2                  ; @BM_LOCKED
	.comm	_BUF_REFCOUNT_ONE,8,3           ; @BUF_REFCOUNT_ONE
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.no_dead_strip	_PinBuffer_Locked
.subsections_via_symbols
