	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ali_open
_snd_ali_open:                          ## @snd_ali_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	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	(%rbx), %r14
	movq	_SNDRV_ALI_VOICE_TYPE_PCM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_snd_ali_alloc_voice
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, (%rax)
	movq	%rax, 8(%r14)
	movq	_snd_ali_pcm_free_substream@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	(%r15), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_snd_pcm_set_sync
	movq	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$65536, %ecx                    ## imm = 0x10000
	callq	_snd_pcm_hw_constraint_minmax
	jmp	LBB0_3
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_ALI_VOICE_TYPE_PCM,4,2   ## @SNDRV_ALI_VOICE_TYPE_PCM
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_snd_ali_pcm_free_substream,4,2 ## @snd_ali_pcm_free_substream
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.no_dead_strip	_snd_ali_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ali_open
_snd_ali_open:                          ; @snd_ali_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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_snd_pcm_substream_chip
	ldr	x19, [x20]
Lloh0:
	adrp	x8, _SNDRV_ALI_VOICE_TYPE_PCM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_ALI_VOICE_TYPE_PCM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x23
	mov	x3, x22
	bl	_snd_ali_alloc_voice
	cbz	x0, LBB0_2
; %bb.1:
	str	x20, [x0]
	str	x0, [x19, #8]
Lloh3:
	adrp	x8, _snd_ali_pcm_free_substream@GOTPAGE
Lloh4:
	ldr	x8, [x8, _snd_ali_pcm_free_substream@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w8, [x21]
	str	w8, [x19]
	mov	x0, x20
	bl	_snd_pcm_set_sync
Lloh6:
	adrp	x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #65536
	bl	_snd_pcm_hw_constraint_minmax
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_ALI_VOICE_TYPE_PCM,4,2   ; @SNDRV_ALI_VOICE_TYPE_PCM
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_snd_ali_pcm_free_substream,4,2 ; @snd_ali_pcm_free_substream
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.no_dead_strip	_snd_ali_open
.subsections_via_symbols
