	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_resv_get_fences_rcu        ## -- Begin function dma_resv_get_fences_rcu
	.p2align	4, 0x90
_dma_resv_get_fences_rcu:               ## @dma_resv_get_fences_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	$1, %r13d
	xorl	%r14d, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rbx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	je	LBB0_28
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r15, %rdi
	callq	_read_seqcount_begin
	movl	%eax, %r12d
	movl	8(%r15), %edi
	callq	_rcu_dereference
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_dma_fence_get_rcu
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %edi
	callq	_rcu_dereference
	movq	%rax, %r15
	testq	%rax, %rax
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r15), %rax
	shlq	$3, %rax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	8(%rax), %r12
	testq	%rbx, %rbx
	cmoveq	%rax, %r12
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	cmovneq	%rax, %r12
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	testq	%r12, %r12
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_krealloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %ecx
	testq	%rcx, %rcx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %rax
	xorl	%ebx, %ebx
	movq	%rcx, %r13
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_rcu_dereference
	movq	%rax, (%r14,%rbx,8)
	movq	%rax, %rdi
	callq	_dma_fence_get_rcu
	testl	%eax, %eax
	je	LBB0_27
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_13
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r12d
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %r13
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	%r14, %rdi
	callq	_dma_fence_put
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_krealloc
	testq	%rax, %rax
	je	LBB0_35
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	jne	LBB0_3
	jmp	LBB0_28
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %r12d                ## 4-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_read_seqcount_retry
	movl	%r13d, %ebx
	testq	%rax, %rax
	je	LBB0_2
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-8(%r14,%rbx,8), %rdi
	callq	_dma_fence_put
	decq	%rbx
	jne	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_fence_put
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpl	%r13d, %ebx
	je	LBB0_21
	jmp	LBB0_22
LBB0_28:
	movq	%r14, %rdi
	xorl	%r14d, %r14d
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_30
LBB0_29:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	jmp	LBB0_32
LBB0_30:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_32
## %bb.31:
	movl	%ebx, %eax
	incl	%ebx
	movq	%rcx, (%rdi,%rax,8)
LBB0_32:
	testl	%ebx, %ebx
	jne	LBB0_34
LBB0_33:
	callq	_kfree
	xorl	%ebx, %ebx
	xorl	%edi, %edi
LBB0_34:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rdi, (%rax)
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	movq	%r13, %rdi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_33
## %bb.36:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_NOWAIT,4,2                 ## @GFP_NOWAIT
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_resv_get_fences_rcu        ; -- Begin function dma_resv_get_fences_rcu
	.p2align	2
_dma_resv_get_fences_rcu:               ; @dma_resv_get_fences_rcu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	x2, x3, [sp]                    ; 16-byte Folded Spill
	mov	x21, x1
	mov	x22, x0
	mov	x24, #0
	mov	w19, #1
Lloh0:
	adrp	x20, ___GFP_NOWARN@GOTPAGE
Lloh1:
	ldr	x20, [x20, ___GFP_NOWARN@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	mov	x25, x24
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_rcu_read_unlock
	mov	x24, x25
	cbz	w19, LBB0_28
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	bl	_rcu_read_lock
	mov	x0, x22
	bl	_read_seqcount_begin
	mov	x26, x0
	ldr	w0, [x22, #8]
	bl	_rcu_dereference
	mov	x23, x0
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_dma_fence_get_rcu
	cbz	w0, LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22, #4]
	bl	_rcu_dereference
	mov	x27, x0
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x27]
	lsl	x8, x8, #3
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x23, #0
	ccmp	x21, #0, #0, ne
	add	x9, x8, #8
	csel	x28, x9, x8, eq
	cbz	x28, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh2:
	adrp	x8, _GFP_NOWAIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_NOWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w2, w9, w8
	mov	x0, x24
	mov	x1, x28
	bl	_krealloc
	cbz	x0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	cbz	x27, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w28, [x27, #4]
	cbz	w28, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27, #8]
	ldr	w0, [x8, x24, lsl #2]
	bl	_rcu_dereference
	str	x0, [x25, x24, lsl #3]
	bl	_dma_fence_get_rcu
	cbz	w0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x24, x24, #1
	cmp	x28, x24
	b.ne	LBB0_13
	b	LBB0_21
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x24
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_rcu_read_unlock
	mov	x0, x23
	bl	_dma_fence_put
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x28
	bl	_krealloc
	cbz	x0, LBB0_33
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	mov	x23, #0
	mov	x24, x0
	cbnz	w19, LBB0_3
	b	LBB0_28
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w24, #0
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, w28
	b.ne	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x26
	bl	_read_seqcount_retry
	cbz	x0, LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x28
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w24, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, w24
	lsl	x24, x8, #3
	sub	x26, x25, #8
LBB0_25:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x26, x24]
	bl	_dma_fence_put
	subs	x24, x24, #8
	b.ne	LBB0_25
LBB0_26:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_dma_fence_put
	b	LBB0_2
LBB0_27:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #0
	b	LBB0_2
LBB0_28:
	mov	w22, #0
	cbz	x21, LBB0_30
LBB0_29:
	ldp	x20, x19, [sp]                  ; 16-byte Folded Reload
	str	x23, [x21]
	cbnz	w28, LBB0_37
	b	LBB0_36
LBB0_30:
	cbz	x23, LBB0_32
; %bb.31:
	str	x23, [x24, w28, uxtw #3]
	add	w8, w28, #1
	mov	x28, x8
LBB0_32:
	ldp	x20, x19, [sp]                  ; 16-byte Folded Reload
	cbnz	w28, LBB0_37
	b	LBB0_36
LBB0_33:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	cbz	x21, LBB0_35
; %bb.34:
	mov	w28, #0
	mov	x23, #0
	b	LBB0_29
LBB0_35:
	ldp	x20, x19, [sp]                  ; 16-byte Folded Reload
LBB0_36:
	mov	x0, x24
	bl	_kfree
	mov	w28, #0
	mov	x24, #0
LBB0_37:
	str	w28, [x20]
	str	x24, [x19]
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_NOWAIT,4,2                 ; @GFP_NOWAIT
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
