	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl88ee_read_chip_version
__rtl88ee_read_chip_version:            ## @_rtl88ee_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_rtl_priv
	movq	%rax, %r14
	movq	_REG_SYS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtl_read_dword
	movq	_TRP_VAUX_EN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_VERSION_TEST_CHIP_88E@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_NORMAL_CHIP@GOTPCREL(%rip), %rcx
	movq	_TYPE_ID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%eax, %ebx
	je	LBB0_4
## %bb.3:
	movq	_RF_TYPE_2T2R@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_4:
	orl	(%rcx), %ebx
	movq	_VENDOR_ID@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movq	_CHIP_VENDOR_UMC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%eax, %ebx
LBB0_7:
	movq	_RF_1T1R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_COMP_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_RF_2T2R@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	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	_VERSION_TEST_CHIP_88E,8,3      ## @VERSION_TEST_CHIP_88E
	.comm	_NORMAL_CHIP,4,2                ## @NORMAL_CHIP
	.comm	_TYPE_ID,4,2                    ## @TYPE_ID
	.comm	_RF_TYPE_2T2R,4,2               ## @RF_TYPE_2T2R
	.comm	_VENDOR_ID,4,2                  ## @VENDOR_ID
	.comm	_CHIP_VENDOR_UMC,4,2            ## @CHIP_VENDOR_UMC
	.comm	_RF_1T1R,8,3                    ## @RF_1T1R
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chip RF Type: %s\n"

	.comm	_RF_2T2R,8,3                    ## @RF_2T2R
L_.str.1:                               ## @.str.1
	.asciz	"RF_2T2R"

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

	.no_dead_strip	__rtl88ee_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 _rtl88ee_read_chip_version
__rtl88ee_read_chip_version:            ; @_rtl88ee_read_chip_version
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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
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, _VERSION_TEST_CHIP_88E@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VERSION_TEST_CHIP_88E@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _NORMAL_CHIP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NORMAL_CHIP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _TYPE_ID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TYPE_ID@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _RF_TYPE_2T2R@GOTPAGE
Lloh16:
	ldr	x10, [x10, _RF_TYPE_2T2R@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _VENDOR_ID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VENDOR_ID@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _CHIP_VENDOR_UMC@GOTPAGE
Lloh22:
	ldr	x10, [x10, _CHIP_VENDOR_UMC@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w20, w8, w9
LBB0_3:
Lloh24:
	adrp	x8, _RF_1T1R@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RF_1T1R@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh27:
	adrp	x9, _COMP_INIT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _COMP_INIT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x9]
Lloh30:
	adrp	x9, _DBG_LOUD@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DBG_LOUD@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x9]
Lloh33:
	adrp	x9, _RF_2T2R@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RF_2T2R@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
Lloh36:
	adrp	x10, l_.str.2@PAGE
Lloh37:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh38:
	adrp	x11, l_.str.1@PAGE
Lloh39:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x4, x11, x10, eq
Lloh40:
	adrp	x3, l_.str@PAGE
Lloh41:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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	_VERSION_TEST_CHIP_88E,8,3      ; @VERSION_TEST_CHIP_88E
	.comm	_NORMAL_CHIP,4,2                ; @NORMAL_CHIP
	.comm	_TYPE_ID,4,2                    ; @TYPE_ID
	.comm	_RF_TYPE_2T2R,4,2               ; @RF_TYPE_2T2R
	.comm	_VENDOR_ID,4,2                  ; @VENDOR_ID
	.comm	_CHIP_VENDOR_UMC,4,2            ; @CHIP_VENDOR_UMC
	.comm	_RF_1T1R,8,3                    ; @RF_1T1R
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chip RF Type: %s\n"

	.comm	_RF_2T2R,8,3                    ; @RF_2T2R
l_.str.1:                               ; @.str.1
	.asciz	"RF_2T2R"

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

	.no_dead_strip	__rtl88ee_read_chip_version
.subsections_via_symbols
