	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_gem_execbuffer_reserve_object
_i915_gem_execbuffer_reserve_object:    ## @i915_gem_execbuffer_reserve_object
	.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
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	48(%rdi), %rax
	movq	56(%rdi), %r12
	movq	(%rax), %r13
	movl	(%rsi), %edi
	callq	_INTEL_INFO
	movl	(%rax), %r14d
	cmpl	$3, %r14d
	jg	LBB0_3
## %bb.1:
	movq	_EXEC_OBJECT_NEEDS_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:
	movq	(%r15), %rax
	movq	_I915_TILING_NONE@GOTPCREL(%rip), %rcx
	movl	$1, %edx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_need_reloc_mappable
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%dl
LBB0_4:
	movl	16(%r12), %esi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_i915_gem_object_pin
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	___EXEC_OBJECT_HAS_PIN@GOTPCREL(%rip), %rcx
	movl	(%r12), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	cmpl	$3, %r14d
	jg	LBB0_11
## %bb.6:
	movq	_EXEC_OBJECT_NEEDS_FENCE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	callq	_i915_gem_object_get_fence
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.8:
	movq	%r15, %rdi
	callq	_i915_gem_object_pin_fence
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	___EXEC_OBJECT_HAS_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_10:
	movl	$1, 8(%r15)
LBB0_11:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:
	cmpl	$0, 12(%r15)
	jne	LBB0_14
## %bb.13:
	movl	24(%r15), %edx
	movq	%r15, %rsi
	callq	_i915_ppgtt_bind_object
	movl	$1, 12(%r15)
LBB0_14:
	movq	16(%r15), %rax
	cmpq	%rax, 8(%r12)
	je	LBB0_16
## %bb.15:
	movq	%rax, 8(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_16:
	movl	(%r12), %eax
	movq	_EXEC_OBJECT_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.17:
	movq	_I915_GEM_DOMAIN_RENDER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 40(%r15)
	movq	%rcx, 32(%r15)
LBB0_18:
	movq	_EXEC_OBJECT_NEEDS_GTT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.19:
	cmpl	$0, 28(%r15)
	jne	LBB0_21
## %bb.20:
	movl	24(%r15), %esi
	movq	%r15, %rdi
	callq	_i915_gem_gtt_bind_object
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EXEC_OBJECT_NEEDS_FENCE,4,2    ## @EXEC_OBJECT_NEEDS_FENCE
	.comm	_I915_TILING_NONE,8,3           ## @I915_TILING_NONE
	.comm	___EXEC_OBJECT_HAS_PIN,4,2      ## @__EXEC_OBJECT_HAS_PIN
	.comm	___EXEC_OBJECT_HAS_FENCE,4,2    ## @__EXEC_OBJECT_HAS_FENCE
	.comm	_EXEC_OBJECT_WRITE,4,2          ## @EXEC_OBJECT_WRITE
	.comm	_I915_GEM_DOMAIN_RENDER,8,3     ## @I915_GEM_DOMAIN_RENDER
	.comm	_EXEC_OBJECT_NEEDS_GTT,4,2      ## @EXEC_OBJECT_NEEDS_GTT
	.no_dead_strip	_i915_gem_execbuffer_reserve_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_gem_execbuffer_reserve_object
_i915_gem_execbuffer_reserve_object:    ; @i915_gem_execbuffer_reserve_object
	.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	x20, x2
	mov	x19, x0
	ldp	x8, x21, [x0, #48]
	ldr	x22, [x8]
	ldr	w0, [x1]
	bl	_INTEL_INFO
	ldr	w23, [x0]
	cmp	w23, #3
	b.gt	LBB0_3
; %bb.1:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _I915_TILING_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I915_TILING_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
LBB0_3:
	mov	x0, x19
	bl	_need_reloc_mappable
	cmp	x0, #0
	cset	w2, ne
LBB0_4:
	ldr	w1, [x21, #16]
	mov	x0, x19
	mov	w3, #0
	bl	_i915_gem_object_pin
	cbnz	w0, LBB0_22
; %bb.5:
Lloh6:
	adrp	x8, ___EXEC_OBJECT_HAS_PIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___EXEC_OBJECT_HAS_PIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	cmp	w23, #3
	b.gt	LBB0_11
; %bb.6:
Lloh9:
	adrp	x9, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_i915_gem_object_get_fence
	cbnz	w0, LBB0_22
; %bb.8:
	mov	x0, x19
	bl	_i915_gem_object_pin_fence
	cbz	x0, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, ___EXEC_OBJECT_HAS_FENCE@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___EXEC_OBJECT_HAS_FENCE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_10:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_11:
	ldr	x0, [x22]
	cbz	x0, LBB0_14
; %bb.12:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_14
; %bb.13:
	ldr	w2, [x19, #24]
	mov	x1, x19
	bl	_i915_ppgtt_bind_object
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_14:
	ldr	x9, [x21, #8]
	ldr	x8, [x19, #16]
	cmp	x9, x8
	b.eq	LBB0_16
; %bb.15:
	str	x8, [x21, #8]
	mov	w8, #1
	str	w8, [x20]
LBB0_16:
	ldr	w8, [x21]
Lloh15:
	adrp	x9, _EXEC_OBJECT_WRITE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EXEC_OBJECT_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh18:
	adrp	x9, _I915_GEM_DOMAIN_RENDER@GOTPAGE
Lloh19:
	ldr	x9, [x9, _I915_GEM_DOMAIN_RENDER@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	stp	x9, x9, [x19, #32]
LBB0_18:
Lloh21:
	adrp	x9, _EXEC_OBJECT_NEEDS_GTT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EXEC_OBJECT_NEEDS_GTT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.19:
	ldr	w8, [x19, #28]
	cbnz	w8, LBB0_21
; %bb.20:
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_i915_gem_gtt_bind_object
LBB0_21:
	mov	w0, #0
LBB0_22:
	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_23:
	mov	w2, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EXEC_OBJECT_NEEDS_FENCE,4,2    ; @EXEC_OBJECT_NEEDS_FENCE
	.comm	_I915_TILING_NONE,8,3           ; @I915_TILING_NONE
	.comm	___EXEC_OBJECT_HAS_PIN,4,2      ; @__EXEC_OBJECT_HAS_PIN
	.comm	___EXEC_OBJECT_HAS_FENCE,4,2    ; @__EXEC_OBJECT_HAS_FENCE
	.comm	_EXEC_OBJECT_WRITE,4,2          ; @EXEC_OBJECT_WRITE
	.comm	_I915_GEM_DOMAIN_RENDER,8,3     ; @I915_GEM_DOMAIN_RENDER
	.comm	_EXEC_OBJECT_NEEDS_GTT,4,2      ; @EXEC_OBJECT_NEEDS_GTT
	.no_dead_strip	_i915_gem_execbuffer_reserve_object
.subsections_via_symbols
