	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_playback_open
_snd_emu10k1_playback_open:             ## @snd_emu10k1_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, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	8(%r15), %rbx
	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_EMUVOICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r15, (%r12)
	movq	%r12, 8(%rbx)
	movq	_snd_emu10k1_pcm_free_substream@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_snd_emu10k1_playback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_pcm_hw_constraint_integer
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$256, %edx                      ## imm = 0x100
	callq	_snd_pcm_hw_constraint_minmax
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	(%r14), %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r14
	shlq	$5, %r14
	movq	(%rbx,%r14), %rax
	movq	16(%rax), %rcx
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movl	$0, (%rcx)
	movl	$0, (%rax)
	movl	$0, (%rdx)
	movl	$1, 4(%rcx)
	movl	$1, 4(%rax)
	movl	$1, 4(%rdx)
	movl	$2, 8(%rcx)
	movl	$2, 8(%rax)
	movl	$2, 8(%rdx)
	movl	$3, 12(%rcx)
	movl	$3, 12(%rax)
	movl	$3, 12(%rdx)
	leaq	(%rbx,%r14), %rdi
	addq	$8, %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	8(%rbx,%r14), %rax
	movq	16(%rax), %rcx
	movl	$255, 4(%rcx)
	movq	8(%rax), %rcx
	movl	$255, (%rcx)
	movq	(%rax), %rax
	movabsq	$1095216660735, %rcx            ## imm = 0xFF000000FF
	movq	%rcx, (%rax)
	movq	16(%rbx,%r14), %rax
	movl	$65535, 8(%rax)                 ## imm = 0xFFFF
	movabsq	$281470681808895, %rcx          ## imm = 0xFFFF0000FFFF
	movq	%rcx, (%rax)
	movq	%r12, 24(%rbx,%r14)
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_snd_emu10k1_pcm_mixer_notify
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_kfree
LBB0_6:
	movl	%r13d, %eax
	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_EMUVOICE,4,2          ## @PLAYBACK_EMUVOICE
	.comm	_snd_emu10k1_pcm_free_substream,4,2 ## @snd_emu10k1_pcm_free_substream
	.comm	_snd_emu10k1_playback,4,2       ## @snd_emu10k1_playback
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_BUFFER_BYTES
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.no_dead_strip	_snd_emu10k1_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_playback_open
_snd_emu10k1_playback_open:             ; @snd_emu10k1_playback_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x22, [x19, #8]
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_4
; %bb.1:
	mov	x21, x0
	str	x20, [x0, #16]
Lloh3:
	adrp	x8, _PLAYBACK_EMUVOICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLAYBACK_EMUVOICE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x19, [x0]
	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_playback@GOTPAGE
Lloh10:
	ldr	x9, [x9, _snd_emu10k1_playback@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x22]
Lloh12:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_snd_pcm_hw_constraint_integer
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh15:
	adrp	x8, _SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #256
	bl	_snd_pcm_hw_constraint_minmax
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x22, x8, x9, lsl #5
	ldr	x8, [x22]
	ldp	x10, x9, [x8, #8]
	ldr	x8, [x8]
	str	wzr, [x9]
	str	wzr, [x10]
	str	wzr, [x8]
	mov	w11, #1
	str	w11, [x9, #4]
	str	w11, [x10, #4]
	str	w11, [x8, #4]
	mov	w11, #2
	str	w11, [x9, #8]
	str	w11, [x10, #8]
	str	w11, [x8, #8]
	mov	w11, #3
	str	w11, [x9, #12]
	str	w11, [x10, #12]
	str	w11, [x8, #12]
	add	x0, x22, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldp	x8, x9, [x22, #8]
	ldr	x10, [x8, #16]
	mov	w11, #255
	str	w11, [x10, #4]
	ldp	x8, x10, [x8]
	str	w11, [x10]
	movi	d0, #0x0000ff000000ff
	str	d0, [x8]
	mov	w8, #65535
	str	w8, [x9, #8]
	movi	d0, #0x00ffff0000ffff
	str	d0, [x9]
	str	x21, [x22, #24]
	ldr	x1, [x19]
	mov	x0, x20
	mov	w2, #1
	bl	_snd_emu10k1_pcm_mixer_notify
	mov	w23, #0
	b	LBB0_6
LBB0_4:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_6
LBB0_5:
	mov	x23, x0
	mov	x0, x21
	bl	_kfree
LBB0_6:
	mov	x0, x23
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PLAYBACK_EMUVOICE,4,2          ; @PLAYBACK_EMUVOICE
	.comm	_snd_emu10k1_pcm_free_substream,4,2 ; @snd_emu10k1_pcm_free_substream
	.comm	_snd_emu10k1_playback,4,2       ; @snd_emu10k1_playback
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_BUFFER_BYTES
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.no_dead_strip	_snd_emu10k1_playback_open
.subsections_via_symbols
