	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_voices
_lookup_voices:                         ## @lookup_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_V_END@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$-1, (%r13,%rcx,8)
	incq	%rcx
	movslq	(%rax), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_2
LBB0_3:
	cmpl	$0, (%rdi)
	jle	LBB0_28
## %bb.4:
	movl	$28, %ebx
	xorl	%r14d, %r14d
	movq	_SNDRV_EMUX_ST_OFF@GOTPCREL(%rip), %rdx
	movq	_V_OFF@GOTPCREL(%rip), %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movslq	(%rdi), %rax
	addq	$32, %rbx
	cmpq	%rax, %r14
	jge	LBB0_28
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %r15
	movl	-28(%r15,%rbx), %eax
	cmpl	(%rdx), %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -20(%r15,%rbx)
	js	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%rsi), %rax
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_SNDRV_EMUX_ST_RELEASED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_SNDRV_EMUX_ST_PENDING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_SNDRV_EMUX_ST_STANDBY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_27
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_SNDRV_EMUX_ST_ON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_V_PLAYING@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_V_RELEASED@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movq	_CVCF_CURRENTVOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-20(%r15,%rbx), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_snd_emu10k1_ptr_read
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(,%r12,8), %r12
	addq	%r13, %r12
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_SNDRV_EMUX_ST_OFF@GOTPCREL(%rip), %rdx
	movq	_V_OFF@GOTPCREL(%rip), %rsi
	jmp	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_V_OFF@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rax
	leaq	(,%rax,8), %r12
	addq	%r13, %r12
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_SNDRV_EMUX_ST_OFF@GOTPCREL(%rip), %rdx
	jmp	LBB0_20
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_V_FREE@GOTPCREL(%rip), %rax
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%rax), %rax
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(,%rax,8), %r12
	addq	%r13, %r12
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%rsi), %rax
	leaq	(,%rax,8), %rax
	addq	%r13, %rax
	cmpq	%rax, %r12
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_V_FREE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(,%rax,8), %rax
	addq	%r13, %rax
	cmpq	%rax, %r12
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_SNDRV_SFNT_SAMPLE_SINGLESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -4(%r15,%rbx)
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_CCCA_CURRADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-20(%r15,%rbx), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_snd_emu10k1_ptr_read
	movq	_V_OFF@GOTPCREL(%rip), %rsi
	movq	_SNDRV_EMUX_ST_OFF@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpl	(%r15,%rbx), %eax
	jl	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%rsi), %rax
	leaq	(,%rax,8), %r12
	addq	%r13, %r12
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-12(%r15,%rbx), %rax
	movl	(%r12), %ecx
	cmpq	%rcx, %rax
	jge	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, (%r12)
	movl	%r14d, 4(%r12)
	jmp	LBB0_27
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_END,4,2                      ## @V_END
	.comm	_SNDRV_EMUX_ST_OFF,4,2          ## @SNDRV_EMUX_ST_OFF
	.comm	_V_FREE,4,2                     ## @V_FREE
	.comm	_V_OFF,4,2                      ## @V_OFF
	.comm	_SNDRV_EMUX_ST_RELEASED,4,2     ## @SNDRV_EMUX_ST_RELEASED
	.comm	_SNDRV_EMUX_ST_PENDING,4,2      ## @SNDRV_EMUX_ST_PENDING
	.comm	_V_RELEASED,4,2                 ## @V_RELEASED
	.comm	_CVCF_CURRENTVOL,4,2            ## @CVCF_CURRENTVOL
	.comm	_SNDRV_EMUX_ST_STANDBY,4,2      ## @SNDRV_EMUX_ST_STANDBY
	.comm	_SNDRV_EMUX_ST_ON,4,2           ## @SNDRV_EMUX_ST_ON
	.comm	_V_PLAYING,4,2                  ## @V_PLAYING
	.comm	_SNDRV_SFNT_SAMPLE_SINGLESHOT,4,2 ## @SNDRV_SFNT_SAMPLE_SINGLESHOT
	.comm	_CCCA_CURRADDR,4,2              ## @CCCA_CURRADDR
	.no_dead_strip	_lookup_voices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_voices
