	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92ee_read_chip_version
__rtl92ee_read_chip_version:            ## @_rtl92ee_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	_RF_2T2R@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	_REG_SYS_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl_read_dword
	movq	_TRP_VAUX_EN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_VERSION_NORMAL_CHIP_2T2R_8192E@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_VERSION_TEST_CHIP_2T2R_8192E@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERSION_UNKNOWN,4,2            ## @VERSION_UNKNOWN
	.comm	_RF_2T2R,8,3                    ## @RF_2T2R
	.comm	_REG_SYS_CFG1,4,2               ## @REG_SYS_CFG1
	.comm	_TRP_VAUX_EN,4,2                ## @TRP_VAUX_EN
	.comm	_VERSION_TEST_CHIP_2T2R_8192E,8,3 ## @VERSION_TEST_CHIP_2T2R_8192E
	.comm	_VERSION_NORMAL_CHIP_2T2R_8192E,8,3 ## @VERSION_NORMAL_CHIP_2T2R_8192E
	.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"

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

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

	.no_dead_strip	__rtl92ee_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 _rtl92ee_read_chip_version
__rtl92ee_read_chip_version:            ; @_rtl92ee_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	x21, _RF_2T2R@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RF_2T2R@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [x0]
Lloh2:
	adrp	x8, _REG_SYS_CFG1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_SYS_CFG1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_rtl_read_dword
Lloh5:
	adrp	x8, _TRP_VAUX_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRP_VAUX_EN@GOTPAGEOFF]
Lloh7:
	adrp	x9, _VERSION_NORMAL_CHIP_2T2R_8192E@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VERSION_NORMAL_CHIP_2T2R_8192E@GOTPAGEOFF]
Lloh9:
	adrp	x10, _VERSION_TEST_CHIP_2T2R_8192E@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VERSION_TEST_CHIP_2T2R_8192E@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w20, [x8]
Lloh12:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	ldr	x8, [x19]
	ldr	x9, [x21]
Lloh18:
	adrp	x10, l_.str.2@PAGE
Lloh19:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh20:
	adrp	x11, l_.str.1@PAGE
Lloh21:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x4, x11, x10, eq
Lloh22:
	adrp	x3, l_.str@PAGE
Lloh23:
	add	x3, x3, l_.str@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 AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VERSION_UNKNOWN,4,2            ; @VERSION_UNKNOWN
	.comm	_RF_2T2R,8,3                    ; @RF_2T2R
	.comm	_REG_SYS_CFG1,4,2               ; @REG_SYS_CFG1
	.comm	_TRP_VAUX_EN,4,2                ; @TRP_VAUX_EN
	.comm	_VERSION_TEST_CHIP_2T2R_8192E,8,3 ; @VERSION_TEST_CHIP_2T2R_8192E
	.comm	_VERSION_NORMAL_CHIP_2T2R_8192E,8,3 ; @VERSION_NORMAL_CHIP_2T2R_8192E
	.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"

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

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

	.no_dead_strip	__rtl92ee_read_chip_version
.subsections_via_symbols
