	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92d_fw_free_to_go
__rtl92d_fw_free_to_go:                 ## @_rtl92d_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, %r12
	xorl	%edx, %edx
	movq	_REG_MCUFWDL@GOTPCREL(%rip), %r14
	movq	_FW_8192D_POLLING_TIMEOUT_COUNT@GOTPCREL(%rip), %r15
	movq	_FWDL_CHKSUM_RPT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rbx
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_rtl_read_dword
	movq	(%r15), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rbx), %rdx
	testq	%rax, (%r13)
	je	LBB0_1
LBB0_3:
	incq	%rbx
	cmpq	%rcx, %rbx
	jge	LBB0_4
## %bb.5:
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_rtl_read_dword
	movq	_MCUFWDL_RDY@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movl	(%r14), %esi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_rtl_write_dword
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MCUFWDL,4,2                ## @REG_MCUFWDL
	.comm	_FW_8192D_POLLING_TIMEOUT_COUNT,8,3 ## @FW_8192D_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	_EIO,4,2                        ## @EIO
	.comm	_MCUFWDL_RDY,8,3                ## @MCUFWDL_RDY
	.no_dead_strip	__rtl92d_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 _rtl92d_fw_free_to_go
__rtl92d_fw_free_to_go:                 ; @_rtl92d_fw_free_to_go
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_rtl_priv
	mov	x19, x0
	mov	x9, #0
Lloh0:
	adrp	x20, _REG_MCUFWDL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_MCUFWDL@GOTPAGEOFF]
Lloh2:
	adrp	x21, _FW_8192D_POLLING_TIMEOUT_COUNT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FW_8192D_POLLING_TIMEOUT_COUNT@GOTPAGEOFF]
Lloh4:
	adrp	x22, _FWDL_CHKSUM_RPT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _FWDL_CHKSUM_RPT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtl_read_dword
	mov	x1, x0
	ldr	x8, [x21]
	cmp	x23, x8
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x22]
	add	x9, x23, #1
	tst	x10, x1
	b.eq	LBB0_1
LBB0_3:
	add	x9, x23, #1
	cmp	x9, x8
	b.ge	LBB0_5
; %bb.4:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtl_read_dword
Lloh6:
	adrp	x8, _MCUFWDL_RDY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCUFWDL_RDY@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	orr	x2, x8, x0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtl_write_dword
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MCUFWDL,4,2                ; @REG_MCUFWDL
	.comm	_FW_8192D_POLLING_TIMEOUT_COUNT,8,3 ; @FW_8192D_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	_EIO,4,2                        ; @EIO
	.comm	_MCUFWDL_RDY,8,3                ; @MCUFWDL_RDY
	.no_dead_strip	__rtl92d_fw_free_to_go
.subsections_via_symbols
