	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2500usb_validate_eeprom
_rt2500usb_validate_eeprom:             ## @rt2500usb_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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %esi
	movq	_EEPROM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rt2x00usb_eeprom_read
	movq	_EEPROM_MAC_ADDR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_addr
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_rt2x00lib_set_mac_address
	movq	_EEPROM_ANTENNA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_2
## %bb.1:
	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_SW_DIVERSITY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_rt2x00_set_field16
	movq	_EEPROM_ANTENNA_RX_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_rt2x00_set_field16
	movq	_EEPROM_ANTENNA_LED_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LED_MODE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	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	_RF2522@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rt2x00_set_field16
	movl	(%r12), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_2:
	movq	_EEPROM_NIC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_4
## %bb.3:
	movq	_EEPROM_NIC_CARDBUS_ACCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_NIC_DYN_BBP_TUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_NIC_CCK_TX_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r14), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_4:
	movq	_EEPROM_CALIBRATE_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_6
## %bb.5:
	movq	_EEPROM_CALIBRATE_OFFSET_RSSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEFAULT_RSSI_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rdi
	callq	_rt2x00_set_field16
	movl	(%rbx), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_6:
	movq	_EEPROM_BBPTUNE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_8
## %bb.7:
	movq	_EEPROM_BBPTUNE_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdi
	movl	$45, %edx
	callq	_rt2x00_set_field16
	movl	(%rbx), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_8:
	movq	%r15, %rdi
	movl	$17, %esi
	callq	_rt2500usb_bbp_read
	movl	%eax, %ebx
	addl	$-6, %ebx
	movq	_EEPROM_BBPTUNE_VGC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_10
## %bb.9:
	movq	_EEPROM_BBPTUNE_VGCUPPER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_BBPTUNE_VGCLOWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_rt2x00_set_field16
	movl	(%r12), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_dbg
	jmp	LBB0_11
LBB0_10:
	movq	_EEPROM_BBPTUNE_VGCLOWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdi
	movl	%ebx, %edx
	callq	_rt2x00_set_field16
	movl	(%r12), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_write
LBB0_11:
	movq	_EEPROM_BBPTUNE_R17@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_13
## %bb.12:
	movq	_EEPROM_BBPTUNE_R17_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	movl	$72, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_BBPTUNE_R17_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$65, %edx
	callq	_rt2x00_set_field16
	movl	(%rbx), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_13:
	movq	_EEPROM_BBPTUNE_R24@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_15
## %bb.14:
	movq	_EEPROM_BBPTUNE_R24_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_BBPTUNE_R24_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_rt2x00_set_field16
	movl	(%rbx), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_15:
	movq	_EEPROM_BBPTUNE_R25@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_17
## %bb.16:
	movq	_EEPROM_BBPTUNE_R25_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_BBPTUNE_R25_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$80, %edx
	callq	_rt2x00_set_field16
	movl	(%rbx), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_17:
	movq	_EEPROM_BBPTUNE_R61@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_19
## %bb.18:
	movq	_EEPROM_BBPTUNE_R61_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	movl	$96, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_BBPTUNE_R61_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$109, %edx
	callq	_rt2x00_set_field16
	movl	(%rbx), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_write
	movl	-36(%rbp), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_19:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_SW_DIVERSITY,4,2       ## @ANTENNA_SW_DIVERSITY
	.comm	_EEPROM_ANTENNA_RX_DEFAULT,4,2  ## @EEPROM_ANTENNA_RX_DEFAULT
	.comm	_EEPROM_ANTENNA_LED_MODE,4,2    ## @EEPROM_ANTENNA_LED_MODE
	.comm	_LED_MODE_DEFAULT,4,2           ## @LED_MODE_DEFAULT
	.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	_RF2522,4,2                     ## @RF2522
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Antenna: 0x%04x\n"

	.comm	_EEPROM_NIC,4,2                 ## @EEPROM_NIC
	.comm	_EEPROM_NIC_CARDBUS_ACCEL,4,2   ## @EEPROM_NIC_CARDBUS_ACCEL
	.comm	_EEPROM_NIC_DYN_BBP_TUNE,4,2    ## @EEPROM_NIC_DYN_BBP_TUNE
	.comm	_EEPROM_NIC_CCK_TX_POWER,4,2    ## @EEPROM_NIC_CCK_TX_POWER
