	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_resv_add_shared_fence      ## -- Begin function dma_resv_add_shared_fence
	.p2align	4, 0x90
_dma_resv_add_shared_fence:             ## @dma_resv_add_shared_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, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_dma_fence_get
	movq	%r15, %rdi
	callq	_dma_resv_assert_held
	movq	%r15, %rdi
	callq	_dma_resv_get_list
	movq	%rax, %r12
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_preempt_disable
	movq	%r15, %rdi
	callq	_write_seqcount_begin
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%r13,4), %ebx
	movq	%r15, %rdi
	callq	_dma_resv_held
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_dma_fence_is_signaled
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_2
LBB0_5:
	movl	(%r12), %eax
	xorl	%edi, %edi
	cmpl	4(%r12), %eax
	setae	%dil
	callq	_BUG_ON
	leal	1(%r14), %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movl	%r14d, %eax
	movl	%r13d, %r14d
	movl	%eax, %r13d
LBB0_7:
	movq	8(%r12), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_RCU_INIT_POINTER
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_smp_store_mb
	movq	%r15, %rdi
	callq	_write_seqcount_end
	xorl	%eax, %eax
	callq	_preempt_enable
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_fence_put                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_resv_add_shared_fence      ; -- Begin function dma_resv_add_shared_fence
	.p2align	2
_dma_resv_add_shared_fence:             ; @dma_resv_add_shared_fence
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_dma_fence_get
	mov	x0, x19
	bl	_dma_resv_assert_held
	mov	x0, x19
	bl	_dma_resv_get_list
	mov	x21, x0
	ldr	w24, [x0]
	bl	_preempt_disable
	mov	x0, x19
	bl	_write_seqcount_begin
	cbz	w24, LBB0_5
; %bb.1:
	mov	x25, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w22, [x8, x25, lsl #2]
	mov	x0, x19
	bl	_dma_resv_held
	mov	x1, x0
	mov	x0, x22
	bl	_rcu_dereference_protected
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_dma_fence_is_signaled
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	cmp	x24, x25
	b.ne	LBB0_2
LBB0_5:
	ldp	w8, w9, [x21]
	cmp	w8, w9
	cset	w0, hs
	bl	_BUG_ON
	mov	x22, #0
	add	w23, w24, #1
	b	LBB0_7
LBB0_6:
	mov	x23, x24
	mov	x24, x25
LBB0_7:
	ldr	x8, [x21, #8]
	ldr	w0, [x8, w24, uxtw #2]
	mov	x1, x20
	bl	_RCU_INIT_POINTER
	ldr	w0, [x21]
	mov	x1, x23
	bl	_smp_store_mb
	mov	x0, x19
	bl	_write_seqcount_end
	bl	_preempt_enable
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dma_fence_put
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
