	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eb_reserve_vma
_eb_reserve_vma:                        ## @eb_reserve_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	%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	%rsi, %r15
	movq	%rdi, %r12
	callq	_exec_entry
	movq	%rax, %r14
	movq	(%r15), %rax
	movl	(%rax), %r13d
	movq	_PIN_USER@GOTPCREL(%rip), %rcx
	movq	_PIN_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EXEC_OBJECT_NEEDS_GTT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	andl	%r13d, %esi
	je	LBB0_2
## %bb.1:
	movq	_PIN_GLOBAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_2:
	movl	(%rcx), %edx
	orl	%eax, %edx
	movq	_EXEC_OBJECT_SUPPORTS_48B_ADDRESS@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	testl	%r13d, (%rdi)
	jne	LBB0_4
## %bb.3:
	movq	_PIN_ZONE_4G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%esi, %edx
	movq	___EXEC_OBJECT_NEEDS_MAP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%r13d, %esi
	je	LBB0_6
## %bb.5:
	movq	_PIN_MAPPABLE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_6:
	orl	%esi, %edx
	orl	%edx, %ecx
	movq	_EXEC_OBJECT_PINNED@GOTPCREL(%rip), %rdx
	testl	%r13d, (%rdx)
	je	LBB0_8
## %bb.7:
	movq	_PIN_OFFSET_FIXED@GOTPCREL(%rip), %rdx
	orl	(%r14), %ecx
	orl	(%rdx), %ecx
	notl	%eax
	andl	%eax, %ecx
	jmp	LBB0_10
LBB0_8:
	movq	___EXEC_OBJECT_NEEDS_BIAS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_BATCH_OFFSET_BIAS@GOTPCREL(%rip), %rax
	movq	_PIN_OFFSET_BIAS@GOTPCREL(%rip), %rdx
	orl	(%rax), %ecx
	orl	(%rdx), %ecx
LBB0_10:
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movq	%r15, %rdi
	callq	_i915_vma_pin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.11:
	movl	16(%r15), %eax
	cmpl	%eax, (%r14)
	je	LBB0_13
## %bb.12:
	movq	_UPDATE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	movq	___EXEC_HAS_RELOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	orl	%eax, (%rcx)
LBB0_13:
	movq	_EXEC_OBJECT_NEEDS_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r13d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%r15, %rdi
	callq	_i915_vma_pin_fence
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_i915_vma_unpin
	jmp	LBB0_19
LBB0_16:
	cmpq	$0, 8(%r15)
	je	LBB0_18
## %bb.17:
	movq	___EXEC_OBJECT_HAS_FENCE@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_18:
	movq	___EXEC_OBJECT_HAS_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r13d, %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_eb_vma_misplaced
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_USER,4,2                   ## @PIN_USER
	.comm	_PIN_NONBLOCK,4,2               ## @PIN_NONBLOCK
	.comm	_EXEC_OBJECT_NEEDS_GTT,4,2      ## @EXEC_OBJECT_NEEDS_GTT
	.comm	_PIN_GLOBAL,4,2                 ## @PIN_GLOBAL
	.comm	_EXEC_OBJECT_SUPPORTS_48B_ADDRESS,4,2 ## @EXEC_OBJECT_SUPPORTS_48B_ADDRESS
	.comm	_PIN_ZONE_4G,4,2                ## @PIN_ZONE_4G
	.comm	___EXEC_OBJECT_NEEDS_MAP,4,2    ## @__EXEC_OBJECT_NEEDS_MAP
	.comm	_PIN_MAPPABLE,4,2               ## @PIN_MAPPABLE
	.comm	_EXEC_OBJECT_PINNED,4,2         ## @EXEC_OBJECT_PINNED
	.comm	_PIN_OFFSET_FIXED,4,2           ## @PIN_OFFSET_FIXED
	.comm	___EXEC_OBJECT_NEEDS_BIAS,4,2   ## @__EXEC_OBJECT_NEEDS_BIAS
	.comm	_BATCH_OFFSET_BIAS,4,2          ## @BATCH_OFFSET_BIAS
	.comm	_PIN_OFFSET_BIAS,4,2            ## @PIN_OFFSET_BIAS
	.comm	_UPDATE,4,2                     ## @UPDATE
	.comm	___EXEC_HAS_RELOC,4,2           ## @__EXEC_HAS_RELOC
	.comm	_EXEC_OBJECT_NEEDS_FENCE,4,2    ## @EXEC_OBJECT_NEEDS_FENCE
	.comm	___EXEC_OBJECT_HAS_FENCE,4,2    ## @__EXEC_OBJECT_HAS_FENCE
	.comm	___EXEC_OBJECT_HAS_PIN,4,2      ## @__EXEC_OBJECT_HAS_PIN
	.no_dead_strip	_eb_reserve_vma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eb_reserve_vma
_eb_reserve_vma:                        ; @eb_reserve_vma
	.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	x19, x1
	mov	x22, x0
	bl	_exec_entry
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _PIN_USER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIN_USER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _PIN_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIN_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _EXEC_OBJECT_NEEDS_GTT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EXEC_OBJECT_NEEDS_GTT@GOTPAGEOFF]
	orr	w9, w8, w9
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _PIN_GLOBAL@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PIN_GLOBAL@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w21
	csel	w10, wzr, w11, eq
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _EXEC_OBJECT_SUPPORTS_48B_ADDRESS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _EXEC_OBJECT_SUPPORTS_48B_ADDRESS@GOTPAGEOFF]
Lloh14:
	adrp	x11, _PIN_ZONE_4G@GOTPAGE
