	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sonicvibes_trigger
_snd_sonicvibes_trigger:                ## @snd_sonicvibes_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	%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
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r13
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_SNDRV_PCM_TRIGGER_START@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.1:
	movl	(%r13), %edx
	xorl	%r15d, %r15d
	testl	%r12d, %edx
	jne	LBB0_8
## %bb.2:
	orl	%r12d, %edx
	jmp	LBB0_3
LBB0_4:
	movq	_SNDRV_PCM_TRIGGER_STOP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_7
## %bb.5:
	movl	(%r13), %edx
	xorl	%r15d, %r15d
	testl	%r12d, %edx
	je	LBB0_8
## %bb.6:
	notl	%r12d
	andl	%r12d, %edx
LBB0_3:
	movl	%edx, (%r13)
	movq	_SV_IREG_PC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_snd_sonicvibes_out1
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_TRIGGER_START,4,2    ## @SNDRV_PCM_TRIGGER_START
	.comm	_SV_IREG_PC_ENABLE,4,2          ## @SV_IREG_PC_ENABLE
	.comm	_SNDRV_PCM_TRIGGER_STOP,4,2     ## @SNDRV_PCM_TRIGGER_STOP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_sonicvibes_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_sonicvibes_trigger
_snd_sonicvibes_trigger:                ; @snd_sonicvibes_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	x22, x2
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x8, _SNDRV_PCM_TRIGGER_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_TRIGGER_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x20]
	tst	w8, w21
	b.ne	LBB0_7
; %bb.2:
	orr	w2, w8, w21
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _SNDRV_PCM_TRIGGER_STOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_PCM_TRIGGER_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x20]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
	bic	w2, w8, w21
LBB0_6:
	str	w2, [x20]
Lloh6:
	adrp	x8, _SV_IREG_PC_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SV_IREG_PC_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_sonicvibes_out1
LBB0_7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_TRIGGER_START,4,2    ; @SNDRV_PCM_TRIGGER_START
	.comm	_SV_IREG_PC_ENABLE,4,2          ; @SV_IREG_PC_ENABLE
	.comm	_SNDRV_PCM_TRIGGER_STOP,4,2     ; @SNDRV_PCM_TRIGGER_STOP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_sonicvibes_trigger
.subsections_via_symbols
