	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_sw_fence_await_dma_fence ## -- Begin function __i915_sw_fence_await_dma_fence
	.p2align	4, 0x90
___i915_sw_fence_await_dma_fence:       ## @__i915_sw_fence_await_dma_fence
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_debug_fence_assert
	movq	%r15, %rdi
	callq	_dma_fence_is_signaled
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.1:
	movq	%rbx, 8(%r14)
	movq	%rbx, %rdi
	callq	_i915_sw_fence_await
	movq	___dma_i915_sw_fence_wake@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dma_fence_add_callback
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___dma_i915_sw_fence_wake
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movl	(%rcx), %ecx
	addl	%ebx, %ecx
	cmovnel	%ebx, %eax
	jmp	LBB0_4
LBB0_2:
	movl	$1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_sw_fence_await_dma_fence ; -- Begin function __i915_sw_fence_await_dma_fence
	.p2align	2
___i915_sw_fence_await_dma_fence:       ; @__i915_sw_fence_await_dma_fence
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_debug_fence_assert
	mov	x0, x20
	bl	_dma_fence_is_signaled
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	str	x21, [x19, #8]
	mov	x0, x21
	bl	_i915_sw_fence_await
Lloh0:
	adrp	x2, ___dma_i915_sw_fence_wake@GOTPAGE
Lloh1:
	ldr	x2, [x2, ___dma_i915_sw_fence_wake@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_dma_fence_add_callback
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	___dma_i915_sw_fence_wake
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w21, w8
	csel	w0, wzr, w21, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #1
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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
