	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88ee_read_eeprom_info       ## -- Begin function rtl88ee_read_eeprom_info
	.p2align	4, 0x90
_rtl88ee_read_eeprom_info:              ## @rtl88ee_read_eeprom_info
	.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, %r14
	callq	_rtl_priv
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %r13
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	__rtl88ee_read_chip_version
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	callq	_get_rf_type
	movq	_RF_1T1R@GOTPCREL(%rip), %rdx
	movq	(%r12), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_2
## %bb.1:
	movl	$1, 4(%rcx)
LBB0_2:
	movl	$1, (%rcx)
	movq	_COMP_INIT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_REG_9346CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r13d
	movl	$4, %edi
	callq	_BIT
	movl	(%r15), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%r13d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	_EEPROM_93C46@GOTPCREL(%rip), %r15
	cmoveq	_EEPROM_BOOT_EFUSE@GOTPCREL(%rip), %r15
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r15), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 4(%rbx)
	movl	$5, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_4
## %bb.3:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	__rtl88ee_read_adapter_info
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_err
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__rtl88ee_hal_customized_behavior ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	"VersionID = 0x%4x\n"

	.comm	_REG_9346CR,4,2                 ## @REG_9346CR
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
L_.str.1:                               ## @.str.1
	.asciz	"Boot from EEPROM\n"

	.comm	_EEPROM_93C46,4,2               ## @EEPROM_93C46
L_.str.2:                               ## @.str.2
	.asciz	"Boot from EFUSE\n"

	.comm	_EEPROM_BOOT_EFUSE,4,2          ## @EEPROM_BOOT_EFUSE
L_.str.3:                               ## @.str.3
	.asciz	"Autoload OK\n"

L_.str.4:                               ## @.str.4
	.asciz	"Autoload ERR!!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88ee_read_eeprom_info       ; -- Begin function rtl88ee_read_eeprom_info
	.p2align	2
_rtl88ee_read_eeprom_info:              ; @rtl88ee_read_eeprom_info
	.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_efuse
	mov	x21, x0
	add	x23, x20, #8
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x22, x0
	mov	x0, x19
	bl	__rtl88ee_read_chip_version
	str	w0, [x22]
	mov	x0, x23
	bl	_get_rf_type
Lloh0:
	adrp	x8, _RF_1T1R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF_1T1R@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	x8, [x20]
	cmp	x0, x9
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [x8, #4]
LBB0_2:
	mov	w9, #1
Lloh3:
	adrp	x23, _COMP_INIT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _COMP_INIT@GOTPAGEOFF]
	str	w9, [x8]
	ldr	w1, [x23]
Lloh5:
	adrp	x24, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	w8, [x22]
	str	x8, [sp]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh9:
	adrp	x8, _REG_9346CR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_9346CR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rtl_read_byte
	mov	x22, x0
	mov	w0, #4
	bl	_BIT
Lloh12:
	adrp	x8, l_.str.1@PAGE
Lloh13:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
	tst	w0, w22
	csel	x3, x9, x8, eq
	ldr	w1, [x23]
Lloh16:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _EEPROM_BOOT_EFUSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EEPROM_BOOT_EFUSE@GOTPAGEOFF]
Lloh21:
	adrp	x9, _EEPROM_93C46@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EEPROM_93C46@GOTPAGEOFF]
	csel	x25, x8, x9, eq
	mov	x0, x20
	bl	_RT_TRACE
	ldr	w8, [x25]
	str	w8, [x21, #4]
	mov	w0, #5
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh23:
	adrp	x3, l_.str.3@PAGE
Lloh24:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	str	wzr, [x21]
	mov	x0, x19
	bl	__rtl88ee_read_adapter_info
	b	LBB0_5
LBB0_4:
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
LBB0_5:
	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
	b	__rtl88ee_hal_customized_behavior
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.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	"VersionID = 0x%4x\n"

	.comm	_REG_9346CR,4,2                 ; @REG_9346CR
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
l_.str.1:                               ; @.str.1
	.asciz	"Boot from EEPROM\n"

	.comm	_EEPROM_93C46,4,2               ; @EEPROM_93C46
l_.str.2:                               ; @.str.2
	.asciz	"Boot from EFUSE\n"

	.comm	_EEPROM_BOOT_EFUSE,4,2          ; @EEPROM_BOOT_EFUSE
l_.str.3:                               ; @.str.3
	.asciz	"Autoload OK\n"

l_.str.4:                               ; @.str.4
	.asciz	"Autoload ERR!!\n"

.subsections_via_symbols
