	.file	"extr_fw_common.c__rtl92c_fw_free_to_go.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"chksum report fail! REG_MCUFWDL:0x%08x .\n"
	.align 8
.LC1:
	.string	"Polling FW ready fail! REG_MCUFWDL:0x%08x.\n"
	.text
	.p2align 4
	.type	_rtl92c_fw_free_to_go, @function
_rtl92c_fw_free_to_go:
.LFB0:
	.cfi_startproc
	endbr64
	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
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	rtl_priv@PLT
	mov	r13d, DWORD PTR EIO[rip]
	mov	r12, rax
	neg	r13d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	test	QWORD PTR FWDL_CHKSUM_RPT[rip], rax
	jne	.L2
.L3:
	mov	esi, DWORD PTR REG_MCUFWDL[rip]
	mov	rdi, r12
	call	rtl_read_dword@PLT
	mov	rdx, QWORD PTR FW_8192C_POLLING_TIMEOUT_COUNT[rip]
	mov	rcx, rbx
	add	rbx, 1
	cmp	rdx, rcx
	jg	.L13
.L2:
	cmp	rdx, rbx
	jle	.L14
	mov	esi, DWORD PTR REG_MCUFWDL[rip]
	mov	rdi, r12
	xor	ebx, ebx
	call	rtl_read_dword@PLT
	mov	rdx, QWORD PTR WINTINI_RDY[rip]
	or	rax, QWORD PTR MCUFWDL_RDY[rip]
	mov	rdi, r12
	mov	esi, DWORD PTR REG_MCUFWDL[rip]
	not	rdx
	and	rdx, rax
	call	rtl_write_dword@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR FW_8192C_POLLING_DELAY[rip]
	call	mdelay@PLT
	cmp	QWORD PTR FW_8192C_POLLING_TIMEOUT_COUNT[rip], rbx
	lea	rax, 1[rbx]
	jle	.L15
	mov	rbx, rax
.L6:
	mov	esi, DWORD PTR REG_MCUFWDL[rip]
	mov	rdi, r12
	call	rtl_read_dword@PLT
	mov	rbp, rax
	test	QWORD PTR WINTINI_RDY[rip], rax
	je	.L16
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r13d, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	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
.L14:
	.cfi_restore_state
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L15:
	.cfi_restore_state
	mov	rsi, rbp
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.cfi_endproc
.LFE0:
	.size	_rtl92c_fw_free_to_go, .-_rtl92c_fw_free_to_go
	.comm	WINTINI_RDY,8,8
	.comm	REG_MCUFWDL,4,4
	.comm	MCUFWDL_RDY,8,8
	.comm	FW_8192C_POLLING_TIMEOUT_COUNT,8,8
	.comm	FW_8192C_POLLING_DELAY,4,4
	.comm	FWDL_CHKSUM_RPT,8,8
	.comm	EIO,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_fw_common.c__rtl92c_fw_free_to_go.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"chksum report fail! REG_MCUFWDL:0x%08x .\012\000"
	.align	2
.LC1:
	.ascii	"Polling FW ready fail! REG_MCUFWDL:0x%08x.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl92c_fw_free_to_go, %function
_rtl92c_fw_free_to_go:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	bl	rtl_priv
	ldr	r3, .L17
	mov	r4, #0
	ldr	r8, [r3]
	mov	r5, r0
	ldr	r6, .L17+4
	ldr	r7, .L17+8
	ldr	r9, .L17+12
	rsb	r8, r8, #0
	b	.L3
.L13:
	ldr	r2, [r9]
	tst	r0, r2
	bne	.L2
.L3:
	mov	r0, r5
	ldr	r1, [r6]
	bl	rtl_read_dword
	ldr	r3, [r7]
	cmp	r3, r4
	add	r4, r4, #1
	bgt	.L13
.L2:
	cmp	r3, r4
	ble	.L14
	ldr	r1, [r6]
	mov	r0, r5
	bl	rtl_read_dword
	ldr	r3, .L17+16
	ldr	r10, .L17+20
	ldr	r3, [r3]
	ldr	r2, [r10]
	orr	r0, r0, r3
	bic	r2, r0, r2
	ldr	r1, [r6]
	mov	r0, r5
	bl	rtl_write_dword
	mov	r9, #0
	ldr	fp, .L17+24
	b	.L6
.L16:
	ldr	r0, [fp]
	bl	mdelay
	ldr	r3, [r7]
	add	r2, r9, #1
	cmp	r3, r9
	ble	.L15
	mov	r9, r2
.L6:
	mov	r0, r5
	ldr	r1, [r6]
	bl	rtl_read_dword
	ldr	r3, [r10]
	mov	r4, r0
	tst	r0, r3
	beq	.L16
	mov	r8, #0
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r1, r0
	ldr	r0, .L17+28
	bl	pr_err
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r1, r4
	ldr	r0, .L17+32
	bl	pr_err
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	EIO
	.word	REG_MCUFWDL
	.word	FW_8192C_POLLING_TIMEOUT_COUNT
	.word	FWDL_CHKSUM_RPT
	.word	MCUFWDL_RDY
	.word	WINTINI_RDY
	.word	FW_8192C_POLLING_DELAY
	.word	.LC0
	.word	.LC1
	.size	_rtl92c_fw_free_to_go, .-_rtl92c_fw_free_to_go
	.comm	WINTINI_RDY,4,4
	.comm	REG_MCUFWDL,4,4
	.comm	MCUFWDL_RDY,4,4
	.comm	FW_8192C_POLLING_TIMEOUT_COUNT,4,4
	.comm	FW_8192C_POLLING_DELAY,4,4
	.comm	FWDL_CHKSUM_RPT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
