	.file	"extr_fm801.c_snd_fm801_capture_pointer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_fm801_capture_pointer, @function
snd_fm801_capture_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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	snd_pcm_substream_chip@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR FM801_START[rip], eax
	jne	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	r13, 24[rbx]
	mov	rdi, r13
	call	spin_lock@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	eax, DWORD PTR 4[rbx]
	mov	rdi, rbx
	mov	esi, DWORD PTR CAP_COUNT[rip]
	lea	ebp, -1[rdx+rax]
	call	FM801_REG@PLT
	mov	edi, eax
	call	inw@PLT
	mov	esi, DWORD PTR IRQ_STATUS[rip]
	mov	rdi, rbx
	sub	ebp, eax
	call	FM801_REG@PLT
	movsx	rbp, ebp
	mov	edi, eax
	call	inw@PLT
	test	DWORD PTR FM801_IRQ_CAPTURE[rip], eax
	je	.L3
	movsx	rax, DWORD PTR 8[rbx]
	xor	edx, edx
	add	rax, rbp
	div	QWORD PTR 16[rbx]
	mov	rbp, rdx
.L3:
	mov	rdi, r13
	call	spin_unlock@PLT
	mov	edi, DWORD PTR [r12]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	bytes_to_frames@PLT
	.cfi_endproc
.LFE0:
	.size	snd_fm801_capture_pointer, .-snd_fm801_capture_pointer
	.comm	IRQ_STATUS,4,4
	.comm	FM801_START,4,4
	.comm	FM801_IRQ_CAPTURE,4,4
	.comm	CAP_COUNT,4,4
	.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_fm801.c_snd_fm801_capture_pointer.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_fm801_capture_pointer, %function
snd_fm801_capture_pointer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	snd_pcm_substream_chip
	ldr	r2, .L9
	ldr	r3, [r0]
	mov	r4, r0
	ldr	r0, [r2]
	ands	r0, r3, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	add	r7, r4, #16
	mov	r0, r7
	bl	spin_lock
	ldr	r2, .L9+4
	ldr	r5, [r4, #8]
	ldr	r3, [r4, #4]
	ldr	r1, [r2]
	mov	r0, r4
	sub	r5, r5, #1
	add	r5, r5, r3
	bl	FM801_REG
	bl	inw
	mov	r3, r0
	ldr	r2, .L9+8
	mov	r0, r4
	ldr	r1, [r2]
	sub	r5, r5, r3
	bl	FM801_REG
	bl	inw
	ldr	r3, .L9+12
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L3
	ldr	r0, [r4, #8]
	ldr	r1, [r4, #12]
	add	r0, r5, r0
	bl	__aeabi_uidivmod
	mov	r5, r1
.L3:
	mov	r0, r7
	bl	spin_unlock
	mov	r1, r5
	ldr	r0, [r6]
	pop	{r4, r5, r6, r7, r8, lr}
	b	bytes_to_frames
.L10:
	.align	2
.L9:
	.word	FM801_START
	.word	CAP_COUNT
	.word	IRQ_STATUS
	.word	FM801_IRQ_CAPTURE
	.size	snd_fm801_capture_pointer, .-snd_fm801_capture_pointer
	.comm	IRQ_STATUS,4,4
	.comm	FM801_START,4,4
	.comm	FM801_IRQ_CAPTURE,4,4
	.comm	CAP_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