_lookup_voices:                         ; @lookup_voices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w3, [sp, #4]                    ; 4-byte Folded Spill
	mov	x20, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x0
Lloh0:
	adrp	x8, _V_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_END@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	movi.2d	v0, #0xffffffffffffffff
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	d0, [x20, x9, lsl #3]
	add	x9, x9, #1
	ldrsw	x10, [x8]
	cmp	x9, x10
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.4:
	mov	x23, #0
	mov	x24, #0
Lloh2:
	adrp	x25, _SNDRV_EMUX_ST_OFF@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SNDRV_EMUX_ST_OFF@GOTPAGEOFF]
Lloh4:
	adrp	x21, _V_FREE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _V_FREE@GOTPAGEOFF]
Lloh6:
	adrp	x27, _V_OFF@GOTPAGE
Lloh7:
	ldr	x27, [x27, _V_OFF@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_23
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #32
	cmp	x24, x8
	b.ge	LBB0_24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x22, #8]
	ldr	w8, [x28, x23]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x28, x23
	ldr	x8, [x8, #8]
	tbz	x8, #63, LBB0_12
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh8:
	adrp	x9, _SNDRV_EMUX_ST_RELEASED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SNDRV_EMUX_ST_RELEASED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _SNDRV_EMUX_ST_PENDING@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SNDRV_EMUX_ST_PENDING@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh14:
	adrp	x8, _V_RELEASED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V_RELEASED@GOTPAGEOFF]
Lloh16:
	ldrsw	x19, [x8]
Lloh17:
	adrp	x8, _CVCF_CURRENTVOL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CVCF_CURRENTVOL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x8, x28, x23
	ldr	x2, [x8, #8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_snd_emu10k1_ptr_read
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x19, x20, x19, lsl #3
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x27]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x19, x20, x8, lsl #3
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x27]
	add	x8, x20, x8, lsl #3
	ldrsw	x9, [x21]
	add	x9, x20, x9, lsl #3
	cmp	x19, x8
	ccmp	x19, x9, #4, ne
	b.eq	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x28, x23
	ldr	w8, [x26, #24]
Lloh20:
	adrp	x9, _SNDRV_SFNT_SAMPLE_SINGLESHOT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SNDRV_SFNT_SAMPLE_SINGLESHOT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh23:
	adrp	x8, _CCCA_CURRADDR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CCCA_CURRADDR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x2, [x26, #8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_snd_emu10k1_ptr_read
	ldr	w8, [x26, #28]
	cmp	w0, w8
	b.lt	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x27]
	add	x19, x20, x8, lsl #3
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x28, x23
	ldr	x8, [x8, #16]
	ldr	w9, [x19]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	stp	w8, w24, [x19]
	b	LBB0_6
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh26:
	adrp	x9, _SNDRV_EMUX_ST_STANDBY@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SNDRV_EMUX_ST_STANDBY@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh29:
	adrp	x9, _SNDRV_EMUX_ST_ON@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SNDRV_EMUX_ST_ON@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh32:
	adrp	x8, _V_PLAYING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _V_PLAYING@GOTPAGEOFF]
Lloh34:
	ldrsw	x8, [x8]
	b	LBB0_13
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x21]
	b	LBB0_13
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_V_END,4,2                      ; @V_END
	.comm	_SNDRV_EMUX_ST_OFF,4,2          ; @SNDRV_EMUX_ST_OFF
	.comm	_V_FREE,4,2                     ; @V_FREE
	.comm	_V_OFF,4,2                      ; @V_OFF
	.comm	_SNDRV_EMUX_ST_RELEASED,4,2     ; @SNDRV_EMUX_ST_RELEASED
	.comm	_SNDRV_EMUX_ST_PENDING,4,2      ; @SNDRV_EMUX_ST_PENDING
	.comm	_V_RELEASED,4,2                 ; @V_RELEASED
	.comm	_CVCF_CURRENTVOL,4,2            ; @CVCF_CURRENTVOL
	.comm	_SNDRV_EMUX_ST_STANDBY,4,2      ; @SNDRV_EMUX_ST_STANDBY
	.comm	_SNDRV_EMUX_ST_ON,4,2           ; @SNDRV_EMUX_ST_ON
	.comm	_V_PLAYING,4,2                  ; @V_PLAYING
	.comm	_SNDRV_SFNT_SAMPLE_SINGLESHOT,4,2 ; @SNDRV_SFNT_SAMPLE_SINGLESHOT
	.comm	_CCCA_CURRADDR,4,2              ; @CCCA_CURRADDR
	.no_dead_strip	_lookup_voices
.subsections_via_symbols
