	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnode_destroy_vobject          ## -- Begin function vnode_destroy_vobject
	.p2align	4, 0x90
_vnode_destroy_vobject:                 ## @vnode_destroy_vobject
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	cmpq	%rdi, 24(%rbx)
	je	LBB0_2
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ASSERT_VOP_ELOCKED
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	(%rbx), %rax
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_MPASS
	movq	%rbx, %rdi
	callq	_umtx_shm_object_terminated
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.6:
	movq	%rbx, %rdi
	callq	_vm_pager_deallocate
	jmp	LBB0_7
LBB0_3:
	movq	_OBJ_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, 16(%rbx)
	je	LBB0_4
## %bb.5:
	movq	$0, (%r14)
LBB0_7:
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
LBB0_8:
	movq	(%r14), %rsi
	xorl	%edi, %edi
	testq	%rsi, %rsi
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_KASSERT                        ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_vm_object_set_flag
	movq	_OBJPC_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_vm_object_page_clean
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	_V_SAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vinvalbuf
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_BO_LOCK
	movq	_BO_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	%r15, %rdi
	callq	_BO_UNLOCK
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	%rbx, %rdi
	callq	_vm_object_terminate
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vnode_destroy_vobject"

	.comm	_OBJT_VNODE,8,3                 ## @OBJT_VNODE
	.comm	_OBJ_DEAD,4,2                   ## @OBJ_DEAD
	.comm	_OBJPC_SYNC,4,2                 ## @OBJPC_SYNC
	.comm	_V_SAVE,4,2                     ## @V_SAVE
	.comm	_BO_DEAD,4,2                    ## @BO_DEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnode_destroy_vobject          ; -- Begin function vnode_destroy_vobject
	.p2align	2
_vnode_destroy_vobject:                 ; @vnode_destroy_vobject
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20, #24]
	cmp	x8, x0
	b.eq	LBB0_3
LBB0_2:
	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
	ret
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ASSERT_VOP_ELOCKED
	mov	x0, x20
	bl	_VM_OBJECT_WLOCK
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _OBJT_VNODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OBJT_VNODE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_MPASS
	mov	x0, x20
	bl	_umtx_shm_object_terminated
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_vm_pager_deallocate
	b	LBB0_7
LBB0_5:
	ldr	w8, [x20, #16]
Lloh5:
	adrp	x9, _OBJ_DEAD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OBJ_DEAD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	tst	w1, w8
	b.eq	LBB0_9
; %bb.6:
	str	xzr, [x19]
LBB0_7:
	mov	x0, x20
	bl	_VM_OBJECT_WUNLOCK
LBB0_8:
	ldr	x1, [x19]
	cmp	x1, #0
	cset	w0, eq
	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	_KASSERT
LBB0_9:
	mov	x0, x20
	bl	_vm_object_set_flag
Lloh8:
	adrp	x8, _OBJPC_SYNC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OBJPC_SYNC@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_vm_object_page_clean
	mov	x0, x20
	bl	_VM_OBJECT_WUNLOCK
Lloh11:
	adrp	x8, _V_SAVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V_SAVE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_vinvalbuf
	add	x21, x19, #8
	mov	x0, x21
	bl	_BO_LOCK
Lloh14:
	adrp	x8, _BO_DEAD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BO_DEAD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x21
	bl	_BO_UNLOCK
	mov	x0, x20
	bl	_VM_OBJECT_WLOCK
	mov	x0, x20
	bl	_vm_object_terminate
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vnode_destroy_vobject"

	.comm	_OBJT_VNODE,8,3                 ; @OBJT_VNODE
	.comm	_OBJ_DEAD,4,2                   ; @OBJ_DEAD
	.comm	_OBJPC_SYNC,4,2                 ; @OBJPC_SYNC
	.comm	_V_SAVE,4,2                     ; @V_SAVE
	.comm	_BO_DEAD,4,2                    ; @BO_DEAD
.subsections_via_symbols
