	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnode_pager_alloc              ## -- Begin function vnode_pager_alloc
	.p2align	4, 0x90
_vnode_pager_alloc:                     ## @vnode_pager_alloc
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_ASSERT_VOP_LOCKED
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.3:
	movq	_vnode_domainset@GOTPCREL(%rip), %r13
	movq	_VV_VMSIZEVNLOCK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_round_page
	movl	%eax, %edi
	callq	_OFF_TO_IDX
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_vm_object_allocate
	movq	%rax, %rbx
	movl	%r14d, 32(%rax)
	movq	$0, 24(%rax)
	movl	(%r13), %eax
	movl	%eax, 16(%rbx)
	movq	%r15, 8(%rbx)
	movl	(%r12), %eax
	testl	%eax, 8(%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	_OBJ_SIZEVNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vm_object_set_flag
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_VI_LOCK
	cmpq	$0, 16(%r15)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_VI_UNLOCK
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WLOCK
	movslq	(%rbx), %rsi
	xorl	%edi, %edi
	cmpq	$1, %rsi
	sete	%dil
	callq	_KASSERT
	movq	_OBJT_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_refcount_init
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	%rbx, %rdi
	callq	_vm_object_destroy
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
LBB0_8:
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	%rbx, %rdi
	callq	_refcount_acquire
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
LBB0_9:
	movq	%r15, %rdi
	callq	_vrefact
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, 16(%r15)
	movq	%r15, %rdi
	callq	_VI_UNLOCK
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vnode_pager_alloc"

L_.str.1:                               ## @.str.1
	.asciz	"vnode_pager_alloc: no vnode reference"

	.comm	_OBJT_VNODE,4,2                 ## @OBJT_VNODE
	.comm	_vnode_domainset,4,2            ## @vnode_domainset
	.comm	_VV_VMSIZEVNLOCK,4,2            ## @VV_VMSIZEVNLOCK
	.comm	_OBJ_SIZEVNLOCK,4,2             ## @OBJ_SIZEVNLOCK
	.comm	_OBJT_DEAD,4,2                  ## @OBJT_DEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnode_pager_alloc              ; -- Begin function vnode_pager_alloc
	.p2align	2
_vnode_pager_alloc:                     ; @vnode_pager_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ASSERT_VOP_LOCKED
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldr	x21, [x19, #16]
	cbnz	x21, LBB0_7
; %bb.2:
Lloh4:
	adrp	x22, _OBJT_VNODE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _OBJT_VNODE@GOTPAGEOFF]
Lloh6:
	adrp	x23, _vnode_domainset@GOTPAGE
Lloh7:
	ldr	x23, [x23, _vnode_domainset@GOTPAGEOFF]
Lloh8:
	adrp	x24, _VV_VMSIZEVNLOCK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _VV_VMSIZEVNLOCK@GOTPAGEOFF]
Lloh10:
	adrp	x25, _OBJT_DEAD@GOTPAGE
Lloh11:
	ldr	x25, [x25, _OBJT_DEAD@GOTPAGEOFF]
Lloh12:
	adrp	x26, _OBJ_SIZEVNLOCK@GOTPAGE
Lloh13:
	ldr	x26, [x26, _OBJ_SIZEVNLOCK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x22]
	mov	x0, x20
	bl	_round_page
	bl	_OFF_TO_IDX
	mov	x1, x0
	mov	x0, x21
	bl	_vm_object_allocate
	mov	x21, x0
	str	w20, [x0, #32]
	str	xzr, [x0, #24]
	ldr	w8, [x23]
	str	w8, [x0, #16]
	str	x19, [x0, #8]
	ldr	w8, [x19, #8]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_VM_OBJECT_WLOCK
	ldr	w1, [x26]
	mov	x0, x21
	bl	_vm_object_set_flag
	mov	x0, x21
	bl	_VM_OBJECT_WUNLOCK
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_VI_LOCK
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_VI_UNLOCK
	mov	x0, x21
	bl	_VM_OBJECT_WLOCK
	ldrsw	x1, [x21]
	cmp	x1, #1
	cset	w0, eq
	bl	_KASSERT
	ldr	w8, [x25]
	str	w8, [x21, #4]
	mov	x0, x21
	mov	w1, #0
	bl	_refcount_init
	mov	x0, x21
	bl	_VM_OBJECT_WUNLOCK
	mov	x0, x21
	bl	_vm_object_destroy
	ldr	x21, [x19, #16]
	cbz	x21, LBB0_3
LBB0_7:
	mov	x0, x21
	bl	_VM_OBJECT_WLOCK
	mov	x0, x21
	bl	_refcount_acquire
	mov	x0, x21
	bl	_VM_OBJECT_WUNLOCK
LBB0_8:
	mov	x0, x19
	bl	_vrefact
	b	LBB0_10
LBB0_9:
	mov	x21, #0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	str	x21, [x19, #16]
	mov	x0, x19
	bl	_VI_UNLOCK
	b	LBB0_8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vnode_pager_alloc"

l_.str.1:                               ; @.str.1
	.asciz	"vnode_pager_alloc: no vnode reference"

	.comm	_OBJT_VNODE,4,2                 ; @OBJT_VNODE
	.comm	_vnode_domainset,4,2            ; @vnode_domainset
	.comm	_VV_VMSIZEVNLOCK,4,2            ; @VV_VMSIZEVNLOCK
	.comm	_OBJ_SIZEVNLOCK,4,2             ; @OBJ_SIZEVNLOCK
	.comm	_OBJT_DEAD,4,2                  ; @OBJT_DEAD
.subsections_via_symbols
