	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_clear_voices
_snd_gf1_clear_voices:                  ## @snd_gf1_clear_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	%esi, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpw	%dx, %r15w
	jbe	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movl	8(%rdi), %r12d
	shll	$4, %r12d
	movq	_SNDRV_GF1_VB_ADDRESS_CONTROL@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	incl	%r15d
	cmpw	-44(%rbp), %r15w                ## 2-byte Folded Reload
	movq	%r14, %r13
	ja	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movzwl	%r15w, %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_select_voice
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_ctrl_stop
	movq	_SNDRV_GF1_VB_VOLUME_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_ctrl_stop
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	cmpq	$0, 24(%rbx)
	movq	_SNDRV_GF1_VB_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sete	%dl
	shll	$7, %edx
	orl	$2, %edx
	movq	%rbx, %rdi
	callq	_snd_gf1_write8
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r14
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_read8
	movl	%eax, %r13d
	movq	_SNDRV_GF1_VW_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_snd_gf1_write16
	movq	_SNDRV_GF1_VA_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$4, %r13d
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_snd_gf1_write_addr
	movq	_SNDRV_GF1_VA_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_snd_gf1_write_addr
	movq	_SNDRV_GF1_VB_VOLUME_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_gf1_write8
	movq	_SNDRV_GF1_VB_VOLUME_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_gf1_write8
	movq	_SNDRV_GF1_VB_VOLUME_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_gf1_write8
	movq	_SNDRV_GF1_VW_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_gf1_write16
	movq	_SNDRV_GF1_VA_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_snd_gf1_write_addr
	movq	_SNDRV_GF1_VB_PAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_snd_gf1_write8
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SNDRV_GF1_VB_ACCUMULATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_gf1_write8
	movq	_SNDRV_GF1_VW_EFFECT_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_gf1_write16
	movq	_SNDRV_GF1_VW_EFFECT_VOLUME_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_gf1_write16
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_GF1_VB_ADDRESS_CONTROL,4,2 ## @SNDRV_GF1_VB_ADDRESS_CONTROL
	.comm	_SNDRV_GF1_VB_VOLUME_CONTROL,4,2 ## @SNDRV_GF1_VB_VOLUME_CONTROL
	.comm	_SNDRV_GF1_VB_MODE,4,2          ## @SNDRV_GF1_VB_MODE
	.comm	_SNDRV_GF1_VW_FREQUENCY,4,2     ## @SNDRV_GF1_VW_FREQUENCY
	.comm	_SNDRV_GF1_VA_START,4,2         ## @SNDRV_GF1_VA_START
	.comm	_SNDRV_GF1_VA_END,4,2           ## @SNDRV_GF1_VA_END
	.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_RATE,4,2   ## @SNDRV_GF1_VB_VOLUME_RATE
	.comm	_SNDRV_GF1_VW_VOLUME,4,2        ## @SNDRV_GF1_VW_VOLUME
	.comm	_SNDRV_GF1_VA_CURRENT,4,2       ## @SNDRV_GF1_VA_CURRENT
	.comm	_SNDRV_GF1_VB_PAN,4,2           ## @SNDRV_GF1_VB_PAN
	.comm	_SNDRV_GF1_VB_ACCUMULATOR,4,2   ## @SNDRV_GF1_VB_ACCUMULATOR
	.comm	_SNDRV_GF1_VW_EFFECT_VOLUME,4,2 ## @SNDRV_GF1_VW_EFFECT_VOLUME
	.comm	_SNDRV_GF1_VW_EFFECT_VOLUME_FINAL,4,2 ## @SNDRV_GF1_VW_EFFECT_VOLUME_FINAL
	.comm	_ULTRA_LFO_TREMOLO,4,2          ## @ULTRA_LFO_TREMOLO
	.comm	_ULTRA_LFO_VIBRATO,4,2          ## @ULTRA_LFO_VIBRATO
	.comm	_VFLG_DYNAMIC,4,2               ## @VFLG_DYNAMIC
	.no_dead_strip	_snd_gf1_clear_voices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_gf1_clear_voices
_snd_gf1_clear_voices:                  ; @snd_gf1_clear_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
	cmp	w1, w2
	b.ls	LBB0_2
LBB0_1:
	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
	ret
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0, #8]
	lsl	w22, w8, #4
Lloh0:
	adrp	x24, _SNDRV_GF1_VB_ADDRESS_CONTROL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SNDRV_GF1_VB_ADDRESS_CONTROL@GOTPAGEOFF]
Lloh2:
	adrp	x27, _SNDRV_GF1_VB_VOLUME_RATE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SNDRV_GF1_VB_VOLUME_RATE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _SNDRV_GF1_VW_VOLUME@GOTPAGE
Lloh5:
	ldr	x28, [x28, _SNDRV_GF1_VW_VOLUME@GOTPAGEOFF]
Lloh6:
	adrp	x25, _SNDRV_GF1_VA_CURRENT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SNDRV_GF1_VA_CURRENT@GOTPAGEOFF]
