	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_read_chip_version
__rtl8821ae_read_chip_version:          ## @_rtl8821ae_read_chip_version
	.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, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r15
	movq	_VERSION_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_REG_SYS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rtl_read_dword
	movl	%eax, %ebx
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	(%r15), %rax
	movq	_HARDWARE_TYPE_RTL8812AE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_2
## %bb.1:
	movq	_RF_2T2R@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_HARDWARE_TYPE_RTL8821AE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_RF_1T1R@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r8d
	movl	%r8d, (%r12)
	jmp	LBB0_6
LBB0_3:
	movl	(%r12), %r8d
LBB0_6:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_TRP_VAUX_EN@GOTPCREL(%rip), %rdx
	movq	(%r15), %rax
	movq	(%r13), %rcx
	testl	%ebx, (%rdx)
	je	LBB0_9
## %bb.7:
	movl	$128, %r14d
	cmpq	%rcx, %rax
	jne	LBB0_15
## %bb.8:
	movslq	(%r12), %rcx
	movq	_RF_2T2R@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	%rcx, (%rdx)
	sete	%sil
	movl	$130, %r14d
	subl	%esi, %r14d
	jmp	LBB0_15
LBB0_9:
	cmpq	%rcx, %rax
	jne	LBB0_13
## %bb.10:
	movq	_CHIP_VER_RTL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	%ebx, %r14d
	movslq	(%r12), %rsi
	movq	_CHIP_8812@GOTPCREL(%rip), %rdx
	movq	_NORMAL_CHIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_RF_2T2R@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	cmpq	%rsi, (%rdi)
	jne	LBB0_12
## %bb.11:
	movq	_RF_TYPE_2T2R@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_12:
	orl	%edx, %ecx
	addl	$4096, %r14d                    ## imm = 0x1000
	andl	$-4096, %r14d                   ## imm = 0xF000
	orl	%ecx, %r14d
	jmp	LBB0_15
LBB0_13:
	movq	_HARDWARE_TYPE_RTL8821AE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	_CHIP_VER_RTL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	%ebx, %r14d
	movq	_CHIP_8821@GOTPCREL(%rip), %rcx
	movq	_NORMAL_CHIP@GOTPCREL(%rip), %rdx
	orl	(%rcx), %r14d
	orl	(%rdx), %r14d
LBB0_15:
	movq	_HARDWARE_TYPE_RTL8821AE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	_REG_MULTI_FUNC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rtl_read_dword
	movq	_WL_HWROF_EN@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 8(%r15)
LBB0_17:
	leal	-128(%r14), %eax
	cmpl	$8, %eax
	ja	LBB0_29
## %bb.18:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_26:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rcx
	jmp	LBB0_20
