	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eb_add_vma
_eb_add_vma:                            ## @eb_add_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	64(%rdi), %rax
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	leaq	(%r15,%r15,2), %r13
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r13,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_i915_vma_is_closed
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movq	16(%rbx), %rax
	movq	___EXEC_VALIDATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
LBB0_2:
	movl	52(%rbx), %esi
	testl	%esi, %esi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_4
## %bb.3:
	movl	16(%r12,%r13,8), %edi
	movl	%edi, 24(%r14)
	leaq	20(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	56(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_hash_32
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_hlist_add_head
LBB0_4:
	cmpq	$0, 8(%r12,%r13,8)
	je	LBB0_6
## %bb.5:
	leaq	16(%r14), %rdi
	leaq	48(%rbx), %rsi
	callq	_list_add_tail
LBB0_6:
	movq	40(%rbx), %rax
	movq	%r14, (%rax,%r15,8)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %eax
	movq	(%rbx), %rdx
	leaq	(%rdx,%r15,4), %rcx
	movl	%eax, (%rdx,%r15,4)
	movq	%rcx, (%r14)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_13
## %bb.7:
	leaq	(%r15,%r13,8), %rdx
	addq	$8, %rdx
	cmpq	$0, (%rdx)
	je	LBB0_10
## %bb.8:
	movq	_EXEC_OBJECT_PINNED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_10
## %bb.9:
	movq	___EXEC_OBJECT_NEEDS_BIAS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rcx)
LBB0_10:
	cmpq	$0, 32(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_EXEC_OBJECT_NEEDS_FENCE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rcx)
LBB0_12:
	movq	%r14, 24(%rbx)
LBB0_13:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_eb_pin_vma
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movl	8(%r14), %eax
	xorl	%r12d, %r12d
	cmpl	%eax, 4(%r15,%r13,8)
	je	LBB0_21
## %bb.15:
	movq	_UPDATE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	leaq	(%r15,%r13,8), %rcx
	addq	$4, %rcx
	movl	%eax, (%rcx)
	movq	___EXEC_HAS_RELOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_21
LBB0_1:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_eb_validate_vma
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_21
	jmp	LBB0_2
LBB0_16:
	movq	(%r14), %rsi
	movq	%r14, %rdi
	callq	_eb_unreserve_vma
	leaq	12(%r14), %rdi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_list_add_tail
	leaq	8(%r14), %rdi
	callq	_drm_mm_node_allocated
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%r14, %rdi
	callq	_i915_vma_unbind
	movl	%eax, %r12d
	jmp	LBB0_19
LBB0_17:
	xorl	%r12d, %r12d
LBB0_19:
	movl	%r12d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	$0, (%r14)
LBB0_21:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___EXEC_VALIDATED,4,2           ## @__EXEC_VALIDATED
	.comm	_EXEC_OBJECT_PINNED,4,2         ## @EXEC_OBJECT_PINNED
	.comm	___EXEC_OBJECT_NEEDS_BIAS,4,2   ## @__EXEC_OBJECT_NEEDS_BIAS
	.comm	_EXEC_OBJECT_NEEDS_FENCE,4,2    ## @EXEC_OBJECT_NEEDS_FENCE
	.comm	_UPDATE,4,2                     ## @UPDATE
	.comm	___EXEC_HAS_RELOC,4,2           ## @__EXEC_HAS_RELOC
	.no_dead_strip	_eb_add_vma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eb_add_vma
_eb_add_vma:                            ; @eb_add_vma
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x25, [x0, #64]
	mov	w8, #24
	umaddl	x21, w1, w8, x25
	mov	x0, x3
	bl	_i915_vma_is_closed
	bl	_GEM_BUG_ON
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, ___EXEC_VALIDATED@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___EXEC_VALIDATED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_1:
	mov	w26, w23
	ldr	w1, [x20, #52]
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.2:
	mov	w8, #24
	madd	x8, x26, x8, x25
	ldr	w0, [x8, #16]
	str	w0, [x19, #24]
	add	x24, x19, #20
	ldr	x27, [x20, #56]
	bl	_hash_32
	add	x1, x27, x0, lsl #2
	mov	x0, x24
	bl	_hlist_add_head
LBB0_3:
	mov	w8, #24
	madd	x24, x26, x8, x25
	ldr	x8, [x24, #8]!
	cbz	x8, LBB0_5
; %bb.4:
	add	x0, x19, #16
	add	x1, x20, #48
	bl	_list_add_tail
LBB0_5:
	ldr	x8, [x20, #40]
	str	x19, [x8, x26, lsl #3]
	ldr	w8, [x21]
	ldr	x9, [x20]
	add	x9, x9, x26, lsl #2
	str	w8, [x9]
	str	x9, [x19]
	cmp	w23, w22
	b.ne	LBB0_12
; %bb.6:
	ldr	x10, [x24]
	cbz	x10, LBB0_9
; %bb.7:
Lloh3:
	adrp	x10, _EXEC_OBJECT_PINNED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EXEC_OBJECT_PINNED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	b.ne	LBB0_9
; %bb.8:
Lloh6:
	adrp	x10, ___EXEC_OBJECT_NEEDS_BIAS@GOTPAGE
Lloh7:
	ldr	x10, [x10, ___EXEC_OBJECT_NEEDS_BIAS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_9:
	ldr	x10, [x20, #32]
	cbz	x10, LBB0_11
; %bb.10:
Lloh9:
	adrp	x10, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x9]
LBB0_11:
	str	x19, [x20, #24]
LBB0_12:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_eb_pin_vma
	cbz	x0, LBB0_16
; %bb.13:
	mov	w8, #24
	madd	x8, x26, x8, x25
	ldr	w10, [x8, #4]!
	ldr	w9, [x19, #8]
	cmp	w10, w9
	b.ne	LBB0_18
; %bb.14:
	mov	w24, #0
	b	LBB0_22
LBB0_15:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_eb_validate_vma
	mov	x24, x0
	bl	_unlikely
	cbnz	x0, LBB0_22
	b	LBB0_1
LBB0_16:
	mov	x21, x19
	ldr	x1, [x21], #8
	mov	x0, x19
	bl	_eb_unreserve_vma
	add	x0, x19, #12
	add	x1, x20, #8
	bl	_list_add_tail
	mov	x0, x21
	bl	_drm_mm_node_allocated
	cbz	x0, LBB0_19
; %bb.17:
	mov	x0, x19
	bl	_i915_vma_unbind
	mov	x24, x0
	b	LBB0_20
LBB0_18:
	mov	w24, #0
Lloh12:
	adrp	x10, _UPDATE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _UPDATE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh15:
	adrp	x10, ___EXEC_HAS_RELOC@GOTPAGE
Lloh16:
	ldr	x10, [x10, ___EXEC_HAS_RELOC@GOTPAGEOFF]
	str	w9, [x8]
Lloh17:
	ldr	w8, [x10]
	ldr	x9, [x20, #16]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	b	LBB0_22
LBB0_19:
	mov	w24, #0
LBB0_20:
	mov	x0, x24
	bl	_unlikely
	cbz	x0, LBB0_22
; %bb.21:
	str	xzr, [x19]
LBB0_22:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	___EXEC_VALIDATED,4,2           ; @__EXEC_VALIDATED
	.comm	_EXEC_OBJECT_PINNED,4,2         ; @EXEC_OBJECT_PINNED
	.comm	___EXEC_OBJECT_NEEDS_BIAS,4,2   ; @__EXEC_OBJECT_NEEDS_BIAS
	.comm	_EXEC_OBJECT_NEEDS_FENCE,4,2    ; @EXEC_OBJECT_NEEDS_FENCE
	.comm	_UPDATE,4,2                     ; @UPDATE
	.comm	___EXEC_HAS_RELOC,4,2           ; @__EXEC_HAS_RELOC
	.no_dead_strip	_eb_add_vma
.subsections_via_symbols
