	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sb_csp_stop
_snd_sb_csp_stop:                       ## @snd_sb_csp_stop
	.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	_SNDRV_SB_CSP_ST_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rdi
	movq	_SB_DSP4_PCM_DEV@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	callq	_snd_sbmixer_read
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	movq	(%r13), %rsi
	incq	%rsi
	callq	_snd_sbmixer_read
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	movq	(%r13), %rsi
	movl	%r15d, %eax
	andb	$7, %al
	movzbl	%al, %edx
	callq	_snd_sbmixer_write
	movq	8(%rbx), %rdi
	movq	(%r13), %rsi
	incq	%rsi
	movl	%r14d, %eax
	andb	$7, %al
	movzbl	%al, %edx
	callq	_snd_sbmixer_write
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_lock
	movq	_SNDRV_SB_CSP_ST_QSOUND@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	movl	$224, %esi
	movl	$1, %edx
	callq	_set_codec_parameter
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_set_codec_parameter
	movq	8(%rbx), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_set_codec_parameter
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_3:
	movq	8(%rbx), %rdi
	movl	$192, %esi
	callq	_set_mode_register
	movl	%eax, %r12d
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_unlock
	movq	8(%rbx), %rdi
	movq	(%r13), %rsi
	movzbl	%r15b, %edx
	callq	_snd_sbmixer_write
	movq	8(%rbx), %rdi
	movq	(%r13), %rsi
	incq	%rsi
	movzbl	%r14b, %edx
	callq	_snd_sbmixer_write
	movq	8(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.4:
	movq	_SNDRV_SB_CSP_ST_PAUSED@GOTPCREL(%rip), %rax
	movq	_SNDRV_SB_CSP_ST_RUNNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	xorl	%r12d, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_SB_CSP_ST_RUNNING,4,2    ## @SNDRV_SB_CSP_ST_RUNNING
	.comm	_SB_DSP4_PCM_DEV,8,3            ## @SB_DSP4_PCM_DEV
	.comm	_SNDRV_SB_CSP_ST_QSOUND,4,2     ## @SNDRV_SB_CSP_ST_QSOUND
	.comm	_SNDRV_SB_CSP_ST_PAUSED,4,2     ## @SNDRV_SB_CSP_ST_PAUSED
	.no_dead_strip	_snd_sb_csp_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_sb_csp_stop
_snd_sb_csp_stop:                       ; @snd_sb_csp_stop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x23, _SNDRV_SB_CSP_ST_RUNNING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SNDRV_SB_CSP_ST_RUNNING@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x24, _SB_DSP4_PCM_DEV@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SB_DSP4_PCM_DEV@GOTPAGEOFF]
	ldr	x1, [x24]
	bl	_snd_sbmixer_read
	mov	x20, x0
	ldr	x0, [x19, #8]
	ldr	x8, [x24]
	add	x1, x8, #1
	bl	_snd_sbmixer_read
	mov	x21, x0
	ldr	x0, [x19, #8]
	ldr	x1, [x24]
	and	w2, w20, #0x7
	bl	_snd_sbmixer_write
	ldr	x0, [x19, #8]
	ldr	x8, [x24]
	add	x1, x8, #1
	and	w2, w21, #0x7
	bl	_snd_sbmixer_write
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_spin_lock
	ldr	w8, [x19]
Lloh4:
	adrp	x22, _SNDRV_SB_CSP_ST_QSOUND@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SNDRV_SB_CSP_ST_QSOUND@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
	mov	w1, #224
	mov	w2, #1
	bl	_set_codec_parameter
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #0
	bl	_set_codec_parameter
	ldr	x0, [x19, #8]
	mov	w1, #1
	mov	w2, #0
	bl	_set_codec_parameter
	ldr	w8, [x22]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	ldr	x0, [x19, #8]
	mov	w1, #192
	bl	_set_mode_register
	mov	x22, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_spin_unlock
	ldr	x0, [x19, #8]
	ldr	x1, [x24]
	mov	x2, x20
	bl	_snd_sbmixer_write
	ldr	x0, [x19, #8]
	ldr	x8, [x24]
	add	x1, x8, #1
	mov	x2, x21
	bl	_snd_sbmixer_write
	ldr	x0, [x19, #8]
	bl	_spin_unlock_irqrestore
	cbnz	w22, LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _SNDRV_SB_CSP_ST_PAUSED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_SB_CSP_ST_PAUSED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_SB_CSP_ST_RUNNING,4,2    ; @SNDRV_SB_CSP_ST_RUNNING
	.comm	_SB_DSP4_PCM_DEV,8,3            ; @SB_DSP4_PCM_DEV
	.comm	_SNDRV_SB_CSP_ST_QSOUND,4,2     ; @SNDRV_SB_CSP_ST_QSOUND
	.comm	_SNDRV_SB_CSP_ST_PAUSED,4,2     ; @SNDRV_SB_CSP_ST_PAUSED
	.no_dead_strip	_snd_sb_csp_stop
.subsections_via_symbols