LBB0_29:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.11(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_30
LBB0_21:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_20
LBB0_19:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_20
LBB0_28:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.10(%rip), %rcx
	jmp	LBB0_20
LBB0_27:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.9(%rip), %rcx
	jmp	LBB0_20
LBB0_25:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rcx
	jmp	LBB0_20
LBB0_23:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rcx
	jmp	LBB0_20
LBB0_24:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rcx
	jmp	LBB0_20
LBB0_22:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
LBB0_20:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_30:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_26
	.long	L0_0_set_21
	.long	L0_0_set_19
	.long	L0_0_set_28
	.long	L0_0_set_27
	.long	L0_0_set_25
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_VERSION_UNKNOWN,4,2            ## @VERSION_UNKNOWN
	.comm	_REG_SYS_CFG,4,2                ## @REG_SYS_CFG
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ReadChipVersion8812A 0xF0 = 0x%x\n"

	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ## @HARDWARE_TYPE_RTL8812AE
	.comm	_RF_2T2R,8,3                    ## @RF_2T2R
	.comm	_HARDWARE_TYPE_RTL8821AE,8,3    ## @HARDWARE_TYPE_RTL8821AE
	.comm	_RF_1T1R,4,2                    ## @RF_1T1R
L_.str.1:                               ## @.str.1
	.asciz	"RF_Type is %x!!\n"

	.comm	_TRP_VAUX_EN,4,2                ## @TRP_VAUX_EN
	.comm	_CHIP_VER_RTL_MASK,4,2          ## @CHIP_VER_RTL_MASK
	.comm	_CHIP_8812,4,2                  ## @CHIP_8812
	.comm	_NORMAL_CHIP,4,2                ## @NORMAL_CHIP
	.comm	_RF_TYPE_2T2R,4,2               ## @RF_TYPE_2T2R
	.comm	_CHIP_8821,4,2                  ## @CHIP_8821
	.comm	_REG_MULTI_FUNC_CTRL,4,2        ## @REG_MULTI_FUNC_CTRL
	.comm	_WL_HWROF_EN,4,2                ## @WL_HWROF_EN
L_.str.2:                               ## @.str.2
	.asciz	"Chip Version ID: VERSION_TEST_CHIP_1T1R_8812\n"

L_.str.3:                               ## @.str.3
	.asciz	"Chip Version ID: VERSION_TEST_CHIP_2T2R_8812\n"

L_.str.4:                               ## @.str.4
	.asciz	"Chip Version ID:VERSION_NORMAL_TSMC_CHIP_1T1R_8812\n"

L_.str.5:                               ## @.str.5
	.asciz	"Chip Version ID: VERSION_NORMAL_TSMC_CHIP_2T2R_8812\n"

L_.str.6:                               ## @.str.6
	.asciz	"Chip Version ID: VERSION_NORMAL_TSMC_CHIP_1T1R_8812 C CUT\n"

L_.str.7:                               ## @.str.7
	.asciz	"Chip Version ID: VERSION_NORMAL_TSMC_CHIP_2T2R_8812 C CUT\n"

L_.str.8:                               ## @.str.8
	.asciz	"Chip Version ID: VERSION_TEST_CHIP_8821\n"

L_.str.9:                               ## @.str.9
	.asciz	"Chip Version ID: VERSION_NORMAL_TSMC_CHIP_8821 A CUT\n"

L_.str.10:                              ## @.str.10
	.asciz	"Chip Version ID: VERSION_NORMAL_TSMC_CHIP_8821 B CUT\n"

L_.str.11:                              ## @.str.11
	.asciz	"Chip Version ID: Unknown (0x%X)\n"

	.no_dead_strip	__rtl8821ae_read_chip_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_read_chip_version
__rtl8821ae_read_chip_version:          ; @_rtl8821ae_read_chip_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x21, x0
Lloh0:
	adrp	x8, _VERSION_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VERSION_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _REG_SYS_CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_SYS_CFG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rtl_read_dword
	mov	x22, x0
Lloh6:
	adrp	x24, _COMP_INIT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _COMP_INIT@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh8:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh9:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
	str	x22, [sp]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x21]
Lloh12:
	adrp	x26, _HARDWARE_TYPE_RTL8812AE@GOTPAGE
Lloh13:
	ldr	x26, [x26, _HARDWARE_TYPE_RTL8812AE@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh14:
	adrp	x25, _HARDWARE_TYPE_RTL8821AE@GOTPAGE
Lloh15:
	ldr	x25, [x25, _HARDWARE_TYPE_RTL8821AE@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh16:
	adrp	x8, _RF_2T2R@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RF_2T2R@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh18:
	adrp	x8, _RF_1T1R@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RF_1T1R@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x20]
LBB0_6:
	ldr	w1, [x24]
	ldr	w2, [x23]
	str	x8, [sp]
Lloh20:
	adrp	x3, l_.str.1@PAGE
Lloh21:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh22:
	adrp	x8, _TRP_VAUX_EN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRP_VAUX_EN@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x8]
	ldr	x8, [x21]
	ldr	x9, [x26]
	tst	w10, w22
	b.eq	LBB0_9
; %bb.7:
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	ldrsw	x9, [x20]
Lloh25:
	adrp	x10, _RF_2T2R@GOTPAGE
