	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdev_pager_allocate            ## -- Begin function cdev_pager_allocate
	.p2align	4, 0x90
_cdev_pager_allocate:                   ## @cdev_pager_allocate
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, %r14d
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	_OBJT_DEVICE@GOTPCREL(%rip), %rcx
	movq	_OBJT_MGTDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, (%rcx)
	je	LBB0_3
## %bb.1:
	cmpl	%r15d, %eax
	jne	LBB0_2
LBB0_3:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	cmpl	%r15d, %eax
	je	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
LBB0_5:
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_2
## %bb.7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_round_page
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_OFF_TO_IDX
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_OFF_TO_IDX
	addq	%r13, %rax
	movq	_OBJ_MAX_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_2
## %bb.9:
	movl	%r12d, %edi
	movq	%rax, %r13
	callq	_OFF_TO_IDX
	movq	%r13, %rcx
	cmpq	%rax, %r13
	jl	LBB0_2
## %bb.11:
	movl	%ebx, %edi
	callq	_OFF_TO_IDX
	movq	%r13, %rcx
	cmpq	%rax, %r13
	jl	LBB0_2
## %bb.13:
	movq	16(%rbp), %r8
	leaq	-60(%rbp), %r9
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_15
LBB0_2:
	xorl	%r12d, %r12d
