	.file	"extr_odm.c_odm_EdcaTurboCheckCE.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	odm_EdcaTurboCheckCE
	.type	odm_EdcaTurboCheckCE, @function
odm_EdcaTurboCheckCE:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR 16[rdi]
	cmp	DWORD PTR 24[rbx], 1
	je	.L21
	mov	rcx, QWORD PTR 16[rbx]
	cmp	rcx, QWORD PTR HT_IOT_PEER_MAX[rip]
	jnb	.L21
	mov	rbp, rdi
	mov	edi, DWORD PTR 28[rbx]
	test	edi, edi
	jne	.L5
	mov	edx, DWORD PTR 40[rbx]
	mov	eax, DWORD PTR 32[rbx]
	mov	edi, edx
	mov	esi, eax
	sub	edi, DWORD PTR 44[rbx]
	sub	esi, DWORD PTR 36[rbx]
	cmp	rcx, QWORD PTR HT_IOT_PEER_RALINK[rip]
	je	.L6
	cmp	rcx, QWORD PTR HT_IOT_PEER_ATHEROS[rip]
	je	.L6
	sal	edi, 2
	cmp	edi, esi
	jge	.L10
.L8:
	mov	r12, QWORD PTR DOWN_LINK[rip]
.L9:
	cmp	QWORD PTR 0[rbp], r12
	je	.L23
.L11:
	cmp	rcx, QWORD PTR HT_IOT_PEER_CISCO[rip]
	mov	rdx, QWORD PTR EDCAParam[rip]
	lea	rax, 0[0+r12*8]
	je	.L24
.L13:
	mov	rcx, QWORD PTR HT_IOT_PEER_UNKNOWN[rip]
.L20:
	mov	rdx, QWORD PTR [rdx+rcx*8]
	mov	esi, DWORD PTR REG_EDCA_BE_PARAM[rip]
	mov	rdi, rbx
	mov	rdx, QWORD PTR [rdx+rax]
	call	usb_write32@PLT
	mov	edx, DWORD PTR 40[rbx]
	mov	eax, DWORD PTR 32[rbx]
	mov	QWORD PTR 0[rbp], r12
.L12:
	mov	DWORD PTR 8[rbp], 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR REG_EDCA_BE_PARAM[rip]
	mov	rdi, rbx
	mov	rdx, QWORD PTR [rax]
	call	usb_write32@PLT
	mov	DWORD PTR 8[rbp], 0
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, DWORD PTR 40[rbx]
	mov	eax, DWORD PTR 32[rbx]
.L3:
	mov	DWORD PTR 28[rbx], 0
	mov	DWORD PTR 44[rbx], edx
	mov	DWORD PTR 36[rbx], eax
	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
	sal	esi, 2
	cmp	esi, edi
	jge	.L8
