	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function davinci_pcm_pointer
_davinci_pcm_pointer:                   ## @davinci_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	%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, %r14
	movq	8(%rdi), %r13
	movq	16(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	4(%r15), %edi
	leaq	-56(%rbp), %r12
	leaq	-48(%rbp), %rbx
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_edma_get_position
	movq	(%r14), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	cmoveq	%r12, %rbx
	movq	(%rbx), %rbx
	subq	8(%r13), %rbx
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_bytes_to_frames
	xorl	%ecx, %ecx
	cmpl	(%r13), %eax
	cmovael	%ecx, %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
	.no_dead_strip	_davinci_pcm_pointer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function davinci_pcm_pointer
_davinci_pcm_pointer:                   ; @davinci_pcm_pointer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x20, [x0, #8]
	ldr	x21, [x20, #16]
	mov	x0, x21
	bl	_spin_lock
	ldr	w0, [x21, #4]
	add	x22, sp, #8
	mov	x23, sp
	add	x1, sp, #8
	mov	x2, sp
	bl	_edma_get_position
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x22, x23, eq
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	sub	x19, x8, x9
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x20
	mov	x1, x19
	bl	_bytes_to_frames
	ldr	w8, [x20]
	cmp	w0, w8
	csel	w0, w0, wzr, lo
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_davinci_pcm_pointer
.subsections_via_symbols
