	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_add_move_fence
_ttm_bo_add_move_fence:                 ## @ttm_bo_add_move_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	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_spin_lock
	movl	4(%rbx), %edi
	callq	_dma_fence_get
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_spin_unlock
	xorl	%r14d, %r14d
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	movl	8(%r15), %edi
	movq	%r13, %rsi
	callq	_dma_resv_add_shared_fence
	movl	8(%r15), %edi
	movl	$1, %esi
	callq	_dma_resv_reserve_shared
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_dma_fence_put
	movl	%r12d, %r14d
	jmp	LBB0_4
LBB0_3:
	movq	(%r15), %rdi
	callq	_dma_fence_put
	movq	%r13, (%r15)
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ttm_bo_add_move_fence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_add_move_fence
_ttm_bo_add_move_fence:                 ; @ttm_bo_add_move_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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_spin_lock
	ldr	w0, [x21, #4]
	bl	_dma_fence_get
	mov	x20, x0
	mov	x0, x21
	bl	_spin_unlock
	cbz	x20, LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_dma_resv_add_shared_fence
	ldr	w0, [x19, #8]
	mov	w1, #1
	bl	_dma_resv_reserve_shared
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_dma_fence_put
	b	LBB0_5
LBB0_3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19]
	bl	_dma_fence_put
	mov	w21, #0
	str	x20, [x19]
LBB0_5:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ttm_bo_add_move_fence
.subsections_via_symbols
