	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcache1Unpin
_pcache1Unpin:                          ## @pcache1Unpin
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	xorl	%edi, %edi
	cmpq	%r14, 16(%rsi)
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_pcache1EnterMutex
	xorl	%r13d, %r13d
	cmpq	$0, (%rbx)
	movl	$0, %edi
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
LBB0_2:
	callq	_assert
	cmpq	%rbx, 16(%r15)
	je	LBB0_4
## %bb.3:
	xorl	%r13d, %r13d
	cmpq	%rbx, 24(%r15)
	setne	%r13b
LBB0_4:
	movl	%r13d, %edi
	callq	_assert
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	cmpq	8(%r15), %rax
	jle	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_pcache1RemoveFromHash
	movq	%rbx, %rdi
	callq	_pcache1FreePage
LBB0_11:
	movq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pcache1LeaveMutex              ## TAILCALL
LBB0_7:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, (%rax)
	movq	%rax, 8(%rbx)
	jmp	LBB0_10
LBB0_9:
	movq	%rbx, 24(%r15)
LBB0_10:
	movq	%rbx, 16(%r15)
	incl	8(%r14)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pcache1Unpin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcache1Unpin
_pcache1Unpin:                          ; @pcache1Unpin
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	ldr	x8, [x1, #16]
	cmp	x8, x0
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	bl	_pcache1EnterMutex
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, eq
LBB0_3:
	bl	_assert
	ldr	x8, [x21, #16]
	cmp	x8, x20
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x21, #24]
	cmp	x8, x20
	cset	w0, ne
	bl	_assert
	cbnz	w22, LBB0_7
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	bl	_assert
	cbnz	w22, LBB0_7
LBB0_6:
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.le	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_pcache1RemoveFromHash
	mov	x0, x20
	bl	_pcache1FreePage
LBB0_8:
	ldr	x0, [x19]
	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
	b	_pcache1LeaveMutex
LBB0_9:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_11
; %bb.10:
	str	x20, [x8]
	str	x8, [x20, #8]
	b	LBB0_12
LBB0_11:
	str	x20, [x21, #24]
LBB0_12:
	str	x20, [x21, #16]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pcache1Unpin
.subsections_via_symbols
