	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ad1889_playback_trigger
_snd_ad1889_playback_trigger:           ## @snd_ad1889_playback_trigger
	.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
	movl	%esi, %r14d
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	_AD_DS_WSMC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_ad1889_readw
	movl	%eax, %r15d
	cmpl	$128, %r14d
	je	LBB0_4
## %bb.1:
	cmpl	$129, %r14d
	jne	LBB0_3
## %bb.2:
	movq	_AD_DMA_WAV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AD_DMA_LOOP@GOTPCREL(%rip), %rax
	movq	_AD_DMA_IM_CNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ad1889_writew
	movq	_AD_DS_WSMC_WAEN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_AD_DMA_CHSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AD_DMA_CHSS_WAVS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ad1889_writel
	movq	%r12, %rdi
	callq	_ad1889_unmute
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_ad1889_mute
	movq	_AD_DS_WSMC_WAEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
LBB0_5:
	movl	%r15d, (%r12)
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_ad1889_writew
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_ad1889_readw
	xorl	%ebx, %ebx
	cmpl	$128, %r14d
	jne	LBB0_7
## %bb.6:
	movq	_AD_CHAN_WAV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ad1889_channel_reset
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_snd_BUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD_DS_WSMC,4,2                 ## @AD_DS_WSMC
	.comm	_AD_DMA_WAV,4,2                 ## @AD_DMA_WAV
	.comm	_AD_DMA_LOOP,4,2                ## @AD_DMA_LOOP
	.comm	_AD_DMA_IM_CNT,4,2              ## @AD_DMA_IM_CNT
	.comm	_AD_DS_WSMC_WAEN,4,2            ## @AD_DS_WSMC_WAEN
	.comm	_AD_DMA_CHSS,4,2                ## @AD_DMA_CHSS
	.comm	_AD_DMA_CHSS_WAVS,4,2           ## @AD_DMA_CHSS_WAVS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AD_CHAN_WAV,4,2                ## @AD_CHAN_WAV
	.no_dead_strip	_snd_ad1889_playback_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ad1889_playback_trigger
_snd_ad1889_playback_trigger:           ; @snd_ad1889_playback_trigger
	.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	x20, x1
	bl	_snd_pcm_substream_chip
	mov	x19, x0
Lloh0:
	adrp	x22, _AD_DS_WSMC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AD_DS_WSMC@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ad1889_readw
	mov	x21, x0
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_7
; %bb.2:
Lloh2:
	adrp	x8, _AD_DMA_WAV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AD_DMA_WAV@GOTPAGEOFF]
Lloh4:
	adrp	x9, _AD_DMA_LOOP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AD_DMA_LOOP@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _AD_DMA_IM_CNT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AD_DMA_IM_CNT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_ad1889_writew
Lloh11:
	adrp	x8, _AD_DS_WSMC_WAEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AD_DS_WSMC_WAEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w21, w8, w21
Lloh14:
	adrp	x8, _AD_DMA_CHSS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AD_DMA_CHSS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _AD_DMA_CHSS_WAVS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AD_DMA_CHSS_WAVS@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ad1889_writel
	mov	x0, x19
	bl	_ad1889_unmute
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_ad1889_mute
Lloh20:
	adrp	x8, _AD_DS_WSMC_WAEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AD_DS_WSMC_WAEN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	bic	w21, w21, w8
LBB0_4:
	str	w21, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_ad1889_writew
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ad1889_readw
	cmp	w20, #128
	b.ne	LBB0_6
; %bb.5:
Lloh23:
	adrp	x8, _AD_CHAN_WAV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AD_CHAN_WAV@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ad1889_channel_reset
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	bl	_snd_BUG
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AD_DS_WSMC,4,2                 ; @AD_DS_WSMC
	.comm	_AD_DMA_WAV,4,2                 ; @AD_DMA_WAV
	.comm	_AD_DMA_LOOP,4,2                ; @AD_DMA_LOOP
	.comm	_AD_DMA_IM_CNT,4,2              ; @AD_DMA_IM_CNT
	.comm	_AD_DS_WSMC_WAEN,4,2            ; @AD_DS_WSMC_WAEN
	.comm	_AD_DMA_CHSS,4,2                ; @AD_DMA_CHSS
	.comm	_AD_DMA_CHSS_WAVS,4,2           ; @AD_DMA_CHSS_WAVS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AD_CHAN_WAV,4,2                ; @AD_CHAN_WAV
	.no_dead_strip	_snd_ad1889_playback_trigger
.subsections_via_symbols
