	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88ee_hw_init                ## -- Begin function rtl88ee_hw_init
	.p2align	4, 0x90
_rtl88ee_hw_init:                       ## @rtl88ee_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, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, (%r14)
	callq	_local_save_flags
	xorl	%eax, %eax
	callq	_local_irq_enable
	movl	$0, (%r15)
	movq	16(%r14), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	_REG_SYS_CLKR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%esi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r13d
	movq	_REG_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r12d
	movl	$3, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_3
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movl	$1, %eax
	cmpl	$234, %r12d
	jne	LBB0_4
LBB0_3:
	movq	_FW_PS_STATE_ALL_ON_88E@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, 4(%r15)
	movq	%rbx, %rdi
	callq	__rtl88ee_init_mac
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rtl88e_download_fw
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	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
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_8:
	movl	$1, (%r15)
	movq	$0, 32(%r15)
	movq	_FW_PS_STATE_ALL_ON_88E@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movq	$0, 8(%r15)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	$0, (%r13)
	movq	%rbx, %rdi
	callq	_rtl88e_phy_mac_config
	movq	_RCR_ACRC32@GOTPCREL(%rip), %rax
	movq	_RCR_AICV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	andl	(%rax), %edx
	movl	%edx, (%rax)
	movq	_REG_RCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtl_write_dword
	movq	%rbx, %rdi
	callq	_rtl88e_phy_bb_config
	movq	_RFPGA0_RFMOD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_BCCKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_rtl_set_bbreg
	movl	(%r12), %esi
	movq	_BOFDMEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_rtl_set_bbreg
	movq	_RF_OP_BY_SW_3WIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movq	%rbx, %rdi
	callq	_rtl88e_phy_rf_config
	movq	_RF_CHNLBW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RFREG_OFFSET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rtl_get_rfreg
	movq	32(%r14), %rcx
	andl	$-1044481, %eax                 ## imm = 0xFFF00FFF
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	__rtl88ee_hw_configure
	movq	%rbx, %rdi
	callq	_rtl_cam_reset_all_entry
	movq	%rbx, %rdi
	callq	_rtl88ee_enable_hw_security_config
	movl	$1, 4(%r15)
	movq	_ERFON@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, 8(%r13)
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_ETHER_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	__rtl88ee_enable_aspm_back_door
	movq	16(%r14), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	8(%r13), %rax
	cmpq	(%r12), %rax
	jne	LBB0_18
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_CGCS_RX_HW_ANTDIV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	_CG_TRX_HW_ANTDIV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	16(%r15), %rax
	movq	_RT_CID_819X_HP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_12:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rtl88e_phy_set_rfpath_switch
	movq	_MAIN_ANT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	%rax, %rcx
	jmp	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rtl88e_phy_set_rfpath_switch
	movq	_AUX_ANT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%r14)
	movq	_MAIN_ANT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_14:
	movq	_COMP_INIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	%rax, %rcx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpl	$0, 40(%r14)
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rtl88e_phy_iq_calibrate
	jmp	LBB0_17
LBB0_16:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rtl88e_phy_iq_calibrate
	movl	$1, 40(%r14)
LBB0_17:
	movq	%rbx, %rdi
	callq	_rtl88e_dm_check_txpower_tracking
	movq	%rbx, %rdi
	callq	_rtl88e_phy_lc_calibrate
LBB0_18:
	movq	%rbx, %rdi
	movl	$506, %esi                      ## imm = 0x1FA
	callq	_efuse_read_1byte
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_BIT
	testl	%r15d, %eax
	jne	LBB0_20
## %bb.19:
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$21, %edx
	movl	$15, %ecx
	movl	$5, %r8d
	callq	_rtl_set_rfreg
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_20:
	movl	$4, %edi
	callq	_BIT
	testl	%r15d, %eax
	jne	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	movl	$22, %esi
	callq	_rtl_read_byte
	movl	%eax, %r15d
	andl	$15, %r15d
	leal	128(%r15), %edx
	movq	%r14, %rdi
	movl	$22, %esi
	callq	_rtl_write_byte
	movl	$10, %edi
	callq	_udelay
	orl	$144, %r15d
	movq	%r14, %rdi
	movl	$22, %esi
	movl	%r15d, %edx
	callq	_rtl_write_byte
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_22:
	movq	_REG_NAV_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$2, %esi
	movq	%r14, %rdi
	movl	$235, %edx
	callq	_rtl_write_byte
	movq	%rbx, %rdi
	callq	_rtl88e_dm_init
	xorl	%ebx, %ebx
