	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_fence_array_create         ## -- Begin function dma_fence_array_create
	.p2align	4, 0x90
_dma_fence_array_create:                ## @dma_fence_array_create
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %r12d
	movslq	%edi, %rax
	leaq	32(,%rax,4), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_init
	leaq	4(%rbx), %rdi
	movq	_dma_fence_array_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	callq	_dma_fence_init
	leaq	20(%rbx), %rdi
	movq	_irq_dma_fence_array_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_init_irq_work
	movl	%r12d, (%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	$1, %esi
	cmovel	%r12d, %esi
	callq	_atomic_set
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	_PENDING_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_2:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_dma_fence_array_ops,4,2        ## @dma_fence_array_ops
	.comm	_irq_dma_fence_array_work,4,2   ## @irq_dma_fence_array_work
	.comm	_PENDING_ERROR,4,2              ## @PENDING_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_fence_array_create         ; -- Begin function dma_fence_array_create
	.p2align	2
_dma_fence_array_create:                ; @dma_fence_array_create
	.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, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	sbfiz	x8, x22, #2, #32
	add	x0, x8, #32
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	x25, x21, #24
	mov	x0, x25
	bl	_spin_lock_init
	add	x0, x21, #4
Lloh3:
	adrp	x1, _dma_fence_array_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _dma_fence_array_ops@GOTPAGEOFF]
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	bl	_dma_fence_init
	add	x0, x21, #20
Lloh5:
	adrp	x8, _irq_dma_fence_array_work@GOTPAGE
Lloh6:
	ldr	x8, [x8, _irq_dma_fence_array_work@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_init_irq_work
	str	w22, [x21]
	add	x0, x21, #16
	cmp	w20, #0
	csinc	w1, w22, wzr, eq
	bl	_atomic_set
	str	x19, [x21, #8]
Lloh8:
	adrp	x8, _PENDING_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PENDING_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #4]
LBB0_2:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_dma_fence_array_ops,4,2        ; @dma_fence_array_ops
	.comm	_irq_dma_fence_array_work,4,2   ; @irq_dma_fence_array_work
	.comm	_PENDING_ERROR,4,2              ; @PENDING_ERROR
.subsections_via_symbols
