	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sb8_playback_trigger
_snd_sb8_playback_trigger:              ## @snd_sb8_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
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	leaq	12(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpl	$128, %r14d
	je	LBB0_4
## %bb.1:
	cmpl	$129, %r14d
	jne	LBB0_10
## %bb.2:
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	_snd_sbdsp_command
	movl	(%r12), %eax
	movq	_SB_DSP_OUTPUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.3:
	movl	20(%r12), %ebx
	decl	%ebx
	movzbl	%bl, %esi
	movq	%r12, %rdi
	callq	_snd_sbdsp_command
	shrl	$8, %ebx
	jmp	LBB0_9
LBB0_4:
	movl	(%r12), %eax
	movq	_SB_DSP_HI_OUTPUT_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.5:
	movq	(%rbx), %rbx
	movq	%r12, %rdi
	callq	_snd_sbdsp_reset
	cmpl	$2, (%rbx)
	jl	LBB0_8
## %bb.6:
	movq	%r12, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_SB_DSP_STEREO_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %edx
	andl	$-3, %edx
	movq	%r12, %rdi
	callq	_snd_sbmixer_write
	movq	%rbx, %rdi
	callq	_spin_unlock
	jmp	LBB0_8
LBB0_7:
	movq	_SB_DSP_DMA8_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_sbdsp_command
LBB0_8:
	movq	_SB_DSP_SPEAKER_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_sbdsp_command
LBB0_10:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	cmpl	$129, %r14d
	jne	LBB0_11
## %bb.12:
	movq	_SB_MODE_PLAYBACK_8@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_SB_MODE_HALT@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SB_DSP_OUTPUT,4,2              ## @SB_DSP_OUTPUT
	.comm	_SB_DSP_HI_OUTPUT_AUTO,4,2      ## @SB_DSP_HI_OUTPUT_AUTO
	.comm	_SB_DSP_STEREO_SW,4,2           ## @SB_DSP_STEREO_SW
	.comm	_SB_DSP_DMA8_OFF,4,2            ## @SB_DSP_DMA8_OFF
	.comm	_SB_DSP_SPEAKER_OFF,4,2         ## @SB_DSP_SPEAKER_OFF
	.comm	_SB_MODE_PLAYBACK_8,4,2         ## @SB_MODE_PLAYBACK_8
	.comm	_SB_MODE_HALT,4,2               ## @SB_MODE_HALT
	.no_dead_strip	_snd_sb8_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_sb8_playback_trigger
_snd_sb8_playback_trigger:              ; @snd_sb8_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	x19, x1
	mov	x22, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	add	x21, x0, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	cmp	w19, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w19, #129
	b.ne	LBB0_10
; %bb.2:
	ldr	w1, [x20]
	mov	x0, x20
	bl	_snd_sbdsp_command
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _SB_DSP_OUTPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SB_DSP_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.3:
	ldr	w8, [x20, #20]
	sub	w22, w8, #1
	and	w1, w22, #0xff
	mov	x0, x20
	bl	_snd_sbdsp_command
	lsr	w1, w22, #8
	b	LBB0_9
LBB0_4:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _SB_DSP_HI_OUTPUT_AUTO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SB_DSP_HI_OUTPUT_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:
	ldr	x22, [x22]
	mov	x0, x20
	bl	_snd_sbdsp_reset
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.6:
	add	x22, x20, #16
	mov	x0, x22
	bl	_spin_lock
Lloh6:
	adrp	x8, _SB_DSP_STEREO_SW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SB_DSP_STEREO_SW@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
	and	w2, w8, #0xfffffffd
	mov	x0, x20
	bl	_snd_sbmixer_write
	mov	x0, x22
	bl	_spin_unlock
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _SB_DSP_DMA8_OFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SB_DSP_DMA8_OFF@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_sbdsp_command
LBB0_8:
Lloh12:
	adrp	x8, _SB_DSP_SPEAKER_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SB_DSP_SPEAKER_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
LBB0_9:
	mov	x0, x20
	bl	_snd_sbdsp_command
LBB0_10:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x8, _SB_MODE_PLAYBACK_8@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SB_MODE_PLAYBACK_8@GOTPAGEOFF]
Lloh17:
	adrp	x9, _SB_MODE_HALT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SB_MODE_HALT@GOTPAGEOFF]
	cmp	w19, #129
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SB_DSP_OUTPUT,4,2              ; @SB_DSP_OUTPUT
	.comm	_SB_DSP_HI_OUTPUT_AUTO,4,2      ; @SB_DSP_HI_OUTPUT_AUTO
	.comm	_SB_DSP_STEREO_SW,4,2           ; @SB_DSP_STEREO_SW
	.comm	_SB_DSP_DMA8_OFF,4,2            ; @SB_DSP_DMA8_OFF
	.comm	_SB_DSP_SPEAKER_OFF,4,2         ; @SB_DSP_SPEAKER_OFF
	.comm	_SB_MODE_PLAYBACK_8,4,2         ; @SB_MODE_PLAYBACK_8
	.comm	_SB_MODE_HALT,4,2               ; @SB_MODE_HALT
	.no_dead_strip	_snd_sb8_playback_trigger
.subsections_via_symbols
