	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_evict_for_vma
_igt_evict_for_vma:                     ## @igt_evict_for_vma
	.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, %r14
	movq	$4096, -32(%rbp)                ## imm = 0x1000
	movq	_objects@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_LIST_HEAD
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_populate_ggtt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	leaq	-32(%rbp), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_i915_gem_evict_for_node
	movl	%eax, %r15d
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_unpin_ggtt
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_i915_gem_evict_for_node
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	movl	%r15d, %esi
	callq	_pr_err
	movl	%r15d, %ebx
LBB0_6:
	movq	_objects@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_cleanup_objects
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_objects,4,2                    ## @objects
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i915_gem_evict_for_node on a full GGTT returned err=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"i915_gem_evict_for_node returned err=%d\n"

	.no_dead_strip	_igt_evict_for_vma
.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_vma
_igt_evict_for_vma:                     ; @igt_evict_for_vma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	w8, #4096
	str	x8, [sp, #8]
Lloh0:
	adrp	x20, _objects@GOTPAGE
Lloh1:
	ldr	x20, [x20, _objects@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_LIST_HEAD
	mov	x0, x19
	mov	x1, x20
	bl	_populate_ggtt
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_i915_gem_evict_for_node
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_unpin_ggtt
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_i915_gem_evict_for_node
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x20, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	mov	x1, x20
	bl	_pr_err
LBB0_6:
Lloh9:
	adrp	x1, _objects@GOTPAGE
Lloh10:
	ldr	x1, [x1, _objects@GOTPAGEOFF]
	mov	x0, x19
	bl	_cleanup_objects
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_objects,4,2                    ; @objects
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i915_gem_evict_for_node on a full GGTT returned err=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"i915_gem_evict_for_node returned err=%d\n"

	.no_dead_strip	_igt_evict_for_vma
.subsections_via_symbols
