	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_bo_init_pager
_tegra_bo_init_pager:                   ## @tegra_bo_init_pager
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	28(%rdi), %edi
	callq	_round_page
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, 24(%r14)
	movq	_kmem_arena@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_BESTFIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	16(%r14), %rcx
	movq	%rbx, %rsi
	callq	_vmem_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_2:
	movl	20(%r14), %edi
	callq	_VM_OBJECT_WLOCK
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	movq	_VPO_UNMANAGED@GOTPCREL(%rip), %r15
	movq	_PG_FICTITIOUS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, 4(%rdi)
	movl	(%r12), %eax
	orl	%eax, (%rdi)
	movl	20(%r14), %esi
	movl	%ebx, %edx
	callq	_vm_page_insert
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_6:
	movl	20(%r14), %edi
	callq	_VM_OBJECT_WUNLOCK
	movl	16(%r14), %edi
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	callq	_pmap_qenter
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_kmem_arena,4,2                 ## @kmem_arena
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_BESTFIT,4,2                  ## @M_BESTFIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VPO_UNMANAGED,4,2              ## @VPO_UNMANAGED
	.comm	_PG_FICTITIOUS,4,2              ## @PG_FICTITIOUS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tegra_bo_init_pager
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_bo_init_pager
_tegra_bo_init_pager:                   ; @tegra_bo_init_pager
	.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	x19, x0
	ldr	w0, [x0, #28]
	bl	_round_page
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_VM_PAGE_TO_PHYS
	str	w0, [x19, #24]
Lloh0:
	adrp	x8, _kmem_arena@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kmem_arena@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _M_BESTFIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_BESTFIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x3, x19, #16
	mov	x1, x20
	bl	_vmem_alloc
	cbz	x0, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_3:
	ldr	w0, [x19, #20]
	bl	_VM_OBJECT_WLOCK
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x20, #0
Lloh11:
	adrp	x21, _VPO_UNMANAGED@GOTPAGE
Lloh12:
	ldr	x21, [x21, _VPO_UNMANAGED@GOTPAGEOFF]
Lloh13:
	adrp	x22, _PG_FICTITIOUS@GOTPAGE
Lloh14:
	ldr	x22, [x22, _PG_FICTITIOUS@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
	ldr	w8, [x21]
	ldp	w10, w9, [x0]
	bic	w8, w9, w8
	ldr	w9, [x22]
	orr	w9, w10, w9
	stp	w9, w8, [x0]
	ldr	w1, [x19, #20]
	mov	x2, x20
	bl	_vm_page_insert
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_7:
	ldr	w0, [x19, #20]
	bl	_VM_OBJECT_WUNLOCK
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #8]
	ldr	w2, [x19]
	bl	_pmap_qenter
	mov	w0, #0
LBB0_8:
	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_9:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_kmem_arena,4,2                 ; @kmem_arena
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_BESTFIT,4,2                  ; @M_BESTFIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VPO_UNMANAGED,4,2              ; @VPO_UNMANAGED
	.comm	_PG_FICTITIOUS,4,2              ; @PG_FICTITIOUS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tegra_bo_init_pager
.subsections_via_symbols