Lloh26:
	ldr	x10, [x10, _RF_2T2R@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	cmp	x10, x9
	mov	w9, #129
	cinc	w19, w9, ne
	b	LBB0_14
LBB0_9:
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
Lloh28:
	adrp	x9, _CHIP_VER_RTL_MASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CHIP_VER_RTL_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	and	w9, w9, w22
Lloh31:
	adrp	x10, _RF_2T2R@GOTPAGE
Lloh32:
	ldr	x10, [x10, _RF_2T2R@GOTPAGEOFF]
	ldrsw	x11, [x20]
Lloh33:
	ldr	x10, [x10]
Lloh34:
	adrp	x12, _CHIP_8812@GOTPAGE
Lloh35:
	ldr	x12, [x12, _CHIP_8812@GOTPAGEOFF]
Lloh36:
	adrp	x13, _NORMAL_CHIP@GOTPAGE
Lloh37:
	ldr	x13, [x13, _NORMAL_CHIP@GOTPAGEOFF]
Lloh38:
	ldr	w12, [x12]
Lloh39:
	ldr	w13, [x13]
	orr	w12, w13, w12
Lloh40:
	adrp	x13, _RF_TYPE_2T2R@GOTPAGE
Lloh41:
	ldr	x13, [x13, _RF_TYPE_2T2R@GOTPAGEOFF]
Lloh42:
	ldr	w13, [x13]
	cmp	x10, x11
	csel	w10, w13, wzr, eq
	orr	w10, w12, w10
	add	w9, w9, #1, lsl #12             ; =4096
	and	w9, w9, #0xfffff000
	orr	w19, w10, w9
	b	LBB0_14
LBB0_11:
	mov	w19, #128
	b	LBB0_14
LBB0_12:
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh43:
	adrp	x9, _CHIP_VER_RTL_MASK@GOTPAGE
Lloh44:
	ldr	x9, [x9, _CHIP_VER_RTL_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	and	w9, w9, w22
Lloh46:
	adrp	x10, _CHIP_8821@GOTPAGE
Lloh47:
	ldr	x10, [x10, _CHIP_8821@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
Lloh49:
	adrp	x11, _NORMAL_CHIP@GOTPAGE
Lloh50:
	ldr	x11, [x11, _NORMAL_CHIP@GOTPAGEOFF]
Lloh51:
	ldr	w11, [x11]
	orr	w9, w9, w10
	orr	w19, w9, w11
LBB0_14:
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
Lloh52:
	adrp	x8, _REG_MULTI_FUNC_CTRL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _REG_MULTI_FUNC_CTRL@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rtl_read_dword
Lloh55:
	adrp	x8, _WL_HWROF_EN@GOTPAGE
Lloh56:
	ldr	x8, [x8, _WL_HWROF_EN@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	str	w8, [x21, #8]
LBB0_16:
	sub	w8, w19, #128
	cmp	w8, #8
	b.hi	LBB0_19
; %bb.17:
Lloh58:
	adrp	x9, lJTI0_0@PAGE
Lloh59:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_18
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_18:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh60:
	adrp	x3, l_.str.8@PAGE
Lloh61:
	add	x3, x3, l_.str.8@PAGEOFF
	b	LBB0_28
LBB0_19:
	ldr	w1, [x24]
	ldr	w2, [x23]
	str	x19, [sp]
Lloh62:
	adrp	x3, l_.str.11@PAGE
Lloh63:
	add	x3, x3, l_.str.11@PAGEOFF
	b	LBB0_28
LBB0_20:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh64:
	adrp	x3, l_.str.3@PAGE
Lloh65:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_28
LBB0_21:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh66:
	adrp	x3, l_.str.2@PAGE
Lloh67:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_28
LBB0_22:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh68:
	adrp	x3, l_.str.10@PAGE
Lloh69:
	add	x3, x3, l_.str.10@PAGEOFF
	b	LBB0_28
LBB0_23:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh70:
	adrp	x3, l_.str.9@PAGE
Lloh71:
	add	x3, x3, l_.str.9@PAGEOFF
	b	LBB0_28
LBB0_24:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh72:
	adrp	x3, l_.str.7@PAGE
Lloh73:
	add	x3, x3, l_.str.7@PAGEOFF
	b	LBB0_28
LBB0_25:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh74:
	adrp	x3, l_.str.5@PAGE
Lloh75:
	add	x3, x3, l_.str.5@PAGEOFF
	b	LBB0_28
LBB0_26:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh76:
	adrp	x3, l_.str.6@PAGE
Lloh77:
	add	x3, x3, l_.str.6@PAGEOFF
	b	LBB0_28
LBB0_27:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh78:
	adrp	x3, l_.str.4@PAGE
Lloh79:
	add	x3, x3, l_.str.4@PAGEOFF
LBB0_28:
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_20-LBB0_18)>>2
	.byte	(LBB0_21-LBB0_18)>>2
	.byte	(LBB0_22-LBB0_18)>>2
	.byte	(LBB0_23-LBB0_18)>>2
	.byte	(LBB0_24-LBB0_18)>>2
	.byte	(LBB0_25-LBB0_18)>>2
	.byte	(LBB0_26-LBB0_18)>>2
	.byte	(LBB0_27-LBB0_18)>>2
                                        ; -- End function
	.comm	_VERSION_UNKNOWN,4,2            ; @VERSION_UNKNOWN
	.comm	_REG_SYS_CFG,4,2                ; @REG_SYS_CFG
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ReadChipVersion8812A 0xF0 = 0x%x\n"

	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ; @HARDWARE_TYPE_RTL8812AE
	.comm	_RF_2T2R,8,3                    ; @RF_2T2R
	.comm	_HARDWARE_TYPE_RTL8821AE,8,3    ; @HARDWARE_TYPE_RTL8821AE
	.comm	_RF_1T1R,4,2                    ; @RF_1T1R
l_.str.1:                               ; @.str.1
	.asciz	"RF_Type is %x!!\n"

	.comm	_TRP_VAUX_EN,4,2                ; @TRP_VAUX_EN
	.comm	_CHIP_VER_RTL_MASK,4,2          ; @CHIP_VER_RTL_MASK
	.comm	_CHIP_8812,4,2                  ; @CHIP_8812
	.comm	_NORMAL_CHIP,4,2                ; @NORMAL_CHIP
	.comm	_RF_TYPE_2T2R,4,2               ; @RF_TYPE_2T2R
	.comm	_CHIP_8821,4,2                  ; @CHIP_8821
	.comm	_REG_MULTI_FUNC_CTRL,4,2        ; @REG_MULTI_FUNC_CTRL
	.comm	_WL_HWROF_EN,4,2                ; @WL_HWROF_EN
l_.str.2:                               ; @.str.2
	.asciz	"Chip Version ID: VERSION_TEST_CHIP_1T1R_8812\n"

l_.str.3:                               ; @.str.3
	.asciz	"Chip Version ID: VERSION_TEST_CHIP_2T2R_8812\n"

l_.str.4:                               ; @.str.4
	.asciz	"Chip Version ID:VERSION_NORMAL_TSMC_CHIP_1T1R_8812\n"

l_.str.5:                               ; @.str.5
	.asciz	"Chip Version ID: VERSION_NORMAL_TSMC_CHIP_2T2R_8812\n"

l_.str.6:                               ; @.str.6
	.asciz	"Chip Version ID: VERSION_NORMAL_TSMC_CHIP_1T1R_8812 C CUT\n"

l_.str.7:                               ; @.str.7
	.asciz	"Chip Version ID: VERSION_NORMAL_TSMC_CHIP_2T2R_8812 C CUT\n"

l_.str.8:                               ; @.str.8
	.asciz	"Chip Version ID: VERSION_TEST_CHIP_8821\n"

l_.str.9:                               ; @.str.9
	.asciz	"Chip Version ID: VERSION_NORMAL_TSMC_CHIP_8821 A CUT\n"

l_.str.10:                              ; @.str.10
	.asciz	"Chip Version ID: VERSION_NORMAL_TSMC_CHIP_8821 B CUT\n"

l_.str.11:                              ; @.str.11
	.asciz	"Chip Version ID: Unknown (0x%X)\n"

	.no_dead_strip	__rtl8821ae_read_chip_version
.subsections_via_symbols
