	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92ce_read_chip_version
__rtl92ce_read_chip_version:            ## @_rtl92ce_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
	callq	_rtl_priv
	movq	%rax, %r14
	movq	_REG_SYS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtl_read_dword
	movl	%eax, %ebx
	movq	_TRP_VAUX_EN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_TYPE_ID@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	testl	%ebx, (%rax)
	sete	%r15b
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	orl	$136, %r15d
	jmp	LBB0_19
LBB0_2:
	movq	_CHIP_VER_B@GOTPCREL(%rip), %rax
	movq	_TYPE_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	%ebx, %r15d
	je	LBB0_4
## %bb.3:
	movq	_CHIP_92C_BITMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_4:
	orl	(%rax), %r15d
	movq	_VENDOR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CHIP_VENDOR_UMC@GOTPCREL(%rip), %r12
	andl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r12), %eax
LBB0_6:
	orl	%eax, %r15d
	movl	%r15d, %edi
	callq	_IS_CHIP_VENDOR_UMC
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	_CHIP_VER_RTL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%ebx, %r13d
	je	LBB0_12
## %bb.8:
	movl	$12, %edi
	callq	_BIT
	cmpl	%eax, %r13d
	jne	LBB0_9
## %bb.10:
	movq	_CHIP_VENDOR_UMC_B_CUT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_CHIP_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_11:
	orl	(%r12), %r15d
	orl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %edi
	callq	_IS_92C_SERIAL
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	_REG_HPON_FSM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtl_read_dword
	movl	%eax, %edi
	callq	_CHIP_BONDING_IDENTIFIER
	movq	_CHIP_BONDING_92C_1T2R@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	jne	LBB0_15
## %bb.14:
	movq	_RF_TYPE_1T2R@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_15:
	orl	%r15d, %ecx
	movl	%ecx, %r15d
LBB0_16:
	leal	-128(%r15), %eax
	cmpl	$9, %eax
	ja	LBB0_17
