	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_playback2_open
_snd_cmipci_playback2_open:             ## @snd_cmipci_playback2_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	(%rbx), %r14
	movq	_CM_OPEN_PLAYBACK2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_open_device_check
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_snd_cmipci_playback2@GOTPCREL(%rip), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 8(%r14)
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	24(%r12), %rax
	movq	_CM_CH_PLAY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_11
## %bb.2:
	cmpq	$0, 16(%r12)
	je	LBB0_11
## %bb.3:
	movl	(%r12), %eax
	movl	%eax, (%r14)
	cmpl	$4, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$8, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$6, %eax
	jne	LBB0_11
## %bb.6:
	movq	_hw_constraints_channels_6@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_hw_constraints_channels_4@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_hw_constraints_channels_8@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	_SNDRV_PCM_HW_PARAM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_hw_constraint_list
LBB0_11:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	4(%r12), %eax
	cmpl	$55, %eax
	je	LBB0_14
## %bb.12:
	cmpl	$68, %eax
	jne	LBB0_17
## %bb.13:
	movq	_SNDRV_PCM_RATE_88200@GOTPCREL(%rip), %rcx
	movq	_SNDRV_PCM_RATE_96000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	leaq	4(%r14), %rdx
	movl	$96000, %ecx                    ## imm = 0x17700
	jmp	LBB0_16
LBB0_14:
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hw_constraints_rates@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_hw_constraint_list
	testl	%eax, %eax
	js	LBB0_7
## %bb.15:
	movl	4(%r14), %eax
	movl	$128000, %ecx                   ## imm = 0x1F400
	movq	_SNDRV_PCM_RATE_KNOT@GOTPCREL(%rip), %rdx
LBB0_16:
	orl	(%rdx), %eax
	movl	%eax, 4(%r14)
	movl	%ecx, 8(%r14)
LBB0_17:
	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_18
LBB0_7:
	movl	%eax, %ebx
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_OPEN_PLAYBACK2,4,2          ## @CM_OPEN_PLAYBACK2
	.comm	_snd_cmipci_playback2,12,2      ## @snd_cmipci_playback2
	.comm	_CM_CH_PLAY,8,3                 ## @CM_CH_PLAY
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ## @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_hw_constraints_channels_4,4,2  ## @hw_constraints_channels_4
	.comm	_hw_constraints_channels_6,4,2  ## @hw_constraints_channels_6
	.comm	_hw_constraints_channels_8,4,2  ## @hw_constraints_channels_8
	.comm	_SNDRV_PCM_RATE_88200,4,2       ## @SNDRV_PCM_RATE_88200
	.comm	_SNDRV_PCM_RATE_96000,4,2       ## @SNDRV_PCM_RATE_96000
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_hw_constraints_rates,4,2       ## @hw_constraints_rates
	.comm	_SNDRV_PCM_RATE_KNOT,4,2        ## @SNDRV_PCM_RATE_KNOT
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.no_dead_strip	_snd_cmipci_playback2_open
.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_open
_snd_cmipci_playback2_open:             ; @snd_cmipci_playback2_open
	.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	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x19, [x21]
Lloh0:
	adrp	x8, _CM_OPEN_PLAYBACK2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_OPEN_PLAYBACK2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_open_device_check
	tbnz	w0, #31, LBB0_17
; %bb.1:
Lloh3:
	adrp	x8, _snd_cmipci_playback2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _snd_cmipci_playback2@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	w8, [x8, #8]
	str	w8, [x19, #8]
	str	x9, [x19]
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x20, #24]
Lloh5:
	adrp	x9, _CM_CH_PLAY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CM_CH_PLAY@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbnz	w8, LBB0_10
; %bb.2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
; %bb.3:
	ldr	w8, [x20]
	str	w8, [x19]
	cmp	w8, #4
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #8
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #6
	b.ne	LBB0_10
; %bb.6:
Lloh8:
	adrp	x3, _hw_constraints_channels_6@GOTPAGE
Lloh9:
	ldr	x3, [x3, _hw_constraints_channels_6@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x3, _hw_constraints_channels_4@GOTPAGE
Lloh11:
	ldr	x3, [x3, _hw_constraints_channels_4@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x3, _hw_constraints_channels_8@GOTPAGE
Lloh13:
	ldr	x3, [x3, _hw_constraints_channels_8@GOTPAGEOFF]
LBB0_9:
Lloh14:
	adrp	x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_list
LBB0_10:
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w8, [x20, #4]
	cmp	w8, #55
	b.eq	LBB0_13
; %bb.11:
	cmp	w8, #68
	b.ne	LBB0_16
; %bb.12:
Lloh17:
	adrp	x8, _SNDRV_PCM_RATE_88200@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SNDRV_PCM_RATE_88200@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _SNDRV_PCM_RATE_96000@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SNDRV_PCM_RATE_96000@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	add	x10, x19, #4
	mov	w9, #30464
	movk	w9, #1, lsl #16
	b	LBB0_15
LBB0_13:
Lloh23:
	adrp	x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x3, _hw_constraints_rates@GOTPAGE
Lloh27:
	ldr	x3, [x3, _hw_constraints_rates@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_list
	tbnz	w0, #31, LBB0_17
; %bb.14:
	ldr	w8, [x19, #4]
	mov	w9, #62464
	movk	w9, #1, lsl #16
Lloh28:
	adrp	x10, _SNDRV_PCM_RATE_KNOT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _SNDRV_PCM_RATE_KNOT@GOTPAGEOFF]
LBB0_15:
	ldr	w10, [x10]
	orr	w8, w8, w10
	stp	w8, w9, [x19, #4]
LBB0_16:
Lloh30:
	adrp	x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #65536
	bl	_snd_pcm_hw_constraint_minmax
	mov	w0, #0
LBB0_17:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_OPEN_PLAYBACK2,4,2          ; @CM_OPEN_PLAYBACK2
	.comm	_snd_cmipci_playback2,12,2      ; @snd_cmipci_playback2
	.comm	_CM_CH_PLAY,8,3                 ; @CM_CH_PLAY
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ; @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_hw_constraints_channels_4,4,2  ; @hw_constraints_channels_4
	.comm	_hw_constraints_channels_6,4,2  ; @hw_constraints_channels_6
	.comm	_hw_constraints_channels_8,4,2  ; @hw_constraints_channels_8
	.comm	_SNDRV_PCM_RATE_88200,4,2       ; @SNDRV_PCM_RATE_88200
	.comm	_SNDRV_PCM_RATE_96000,4,2       ; @SNDRV_PCM_RATE_96000
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_hw_constraints_rates,4,2       ; @hw_constraints_rates
	.comm	_SNDRV_PCM_RATE_KNOT,4,2        ; @SNDRV_PCM_RATE_KNOT
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.no_dead_strip	_snd_cmipci_playback2_open
.subsections_via_symbols
