	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UnlockBuffers                  ## -- Begin function UnlockBuffers
	.p2align	4, 0x90
_UnlockBuffers:                         ## @UnlockBuffers
	.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	_PinCountWaitBuf@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_LockBufHdr
	movq	_BM_PIN_COUNT_WAITER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rdx
	movq	_MyProcPid@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.3:
	notl	%ecx
	andl	%ecx, %eax
LBB0_4:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_UnlockBufHdr
	movq	$0, (%r14)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PinCountWaitBuf,8,3            ## @PinCountWaitBuf
	.comm	_BM_PIN_COUNT_WAITER,4,2        ## @BM_PIN_COUNT_WAITER
	.comm	_MyProcPid,8,3                  ## @MyProcPid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UnlockBuffers                  ; -- Begin function UnlockBuffers
	.p2align	2
_UnlockBuffers:                         ; @UnlockBuffers
	.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
Lloh0:
	adrp	x20, _PinCountWaitBuf@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PinCountWaitBuf@GOTPAGEOFF]
	ldr	x19, [x20]
	cbz	x19, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_LockBufHdr
	mov	x1, x0
Lloh2:
	adrp	x8, _BM_PIN_COUNT_WAITER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BM_PIN_COUNT_WAITER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x19]
Lloh5:
	adrp	x10, _MyProcPid@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MyProcPid@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	bic	w8, w1, w8
	csel	w1, w1, w8, ne
LBB0_3:
	mov	x0, x19
	bl	_UnlockBufHdr
	str	xzr, [x20]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PinCountWaitBuf,8,3            ; @PinCountWaitBuf
	.comm	_BM_PIN_COUNT_WAITER,4,2        ; @BM_PIN_COUNT_WAITER
	.comm	_MyProcPid,8,3                  ; @MyProcPid
.subsections_via_symbols
