	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function old_dev_pager_fault
_old_dev_pager_fault:                   ## @old_dev_pager_fault
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)
	callq	_VM_OBJECT_WUNLOCK
	movq	8(%r13), %rbx
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_dev_refthread
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_curthread@GOTPCREL(%rip), %rdx
	movl	%r12d, %ecx
	movq	(%rdx), %r12
	movq	(%r12), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	$0, (%r12)
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %r15
	callq	*(%rax)
	movl	%eax, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
	movl	-52(%rbp), %esi
	movq	%rbx, %rdi
	callq	_dev_relthread
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_1:
	movq	%r13, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	_VM_PAGER_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movl	-48(%rbp), %edi
	callq	_vm_phys_paddr_to_vm_page
	testq	%rax, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_9
## %bb.5:
	movq	%rax, %rdi
	callq	_pmap_page_get_memattr
	movl	-44(%rbp), %edx
	cmpl	%edx, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %r14d
	movq	_D_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	jne	LBB0_8
## %bb.7:
	movq	16(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_printf
LBB0_8:
	movl	%r14d, -44(%rbp)
LBB0_9:
	movq	(%rbx), %r15
	movq	_PG_FICTITIOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_VM_OBJECT_WLOCK
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	callq	_vm_page_updatefake
	jmp	LBB0_12
LBB0_11:
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_vm_page_getfake
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	(%rbx), %rcx
	movl	4(%rcx), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_vm_page_replace_checked
	movq	(%rbx), %rdi
	callq	_vm_page_free
	movq	%r15, (%rbx)
LBB0_12:
	movq	%r15, %rdi
	callq	_vm_page_valid
	movq	_VM_PAGER_OK@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_PAGER_FAIL,4,2              ## @VM_PAGER_FAIL
	.comm	_curthread,8,3                  ## @curthread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: dev_pager_getpage: map function returns error %d"

	.comm	_D_MEM,4,2                      ## @D_MEM
L_.str.1:                               ## @.str.1
	.asciz	"WARNING: Device driver %s has set \"memattr\" inconsistently (drv %u pmap %u).\n"

	.comm	_PG_FICTITIOUS,4,2              ## @PG_FICTITIOUS
	.comm	_VM_PAGER_OK,4,2                ## @VM_PAGER_OK
	.no_dead_strip	_old_dev_pager_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function old_dev_pager_fault
_old_dev_pager_fault:                   ; @old_dev_pager_fault
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w8, [x0]
	str	w8, [sp, #40]
	bl	_VM_OBJECT_WUNLOCK
	ldr	x24, [x19, #8]
	add	x1, sp, #36
	mov	x0, x24
	bl	_dev_refthread
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	ldr	x26, [x25]
	str	xzr, [x25]
	ldr	x8, [x0]
	add	x2, sp, #44
	add	x4, sp, #40
	mov	x0, x24
	mov	x1, x23
	mov	x3, x22
	blr	x8
	mov	x22, x0
	str	x26, [x25]
	ldr	w1, [sp, #36]
	mov	x0, x24
	bl	_dev_relthread
	cbz	w22, LBB0_4
; %bb.2:
	str	x22, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_3:
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
Lloh5:
	adrp	x8, _VM_PAGER_FAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VM_PAGER_FAIL@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
	ldr	w0, [sp, #44]
	bl	_vm_phys_paddr_to_vm_page
	cbz	x0, LBB0_9
; %bb.5:
	bl	_pmap_page_get_memattr
	ldr	w8, [sp, #40]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.6:
	mov	x22, x0
	ldr	w9, [x21, #8]
Lloh7:
	adrp	x10, _D_MEM@GOTPAGE
Lloh8:
	ldr	x10, [x10, _D_MEM@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_8
; %bb.7:
	ldr	x9, [x21, #16]
	stp	x8, x22, [sp, #8]
	str	x9, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_8:
	str	w22, [sp, #40]
LBB0_9:
	ldr	x21, [x20]
	ldr	w8, [x21]
Lloh12:
	adrp	x9, _PG_FICTITIOUS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PG_FICTITIOUS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
	ldp	w2, w1, [sp, #40]
	mov	x0, x21
	bl	_vm_page_updatefake
	b	LBB0_12
LBB0_11:
	ldp	w1, w0, [sp, #40]
	bl	_vm_page_getfake
	mov	x21, x0
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
	ldr	x3, [x20]
	ldr	w2, [x3, #4]
	mov	x0, x21
	mov	x1, x19
	bl	_vm_page_replace_checked
	ldr	x0, [x20]
	bl	_vm_page_free
	str	x21, [x20]
LBB0_12:
	mov	x0, x21
	bl	_vm_page_valid
Lloh15:
	adrp	x8, _VM_PAGER_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VM_PAGER_OK@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_PAGER_FAIL,4,2              ; @VM_PAGER_FAIL
	.comm	_curthread,8,3                  ; @curthread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: dev_pager_getpage: map function returns error %d"

	.comm	_D_MEM,4,2                      ; @D_MEM
l_.str.1:                               ; @.str.1
	.asciz	"WARNING: Device driver %s has set \"memattr\" inconsistently (drv %u pmap %u).\n"

	.comm	_PG_FICTITIOUS,4,2              ; @PG_FICTITIOUS
	.comm	_VM_PAGER_OK,4,2                ; @VM_PAGER_OK
	.no_dead_strip	_old_dev_pager_fault
.subsections_via_symbols