L_.str.1:                               ## @.str.1
	.asciz	"NIC: 0x%04x\n"

	.comm	_EEPROM_CALIBRATE_OFFSET,4,2    ## @EEPROM_CALIBRATE_OFFSET
	.comm	_EEPROM_CALIBRATE_OFFSET_RSSI,4,2 ## @EEPROM_CALIBRATE_OFFSET_RSSI
	.comm	_DEFAULT_RSSI_OFFSET,4,2        ## @DEFAULT_RSSI_OFFSET
L_.str.2:                               ## @.str.2
	.asciz	"Calibrate offset: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE,4,2             ## @EEPROM_BBPTUNE
	.comm	_EEPROM_BBPTUNE_THRESHOLD,4,2   ## @EEPROM_BBPTUNE_THRESHOLD
L_.str.3:                               ## @.str.3
	.asciz	"BBPtune: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE_VGC,4,2         ## @EEPROM_BBPTUNE_VGC
	.comm	_EEPROM_BBPTUNE_VGCUPPER,4,2    ## @EEPROM_BBPTUNE_VGCUPPER
	.comm	_EEPROM_BBPTUNE_VGCLOWER,4,2    ## @EEPROM_BBPTUNE_VGCLOWER
L_.str.4:                               ## @.str.4
	.asciz	"BBPtune vgc: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE_R17,4,2         ## @EEPROM_BBPTUNE_R17
	.comm	_EEPROM_BBPTUNE_R17_LOW,4,2     ## @EEPROM_BBPTUNE_R17_LOW
	.comm	_EEPROM_BBPTUNE_R17_HIGH,4,2    ## @EEPROM_BBPTUNE_R17_HIGH
L_.str.5:                               ## @.str.5
	.asciz	"BBPtune r17: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE_R24,4,2         ## @EEPROM_BBPTUNE_R24
	.comm	_EEPROM_BBPTUNE_R24_LOW,4,2     ## @EEPROM_BBPTUNE_R24_LOW
	.comm	_EEPROM_BBPTUNE_R24_HIGH,4,2    ## @EEPROM_BBPTUNE_R24_HIGH
L_.str.6:                               ## @.str.6
	.asciz	"BBPtune r24: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE_R25,4,2         ## @EEPROM_BBPTUNE_R25
	.comm	_EEPROM_BBPTUNE_R25_LOW,4,2     ## @EEPROM_BBPTUNE_R25_LOW
	.comm	_EEPROM_BBPTUNE_R25_HIGH,4,2    ## @EEPROM_BBPTUNE_R25_HIGH
L_.str.7:                               ## @.str.7
	.asciz	"BBPtune r25: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE_R61,4,2         ## @EEPROM_BBPTUNE_R61
	.comm	_EEPROM_BBPTUNE_R61_LOW,4,2     ## @EEPROM_BBPTUNE_R61_LOW
	.comm	_EEPROM_BBPTUNE_R61_HIGH,4,2    ## @EEPROM_BBPTUNE_R61_HIGH
L_.str.8:                               ## @.str.8
	.asciz	"BBPtune r61: 0x%04x\n"

	.no_dead_strip	_rt2500usb_validate_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2500usb_validate_eeprom
_rt2500usb_validate_eeprom:             ; @rt2500usb_validate_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w1, [x0]
Lloh0:
	adrp	x8, _EEPROM_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_rt2x00usb_eeprom_read
Lloh3:
	adrp	x8, _EEPROM_MAC_ADDR_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEPROM_MAC_ADDR_0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_eeprom_addr
	mov	x1, x0
	mov	x0, x19
	bl	_rt2x00lib_set_mac_address
Lloh6:
	adrp	x21, _EEPROM_ANTENNA@GOTPAGE
Lloh7:
	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:
Lloh8:
	adrp	x8, _EEPROM_ANTENNA_NUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEPROM_ANTENNA_NUM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #2
	bl	_rt2x00_set_field16
Lloh11:
	adrp	x8, _EEPROM_ANTENNA_TX_DEFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EEPROM_ANTENNA_TX_DEFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x22, _ANTENNA_SW_DIVERSITY@GOTPAGE
