	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt61pci_validate_eeprom
_rt61pci_validate_eeprom:               ## @rt61pci_validate_eeprom
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_E2PROM_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rt2x00mmio_register_read
	movq	%rbx, -48(%rbp)
	movq	_rt61pci_eepromregister_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movq	_rt61pci_eepromregister_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -60(%rbp)
	movq	_E2PROM_CSR_TYPE_93C46@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_PCI_EEPROM_WIDTH_93C66@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PCI_EEPROM_WIDTH_93C46@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_EEPROM_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	_EEPROM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	sarl	$2, %ecx
	leaq	-96(%rbp), %rdi
	callq	_eeprom_93cx6_multiread
	movq	_EEPROM_MAC_ADDR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_addr
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_rt2x00lib_set_mac_address
	movq	_EEPROM_ANTENNA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_5
## %bb.4:
	movq	_EEPROM_ANTENNA_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_ANTENNA_TX_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ANTENNA_B@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_rt2x00_set_field16
	movq	_EEPROM_ANTENNA_RX_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_rt2x00_set_field16
	movq	_EEPROM_ANTENNA_FRAME_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_ANTENNA_DYN_TXAGC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_ANTENNA_HARDWARE_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_ANTENNA_RF_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF5225@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rt2x00_set_field16
	movl	(%r15), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_5:
	movq	_EEPROM_NIC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_7
## %bb.6:
	movq	_EEPROM_NIC_ENABLE_DIVERSITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_NIC_TX_DIVERSITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_NIC_RX_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_NIC_TX_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_NIC_EXTERNAL_LNA_BG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_NIC_CARDBUS_ACCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_NIC_EXTERNAL_LNA_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r15), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_7:
	movq	_EEPROM_LED@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_9
## %bb.8:
	movq	_EEPROM_LED_LED_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LED_MODE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rdi
	callq	_rt2x00_set_field16
	movl	(%r14), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_9:
	movq	_EEPROM_FREQ@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_11
## %bb.10:
	movq	_EEPROM_FREQ_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_FREQ_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r15), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_11:
	movq	_EEPROM_RSSI_OFFSET_BG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	movq	_EEPROM_RSSI_OFFSET_BG_1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_13
## %bb.12:
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_RSSI_OFFSET_BG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r15), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_dbg
	jmp	LBB0_18
LBB0_13:
	movl	%eax, %edi
	callq	_rt2x00_get_field16
	addl	$-11, %eax
	cmpl	$-22, %eax
	ja	LBB0_15
## %bb.14:
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
LBB0_15:
	movl	-36(%rbp), %edi
	movq	_EEPROM_RSSI_OFFSET_BG_2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_rt2x00_get_field16
	addl	$-11, %eax
	cmpl	$-22, %eax
	ja	LBB0_17
## %bb.16:
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
LBB0_17:
	movl	(%r15), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_write
LBB0_18:
	movq	_EEPROM_RSSI_OFFSET_A@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	movq	_EEPROM_RSSI_OFFSET_A_1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_20
## %bb.19:
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_RSSI_OFFSET_A_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r15), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_dbg
	jmp	LBB0_25
LBB0_20:
	movl	%eax, %edi
	callq	_rt2x00_get_field16
	addl	$-11, %eax
	cmpl	$-22, %eax
	ja	LBB0_22
## %bb.21:
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
LBB0_22:
	movl	-36(%rbp), %edi
	movq	_EEPROM_RSSI_OFFSET_A_2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_rt2x00_get_field16
	addl	$-11, %eax
	cmpl	$-22, %eax
	ja	LBB0_24
## %bb.23:
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
LBB0_24:
	movl	(%r15), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_write
