	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_pcm_pointer
_omap_pcm_pointer:                      ## @omap_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	movq	16(%rbx), %r14
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	4(%r14), %edi
	callq	_omap_get_dma_dst_pos
	jmp	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_cpu_is_omap1510
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %eax
	imull	(%r14), %eax
	jmp	LBB0_6
LBB0_4:
	movl	4(%r14), %edi
	callq	_omap_get_dma_src_pos
LBB0_2:
	subq	8(%rbx), %rax
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_bytes_to_frames
LBB0_6:
	xorl	%ecx, %ecx
	cmpl	4(%rbx), %eax
	cmovll	%eax, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ## @SNDRV_PCM_STREAM_CAPTURE
	.no_dead_strip	_omap_pcm_pointer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_pcm_pointer
_omap_pcm_pointer:                      ; @omap_pcm_pointer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x8, x19, [x0]
	ldr	x20, [x19, #16]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_omap_get_dma_dst_pos
	b	LBB0_5
LBB0_2:
	bl	_cpu_is_omap1510
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x20]
	ldr	w9, [x19]
	mul	w0, w9, w8
	b	LBB0_6
LBB0_4:
	ldr	w0, [x20, #4]
	bl	_omap_get_dma_src_pos
LBB0_5:
	ldr	x8, [x19, #8]
	sub	x1, x0, x8
	mov	x0, x19
	bl	_bytes_to_frames
LBB0_6:
	ldr	w8, [x19, #4]
	cmp	w0, w8
	csel	w0, w0, wzr, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ; @SNDRV_PCM_STREAM_CAPTURE
	.no_dead_strip	_omap_pcm_pointer
.subsections_via_symbols