Lloh8:
	adrp	x26, _SNDRV_GF1_VB_PAN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _SNDRV_GF1_VB_PAN@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	add	w20, w20, #1
	cmp	w19, w20, uxth
	b.lo	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_spin_lock_irqsave
	and	w1, w20, #0xffff
	mov	x0, x21
	bl	_snd_gf1_select_voice
	ldr	w1, [x24]
	mov	x0, x21
	bl	_snd_gf1_ctrl_stop
Lloh10:
	adrp	x8, _SNDRV_GF1_VB_VOLUME_CONTROL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SNDRV_GF1_VB_VOLUME_CONTROL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_snd_gf1_ctrl_stop
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _SNDRV_GF1_VB_MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SNDRV_GF1_VB_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	x8, [x21, #24]
	cmp	x8, #0
	mov	w8, #2
	mov	w9, #130
	csel	w2, w9, w8, eq
	mov	x0, x21
	bl	_snd_gf1_write8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_snd_gf1_read8
	mov	x23, x0
Lloh16:
	adrp	x8, _SNDRV_GF1_VW_FREQUENCY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SNDRV_GF1_VW_FREQUENCY@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1024
	bl	_snd_gf1_write16
Lloh19:
	adrp	x8, _SNDRV_GF1_VA_START@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SNDRV_GF1_VA_START@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	and	w23, w23, #0x4
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	_snd_gf1_write_addr
Lloh22:
	adrp	x8, _SNDRV_GF1_VA_END@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SNDRV_GF1_VA_END@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	_snd_gf1_write_addr
Lloh25:
	adrp	x8, _SNDRV_GF1_VB_VOLUME_START@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SNDRV_GF1_VB_VOLUME_START@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_snd_gf1_write8
Lloh28:
	adrp	x8, _SNDRV_GF1_VB_VOLUME_END@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SNDRV_GF1_VB_VOLUME_END@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_snd_gf1_write8
	ldr	w1, [x27]
	mov	x0, x21
	mov	w2, #0
	bl	_snd_gf1_write8
	ldr	w1, [x28]
	mov	x0, x21
	mov	w2, #0
	bl	_snd_gf1_write16
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	_snd_gf1_write_addr
	ldr	w1, [x26]
	mov	x0, x21
	mov	w2, #7
	bl	_snd_gf1_write8
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh31:
	adrp	x8, _SNDRV_GF1_VB_ACCUMULATOR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SNDRV_GF1_VB_ACCUMULATOR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_snd_gf1_write8
Lloh34:
	adrp	x8, _SNDRV_GF1_VW_EFFECT_VOLUME@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SNDRV_GF1_VW_EFFECT_VOLUME@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_snd_gf1_write16
Lloh37:
	adrp	x8, _SNDRV_GF1_VW_EFFECT_VOLUME_FINAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SNDRV_GF1_VW_EFFECT_VOLUME_FINAL@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_snd_gf1_write16
	b	LBB0_3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_GF1_VB_ADDRESS_CONTROL,4,2 ; @SNDRV_GF1_VB_ADDRESS_CONTROL
	.comm	_SNDRV_GF1_VB_VOLUME_CONTROL,4,2 ; @SNDRV_GF1_VB_VOLUME_CONTROL
	.comm	_SNDRV_GF1_VB_MODE,4,2          ; @SNDRV_GF1_VB_MODE
	.comm	_SNDRV_GF1_VW_FREQUENCY,4,2     ; @SNDRV_GF1_VW_FREQUENCY
	.comm	_SNDRV_GF1_VA_START,4,2         ; @SNDRV_GF1_VA_START
	.comm	_SNDRV_GF1_VA_END,4,2           ; @SNDRV_GF1_VA_END
	.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_RATE,4,2   ; @SNDRV_GF1_VB_VOLUME_RATE
	.comm	_SNDRV_GF1_VW_VOLUME,4,2        ; @SNDRV_GF1_VW_VOLUME
	.comm	_SNDRV_GF1_VA_CURRENT,4,2       ; @SNDRV_GF1_VA_CURRENT
	.comm	_SNDRV_GF1_VB_PAN,4,2           ; @SNDRV_GF1_VB_PAN
	.comm	_SNDRV_GF1_VB_ACCUMULATOR,4,2   ; @SNDRV_GF1_VB_ACCUMULATOR
	.comm	_SNDRV_GF1_VW_EFFECT_VOLUME,4,2 ; @SNDRV_GF1_VW_EFFECT_VOLUME
	.comm	_SNDRV_GF1_VW_EFFECT_VOLUME_FINAL,4,2 ; @SNDRV_GF1_VW_EFFECT_VOLUME_FINAL
	.comm	_ULTRA_LFO_TREMOLO,4,2          ; @ULTRA_LFO_TREMOLO
	.comm	_ULTRA_LFO_VIBRATO,4,2          ; @ULTRA_LFO_VIBRATO
	.comm	_VFLG_DYNAMIC,4,2               ; @VFLG_DYNAMIC
	.no_dead_strip	_snd_gf1_clear_voices
.subsections_via_symbols