LBB0_25:
	xorl	%eax, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E2PROM_CSR,4,2                 ## @E2PROM_CSR
	.comm	_rt61pci_eepromregister_read,4,2 ## @rt61pci_eepromregister_read
	.comm	_rt61pci_eepromregister_write,4,2 ## @rt61pci_eepromregister_write
	.comm	_E2PROM_CSR_TYPE_93C46,4,2      ## @E2PROM_CSR_TYPE_93C46
	.comm	_PCI_EEPROM_WIDTH_93C46,4,2     ## @PCI_EEPROM_WIDTH_93C46
	.comm	_PCI_EEPROM_WIDTH_93C66,4,2     ## @PCI_EEPROM_WIDTH_93C66
	.comm	_EEPROM_BASE,4,2                ## @EEPROM_BASE
	.comm	_EEPROM_SIZE,4,2                ## @EEPROM_SIZE
	.comm	_EEPROM_MAC_ADDR_0,4,2          ## @EEPROM_MAC_ADDR_0
	.comm	_EEPROM_ANTENNA,4,2             ## @EEPROM_ANTENNA
	.comm	_EEPROM_ANTENNA_NUM,4,2         ## @EEPROM_ANTENNA_NUM
	.comm	_EEPROM_ANTENNA_TX_DEFAULT,4,2  ## @EEPROM_ANTENNA_TX_DEFAULT
	.comm	_ANTENNA_B,4,2                  ## @ANTENNA_B
	.comm	_EEPROM_ANTENNA_RX_DEFAULT,4,2  ## @EEPROM_ANTENNA_RX_DEFAULT
	.comm	_EEPROM_ANTENNA_FRAME_TYPE,4,2  ## @EEPROM_ANTENNA_FRAME_TYPE
	.comm	_EEPROM_ANTENNA_DYN_TXAGC,4,2   ## @EEPROM_ANTENNA_DYN_TXAGC
	.comm	_EEPROM_ANTENNA_HARDWARE_RADIO,4,2 ## @EEPROM_ANTENNA_HARDWARE_RADIO
	.comm	_EEPROM_ANTENNA_RF_TYPE,4,2     ## @EEPROM_ANTENNA_RF_TYPE
	.comm	_RF5225,4,2                     ## @RF5225
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Antenna: 0x%04x\n"

	.comm	_EEPROM_NIC,4,2                 ## @EEPROM_NIC
	.comm	_EEPROM_NIC_ENABLE_DIVERSITY,4,2 ## @EEPROM_NIC_ENABLE_DIVERSITY
	.comm	_EEPROM_NIC_TX_DIVERSITY,4,2    ## @EEPROM_NIC_TX_DIVERSITY
	.comm	_EEPROM_NIC_RX_FIXED,4,2        ## @EEPROM_NIC_RX_FIXED
	.comm	_EEPROM_NIC_TX_FIXED,4,2        ## @EEPROM_NIC_TX_FIXED
	.comm	_EEPROM_NIC_EXTERNAL_LNA_BG,4,2 ## @EEPROM_NIC_EXTERNAL_LNA_BG
	.comm	_EEPROM_NIC_CARDBUS_ACCEL,4,2   ## @EEPROM_NIC_CARDBUS_ACCEL
	.comm	_EEPROM_NIC_EXTERNAL_LNA_A,4,2  ## @EEPROM_NIC_EXTERNAL_LNA_A
L_.str.1:                               ## @.str.1
	.asciz	"NIC: 0x%04x\n"

	.comm	_EEPROM_LED,4,2                 ## @EEPROM_LED
	.comm	_EEPROM_LED_LED_MODE,4,2        ## @EEPROM_LED_LED_MODE
	.comm	_LED_MODE_DEFAULT,4,2           ## @LED_MODE_DEFAULT
L_.str.2:                               ## @.str.2
	.asciz	"Led: 0x%04x\n"

	.comm	_EEPROM_FREQ,4,2                ## @EEPROM_FREQ
	.comm	_EEPROM_FREQ_OFFSET,4,2         ## @EEPROM_FREQ_OFFSET
	.comm	_EEPROM_FREQ_SEQ,4,2            ## @EEPROM_FREQ_SEQ
L_.str.3:                               ## @.str.3
	.asciz	"Freq: 0x%04x\n"

	.comm	_EEPROM_RSSI_OFFSET_BG,4,2      ## @EEPROM_RSSI_OFFSET_BG
	.comm	_EEPROM_RSSI_OFFSET_BG_1,4,2    ## @EEPROM_RSSI_OFFSET_BG_1
	.comm	_EEPROM_RSSI_OFFSET_BG_2,4,2    ## @EEPROM_RSSI_OFFSET_BG_2
