	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92de_hw_init                ## -- Begin function rtl92de_hw_init
	.p2align	4, 0x90
_rtl92de_hw_init:                       ## @rtl92de_hw_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	$1, (%r12)
	movq	_globalmutex_for_power_and_efuse@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_rtl92d_phy_reset_iqk_result
	movq	%r15, %rdi
	callq	__rtl92de_init_mac
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_rtl92d_download_fw
	movl	%eax, %r13d
	movq	_globalmutex_for_power_and_efuse@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movl	$1, %eax
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_globalmutex_for_power_and_efuse@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	$1, %eax
	jmp	LBB0_17
LBB0_4:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	$0, 32(%r13)
	movq	%r14, %r12
	movl	$0, 8(%r14)
	movq	%r14, %rdi
	movl	$1541, %esi                     ## imm = 0x605
	callq	_rtl_read_byte
	orl	$48, %eax
	movq	%r14, %rdi
	movl	$1541, %esi                     ## imm = 0x605
	movl	%eax, %edx
	callq	_rtl_write_byte
	cmpq	$0, 24(%r13)
	je	LBB0_6
## %bb.5:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rdi
	callq	_RT_TRACE
	movq	%r12, %rdi
	movl	$1232, %esi                     ## imm = 0x4D0
	callq	_rtl_read_byte
	orl	$31, %eax
	movq	%r12, %rdi
	movl	$1232, %esi                     ## imm = 0x4D0
	movl	%eax, %edx
	callq	_rtl_write_byte
	movq	%r12, %rdi
	movl	$1235, %esi                     ## imm = 0x4D3
	movl	$128, %edx
	callq	_rtl_write_byte
	movq	%r12, %rdi
	movl	$1541, %esi                     ## imm = 0x605
	callq	_rtl_read_byte
	orl	$64, %eax
	movq	%r12, %rdi
	movl	$1541, %esi                     ## imm = 0x605
	movl	%eax, %edx
	callq	_rtl_write_byte
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.7:
	movq	_REG_RD_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$255, %edx
	callq	_rtl_write_byte
	movq	_REG_RD_NAV_NXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$512, %edx                      ## imm = 0x200
	callq	_rtl_write_word
	movq	_REG_RD_RESP_PKT_TH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$5, %edx
	callq	_rtl_write_byte
