	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_aw2_saa7146_pcm_trigger_stop_playback ## -- Begin function snd_aw2_saa7146_pcm_trigger_stop_playback
	.p2align	4, 0x90
_snd_aw2_saa7146_pcm_trigger_stop_playback: ## @snd_aw2_saa7146_pcm_trigger_stop_playback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	_ACON1@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_READREG
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	cmpl	$1, %ebx
	jne	LBB0_5
## %bb.3:
	movq	_TR_E_A1_OUT@GOTPCREL(%rip), %rbx
	movq	_WS1_CTRL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_TR_E_A2_OUT@GOTPCREL(%rip), %rbx
	movq	_WS2_CTRL@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	leal	(%rcx,%rcx,2), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_WRITEREG
	movl	(%rbx), %edi
	shll	$16, %edi
	movq	_MC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WRITEREG                       ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACON1,4,2                      ## @ACON1
	.comm	_WS2_CTRL,4,2                   ## @WS2_CTRL
	.comm	_TR_E_A2_OUT,4,2                ## @TR_E_A2_OUT
	.comm	_MC1,4,2                        ## @MC1
	.comm	_WS1_CTRL,4,2                   ## @WS1_CTRL
	.comm	_TR_E_A1_OUT,4,2                ## @TR_E_A1_OUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_aw2_saa7146_pcm_trigger_stop_playback ; -- Begin function snd_aw2_saa7146_pcm_trigger_stop_playback
	.p2align	2
_snd_aw2_saa7146_pcm_trigger_stop_playback: ; @snd_aw2_saa7146_pcm_trigger_stop_playback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x20, _ACON1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ACON1@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_READREG
	cbz	w19, LBB0_3
; %bb.1:
	cmp	w19, #1
	b.ne	LBB0_5
; %bb.2:
Lloh2:
	adrp	x19, _TR_E_A1_OUT@GOTPAGE
Lloh3:
	ldr	x19, [x19, _TR_E_A1_OUT@GOTPAGEOFF]
Lloh4:
	adrp	x8, _WS1_CTRL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WS1_CTRL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x19, _TR_E_A2_OUT@GOTPAGE
Lloh7:
	ldr	x19, [x19, _TR_E_A2_OUT@GOTPAGEOFF]
Lloh8:
	adrp	x8, _WS2_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WS2_CTRL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #1
	bic	w0, w0, w8
	ldr	w1, [x20]
	bl	_WRITEREG
	ldr	w8, [x19]
	lsl	w0, w8, #16
Lloh10:
	adrp	x8, _MC1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MC1@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WRITEREG
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ACON1,4,2                      ; @ACON1
	.comm	_WS2_CTRL,4,2                   ; @WS2_CTRL
	.comm	_TR_E_A2_OUT,4,2                ; @TR_E_A2_OUT
	.comm	_MC1,4,2                        ; @MC1
	.comm	_WS1_CTRL,4,2                   ; @WS1_CTRL
	.comm	_TR_E_A1_OUT,4,2                ; @TR_E_A1_OUT
.subsections_via_symbols
