	.file	"extr_odm.c_odm_CommonInfoSelfUpdate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	odm_CommonInfoSelfUpdate
	.type	odm_CommonInfoSelfUpdate, @function
odm_CommonInfoSelfUpdate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdx, QWORD PTR ODM_BW40M[rip]
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR [rdi]
	cmp	QWORD PTR [rax], rdx
	je	.L15
	mov	rax, QWORD PTR 32[rdi]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 40[rdi], rax
.L4:
	xor	ebx, ebx
	xor	ebp, ebp
	cmp	QWORD PTR ODM_ASSOCIATE_ENTRY_NUM[rip], 0
	je	.L16
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 24[r12]
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	IS_STA_VALID@PLT
	cmp	rax, 1
	sbb	rbp, -1
	add	rbx, 1
	cmp	QWORD PTR ODM_ASSOCIATE_ENTRY_NUM[rip], rbx
	ja	.L6
	xor	eax, eax
	cmp	rbp, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	sete	al
	mov	DWORD PTR 16[r12], eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rdi]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L17
	cmp	eax, 2
	jne	.L4
	mov	rax, QWORD PTR 32[rdi]
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	QWORD PTR 40[rdi], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR 32[rdi]
	xor	ebx, ebx
	xor	ebp, ebp
	mov	rax, QWORD PTR [rax]
	sub	rax, 2
	cmp	QWORD PTR ODM_ASSOCIATE_ENTRY_NUM[rip], 0
	mov	QWORD PTR 40[rdi], rax
	jne	.L6
.L16:
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	DWORD PTR 16[r12], eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	odm_CommonInfoSelfUpdate, .-odm_CommonInfoSelfUpdate
	.comm	ODM_BW40M,8,8
	.comm	ODM_ASSOCIATE_ENTRY_NUM,8,8
	.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_odm.c_odm_CommonInfoSelfUpdate.c"
	.text
	.align	2
	.global	odm_CommonInfoSelfUpdate
	.syntax unified
	.arm
	.fpu softvfp
	.type	odm_CommonInfoSelfUpdate, %function
odm_CommonInfoSelfUpdate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L17
	ldr	r2, [r0]
	ldr	r3, [r3]
	ldr	r2, [r2]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r2, r3
	mov	r5, r0
	beq	.L15
	ldr	r3, [r0, #16]
	ldr	r3, [r3]
	str	r3, [r0, #20]
.L4:
	ldr	r7, .L17+4
	ldr	r6, [r7]
	cmp	r6, #0
	movne	r4, #0
	movne	r6, r4
	beq	.L7
.L6:
	ldr	r3, [r5, #12]
	ldr	r0, [r3, r4, lsl #2]
	bl	IS_STA_VALID
	ldr	r3, [r7]
	cmp	r0, #0
	add	r4, r4, #1
	addne	r6, r6, #1
	cmp	r3, r4
	bhi	.L6
	sub	r6, r6, #1
	clz	r6, r6
	lsr	r6, r6, #5
.L7:
	str	r6, [r5, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r3, [r0, #4]
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L16
	cmp	r3, #2
	ldreq	r3, [r0, #16]
	ldreq	r3, [r3]
	addeq	r3, r3, #2
	streq	r3, [r0, #20]
	b	.L4
.L16:
	ldr	r3, [r0, #16]
	ldr	r3, [r3]
	sub	r3, r3, #2
	str	r3, [r0, #20]
	b	.L4
.L18:
	.align	2
.L17:
	.word	ODM_BW40M
	.word	ODM_ASSOCIATE_ENTRY_NUM
	.size	odm_CommonInfoSelfUpdate, .-odm_CommonInfoSelfUpdate
	.comm	ODM_BW40M,4,4
	.comm	ODM_ASSOCIATE_ENTRY_NUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
