	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __i915_vma_pin_fence
___i915_vma_pin_fence:                  ## @__i915_vma_pin_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	callq	_i915_vm_to_ggtt
	movq	%rax, %r12
	movl	16(%r15), %edi
	callq	_i915_gem_object_is_tiled
	movq	%rax, %r14
	testq	%rax, %rax
	cmovneq	%r15, %r14
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	cmpq	%r15, 8(%rbx)
	setne	%dil
	callq	_GEM_BUG_ON
	movq	%rbx, %rdi
	callq	_atomic_inc
	cmpl	$0, 20(%rbx)
	je	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_fence_update
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	callq	_atomic_dec
	movl	%r12d, %eax
	jmp	LBB0_10
LBB0_4:
	testq	%r14, %r14
	je	LBB0_9
## %bb.5:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_fence_find
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	addq	$16, %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_list_move_tail
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	xorl	%edi, %edi
	cmpq	%r14, 8(%rbx)
	setne	%dil
	callq	_GEM_BUG_ON
	testq	%r14, %r14
	movq	%rbx, %rax
	cmoveq	%r14, %rax
	xorl	%edi, %edi
	cmpq	%rax, (%r15)
	setne	%dil
	callq	_GEM_BUG_ON
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_3
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_atomic_read
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movq	%rbx, %rdi
	callq	_atomic_inc
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___i915_vma_pin_fence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __i915_vma_pin_fence
___i915_vma_pin_fence:                  ; @__i915_vma_pin_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, x0
	ldr	x0, [x0, #8]
	bl	_i915_vm_to_ggtt
	mov	x22, x0
	ldr	w0, [x19, #16]
	bl	_i915_gem_object_is_tiled
	cmp	x0, #0
	csel	x20, xzr, x19, eq
	ldr	x21, [x19]
	cbz	x21, LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	cmp	x8, x19
	cset	w0, ne
	bl	_GEM_BUG_ON
	mov	x0, x21
	bl	_atomic_inc
	ldr	w8, [x21, #20]
	cbz	w8, LBB0_7
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_fence_update
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_3:
	mov	x0, x21
	bl	_atomic_dec
	b	LBB0_10
LBB0_4:
	cbz	x20, LBB0_9
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_fence_find
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x21
	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
	b	_PTR_ERR
LBB0_7:
	add	x0, x21, #16
	mov	x1, x22
	bl	_list_move_tail
	b	LBB0_9
LBB0_8:
	ldr	x8, [x21, #8]
	cmp	x8, x20
	cset	w0, ne
	bl	_GEM_BUG_ON
	ldr	x8, [x19]
	cmp	x20, #0
	csel	x9, xzr, x21, eq
	cmp	x8, x9
	cset	w0, ne
	bl	_GEM_BUG_ON
	cbz	x20, LBB0_3
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x22
	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_11:
	mov	x0, x21
	bl	_atomic_read
	bl	_GEM_BUG_ON
	mov	x0, x21
	bl	_atomic_inc
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___i915_vma_pin_fence
.subsections_via_symbols
