	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92ce_hw_init                ## -- Begin function rtl92ce_hw_init
	.p2align	4, 0x90
_rtl92ce_hw_init:                       ## @rtl92ce_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, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1, (%r14)
	callq	_local_save_flags
	xorl	%eax, %eax
	callq	_local_irq_enable
	movl	$0, (%r12)
	movq	(%r15), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	%rbx, %rdi
	callq	__rtl92ce_init_mac
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_rtl92c_download_fw
	testl	%eax, %eax
	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	%r15, %rdi
	callq	_RT_TRACE
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_4:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	$1, (%r12)
	movq	$0, 8(%r12)
	movq	%rbx, %rdi
	callq	_rtl92c_phy_mac_config
	movq	_REG_RCR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %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
	movl	%edx, 4(%r14)
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_rtl_write_dword
	movq	%rbx, %rdi
	callq	_rtl92c_phy_bb_config
	movq	_RF_OP_BY_SW_3WIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	%rbx, %rdi
	callq	_rtl92c_phy_rf_config
	movl	4(%r12), %edi
	callq	_IS_VENDOR_UMC_A_CUT
	testq	%rax, %rax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.5:
	movl	4(%r12), %edi
	callq	_IS_92C_SERIAL
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movl	4(%r12), %edi
	callq	_IS_81XXC_VENDOR_UMC_B_CUT
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_RF90_PATH_A@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MASKDWORD@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	$12, %edx
	movl	$562350, %r8d                   ## imm = 0x894AE
	callq	_rtl_set_rfreg
	movl	(%r13), %esi
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	$10, %edx
	movl	$110385, %r8d                   ## imm = 0x1AF31
	callq	_rtl_set_rfreg
	movl	(%r13), %esi
	movq	_RF_IPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	$586789, %r8d                   ## imm = 0x8F425
	callq	_rtl_set_rfreg
	movl	(%r13), %esi
	movq	_RF_SYN_G2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	$324096, %r8d                   ## imm = 0x4F200
	callq	_rtl_set_rfreg
	movl	$524801, -44(%rbp)              ## 4-byte Folded Spill
                                        ## imm = 0x80201
	movq	_RF_RCK2@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$278611, %r8d                   ## imm = 0x44053
	movq	_RF_RCK1@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movl	$330240, -44(%rbp)              ## 4-byte Folded Spill
                                        ## imm = 0x50A00
	movq	_RF_RX_G2@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$197205, %r8d                   ## imm = 0x30255
	movq	_RF_RX_G1@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_RF90_PATH_A@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%rax), %edx
	movq	_MASKDWORD@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	callq	_rtl_set_rfreg
	movl	(%r13), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_rtl_set_rfreg
