	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_fence_obj_add_action
_vmw_fence_obj_add_action:              ## @vmw_fence_obj_add_action
	.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, %r13
	callq	_fman_from_fence
	movq	%rax, %r12
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	12(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	16(%r12), %rax
	movq	(%rbx), %rcx
	incl	(%rax,%rcx,4)
	leaq	4(%r13), %rdi
	callq	_dma_fence_is_signaled_locked
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_vmw_fences_perform_actions
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_6
LBB0_2:
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_vmw_fence_goal_check_locked
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.3:
	cmpl	$0, (%r12)
	jne	LBB0_5
## %bb.4:
	movl	$1, (%r12)
	movl	8(%r12), %edi
	callq	_vmw_goal_waiter_add
LBB0_5:
	movq	%r12, %rdi
	callq	_vmw_fences_update
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vmw_fence_obj_add_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_fence_obj_add_action
_vmw_fence_obj_add_action:              ; @vmw_fence_obj_add_action
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x23, x0
	bl	_fman_from_fence
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	add	x21, x20, #12
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x20, #16]
	ldr	x9, [x22]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	add	x0, x23, #4
	bl	_dma_fence_is_signaled_locked
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, sp, #8
	bl	_INIT_LIST_HEAD
	add	x0, x22, #8
	add	x1, sp, #8
	bl	_list_add_tail
	add	x1, sp, #8
	mov	x0, x20
	bl	_vmw_fences_perform_actions
	mov	x0, x21
	bl	_spin_unlock
	b	LBB0_6
LBB0_2:
	add	x0, x22, #8
	mov	x1, x23
	bl	_list_add_tail
	mov	x0, x23
	bl	_vmw_fence_goal_check_locked
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock
	cbz	w22, LBB0_6
; %bb.3:
	ldr	w8, [x20]
	cbnz	w8, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x20, #8]
	bl	_vmw_goal_waiter_add
LBB0_5:
	mov	x0, x20
	bl	_vmw_fences_update
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vmw_fence_obj_add_action
.subsections_via_symbols