LBB0_23:
	callq	_local_irq_restore
	movl	$0, (%r14)
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SYS_CLKR,4,2               ## @REG_SYS_CLKR
	.comm	_REG_CR,4,2                     ## @REG_CR
	.comm	_FW_PS_STATE_ALL_ON_88E,8,3     ## @FW_PS_STATE_ALL_ON_88E
	.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 now..\n"

	.comm	_RCR_ACRC32,4,2                 ## @RCR_ACRC32
	.comm	_RCR_AICV,4,2                   ## @RCR_AICV
	.comm	_REG_RCR,4,2                    ## @REG_RCR
	.comm	_RFPGA0_RFMOD,4,2               ## @RFPGA0_RFMOD
	.comm	_BCCKEN,4,2                     ## @BCCKEN
	.comm	_BOFDMEN,4,2                    ## @BOFDMEN
	.comm	_RF_OP_BY_SW_3WIRE,4,2          ## @RF_OP_BY_SW_3WIRE
	.comm	_RF_CHNLBW,4,2                  ## @RF_CHNLBW
	.comm	_RFREG_OFFSET_MASK,4,2          ## @RFREG_OFFSET_MASK
	.comm	_ERFON,8,3                      ## @ERFON
	.comm	_HW_VAR_ETHER_ADDR,4,2          ## @HW_VAR_ETHER_ADDR
	.comm	_CGCS_RX_HW_ANTDIV,8,3          ## @CGCS_RX_HW_ANTDIV
	.comm	_CG_TRX_HW_ANTDIV,8,3           ## @CG_TRX_HW_ANTDIV
	.comm	_RT_CID_819X_HP,8,3             ## @RT_CID_819X_HP
	.comm	_MAIN_ANT,8,3                   ## @MAIN_ANT
	.comm	_AUX_ANT,8,3                    ## @AUX_ANT
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
L_.str.2:                               ## @.str.2
	.asciz	"rx idle ant %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"MAIN_ANT"

L_.str.4:                               ## @.str.4
	.asciz	"AUX_ANT"

	.comm	_RF90_PATH_A,4,2                ## @RF90_PATH_A
L_.str.5:                               ## @.str.5
	.asciz	"PA BIAS path A\n"

L_.str.6:                               ## @.str.6
	.asciz	"under 1.5V\n"

	.comm	_REG_NAV_CTRL,4,2               ## @REG_NAV_CTRL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88ee_hw_init                ; -- Begin function rtl88ee_hw_init
	.p2align	2
_rtl88ee_hw_init:                       ; @rtl88ee_hw_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	x21, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x23, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x22, x0
	mov	x0, x20
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x25, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_efuse
	mov	x24, x0
	mov	w28, #1
	str	w28, [x19]
	bl	_local_save_flags
	bl	_local_irq_enable
	str	wzr, [x21]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
Lloh0:
	adrp	x8, _REG_SYS_CLKR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SYS_CLKR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w1, w8, #1
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x27, x0
Lloh3:
	adrp	x8, _REG_CR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_CR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x26, x0
	mov	w0, #3
	bl	_BIT
	and	w8, w0, w27
	cmp	w8, #0
	ccmp	w26, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	cmp	w26, #234
	b.ne	LBB0_3
LBB0_2:
	mov	w28, #0
Lloh6:
	adrp	x8, _FW_PS_STATE_ALL_ON_88E@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_PS_STATE_ALL_ON_88E@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x21, #24]
