	.file	"extr_dib8000.c_dib8096p_tuner_read_serpar.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TunerITF: read busy (overflow)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"TunerITF: read busy (empty)\n"
	.text
	.p2align 4
	.type	dib8096p_tuner_read_serpar, @function
dib8096p_tuner_read_serpar:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, 999
	call	i2c_get_adapdata@PLT
	mov	esi, 1984
	mov	rbp, rax
	mov	rax, QWORD PTR [r12]
	mov	rdi, rbp
	mov	r14d, DWORD PTR [rax]
	call	dib8000_read_word@PLT
	sar	eax
	and	eax, 1
	.p2align 4,,10
	.p2align 3
.L2:
	test	eax, eax
	je	.L3
	mov	esi, 1984
	mov	rdi, rbp
	call	dib8000_read_word@PLT
	sar	eax
	and	eax, 1
	sub	ebx, 1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	dprintk@PLT
.L3:
	mov	edx, r14d
	mov	esi, 1985
	mov	rdi, rbp
	mov	ebx, 999
	and	edx, 63
	call	dib8000_write_word@PLT
	mov	esi, 1984
	mov	rdi, rbp
	call	dib8000_read_word@PLT
	and	eax, 1
	.p2align 4,,10
	.p2align 3
.L5:
	test	eax, eax
	je	.L6
	mov	esi, 1984
	mov	rdi, rbp
	call	dib8000_read_word@PLT
	and	eax, 1
	sub	ebx, 1
	jne	.L5
	lea	rdi, .LC1[rip]
	call	dprintk@PLT
.L6:
	mov	rdi, rbp
	mov	esi, 1987
	call	dib8000_read_word@PLT
	mov	rdx, QWORD PTR 8[r12]
	movzx	ecx, ah
	and	eax, 255
	mov	DWORD PTR 4[rdx], eax
	mov	eax, r13d
	mov	DWORD PTR [rdx], ecx
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dib8096p_tuner_read_serpar, .-dib8096p_tuner_read_serpar
	.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_dib8000.c_dib8096p_tuner_read_serpar.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TunerITF: read busy (overflow)\012\000"
	.align	2
.LC1:
	.ascii	"TunerITF: read busy (empty)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dib8096p_tuner_read_serpar, %function
dib8096p_tuner_read_serpar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r2
	bl	i2c_get_adapdata
	ldr	r3, [r5]
	mov	r1, #1984
	ldr	r7, [r3]
	mov	r4, r0
	bl	dib8000_read_word
	ldr	r8, .L12
	asr	r3, r0, #1
	and	r3, r3, #1
.L2:
	cmp	r3, #0
	beq	.L3
	mov	r1, #1984
	mov	r0, r4
	bl	dib8000_read_word
	subs	r8, r8, #1
	asr	r3, r0, #1
	and	r3, r3, #1
	bne	.L2
	ldr	r0, .L12+4
	bl	dprintk
.L3:
	and	r2, r7, #63
	ldr	r1, .L12+8
	mov	r0, r4
	bl	dib8000_write_word
	mov	r1, #1984
	mov	r0, r4
	bl	dib8000_read_word
	ldr	r7, .L12
	and	r0, r0, #1
.L5:
	cmp	r0, #0
	beq	.L6
	mov	r1, #1984
	mov	r0, r4
	bl	dib8000_read_word
	subs	r7, r7, #1
	and	r0, r0, #1
	bne	.L5
	ldr	r0, .L12+12
	bl	dprintk
.L6:
	mov	r0, r4
	ldr	r1, .L12+16
	bl	dib8000_read_word
	ldr	r1, [r5, #4]
	asr	r2, r0, #8
	and	r3, r0, #255
	and	r2, r2, #255
	mov	r0, r6
	stm	r1, {r2, r3}
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	999
	.word	.LC0
	.word	1985
	.word	.LC1
	.word	1987
	.size	dib8096p_tuner_read_serpar, .-dib8096p_tuner_read_serpar
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
