	.file	"extr_cygnus-pcm.c_cygnus_pcm_pointer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cygnus_pcm_pointer, @function
cygnus_pcm_pointer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	cygnus_dai_get_dma_data@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	get_ringbuf@PLT
	mov	r12, rax
	mov	rax, QWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	cmp	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR 0[r13]
	je	.L6
	mov	rdi, QWORD PTR 8[r12]
	add	rdi, QWORD PTR [rax]
	call	readl@PLT
	mov	ebx, eax
.L3:
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, QWORD PTR [r12]
	and	ebx, 2147483647
	add	rdi, QWORD PTR [rax]
	call	readl@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, ebx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	and	eax, 2147483647
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	sub	esi, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	bytes_to_frames@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[r12]
	add	rdi, QWORD PTR [rax]
	call	readl@PLT
	mov	ebx, eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	cygnus_pcm_pointer, .-cygnus_pcm_pointer
	.comm	SNDRV_PCM_STREAM_PLAYBACK,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cygnus-pcm.c_cygnus_pcm_pointer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cygnus_pcm_pointer, %function
cygnus_pcm_pointer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	cygnus_dai_get_dma_data
	mov	r7, r0
	mov	r0, r4
	bl	get_ringbuf
	ldr	r3, .L6
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r6, r0
	cmp	r2, r3
	ldr	r2, [r7]
	ldreq	r3, [r0, #8]
	ldrne	r3, [r0, #4]
	ldr	r0, [r2]
	add	r0, r0, r3
	bl	readl
	ldr	r2, [r7]
	ldr	r3, [r6]
	mov	r5, r0
	ldr	r0, [r2]
	bic	r5, r5, #-2147483648
	add	r0, r0, r3
	bl	readl
	bic	r1, r0, #-2147483648
	sub	r1, r5, r1
	ldr	r0, [r4, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	bytes_to_frames
.L7:
	.align	2
.L6:
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.size	cygnus_pcm_pointer, .-cygnus_pcm_pointer
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
