	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vnode_pager_release_writecount
_vnode_pager_release_writecount:        ## @vnode_pager_release_writecount
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_VM_OBJECT_WLOCK
	movq	(%rbx), %rax
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rcx
	subq	%r14, %rcx
	movq	16(%rbx), %rax
	subq	%rcx, %rax
	jne	LBB0_2
## %bb.4:
	movq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_vhold
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	$0, -40(%rbp)
	movq	_V_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_vn_start_write
	movq	_LK_SHARED@GOTPCREL(%rip), %rax
	movq	_LK_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vn_lock
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_vnode_pager_update_writecount
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_VOP_UNLOCK
	movq	%r12, %rdi
	callq	_vdrop
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_vn_finished_write
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rax, 16(%rbx)
LBB0_3:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VM_OBJECT_WUNLOCK              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_VNODE,8,3                 ## @OBJT_VNODE
	.comm	_V_WAIT,4,2                     ## @V_WAIT
	.comm	_LK_SHARED,4,2                  ## @LK_SHARED
	.comm	_LK_RETRY,4,2                   ## @LK_RETRY
	.no_dead_strip	_vnode_pager_release_writecount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vnode_pager_release_writecount
_vnode_pager_release_writecount:        ; @vnode_pager_release_writecount
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_VM_OBJECT_WLOCK
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _OBJT_VNODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJT_VNODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x19, #16]
	sub	x9, x21, x20
	subs	x8, x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x22, [x19, #8]
	mov	x0, x22
	bl	_vhold
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _V_WAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x22
	bl	_vn_start_write
Lloh6:
	adrp	x8, _LK_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LK_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _LK_RETRY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LK_RETRY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_vn_lock
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_vnode_pager_update_writecount
	mov	x0, x22
	mov	w1, #0
	bl	_VOP_UNLOCK
	mov	x0, x22
	bl	_vdrop
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_vn_finished_write
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	str	x8, [x19, #16]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_VM_OBJECT_WUNLOCK
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJT_VNODE,8,3                 ; @OBJT_VNODE
	.comm	_V_WAIT,4,2                     ; @V_WAIT
	.comm	_LK_SHARED,4,2                  ; @LK_SHARED
	.comm	_LK_RETRY,4,2                   ; @LK_RETRY
	.no_dead_strip	_vnode_pager_release_writecount
.subsections_via_symbols
