	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_get_ggtt_vma_pages
_i915_get_ggtt_vma_pages:               ## @i915_get_ggtt_vma_pages
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	callq	_i915_gem_object_has_pinned_pages
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movl	(%rbx), %edi
	leal	-128(%rdi), %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	leaq	8(%rbx), %rdi
	movq	24(%rbx), %rsi
	callq	_intel_rotate_pages
	jmp	LBB0_7
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_GEM_BUG_ON
LBB0_4:
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_9
LBB0_5:
	leaq	4(%rbx), %rdi
	movq	24(%rbx), %rsi
	callq	_intel_remap_pages
	jmp	LBB0_7
LBB0_6:
	movq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_intel_partial_pages
LBB0_7:
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	$0, 16(%rbx)
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_DRM_ERROR
	jmp	LBB0_10
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get pages for VMA view type %u (%d)!\n"

	.no_dead_strip	_i915_get_ggtt_vma_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_get_ggtt_vma_pages
_i915_get_ggtt_vma_pages:               ; @i915_get_ggtt_vma_pages
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #24]
	bl	_i915_gem_object_has_pinned_pages
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	w0, [x19]
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x0, x19, #8
	ldr	x1, [x19, #24]
	bl	_intel_rotate_pages
	b	LBB0_7
LBB0_3:
	bl	_GEM_BUG_ON
LBB0_4:
	mov	w20, #0
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	str	x8, [x19, #16]
	b	LBB0_10
LBB0_5:
	add	x0, x19, #4
	ldr	x1, [x19, #24]
	bl	_intel_remap_pages
	b	LBB0_7
LBB0_6:
	ldr	x1, [x19, #24]
	mov	x0, x19
	bl	_intel_partial_pages
LBB0_7:
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x20, x0
	str	xzr, [x19, #16]
	ldr	w1, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_ERROR
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get pages for VMA view type %u (%d)!\n"

	.no_dead_strip	_i915_get_ggtt_vma_pages
.subsections_via_symbols
