	.file	"extr_eeprom.c_mt7601u_set_rssi_offset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Warning: EEPROM RSSI is invalid %02hhx\n"
	.text
	.p2align 4
	.type	mt7601u_set_rssi_offset, @function
mt7601u_set_rssi_offset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, rsi
	mov	r12, QWORD PTR [rax]
	movsx	rax, DWORD PTR MT_EE_RSSI_OFFSET[rip]
	mov	edx, DWORD PTR [rsi+rax*4]
	lea	eax, 10[rdx]
	mov	DWORD PTR [r12], edx
	cmp	eax, 20
	ja	.L6
.L2:
	mov	eax, DWORD PTR MT_EE_RSSI_OFFSET[rip]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR [rbx+rax*4]
	lea	eax, 10[rdx]
	mov	DWORD PTR 4[r12], edx
	cmp	eax, 20
	ja	.L7
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR [rdi]
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	mov	DWORD PTR [r12], 0
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	mov	DWORD PTR 4[r12], 0
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mt7601u_set_rssi_offset, .-mt7601u_set_rssi_offset
	.comm	MT_EE_RSSI_OFFSET,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_mt7601u_set_rssi_offset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Warning: EEPROM RSSI is invalid %02hhx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt7601u_set_rssi_offset, %function
mt7601u_set_rssi_offset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L7
	ldr	r2, [r0, #4]
	ldr	r3, [r7]
	ldr	r6, [r2]
	ldr	r2, [r1, r3, lsl #2]
	mov	r5, r0
	add	r3, r2, #10
	cmp	r3, #20
	mov	r4, r1
	str	r2, [r6]
	bhi	.L6
.L2:
	ldr	r3, [r7]
	add	r3, r3, #1
	ldr	r2, [r4, r3, lsl #2]
	add	r3, r2, #10
	cmp	r3, #20
	str	r2, [r6, #4]
	popls	{r4, r5, r6, r7, r8, pc}
	ldr	r0, [r5]
	ldr	r1, .L7+4
	bl	dev_warn
	mov	r3, #0
	str	r3, [r6, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r1, .L7+4
	ldr	r0, [r0]
	bl	dev_warn
	mov	r3, #0
	str	r3, [r6]
	b	.L2
.L8:
	.align	2
.L7:
	.word	MT_EE_RSSI_OFFSET
	.word	.LC0
	.size	mt7601u_set_rssi_offset, .-mt7601u_set_rssi_offset
	.comm	MT_EE_RSSI_OFFSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