## %bb.18:
	cltq
	leaq	l_reltable._rtl92ce_read_chip_version(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	jmp	LBB0_19
LBB0_17:
	leaq	L_.str.10(%rip), %rsi
LBB0_19:
	leaq	L_.str.11(%rip), %rdi
	callq	_pr_info
	movq	_RF_1T1R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	leaq	L_.str.12(%rip), %rdi
	callq	_pr_err
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14), %rax
	movq	_RF_2T2R@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.14(%rip), %rax
	leaq	L_.str.15(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.13(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERSION_UNKNOWN,4,2            ## @VERSION_UNKNOWN
	.comm	_REG_SYS_CFG,4,2                ## @REG_SYS_CFG
	.comm	_TRP_VAUX_EN,4,2                ## @TRP_VAUX_EN
	.comm	_TYPE_ID,4,2                    ## @TYPE_ID
	.comm	_CHIP_VER_B,4,2                 ## @CHIP_VER_B
	.comm	_CHIP_92C_BITMASK,4,2           ## @CHIP_92C_BITMASK
	.comm	_VENDOR_ID,4,2                  ## @VENDOR_ID
	.comm	_CHIP_VENDOR_UMC,4,2            ## @CHIP_VENDOR_UMC
	.comm	_CHIP_VER_RTL_MASK,4,2          ## @CHIP_VER_RTL_MASK
	.comm	_CHIP_VENDOR_UMC_B_CUT,4,2      ## @CHIP_VENDOR_UMC_B_CUT
	.comm	_CHIP_UNKNOWN,4,2               ## @CHIP_UNKNOWN
	.comm	_REG_HPON_FSM,4,2               ## @REG_HPON_FSM
	.comm	_CHIP_BONDING_92C_1T2R,8,3      ## @CHIP_BONDING_92C_1T2R
	.comm	_RF_TYPE_1T2R,4,2               ## @RF_TYPE_1T2R
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"B_CHIP_92C"

L_.str.1:                               ## @.str.1
	.asciz	"B_CHIP_88C"

L_.str.2:                               ## @.str.2
	.asciz	"A_CHIP_92C"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"A_CUT_92C"

L_.str.6:                               ## @.str.6
	.asciz	"A_CUT_88C"

L_.str.7:                               ## @.str.7
	.asciz	"B_CUT_92C_1T2R"

L_.str.8:                               ## @.str.8
	.asciz	"B_CUT_92C"

L_.str.9:                               ## @.str.9
	.asciz	"B_CUT_88C"

L_.str.10:                              ## @.str.10
	.asciz	"Unknown. Bug?"

L_.str.11:                              ## @.str.11
	.asciz	"Chip Version ID: %s\n"

	.comm	_RF_1T1R,8,3                    ## @RF_1T1R
	.comm	_RF_2T2R,8,3                    ## @RF_2T2R
	.comm	_RF_1T2R,8,3                    ## @RF_1T2R
L_.str.12:                              ## @.str.12
	.asciz	"ERROR RF_Type is set!!\n"

	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
L_.str.13:                              ## @.str.13
	.asciz	"Chip RF Type: %s\n"

L_.str.14:                              ## @.str.14
	.asciz	"RF_2T2R"

L_.str.15:                              ## @.str.15
	.asciz	"RF_1T1R"

	.no_dead_strip	__rtl92ce_read_chip_version
	.section	__TEXT,__const
	.p2align	2                               ## @reltable._rtl92ce_read_chip_version
l_reltable._rtl92ce_read_chip_version:
	.long	L_.str.8-l_reltable._rtl92ce_read_chip_version
	.long	L_.str.5-l_reltable._rtl92ce_read_chip_version
	.long	L_.str.7-l_reltable._rtl92ce_read_chip_version
	.long	L_.str.4-l_reltable._rtl92ce_read_chip_version
	.long	L_.str.9-l_reltable._rtl92ce_read_chip_version
	.long	L_.str.6-l_reltable._rtl92ce_read_chip_version
	.long	L_.str-l_reltable._rtl92ce_read_chip_version
	.long	L_.str.1-l_reltable._rtl92ce_read_chip_version
	.long	L_.str.2-l_reltable._rtl92ce_read_chip_version
	.long	L_.str.3-l_reltable._rtl92ce_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 _rtl92ce_read_chip_version
__rtl92ce_read_chip_version:            ; @_rtl92ce_read_chip_version
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_rtl_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_SYS_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SYS_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rtl_read_dword
	mov	x21, x0
Lloh3:
	adrp	x8, _TRP_VAUX_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRP_VAUX_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _TYPE_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TYPE_ID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	mov	w8, #136
	cinc	w20, w8, eq
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh11:
	adrp	x9, l_.str.3@PAGE
Lloh12:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x1, x9, x8, eq
	b	LBB0_10
LBB0_2:
Lloh13:
	adrp	x8, _CHIP_VER_B@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CHIP_VER_B@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _TYPE_ID@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TYPE_ID@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _CHIP_92C_BITMASK@GOTPAGE
Lloh20:
	ldr	x10, [x10, _CHIP_92C_BITMASK@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _VENDOR_ID@GOTPAGE
Lloh23:
	ldr	x9, [x9, _VENDOR_ID@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x22, _CHIP_VENDOR_UMC@GOTPAGE
Lloh26:
	ldr	x22, [x22, _CHIP_VENDOR_UMC@GOTPAGEOFF]
	ldr	w10, [x22]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w20, w8, w9
	mov	x0, x20
	bl	_IS_CHIP_VENDOR_UMC
	cbnz	w0, LBB0_5
; %bb.3:
Lloh27:
	adrp	x8, _CHIP_VER_RTL_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CHIP_VER_RTL_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ands	w21, w8, w21
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #12
	bl	_BIT
Lloh30:
	adrp	x8, _CHIP_VENDOR_UMC_B_CUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CHIP_VENDOR_UMC_B_CUT@GOTPAGEOFF]
Lloh32:
	adrp	x9, _CHIP_UNKNOWN@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CHIP_UNKNOWN@GOTPAGEOFF]
	cmp	w21, w0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w9, w9, w20
	orr	w20, w9, w8
LBB0_5:
	mov	x0, x20
	bl	_IS_92C_SERIAL
	cbz	x0, LBB0_7
; %bb.6:
Lloh34:
	adrp	x8, _REG_HPON_FSM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _REG_HPON_FSM@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_read_dword
	bl	_CHIP_BONDING_IDENTIFIER
Lloh37:
	adrp	x8, _CHIP_BONDING_92C_1T2R@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CHIP_BONDING_92C_1T2R@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
Lloh40:
	adrp	x9, _RF_TYPE_1T2R@GOTPAGE
Lloh41:
	ldr	x9, [x9, _RF_TYPE_1T2R@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w8, w9, wzr, eq
	orr	w20, w8, w20
LBB0_7:
	sub	w8, w20, #128
	cmp	w8, #9
	b.hi	LBB0_9
; %bb.8:
Lloh43:
	adrp	x9, l_switch.table._rtl92ce_read_chip_version@PAGE
Lloh44:
	add	x9, x9, l_switch.table._rtl92ce_read_chip_version@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
	b	LBB0_10
LBB0_9:
Lloh45:
	adrp	x1, l_.str.10@PAGE
Lloh46:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_10:
Lloh47:
	adrp	x0, l_.str.11@PAGE
Lloh48:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_pr_info
Lloh49:
	adrp	x8, _RF_1T1R@GOTPAGE
Lloh50:
	ldr	x8, [x8, _RF_1T1R@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh52:
	adrp	x0, l_.str.12@PAGE
Lloh53:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_pr_err
Lloh54:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh56:
	adrp	x9, _DBG_LOUD@GOTPAGE
Lloh57:
	ldr	x9, [x9, _DBG_LOUD@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
Lloh59:
	ldr	w2, [x9]
	ldr	x8, [x19]
Lloh60:
	adrp	x9, _RF_2T2R@GOTPAGE
Lloh61:
	ldr	x9, [x9, _RF_2T2R@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
Lloh63:
	adrp	x10, l_.str.15@PAGE
Lloh64:
	add	x10, x10, l_.str.15@PAGEOFF
Lloh65:
	adrp	x11, l_.str.14@PAGE
Lloh66:
	add	x11, x11, l_.str.14@PAGEOFF
	cmp	x8, x9
	csel	x4, x11, x10, eq
Lloh67:
	adrp	x3, l_.str.13@PAGE
Lloh68:
	add	x3, x3, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh58
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_VERSION_UNKNOWN,4,2            ; @VERSION_UNKNOWN
	.comm	_REG_SYS_CFG,4,2                ; @REG_SYS_CFG
	.comm	_TRP_VAUX_EN,4,2                ; @TRP_VAUX_EN
	.comm	_TYPE_ID,4,2                    ; @TYPE_ID
	.comm	_CHIP_VER_B,4,2                 ; @CHIP_VER_B
	.comm	_CHIP_92C_BITMASK,4,2           ; @CHIP_92C_BITMASK
	.comm	_VENDOR_ID,4,2                  ; @VENDOR_ID
	.comm	_CHIP_VENDOR_UMC,4,2            ; @CHIP_VENDOR_UMC
	.comm	_CHIP_VER_RTL_MASK,4,2          ; @CHIP_VER_RTL_MASK
	.comm	_CHIP_VENDOR_UMC_B_CUT,4,2      ; @CHIP_VENDOR_UMC_B_CUT
	.comm	_CHIP_UNKNOWN,4,2               ; @CHIP_UNKNOWN
	.comm	_REG_HPON_FSM,4,2               ; @REG_HPON_FSM
	.comm	_CHIP_BONDING_92C_1T2R,8,3      ; @CHIP_BONDING_92C_1T2R
	.comm	_RF_TYPE_1T2R,4,2               ; @RF_TYPE_1T2R
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"B_CHIP_92C"

l_.str.1:                               ; @.str.1
	.asciz	"B_CHIP_88C"

l_.str.2:                               ; @.str.2
	.asciz	"A_CHIP_92C"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"A_CUT_92C"

l_.str.6:                               ; @.str.6
	.asciz	"A_CUT_88C"

l_.str.7:                               ; @.str.7
	.asciz	"B_CUT_92C_1T2R"

l_.str.8:                               ; @.str.8
	.asciz	"B_CUT_92C"

l_.str.9:                               ; @.str.9
	.asciz	"B_CUT_88C"

l_.str.10:                              ; @.str.10
	.asciz	"Unknown. Bug?"

l_.str.11:                              ; @.str.11
	.asciz	"Chip Version ID: %s\n"

	.comm	_RF_1T1R,8,3                    ; @RF_1T1R
	.comm	_RF_2T2R,8,3                    ; @RF_2T2R
	.comm	_RF_1T2R,8,3                    ; @RF_1T2R
l_.str.12:                              ; @.str.12
	.asciz	"ERROR RF_Type is set!!\n"

	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
l_.str.13:                              ; @.str.13
	.asciz	"Chip RF Type: %s\n"

l_.str.14:                              ; @.str.14
	.asciz	"RF_2T2R"

l_.str.15:                              ; @.str.15
	.asciz	"RF_1T1R"

	.no_dead_strip	__rtl92ce_read_chip_version
	.section	__DATA,__const
	.p2align	3                               ; @switch.table._rtl92ce_read_chip_version
l_switch.table._rtl92ce_read_chip_version:
	.quad	l_.str.8
	.quad	l_.str.5
	.quad	l_.str.7
	.quad	l_.str.4
	.quad	l_.str.9
	.quad	l_.str.6
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

.subsections_via_symbols
