	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_playback_prepare
_snd_cmipci_playback_prepare:           ## @snd_cmipci_playback_prepare
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	$-44100, %edx                   ## imm = 0xFFFF53BC
	addl	(%rax), %edx
	xorl	%ecx, %ecx
	cmpl	$51900, %edx                    ## imm = 0xCABC
	ja	LBB0_7
## %bb.1:
	movq	8(%rax), %rdx
	movq	_SNDRV_PCM_FORMAT_S16_LE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_7
## %bb.2:
	cmpl	$2, 16(%rax)
	jne	LBB0_7
## %bb.3:
	movl	$1, %edx
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.4:
	movq	_IEC958_AES0_NONAUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	(%r14), %ecx
	jmp	LBB0_8
LBB0_7:
	xorl	%edx, %edx
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_setup_spdif_playback
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movq	_CM_CH_PLAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%r14), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_cmipci_pcm_prepare         ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_FORMAT_S16_LE,8,3    ## @SNDRV_PCM_FORMAT_S16_LE
	.comm	_IEC958_AES0_NONAUDIO,4,2       ## @IEC958_AES0_NONAUDIO
	.comm	_CM_CH_PLAY,8,3                 ## @CM_CH_PLAY
	.no_dead_strip	_snd_cmipci_playback_prepare
.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_prepare
_snd_cmipci_playback_prepare:           ; @snd_cmipci_playback_prepare
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w9, [x8]
	mov	w10, #-44100
	mov	w11, #51900
	add	w9, w9, w10
	cmp	w9, w11
	b.hi	LBB0_5
; %bb.1:
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x10, _SNDRV_PCM_FORMAT_S16_LE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SNDRV_PCM_FORMAT_S16_LE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x8, #16]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _IEC958_AES0_NONAUDIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEC958_AES0_NONAUDIO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w3, w9, w8
	b	LBB0_10
LBB0_5:
	mov	w2, #0
	mov	w3, #0
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_setup_spdif_playback
	tbnz	w0, #31, LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _CM_CH_PLAY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CM_CH_PLAY@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh8:
	ldr	x8, [x8]
	add	x1, x9, x8, lsl #2
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_cmipci_pcm_prepare
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w3, #0
LBB0_10:
	mov	w2, #1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_FORMAT_S16_LE,8,3    ; @SNDRV_PCM_FORMAT_S16_LE
	.comm	_IEC958_AES0_NONAUDIO,4,2       ; @IEC958_AES0_NONAUDIO
	.comm	_CM_CH_PLAY,8,3                 ; @CM_CH_PLAY
	.no_dead_strip	_snd_cmipci_playback_prepare
.subsections_via_symbols
