	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_get_fence      ## -- Begin function i915_gem_object_get_fence
	.p2align	4, 0x90
_i915_gem_object_get_fence:             ## @i915_gem_object_get_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	24(%rdi), %r15
	movq	(%r15), %r12
	movq	_I915_TILING_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	%r14, %r13
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	cmpl	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_i915_gem_object_wait_fence
	testl	%eax, %eax
	jne	LBB0_14
LBB0_2:
	movq	16(%rbx), %rax
	movq	_I915_FENCE_REG_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.6:
	xorl	%eax, %eax
	cmpq	%r14, %r13
	je	LBB0_14
## %bb.7:
	movq	%r15, %rdi
	callq	_i915_find_fence_reg
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_12
## %bb.10:
	movq	%r12, %rdi
	callq	_i915_gem_object_wait_fence
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	%r12, %rdi
	callq	_i915_gem_object_fence_lost
	jmp	LBB0_12
LBB0_3:
	movq	8(%r12), %r15
	shlq	$4, %rax
	cmpl	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	addq	%rax, %r15
LBB0_12:
	xorl	%edx, %edx
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %dl
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_i915_gem_object_update_fence
	movl	$0, 8(%rbx)
	jmp	LBB0_13
LBB0_5:
	leaq	(%r15,%rax), %rdi
	addq	$8, %rdi
	movq	%r12, %rsi
	callq	_list_move_tail
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_EDEADLK@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_TILING_NONE,8,3           ## @I915_TILING_NONE
	.comm	_I915_FENCE_REG_NONE,8,3        ## @I915_FENCE_REG_NONE
	.comm	_EDEADLK,4,2                    ## @EDEADLK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_get_fence      ; -- Begin function i915_gem_object_get_fence
	.p2align	2
_i915_gem_object_get_fence:             ; @i915_gem_object_get_fence
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x22, [x0, #24]
	ldr	x21, [x22]
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _I915_TILING_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_TILING_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	cmp	x23, x24
	cset	w20, ne
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_i915_gem_object_wait_fence
	cbnz	w0, LBB0_13
LBB0_2:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _I915_FENCE_REG_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I915_FENCE_REG_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	cmp	x23, x24
	b.eq	LBB0_10
; %bb.4:
	mov	x0, x22
	bl	_i915_find_fence_reg
	cbz	x0, LBB0_12
; %bb.5:
	mov	x22, x0
	ldr	x21, [x0]
	cbz	x21, LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_i915_gem_object_wait_fence
	cbnz	w0, LBB0_13
; %bb.7:
	mov	x0, x21
	bl	_i915_gem_object_fence_lost
	b	LBB0_9
LBB0_8:
	ldr	x9, [x21, #8]
	add	x22, x9, x8, lsl #4
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_i915_gem_object_update_fence
	mov	w0, #0
	str	wzr, [x19, #8]
	b	LBB0_13
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	add	x0, x22, #8
	mov	x1, x21
	bl	_list_move_tail
	mov	w0, #0
	b	LBB0_13
LBB0_12:
Lloh6:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_TILING_NONE,8,3           ; @I915_TILING_NONE
	.comm	_I915_FENCE_REG_NONE,8,3        ; @I915_FENCE_REG_NONE
	.comm	_EDEADLK,4,2                    ; @EDEADLK
.subsections_via_symbols
