	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txx9aclc_dma_init
_txx9aclc_dma_init:                     ## @txx9aclc_dma_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_txx9aclc_get_plat_drvdata
	movq	%rax, %r15
	leaq	16(%rbx), %rdi
	callq	_spin_lock_init
	movl	$4, 24(%rbx)
	movq	(%rbx), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %r12
	movq	(%r15), %rcx
	movq	_ACAUDODAT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	%rcx, %rdx
	movq	_ACAUDIDAT@GOTPCREL(%rip), %rsi
	addq	(%rsi), %rcx
	xorl	%r15d, %r15d
	cmpq	(%r12), %rax
	cmovneq	%r15, %rdx
	cmoveq	%r15, %rcx
	movq	%rdx, 40(%rbx)
	movq	%rcx, 32(%rbx)
	callq	_dma_cap_zero
	movq	_DMA_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dma_cap_set
	movq	_filter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_dma_request_channel
	movl	%eax, 12(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	8(%rbx), %rdi
	movq	_txx9aclc_dma_tasklet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_tasklet_init
	jmp	LBB0_3
LBB0_1:
	movl	(%r14), %edi
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_ACAUDODAT,8,3                  ## @ACAUDODAT
	.comm	_ACAUDIDAT,8,3                  ## @ACAUDIDAT
	.comm	_DMA_SLAVE,4,2                  ## @DMA_SLAVE
	.comm	_filter,4,2                     ## @filter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA channel for %s is not available\n"

L_.str.1:                               ## @.str.1
	.asciz	"playback"

L_.str.2:                               ## @.str.2
	.asciz	"capture"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_txx9aclc_dma_tasklet,4,2       ## @txx9aclc_dma_tasklet
	.no_dead_strip	_txx9aclc_dma_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txx9aclc_dma_init
_txx9aclc_dma_init:                     ; @txx9aclc_dma_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_txx9aclc_get_plat_drvdata
	mov	x21, x0
	add	x0, x19, #16
	bl	_spin_lock_init
	mov	w8, #4
	str	w8, [x19, #24]
	ldr	x8, [x19]
Lloh0:
	adrp	x22, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x10, _ACAUDODAT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ACAUDODAT@GOTPAGEOFF]
	ldr	x11, [x21]
Lloh4:
	ldr	x10, [x10]
	add	x10, x10, x11
Lloh5:
	adrp	x12, _ACAUDIDAT@GOTPAGE
Lloh6:
	ldr	x12, [x12, _ACAUDIDAT@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	add	x11, x12, x11
	cmp	x8, x9
	csel	x8, x10, xzr, eq
	csel	x9, xzr, x11, eq
	stp	x9, x8, [x19, #32]
	bl	_dma_cap_zero
Lloh8:
	adrp	x8, _DMA_SLAVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_SLAVE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_dma_cap_set
Lloh11:
	adrp	x8, _filter@GOTPAGE
Lloh12:
	ldr	x8, [x8, _filter@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_dma_request_channel
	str	w0, [x19, #12]
	cbz	w0, LBB0_2
; %bb.1:
	add	x0, x19, #8
Lloh14:
	adrp	x8, _txx9aclc_dma_tasklet@GOTPAGE
Lloh15:
	ldr	x8, [x8, _txx9aclc_dma_tasklet@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	x9, [x22]
Lloh17:
	adrp	x10, l_.str.2@PAGE
Lloh18:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh19:
	adrp	x11, l_.str.1@PAGE
Lloh20:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x2, x11, x10, eq
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh23:
	adrp	x8, _EBUSY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_ACAUDODAT,8,3                  ; @ACAUDODAT
	.comm	_ACAUDIDAT,8,3                  ; @ACAUDIDAT
	.comm	_DMA_SLAVE,4,2                  ; @DMA_SLAVE
	.comm	_filter,4,2                     ; @filter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA channel for %s is not available\n"

l_.str.1:                               ; @.str.1
	.asciz	"playback"

l_.str.2:                               ; @.str.2
	.asciz	"capture"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_txx9aclc_dma_tasklet,4,2       ; @txx9aclc_dma_tasklet
	.no_dead_strip	_txx9aclc_dma_init
.subsections_via_symbols
