	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92c_fw_free_to_go
__rtl92c_fw_free_to_go:                 ## @_rtl92c_fw_free_to_go
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_rtl_priv
	movq	%rax, %r15
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	movq	_REG_MCUFWDL@GOTPCREL(%rip), %r12
	movq	_FW_8192C_POLLING_TIMEOUT_COUNT@GOTPCREL(%rip), %r13
	movq	_FWDL_CHKSUM_RPT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rbx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_rtl_read_dword
	movq	(%r13), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rbx), %rdx
	testq	%rax, (%r14)
	je	LBB0_1
LBB0_3:
	incq	%rbx
	cmpq	%rcx, %rbx
	jge	LBB0_4
## %bb.5:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_rtl_read_dword
	movq	_MCUFWDL_RDY@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_WINTINI_RDY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	notq	%rdx
	andq	%rax, %rdx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_rtl_write_dword
	movq	$-1, %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_rtl_read_dword
	movq	%rax, %rbx
	movq	_WINTINI_RDY@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_FW_8192C_POLLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	incq	%r14
	cmpq	(%r13), %r14
	jl	LBB0_6
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
LBB0_10:
	callq	_pr_err
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_REG_MCUFWDL,4,2                ## @REG_MCUFWDL
	.comm	_FW_8192C_POLLING_TIMEOUT_COUNT,8,3 ## @FW_8192C_POLLING_TIMEOUT_COUNT
	.comm	_FWDL_CHKSUM_RPT,8,3            ## @FWDL_CHKSUM_RPT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chksum report fail! REG_MCUFWDL:0x%08x .\n"

	.comm	_MCUFWDL_RDY,8,3                ## @MCUFWDL_RDY
	.comm	_WINTINI_RDY,8,3                ## @WINTINI_RDY
	.comm	_FW_8192C_POLLING_DELAY,4,2     ## @FW_8192C_POLLING_DELAY
L_.str.1:                               ## @.str.1
	.asciz	"Polling FW ready fail! REG_MCUFWDL:0x%08x.\n"

	.no_dead_strip	__rtl92c_fw_free_to_go
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92c_fw_free_to_go
__rtl92c_fw_free_to_go:                 ; @_rtl92c_fw_free_to_go
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	bl	_rtl_priv
	mov	x20, x0
	mov	x8, #0
Lloh0:
	adrp	x9, _EIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	neg	w19, w9
Lloh3:
	adrp	x22, _REG_MCUFWDL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _REG_MCUFWDL@GOTPAGEOFF]
Lloh5:
	adrp	x23, _FW_8192C_POLLING_TIMEOUT_COUNT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _FW_8192C_POLLING_TIMEOUT_COUNT@GOTPAGEOFF]
Lloh7:
	adrp	x21, _FWDL_CHKSUM_RPT@GOTPAGE
Lloh8:
	ldr	x21, [x21, _FWDL_CHKSUM_RPT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rtl_read_dword
	mov	x1, x0
	ldr	x9, [x23]
	cmp	x24, x9
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x21]
	add	x8, x24, #1
	tst	x10, x1
	b.eq	LBB0_1
LBB0_3:
	add	x8, x24, #1
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.4:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rtl_read_dword
Lloh9:
	adrp	x8, _MCUFWDL_RDY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MCUFWDL_RDY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	orr	x8, x8, x0
Lloh12:
	adrp	x24, _WINTINI_RDY@GOTPAGE
Lloh13:
	ldr	x24, [x24, _WINTINI_RDY@GOTPAGEOFF]
	ldr	x9, [x24]
	bic	x2, x8, x9
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rtl_write_dword
	mov	x25, #-1
Lloh14:
	adrp	x26, _FW_8192C_POLLING_DELAY@GOTPAGE
Lloh15:
	ldr	x26, [x26, _FW_8192C_POLLING_DELAY@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rtl_read_dword
	ldr	x8, [x24]
	tst	x8, x0
	b.ne	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x0
	ldr	w0, [x26]
	bl	_mdelay
	ldr	x8, [x23]
	add	x25, x25, #1
	cmp	x25, x8
	b.lt	LBB0_5
; %bb.7:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	bl	_pr_err
	b	LBB0_11
LBB0_10:
	mov	w19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_REG_MCUFWDL,4,2                ; @REG_MCUFWDL
	.comm	_FW_8192C_POLLING_TIMEOUT_COUNT,8,3 ; @FW_8192C_POLLING_TIMEOUT_COUNT
	.comm	_FWDL_CHKSUM_RPT,8,3            ; @FWDL_CHKSUM_RPT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chksum report fail! REG_MCUFWDL:0x%08x .\n"

	.comm	_MCUFWDL_RDY,8,3                ; @MCUFWDL_RDY
	.comm	_WINTINI_RDY,8,3                ; @WINTINI_RDY
	.comm	_FW_8192C_POLLING_DELAY,4,2     ; @FW_8192C_POLLING_DELAY
l_.str.1:                               ; @.str.1
	.asciz	"Polling FW ready fail! REG_MCUFWDL:0x%08x.\n"

	.no_dead_strip	__rtl92c_fw_free_to_go
.subsections_via_symbols
