	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_gem_fault                  ## -- Begin function msm_gem_fault
	.p2align	4, 0x90
_msm_gem_fault:                         ## @msm_gem_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movq	8(%r15), %r13
	movq	%r13, %rdi
	callq	_to_msm_bo
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_VM_FAULT_NOPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	(%rbx), %rax
	movq	_MSM_MADV_WILLNEED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_VM_FAULT_SIGBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	%r13, %rdi
	callq	_get_pages
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %edi
	callq	_vmf_error
	jmp	LBB0_7
LBB0_6:
	movq	(%r12), %rax
	subq	(%r15), %rax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r13
	movb	(%r13), %cl
	shrq	%cl, %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_page_to_pfn
	movq	%rax, %rbx
	movq	(%r12), %rsi
	movb	(%r13), %cl
	shlq	%cl, %rax
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_VERB
	movq	(%r12), %r12
	movq	_PFN_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___pfn_to_pfn_t
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_vmf_insert_mixed
LBB0_7:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_FAULT_NOPAGE,4,2            ## @VM_FAULT_NOPAGE
	.comm	_MSM_MADV_WILLNEED,8,3          ## @MSM_MADV_WILLNEED
	.comm	_VM_FAULT_SIGBUS,4,2            ## @VM_FAULT_SIGBUS
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inserting %p pfn %lx, pa %lx"

	.comm	_PFN_DEV,4,2                    ## @PFN_DEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_gem_fault                  ; -- Begin function msm_gem_fault
	.p2align	2
_msm_gem_fault:                         ; @msm_gem_fault
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	x22, [x20, #8]
	mov	x0, x22
	bl	_to_msm_bo
	mov	x23, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VM_FAULT_NOPAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_FAULT_NOPAGE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_2:
	ldr	x8, [x23]
Lloh3:
	adrp	x9, _MSM_MADV_WILLNEED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSM_MADV_WILLNEED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mutex_unlock
Lloh6:
	adrp	x8, _VM_FAULT_SIGBUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_FAULT_SIGBUS@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_4:
	mov	x0, x22
	bl	_get_pages
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_PTR_ERR
	bl	_vmf_error
	b	LBB0_7
LBB0_6:
	ldr	x8, [x21]
	ldr	x9, [x20]
	sub	x8, x8, x9
Lloh9:
	adrp	x23, _PAGE_SHIFT@GOTPAGE
Lloh10:
	ldr	x23, [x23, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x9, [x23]
	lsr	x8, x8, x9
	ldr	x0, [x22, x8, lsl #3]
	bl	_page_to_pfn
	mov	x22, x0
	ldr	x1, [x21]
	ldr	x8, [x23]
	lsl	x3, x0, x8
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	bl	_VERB
	ldr	x21, [x21]
Lloh13:
	adrp	x8, _PFN_DEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PFN_DEV@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x22
	bl	___pfn_to_pfn_t
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_vmf_insert_mixed
LBB0_7:
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_FAULT_NOPAGE,4,2            ; @VM_FAULT_NOPAGE
	.comm	_MSM_MADV_WILLNEED,8,3          ; @MSM_MADV_WILLNEED
	.comm	_VM_FAULT_SIGBUS,4,2            ; @VM_FAULT_SIGBUS
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inserting %p pfn %lx, pa %lx"

	.comm	_PFN_DEV,4,2                    ; @PFN_DEV
.subsections_via_symbols
