	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_pcm_interrupt_volume
_snd_gf1_pcm_interrupt_volume:          ## @snd_gf1_pcm_interrupt_volume
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %r12
	callq	_spin_lock
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_select_voice
	movq	_SNDRV_GF1_VB_VOLUME_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_ctrl_stop
	movq	%rbx, %rdi
	callq	_spin_unlock
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	movq	_SNDRV_GF1_PCM_PFLG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 8(%r12)
	je	LBB0_3
## %bb.4:
	movq	16(%r12), %rax
	xorl	%ecx, %ecx
	cmpq	%r14, (%rax)
	setne	%cl
	movzwl	4(%rbx,%rcx,2), %r15d
	movq	%rbx, %rdi
	callq	_spin_lock
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_select_voice
	movq	_SNDRV_GF1_VW_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_snd_gf1_write16
	movl	$1, 4(%r12)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_GF1_VB_VOLUME_CONTROL,4,2 ## @SNDRV_GF1_VB_VOLUME_CONTROL
	.comm	_SNDRV_GF1_PCM_PFLG_ACTIVE,4,2  ## @SNDRV_GF1_PCM_PFLG_ACTIVE
	.comm	_SNDRV_GF1_VW_VOLUME,4,2        ## @SNDRV_GF1_VW_VOLUME
	.no_dead_strip	_snd_gf1_pcm_interrupt_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_gf1_pcm_interrupt_volume
_snd_gf1_pcm_interrupt_volume:          ; @snd_gf1_pcm_interrupt_volume
	.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	x19, x0
	ldr	x22, [x1, #8]
	bl	_spin_lock
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_gf1_select_voice
Lloh0:
	adrp	x8, _SNDRV_GF1_VB_VOLUME_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_GF1_VB_VOLUME_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_gf1_ctrl_stop
	mov	x0, x19
	bl	_spin_unlock
	cbz	x22, LBB0_4
; %bb.1:
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _SNDRV_GF1_PCM_PFLG_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNDRV_GF1_PCM_PFLG_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	mov	w9, #6
	mov	w10, #4
	cmp	x8, x20
	csel	x8, x10, x9, eq
	ldrh	w21, [x19, x8]
	mov	x0, x19
	bl	_spin_lock
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_gf1_select_voice
Lloh6:
	adrp	x8, _SNDRV_GF1_VW_VOLUME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_GF1_VW_VOLUME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_snd_gf1_write16
	mov	w8, #1
	str	w8, [x22, #4]
	mov	x0, x19
	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
	b	_spin_unlock
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_GF1_VB_VOLUME_CONTROL,4,2 ; @SNDRV_GF1_VB_VOLUME_CONTROL
	.comm	_SNDRV_GF1_PCM_PFLG_ACTIVE,4,2  ; @SNDRV_GF1_PCM_PFLG_ACTIVE
	.comm	_SNDRV_GF1_VW_VOLUME,4,2        ; @SNDRV_GF1_VW_VOLUME
	.no_dead_strip	_snd_gf1_pcm_interrupt_volume
.subsections_via_symbols
