	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_fence_chain_init           ## -- Begin function dma_fence_chain_init
	.p2align	4, 0x90
_dma_fence_chain_init:                  ## @dma_fence_chain_init
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_dma_fence_chain
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_spin_lock_init
	movl	32(%rbx), %edi
	movq	%r15, %rsi
	callq	_rcu_assign_pointer
	movq	%r12, 24(%rbx)
	movq	$0, 8(%rbx)
	leaq	16(%rbx), %rdi
	movq	_dma_fence_chain_irq_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_init_irq_work
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rsi
	movl	12(%r15), %edx
	movl	%r14d, %edi
	callq	___dma_fence_is_later
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r15), %r12d
	movq	(%r15), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_5
LBB0_1:
	movl	$1, %edi
	callq	_dma_fence_context_alloc
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_4:
	movl	$1, %edi
	callq	_dma_fence_context_alloc
	movl	%eax, %r12d
	movq	(%r15), %rdi
	movl	%r14d, %esi
	callq	_max
	movl	%eax, %r14d
LBB0_5:
	leaq	4(%rbx), %rdi
	movq	_dma_fence_chain_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_fence_init                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dma_fence_chain_irq_work,4,2   ## @dma_fence_chain_irq_work
	.comm	_dma_fence_chain_ops,4,2        ## @dma_fence_chain_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_fence_chain_init           ; -- Begin function dma_fence_chain_init
	.p2align	2
_dma_fence_chain_init:                  ; @dma_fence_chain_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_to_dma_fence_chain
	mov	x23, x0
	mov	x0, x20
	bl	_spin_lock_init
	ldr	w0, [x20, #32]
	mov	x1, x21
	bl	_rcu_assign_pointer
	str	x22, [x20, #24]
	str	xzr, [x20, #8]
	add	x0, x20, #16
Lloh0:
	adrp	x8, _dma_fence_chain_irq_work@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dma_fence_chain_irq_work@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_init_irq_work
	cbz	x23, LBB0_3
; %bb.1:
	ldr	x1, [x21]
	ldr	w2, [x21, #12]
	mov	x0, x19
	bl	___dma_fence_is_later
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w22, [x21, #8]
	ldr	x8, [x21]
	str	x8, [x20, #8]
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	bl	_dma_fence_context_alloc
	mov	x22, x0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
	bl	_dma_fence_context_alloc
	mov	x22, x0
	ldr	x0, [x21]
	mov	x1, x19
	bl	_max
	mov	x19, x0
LBB0_5:
Lloh3:
	adrp	x1, _dma_fence_chain_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _dma_fence_chain_ops@GOTPAGEOFF]
	add	x0, x20, #4
	mov	x2, x20
	mov	x3, x22
	mov	x4, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dma_fence_init
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_dma_fence_chain_irq_work,4,2   ; @dma_fence_chain_irq_work
	.comm	_dma_fence_chain_ops,4,2        ; @dma_fence_chain_ops
.subsections_via_symbols
