	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_gem_fault_1d
_omap_gem_fault_1d:                     ## @omap_gem_fault_1d
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_to_omap_bo
	movq	(%r15), %rbx
	subq	(%r14), %rbx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rbx
	movq	%rax, %r12
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_omap_gem_cpu_sync_page
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_page_to_pfn
	movq	%rax, %r12
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	callq	_omap_gem_is_contiguous
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	(%r12), %r12
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	shrq	%cl, %r12
	addq	%rbx, %r12
LBB0_3:
	movq	(%r15), %rsi
	movq	%r12, %rax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_VERB
	movq	(%r15), %rbx
	movq	_PFN_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	___pfn_to_pfn_t
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmf_insert_mixed               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	.no_dead_strip	_omap_gem_fault_1d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_gem_fault_1d
_omap_gem_fault_1d:                     ; @omap_gem_fault_1d
	.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	x20, x2
	mov	x19, x1
	mov	x23, x0
	bl	_to_omap_bo
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x9, [x19]
	sub	x8, x8, x9
Lloh0:
	adrp	x24, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x9, [x24]
	lsr	x22, x8, x9
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	bl	_omap_gem_cpu_sync_page
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x22, lsl #2]
	bl	_page_to_pfn
	mov	x21, x0
	ldr	x8, [x24]
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_omap_gem_is_contiguous
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x9, [x21]
	ldr	x8, [x24]
	lsr	x9, x9, x8
	add	x21, x9, x22
LBB0_3:
	ldr	x1, [x20]
	lsl	x3, x21, x8
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_VERB
	ldr	x20, [x20]
Lloh4:
	adrp	x8, _PFN_DEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PFN_DEV@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	bl	___pfn_to_pfn_t
	mov	x2, x0
	mov	x0, x19
	mov	x1, 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
	b	_vmf_insert_mixed
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_omap_gem_fault_1d
.subsections_via_symbols