L_.str.4:                               ## @.str.4
	.asciz	"RSSI OFFSET BG: 0x%04x\n"

	.comm	_EEPROM_RSSI_OFFSET_A,4,2       ## @EEPROM_RSSI_OFFSET_A
	.comm	_EEPROM_RSSI_OFFSET_A_1,4,2     ## @EEPROM_RSSI_OFFSET_A_1
	.comm	_EEPROM_RSSI_OFFSET_A_2,4,2     ## @EEPROM_RSSI_OFFSET_A_2
L_.str.5:                               ## @.str.5
	.asciz	"RSSI OFFSET A: 0x%04x\n"

	.no_dead_strip	_rt61pci_validate_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt61pci_validate_eeprom
_rt61pci_validate_eeprom:               ; @rt61pci_validate_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _E2PROM_CSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2PROM_CSR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rt2x00mmio_register_read
	str	x19, [sp, #64]
Lloh3:
	adrp	x8, _rt61pci_eepromregister_read@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rt61pci_eepromregister_read@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _rt61pci_eepromregister_write@GOTPAGE
Lloh7:
	ldr	x9, [x9, _rt61pci_eepromregister_write@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #52]
Lloh9:
	adrp	x8, _E2PROM_CSR_TYPE_93C46@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E2PROM_CSR_TYPE_93C46@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_rt2x00_get_field32
Lloh12:
	adrp	x8, _PCI_EEPROM_WIDTH_93C46@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_EEPROM_WIDTH_93C46@GOTPAGEOFF]
Lloh14:
	adrp	x9, _PCI_EEPROM_WIDTH_93C66@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PCI_EEPROM_WIDTH_93C66@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
Lloh16:
	adrp	x8, _EEPROM_BASE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EEPROM_BASE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh19:
	adrp	x8, _EEPROM_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EEPROM_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	asr	w3, w8, #2
	add	x0, sp, #16
	bl	_eeprom_93cx6_multiread
Lloh22:
	adrp	x8, _EEPROM_MAC_ADDR_0@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EEPROM_MAC_ADDR_0@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_eeprom_addr
	mov	x1, x0
	mov	x0, x19
	bl	_rt2x00lib_set_mac_address
Lloh25:
	adrp	x21, _EEPROM_ANTENNA@GOTPAGE
Lloh26:
	ldr	x21, [x21, _EEPROM_ANTENNA@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
	mov	w20, #65535
	cmp	w0, w20
	b.ne	LBB0_2
; %bb.1:
Lloh27:
	adrp	x8, _EEPROM_ANTENNA_NUM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EEPROM_ANTENNA_NUM@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #2
	bl	_rt2x00_set_field16
Lloh30:
	adrp	x8, _EEPROM_ANTENNA_TX_DEFAULT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EEPROM_ANTENNA_TX_DEFAULT@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x22, _ANTENNA_B@GOTPAGE
Lloh34:
	ldr	x22, [x22, _ANTENNA_B@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x0, sp, #12
	bl	_rt2x00_set_field16
Lloh35:
	adrp	x8, _EEPROM_ANTENNA_RX_DEFAULT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EEPROM_ANTENNA_RX_DEFAULT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x22]
	add	x0, sp, #12
	bl	_rt2x00_set_field16
Lloh38:
	adrp	x8, _EEPROM_ANTENNA_FRAME_TYPE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EEPROM_ANTENNA_FRAME_TYPE@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh41:
	adrp	x8, _EEPROM_ANTENNA_DYN_TXAGC@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EEPROM_ANTENNA_DYN_TXAGC@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh44:
	adrp	x8, _EEPROM_ANTENNA_HARDWARE_RADIO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EEPROM_ANTENNA_HARDWARE_RADIO@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh47:
	adrp	x8, _EEPROM_ANTENNA_RF_TYPE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EEPROM_ANTENNA_RF_TYPE@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x8, _RF5225@GOTPAGE
Lloh51:
	ldr	x8, [x8, _RF5225@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh53:
	adrp	x1, l_.str@PAGE
Lloh54:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_2:
Lloh55:
	adrp	x21, _EEPROM_NIC@GOTPAGE
Lloh56:
	ldr	x21, [x21, _EEPROM_NIC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
	cmp	w0, w20
	b.ne	LBB0_4
; %bb.3:
Lloh57:
	adrp	x8, _EEPROM_NIC_ENABLE_DIVERSITY@GOTPAGE
Lloh58:
	ldr	x8, [x8, _EEPROM_NIC_ENABLE_DIVERSITY@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh60:
	adrp	x8, _EEPROM_NIC_TX_DIVERSITY@GOTPAGE
Lloh61:
	ldr	x8, [x8, _EEPROM_NIC_TX_DIVERSITY@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh63:
	adrp	x8, _EEPROM_NIC_RX_FIXED@GOTPAGE
Lloh64:
	ldr	x8, [x8, _EEPROM_NIC_RX_FIXED@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh66:
	adrp	x8, _EEPROM_NIC_TX_FIXED@GOTPAGE
Lloh67:
	ldr	x8, [x8, _EEPROM_NIC_TX_FIXED@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh69:
	adrp	x8, _EEPROM_NIC_EXTERNAL_LNA_BG@GOTPAGE
Lloh70:
	ldr	x8, [x8, _EEPROM_NIC_EXTERNAL_LNA_BG@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh72:
	adrp	x8, _EEPROM_NIC_CARDBUS_ACCEL@GOTPAGE
Lloh73:
	ldr	x8, [x8, _EEPROM_NIC_CARDBUS_ACCEL@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh75:
	adrp	x8, _EEPROM_NIC_EXTERNAL_LNA_A@GOTPAGE
Lloh76:
	ldr	x8, [x8, _EEPROM_NIC_EXTERNAL_LNA_A@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh78:
	adrp	x1, l_.str.1@PAGE
Lloh79:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_4:
Lloh80:
	adrp	x21, _EEPROM_LED@GOTPAGE
Lloh81:
	ldr	x21, [x21, _EEPROM_LED@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
	mov	w20, #65535
	cmp	w0, w20
	b.ne	LBB0_6
; %bb.5:
Lloh82:
	adrp	x8, _EEPROM_LED_LED_MODE@GOTPAGE
Lloh83:
	ldr	x8, [x8, _EEPROM_LED_LED_MODE@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
Lloh85:
	adrp	x8, _LED_MODE_DEFAULT@GOTPAGE
Lloh86:
	ldr	x8, [x8, _LED_MODE_DEFAULT@GOTPAGEOFF]
Lloh87:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh88:
	adrp	x1, l_.str.2@PAGE
Lloh89:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_6:
Lloh90:
	adrp	x21, _EEPROM_FREQ@GOTPAGE
Lloh91:
	ldr	x21, [x21, _EEPROM_FREQ@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
	cmp	w0, w20
	b.ne	LBB0_8
; %bb.7:
Lloh92:
	adrp	x8, _EEPROM_FREQ_OFFSET@GOTPAGE
Lloh93:
	ldr	x8, [x8, _EEPROM_FREQ_OFFSET@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh95:
	adrp	x8, _EEPROM_FREQ_SEQ@GOTPAGE
Lloh96:
	ldr	x8, [x8, _EEPROM_FREQ_SEQ@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh98:
	adrp	x1, l_.str.3@PAGE
Lloh99:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_8:
Lloh100:
	adrp	x20, _EEPROM_RSSI_OFFSET_BG@GOTPAGE
Lloh101:
	ldr	x20, [x20, _EEPROM_RSSI_OFFSET_BG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
Lloh102:
	adrp	x21, _EEPROM_RSSI_OFFSET_BG_1@GOTPAGE
Lloh103:
	ldr	x21, [x21, _EEPROM_RSSI_OFFSET_BG_1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w8, #65535
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh104:
	adrp	x8, _EEPROM_RSSI_OFFSET_BG_2@GOTPAGE
Lloh105:
	ldr	x8, [x8, _EEPROM_RSSI_OFFSET_BG_2@GOTPAGEOFF]
Lloh106:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh107:
	adrp	x1, l_.str.4@PAGE
Lloh108:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
	b	LBB0_15
LBB0_10:
	bl	_rt2x00_get_field16
	sub	w8, w0, #11
	cmn	w8, #22
	b.hi	LBB0_12
; %bb.11:
	ldr	w1, [x21]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
LBB0_12:
	ldr	w0, [sp, #12]
Lloh109:
	adrp	x21, _EEPROM_RSSI_OFFSET_BG_2@GOTPAGE
Lloh110:
	ldr	x21, [x21, _EEPROM_RSSI_OFFSET_BG_2@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_rt2x00_get_field16
	sub	w8, w0, #11
	cmn	w8, #22
	b.hi	LBB0_14
; %bb.13:
	ldr	w1, [x21]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
LBB0_14:
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
LBB0_15:
Lloh111:
	adrp	x20, _EEPROM_RSSI_OFFSET_A@GOTPAGE
Lloh112:
	ldr	x20, [x20, _EEPROM_RSSI_OFFSET_A@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
Lloh113:
	adrp	x21, _EEPROM_RSSI_OFFSET_A_1@GOTPAGE
Lloh114:
	ldr	x21, [x21, _EEPROM_RSSI_OFFSET_A_1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w8, #65535
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.16:
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh115:
	adrp	x8, _EEPROM_RSSI_OFFSET_A_2@GOTPAGE
Lloh116:
	ldr	x8, [x8, _EEPROM_RSSI_OFFSET_A_2@GOTPAGEOFF]
Lloh117:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh118:
	adrp	x1, l_.str.5@PAGE
Lloh119:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
	b	LBB0_22
LBB0_17:
	bl	_rt2x00_get_field16
	sub	w8, w0, #11
	cmn	w8, #22
	b.hi	LBB0_19
; %bb.18:
	ldr	w1, [x21]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
LBB0_19:
	ldr	w0, [sp, #12]
Lloh120:
	adrp	x21, _EEPROM_RSSI_OFFSET_A_2@GOTPAGE
Lloh121:
	ldr	x21, [x21, _EEPROM_RSSI_OFFSET_A_2@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_rt2x00_get_field16
	sub	w8, w0, #11
	cmn	w8, #22
	b.hi	LBB0_21
; %bb.20:
	ldr	w1, [x21]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
LBB0_21:
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
LBB0_22:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGot	Lloh120, Lloh121
	.cfi_endproc
                                        ; -- End function
	.comm	_E2PROM_CSR,4,2                 ; @E2PROM_CSR
	.comm	_rt61pci_eepromregister_read,4,2 ; @rt61pci_eepromregister_read
	.comm	_rt61pci_eepromregister_write,4,2 ; @rt61pci_eepromregister_write
	.comm	_E2PROM_CSR_TYPE_93C46,4,2      ; @E2PROM_CSR_TYPE_93C46
	.comm	_PCI_EEPROM_WIDTH_93C46,4,2     ; @PCI_EEPROM_WIDTH_93C46
	.comm	_PCI_EEPROM_WIDTH_93C66,4,2     ; @PCI_EEPROM_WIDTH_93C66
	.comm	_EEPROM_BASE,4,2                ; @EEPROM_BASE
	.comm	_EEPROM_SIZE,4,2                ; @EEPROM_SIZE
	.comm	_EEPROM_MAC_ADDR_0,4,2          ; @EEPROM_MAC_ADDR_0
	.comm	_EEPROM_ANTENNA,4,2             ; @EEPROM_ANTENNA
	.comm	_EEPROM_ANTENNA_NUM,4,2         ; @EEPROM_ANTENNA_NUM
	.comm	_EEPROM_ANTENNA_TX_DEFAULT,4,2  ; @EEPROM_ANTENNA_TX_DEFAULT
	.comm	_ANTENNA_B,4,2                  ; @ANTENNA_B
	.comm	_EEPROM_ANTENNA_RX_DEFAULT,4,2  ; @EEPROM_ANTENNA_RX_DEFAULT
	.comm	_EEPROM_ANTENNA_FRAME_TYPE,4,2  ; @EEPROM_ANTENNA_FRAME_TYPE
	.comm	_EEPROM_ANTENNA_DYN_TXAGC,4,2   ; @EEPROM_ANTENNA_DYN_TXAGC
	.comm	_EEPROM_ANTENNA_HARDWARE_RADIO,4,2 ; @EEPROM_ANTENNA_HARDWARE_RADIO
	.comm	_EEPROM_ANTENNA_RF_TYPE,4,2     ; @EEPROM_ANTENNA_RF_TYPE
	.comm	_RF5225,4,2                     ; @RF5225
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Antenna: 0x%04x\n"

	.comm	_EEPROM_NIC,4,2                 ; @EEPROM_NIC
	.comm	_EEPROM_NIC_ENABLE_DIVERSITY,4,2 ; @EEPROM_NIC_ENABLE_DIVERSITY
	.comm	_EEPROM_NIC_TX_DIVERSITY,4,2    ; @EEPROM_NIC_TX_DIVERSITY
	.comm	_EEPROM_NIC_RX_FIXED,4,2        ; @EEPROM_NIC_RX_FIXED
	.comm	_EEPROM_NIC_TX_FIXED,4,2        ; @EEPROM_NIC_TX_FIXED
	.comm	_EEPROM_NIC_EXTERNAL_LNA_BG,4,2 ; @EEPROM_NIC_EXTERNAL_LNA_BG
	.comm	_EEPROM_NIC_CARDBUS_ACCEL,4,2   ; @EEPROM_NIC_CARDBUS_ACCEL
	.comm	_EEPROM_NIC_EXTERNAL_LNA_A,4,2  ; @EEPROM_NIC_EXTERNAL_LNA_A
l_.str.1:                               ; @.str.1
	.asciz	"NIC: 0x%04x\n"

	.comm	_EEPROM_LED,4,2                 ; @EEPROM_LED
	.comm	_EEPROM_LED_LED_MODE,4,2        ; @EEPROM_LED_LED_MODE
	.comm	_LED_MODE_DEFAULT,4,2           ; @LED_MODE_DEFAULT
l_.str.2:                               ; @.str.2
	.asciz	"Led: 0x%04x\n"

	.comm	_EEPROM_FREQ,4,2                ; @EEPROM_FREQ
	.comm	_EEPROM_FREQ_OFFSET,4,2         ; @EEPROM_FREQ_OFFSET
	.comm	_EEPROM_FREQ_SEQ,4,2            ; @EEPROM_FREQ_SEQ
l_.str.3:                               ; @.str.3
	.asciz	"Freq: 0x%04x\n"

	.comm	_EEPROM_RSSI_OFFSET_BG,4,2      ; @EEPROM_RSSI_OFFSET_BG
	.comm	_EEPROM_RSSI_OFFSET_BG_1,4,2    ; @EEPROM_RSSI_OFFSET_BG_1
	.comm	_EEPROM_RSSI_OFFSET_BG_2,4,2    ; @EEPROM_RSSI_OFFSET_BG_2
l_.str.4:                               ; @.str.4
	.asciz	"RSSI OFFSET BG: 0x%04x\n"

	.comm	_EEPROM_RSSI_OFFSET_A,4,2       ; @EEPROM_RSSI_OFFSET_A
	.comm	_EEPROM_RSSI_OFFSET_A_1,4,2     ; @EEPROM_RSSI_OFFSET_A_1
	.comm	_EEPROM_RSSI_OFFSET_A_2,4,2     ; @EEPROM_RSSI_OFFSET_A_2
l_.str.5:                               ; @.str.5
	.asciz	"RSSI OFFSET A: 0x%04x\n"

	.no_dead_strip	_rt61pci_validate_eeprom
.subsections_via_symbols