Lloh15:
	ldr	x22, [x22, _ANTENNA_SW_DIVERSITY@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x0, sp, #12
	bl	_rt2x00_set_field16
Lloh16:
	adrp	x8, _EEPROM_ANTENNA_RX_DEFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EEPROM_ANTENNA_RX_DEFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x22]
	add	x0, sp, #12
	bl	_rt2x00_set_field16
Lloh19:
	adrp	x8, _EEPROM_ANTENNA_LED_MODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EEPROM_ANTENNA_LED_MODE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _LED_MODE_DEFAULT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LED_MODE_DEFAULT@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field16
Lloh25:
	adrp	x8, _EEPROM_ANTENNA_DYN_TXAGC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EEPROM_ANTENNA_DYN_TXAGC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh28:
	adrp	x8, _EEPROM_ANTENNA_HARDWARE_RADIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EEPROM_ANTENNA_HARDWARE_RADIO@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh31:
	adrp	x8, _EEPROM_ANTENNA_RF_TYPE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EEPROM_ANTENNA_RF_TYPE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _RF2522@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RF2522@GOTPAGEOFF]
Lloh36:
	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]
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_2:
Lloh39:
	adrp	x21, _EEPROM_NIC@GOTPAGE
Lloh40:
	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:
Lloh41:
	adrp	x8, _EEPROM_NIC_CARDBUS_ACCEL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EEPROM_NIC_CARDBUS_ACCEL@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh44:
	adrp	x8, _EEPROM_NIC_DYN_BBP_TUNE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EEPROM_NIC_DYN_BBP_TUNE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh47:
	adrp	x8, _EEPROM_NIC_CCK_TX_POWER@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EEPROM_NIC_CCK_TX_POWER@GOTPAGEOFF]
Lloh49:
	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]
Lloh50:
	adrp	x1, l_.str.1@PAGE
Lloh51:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_4:
Lloh52:
	adrp	x21, _EEPROM_CALIBRATE_OFFSET@GOTPAGE
Lloh53:
	ldr	x21, [x21, _EEPROM_CALIBRATE_OFFSET@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:
Lloh54:
	adrp	x8, _EEPROM_CALIBRATE_OFFSET_RSSI@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EEPROM_CALIBRATE_OFFSET_RSSI@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _DEFAULT_RSSI_OFFSET@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DEFAULT_RSSI_OFFSET@GOTPAGEOFF]
Lloh59:
	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]
Lloh60:
	adrp	x1, l_.str.2@PAGE
Lloh61:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_6:
Lloh62:
	adrp	x21, _EEPROM_BBPTUNE@GOTPAGE
