	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_playback_spdif_open
_snd_cmipci_playback_spdif_open:        ## @snd_cmipci_playback_spdif_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	_CM_OPEN_SPDIF_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_open_device_check
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpq	$0, 24(%r15)
	je	LBB0_7
## %bb.3:
	movq	_snd_cmipci_playback_spdif@GOTPCREL(%rip), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 8(%r14)
	movq	(%rax), %rax
	movq	%rax, (%r14)
	cmpl	$37, (%r15)
	jl	LBB0_5
## %bb.4:
	movq	_SNDRV_PCM_FMTBIT_S32_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	movl	$24, %ecx
	callq	_snd_pcm_hw_constraint_msbits
LBB0_5:
	cmpq	$0, 16(%r15)
	je	LBB0_8
## %bb.6:
	movq	_SNDRV_PCM_RATE_88200@GOTPCREL(%rip), %rax
	movq	_SNDRV_PCM_RATE_96000@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
	movl	$96000, 4(%r14)                 ## imm = 0x17700
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_snd_cmipci_playback_iec958_subframe@GOTPCREL(%rip), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 8(%r14)
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_8:
	movq	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$262144, %ecx                   ## imm = 0x40000
	callq	_snd_pcm_hw_constraint_minmax
	movl	4(%r15), %eax
	movl	%eax, 8(%r15)
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_OPEN_SPDIF_PLAYBACK,4,2     ## @CM_OPEN_SPDIF_PLAYBACK
	.comm	_snd_cmipci_playback_spdif,12,2 ## @snd_cmipci_playback_spdif
	.comm	_SNDRV_PCM_FMTBIT_S32_LE,4,2    ## @SNDRV_PCM_FMTBIT_S32_LE
	.comm	_SNDRV_PCM_RATE_88200,4,2       ## @SNDRV_PCM_RATE_88200
	.comm	_SNDRV_PCM_RATE_96000,4,2       ## @SNDRV_PCM_RATE_96000
	.comm	_snd_cmipci_playback_iec958_subframe,12,2 ## @snd_cmipci_playback_iec958_subframe
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.no_dead_strip	_snd_cmipci_playback_spdif_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_playback_spdif_open
_snd_cmipci_playback_spdif_open:        ; @snd_cmipci_playback_spdif_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	x19, x0
	ldr	x20, [x21]
Lloh0:
	adrp	x8, _CM_OPEN_SPDIF_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_OPEN_SPDIF_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_open_device_check
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _snd_cmipci_playback_spdif@GOTPAGE
Lloh4:
	ldr	x8, [x8, _snd_cmipci_playback_spdif@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	w8, [x8, #8]
	str	w8, [x20, #8]
	str	x9, [x20]
	ldr	w8, [x19]
	cmp	w8, #37
	b.lt	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _SNDRV_PCM_FMTBIT_S32_LE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNDRV_PCM_FMTBIT_S32_LE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	mov	w3, #24
	bl	_snd_pcm_hw_constraint_msbits
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _SNDRV_PCM_RATE_88200@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SNDRV_PCM_RATE_88200@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _SNDRV_PCM_RATE_96000@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SNDRV_PCM_RATE_96000@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w8, w9
	mov	w9, #30464
	movk	w9, #1, lsl #16
	stp	w8, w9, [x20]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _snd_cmipci_playback_iec958_subframe@GOTPAGE
Lloh15:
	ldr	x8, [x8, _snd_cmipci_playback_iec958_subframe@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	w8, [x8, #8]
	str	w8, [x20, #8]
	str	x9, [x20]
LBB0_7:
Lloh16:
	adrp	x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #262144
	bl	_snd_pcm_hw_constraint_minmax
	mov	w0, #0
	ldr	w8, [x19, #4]
	str	w8, [x19, #8]
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_OPEN_SPDIF_PLAYBACK,4,2     ; @CM_OPEN_SPDIF_PLAYBACK
	.comm	_snd_cmipci_playback_spdif,12,2 ; @snd_cmipci_playback_spdif
	.comm	_SNDRV_PCM_FMTBIT_S32_LE,4,2    ; @SNDRV_PCM_FMTBIT_S32_LE
	.comm	_SNDRV_PCM_RATE_88200,4,2       ; @SNDRV_PCM_RATE_88200
	.comm	_SNDRV_PCM_RATE_96000,4,2       ; @SNDRV_PCM_RATE_96000
	.comm	_snd_cmipci_playback_iec958_subframe,12,2 ; @snd_cmipci_playback_iec958_subframe
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.no_dead_strip	_snd_cmipci_playback_spdif_open
.subsections_via_symbols
