	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_vt1724_pcm_pointer
_snd_vt1724_pcm_pointer:                ## @snd_vt1724_pcm_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	16(%rax), %rbx
	movq	_DMA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ICEMT1724
	movq	%rax, %rdi
	callq	_inl
	testq	%rax, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_inw
	leaq	4(,%rax,4), %rsi
	movq	(%r15), %rdi
	callq	_bytes_to_frames
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rsi
	movq	(%r15), %rax
	movq	(%rax), %rdx
	movq	%rdx, %rax
	subq	%rsi, %rax
	jae	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_snd_printd
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CONTROL,4,2                ## @DMA_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ice1724: invalid ptr %d (size=%d)\n"

	.no_dead_strip	_snd_vt1724_pcm_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_pcm_pointer
_snd_vt1724_pcm_pointer:                ; @snd_vt1724_pcm_pointer
	.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	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x21, [x8, #16]
Lloh0:
	adrp	x8, _DMA_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ICEMT1724
	bl	_inl
	ldr	x8, [x21]
	tst	x8, x0
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x21, #8]
	add	x0, x9, x8
	bl	_inw
	lsl	x8, x0, #2
	add	x1, x8, #4
	ldr	x0, [x19]
	bl	_bytes_to_frames
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x2, [x8]
	subs	x0, x2, x0
	b.hs	LBB0_5
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_snd_printd
LBB0_4:
	mov	x0, #0
LBB0_5:
	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 AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CONTROL,4,2                ; @DMA_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ice1724: invalid ptr %d (size=%d)\n"

	.no_dead_strip	_snd_vt1724_pcm_pointer
.subsections_via_symbols
