	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs46xx_playback_trigger
_snd_cs46xx_playback_trigger:           ## @snd_cs46xx_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, %ebx
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	%rax, %r14
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_6
## %bb.1:
	addl	$-130, %ebx
	cmpl	$1, %ebx
	ja	LBB0_7
## %bb.2:
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	(%r15), %rax
	movl	(%rax), %eax
	movq	_CS46XX_FRAGS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_snd_cs46xx_playback_transfer
LBB0_4:
	movq	_BA1_PCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_cs46xx_peek
	movzwl	%ax, %edx
	movl	(%rbx), %esi
	orl	(%r14), %edx
	jmp	LBB0_5
LBB0_6:
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	_BA1_PCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_cs46xx_peek
	movzwl	%ax, %edx
	movl	(%rbx), %esi
LBB0_5:
	movq	%r14, %rdi
	callq	_snd_cs46xx_poke
	movq	%r12, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CS46XX_FRAGS,4,2               ## @CS46XX_FRAGS
	.comm	_BA1_PCTL,4,2                   ## @BA1_PCTL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SCBVolumeCtrl,4,2              ## @SCBVolumeCtrl
	.no_dead_strip	_snd_cs46xx_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_cs46xx_playback_trigger
_snd_cs46xx_playback_trigger:           ; @snd_cs46xx_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	x20, x1
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	sub	w8, w20, #128
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.1:
	sub	w8, w20, #130
	cmp	w8, #1
	b.hi	LBB0_7
; %bb.2:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _CS46XX_FRAGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CS46XX_FRAGS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_snd_cs46xx_playback_transfer
LBB0_4:
Lloh3:
	adrp	x21, _BA1_PCTL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BA1_PCTL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_cs46xx_peek
	and	w8, w0, #0xffff
	ldr	w1, [x21]
	ldr	w9, [x19]
	orr	w2, w9, w8
	b	LBB0_6
LBB0_5:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
Lloh5:
	adrp	x21, _BA1_PCTL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _BA1_PCTL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_cs46xx_peek
	and	w2, w0, #0xffff
	ldr	w1, [x21]
LBB0_6:
	mov	x0, x19
	bl	_snd_cs46xx_poke
	mov	x0, x20
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CS46XX_FRAGS,4,2               ; @CS46XX_FRAGS
	.comm	_BA1_PCTL,4,2                   ; @BA1_PCTL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SCBVolumeCtrl,4,2              ; @SCBVolumeCtrl
	.no_dead_strip	_snd_cs46xx_playback_trigger
.subsections_via_symbols