LBB0_3:
	str	w28, [x21, #4]
	mov	x0, x20
	bl	__rtl88ee_init_mac
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	bl	_rtl88e_download_fw
	cbz	w0, LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x3, l_.str.1@PAGE
Lloh16:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	w20, #1
	b	LBB0_22
LBB0_6:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	w20, #1
	b	LBB0_22
LBB0_7:
	mov	w26, #1
	str	w26, [x21]
Lloh19:
	adrp	x8, _FW_PS_STATE_ALL_ON_88E@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FW_PS_STATE_ALL_ON_88E@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	stp	x8, xzr, [x21, #24]
	str	xzr, [x21, #8]
	str	wzr, [x22]
	mov	x0, x20
	bl	_rtl88e_phy_mac_config
Lloh22:
	adrp	x8, _RCR_ACRC32@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RCR_ACRC32@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _RCR_AICV@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RCR_AICV@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x25]
	bic	w2, w9, w8
	str	w2, [x25]
Lloh28:
	adrp	x8, _REG_RCR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _REG_RCR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_write_dword
	mov	x0, x20
	bl	_rtl88e_phy_bb_config
Lloh31:
	adrp	x25, _RFPGA0_RFMOD@GOTPAGE
Lloh32:
	ldr	x25, [x25, _RFPGA0_RFMOD@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh33:
	adrp	x8, _BCCKEN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BCCKEN@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_rtl_set_bbreg
	ldr	w1, [x25]
Lloh36:
	adrp	x8, _BOFDMEN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BOFDMEN@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_rtl_set_bbreg
Lloh39:
	adrp	x8, _RF_OP_BY_SW_3WIRE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RF_OP_BY_SW_3WIRE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	mov	x0, x20
	bl	_rtl88e_phy_rf_config
Lloh42:
	adrp	x8, _RF_CHNLBW@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RF_CHNLBW@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
Lloh45:
	adrp	x8, _RFREG_OFFSET_MASK@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RFREG_OFFSET_MASK@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_rtl_get_rfreg
	ldr	x8, [x19, #32]
	and	w9, w0, #0xfff00fff
	str	w9, [x8]
	mov	x0, x20
	bl	__rtl88ee_hw_configure
	mov	x0, x20
	bl	_rtl_cam_reset_all_entry
	mov	x0, x20
	bl	_rtl88ee_enable_hw_security_config
	str	w26, [x21, #4]
Lloh48:
	adrp	x25, _ERFON@GOTPAGE
Lloh49:
	ldr	x25, [x25, _ERFON@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x22, #8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh50:
	adrp	x9, _HW_VAR_ETHER_ADDR@GOTPAGE
Lloh51:
	ldr	x9, [x9, _HW_VAR_ETHER_ADDR@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x9]
	ldr	w2, [x23]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	__rtl88ee_enable_aspm_back_door
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	ldr	x8, [x22, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.8:
	ldr	x8, [x24]
Lloh53:
	adrp	x9, _CGCS_RX_HW_ANTDIV@GOTPAGE
Lloh54:
	ldr	x9, [x9, _CGCS_RX_HW_ANTDIV@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.9:
Lloh56:
	adrp	x9, _CG_TRX_HW_ANTDIV@GOTPAGE
Lloh57:
	ldr	x9, [x9, _CG_TRX_HW_ANTDIV@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x21, #16]
Lloh59:
	adrp	x9, _RT_CID_819X_HP@GOTPAGE
Lloh60:
	ldr	x9, [x9, _RT_CID_819X_HP@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_11:
	mov	x0, x20
	mov	w1, #1
	bl	_rtl88e_phy_set_rfpath_switch
Lloh62:
	adrp	x8, _MAIN_ANT@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MAIN_ANT@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x9, x8
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	mov	w1, #0
	bl	_rtl88e_phy_set_rfpath_switch
Lloh65:
	adrp	x8, _AUX_ANT@GOTPAGE
Lloh66:
	ldr	x8, [x8, _AUX_ANT@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x8]
	str	x9, [x19, #8]
Lloh68:
	adrp	x8, _MAIN_ANT@GOTPAGE
Lloh69:
	ldr	x8, [x8, _MAIN_ANT@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
LBB0_13:
Lloh71:
	adrp	x10, _COMP_INIT@GOTPAGE
Lloh72:
	ldr	x10, [x10, _COMP_INIT@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x10]
Lloh74:
	adrp	x10, _DBG_LOUD@GOTPAGE
Lloh75:
	ldr	x10, [x10, _DBG_LOUD@GOTPAGEOFF]
Lloh76:
	ldr	w2, [x10]
Lloh77:
	adrp	x10, l_.str.4@PAGE
Lloh78:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh79:
	adrp	x11, l_.str.3@PAGE
Lloh80:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	x9, x8
	csel	x8, x11, x10, eq
	str	x8, [sp]
Lloh81:
	adrp	x3, l_.str.2@PAGE
Lloh82:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_15
; %bb.14:
	mov	x0, x20
	mov	w1, #1
	bl	_rtl88e_phy_iq_calibrate
	b	LBB0_16
LBB0_15:
	mov	x0, x20
	mov	w1, #0
	bl	_rtl88e_phy_iq_calibrate
	mov	w8, #1
	str	w8, [x19, #40]
LBB0_16:
	mov	x0, x20
	bl	_rtl88e_dm_check_txpower_tracking
	mov	x0, x20
	bl	_rtl88e_phy_lc_calibrate
LBB0_17:
	mov	x0, x20
	mov	w1, #506
	bl	_efuse_read_1byte
	mov	x21, x0
	mov	w0, #0
	bl	_BIT
	tst	w0, w21
	b.ne	LBB0_19
; %bb.18:
Lloh83:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh84:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh85:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #21
	mov	w3, #15
	mov	w4, #5
	bl	_rtl_set_rfreg
Lloh86:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh87:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
Lloh89:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh90:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh91:
	ldr	w2, [x8]
Lloh92:
	adrp	x3, l_.str.5@PAGE
Lloh93:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
LBB0_19:
	mov	w0, #4
	bl	_BIT
	tst	w0, w21
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x19
	mov	w1, #22
	bl	_rtl_read_byte
	mov	x21, x0
	mov	w2, #128
	bfxil	w2, w0, #0, #4
	mov	x0, x19
	mov	w1, #22
	bl	_rtl_write_byte
	mov	w0, #10
	bl	_udelay
	mov	w2, #144
	bfxil	w2, w21, #0, #4
	mov	x0, x19
	mov	w1, #22
	bl	_rtl_write_byte
Lloh94:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh95:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
Lloh97:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh98:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh99:
	ldr	w2, [x8]
Lloh100:
	adrp	x3, l_.str.6@PAGE
Lloh101:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
LBB0_21:
Lloh102:
	adrp	x8, _REG_NAV_CTRL@GOTPAGE
Lloh103:
	ldr	x8, [x8, _REG_NAV_CTRL@GOTPAGEOFF]
Lloh104:
	ldr	w8, [x8]
	add	w1, w8, #2
	mov	x0, x19
	mov	w2, #235
	bl	_rtl_write_byte
	mov	x0, x20
	bl	_rtl88e_dm_init
	mov	w20, #0
LBB0_22:
	bl	_local_irq_restore
	str	wzr, [x19]
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SYS_CLKR,4,2               ; @REG_SYS_CLKR
	.comm	_REG_CR,4,2                     ; @REG_CR
	.comm	_FW_PS_STATE_ALL_ON_88E,8,3     ; @FW_PS_STATE_ALL_ON_88E
	.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 now..\n"

	.comm	_RCR_ACRC32,4,2                 ; @RCR_ACRC32
	.comm	_RCR_AICV,4,2                   ; @RCR_AICV
	.comm	_REG_RCR,4,2                    ; @REG_RCR
	.comm	_RFPGA0_RFMOD,4,2               ; @RFPGA0_RFMOD
	.comm	_BCCKEN,4,2                     ; @BCCKEN
	.comm	_BOFDMEN,4,2                    ; @BOFDMEN
	.comm	_RF_OP_BY_SW_3WIRE,4,2          ; @RF_OP_BY_SW_3WIRE
	.comm	_RF_CHNLBW,4,2                  ; @RF_CHNLBW
	.comm	_RFREG_OFFSET_MASK,4,2          ; @RFREG_OFFSET_MASK
	.comm	_ERFON,8,3                      ; @ERFON
	.comm	_HW_VAR_ETHER_ADDR,4,2          ; @HW_VAR_ETHER_ADDR
	.comm	_CGCS_RX_HW_ANTDIV,8,3          ; @CGCS_RX_HW_ANTDIV
	.comm	_CG_TRX_HW_ANTDIV,8,3           ; @CG_TRX_HW_ANTDIV
	.comm	_RT_CID_819X_HP,8,3             ; @RT_CID_819X_HP
	.comm	_MAIN_ANT,8,3                   ; @MAIN_ANT
	.comm	_AUX_ANT,8,3                    ; @AUX_ANT
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
l_.str.2:                               ; @.str.2
	.asciz	"rx idle ant %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"MAIN_ANT"

l_.str.4:                               ; @.str.4
	.asciz	"AUX_ANT"

	.comm	_RF90_PATH_A,4,2                ; @RF90_PATH_A
l_.str.5:                               ; @.str.5
	.asciz	"PA BIAS path A\n"

l_.str.6:                               ; @.str.6
	.asciz	"under 1.5V\n"

	.comm	_REG_NAV_CTRL,4,2               ; @REG_NAV_CTRL
.subsections_via_symbols