LBB0_24:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_dev_pager_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_dev_pager_object_list@GOTPCREL(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vm_pager_object_lookup
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	%rax, %rbx
	cmpq	(%rax), %r13
	jle	LBB0_18
## %bb.17:
	movq	%r13, (%rbx)
LBB0_18:
	xorl	%edi, %edi
	cmpl	%r15d, 8(%rbx)
	sete	%dil
	movl	%r15d, %esi
	callq	_KASSERT
LBB0_19:
	movq	_dev_pager_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	%rbx, %r12
	jmp	LBB0_24
LBB0_20:
	movq	_dev_pager_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movl	%r15d, %edi
	movq	%r13, %r14
	movq	%r13, %rsi
	callq	_vm_object_allocate
	movq	%rax, %rbx
	movq	_OBJ_COLORED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 52(%rbx)
	movl	-60(%rbp), %eax
	movl	%eax, 48(%rbx)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, 16(%rbx)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, 24(%rbx)
	movq	%r12, 40(%rbx)
	leaq	32(%rbx), %rdi
	callq	_TAILQ_INIT
	movq	_dev_pager_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_dev_pager_object_list@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_vm_pager_object_lookup
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	movq	%rax, %r12
	cmpq	(%rax), %r14
	jle	LBB0_23
## %bb.22:
	movq	%r14, (%r12)
LBB0_23:
	xorl	%edi, %edi
	cmpl	%r15d, 8(%r12)
	sete	%dil
	movl	%r15d, %esi
	callq	_KASSERT
	xorl	%edi, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, 24(%r12)
	sete	%dil
	callq	_KASSERT
	movq	_dev_pager_mtx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_unlock
	movq	%rbx, 16(%rbx)
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_pager_object_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_dev_pager_object_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%r14, %rdi
	callq	_mtx_unlock
	movq	%rbx, %rdi
	callq	_vm_object_deallocate
	jmp	LBB0_24
LBB0_25:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	_pager_object_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_dev_pager_object_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	cmpq	$0, 8(%r13)
	je	LBB0_19
## %bb.26:
	movq	_OBJ_POPULATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vm_object_set_flag
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_DEVICE,4,2                ## @OBJT_DEVICE
	.comm	_OBJT_MGTDEVICE,4,2             ## @OBJT_MGTDEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"populate on unmanaged device pager"

	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_OBJ_MAX_SIZE,8,3               ## @OBJ_MAX_SIZE
	.comm	_dev_pager_mtx,4,2              ## @dev_pager_mtx
	.comm	_dev_pager_object_list,4,2      ## @dev_pager_object_list
	.comm	_OBJ_COLORED,4,2                ## @OBJ_COLORED
	.comm	_pager_object_list,4,2          ## @pager_object_list
	.comm	_OBJ_POPULATE,4,2               ## @OBJ_POPULATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdev_pager_allocate            ; -- Begin function cdev_pager_allocate
	.p2align	2
_cdev_pager_allocate:                   ; @cdev_pager_allocate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _OBJT_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJT_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _OBJT_MGTDEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OBJT_MGTDEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w1
	ccmp	w8, w1, #4, ne
	b.ne	LBB0_9
; %bb.1:
	mov	x22, x6
	mov	x24, x5
	mov	x25, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh8:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w24
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x23
	bl	_round_page
	mov	x26, x0
	mov	x0, x24
	bl	_OFF_TO_IDX
	mov	x23, x0
	mov	x0, x26
	bl	_OFF_TO_IDX
Lloh11:
	adrp	x8, _OBJ_MAX_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OBJ_MAX_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x23, x0, x23
	cmp	x23, x8
	b.gt	LBB0_9
; %bb.6:
	mov	x0, x24
	bl	_OFF_TO_IDX
	cmp	x23, x0
	b.lt	LBB0_9
; %bb.7:
	mov	x0, x26
	bl	_OFF_TO_IDX
	cmp	x23, x0
	b.lt	LBB0_9
; %bb.8:
	ldr	x8, [x19]
	add	x5, sp, #12
	mov	x0, x21
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	blr	x8
	cbz	x0, LBB0_11
LBB0_9:
	mov	x24, #0
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
Lloh14:
	adrp	x0, _dev_pager_mtx@GOTPAGE
Lloh15:
	ldr	x0, [x0, _dev_pager_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh16:
	adrp	x0, _dev_pager_object_list@GOTPAGE
Lloh17:
	ldr	x0, [x0, _dev_pager_object_list@GOTPAGEOFF]
	mov	x1, x21
	bl	_vm_pager_object_lookup
	cbz	x0, LBB0_16
; %bb.12:
	mov	x22, x0
	ldr	x8, [x0]
	cmp	x23, x8
	b.le	LBB0_14
; %bb.13:
	str	x23, [x22]
LBB0_14:
	ldr	w8, [x22, #8]
	cmp	w8, w20
	cset	w0, eq
	mov	w1, w20
	bl	_KASSERT
LBB0_15:
Lloh18:
	adrp	x0, _dev_pager_mtx@GOTPAGE
Lloh19:
	ldr	x0, [x0, _dev_pager_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
	mov	x24, x22
	b	LBB0_10
LBB0_16:
Lloh20:
	adrp	x24, _dev_pager_mtx@GOTPAGE
Lloh21:
	ldr	x24, [x24, _dev_pager_mtx@GOTPAGEOFF]
	mov	x0, x24
	bl	_mtx_unlock
	mov	x0, x20
	mov	x1, x23
	bl	_vm_object_allocate
	mov	x22, x0
Lloh22:
	adrp	x8, _OBJ_COLORED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OBJ_COLORED@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x0, #52]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	stp	w9, w8, [x0, #48]
	stp	x21, x19, [x0, #16]
	str	x21, [x0, #40]
	add	x0, x0, #32
	bl	_TAILQ_INIT
	mov	x0, x24
	bl	_mtx_lock
Lloh25:
	adrp	x0, _dev_pager_object_list@GOTPAGE
Lloh26:
	ldr	x0, [x0, _dev_pager_object_list@GOTPAGEOFF]
	mov	x1, x21
	bl	_vm_pager_object_lookup
	cbz	x0, LBB0_20
; %bb.17:
	mov	x24, x0
	ldr	x8, [x0]
	cmp	x23, x8
	b.le	LBB0_19
; %bb.18:
	str	x23, [x24]
LBB0_19:
	ldr	w8, [x24, #8]
	cmp	w8, w20
	cset	w0, eq
	mov	w1, w20
	bl	_KASSERT
	ldr	x8, [x24, #24]
	cmp	x8, x19
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
Lloh27:
	adrp	x19, _dev_pager_mtx@GOTPAGE
Lloh28:
	ldr	x19, [x19, _dev_pager_mtx@GOTPAGEOFF]
	mov	x0, x19
	bl	_mtx_unlock
	str	x22, [x22, #16]
	mov	x0, x19
	bl	_mtx_lock
Lloh29:
	adrp	x8, _pager_object_list@GOTPAGE
Lloh30:
	ldr	x8, [x8, _pager_object_list@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x0, _dev_pager_object_list@GOTPAGE
Lloh33:
	ldr	x0, [x0, _dev_pager_object_list@GOTPAGEOFF]
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
	mov	x0, x19
	bl	_mtx_unlock
	mov	x0, x22
	bl	_vm_object_deallocate
	b	LBB0_10
LBB0_20:
	str	x21, [x22, #16]
Lloh34:
	adrp	x8, _pager_object_list@GOTPAGE
Lloh35:
	ldr	x8, [x8, _pager_object_list@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x0, _dev_pager_object_list@GOTPAGE
Lloh38:
	ldr	x0, [x0, _dev_pager_object_list@GOTPAGEOFF]
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.21:
Lloh39:
	adrp	x8, _OBJ_POPULATE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _OBJ_POPULATE@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_vm_object_set_flag
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJT_DEVICE,4,2                ; @OBJT_DEVICE
	.comm	_OBJT_MGTDEVICE,4,2             ; @OBJT_MGTDEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"populate on unmanaged device pager"

	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_OBJ_MAX_SIZE,8,3               ; @OBJ_MAX_SIZE
	.comm	_dev_pager_mtx,4,2              ; @dev_pager_mtx
	.comm	_dev_pager_object_list,4,2      ; @dev_pager_object_list
	.comm	_OBJ_COLORED,4,2                ; @OBJ_COLORED
	.comm	_pager_object_list,4,2          ; @pager_object_list
	.comm	_OBJ_POPULATE,4,2               ; @OBJ_POPULATE
.subsections_via_symbols
