	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_vt1724_playback_pro_prepare
_snd_vt1724_playback_pro_prepare:       ## @snd_vt1724_playback_pro_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movq	(%r14), %rax
	movl	$8, %ecx
	subl	(%rax), %ecx
	shrl	%ecx
	movzbl	%cl, %r15d
	movq	_BURST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT1724
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_outb
	movq	(%r14), %rax
	movl	4(%rax), %r15d
	movq	_PLAYBACK_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT1724
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_outl
	movq	%r14, %rdi
	callq	_snd_pcm_lib_buffer_bytes
                                        ## kill: def $eax killed $eax def $rax
	sarl	$2, %eax
	leal	-1(%rax), %ebx
	movq	_PLAYBACK_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_ICEMT1724
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_outw
	shrl	$16, %ebx
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_ICEMT1724
	leaq	2(%rax), %rsi
	movl	%ebx, %edi
	callq	_outb
	movq	%r14, %rdi
	callq	_snd_pcm_lib_period_bytes
                                        ## kill: def $eax killed $eax def $rax
	sarl	$2, %eax
	leal	-1(%rax), %ebx
	movq	_PLAYBACK_COUNT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_ICEMT1724
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_outw
	shrl	$16, %ebx
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_ICEMT1724
	leaq	2(%rax), %rsi
	movl	%ebx, %edi
	callq	_outb
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BURST,4,2                      ## @BURST
	.comm	_PLAYBACK_ADDR,4,2              ## @PLAYBACK_ADDR
	.comm	_PLAYBACK_SIZE,4,2              ## @PLAYBACK_SIZE
	.comm	_PLAYBACK_COUNT,4,2             ## @PLAYBACK_COUNT
	.no_dead_strip	_snd_vt1724_playback_pro_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_vt1724_playback_pro_prepare
_snd_vt1724_playback_pro_prepare:       ; @snd_vt1724_playback_pro_prepare
	.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, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	bl	_spin_lock_irq
	ldr	x8, [x20]
	ldr	w8, [x8]
	mov	w9, #8
	sub	w8, w9, w8
	ubfx	w21, w8, #1, #8
Lloh0:
	adrp	x8, _BURST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BURST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ICEMT1724
	mov	x1, x0
	mov	x0, x21
	bl	_outb
	ldr	x8, [x20]
	ldr	w21, [x8, #4]
Lloh3:
	adrp	x8, _PLAYBACK_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLAYBACK_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ICEMT1724
	mov	x1, x0
	mov	x0, x21
	bl	_outl
	mov	x0, x20
	bl	_snd_pcm_lib_buffer_bytes
	asr	w8, w0, #2
	sub	w21, w8, #1
Lloh6:
	adrp	x22, _PLAYBACK_SIZE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _PLAYBACK_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ICEMT1724
	mov	x1, x0
	mov	x0, x21
	bl	_outw
	lsr	w21, w21, #16
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ICEMT1724
	add	x1, x0, #2
	mov	x0, x21
	bl	_outb
	mov	x0, x20
	bl	_snd_pcm_lib_period_bytes
	asr	w8, w0, #2
	sub	w20, w8, #1
Lloh8:
	adrp	x21, _PLAYBACK_COUNT@GOTPAGE
Lloh9:
	ldr	x21, [x21, _PLAYBACK_COUNT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ICEMT1724
	mov	x1, x0
	mov	x0, x20
	bl	_outw
	lsr	w20, w20, #16
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ICEMT1724
	add	x1, x0, #2
	mov	x0, x20
	bl	_outb
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BURST,4,2                      ; @BURST
	.comm	_PLAYBACK_ADDR,4,2              ; @PLAYBACK_ADDR
	.comm	_PLAYBACK_SIZE,4,2              ; @PLAYBACK_SIZE
	.comm	_PLAYBACK_COUNT,4,2             ; @PLAYBACK_COUNT
	.no_dead_strip	_snd_vt1724_playback_pro_prepare
.subsections_via_symbols
