	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_select_active_voices   ## -- Begin function snd_gf1_select_active_voices
	.p2align	4, 0x90
_snd_gf1_select_active_voices:          ## @snd_gf1_select_active_voices
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	cmpw	$32, %cx
	movl	$32, %edx
	cmovael	%edx, %ecx
	cmpw	$15, %cx
	movl	$14, %eax
	cmovael	%ecx, %eax
	cmpq	$0, 8(%rdi)
	cmovnel	%edx, %eax
	movw	%ax, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	$44100, 4(%rdi)                 ## imm = 0xAC44
	popq	%rbp
	retq
LBB0_2:
	movzwl	%ax, %edx
	leaq	_snd_gf1_select_active_voices.voices_tbl(%rip), %rax
	movzwl	-28(%rax,%rdx,2), %eax
	movl	%eax, 4(%rdi)
	movq	_SNDRV_GF1_GB_ACTIVE_VOICES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%edx
	orl	$192, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_snd_gf1_i_write8
	movl	$100, %edi
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @snd_gf1_select_active_voices.voices_tbl
_snd_gf1_select_active_voices.voices_tbl:
	.short	44100                           ## 0xac44
	.short	41160                           ## 0xa0c8
	.short	38587                           ## 0x96bb
	.short	36317                           ## 0x8ddd
	.short	34300                           ## 0x85fc
	.short	32494                           ## 0x7eee
	.short	30870                           ## 0x7896
	.short	29400                           ## 0x72d8
	.short	28063                           ## 0x6d9f
	.short	26843                           ## 0x68db
	.short	25725                           ## 0x647d
	.short	24696                           ## 0x6078
	.short	23746                           ## 0x5cc2
	.short	22866                           ## 0x5952
	.short	22050                           ## 0x5622
	.short	21289                           ## 0x5329
	.short	20580                           ## 0x5064
	.short	19916                           ## 0x4dcc
	.short	19293                           ## 0x4b5d

	.comm	_SNDRV_GF1_GB_ACTIVE_VOICES,4,2 ## @SNDRV_GF1_GB_ACTIVE_VOICES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_select_active_voices   ; -- Begin function snd_gf1_select_active_voices
	.p2align	2
_snd_gf1_select_active_voices:          ; @snd_gf1_select_active_voices
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldrh	w8, [x0]
	mov	w9, #32
	cmp	w8, #32
	csel	w8, w8, w9, lo
	mov	w10, #14
	cmp	w8, #14
	csel	w8, w8, w10, hi
	ldr	x10, [x0, #8]
	cmp	x10, #0
	csel	w8, w8, w9, eq
	strh	w8, [x0]
	cbz	x10, LBB0_2
; %bb.1:
	mov	w8, #44100
	str	w8, [x0, #4]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x9, _snd_gf1_select_active_voices.voices_tbl@PAGE
Lloh1:
	add	x9, x9, _snd_gf1_select_active_voices.voices_tbl@PAGEOFF
	add	x9, x9, w8, uxtw #1
	ldurh	w9, [x9, #-28]
	str	w9, [x0, #4]
Lloh2:
	adrp	x9, _SNDRV_GF1_GB_ACTIVE_VOICES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SNDRV_GF1_GB_ACTIVE_VOICES@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	sub	w8, w8, #1
	orr	w2, w8, #0xc0
	bl	_snd_gf1_i_write8
	mov	w0, #100
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	1                               ; @snd_gf1_select_active_voices.voices_tbl
_snd_gf1_select_active_voices.voices_tbl:
	.short	44100                           ; 0xac44
	.short	41160                           ; 0xa0c8
	.short	38587                           ; 0x96bb
	.short	36317                           ; 0x8ddd
	.short	34300                           ; 0x85fc
	.short	32494                           ; 0x7eee
	.short	30870                           ; 0x7896
	.short	29400                           ; 0x72d8
	.short	28063                           ; 0x6d9f
	.short	26843                           ; 0x68db
	.short	25725                           ; 0x647d
	.short	24696                           ; 0x6078
	.short	23746                           ; 0x5cc2
	.short	22866                           ; 0x5952
	.short	22050                           ; 0x5622
	.short	21289                           ; 0x5329
	.short	20580                           ; 0x5064
	.short	19916                           ; 0x4dcc
	.short	19293                           ; 0x4b5d

	.comm	_SNDRV_GF1_GB_ACTIVE_VOICES,4,2 ; @SNDRV_GF1_GB_ACTIVE_VOICES
.subsections_via_symbols
