	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_efx_playback_prepare
_snd_emu10k1_efx_playback_prepare:      ## @snd_emu10k1_efx_playback_prepare
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	(%rax), %r14
	movl	(%r14), %r12d
	movq	%rbx, %rdi
	callq	_snd_pcm_lib_buffer_bytes
	movq	_NUM_EFX_PLAYBACK@GOTPCREL(%rip), %r13
	xorl	%edx, %edx
	divl	(%r13)
	movl	%eax, %ebx
	movl	16(%r14), %ecx
	movl	%eax, %r9d
	shrl	%r9d
	addl	%r12d, %r9d
	movq	$0, (%rsp)
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movl	%r12d, %r8d
	callq	_snd_emu10k1_pcm_init_voice
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addl	%r12d, %ebx
	movq	(%r15), %rax
	movq	%rax, (%rsp)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	callq	_snd_emu10k1_pcm_init_voice
	cmpl	$2, (%r13)
	jb	LBB0_3
## %bb.1:
	movq	%r13, %r15
	movl	$1, %r13d
	movl	$4, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax,%r14), %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rbx,%rax), %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	addq	%r14, %rax
	movq	%rax, (%rsp)
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	movl	%r12d, %r9d
	callq	_snd_emu10k1_pcm_init_voice
	incq	%r13
	movl	(%r15), %eax
	addq	$4, %r14
	movl	%r12d, %ebx
	cmpq	%rax, %r13
	jb	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_EFX_PLAYBACK,4,2           ## @NUM_EFX_PLAYBACK
	.no_dead_strip	_snd_emu10k1_efx_playback_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_efx_playback_prepare
_snd_emu10k1_efx_playback_prepare:      ; @snd_emu10k1_efx_playback_prepare
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x22, [x8]
	ldr	w21, [x22]
	mov	x0, x20
	bl	_snd_pcm_lib_buffer_bytes
Lloh0:
	adrp	x23, _NUM_EFX_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NUM_EFX_PLAYBACK@GOTPAGEOFF]
	ldr	w8, [x23]
	udiv	w24, w0, w8
	ldr	w3, [x22, #16]
	add	w5, w21, w24, lsr #1
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	mov	x4, x21
	mov	x6, #0
	bl	_snd_emu10k1_pcm_init_voice
	ldr	x8, [x22, #8]
	ldr	w3, [x8]
	add	w20, w24, w21
	ldr	x6, [x19]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	x4, x21
	mov	x5, x20
	bl	_snd_emu10k1_pcm_init_voice
	ldr	w8, [x23]
	cmp	w8, #2
	b.lo	LBB0_3
; %bb.1:
	mov	w25, #1
	mov	w26, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w3, [x8, x26]
	add	w21, w20, w24
	ldr	x8, [x19]
	add	x6, x8, x26
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	x4, x20
	mov	x5, x21
	bl	_snd_emu10k1_pcm_init_voice
	add	x25, x25, #1
	ldr	w8, [x23]
	add	x26, x26, #4
	mov	x20, x21
	cmp	x25, x8
	b.lo	LBB0_2
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_EFX_PLAYBACK,4,2           ; @NUM_EFX_PLAYBACK
	.no_dead_strip	_snd_emu10k1_efx_playback_prepare
.subsections_via_symbols
