	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92d_fw_init
__rtl92d_fw_init:                       ## @_rtl92d_fw_init
	.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
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	_COMP_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	$-1, %rbx
	movq	_POLLING_READY_TIMEOUT_COUNT@GOTPCREL(%rip), %r15
	movq	_FW_MAC1_READY@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_FW_MAC0_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movq	_MAC0_READY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$5, %edi
	callq	_udelay
	incq	%rbx
	cmpq	(%r15), %rbx
	jge	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movq	_MAC1_READY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_COMP_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	jmp	LBB0_6
LBB0_8:
	cmpq	$0, (%r12)
	movq	_COMP_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rbx
	cmoveq	%rax, %rbx
	cmoveq	_FW_MAC0_READY@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_COMP_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_REG_MCUFWDL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtl_read_dword
	leaq	L_.str.4(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_COMP_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_FW_MAC0_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r13d, %esi
LBB0_6:
	movl	%r12d, %edx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_FW,4,2                    ## @COMP_FW
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW already have download\n"

	.comm	_FW_MAC0_READY,4,2              ## @FW_MAC0_READY
	.comm	_MAC0_READY,4,2                 ## @MAC0_READY
L_.str.1:                               ## @.str.1
	.asciz	"Polling FW ready success!! REG_MCUFWDL: 0x%x\n"

	.comm	_FW_MAC1_READY,4,2              ## @FW_MAC1_READY
	.comm	_MAC1_READY,4,2                 ## @MAC1_READY
	.comm	_POLLING_READY_TIMEOUT_COUNT,8,3 ## @POLLING_READY_TIMEOUT_COUNT
L_.str.2:                               ## @.str.2
	.asciz	"Polling FW ready fail!! MAC0 FW init not ready: 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Polling FW ready fail!! MAC1 FW init not ready: 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Polling FW ready fail!! REG_MCUFWDL:0x%08x\n"

	.comm	_REG_MCUFWDL,4,2                ## @REG_MCUFWDL
	.no_dead_strip	__rtl92d_fw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92d_fw_init
__rtl92d_fw_init:                       ; @_rtl92d_fw_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x20, x0
Lloh0:
	adrp	x24, _COMP_FW@GOTPAGE
Lloh1:
	ldr	x24, [x24, _COMP_FW@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x23, _DBG_DMESG@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DBG_DMESG@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	x21, #-1
Lloh6:
	adrp	x25, _FW_MAC0_READY@GOTPAGE
Lloh7:
	ldr	x25, [x25, _FW_MAC0_READY@GOTPAGEOFF]
Lloh8:
	adrp	x22, _MAC0_READY@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MAC0_READY@GOTPAGEOFF]
Lloh10:
	adrp	x27, _POLLING_READY_TIMEOUT_COUNT@GOTPAGE
Lloh11:
	ldr	x27, [x27, _POLLING_READY_TIMEOUT_COUNT@GOTPAGEOFF]
Lloh12:
	adrp	x26, _FW_MAC1_READY@GOTPAGE
Lloh13:
	ldr	x26, [x26, _FW_MAC1_READY@GOTPAGEOFF]
Lloh14:
	adrp	x28, _MAC1_READY@GOTPAGE
Lloh15:
	ldr	x28, [x28, _MAC1_READY@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_rtl_read_byte
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	x8, [x27]
	add	x21, x21, #1
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	bl	_rtl_read_byte
	ldr	w8, [x28]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.5:
	ldr	w20, [x24]
	ldr	w21, [x23]
	ldr	w1, [x26]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x20]
	ldr	w20, [x24]
	ldr	w21, [x23]
Lloh16:
	adrp	x9, l_.str.3@PAGE
Lloh17:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh18:
	adrp	x10, l_.str.2@PAGE
Lloh19:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x22, x10, x9, eq
	csel	x8, x25, x26, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_read_byte
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_RT_TRACE
	ldr	w20, [x24]
	ldr	w21, [x23]
Lloh20:
	adrp	x8, _REG_MCUFWDL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REG_MCUFWDL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_read_dword
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh23:
	adrp	x3, l_.str.4@PAGE
Lloh24:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_RT_TRACE
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
	ldr	w20, [x24]
	ldr	w21, [x23]
	ldr	w1, [x25]
LBB0_8:
	mov	x0, x19
	bl	_rtl_read_byte
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh25:
	adrp	x3, l_.str.1@PAGE
Lloh26:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_RT_TRACE
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_FW,4,2                    ; @COMP_FW
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW already have download\n"

	.comm	_FW_MAC0_READY,4,2              ; @FW_MAC0_READY
	.comm	_MAC0_READY,4,2                 ; @MAC0_READY
l_.str.1:                               ; @.str.1
	.asciz	"Polling FW ready success!! REG_MCUFWDL: 0x%x\n"

	.comm	_FW_MAC1_READY,4,2              ; @FW_MAC1_READY
	.comm	_MAC1_READY,4,2                 ; @MAC1_READY
	.comm	_POLLING_READY_TIMEOUT_COUNT,8,3 ; @POLLING_READY_TIMEOUT_COUNT
l_.str.2:                               ; @.str.2
	.asciz	"Polling FW ready fail!! MAC0 FW init not ready: 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Polling FW ready fail!! MAC1 FW init not ready: 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Polling FW ready fail!! REG_MCUFWDL:0x%08x\n"

	.comm	_REG_MCUFWDL,4,2                ; @REG_MCUFWDL
	.no_dead_strip	__rtl92d_fw_init
.subsections_via_symbols
