	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psbfb_vm_fault
_psbfb_vm_fault:                        ## @psbfb_vm_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r14
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	movl	(%rcx), %edi
	callq	_to_gtt_range
	movq	_VM_FAULT_SIGBUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	(%rbx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	%r14, %rdi
	callq	_vma_pages
	movl	%eax, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_pgprot_noncached
	movl	%eax, (%r14)
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.1:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	shlq	%cl, %rax
	subq	%rax, %rbx
	addq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movq	%r13, %rdi
	shrq	%cl, %rdi
	movq	_PFN_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	___pfn_to_pfn_t
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_vmf_insert_mixed
	movl	%eax, %r12d
	movl	%eax, %edi
	movq	_VM_FAULT_ERROR@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, %rbx
	addq	%rax, %r13
	decl	%r15d
	jne	LBB0_2
LBB0_4:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_FAULT_SIGBUS,4,2            ## @VM_FAULT_SIGBUS
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_PFN_DEV,4,2                    ## @PFN_DEV
	.comm	_VM_FAULT_ERROR,4,2             ## @VM_FAULT_ERROR
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_psbfb_vm_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psbfb_vm_fault
_psbfb_vm_fault:                        ; @psbfb_vm_fault
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
	ldr	x19, [x0, #16]
	ldr	x8, [x19, #8]
	ldp	x8, x9, [x8]
	ldr	x20, [x9]
	ldr	w0, [x8]
	bl	_to_gtt_range
Lloh0:
	adrp	x8, _VM_FAULT_SIGBUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_FAULT_SIGBUS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x24, [x20]
	ldr	x25, [x0]
	mov	x0, x19
	bl	_vma_pages
	mov	x20, x0
	ldp	x26, x22, [x22]
Lloh3:
	adrp	x23, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x27, [x23]
	ldr	w0, [x19]
	bl	_pgprot_noncached
	str	w0, [x19]
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.1:
	lsl	x8, x22, x27
	sub	x22, x26, x8
	add	x24, x25, x24
Lloh5:
	adrp	x25, _PFN_DEV@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PFN_DEV@GOTPAGEOFF]
Lloh7:
	adrp	x26, _VM_FAULT_ERROR@GOTPAGE
Lloh8:
	ldr	x26, [x26, _VM_FAULT_ERROR@GOTPAGEOFF]
Lloh9:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	lsr	x0, x24, x8
	ldr	w1, [x25]
	bl	___pfn_to_pfn_t
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_vmf_insert_mixed
	mov	x21, x0
	ldr	w8, [x26]
	and	w0, w8, w0
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	add	x22, x8, x22
	add	x24, x8, x24
	subs	w20, w20, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x0, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_FAULT_SIGBUS,4,2            ; @VM_FAULT_SIGBUS
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_PFN_DEV,4,2                    ; @PFN_DEV
	.comm	_VM_FAULT_ERROR,4,2             ; @VM_FAULT_ERROR
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_psbfb_vm_fault
.subsections_via_symbols