Lloh15:
	ldr	x11, [x11, _PIN_ZONE_4G@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	ldr	w11, [x11]
	tst	w10, w21
	csel	w10, w11, wzr, eq
Lloh18:
	adrp	x11, ___EXEC_OBJECT_NEEDS_MAP@GOTPAGE
Lloh19:
	ldr	x11, [x11, ___EXEC_OBJECT_NEEDS_MAP@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh20:
	ldr	w10, [x11]
Lloh21:
	adrp	x11, _PIN_MAPPABLE@GOTPAGE
Lloh22:
	ldr	x11, [x11, _PIN_MAPPABLE@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	tst	w10, w21
	csel	w10, wzr, w11, eq
	orr	w3, w9, w10
Lloh24:
	adrp	x9, _EXEC_OBJECT_PINNED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _EXEC_OBJECT_PINNED@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x20]
Lloh27:
	adrp	x10, _PIN_OFFSET_FIXED@GOTPAGE
Lloh28:
	ldr	x10, [x10, _PIN_OFFSET_FIXED@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w9, w9, w3
	orr	w9, w9, w10
	bic	w3, w9, w8
	b	LBB0_4
LBB0_2:
Lloh30:
	adrp	x8, ___EXEC_OBJECT_NEEDS_BIAS@GOTPAGE
Lloh31:
	ldr	x8, [x8, ___EXEC_OBJECT_NEEDS_BIAS@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
Lloh33:
	adrp	x8, _BATCH_OFFSET_BIAS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BATCH_OFFSET_BIAS@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _PIN_OFFSET_BIAS@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PIN_OFFSET_BIAS@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w8, w3
	orr	w3, w8, w9
LBB0_4:
	ldp	w2, w1, [x20, #4]
	mov	x0, x19
	bl	_i915_vma_pin
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	w9, [x20]
	ldr	w8, [x19, #16]
	cmp	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh39:
	adrp	x9, _UPDATE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _UPDATE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh42:
	adrp	x9, ___EXEC_HAS_RELOC@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___EXEC_HAS_RELOC@GOTPAGEOFF]
	str	w8, [x20]
Lloh44:
	ldr	w8, [x9]
	ldr	x9, [x22]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_7:
Lloh45:
	adrp	x8, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	and	w0, w8, w21
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_i915_vma_pin_fence
	mov	x23, x0
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_i915_vma_unpin
	b	LBB0_13
LBB0_10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh48:
	adrp	x8, ___EXEC_OBJECT_HAS_FENCE@GOTPAGE
Lloh49:
	ldr	x8, [x8, ___EXEC_OBJECT_HAS_FENCE@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_12:
Lloh51:
	adrp	x8, ___EXEC_OBJECT_HAS_PIN@GOTPAGE
Lloh52:
	ldr	x8, [x8, ___EXEC_OBJECT_HAS_PIN@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	orr	w8, w8, w21
	ldr	x9, [x19]
	str	w8, [x9]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_eb_vma_misplaced
	bl	_GEM_BUG_ON
	mov	w23, #0
LBB0_13:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_USER,4,2                   ; @PIN_USER
	.comm	_PIN_NONBLOCK,4,2               ; @PIN_NONBLOCK
	.comm	_EXEC_OBJECT_NEEDS_GTT,4,2      ; @EXEC_OBJECT_NEEDS_GTT
	.comm	_PIN_GLOBAL,4,2                 ; @PIN_GLOBAL
	.comm	_EXEC_OBJECT_SUPPORTS_48B_ADDRESS,4,2 ; @EXEC_OBJECT_SUPPORTS_48B_ADDRESS
	.comm	_PIN_ZONE_4G,4,2                ; @PIN_ZONE_4G
	.comm	___EXEC_OBJECT_NEEDS_MAP,4,2    ; @__EXEC_OBJECT_NEEDS_MAP
	.comm	_PIN_MAPPABLE,4,2               ; @PIN_MAPPABLE
	.comm	_EXEC_OBJECT_PINNED,4,2         ; @EXEC_OBJECT_PINNED
	.comm	_PIN_OFFSET_FIXED,4,2           ; @PIN_OFFSET_FIXED
	.comm	___EXEC_OBJECT_NEEDS_BIAS,4,2   ; @__EXEC_OBJECT_NEEDS_BIAS
	.comm	_BATCH_OFFSET_BIAS,4,2          ; @BATCH_OFFSET_BIAS
	.comm	_PIN_OFFSET_BIAS,4,2            ; @PIN_OFFSET_BIAS
	.comm	_UPDATE,4,2                     ; @UPDATE
	.comm	___EXEC_HAS_RELOC,4,2           ; @__EXEC_HAS_RELOC
	.comm	_EXEC_OBJECT_NEEDS_FENCE,4,2    ; @EXEC_OBJECT_NEEDS_FENCE
	.comm	___EXEC_OBJECT_HAS_FENCE,4,2    ; @__EXEC_OBJECT_HAS_FENCE
	.comm	___EXEC_OBJECT_HAS_PIN,4,2      ; @__EXEC_OBJECT_HAS_PIN
	.no_dead_strip	_eb_reserve_vma
.subsections_via_symbols
