	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_fence_chain_release
_dma_fence_chain_release:               ## @dma_fence_chain_release
	.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, %r14
	callq	_to_dma_fence_chain
	movq	%rax, %r12
	movl	8(%rax), %edi
	movl	$1, %esi
	callq	_rcu_dereference_protected
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_kref_read
	cmpl	$1, %eax
	jg	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_to_dma_fence_chain
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rax), %ecx
	movl	%ecx, 8(%r12)
	movl	8(%rax), %edi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	movq	%rbx, %rdi
	callq	_dma_fence_put
	movl	8(%r12), %edi
	movl	$1, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %r15
	jmp	LBB0_8
LBB0_5:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r15, %rdi
	callq	_dma_fence_put
	movq	(%r12), %rdi
	callq	_dma_fence_put
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_fence_free                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dma_fence_chain_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_fence_chain_release
_dma_fence_chain_release:               ; @dma_fence_chain_release
	.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
	bl	_to_dma_fence_chain
	mov	x20, x0
	ldr	w0, [x0, #8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w1, #1
	bl	_rcu_dereference_protected
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_kref_read
	cmp	w0, #1
	b.gt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_to_dma_fence_chain
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x0, #8]
	str	w8, [x20, #8]
	ldr	w0, [x0, #8]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	mov	x0, x21
	bl	_dma_fence_put
	ldr	w0, [x20, #8]
	b	LBB0_1
LBB0_5:
	mov	x0, x21
	bl	_dma_fence_put
	ldr	x0, [x20]
	bl	_dma_fence_put
	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
	b	_dma_fence_free
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dma_fence_chain_release
.subsections_via_symbols
