	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_evict_for_cache_color
_igt_evict_for_cache_color:             ## @igt_evict_for_cache_color
	.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, %r15
	movq	_PIN_OFFSET_FIXED@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_I915_GTT_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	leal	(%rax,%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	%eax, -52(%rbp)
	movq	_I915_CACHE_LLC@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, -48(%rbp)
	movq	_objects@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIST_HEAD
	movq	_mock_color_adjust@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i915_gem_object_create_internal
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_object_set_cache_coherency
	movq	_objects@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_quirk_add
	movl	(%r13), %r8d
	orl	%r12d, %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i915_gem_object_ggtt_pin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_1
LBB0_5:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i915_gem_object_create_internal
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
LBB0_1:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
LBB0_12:
	movq	%r15, %rdi
	callq	_unpin_ggtt
	movq	_objects@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_cleanup_objects
	movq	$0, (%r15)
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_object_set_cache_coherency
	movq	_objects@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_quirk_add
	movl	(%r13), %r8d
	addl	%r8d, %r8d
	orl	%r12d, %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i915_gem_object_ggtt_pin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_8:
	movq	%rbx, %rdi
	callq	_i915_vma_unpin
	leaq	-56(%rbp), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_i915_gem_evict_for_node
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movl	%ebx, %r14d
	jmp	LBB0_12
LBB0_10:
	movq	_I915_CACHE_L3_LLC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_i915_gem_evict_for_node
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_OFFSET_FIXED,8,3           ## @PIN_OFFSET_FIXED
	.comm	_I915_GTT_PAGE_SIZE,4,2         ## @I915_GTT_PAGE_SIZE
	.comm	_I915_CACHE_LLC,4,2             ## @I915_CACHE_LLC
	.comm	_objects,4,2                    ## @objects
	.comm	_mock_color_adjust,8,3          ## @mock_color_adjust
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[0]i915_gem_object_ggtt_pin failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"[1]i915_gem_object_ggtt_pin failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"[0]i915_gem_evict_for_node returned err=%d\n"

	.comm	_I915_CACHE_L3_LLC,4,2          ## @I915_CACHE_L3_LLC
L_.str.3:                               ## @.str.3
	.asciz	"[1]i915_gem_evict_for_node returned err=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_igt_evict_for_cache_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igt_evict_for_cache_color
_igt_evict_for_cache_color:             ; @igt_evict_for_cache_color
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _PIN_OFFSET_FIXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIN_OFFSET_FIXED@GOTPAGEOFF]
Lloh2:
	adrp	x22, _I915_GTT_PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _I915_GTT_PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
	ldr	w8, [x22]
	lsl	w9, w8, #1
Lloh5:
	adrp	x23, _I915_CACHE_LLC@GOTPAGE
Lloh6:
	ldr	x23, [x23, _I915_CACHE_LLC@GOTPAGEOFF]
	stp	w9, w8, [sp, #16]
	ldr	w8, [x23]
	str	w8, [sp, #24]
Lloh7:
	adrp	x8, _objects@GOTPAGE
Lloh8:
	ldr	x8, [x8, _objects@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_LIST_HEAD
Lloh10:
	adrp	x8, _mock_color_adjust@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mock_color_adjust@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_i915_gem_object_create_internal
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_i915_gem_object_set_cache_coherency
Lloh13:
	adrp	x1, _objects@GOTPAGE
Lloh14:
	ldr	x1, [x1, _objects@GOTPAGEOFF]
	mov	x0, x20
	bl	_quirk_add
	ldr	w8, [x22]
	orr	w4, w8, w21
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_i915_gem_object_ggtt_pin
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_pr_err
	b	LBB0_5
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_i915_gem_object_create_internal
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
LBB0_6:
	mov	x0, x19
	bl	_unpin_ggtt
Lloh17:
	adrp	x1, _objects@GOTPAGE
Lloh18:
	ldr	x1, [x1, _objects@GOTPAGEOFF]
	mov	x0, x19
	bl	_cleanup_objects
	str	xzr, [x19]
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_i915_gem_object_set_cache_coherency
Lloh19:
	adrp	x1, _objects@GOTPAGE
Lloh20:
	ldr	x1, [x1, _objects@GOTPAGEOFF]
	mov	x0, x20
	bl	_quirk_add
	ldr	w8, [x22]
	orr	w4, w21, w8, lsl #1
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_i915_gem_object_ggtt_pin
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_9:
	mov	x0, x20
	bl	_i915_vma_unpin
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #0
	bl	_i915_gem_evict_for_node
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.10:
	str	x20, [sp]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_6
LBB0_11:
Lloh25:
	adrp	x8, _I915_CACHE_L3_LLC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _I915_CACHE_L3_LLC@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #0
	bl	_i915_gem_evict_for_node
	cbnz	w0, LBB0_6
; %bb.12:
	str	xzr, [sp]
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_OFFSET_FIXED,8,3           ; @PIN_OFFSET_FIXED
	.comm	_I915_GTT_PAGE_SIZE,4,2         ; @I915_GTT_PAGE_SIZE
	.comm	_I915_CACHE_LLC,4,2             ; @I915_CACHE_LLC
	.comm	_objects,4,2                    ; @objects
	.comm	_mock_color_adjust,8,3          ; @mock_color_adjust
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[0]i915_gem_object_ggtt_pin failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"[1]i915_gem_object_ggtt_pin failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"[0]i915_gem_evict_for_node returned err=%d\n"

	.comm	_I915_CACHE_L3_LLC,4,2          ; @I915_CACHE_L3_LLC
l_.str.3:                               ; @.str.3
	.asciz	"[1]i915_gem_evict_for_node returned err=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_igt_evict_for_cache_color
.subsections_via_symbols
