	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_vma_bind                  ## -- Begin function i915_vma_bind
	.p2align	4, 0x90
_i915_vma_bind:                         ## @i915_vma_bind
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$40, %rdi
	callq	_drm_mm_node_allocated
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	40(%rbx), %rax
	setg	%dil
	callq	_GEM_BUG_ON
	movl	48(%rbx), %edi
	movq	32(%rbx), %rax
	movq	40(%rbx), %rsi
	movl	(%rax), %edx
	callq	_range_overflows
	movl	%eax, %edi
	callq	_GEM_DEBUG_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_GEM_DEBUG_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_PIN_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_I915_VMA_GLOBAL_BIND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovnel	%ecx, %eax
	movq	_PIN_USER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%r15d, %edx
	movq	_I915_VMA_LOCAL_BIND@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r12d
	cmovnel	%r12d, %edx
	orl	%eax, %edx
	orl	%ecx, %r12d
	andl	8(%rbx), %r12d
	movq	_PIN_UPDATE@GOTPCREL(%rip), %rax
	movl	%edx, %ecx
	orl	%r12d, %ecx
	notl	%r12d
	andl	%edx, %r12d
	testl	%r15d, (%rax)
	cmovnel	%ecx, %r12d
	xorl	%eax, %eax
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.6:
	xorl	%edi, %edi
	cmpl	$0, 24(%rbx)
	sete	%dil
	callq	_GEM_BUG_ON
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_trace_i915_vma_bind
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	orl	%r12d, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIN_GLOBAL,4,2                 ## @PIN_GLOBAL
	.comm	_I915_VMA_GLOBAL_BIND,4,2       ## @I915_VMA_GLOBAL_BIND
	.comm	_PIN_USER,4,2                   ## @PIN_USER
	.comm	_I915_VMA_LOCAL_BIND,4,2        ## @I915_VMA_LOCAL_BIND
	.comm	_PIN_UPDATE,4,2                 ## @PIN_UPDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_vma_bind                  ; -- Begin function i915_vma_bind
	.p2align	2
_i915_vma_bind:                         ; @i915_vma_bind
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #40
	bl	_drm_mm_node_allocated
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	x8, [x19]
	ldr	x9, [x19, #40]
	cmp	x8, x9
	cset	w0, gt
	bl	_GEM_BUG_ON
	ldr	w0, [x19, #48]
	ldp	x8, x1, [x19, #32]
	ldr	w2, [x8]
	bl	_range_overflows
	bl	_GEM_DEBUG_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	cmp	w21, #0
	cset	w0, eq
	bl	_GEM_DEBUG_WARN_ON
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh4:
	adrp	x8, _PIN_GLOBAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PIN_GLOBAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _I915_VMA_GLOBAL_BIND@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I915_VMA_GLOBAL_BIND@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w8, w21
Lloh10:
	adrp	x8, _PIN_USER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PIN_USER@GOTPAGEOFF]
	csel	w10, wzr, w9, eq
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x11, _I915_VMA_LOCAL_BIND@GOTPAGE
Lloh14:
	ldr	x11, [x11, _I915_VMA_LOCAL_BIND@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	tst	w8, w21
	csel	w8, wzr, w11, eq
	orr	w8, w8, w10
	ldr	w10, [x19, #8]
	orr	w9, w11, w9
Lloh16:
	adrp	x11, _PIN_UPDATE@GOTPAGE
Lloh17:
	ldr	x11, [x11, _PIN_UPDATE@GOTPAGEOFF]
	and	w9, w10, w9
Lloh18:
	ldr	w10, [x11]
	orr	w11, w8, w9
	bic	w8, w8, w9
	tst	w10, w21
	csel	w21, w8, w11, eq
	cbz	w21, LBB0_9
; %bb.7:
	ldr	w8, [x19, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x19
	mov	x1, x21
	bl	_trace_i915_vma_bind
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	blr	x8
	cbnz	w0, LBB0_5
; %bb.8:
	ldr	w8, [x19, #8]
	orr	w8, w8, w21
	str	w8, [x19, #8]
	b	LBB0_5
LBB0_9:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIN_GLOBAL,4,2                 ; @PIN_GLOBAL
	.comm	_I915_VMA_GLOBAL_BIND,4,2       ; @I915_VMA_GLOBAL_BIND
	.comm	_PIN_USER,4,2                   ; @PIN_USER
	.comm	_I915_VMA_LOCAL_BIND,4,2        ; @I915_VMA_LOCAL_BIND
	.comm	_PIN_UPDATE,4,2                 ; @PIN_UPDATE
.subsections_via_symbols
