	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_stop_voices            ## -- Begin function snd_gf1_stop_voices
	.p2align	4, 0x90
_snd_gf1_stop_voices:                   ## @snd_gf1_stop_voices
	.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, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_in_interrupt
	movzwl	%r15w, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movswl	%r14w, %eax
	cmpl	%r15d, %eax
	jle	LBB0_2
LBB0_7:
	movl	$50, %edi
	callq	_msleep_interruptible
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_8:
	movzwl	%r14w, %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_gf1_clear_voices           ## TAILCALL
LBB0_2:
	movq	_SNDRV_GF1_MIN_OFFSET@GOTPCREL(%rip), %r13
	movl	-44(%rbp), %r14d                ## 4-byte Reload
                                        ## kill: def $r14w killed $r14w killed $r14d def $r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	incl	%r14d
	movswl	%r14w, %eax
	cmpl	%r15d, %eax
	jg	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movswl	%r14w, %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_select_voice
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_snd_gf1_read16
	shrl	$8, %eax
	movzwl	%ax, %r12d
	movzwl	(%r13), %eax
	cmpl	%eax, %r12d
	jbe	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SNDRV_GF1_VB_VOLUME_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$20, %edx
	callq	_snd_gf1_write8
	movq	_SNDRV_GF1_VB_VOLUME_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_snd_gf1_write8
	movq	_SNDRV_GF1_VB_VOLUME_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_snd_gf1_write8
	movq	_SNDRV_GF1_VB_VOLUME_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$64, %edx
	callq	_snd_gf1_write8
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_snd_gf1_delay
	movq	_SNDRV_GF1_VB_VOLUME_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$64, %edx
	callq	_snd_gf1_write8
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_GF1_MIN_OFFSET,2,1       ## @SNDRV_GF1_MIN_OFFSET
	.comm	_SNDRV_GF1_VB_VOLUME_RATE,4,2   ## @SNDRV_GF1_VB_VOLUME_RATE
	.comm	_SNDRV_GF1_VB_VOLUME_START,4,2  ## @SNDRV_GF1_VB_VOLUME_START
	.comm	_SNDRV_GF1_VB_VOLUME_END,4,2    ## @SNDRV_GF1_VB_VOLUME_END
	.comm	_SNDRV_GF1_VB_VOLUME_CONTROL,4,2 ## @SNDRV_GF1_VB_VOLUME_CONTROL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_stop_voices            ; -- Begin function snd_gf1_stop_voices
	.p2align	2
_snd_gf1_stop_voices:                   ; @snd_gf1_stop_voices
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_in_interrupt
	cbnz	w0, LBB0_3
; %bb.1:
	cmp	w19, w20, sxth
	b.ge	LBB0_4
LBB0_2:
	mov	w0, #50
	bl	_msleep_interruptible
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_snd_gf1_clear_voices
LBB0_4:
Lloh0:
	adrp	x23, _SNDRV_GF1_MIN_OFFSET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SNDRV_GF1_MIN_OFFSET@GOTPAGEOFF]
Lloh2:
	adrp	x24, _SNDRV_GF1_VB_VOLUME_RATE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SNDRV_GF1_VB_VOLUME_RATE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _SNDRV_GF1_VB_VOLUME_START@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SNDRV_GF1_VB_VOLUME_START@GOTPAGEOFF]
Lloh6:
	adrp	x26, _SNDRV_GF1_VB_VOLUME_END@GOTPAGE
Lloh7:
	ldr	x26, [x26, _SNDRV_GF1_VB_VOLUME_END@GOTPAGEOFF]
	mov	x27, x20
Lloh8:
	adrp	x28, _SNDRV_GF1_VB_VOLUME_CONTROL@GOTPAGE
Lloh9:
	ldr	x28, [x28, _SNDRV_GF1_VB_VOLUME_CONTROL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	add	w27, w27, #1
	cmp	w19, w27, sxth
	b.lt	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_spin_lock_irqsave
	sxth	w1, w27
	mov	x0, x21
	bl	_snd_gf1_select_voice
	mov	x0, x21
	mov	w1, #9
	bl	_snd_gf1_read16
	ubfx	w22, w0, #8, #16
	ldrh	w8, [x23]
	cmp	w22, w8
	b.ls	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	mov	w2, #20
	bl	_snd_gf1_write8
	ldr	w1, [x25]
	ldrh	w2, [x23]
	mov	x0, x21
	bl	_snd_gf1_write8
	ldr	w1, [x26]
	mov	x0, x21
	mov	x2, x22
	bl	_snd_gf1_write8
	ldr	w1, [x28]
	mov	x0, x21
	mov	w2, #64
	bl	_snd_gf1_write8
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_snd_gf1_delay
	ldr	w1, [x28]
	mov	x0, x21
	mov	w2, #64
	bl	_snd_gf1_write8
	b	LBB0_5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_GF1_MIN_OFFSET,2,1       ; @SNDRV_GF1_MIN_OFFSET
	.comm	_SNDRV_GF1_VB_VOLUME_RATE,4,2   ; @SNDRV_GF1_VB_VOLUME_RATE
	.comm	_SNDRV_GF1_VB_VOLUME_START,4,2  ; @SNDRV_GF1_VB_VOLUME_START
	.comm	_SNDRV_GF1_VB_VOLUME_END,4,2    ; @SNDRV_GF1_VB_VOLUME_END
	.comm	_SNDRV_GF1_VB_VOLUME_CONTROL,4,2 ; @SNDRV_GF1_VB_VOLUME_CONTROL
.subsections_via_symbols
