	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_fault_lock_vnode
_vm_fault_lock_vnode:                   ## @vm_fault_lock_vnode
	.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
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rdx
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rax), %r14
	cmpq	(%rdi), %r14
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_unlock_vp
	movq	%r14, %rdi
	callq	_VOP_ISLOCKED
	movl	%eax, %r15d
	movq	_LK_EXCLUSIVE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_5
## %bb.4:
	movq	_LK_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	movq	_LK_CANRECURSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r15d, %esi
	movq	_LK_NOWAIT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_curthread@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_vget
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_vhold
	movq	%rbx, %rdi
	callq	_release_page
	movq	%rbx, %rdi
	callq	_unlock_and_deallocate
	movq	_LK_RETRY@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_LK_CANRECURSE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_vget
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_vdrop
	movq	%r14, (%rbx)
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	movslq	%r15d, %rsi
	callq	_KASSERT
	movq	_KERN_RESOURCE_SHORTAGE@GOTPCREL(%rip), %r12
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ASSERT_VOP_LOCKED
	jmp	LBB0_8
LBB0_6:
	movq	%r14, (%rbx)
LBB0_8:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_VNODE,8,3                 ## @OBJT_VNODE
	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"saved vnode is not locked"

	.comm	_LK_EXCLUSIVE,4,2               ## @LK_EXCLUSIVE
	.comm	_LK_SHARED,4,2                  ## @LK_SHARED
	.comm	_LK_CANRECURSE,4,2              ## @LK_CANRECURSE
	.comm	_LK_NOWAIT,4,2                  ## @LK_NOWAIT
	.comm	_curthread,4,2                  ## @curthread
	.comm	_LK_RETRY,4,2                   ## @LK_RETRY
	.comm	_KERN_RESOURCE_SHORTAGE,4,2     ## @KERN_RESOURCE_SHORTAGE
	.no_dead_strip	_vm_fault_lock_vnode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_fault_lock_vnode
_vm_fault_lock_vnode:                   ; @vm_fault_lock_vnode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _OBJT_VNODE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _OBJT_VNODE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x20, [x8, #8]
	ldr	x8, [x0]
	cmp	x20, x8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_unlock_vp
	mov	x0, x20
	bl	_VOP_ISLOCKED
Lloh3:
	adrp	x8, _LK_EXCLUSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LK_EXCLUSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _LK_SHARED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LK_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w21, w0, w9, eq
Lloh9:
	adrp	x22, _LK_CANRECURSE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _LK_CANRECURSE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh11:
	adrp	x9, _LK_NOWAIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LK_NOWAIT@GOTPAGEOFF]
	orr	w8, w21, w8
Lloh13:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh14:
	adrp	x23, _curthread@GOTPAGE
Lloh15:
	ldr	x23, [x23, _curthread@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_vget
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_vhold
	mov	x0, x19
	bl	_release_page
	mov	x0, x19
	bl	_unlock_and_deallocate
Lloh16:
	adrp	x8, _LK_RETRY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LK_RETRY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w8, w8, w21
	ldr	w9, [x22]
	orr	w1, w8, w9
	ldr	w2, [x23]
	mov	x0, x20
	bl	_vget
	mov	x21, x0
	mov	x0, x20
	bl	_vdrop
	str	x20, [x19]
	cmp	w21, #0
	cset	w0, eq
	sxtw	x1, w21
	bl	_KASSERT
Lloh19:
	adrp	x8, _KERN_RESOURCE_SHORTAGE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KERN_RESOURCE_SHORTAGE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ASSERT_VOP_LOCKED
	b	LBB0_6
LBB0_5:
	str	x20, [x19]
LBB0_6:
Lloh23:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJT_VNODE,8,3                 ; @OBJT_VNODE
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"saved vnode is not locked"

	.comm	_LK_EXCLUSIVE,4,2               ; @LK_EXCLUSIVE
	.comm	_LK_SHARED,4,2                  ; @LK_SHARED
	.comm	_LK_CANRECURSE,4,2              ; @LK_CANRECURSE
	.comm	_LK_NOWAIT,4,2                  ; @LK_NOWAIT
	.comm	_curthread,4,2                  ; @curthread
	.comm	_LK_RETRY,4,2                   ; @LK_RETRY
	.comm	_KERN_RESOURCE_SHORTAGE,4,2     ; @KERN_RESOURCE_SHORTAGE
	.no_dead_strip	_vm_fault_lock_vnode
.subsections_via_symbols
