	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_vt1724_playback_pro_pointer
_snd_vt1724_playback_pro_pointer:       ## @snd_vt1724_playback_pro_pointer
	.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, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	_DMA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ICEMT1724
	movl	%eax, %edi
	callq	_inl
	movq	_VT1724_PDMA0_START@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_PLAYBACK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ICEMT1724
	movl	%eax, %edi
	callq	_inl
                                        ## kill: def $eax killed $eax def $rax
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	leal	4(,%rax,4), %esi
	movq	(%r14), %rdi
	callq	_bytes_to_frames
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%r14), %rcx
	movq	8(%rcx), %rdx
	movq	%rdx, %rbx
	subq	%rax, %rbx
	jae	LBB0_6
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_snd_printd
	jmp	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CONTROL,4,2                ## @DMA_CONTROL
	.comm	_VT1724_PDMA0_START,4,2         ## @VT1724_PDMA0_START
	.comm	_PLAYBACK_SIZE,4,2              ## @PLAYBACK_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ice1724: invalid ptr %d (size=%d)\n"

	.comm	_PLAYBACK_ADDR,4,2              ## @PLAYBACK_ADDR
	.no_dead_strip	_snd_vt1724_playback_pro_pointer
.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_pointer
_snd_vt1724_playback_pro_pointer:       ; @snd_vt1724_playback_pro_pointer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
Lloh0:
	adrp	x8, _DMA_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ICEMT1724
	bl	_inl
Lloh3:
	adrp	x8, _VT1724_PDMA0_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VT1724_PDMA0_START@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _PLAYBACK_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PLAYBACK_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ICEMT1724
	bl	_inl
	ubfiz	w8, w0, #2, #24
	add	w1, w8, #4
	ldr	x0, [x19]
	bl	_bytes_to_frames
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	subs	x8, x9, x0
	b.hs	LBB0_5
; %bb.3:
	stp	x0, x9, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printd
LBB0_4:
	mov	x8, #0
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CONTROL,4,2                ; @DMA_CONTROL
	.comm	_VT1724_PDMA0_START,4,2         ; @VT1724_PDMA0_START
	.comm	_PLAYBACK_SIZE,4,2              ; @PLAYBACK_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ice1724: invalid ptr %d (size=%d)\n"

	.comm	_PLAYBACK_ADDR,4,2              ; @PLAYBACK_ADDR
	.no_dead_strip	_snd_vt1724_playback_pro_pointer
.subsections_via_symbols