LBB0_10:
	movq	_RF_CHNLBW@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_RFREG_OFFSET_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rtl_get_rfreg
	movq	24(%r15), %rcx
	movq	%rax, (%rcx)
	movl	(%r14), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rtl_get_rfreg
	movq	24(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	_RFPGA0_RFMOD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_BCCKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_rtl_set_bbreg
	movl	(%r14), %esi
	movq	_BOFDMEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_rtl_set_bbreg
	movq	_RFPGA0_ANALOGPARAMETER2@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$10, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtl_set_bbreg
	movq	%rbx, %rdi
	callq	__rtl92ce_hw_configure
	movq	%rbx, %rdi
	callq	_rtl_cam_reset_all_entry
	movq	%rbx, %rdi
	callq	_rtl92ce_enable_hw_security_config
	movq	_ERFON@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, (%r13)
	movq	8(%r15), %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	__rtl92ce_enable_aspm_back_door
	movq	(%r15), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_rtl8192ce_bt_hw_init
	movq	(%r13), %rax
	cmpq	(%r14), %rax
	jne	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rtl92c_phy_set_rfpath_switch
	cmpl	$0, 16(%r15)
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rtl92c_phy_iq_calibrate
	jmp	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rtl92c_phy_iq_calibrate
	movl	$1, 16(%r15)
LBB0_14:
	movq	%rbx, %rdi
	callq	_rtl92c_dm_check_txpower_tracking
	movq	%rbx, %rdi
	callq	_rtl92c_phy_lc_calibrate
LBB0_15:
	movl	4(%r12), %edi
	callq	_IS_92C_SERIAL
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	$506, %esi                      ## imm = 0x1FA
	callq	_efuse_read_1byte
	movl	%eax, %r12d
	xorl	%edi, %edi
	callq	_BIT
	testl	%r12d, %eax
	jne	LBB0_17
## %bb.16:
	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_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
LBB0_17:
	movl	$1, %edi
	callq	_BIT
	testl	%r12d, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_20
## %bb.18:
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.19:
	movq	_RF90_PATH_B@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_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
LBB0_20:
	movl	$4, %edi
	callq	_BIT
	testl	%r12d, %eax
	jne	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	movl	$22, %esi
	callq	_rtl_read_byte
	movl	%eax, %r12d
	andl	$15, %r12d
	leal	128(%r12), %edx
	movq	%r15, %rdi
	movl	$22, %esi
	callq	_rtl_write_byte
	movl	$10, %edi
	callq	_udelay
	orl	$144, %r12d
	movq	%r15, %rdi
	movl	$22, %esi
	movl	%r12d, %edx
	callq	_rtl_write_byte
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
LBB0_22:
	movq	%rbx, %rdi
	callq	_rtl92c_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
	.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	_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	_RF90_PATH_A,4,2                ## @RF90_PATH_A
	.comm	_RF_RX_G1,4,2                   ## @RF_RX_G1
	.comm	_MASKDWORD,4,2                  ## @MASKDWORD
	.comm	_RF_RX_G2,4,2                   ## @RF_RX_G2
	.comm	_RF_IPA,4,2                     ## @RF_IPA
	.comm	_RF_SYN_G2,4,2                  ## @RF_SYN_G2
	.comm	_RF_RCK1,4,2                    ## @RF_RCK1
	.comm	_RF_RCK2,4,2                    ## @RF_RCK2
	.comm	_RF_CHNLBW,4,2                  ## @RF_CHNLBW
	.comm	_RFREG_OFFSET_MASK,4,2          ## @RFREG_OFFSET_MASK
	.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	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
L_.str.2:                               ## @.str.2
	.asciz	"PA BIAS path A\n"

	.comm	_RF90_PATH_B,4,2                ## @RF90_PATH_B
L_.str.3:                               ## @.str.3
	.asciz	"PA BIAS path B\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92ce_hw_init                ; -- Begin function rtl92ce_hw_init
	.p2align	2
_rtl92ce_hw_init:                       ; @rtl92ce_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	x20, x0
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x22, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x23, x0
	mov	x0, x20
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x24, x0
	mov	w8, #1
	str	w8, [x19]
	bl	_local_save_flags
	bl	_local_irq_enable
	str	wzr, [x22]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	__rtl92ce_init_mac
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_rtl92c_download_fw
	cbz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
	mov	w20, #1
	b	LBB0_23
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	w20, #1
	b	LBB0_23
LBB0_4:
	mov	w8, #1
	str	w8, [x22]
	str	xzr, [x22, #8]
	mov	x0, x20
	bl	_rtl92c_phy_mac_config
Lloh10:
	adrp	x25, _REG_RCR@GOTPAGE
Lloh11:
	ldr	x25, [x25, _REG_RCR@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x21
	bl	_rtl_read_dword
Lloh12:
	adrp	x8, _RCR_ACRC32@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RCR_ACRC32@GOTPAGEOFF]
Lloh14:
	adrp	x9, _RCR_AICV@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RCR_AICV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	str	w2, [x19, #4]
	ldr	w1, [x25]
	mov	x0, x21
	bl	_rtl_write_dword
	mov	x0, x20
	bl	_rtl92c_phy_bb_config
Lloh18:
	adrp	x8, _RF_OP_BY_SW_3WIRE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RF_OP_BY_SW_3WIRE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	mov	x0, x20
	bl	_rtl92c_phy_rf_config
	ldr	w0, [x22, #4]
	bl	_IS_VENDOR_UMC_A_CUT
Lloh21:
	adrp	x26, _RF90_PATH_A@GOTPAGE
Lloh22:
	ldr	x26, [x26, _RF90_PATH_A@GOTPAGEOFF]
Lloh23:
	adrp	x27, _MASKDWORD@GOTPAGE
Lloh24:
	ldr	x27, [x27, _MASKDWORD@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x22, #4]
	bl	_IS_92C_SERIAL
	cbz	w0, LBB0_8
LBB0_6:
	ldr	w0, [x22, #4]
	bl	_IS_81XXC_VENDOR_UMC_B_CUT
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w1, [x26]
	ldr	w3, [x27]
	mov	x0, x20
	mov	w2, #12
	mov	w4, #38062
	movk	w4, #8, lsl #16
	bl	_rtl_set_rfreg
	ldr	w1, [x26]
	ldr	w3, [x27]
	mov	x0, x20
	mov	w2, #10
	mov	w4, #44849
	movk	w4, #1, lsl #16
	bl	_rtl_set_rfreg
	ldr	w1, [x26]
Lloh25:
	adrp	x8, _RF_IPA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RF_IPA@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	ldr	w3, [x27]
	mov	x0, x20
	mov	w4, #62501
	movk	w4, #8, lsl #16
	bl	_rtl_set_rfreg
	ldr	w1, [x26]
Lloh28:
	adrp	x8, _RF_SYN_G2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RF_SYN_G2@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	ldr	w3, [x27]
	mov	x0, x20
	mov	w4, #61952
	movk	w4, #4, lsl #16
	bl	_rtl_set_rfreg
	mov	w25, #513
	movk	w25, #8, lsl #16
Lloh31:
	adrp	x28, _RF_RCK2@GOTPAGE
Lloh32:
	ldr	x28, [x28, _RF_RCK2@GOTPAGEOFF]
	mov	w4, #16467
	movk	w4, #4, lsl #16
Lloh33:
	adrp	x8, _RF_RCK1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RF_RCK1@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	w25, #2560
	movk	w25, #5, lsl #16
Lloh35:
	adrp	x28, _RF_RX_G2@GOTPAGE
Lloh36:
	ldr	x28, [x28, _RF_RX_G2@GOTPAGEOFF]
	mov	w4, #597
	movk	w4, #3, lsl #16
Lloh37:
	adrp	x8, _RF_RX_G1@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RF_RX_G1@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x26]
	ldr	w2, [x8]
	ldr	w3, [x27]
	mov	x0, x20
	bl	_rtl_set_rfreg
	ldr	w1, [x26]
	ldr	w2, [x28]
	ldr	w3, [x27]
	mov	x0, x20
	mov	x4, x25
	bl	_rtl_set_rfreg
LBB0_10:
Lloh39:
	adrp	x25, _RF_CHNLBW@GOTPAGE
Lloh40:
	ldr	x25, [x25, _RF_CHNLBW@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh41:
	adrp	x27, _RFREG_OFFSET_MASK@GOTPAGE
Lloh42:
	ldr	x27, [x27, _RFREG_OFFSET_MASK@GOTPAGEOFF]
	ldr	w3, [x27]
	mov	x0, x20
	mov	w1, #0
	bl	_rtl_get_rfreg
	ldr	x8, [x21, #24]
	str	x0, [x8]
	ldr	w2, [x25]
	ldr	w3, [x27]
	mov	x0, x20
	mov	w1, #1
	bl	_rtl_get_rfreg
	ldr	x8, [x21, #24]
	str	x0, [x8, #8]
Lloh43:
	adrp	x25, _RFPGA0_RFMOD@GOTPAGE
Lloh44:
	ldr	x25, [x25, _RFPGA0_RFMOD@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh45:
	adrp	x8, _BCCKEN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BCCKEN@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_rtl_set_bbreg
	ldr	w1, [x25]
Lloh48:
	adrp	x8, _BOFDMEN@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BOFDMEN@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_rtl_set_bbreg
Lloh51:
	adrp	x8, _RFPGA0_ANALOGPARAMETER2@GOTPAGE
Lloh52:
	ldr	x8, [x8, _RFPGA0_ANALOGPARAMETER2@GOTPAGEOFF]
Lloh53:
	ldr	w25, [x8]
	mov	w0, #10
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x25
	mov	w3, #1
	bl	_rtl_set_bbreg
	mov	x0, x20
	bl	__rtl92ce_hw_configure
	mov	x0, x20
	bl	_rtl_cam_reset_all_entry
	mov	x0, x20
	bl	_rtl92ce_enable_hw_security_config
Lloh54:
	adrp	x25, _ERFON@GOTPAGE
Lloh55:
	ldr	x25, [x25, _ERFON@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x24]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh56:
	adrp	x9, _HW_VAR_ETHER_ADDR@GOTPAGE
Lloh57:
	ldr	x9, [x9, _HW_VAR_ETHER_ADDR@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x9]
	ldr	w2, [x23]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	__rtl92ce_enable_aspm_back_door
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	_rtl8192ce_bt_hw_init
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.11:
	mov	w23, #1
	mov	x0, x20
	mov	w1, #1
	bl	_rtl92c_phy_set_rfpath_switch
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	w1, #1
	bl	_rtl92c_phy_iq_calibrate
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	mov	w1, #0
	bl	_rtl92c_phy_iq_calibrate
	str	w23, [x21, #16]
LBB0_14:
	mov	x0, x20
	bl	_rtl92c_dm_check_txpower_tracking
	mov	x0, x20
	bl	_rtl92c_phy_lc_calibrate
LBB0_15:
	ldr	w0, [x22, #4]
	bl	_IS_92C_SERIAL
	mov	x23, x0
	mov	x0, x20
	mov	w1, #506
	bl	_efuse_read_1byte
	mov	x22, x0
	mov	w0, #0
	bl	_BIT
	tst	w0, w22
	b.ne	LBB0_17
; %bb.16:
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #21
	mov	w3, #15
	mov	w4, #5
	bl	_rtl_set_rfreg
Lloh59:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh60:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
Lloh62:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh64:
	ldr	w2, [x8]
Lloh65:
	adrp	x3, l_.str.2@PAGE
Lloh66:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
LBB0_17:
	mov	w0, #1
	bl	_BIT
	tst	w0, w22
	b.ne	LBB0_20
; %bb.18:
	cbz	w23, LBB0_20
; %bb.19:
Lloh67:
	adrp	x8, _RF90_PATH_B@GOTPAGE
Lloh68:
	ldr	x8, [x8, _RF90_PATH_B@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #21
	mov	w3, #15
	mov	w4, #5
	bl	_rtl_set_rfreg
Lloh70:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh71:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
Lloh73:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh74:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
Lloh76:
	adrp	x3, l_.str.3@PAGE
Lloh77:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
LBB0_20:
	mov	w0, #4
	bl	_BIT
	tst	w0, w22
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x21
	mov	w1, #22
	bl	_rtl_read_byte
	mov	x22, x0
	mov	w2, #128
	bfxil	w2, w0, #0, #4
	mov	x0, x21
	mov	w1, #22
	bl	_rtl_write_byte
	mov	w0, #10
	bl	_udelay
	mov	w2, #144
	bfxil	w2, w22, #0, #4
	mov	x0, x21
	mov	w1, #22
	bl	_rtl_write_byte
Lloh78:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh79:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
Lloh81:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh82:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh83:
	ldr	w2, [x8]
Lloh84:
	adrp	x3, l_.str.4@PAGE
Lloh85:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
LBB0_22:
	mov	x0, x20
	bl	_rtl92c_dm_init
	mov	w20, #0
LBB0_23:
	bl	_local_irq_restore
	str	wzr, [x19]
	mov	x0, x20
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.cfi_endproc
                                        ; -- End function
	.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	_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	_RF90_PATH_A,4,2                ; @RF90_PATH_A
	.comm	_RF_RX_G1,4,2                   ; @RF_RX_G1
	.comm	_MASKDWORD,4,2                  ; @MASKDWORD
	.comm	_RF_RX_G2,4,2                   ; @RF_RX_G2
	.comm	_RF_IPA,4,2                     ; @RF_IPA
	.comm	_RF_SYN_G2,4,2                  ; @RF_SYN_G2
	.comm	_RF_RCK1,4,2                    ; @RF_RCK1
	.comm	_RF_RCK2,4,2                    ; @RF_RCK2
	.comm	_RF_CHNLBW,4,2                  ; @RF_CHNLBW
	.comm	_RFREG_OFFSET_MASK,4,2          ; @RFREG_OFFSET_MASK
	.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	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
l_.str.2:                               ; @.str.2
	.asciz	"PA BIAS path A\n"

	.comm	_RF90_PATH_B,4,2                ; @RF90_PATH_B
l_.str.3:                               ; @.str.3
	.asciz	"PA BIAS path B\n"

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

.subsections_via_symbols
