	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_efx_playback_open
_snd_emu10k1_efx_playback_open:         ## @snd_emu10k1_efx_playback_open
	.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
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%rbx), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 16(%rax)
	movq	_PLAYBACK_EFX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%rbx, (%r12)
	movq	%rbx, 8(%r14)
	movq	%r12, 8(%r15)
	movq	_snd_emu10k1_pcm_free_substream@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_snd_emu10k1_efx_playback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_NUM_EFX_PLAYBACK@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.3:
	movl	$24, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r13
	movq	-24(%r13,%r15), %rax
	movq	(%rax), %rax
	movl	%ebx, (%rax)
	leaq	(%r15,%r13), %rdi
	addq	$-16, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	-16(%r13,%r15), %rax
	movq	(%rax), %rax
	movl	$255, (%rax)
	movq	-8(%r13,%r15), %rax
	movl	$65535, (%rax)                  ## imm = 0xFFFF
	movq	%r12, (%r13,%r15)
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_snd_emu10k1_pcm_efx_mixer_notify
	movq	_NUM_EFX_PLAYBACK@GOTPCREL(%rip), %rax
	incq	%rbx
	movslq	(%rax), %rax
	addq	$32, %r15
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PLAYBACK_EFX,4,2               ## @PLAYBACK_EFX
	.comm	_snd_emu10k1_pcm_free_substream,4,2 ## @snd_emu10k1_pcm_free_substream
	.comm	_snd_emu10k1_efx_playback,4,2   ## @snd_emu10k1_efx_playback
	.comm	_NUM_EFX_PLAYBACK,4,2           ## @NUM_EFX_PLAYBACK
	.no_dead_strip	_snd_emu10k1_efx_playback_open
.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_open
_snd_emu10k1_efx_playback_open:         ; @snd_emu10k1_efx_playback_open
	.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	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x22, [x21]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _PLAYBACK_EFX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLAYBACK_EFX@GOTPAGEOFF]
	str	x19, [x0, #16]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x21, [x0]
	str	x21, [x19, #8]
	str	x0, [x22, #8]
Lloh6:
	adrp	x8, _snd_emu10k1_pcm_free_substream@GOTPAGE
Lloh7:
	ldr	x8, [x8, _snd_emu10k1_pcm_free_substream@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _snd_emu10k1_efx_playback@GOTPAGE
Lloh10:
	ldr	x9, [x9, _snd_emu10k1_efx_playback@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x22]
Lloh12:
	adrp	x22, _NUM_EFX_PLAYBACK@GOTPAGE
Lloh13:
	ldr	x22, [x22, _NUM_EFX_PLAYBACK@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
	mov	x21, #0
	mov	w24, #255
	mov	w25, #65535
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x26, x8, x23
	ldr	x8, [x26]
	ldr	x8, [x8]
	str	w21, [x8]
	add	x0, x26, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldp	x8, x9, [x26, #8]
	ldr	x8, [x8]
	str	w24, [x8]
	str	w25, [x9]
	str	x20, [x26, #24]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_snd_emu10k1_pcm_efx_mixer_notify
	add	x21, x21, #1
	ldrsw	x8, [x22]
	add	x23, x23, #32
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PLAYBACK_EFX,4,2               ; @PLAYBACK_EFX
	.comm	_snd_emu10k1_pcm_free_substream,4,2 ; @snd_emu10k1_pcm_free_substream
	.comm	_snd_emu10k1_efx_playback,4,2   ; @snd_emu10k1_efx_playback
	.comm	_NUM_EFX_PLAYBACK,4,2           ; @NUM_EFX_PLAYBACK
	.no_dead_strip	_snd_emu10k1_efx_playback_open
.subsections_via_symbols
