	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_lock_fence     ## -- Begin function i915_gem_object_lock_fence
	.p2align	4, 0x90
_i915_gem_object_lock_fence:            ## @i915_gem_object_lock_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	%rdi, %r14
	callq	_assert_object_held
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rbx
	addq	$4, %rbx
	movq	_stub_notify@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i915_sw_fence_init
	movq	_stub_fence_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_dma_fence_init
	movl	(%r14), %esi
	movq	_I915_FENCE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_I915_FENCE_GFP@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_i915_sw_fence_await_reservation
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_dma_resv_add_excl_fence
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	callq	_stub_release
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_stub_notify,4,2                ## @stub_notify
	.comm	_stub_fence_ops,4,2             ## @stub_fence_ops
	.comm	_I915_FENCE_TIMEOUT,4,2         ## @I915_FENCE_TIMEOUT
	.comm	_I915_FENCE_GFP,4,2             ## @I915_FENCE_GFP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_lock_fence     ; -- Begin function i915_gem_object_lock_fence
	.p2align	2
_i915_gem_object_lock_fence:            ; @i915_gem_object_lock_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	x20, x0
	bl	_assert_object_held
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	add	x21, x19, #4
Lloh3:
	adrp	x8, _stub_notify@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stub_notify@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i915_sw_fence_init
Lloh6:
	adrp	x1, _stub_fence_ops@GOTPAGE
Lloh7:
	ldr	x1, [x1, _stub_fence_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	mov	w4, #0
	bl	_dma_fence_init
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _I915_FENCE_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I915_FENCE_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _I915_FENCE_GFP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I915_FENCE_GFP@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x2, #0
	mov	w3, #1
	bl	_i915_sw_fence_await_reservation
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_dma_resv_add_excl_fence
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_stub_release
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_stub_notify,4,2                ; @stub_notify
	.comm	_stub_fence_ops,4,2             ; @stub_fence_ops
	.comm	_I915_FENCE_TIMEOUT,4,2         ; @I915_FENCE_TIMEOUT
	.comm	_I915_FENCE_GFP,4,2             ; @I915_FENCE_GFP
.subsections_via_symbols
