	.file	"extr_tda1997x.c_tda1997x_identify_module.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unsupported chip ID\n"
.LC1:
	.string	"chip id mismatch\n"
	.text
	.p2align 4
	.type	tda1997x_identify_module, @function
tda1997x_identify_module:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rbp, 40[rdi]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	rdi, rbp
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR REG_CMTP_REG10[rip]
	call	io_read@PLT
	mov	edx, eax
	sar	edx, 6
	and	edx, 1
	mov	DWORD PTR [rbx], edx
	mov	edx, eax
	sar	edx, 5
	and	edx, 1
	mov	DWORD PTR 4[rbx], edx
	mov	edx, eax
	sar	edx, 2
	and	edx, 3
	mov	DWORD PTR 8[rbx], edx
	mov	edx, eax
	sar	eax, 4
	sar	edx
	and	edx, 1
	mov	DWORD PTR 12[rbx], edx
	and	eax, 3
	je	.L2
	sub	eax, 2
	cmp	eax, 1
	ja	.L3
	mov	eax, DWORD PTR TDA19973[rip]
.L4:
	mov	rdx, QWORD PTR 32[rbx]
	cmp	DWORD PTR [rdx], eax
	jne	.L9
	mov	esi, DWORD PTR REG_CMTP_REG11[rip]
	mov	rdi, rbp
	call	io_read@PLT
	mov	QWORD PTR 16[rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR TDA19971[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	tda1997x_identify_module, .-tda1997x_identify_module
	.comm	TDA19973,4,4
	.comm	TDA19971,4,4
	.comm	REG_CMTP_REG11,4,4
	.comm	REG_CMTP_REG10,4,4
	.comm	EIO,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_tda1997x.c_tda1997x_identify_module.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unsupported chip ID\012\000"
	.align	2
.LC1:
	.ascii	"chip id mismatch\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tda1997x_identify_module, %function
tda1997x_identify_module:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, lr}
	add	r5, r0, #28
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, r5
	bl	io_read
	asr	r3, r0, #6
	and	r3, r3, #1
	asr	ip, r0, #5
	asr	r1, r0, #2
	str	r3, [r4]
	asr	r2, r0, #1
	asr	r3, r0, #4
	and	ip, ip, #1
	and	r1, r1, #3
	and	r2, r2, #1
	ands	r3, r3, #3
	str	ip, [r4, #4]
	str	r1, [r4, #8]
	str	r2, [r4, #12]
	beq	.L2
	sub	r3, r3, #2
	cmp	r3, #1
	bhi	.L3
	ldr	r3, .L9+4
	ldr	r3, [r3]
.L4:
	ldr	r2, [r4, #24]
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L6
	ldr	r0, [r4, #20]
	ldr	r1, .L9+8
	bl	dev_err
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L9+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	io_read
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4, #16]
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r0, [r4, #20]
	ldr	r1, .L9+20
	bl	dev_err
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L9+24
	ldr	r3, [r3]
	b	.L4
.L10:
	.align	2
.L9:
	.word	REG_CMTP_REG10
	.word	TDA19973
	.word	.LC1
	.word	EIO
	.word	REG_CMTP_REG11
	.word	.LC0
	.word	TDA19971
	.size	tda1997x_identify_module, .-tda1997x_identify_module
	.comm	TDA19973,4,4
	.comm	TDA19971,4,4
	.comm	REG_CMTP_REG11,4,4
	.comm	REG_CMTP_REG10,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
