	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxad_init_dmadev
_pxad_init_dmadev:                      ## @pxad_init_dmadev
	.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	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%edx, (%rsi)
	movl	%ecx, 4(%rsi)
	leaq	36(%rsi), %rdi
	callq	_INIT_LIST_HEAD
	movq	_pxad_alloc_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_pxad_free_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_pxad_tx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_pxad_issue_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_pxad_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_pxad_synchronize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_pxad_terminate_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%rax, %rsi
LBB0_2:
	movq	%r15, %rdi
	callq	_dma_set_mask
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_pxad_init_phys
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	addq	$8, %r14
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.4:
	movq	_pxad_free_desc@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	_U32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_PXAD_PRIO_LOWEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	(%r13), %eax
	movq	%rbx, %rdi
	addq	$4, %rdi
	movl	%eax, 4(%rbx)
	movq	%r14, %rsi
	callq	_vchan_init
	movq	%rbx, %rdi
	callq	_init_waitqueue_head
	decl	%r12d
	jne	LBB0_5
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmaenginem_async_device_register ## TAILCALL
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_pxad_alloc_chan_resources,4,2  ## @pxad_alloc_chan_resources
	.comm	_pxad_free_chan_resources,4,2   ## @pxad_free_chan_resources
	.comm	_pxad_tx_status,4,2             ## @pxad_tx_status
	.comm	_pxad_issue_pending,4,2         ## @pxad_issue_pending
	.comm	_pxad_config,4,2                ## @pxad_config
	.comm	_pxad_synchronize,4,2           ## @pxad_synchronize
	.comm	_pxad_terminate_all,4,2         ## @pxad_terminate_all
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_U32_MAX,4,2                    ## @U32_MAX
	.comm	_PXAD_PRIO_LOWEST,4,2           ## @PXAD_PRIO_LOWEST
	.comm	_pxad_free_desc,4,2             ## @pxad_free_desc
	.no_dead_strip	_pxad_init_dmadev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxad_init_dmadev
_pxad_init_dmadev:                      ; @pxad_init_dmadev
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
	stp	w2, w3, [x1]
	add	x0, x1, #36
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x8, _pxad_terminate_all@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pxad_terminate_all@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x21, x22
	str	w8, [x21, #8]!
Lloh3:
	adrp	x8, _pxad_alloc_chan_resources@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pxad_alloc_chan_resources@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _pxad_free_chan_resources@GOTPAGE
Lloh7:
	ldr	x9, [x9, _pxad_free_chan_resources@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #20]
Lloh9:
	adrp	x8, _pxad_tx_status@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pxad_tx_status@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _pxad_issue_pending@GOTPAGE
Lloh13:
	ldr	x9, [x9, _pxad_issue_pending@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #12]
Lloh15:
	adrp	x8, _pxad_config@GOTPAGE
Lloh16:
	ldr	x8, [x8, _pxad_config@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _pxad_synchronize@GOTPAGE
Lloh19:
	ldr	x9, [x9, _pxad_synchronize@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #4]
	ldr	x1, [x20]
	cbnz	x1, LBB0_2
; %bb.1:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
LBB0_2:
	mov	x0, x20
	bl	_dma_set_mask
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_pxad_init_phys
	cbz	w0, LBB0_4
LBB0_3:
	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
LBB0_4:
	cbz	w19, LBB0_8
; %bb.5:
Lloh21:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh22:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
Lloh23:
	adrp	x24, _U32_MAX@GOTPAGE
Lloh24:
	ldr	x24, [x24, _U32_MAX@GOTPAGEOFF]
Lloh25:
	adrp	x25, _PXAD_PRIO_LOWEST@GOTPAGE
Lloh26:
	ldr	x25, [x25, _PXAD_PRIO_LOWEST@GOTPAGEOFF]
Lloh27:
	adrp	x26, _pxad_free_desc@GOTPAGE
Lloh28:
	ldr	x26, [x26, _pxad_free_desc@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	ldr	w8, [x24]
	ldr	w9, [x25]
	stp	w9, w8, [x0, #8]
	ldr	w8, [x26]
	str	w8, [x0, #4]!
	mov	x1, x21
	bl	_vchan_init
	mov	x0, x22
	bl	_init_waitqueue_head
	subs	w19, w19, #1
	b.ne	LBB0_6
LBB0_8:
	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
	b	_dmaenginem_async_device_register
LBB0_9:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_pxad_alloc_chan_resources,4,2  ; @pxad_alloc_chan_resources
	.comm	_pxad_free_chan_resources,4,2   ; @pxad_free_chan_resources
	.comm	_pxad_tx_status,4,2             ; @pxad_tx_status
	.comm	_pxad_issue_pending,4,2         ; @pxad_issue_pending
	.comm	_pxad_config,4,2                ; @pxad_config
	.comm	_pxad_synchronize,4,2           ; @pxad_synchronize
	.comm	_pxad_terminate_all,4,2         ; @pxad_terminate_all
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_U32_MAX,4,2                    ; @U32_MAX
	.comm	_PXAD_PRIO_LOWEST,4,2           ; @PXAD_PRIO_LOWEST
	.comm	_pxad_free_desc,4,2             ; @pxad_free_desc
	.no_dead_strip	_pxad_init_dmadev
.subsections_via_symbols
