	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_playback2_hw_params
_snd_cmipci_playback2_hw_params:        ## @snd_cmipci_playback2_hw_params
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_params_channels
	cmpl	$3, %eax
	jl	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movq	_CM_CH_PLAY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_CM_OPEN_PLAYBACK_MULTI@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax,%rcx,8)
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_3:
	movq	%r15, %rdi
	callq	_params_buffer_bytes
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_lib_malloc_pages       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_CH_PLAY,8,3                 ## @CM_CH_PLAY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CM_OPEN_PLAYBACK_MULTI,8,3     ## @CM_OPEN_PLAYBACK_MULTI
	.no_dead_strip	_snd_cmipci_playback2_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cmipci_playback2_hw_params
_snd_cmipci_playback2_hw_params:        ; @snd_cmipci_playback2_hw_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x21, x0
	mov	x0, x20
	bl	_params_channels
	cmp	w0, #3
	b.lt	LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _CM_CH_PLAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CM_CH_PLAY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x8, x9, lsl #3]
	cbz	x10, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x10, _CM_OPEN_PLAYBACK_MULTI@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CM_OPEN_PLAYBACK_MULTI@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	str	x10, [x8, x9, lsl #3]
	mov	x0, x21
	bl	_mutex_unlock
LBB0_4:
	mov	x0, x20
	bl	_params_buffer_bytes
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_snd_pcm_lib_malloc_pages
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_CH_PLAY,8,3                 ; @CM_CH_PLAY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CM_OPEN_PLAYBACK_MULTI,8,3     ; @CM_OPEN_PLAYBACK_MULTI
	.no_dead_strip	_snd_cmipci_playback2_hw_params
.subsections_via_symbols
