	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa11x0_dma_init_dmadev
_sa11x0_dma_init_dmadev:                ## @sa11x0_dma_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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	addq	$40, %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, 32(%r15)
	movq	_sa11x0_dma_free_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_sa11x0_dma_device_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_sa11x0_dma_device_pause@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_sa11x0_dma_device_resume@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_sa11x0_dma_device_terminate_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_sa11x0_dma_tx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_sa11x0_dma_issue_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_chan_desc@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	xorl	%r12d, %r12d
	movq	_sa11x0_dma_free_desc@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$20, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	_DMA_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	(%r13), %rax
	movl	4(%rax,%r12,8), %ecx
	movl	%ecx, 12(%rbx)
	movl	(%rax,%r12,8), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_vchan_init
	incq	%r12
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r12
	jb	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_async_device_register      ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sa11x0_dma_free_chan_resources,4,2 ## @sa11x0_dma_free_chan_resources
	.comm	_sa11x0_dma_device_config,4,2   ## @sa11x0_dma_device_config
	.comm	_sa11x0_dma_device_pause,4,2    ## @sa11x0_dma_device_pause
	.comm	_sa11x0_dma_device_resume,4,2   ## @sa11x0_dma_device_resume
	.comm	_sa11x0_dma_device_terminate_all,4,2 ## @sa11x0_dma_device_terminate_all
	.comm	_sa11x0_dma_tx_status,4,2       ## @sa11x0_dma_tx_status
	.comm	_sa11x0_dma_issue_pending,4,2   ## @sa11x0_dma_issue_pending
	.comm	_chan_desc,8,3                  ## @chan_desc
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no memory for channel %u\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_IN_PROGRESS,4,2            ## @DMA_IN_PROGRESS
	.comm	_sa11x0_dma_free_desc,4,2       ## @sa11x0_dma_free_desc
	.no_dead_strip	_sa11x0_dma_init_dmadev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa11x0_dma_init_dmadev
_sa11x0_dma_init_dmadev:                ; @sa11x0_dma_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, x1
	mov	x20, x0
	add	x0, x0, #40
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x8, _sa11x0_dma_free_chan_resources@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sa11x0_dma_free_chan_resources@GOTPAGEOFF]
	str	x19, [x20, #32]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh3:
	adrp	x8, _sa11x0_dma_device_config@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sa11x0_dma_device_config@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _sa11x0_dma_device_pause@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sa11x0_dma_device_pause@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _sa11x0_dma_device_resume@GOTPAGE
Lloh10:
	ldr	x10, [x10, _sa11x0_dma_device_resume@GOTPAGEOFF]
	stp	w9, w8, [x20, #16]
Lloh11:
	ldr	w8, [x10]
Lloh12:
	adrp	x9, _sa11x0_dma_device_terminate_all@GOTPAGE
Lloh13:
	ldr	x9, [x9, _sa11x0_dma_device_terminate_all@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh15:
	adrp	x8, _sa11x0_dma_tx_status@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sa11x0_dma_tx_status@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _sa11x0_dma_issue_pending@GOTPAGE
Lloh19:
	ldr	x9, [x9, _sa11x0_dma_issue_pending@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
Lloh21:
	adrp	x23, _chan_desc@GOTPAGE
Lloh22:
	ldr	x23, [x23, _chan_desc@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, #0
Lloh23:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
Lloh25:
	adrp	x25, _DMA_IN_PROGRESS@GOTPAGE
Lloh26:
	ldr	x25, [x25, _DMA_IN_PROGRESS@GOTPAGEOFF]
Lloh27:
	adrp	x26, _sa11x0_dma_free_desc@GOTPAGE
Lloh28:
	ldr	x26, [x26, _sa11x0_dma_free_desc@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	w0, #20
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	ldr	w8, [x25]
	str	w8, [x0, #16]
	ldr	x8, [x23]
	ldr	d0, [x8, x21, lsl #3]
	str	d0, [x0, #8]
	add	x0, x0, #4
	bl	_INIT_LIST_HEAD
	ldr	w8, [x26]
	str	w8, [x22]
	mov	x0, x22
	mov	x1, x20
	bl	_vchan_init
	add	x21, x21, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x21, w0, uxtw
	b.lo	LBB0_2
LBB0_4:
	mov	x0, x20
	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	_dma_async_device_register
LBB0_5:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGot	Lloh21, Lloh22
	.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 AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_sa11x0_dma_free_chan_resources,4,2 ; @sa11x0_dma_free_chan_resources
	.comm	_sa11x0_dma_device_config,4,2   ; @sa11x0_dma_device_config
	.comm	_sa11x0_dma_device_pause,4,2    ; @sa11x0_dma_device_pause
	.comm	_sa11x0_dma_device_resume,4,2   ; @sa11x0_dma_device_resume
	.comm	_sa11x0_dma_device_terminate_all,4,2 ; @sa11x0_dma_device_terminate_all
	.comm	_sa11x0_dma_tx_status,4,2       ; @sa11x0_dma_tx_status
	.comm	_sa11x0_dma_issue_pending,4,2   ; @sa11x0_dma_issue_pending
	.comm	_chan_desc,8,3                  ; @chan_desc
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no memory for channel %u\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_IN_PROGRESS,4,2            ; @DMA_IN_PROGRESS
	.comm	_sa11x0_dma_free_desc,4,2       ; @sa11x0_dma_free_desc
	.no_dead_strip	_sa11x0_dma_init_dmadev
.subsections_via_symbols