.L10:
	mov	r12, QWORD PTR UP_LINK[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	mov	esi, DWORD PTR 8[rbp]
	test	esi, esi
	jne	.L12
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR 8[rbx]
	test	DWORD PTR WIRELESS_11_24N[rip], esi
	je	.L13
	jmp	.L20
	.cfi_endproc
.LFE0:
	.size	odm_EdcaTurboCheckCE, .-odm_EdcaTurboCheckCE
	.comm	WIRELESS_11_24N,4,4
	.comm	UP_LINK,8,8
	.comm	REG_EDCA_BE_PARAM,4,4
	.comm	HT_IOT_PEER_UNKNOWN,8,8
	.comm	HT_IOT_PEER_RALINK,8,8
	.comm	HT_IOT_PEER_MAX,8,8
	.comm	HT_IOT_PEER_CISCO,8,8
	.comm	HT_IOT_PEER_ATHEROS,8,8
	.comm	EDCAParam,8,8
	.comm	DOWN_LINK,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_EdcaTurboCheckCE.c"
	.text
	.align	2
	.global	odm_EdcaTurboCheckCE
	.syntax unified
	.arm
	.fpu softvfp
	.type	odm_EdcaTurboCheckCE, %function
odm_EdcaTurboCheckCE:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0, #8]
	ldr	r3, [r4, #12]
	cmp	r3, #1
	beq	.L21
	ldr	r3, .L25
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	cmp	r1, r3
	bcs	.L21
	ldr	r3, [r4, #16]
	mov	r5, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L25+4
	ldr	r2, [r4, #28]
	ldr	lr, [r3]
	ldr	ip, [r4, #32]
	ldr	r3, [r4, #20]
	ldr	r0, [r4, #24]
	cmp	r1, lr
	sub	ip, r2, ip
	sub	r0, r3, r0
	beq	.L6
	ldr	lr, .L25+8
	ldr	lr, [lr]
	cmp	r1, lr
	beq	.L6
	cmp	r0, ip, lsl #2
	ble	.L10
.L8:
	ldr	r0, .L25+12
	ldr	r6, [r0]
.L9:
	ldr	r0, [r5]
	cmp	r0, r6
	beq	.L23
.L11:
	ldr	r3, .L25+16
	ldr	r2, .L25+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r1, r3
	lsl	r3, r6, #2
	beq	.L24
.L13:
	ldr	r1, .L25+24
	ldr	r1, [r1]
.L20:
	ldr	r2, [r2, r1, lsl #2]
	mov	r0, r4
	ldr	r2, [r2, r3]
	ldr	r3, .L25+28
	ldr	r1, [r3]
	bl	usb_write32
	ldr	r2, [r4, #28]
	ldr	r3, [r4, #20]
	str	r6, [r5]
.L12:
	mov	r1, #1
	str	r1, [r5, #4]
	b	.L3
.L5:
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L15
.L21:
	ldr	r2, [r4, #28]
	ldr	r3, [r4, #20]
.L3:
	mov	r1, #0
	str	r2, [r4, #32]
	str	r3, [r4, #24]
	str	r1, [r4, #16]
	pop	{r4, r5, r6, pc}
.L6:
	cmp	ip, r0, lsl #2
	ble	.L8
.L10:
	ldr	r0, .L25+32
	ldr	r6, [r0]
	b	.L9
.L15:
	ldr	r3, .L25+28
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	usb_write32
	mov	r1, #0
	ldr	r2, [r4, #28]
	ldr	r3, [r4, #20]
	str	r1, [r5, #4]
	b	.L3
.L23:
	ldr	r0, [r5, #4]
	cmp	r0, #0
	bne	.L12
	b	.L11
.L24:
	ldr	r0, .L25+36
	ldr	ip, [r4, #4]
	ldr	r0, [r0]
	tst	ip, r0
	beq	.L13
	b	.L20
.L26:
	.align	2
.L25:
	.word	HT_IOT_PEER_MAX
	.word	HT_IOT_PEER_RALINK
	.word	HT_IOT_PEER_ATHEROS
	.word	DOWN_LINK
	.word	HT_IOT_PEER_CISCO
	.word	EDCAParam
	.word	HT_IOT_PEER_UNKNOWN
	.word	REG_EDCA_BE_PARAM
	.word	UP_LINK
	.word	WIRELESS_11_24N
	.size	odm_EdcaTurboCheckCE, .-odm_EdcaTurboCheckCE
	.comm	WIRELESS_11_24N,4,4
	.comm	UP_LINK,4,4
	.comm	REG_EDCA_BE_PARAM,4,4
	.comm	HT_IOT_PEER_UNKNOWN,4,4
	.comm	HT_IOT_PEER_RALINK,4,4
	.comm	HT_IOT_PEER_MAX,4,4
	.comm	HT_IOT_PEER_CISCO,4,4
	.comm	HT_IOT_PEER_ATHEROS,4,4
	.comm	EDCAParam,4,4
	.comm	DOWN_LINK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
