	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_resv_wait_timeout_rcu      ## -- Begin function dma_resv_wait_timeout_rcu
	.p2align	4, 0x90
_dma_resv_wait_timeout_rcu:             ## @dma_resv_wait_timeout_rcu
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	testq	%rcx, %rcx
	movl	$1, %eax
	cmovneq	%rcx, %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
	movq	%r15, %rdi
	callq	_read_seqcount_begin
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	8(%r15), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rax, %r14
	movq	_DMA_FENCE_FLAG_SIGNALED_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_15
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=2
	xorl	%r14d, %r14d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	4(%r15), %edi
	callq	_rcu_dereference
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rax, %r15
	movl	(%rax), %r13d
	testq	%r14, %r14
	jne	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=2
	testl	%r13d, %r13d
	je	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=2
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=3
	incq	%r12
	cmpq	%r12, %r13
	je	LBB0_29
LBB0_11:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r15), %rax
	movl	(%rax,%r12,4), %edi
	callq	_rcu_dereference
	movq	%rax, %r14
	movq	_DMA_FENCE_FLAG_SIGNALED_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	%r14, %rdi
	callq	_dma_fence_get_rcu
	testl	%eax, %eax
	je	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	%r14, %rdi
	callq	_dma_fence_is_signaled
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	%r14, %rdi
	callq	_dma_fence_put
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=2
	movq	%r14, %rdi
	callq	_dma_fence_get_rcu
	testl	%eax, %eax
	je	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	%r14, %rdi
	callq	_dma_fence_is_signaled
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	%r14, %rdi
	callq	_dma_fence_put
	xorl	%r14d, %r14d
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=2
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=2
	movl	$-1, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=2
	xorl	%r13d, %r13d
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=2
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=2
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testq	%r14, %r14
	je	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_read_seqcount_retry
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	%r14, %rdi
	callq	_dma_fence_put
	jmp	LBB0_2
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=2
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_dma_fence_wait_timeout
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_dma_fence_put
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	testq	%r15, %r15
	movq	%r15, %rax
	jle	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	cmpl	%r13d, %r12d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jb	LBB0_1
	jmp	LBB0_31
LBB0_29:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_30:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movq	%r15, %rax
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FENCE_FLAG_SIGNALED_BIT,4,2 ## @DMA_FENCE_FLAG_SIGNALED_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_resv_wait_timeout_rcu      ; -- Begin function dma_resv_wait_timeout_rcu
	.p2align	2
_dma_resv_wait_timeout_rcu:             ; @dma_resv_wait_timeout_rcu
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	x3, #0
	csinc	x19, x3, xzr, ne
Lloh0:
	adrp	x26, _DMA_FENCE_FLAG_SIGNALED_BIT@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DMA_FENCE_FLAG_SIGNALED_BIT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_rcu_read_unlock
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x22
	bl	_read_seqcount_begin
	mov	x23, x0
	bl	_rcu_read_lock
	ldr	w0, [x22, #8]
	bl	_rcu_dereference
	mov	x24, x0
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x26]
	mov	x1, x24
	bl	_test_bit
	cbz	x0, LBB0_16
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, #0
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w21, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22, #4]
	bl	_rcu_dereference
	cbz	x0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	ldr	w27, [x0]
	cbnz	x24, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w27, LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x28, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x28, x28, #1
	cmp	x27, x28
	b.eq	LBB0_27
LBB0_11:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, #8]
	ldr	w0, [x8, x28, lsl #2]
	bl	_rcu_dereference
	mov	x24, x0
	ldr	w0, [x26]
	mov	x1, x24
	bl	_test_bit
	cbnz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x24
	bl	_dma_fence_get_rcu
	cbz	w0, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x24
	bl	_dma_fence_is_signaled
	cbz	x0, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x24
	bl	_dma_fence_put
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w27, #0
	mov	w28, #-1
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_dma_fence_get_rcu
	cbz	w0, LBB0_1
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_dma_fence_is_signaled
	cbz	x0, LBB0_5
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_dma_fence_put
	b	LBB0_4
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w27, #0
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w28, #0
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_rcu_read_unlock
	cbz	x24, LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_read_seqcount_retry
	cbz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_dma_fence_put
	b	LBB0_2
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	x1, x20
	mov	x2, x19
	bl	_dma_fence_wait_timeout
	mov	x19, x0
	mov	x0, x24
	bl	_dma_fence_put
	cbz	w21, LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x19, #1
	b.lt	LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w28, #1
	cmp	w8, w27
	b.lo	LBB0_2
	b	LBB0_28
LBB0_27:
	bl	_rcu_read_unlock
LBB0_28:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FENCE_FLAG_SIGNALED_BIT,4,2 ; @DMA_FENCE_FLAG_SIGNALED_BIT
.subsections_via_symbols