LBB0_8:
	movq	%r15, %rdi
	callq	_rtl92d_phy_mac_config
	movq	_REG_RCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rtl_read_dword
	movq	_RCR_ACRC32@GOTPCREL(%rip), %rcx
	movq	_RCR_AICV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, 8(%rax)
	movq	%r15, %rdi
	callq	_rtl92d_phy_bb_config
	movq	_RF_OP_BY_SW_3WIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_RFPGA0_ANALOGPARAMETER4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$15728640, %edx                 ## imm = 0xF00000
	movl	$15, %ecx
	callq	_rtl_set_bbreg
	movq	%r15, %rdi
	callq	_rtl92d_phy_rf_config
	movq	%r15, %rdi
	callq	_rtl92d_update_bbrf_configuration
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$15728640, %edx                 ## imm = 0xF00000
	xorl	%ecx, %ecx
	callq	_rtl_set_bbreg
	movq	_RF_CHNLBW@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_RFREG_OFFSET_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_rtl_get_rfreg
	movq	24(%r12), %rcx
	movq	%rax, (%rcx)
	movl	(%r14), %edx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rtl_get_rfreg
	movq	24(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	%r13, %r14
	movq	(%r13), %rax
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_RFPGA0_RFMOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BCCKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_rtl_set_bbreg
LBB0_10:
	movq	_RFPGA0_RFMOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BOFDMEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_rtl_set_bbreg
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	sete	%bl
	movq	_RFPGA0_ANALOGPARAMETER2@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%ebx, %edi
	xorl	$11, %edi
	orl	$10, %ebx
	callq	_BIT
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, %r14d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	$3, %ecx
	callq	_rtl_set_bbreg
	movq	%r15, %rdi
	callq	__rtl92de_hw_configure
	movq	%r15, %rdi
	callq	_rtl_cam_reset_all_entry
	movq	%r15, %rdi
	callq	_rtl92de_enable_hw_security_config
	movq	%r15, %rdi
	callq	_rtl92d_phy_get_hw_reg_originalvalue
	movl	16(%r12), %esi
	movq	%r15, %rdi
	callq	_rtl92d_phy_set_txpower_level
	movq	_ERFON@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_ETHER_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	%r15, %rdi
	callq	*(%rax)
	movq	%r15, %rdi
	callq	__rtl92de_enable_aspm_back_door
	movq	%r15, %rdi
	callq	_rtl92d_dm_init
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_16
## %bb.11:
	movq	%r15, %rdi
	callq	_rtl92d_phy_lc_calibrate
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	_DUALMAC_DUALPHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.12:
	movl	$10000, %r12d                   ## imm = 0x2710
	movq	_MASKDWORD@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_MAX_STALL_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udelay
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$42, %edx
	callq	_rtl_get_rfreg
	movq	%rax, %r14
	movl	$11, %edi
	callq	_BIT
	movl	%eax, %ebx
	andl	%r14d, %ebx
	movl	$11, %edi
	callq	_BIT
	cmpl	%eax, %ebx
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	decl	%r12d
	jne	LBB0_13
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 4(%rax)
	movl	$1, %eax
	jmp	LBB0_17
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 4(%rax)
	xorl	%eax, %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_globalmutex_for_power_and_efuse,4,2 ## @globalmutex_for_power_and_efuse
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Init MAC failed\n"

	.comm	_COMP_ERR,4,2                   ## @COMP_ERR
	.comm	_DBG_WARNING,4,2                ## @DBG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Failed to download FW. Init HW without FW..\n"

	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
L_.str.2:                               ## @.str.2
	.asciz	"EarlyMode Enabled!!!\n"

	.comm	_REG_RD_CTRL,4,2                ## @REG_RD_CTRL
	.comm	_REG_RD_NAV_NXT,4,2             ## @REG_RD_NAV_NXT
	.comm	_REG_RD_RESP_PKT_TH,4,2         ## @REG_RD_RESP_PKT_TH
	.comm	_REG_RCR,4,2                    ## @REG_RCR
	.comm	_RCR_ACRC32,4,2                 ## @RCR_ACRC32
	.comm	_RCR_AICV,4,2                   ## @RCR_AICV
	.comm	_RF_OP_BY_SW_3WIRE,4,2          ## @RF_OP_BY_SW_3WIRE
	.comm	_RFPGA0_ANALOGPARAMETER4,4,2    ## @RFPGA0_ANALOGPARAMETER4
	.comm	_RF_CHNLBW,4,2                  ## @RF_CHNLBW
	.comm	_RFREG_OFFSET_MASK,4,2          ## @RFREG_OFFSET_MASK
	.comm	_BAND_ON_2_4G,8,3               ## @BAND_ON_2_4G
	.comm	_RFPGA0_RFMOD,4,2               ## @RFPGA0_RFMOD
	.comm	_BCCKEN,4,2                     ## @BCCKEN
	.comm	_BOFDMEN,4,2                    ## @BOFDMEN
	.comm	_RFPGA0_ANALOGPARAMETER2,4,2    ## @RFPGA0_ANALOGPARAMETER2
	.comm	_ERFON,8,3                      ## @ERFON
	.comm	_HW_VAR_ETHER_ADDR,4,2          ## @HW_VAR_ETHER_ADDR
	.comm	_DUALMAC_DUALPHY,8,3            ## @DUALMAC_DUALPHY
	.comm	_MAX_STALL_TIME,4,2             ## @MAX_STALL_TIME
	.comm	_RF90_PATH_A,8,3                ## @RF90_PATH_A
	.comm	_MASKDWORD,4,2                  ## @MASKDWORD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function rtl92de_hw_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rtl92de_hw_init
	.p2align	2
_rtl92de_hw_init:                       ; @rtl92de_hw_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	bl	_rtl_priv
	mov	x22, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x23, x0
	mov	x0, x19
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x24, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
Lloh2:
	adrp	x0, _globalmutex_for_power_and_efuse@GOTPAGE
Lloh3:
	ldr	x0, [x0, _globalmutex_for_power_and_efuse@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_rtl92d_phy_reset_iqk_result
	mov	x0, x19
	bl	__rtl92de_init_mac
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_rtl92d_download_fw
	mov	x25, x0
Lloh4:
	adrp	x0, _globalmutex_for_power_and_efuse@GOTPAGE
Lloh5:
	ldr	x0, [x0, _globalmutex_for_power_and_efuse@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	cbz	w25, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x3, l_.str.1@PAGE
Lloh13:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_RT_TRACE
	mov	w0, #1
	b	LBB0_17
LBB0_3:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh16:
	adrp	x0, _globalmutex_for_power_and_efuse@GOTPAGE
Lloh17:
	ldr	x0, [x0, _globalmutex_for_power_and_efuse@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	w0, #1
	b	LBB0_17
LBB0_4:
	str	xzr, [x21, #32]
	str	wzr, [x22, #8]
	mov	x0, x22
	mov	w1, #1541
	bl	_rtl_read_byte
	orr	w2, w0, #0x30
	mov	x0, x22
	mov	w1, #1541
	bl	_rtl_write_byte
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x3, l_.str.2@PAGE
Lloh25:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_RT_TRACE
	mov	x0, x22
	mov	w1, #1232
	bl	_rtl_read_byte
	orr	w2, w0, #0x1f
	mov	x0, x22
	mov	w1, #1232
	bl	_rtl_write_byte
	mov	x0, x22
	mov	w1, #1235
	mov	w2, #128
	bl	_rtl_write_byte
	mov	x0, x22
	mov	w1, #1541
	bl	_rtl_read_byte
	orr	w2, w0, #0x40
	mov	x0, x22
	mov	w1, #1541
	bl	_rtl_write_byte
LBB0_6:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh26:
	adrp	x8, _REG_RD_CTRL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REG_RD_CTRL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #255
	bl	_rtl_write_byte
Lloh29:
	adrp	x8, _REG_RD_NAV_NXT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _REG_RD_NAV_NXT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #512
	bl	_rtl_write_word
Lloh32:
	adrp	x8, _REG_RD_RESP_PKT_TH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REG_RD_RESP_PKT_TH@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #5
	bl	_rtl_write_byte
LBB0_8:
	mov	x0, x19
	bl	_rtl92d_phy_mac_config
Lloh35:
	adrp	x8, _REG_RCR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _REG_RCR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rtl_read_dword
Lloh38:
	adrp	x8, _RCR_ACRC32@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RCR_ACRC32@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _RCR_AICV@GOTPAGE
Lloh42:
	ldr	x9, [x9, _RCR_AICV@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_rtl92d_phy_bb_config
Lloh44:
	adrp	x8, _RF_OP_BY_SW_3WIRE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _RF_OP_BY_SW_3WIRE@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	str	w8, [x22, #32]
Lloh47:
	adrp	x25, _RFPGA0_ANALOGPARAMETER4@GOTPAGE
Lloh48:
	ldr	x25, [x25, _RFPGA0_ANALOGPARAMETER4@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #15728640
	mov	w3, #15
	bl	_rtl_set_bbreg
	mov	x0, x19
	bl	_rtl92d_phy_rf_config
	mov	x0, x19
	bl	_rtl92d_update_bbrf_configuration
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #15728640
	mov	w3, #0
	bl	_rtl_set_bbreg
Lloh49:
	adrp	x25, _RF_CHNLBW@GOTPAGE
Lloh50:
	ldr	x25, [x25, _RF_CHNLBW@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh51:
	adrp	x26, _RFREG_OFFSET_MASK@GOTPAGE
Lloh52:
	ldr	x26, [x26, _RFREG_OFFSET_MASK@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x0, x19
	mov	w1, #0
	bl	_rtl_get_rfreg
	ldr	x8, [x22, #24]
	str	x0, [x8]
	ldr	w2, [x25]
	ldr	w3, [x26]
	mov	x0, x19
	mov	w1, #1
	bl	_rtl_get_rfreg
	ldr	x8, [x22, #24]
	str	x0, [x8, #8]
	ldr	x8, [x21]
Lloh53:
	adrp	x9, _BAND_ON_2_4G@GOTPAGE
Lloh54:
	ldr	x9, [x9, _BAND_ON_2_4G@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
Lloh56:
	adrp	x25, _RFPGA0_RFMOD@GOTPAGE
Lloh57:
	ldr	x25, [x25, _RFPGA0_RFMOD@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	w1, [x25]
Lloh58:
	adrp	x8, _BCCKEN@GOTPAGE
Lloh59:
	ldr	x8, [x8, _BCCKEN@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_rtl_set_bbreg
LBB0_10:
	ldr	w1, [x25]
Lloh61:
	adrp	x8, _BOFDMEN@GOTPAGE
Lloh62:
	ldr	x8, [x8, _BOFDMEN@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	w28, #1
	mov	x0, x19
	mov	w3, #1
	bl	_rtl_set_bbreg
Lloh64:
	adrp	x8, _RFPGA0_ANALOGPARAMETER2@GOTPAGE
Lloh65:
	ldr	x8, [x8, _RFPGA0_ANALOGPARAMETER2@GOTPAGEOFF]
	ldr	x9, [x21, #8]
Lloh66:
	ldr	w25, [x8]
	cmp	x9, #0
	mov	w8, #10
	cinc	w0, w8, ne
	cinc	w26, w8, eq
	bl	_BIT
	mov	x27, x0
	mov	x0, x26
	bl	_BIT
	orr	w2, w0, w27
	mov	x0, x19
	mov	x1, x25
	mov	w3, #3
	bl	_rtl_set_bbreg
	mov	x0, x19
	bl	__rtl92de_hw_configure
	mov	x0, x19
	bl	_rtl_cam_reset_all_entry
	mov	x0, x19
	bl	_rtl92de_enable_hw_security_config
	mov	x0, x19
	bl	_rtl92d_phy_get_hw_reg_originalvalue
	ldr	w1, [x22, #16]
	mov	x0, x19
	bl	_rtl92d_phy_set_txpower_level
Lloh67:
	adrp	x25, _ERFON@GOTPAGE
Lloh68:
	ldr	x25, [x25, _ERFON@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x24]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh69:
	adrp	x9, _HW_VAR_ETHER_ADDR@GOTPAGE
Lloh70:
	ldr	x9, [x9, _HW_VAR_ETHER_ADDR@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x9]
	ldr	w2, [x23]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	__rtl92de_enable_aspm_back_door
	mov	x0, x19
	bl	_rtl92d_dm_init
	str	wzr, [x20]
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.11:
	mov	x0, x19
	bl	_rtl92d_phy_lc_calibrate
	ldr	x8, [x21, #16]
Lloh72:
	adrp	x9, _DUALMAC_DUALPHY@GOTPAGE
Lloh73:
	ldr	x9, [x9, _DUALMAC_DUALPHY@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.12:
	mov	w22, #10000
Lloh75:
	adrp	x23, _MAX_STALL_TIME@GOTPAGE
Lloh76:
	ldr	x23, [x23, _MAX_STALL_TIME@GOTPAGEOFF]
Lloh77:
	adrp	x24, _RF90_PATH_A@GOTPAGE
Lloh78:
	ldr	x24, [x24, _RF90_PATH_A@GOTPAGEOFF]
Lloh79:
	adrp	x25, _MASKDWORD@GOTPAGE
Lloh80:
	ldr	x25, [x25, _MASKDWORD@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_udelay
	ldr	w1, [x24]
	ldr	w3, [x25]
	mov	x0, x19
	mov	w2, #42
	bl	_rtl_get_rfreg
	mov	x21, x0
	mov	w0, #11
	bl	_BIT
	and	w21, w0, w21
	mov	w0, #11
	bl	_BIT
	cmp	w21, w0
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	subs	w22, w22, #1
	b.ne	LBB0_13
; %bb.15:
	str	wzr, [x20, #4]
	mov	w0, #1
	b	LBB0_17
LBB0_16:
	mov	w0, #0
	str	w28, [x20, #4]
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_globalmutex_for_power_and_efuse,4,2 ; @globalmutex_for_power_and_efuse
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Init MAC failed\n"

	.comm	_COMP_ERR,4,2                   ; @COMP_ERR
	.comm	_DBG_WARNING,4,2                ; @DBG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Failed to download FW. Init HW without FW..\n"

	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
l_.str.2:                               ; @.str.2
	.asciz	"EarlyMode Enabled!!!\n"

	.comm	_REG_RD_CTRL,4,2                ; @REG_RD_CTRL
	.comm	_REG_RD_NAV_NXT,4,2             ; @REG_RD_NAV_NXT
	.comm	_REG_RD_RESP_PKT_TH,4,2         ; @REG_RD_RESP_PKT_TH
	.comm	_REG_RCR,4,2                    ; @REG_RCR
	.comm	_RCR_ACRC32,4,2                 ; @RCR_ACRC32
	.comm	_RCR_AICV,4,2                   ; @RCR_AICV
	.comm	_RF_OP_BY_SW_3WIRE,4,2          ; @RF_OP_BY_SW_3WIRE
	.comm	_RFPGA0_ANALOGPARAMETER4,4,2    ; @RFPGA0_ANALOGPARAMETER4
	.comm	_RF_CHNLBW,4,2                  ; @RF_CHNLBW
	.comm	_RFREG_OFFSET_MASK,4,2          ; @RFREG_OFFSET_MASK
	.comm	_BAND_ON_2_4G,8,3               ; @BAND_ON_2_4G
	.comm	_RFPGA0_RFMOD,4,2               ; @RFPGA0_RFMOD
	.comm	_BCCKEN,4,2                     ; @BCCKEN
	.comm	_BOFDMEN,4,2                    ; @BOFDMEN
	.comm	_RFPGA0_ANALOGPARAMETER2,4,2    ; @RFPGA0_ANALOGPARAMETER2
	.comm	_ERFON,8,3                      ; @ERFON
	.comm	_HW_VAR_ETHER_ADDR,4,2          ; @HW_VAR_ETHER_ADDR
	.comm	_DUALMAC_DUALPHY,8,3            ; @DUALMAC_DUALPHY
	.comm	_MAX_STALL_TIME,4,2             ; @MAX_STALL_TIME
	.comm	_RF90_PATH_A,8,3                ; @RF90_PATH_A
	.comm	_MASKDWORD,4,2                  ; @MASKDWORD
.subsections_via_symbols
