	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_vortex_pcm_prepare
_snd_vortex_pcm_prepare:                ## @snd_vortex_pcm_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	16(%rbx), %r15
	movq	8(%r15), %rcx
	movl	(%rcx), %r14d
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	-44(%rbp)                       ## 1-byte Folded Spill
	movl	4(%r15), %edi
	callq	_vortex_alsafmt_aspfmt
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movl	8(%rbx), %edi
	callq	_VORTEX_PCM_TYPE
	movq	_VORTEX_PCM_WT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_vortex_wtdma_setmode
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_vortex_wtdma_setstartbuffer
	jmp	LBB0_4
LBB0_1:
	xorl	%ecx, %ecx
	movb	-44(%rbp), %al                  ## 1-byte Reload
	movb	%al, %cl
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r8d
	xorl	%r9d, %r9d
	callq	_vortex_adbdma_setmode
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_vortex_adbdma_setstartbuffer
	movl	8(%rbx), %edi
	callq	_VORTEX_PCM_TYPE
	movq	_VORTEX_PCM_SPDIF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_vortex_adb_setsrc
LBB0_4:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_VORTEX_PCM_WT,8,3              ## @VORTEX_PCM_WT
	.comm	_VORTEX_PCM_SPDIF,8,3           ## @VORTEX_PCM_SPDIF
	.no_dead_strip	_snd_vortex_pcm_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_vortex_pcm_prepare
_snd_vortex_pcm_prepare:                ; @snd_vortex_pcm_prepare
	.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	x22, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x24, [x22, #16]
	ldr	x8, [x24, #8]
	ldr	w20, [x8]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w21, eq
	ldr	w0, [x24, #4]
	bl	_vortex_alsafmt_aspfmt
	mov	x23, x0
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	w0, [x22, #8]
	bl	_VORTEX_PCM_TYPE
Lloh3:
	adrp	x8, _VORTEX_PCM_WT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VORTEX_PCM_WT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	x3, x23
	mov	w4, #0
	mov	w5, #0
	bl	_vortex_wtdma_setmode
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_vortex_wtdma_setstartbuffer
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	x3, x21
	mov	x4, x23
	mov	w5, #0
	mov	w6, #0
	bl	_vortex_adbdma_setmode
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_vortex_adbdma_setstartbuffer
	ldr	w0, [x22, #8]
	bl	_VORTEX_PCM_TYPE
Lloh6:
	adrp	x8, _VORTEX_PCM_SPDIF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VORTEX_PCM_SPDIF@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_vortex_adb_setsrc
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_VORTEX_PCM_WT,8,3              ; @VORTEX_PCM_WT
	.comm	_VORTEX_PCM_SPDIF,8,3           ; @VORTEX_PCM_SPDIF
	.no_dead_strip	_snd_vortex_pcm_prepare
.subsections_via_symbols
