	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sb16_playback_trigger
_snd_sb16_playback_trigger:             ## @snd_sb16_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	%rax, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_spin_lock
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	addl	$-130, %ebx
	cmpl	$1, %ebx
	ja	LBB0_6
## %bb.2:
	movq	_SB_RATE_LOCK_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_SB_MODE_PLAYBACK_16@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	jne	LBB0_7
## %bb.3:
	movq	_SB_DSP_DMA8_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_SB_MODE_PLAYBACK_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	jne	LBB0_9
## %bb.5:
	movq	_SB_DSP_DMA8_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_7:
	movq	_SB_DSP_DMA16_ON@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_sbdsp_command
	jmp	LBB0_16
LBB0_9:
	movq	_SB_DSP_DMA16_OFF@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_sbdsp_command
	movl	(%r15), %eax
	movq	_SB_RATE_LOCK_CAPTURE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.11:
	movq	_SB_MODE_CAPTURE_16@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_13
## %bb.12:
	movq	_SB_DSP_DMA8_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_SB_DSP_DMA16_ON@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_sbdsp_command
	movl	(%r15), %eax
LBB0_15:
	movq	_SB_RATE_LOCK_PLAYBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r15)
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SB_RATE_LOCK_PLAYBACK,4,2      ## @SB_RATE_LOCK_PLAYBACK
	.comm	_SB_MODE_PLAYBACK_16,4,2        ## @SB_MODE_PLAYBACK_16
	.comm	_SB_DSP_DMA16_ON,4,2            ## @SB_DSP_DMA16_ON
	.comm	_SB_DSP_DMA8_ON,4,2             ## @SB_DSP_DMA8_ON
	.comm	_SB_DSP_DMA16_OFF,4,2           ## @SB_DSP_DMA16_OFF
	.comm	_SB_DSP_DMA8_OFF,4,2            ## @SB_DSP_DMA8_OFF
	.comm	_SB_RATE_LOCK_CAPTURE,4,2       ## @SB_RATE_LOCK_CAPTURE
	.comm	_SB_MODE_CAPTURE_16,4,2         ## @SB_MODE_CAPTURE_16
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_sb16_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_sb16_playback_trigger
_snd_sb16_playback_trigger:             ; @snd_sb16_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	x21, x1
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock
	sub	w8, w21, #128
	cmp	w8, #2
	b.lo	LBB0_3
; %bb.1:
	sub	w8, w21, #130
	cmp	w8, #1
	b.hi	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _SB_RATE_LOCK_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SB_RATE_LOCK_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh3:
	adrp	x9, _SB_MODE_PLAYBACK_16@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SB_MODE_PLAYBACK_16@GOTPAGEOFF]
Lloh5:
	adrp	x10, _SB_DSP_DMA16_ON@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SB_DSP_DMA16_ON@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x11, _SB_DSP_DMA8_ON@GOTPAGE
Lloh9:
	ldr	x11, [x11, _SB_DSP_DMA8_ON@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_sbdsp_command
	mov	w21, #0
	b	LBB0_7
LBB0_3:
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _SB_MODE_PLAYBACK_16@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SB_MODE_PLAYBACK_16@GOTPAGEOFF]
Lloh12:
	adrp	x10, _SB_DSP_DMA16_OFF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SB_DSP_DMA16_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x11, _SB_DSP_DMA8_OFF@GOTPAGE
Lloh16:
	ldr	x11, [x11, _SB_DSP_DMA8_OFF@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_sbdsp_command
	ldr	w8, [x20]
Lloh17:
	adrp	x9, _SB_RATE_LOCK_CAPTURE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SB_RATE_LOCK_CAPTURE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh20:
	adrp	x9, _SB_MODE_CAPTURE_16@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SB_MODE_CAPTURE_16@GOTPAGEOFF]
Lloh22:
	adrp	x10, _SB_DSP_DMA16_ON@GOTPAGE
Lloh23:
	ldr	x10, [x10, _SB_DSP_DMA16_ON@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x11, _SB_DSP_DMA8_ON@GOTPAGE
Lloh26:
	ldr	x11, [x11, _SB_DSP_DMA8_ON@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_sbdsp_command
	ldr	w8, [x20]
LBB0_5:
	mov	w21, #0
Lloh27:
	adrp	x9, _SB_RATE_LOCK_PLAYBACK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SB_RATE_LOCK_PLAYBACK@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x20]
	b	LBB0_7
LBB0_6:
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x21
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SB_RATE_LOCK_PLAYBACK,4,2      ; @SB_RATE_LOCK_PLAYBACK
	.comm	_SB_MODE_PLAYBACK_16,4,2        ; @SB_MODE_PLAYBACK_16
	.comm	_SB_DSP_DMA16_ON,4,2            ; @SB_DSP_DMA16_ON
	.comm	_SB_DSP_DMA8_ON,4,2             ; @SB_DSP_DMA8_ON
	.comm	_SB_DSP_DMA16_OFF,4,2           ; @SB_DSP_DMA16_OFF
	.comm	_SB_DSP_DMA8_OFF,4,2            ; @SB_DSP_DMA8_OFF
	.comm	_SB_RATE_LOCK_CAPTURE,4,2       ; @SB_RATE_LOCK_CAPTURE
	.comm	_SB_MODE_CAPTURE_16,4,2         ; @SB_MODE_CAPTURE_16
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_sb16_playback_trigger
.subsections_via_symbols