Lloh63:
	ldr	x21, [x21, _EEPROM_BBPTUNE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
	cmp	w0, w20
	b.ne	LBB0_8
; %bb.7:
Lloh64:
	adrp	x8, _EEPROM_BBPTUNE_THRESHOLD@GOTPAGE
Lloh65:
	ldr	x8, [x8, _EEPROM_BBPTUNE_THRESHOLD@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #45
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh67:
	adrp	x1, l_.str.3@PAGE
Lloh68:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_8:
	mov	x0, x19
	mov	w1, #17
	bl	_rt2500usb_bbp_read
	sub	w20, w0, #6
Lloh69:
	adrp	x21, _EEPROM_BBPTUNE_VGC@GOTPAGE
Lloh70:
	ldr	x21, [x21, _EEPROM_BBPTUNE_VGC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
	mov	w8, #65535
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
Lloh71:
	adrp	x8, _EEPROM_BBPTUNE_VGCUPPER@GOTPAGE
Lloh72:
	ldr	x8, [x8, _EEPROM_BBPTUNE_VGCUPPER@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #64
	bl	_rt2x00_set_field16
Lloh74:
	adrp	x8, _EEPROM_BBPTUNE_VGCLOWER@GOTPAGE
Lloh75:
	ldr	x8, [x8, _EEPROM_BBPTUNE_VGCLOWER@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	x2, x20
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh77:
	adrp	x1, l_.str.4@PAGE
Lloh78:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
	b	LBB0_11
LBB0_10:
Lloh79:
	adrp	x8, _EEPROM_BBPTUNE_VGCLOWER@GOTPAGE
Lloh80:
	ldr	x8, [x8, _EEPROM_BBPTUNE_VGCLOWER@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	x2, x20
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
LBB0_11:
Lloh82:
	adrp	x21, _EEPROM_BBPTUNE_R17@GOTPAGE
Lloh83:
	ldr	x21, [x21, _EEPROM_BBPTUNE_R17@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
	mov	w20, #65535
	cmp	w0, w20
	b.ne	LBB0_13
; %bb.12:
Lloh84:
	adrp	x8, _EEPROM_BBPTUNE_R17_LOW@GOTPAGE
Lloh85:
	ldr	x8, [x8, _EEPROM_BBPTUNE_R17_LOW@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #72
	bl	_rt2x00_set_field16
Lloh87:
	adrp	x8, _EEPROM_BBPTUNE_R17_HIGH@GOTPAGE
Lloh88:
	ldr	x8, [x8, _EEPROM_BBPTUNE_R17_HIGH@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #65
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh90:
	adrp	x1, l_.str.5@PAGE
Lloh91:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_13:
Lloh92:
	adrp	x21, _EEPROM_BBPTUNE_R24@GOTPAGE
Lloh93:
	ldr	x21, [x21, _EEPROM_BBPTUNE_R24@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
	cmp	w0, w20
	b.ne	LBB0_15
; %bb.14:
Lloh94:
	adrp	x8, _EEPROM_BBPTUNE_R24_LOW@GOTPAGE
Lloh95:
	ldr	x8, [x8, _EEPROM_BBPTUNE_R24_LOW@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #64
	bl	_rt2x00_set_field16
Lloh97:
	adrp	x8, _EEPROM_BBPTUNE_R24_HIGH@GOTPAGE
Lloh98:
	ldr	x8, [x8, _EEPROM_BBPTUNE_R24_HIGH@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #128
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh100:
	adrp	x1, l_.str.6@PAGE
Lloh101:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_15:
Lloh102:
	adrp	x21, _EEPROM_BBPTUNE_R25@GOTPAGE
Lloh103:
	ldr	x21, [x21, _EEPROM_BBPTUNE_R25@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
	mov	w20, #65535
	cmp	w0, w20
	b.ne	LBB0_17
; %bb.16:
Lloh104:
	adrp	x8, _EEPROM_BBPTUNE_R25_LOW@GOTPAGE
Lloh105:
	ldr	x8, [x8, _EEPROM_BBPTUNE_R25_LOW@GOTPAGEOFF]
Lloh106:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #64
	bl	_rt2x00_set_field16
Lloh107:
	adrp	x8, _EEPROM_BBPTUNE_R25_HIGH@GOTPAGE
Lloh108:
	ldr	x8, [x8, _EEPROM_BBPTUNE_R25_HIGH@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #80
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh110:
	adrp	x1, l_.str.7@PAGE
Lloh111:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_17:
Lloh112:
	adrp	x21, _EEPROM_BBPTUNE_R61@GOTPAGE
Lloh113:
	ldr	x21, [x21, _EEPROM_BBPTUNE_R61@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
	cmp	w0, w20
	b.ne	LBB0_19
; %bb.18:
Lloh114:
	adrp	x8, _EEPROM_BBPTUNE_R61_LOW@GOTPAGE
Lloh115:
	ldr	x8, [x8, _EEPROM_BBPTUNE_R61_LOW@GOTPAGEOFF]
Lloh116:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #96
	bl	_rt2x00_set_field16
Lloh117:
	adrp	x8, _EEPROM_BBPTUNE_R61_HIGH@GOTPAGE
Lloh118:
	ldr	x8, [x8, _EEPROM_BBPTUNE_R61_HIGH@GOTPAGEOFF]
Lloh119:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #109
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_eeprom_write
	ldr	w2, [sp, #12]
Lloh120:
	adrp	x1, l_.str.8@PAGE
Lloh121:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_19:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh112, Lloh113
	.loh AdrpAdd	Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.cfi_endproc
                                        ; -- End function
	.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_SW_DIVERSITY,4,2       ; @ANTENNA_SW_DIVERSITY
	.comm	_EEPROM_ANTENNA_RX_DEFAULT,4,2  ; @EEPROM_ANTENNA_RX_DEFAULT
	.comm	_EEPROM_ANTENNA_LED_MODE,4,2    ; @EEPROM_ANTENNA_LED_MODE
	.comm	_LED_MODE_DEFAULT,4,2           ; @LED_MODE_DEFAULT
	.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	_RF2522,4,2                     ; @RF2522
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Antenna: 0x%04x\n"

	.comm	_EEPROM_NIC,4,2                 ; @EEPROM_NIC
	.comm	_EEPROM_NIC_CARDBUS_ACCEL,4,2   ; @EEPROM_NIC_CARDBUS_ACCEL
	.comm	_EEPROM_NIC_DYN_BBP_TUNE,4,2    ; @EEPROM_NIC_DYN_BBP_TUNE
	.comm	_EEPROM_NIC_CCK_TX_POWER,4,2    ; @EEPROM_NIC_CCK_TX_POWER
l_.str.1:                               ; @.str.1
	.asciz	"NIC: 0x%04x\n"

	.comm	_EEPROM_CALIBRATE_OFFSET,4,2    ; @EEPROM_CALIBRATE_OFFSET
	.comm	_EEPROM_CALIBRATE_OFFSET_RSSI,4,2 ; @EEPROM_CALIBRATE_OFFSET_RSSI
	.comm	_DEFAULT_RSSI_OFFSET,4,2        ; @DEFAULT_RSSI_OFFSET
l_.str.2:                               ; @.str.2
	.asciz	"Calibrate offset: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE,4,2             ; @EEPROM_BBPTUNE
	.comm	_EEPROM_BBPTUNE_THRESHOLD,4,2   ; @EEPROM_BBPTUNE_THRESHOLD
l_.str.3:                               ; @.str.3
	.asciz	"BBPtune: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE_VGC,4,2         ; @EEPROM_BBPTUNE_VGC
	.comm	_EEPROM_BBPTUNE_VGCUPPER,4,2    ; @EEPROM_BBPTUNE_VGCUPPER
	.comm	_EEPROM_BBPTUNE_VGCLOWER,4,2    ; @EEPROM_BBPTUNE_VGCLOWER
l_.str.4:                               ; @.str.4
	.asciz	"BBPtune vgc: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE_R17,4,2         ; @EEPROM_BBPTUNE_R17
	.comm	_EEPROM_BBPTUNE_R17_LOW,4,2     ; @EEPROM_BBPTUNE_R17_LOW
	.comm	_EEPROM_BBPTUNE_R17_HIGH,4,2    ; @EEPROM_BBPTUNE_R17_HIGH
l_.str.5:                               ; @.str.5
	.asciz	"BBPtune r17: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE_R24,4,2         ; @EEPROM_BBPTUNE_R24
	.comm	_EEPROM_BBPTUNE_R24_LOW,4,2     ; @EEPROM_BBPTUNE_R24_LOW
	.comm	_EEPROM_BBPTUNE_R24_HIGH,4,2    ; @EEPROM_BBPTUNE_R24_HIGH
l_.str.6:                               ; @.str.6
	.asciz	"BBPtune r24: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE_R25,4,2         ; @EEPROM_BBPTUNE_R25
	.comm	_EEPROM_BBPTUNE_R25_LOW,4,2     ; @EEPROM_BBPTUNE_R25_LOW
	.comm	_EEPROM_BBPTUNE_R25_HIGH,4,2    ; @EEPROM_BBPTUNE_R25_HIGH
l_.str.7:                               ; @.str.7
	.asciz	"BBPtune r25: 0x%04x\n"

	.comm	_EEPROM_BBPTUNE_R61,4,2         ; @EEPROM_BBPTUNE_R61
	.comm	_EEPROM_BBPTUNE_R61_LOW,4,2     ; @EEPROM_BBPTUNE_R61_LOW
	.comm	_EEPROM_BBPTUNE_R61_HIGH,4,2    ; @EEPROM_BBPTUNE_R61_HIGH
l_.str.8:                               ; @.str.8
	.asciz	"BBPtune r61: 0x%04x\n"

	.no_dead_strip	_rt2500usb_validate_eeprom
.subsections_via_symbols
