	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_wait_priority  ## -- Begin function i915_gem_object_wait_priority
	.p2align	4, 0x90
_i915_gem_object_wait_priority:         ## @i915_gem_object_wait_priority
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	_I915_WAIT_ALL@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_10
## %bb.1:
	movl	(%rdi), %edi
	leaq	-48(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	callq	_dma_resv_get_fences_rcu
	testl	%eax, %eax
	je	LBB0_2
## %bb.8:
	movl	%eax, %r14d
	jmp	LBB0_9
LBB0_10:
	movl	(%rdi), %edi
	callq	_dma_resv_get_excl_rcu
	movq	%rax, -48(%rbp)
	jmp	LBB0_6
LBB0_2:
	cmpl	$0, -28(%rbp)
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r15, %rsi
	callq	_fence_set_priority
	movq	-40(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_dma_fence_put
	incq	%rbx
	movl	-28(%rbp), %eax
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_5:
	movq	-40(%rbp), %rdi
	callq	_kfree
	movq	-48(%rbp), %rax
LBB0_6:
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_fence_set_priority
	movq	-48(%rbp), %rdi
	callq	_dma_fence_put
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_WAIT_ALL,4,2              ## @I915_WAIT_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_wait_priority  ; -- Begin function i915_gem_object_wait_priority
	.p2align	2
_i915_gem_object_wait_priority:         ; @i915_gem_object_wait_priority
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
Lloh0:
	adrp	x8, _I915_WAIT_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_WAIT_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_6
; %bb.1:
	ldr	w0, [x0]
	add	x1, sp, #24
	add	x2, sp, #12
	add	x3, sp, #16
	bl	_dma_resv_get_fences_rcu
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	lsl	x21, x20, #3
	ldr	x0, [x8, x21]
	mov	x1, x19
	bl	_fence_set_priority
	ldr	x8, [sp, #16]
	ldr	x0, [x8, x21]
	bl	_dma_fence_put
	add	x20, x20, #1
	ldr	w8, [sp, #12]
	cmp	x20, x8
	b.lo	LBB0_4
LBB0_5:
	ldr	x0, [sp, #16]
	bl	_kfree
	ldr	x0, [sp, #24]
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_6:
	ldr	w0, [x0]
	bl	_dma_resv_get_excl_rcu
	str	x0, [sp, #24]
	cbz	x0, LBB0_8
LBB0_7:
	mov	x1, x19
	bl	_fence_set_priority
	ldr	x0, [sp, #24]
	bl	_dma_fence_put
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_WAIT_ALL,4,2              ; @I915_WAIT_ALL
.subsections_via_symbols
