	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_amd7930_trigger
_snd_amd7930_trigger:                   ## @snd_amd7930_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	%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, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r12
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_SNDRV_PCM_TRIGGER_START@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	(%r12), %eax
	xorl	%r15d, %r15d
	testl	%r13d, %eax
	jne	LBB0_8
## %bb.2:
	orl	%r13d, %eax
	movl	%eax, (%r12)
	movq	_AMR_MUX_MCR4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AMD7930_CR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_sbus_writeb
	movq	_AM_MUX_MCR4_ENABLE_INTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AMD7930_DR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_sbus_writeb
	jmp	LBB0_8
LBB0_3:
	movq	_SNDRV_PCM_TRIGGER_STOP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_7
## %bb.4:
	movl	(%r12), %eax
	testl	%r13d, %eax
	je	LBB0_5
## %bb.6:
	notl	%r13d
	andl	%r13d, %eax
	movl	%eax, (%r12)
	movq	_AMR_MUX_MCR4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AMD7930_CR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_sbus_writeb
	movq	_AMD7930_DR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_sbus_writeb
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_5:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_TRIGGER_START,4,2    ## @SNDRV_PCM_TRIGGER_START
	.comm	_AMR_MUX_MCR4,4,2               ## @AMR_MUX_MCR4
	.comm	_AMD7930_CR,8,3                 ## @AMD7930_CR
	.comm	_AM_MUX_MCR4_ENABLE_INTS,4,2    ## @AM_MUX_MCR4_ENABLE_INTS
	.comm	_AMD7930_DR,8,3                 ## @AMD7930_DR
	.comm	_SNDRV_PCM_TRIGGER_STOP,4,2     ## @SNDRV_PCM_TRIGGER_STOP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_amd7930_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_amd7930_trigger
_snd_amd7930_trigger:                   ; @snd_amd7930_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	x22, x2
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _SNDRV_PCM_TRIGGER_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_TRIGGER_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x20]
	tst	w8, w21
	b.ne	LBB0_7
; %bb.2:
	orr	w8, w8, w21
	str	w8, [x20]
Lloh3:
	adrp	x8, _AMR_MUX_MCR4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMR_MUX_MCR4@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _AMD7930_CR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AMD7930_CR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_sbus_writeb
Lloh9:
	adrp	x8, _AM_MUX_MCR4_ENABLE_INTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AM_MUX_MCR4_ENABLE_INTS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _AMD7930_DR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AMD7930_DR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	b	LBB0_6
LBB0_3:
Lloh15:
	adrp	x8, _SNDRV_PCM_TRIGGER_STOP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SNDRV_PCM_TRIGGER_STOP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x20]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
	bic	w8, w8, w21
	str	w8, [x20]
Lloh18:
	adrp	x8, _AMR_MUX_MCR4@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AMR_MUX_MCR4@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
Lloh21:
	adrp	x9, _AMD7930_CR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AMD7930_CR@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_sbus_writeb
	ldr	x8, [x20, #8]
Lloh24:
	adrp	x9, _AMD7930_DR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AMD7930_DR@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
LBB0_6:
	bl	_sbus_writeb
LBB0_7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_TRIGGER_START,4,2    ; @SNDRV_PCM_TRIGGER_START
	.comm	_AMR_MUX_MCR4,4,2               ; @AMR_MUX_MCR4
	.comm	_AMD7930_CR,8,3                 ; @AMD7930_CR
	.comm	_AM_MUX_MCR4_ENABLE_INTS,4,2    ; @AM_MUX_MCR4_ENABLE_INTS
	.comm	_AMD7930_DR,8,3                 ; @AMD7930_DR
	.comm	_SNDRV_PCM_TRIGGER_STOP,4,2     ; @SNDRV_PCM_TRIGGER_STOP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_amd7930_trigger
.subsections_via_symbols
