	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_harmony_playback_trigger
_snd_harmony_playback_trigger:          ## @snd_harmony_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_snd_pcm_substream_chip
	cmpq	$0, 16(%rax)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock
	cmpl	$129, %r14d
	je	LBB0_5
## %bb.3:
	cmpl	$130, %r14d
	jne	LBB0_7
## %bb.4:
	movl	$1, 8(%rbx)
	movq	_HARMONY_PNXTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%rbx), %edx
	movq	%rbx, %rdi
	callq	_harmony_write
	movq	_HARMONY_RNXTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	movq	%rbx, %rdi
	callq	_harmony_write
	movq	%rbx, %rdi
	callq	_harmony_unmute
	movq	%rbx, %rdi
	callq	_harmony_enable_interrupts
	jmp	LBB0_6
LBB0_5:
	movl	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_harmony_mute
	movq	_HARMONY_PNXTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_harmony_write
	movq	%rbx, %rdi
	callq	_harmony_disable_interrupts
LBB0_6:
	movq	%rbx, %rdi
	callq	_spin_unlock
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_spin_unlock
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_snd_BUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_HARMONY_PNXTADD,4,2            ## @HARMONY_PNXTADD
	.comm	_HARMONY_RNXTADD,4,2            ## @HARMONY_RNXTADD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_harmony_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_harmony_playback_trigger
_snd_harmony_playback_trigger:          ; @snd_harmony_playback_trigger
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_snd_pcm_substream_chip
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	mov	x19, x0
	bl	_spin_lock
	cmp	w20, #129
	b.eq	LBB0_6
; %bb.4:
	cmp	w20, #130
	b.ne	LBB0_9
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #8]
Lloh2:
	adrp	x8, _HARMONY_PNXTADD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HARMONY_PNXTADD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x19, #28]
	mov	x0, x19
	bl	_harmony_write
Lloh5:
	adrp	x8, _HARMONY_RNXTADD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HARMONY_RNXTADD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	mov	x0, x19
	bl	_harmony_write
	mov	x0, x19
	bl	_harmony_unmute
	mov	x0, x19
	bl	_harmony_enable_interrupts
	b	LBB0_7
LBB0_6:
	str	wzr, [x19, #8]
	mov	x0, x19
	bl	_harmony_mute
Lloh8:
	adrp	x8, _HARMONY_PNXTADD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HARMONY_PNXTADD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x19
	bl	_harmony_write
	mov	x0, x19
	bl	_harmony_disable_interrupts
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock
	bl	_snd_BUG
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_HARMONY_PNXTADD,4,2            ; @HARMONY_PNXTADD
	.comm	_HARMONY_RNXTADD,4,2            ; @HARMONY_RNXTADD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_harmony_playback_trigger
.subsections_via_symbols
