	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evict_fence
_evict_fence:                           ## @evict_fence
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movq	(%rax), %r14
	addq	$8, %rdi
	callq	_complete
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_I915_TILING_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_i915_gem_object_set_tiling
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_2:
	movq	(%r15), %rdi
	movq	_PIN_GLOBAL@GOTPCREL(%rip), %rax
	movq	_PIN_MAPPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_i915_vma_pin
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	movq	(%r15), %rdi
	callq	_i915_vma_pin_fence
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_i915_vma_unpin
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	movl	%ebx, %esi
	callq	_pr_err
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r15), %rdi
	callq	_i915_vma_unpin_fence
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_TILING_Y,4,2              ## @I915_TILING_Y
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Y-tiling settings; err:%d\n"

	.comm	_PIN_GLOBAL,4,2                 ## @PIN_GLOBAL
	.comm	_PIN_MAPPABLE,4,2               ## @PIN_MAPPABLE
L_.str.1:                               ## @.str.1
	.asciz	"Unable to pin vma for Y-tiled fence; err:%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to pin Y-tiled fence; err:%d\n"

	.no_dead_strip	_evict_fence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evict_fence
_evict_fence:                           ; @evict_fence
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x8, [x0], #8
	ldr	x8, [x8, #8]
	ldr	x19, [x8]
	bl	_complete
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _I915_TILING_Y@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_TILING_Y@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #512
	bl	_i915_gem_object_set_tiling
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _PIN_GLOBAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PIN_GLOBAL@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _PIN_MAPPABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PIN_MAPPABLE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w1, #0
	mov	w2, #0
	bl	_i915_vma_pin
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x0, [x20]
	bl	_i915_vma_pin_fence
	mov	x21, x0
	ldr	x0, [x20]
	bl	_i915_vma_unpin
	cbz	w21, LBB0_8
; %bb.5:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	mov	x1, x21
	bl	_pr_err
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x0, [x20]
	bl	_i915_vma_unpin_fence
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_TILING_Y,4,2              ; @I915_TILING_Y
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Y-tiling settings; err:%d\n"

	.comm	_PIN_GLOBAL,4,2                 ; @PIN_GLOBAL
	.comm	_PIN_MAPPABLE,4,2               ; @PIN_MAPPABLE
l_.str.1:                               ; @.str.1
	.asciz	"Unable to pin vma for Y-tiled fence; err:%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to pin Y-tiled fence; err:%d\n"

	.no_dead_strip	_evict_fence
.subsections_via_symbols
