	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_gtt_reserve           ## -- Begin function i915_gem_gtt_reserve
	.p2align	4, 0x90
_i915_gem_gtt_reserve:                  ## @i915_gem_gtt_reserve
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_GEM_BUG_ON
	movq	_I915_GTT_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IS_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	_I915_GTT_MIN_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_IS_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movl	16(%r14), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_range_overflows
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movq	8(%r14), %rax
	xorl	%edi, %edi
	cmpq	%r14, (%rax)
	sete	%dil
	callq	_GEM_BUG_ON
	movq	%rbx, %rdi
	callq	_drm_mm_node_allocated
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movq	%r15, 16(%rbx)
	movq	%r13, 8(%rbx)
	movq	%r12, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_mm_reserve_node
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	jne	LBB0_3
## %bb.1:
	movq	_PIN_NOEVICT@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i915_gem_evict_for_node
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_mm_reserve_node            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_GTT_PAGE_SIZE,4,2         ## @I915_GTT_PAGE_SIZE
	.comm	_I915_GTT_MIN_ALIGNMENT,4,2     ## @I915_GTT_MIN_ALIGNMENT
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_PIN_NOEVICT,4,2                ## @PIN_NOEVICT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_gtt_reserve           ; -- Begin function i915_gem_gtt_reserve
	.p2align	2
_i915_gem_gtt_reserve:                  ; @i915_gem_gtt_reserve
	.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	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	cmp	x2, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
Lloh0:
	adrp	x8, _I915_GTT_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_GTT_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_IS_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
Lloh3:
	adrp	x8, _I915_GTT_MIN_ALIGNMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_GTT_MIN_ALIGNMENT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_IS_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	w2, [x20, #16]
	mov	x0, x23
	mov	x1, x24
	bl	_range_overflows
	bl	_GEM_BUG_ON
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x8, x20
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x19
	bl	_drm_mm_node_allocated
	bl	_GEM_BUG_ON
	stp	x23, x24, [x19, #8]
	str	x22, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_drm_mm_reserve_node
Lloh6:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _PIN_NOEVICT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PIN_NOEVICT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_i915_gem_evict_for_node
	cbz	w0, LBB0_4
LBB0_3:
	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
	ret
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	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	_drm_mm_reserve_node
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_GTT_PAGE_SIZE,4,2         ; @I915_GTT_PAGE_SIZE
	.comm	_I915_GTT_MIN_ALIGNMENT,4,2     ; @I915_GTT_MIN_ALIGNMENT
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_PIN_NOEVICT,4,2                ; @PIN_NOEVICT
.subsections_via_symbols
