	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_riptide_pointer
_snd_riptide_pointer:                   ## @snd_riptide_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	%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, %r15
	movq	(%rbx), %r14
	movq	%rbx, %rdi
	callq	_get_pcmhwdev
	movq	%rax, %rbx
	movq	(%r15), %rdi
	movq	_CMDRET_ZERO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	8(%rbx), %edx
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	callq	_SEND_GPOS
	movl	(%rbx), %esi
	movl	(%r14), %edx
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	testl	%edx, %edx
	movl	$0, %edx
	je	LBB0_5
## %bb.2:
	movl	8(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax
	movl	4(%rax), %r12d
	movl	%r12d, %eax
	cltd
	idivl	%esi
	movl	%edx, %r13d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_bytes_to_frames
	movl	%eax, %r15d
	movq	-48(%rbp), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_bytes_to_frames
	cltd
	idivl	(%r14)
	movl	%edx, %r9d
	leaq	L_.str(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_snd_printdd
	movq	-48(%rbp), %rax
	movl	4(%rax), %eax
	movl	(%rbx), %esi
	movl	4(%rbx), %ecx
	cmpl	%ecx, %eax
	jg	LBB0_3
## %bb.4:
	movl	%ecx, %eax
LBB0_3:
	cltd
	idivl	%esi
	movl	%edx, %r15d
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_snd_printdd
LBB0_6:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_bytes_to_frames
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDRET_ZERO,8,3                ## @CMDRET_ZERO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pointer stream %d position 0x%x(0x%x in buffer) bytes 0x%lx(0x%lx in period) frames\n"

L_.str.1:                               ## @.str.1
	.asciz	"stream not started or strange parms (%d %ld)\n"

	.no_dead_strip	_snd_riptide_pointer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_riptide_pointer
_snd_riptide_pointer:                   ; @snd_riptide_pointer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x21, x0
	ldr	x19, [x20]
	mov	x0, x20
	bl	_get_pcmhwdev
	mov	x20, x0
	ldr	x0, [x21]
Lloh0:
	adrp	x8, _CMDRET_ZERO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMDRET_ZERO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w2, [x20, #8]
	add	x3, sp, #24
	mov	w1, #0
	bl	_SEND_GPOS
	ldr	w1, [x20]
	ldr	w2, [x19]
	cbz	w1, LBB0_4
; %bb.1:
	cbz	w2, LBB0_4
; %bb.2:
	ldr	w21, [x20, #8]
	ldr	x8, [sp, #24]
	ldr	w22, [x8, #4]
	sdiv	w8, w22, w1
	msub	w24, w8, w1, w22
	mov	x0, x19
	mov	x1, x22
	bl	_bytes_to_frames
	mov	x23, x0
	ldr	x8, [sp, #24]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_bytes_to_frames
	ldr	w8, [x19]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	stp	x24, x23, [sp]
	str	x8, [sp, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_snd_printdd
	ldr	x8, [sp, #24]
	ldr	w9, [x8, #4]
	ldp	w8, w10, [x20]
	cmp	w9, w10
	b.le	LBB0_5
; %bb.3:
	sdiv	w10, w9, w8
	msub	w1, w10, w8, w9
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snd_printdd
	mov	w1, #0
	b	LBB0_6
LBB0_5:
	sdiv	w9, w10, w8
	msub	w1, w9, w8, w10
LBB0_6:
	mov	x0, x19
	bl	_bytes_to_frames
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDRET_ZERO,8,3                ; @CMDRET_ZERO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pointer stream %d position 0x%x(0x%x in buffer) bytes 0x%lx(0x%lx in period) frames\n"

l_.str.1:                               ; @.str.1
	.asciz	"stream not started or strange parms (%d %ld)\n"

	.no_dead_strip	_snd_riptide_pointer
.subsections_via_symbols
