	.file	"extr_coex.c_rtw_coex_check_rfk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtw_coex_check_rfk, @function
rtw_coex_check_rfk:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], 0
	je	.L10
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 16[rdi]
	cmp	QWORD PTR [rax], 0
	je	.L1
	cmp	DWORD PTR 8[rdi], 255
	je	.L1
	mov	eax, DWORD PTR COEX_RFK_TIMEOUT[rip]
	xor	r12d, r12d
	cdq
	idiv	DWORD PTR COEX_MIN_DELAY[rip]
	mov	r13d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR COEX_MIN_DELAY[rip]
	add	r12d, 1
	call	mdelay@PLT
	cmp	r13d, r12d
	jle	.L7
.L6:
	mov	rdi, rbx
	call	rtw_coex_read_scbd@PLT
	mov	esi, DWORD PTR REG_ARFR4[rip]
	mov	rdi, rbx
	and	eax, DWORD PTR COEX_SCBD_BT_RFK[rip]
	mov	ebp, eax
	call	rtw_read8@PLT
	and	eax, DWORD PTR BIT_WL_RFK[rip]
	or	eax, ebp
	jne	.L14
	cmp	r12d, r13d
	jge	.L7
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	DWORD PTR 8[rbx], 255
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	rtw_coex_check_rfk, .-rtw_coex_check_rfk
	.comm	REG_ARFR4,4,4
	.comm	COEX_SCBD_BT_RFK,4,4
	.comm	COEX_RFK_TIMEOUT,4,4
	.comm	COEX_MIN_DELAY,4,4
	.comm	BIT_WL_RFK,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_coex.c_rtw_coex_check_rfk.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtw_coex_check_rfk, %function
rtw_coex_check_rfk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	cmp	r3, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, [r0, #8]
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, [r0, #4]
	cmp	r3, #255
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, .L18
	ldr	r8, .L18+4
	ldr	r0, [r3]
	ldr	r1, [r8]
	bl	__aeabi_idiv
	mov	r6, #0
	mov	r7, r0
	ldr	fp, .L18+8
	ldr	r10, .L18+12
	ldr	r9, .L18+16
	b	.L6
.L17:
	ldr	r0, [r8]
	add	r6, r6, #1
	bl	mdelay
	cmp	r7, r6
	ble	.L7
.L6:
	mov	r0, r4
	bl	rtw_coex_read_scbd
	mov	r5, r0
	ldr	r3, [fp]
	mov	r0, r4
	ldr	r1, [r10]
	and	r5, r5, r3
	bl	rtw_read8
	ldr	r3, [r9]
	and	r0, r0, r3
	orrs	r3, r0, r5
	bne	.L17
	cmp	r6, r7
	poplt	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r3, #255
	str	r3, [r4, #4]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	COEX_RFK_TIMEOUT
	.word	COEX_MIN_DELAY
	.word	COEX_SCBD_BT_RFK
	.word	REG_ARFR4
	.word	BIT_WL_RFK
	.size	rtw_coex_check_rfk, .-rtw_coex_check_rfk
	.comm	REG_ARFR4,4,4
	.comm	COEX_SCBD_BT_RFK,4,4
	.comm	COEX_RFK_TIMEOUT,4,4
	.comm	COEX_MIN_DELAY,4,4
	.comm	BIT_WL_RFK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
