	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_mixer_play               ## -- Begin function audio_mixer_play
	.p2align	4, 0x90
_audio_mixer_play:                      ## @audio_mixer_play
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	_AUDIO_MIXER_MAX_VOICES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_s_voices@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$130, (%rbx)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rbx
	decl	%eax
	jne	LBB0_3
	jmp	LBB0_12
LBB0_8:
	cmpl	$128, (%r15)
	jne	LBB0_12
## %bb.9:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	movl	%r14d, %ecx
	callq	_audio_mixer_play_wav
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movl	%r12d, 4(%rbx)
	movss	-36(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%rbx)
	movq	%r15, 16(%rbx)
	movl	%r14d, 12(%rbx)
	jmp	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_voices,8,3                   ## @s_voices
	.comm	_AUDIO_MIXER_MAX_VOICES,4,2     ## @AUDIO_MIXER_MAX_VOICES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_mixer_play               ; -- Begin function audio_mixer_play
	.p2align	2
_audio_mixer_play:                      ; @audio_mixer_play
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	cbz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _AUDIO_MIXER_MAX_VOICES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUDIO_MIXER_MAX_VOICES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x20, x2
	fmov	s8, s0
	mov	x22, x1
	mov	x21, x0
Lloh3:
	adrp	x9, _s_voices@GOTPAGE
Lloh4:
	ldr	x9, [x9, _s_voices@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x9]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19]
	cmp	w9, #130
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #24
	subs	w8, w8, #1
	b.ne	LBB0_3
	b	LBB0_8
LBB0_5:
	ldr	w8, [x21]
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	fmov	s0, s8
	mov	x3, x20
	bl	_audio_mixer_play_wav
	cbz	w0, LBB0_8
; %bb.7:
	ldr	w8, [x21]
	stp	w8, w22, [x19]
	str	s8, [x19, #8]
	str	x21, [x19, #16]
	str	w20, [x19, #12]
	b	LBB0_9
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_s_voices,8,3                   ; @s_voices
	.comm	_AUDIO_MIXER_MAX_VOICES,4,2     ; @AUDIO_MIXER_MAX_VOICES
.subsections_via_symbols
