	.file	"extr_eeprom.c_mt76x0_check_eeprom.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"EEPROM data check failed: %04x\n"
	.text
	.p2align 4
	.type	mt76x0_check_eeprom, @function
mt76x0_check_eeprom:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	rdi, QWORD PTR 8[rdi]
	call	get_unaligned_le16@PLT
	mov	edx, eax
	test	eax, eax
	je	.L9
.L2:
	mov	ecx, edx
	xor	eax, eax
	and	ecx, -65
	cmp	ecx, 30224
	je	.L1
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR MT_EE_PCI_ID[rip]
	add	rdi, QWORD PTR 8[rbx]
	call	get_unaligned_le16@PLT
	mov	edx, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	mt76x0_check_eeprom, .-mt76x0_check_eeprom
	.comm	MT_EE_PCI_ID,8,8
	.comm	EINVAL,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_eeprom.c_mt76x0_check_eeprom.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EEPROM data check failed: %04x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt76x0_check_eeprom, %function
mt76x0_check_eeprom:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	bl	get_unaligned_le16
	subs	r2, r0, #0
	beq	.L7
.L2:
	ldr	r3, .L8
	bic	r1, r2, #64
	cmp	r1, r3
	beq	.L4
	ldr	r0, [r4]
	ldr	r1, .L8+4
	bl	dev_err
	ldr	r3, .L8+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L4:
	mov	r0, #0
	pop	{r4, pc}
.L7:
	ldr	r3, .L8+12
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	get_unaligned_le16
	mov	r2, r0
	b	.L2
.L9:
	.align	2
.L8:
	.word	30224
	.word	.LC0
	.word	EINVAL
	.word	MT_EE_PCI_ID
	.size	mt76x0_check_eeprom, .-mt76x0_check_eeprom
	.comm	MT_EE_PCI_ID,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
