	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt73usb_validate_eeprom
_rt73usb_validate_eeprom:               ## @rt73usb_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, %rbx
	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	%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_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_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	_RF5226@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_2:
	movq	_EEPROM_NIC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_4
## %bb.3:
	movq	_EEPROM_NIC_EXTERNAL_LNA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	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.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_dbg
LBB0_4:
	movq	_EEPROM_LED@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, -36(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_6
## %bb.5:
	movq	_EEPROM_LED_POLARITY_RDY_G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_LED_POLARITY_RDY_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_LED_POLARITY_ACT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_LED_POLARITY_GPIO_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_LED_POLARITY_GPIO_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_LED_POLARITY_GPIO_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_LED_POLARITY_GPIO_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_LED_POLARITY_GPIO_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_EEPROM_LED_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
	movl	(%r15), %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_6:
	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_8
## %bb.7:
	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_8:
	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_10
## %bb.9:
	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_15
LBB0_10:
	movl	%eax, %edi
	callq	_rt2x00_get_field16
	addl	$-11, %eax
	cmpl	$-22, %eax
	ja	LBB0_12
## %bb.11:
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
LBB0_12:
	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_14
## %bb.13:
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
LBB0_14:
	movl	(%r15), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_write
LBB0_15:
	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_17
## %bb.16:
	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_22
LBB0_17:
	movl	%eax, %edi
	callq	_rt2x00_get_field16
	addl	$-11, %eax
	cmpl	$-22, %eax
	ja	LBB0_19
## %bb.18:
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
LBB0_19:
	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_21
## %bb.20:
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
LBB0_21:
	movl	(%r15), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_eeprom_write
LBB0_22:
	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_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	_RF5226,4,2                     ## @RF5226
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Antenna: 0x%04x\n"

	.comm	_EEPROM_NIC,4,2                 ## @EEPROM_NIC
	.comm	_EEPROM_NIC_EXTERNAL_LNA,4,2    ## @EEPROM_NIC_EXTERNAL_LNA
L_.str.1:                               ## @.str.1
	.asciz	"NIC: 0x%04x\n"

	.comm	_EEPROM_LED,4,2                 ## @EEPROM_LED
	.comm	_EEPROM_LED_POLARITY_RDY_G,4,2  ## @EEPROM_LED_POLARITY_RDY_G
	.comm	_EEPROM_LED_POLARITY_RDY_A,4,2  ## @EEPROM_LED_POLARITY_RDY_A
	.comm	_EEPROM_LED_POLARITY_ACT,4,2    ## @EEPROM_LED_POLARITY_ACT
	.comm	_EEPROM_LED_POLARITY_GPIO_0,4,2 ## @EEPROM_LED_POLARITY_GPIO_0
	.comm	_EEPROM_LED_POLARITY_GPIO_1,4,2 ## @EEPROM_LED_POLARITY_GPIO_1
	.comm	_EEPROM_LED_POLARITY_GPIO_2,4,2 ## @EEPROM_LED_POLARITY_GPIO_2
	.comm	_EEPROM_LED_POLARITY_GPIO_3,4,2 ## @EEPROM_LED_POLARITY_GPIO_3
	.comm	_EEPROM_LED_POLARITY_GPIO_4,4,2 ## @EEPROM_LED_POLARITY_GPIO_4
	.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	_rt73usb_validate_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt73usb_validate_eeprom
_rt73usb_validate_eeprom:               ; @rt73usb_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_B@GOTPAGE
Lloh15:
	ldr	x22, [x22, _ANTENNA_B@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_FRAME_TYPE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EEPROM_ANTENNA_FRAME_TYPE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh22:
	adrp	x8, _EEPROM_ANTENNA_DYN_TXAGC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EEPROM_ANTENNA_DYN_TXAGC@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh25:
	adrp	x8, _EEPROM_ANTENNA_HARDWARE_RADIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EEPROM_ANTENNA_HARDWARE_RADIO@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh28:
	adrp	x8, _EEPROM_ANTENNA_RF_TYPE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EEPROM_ANTENNA_RF_TYPE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _RF5226@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RF5226@GOTPAGEOFF]
Lloh33:
	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]
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_2:
Lloh36:
	adrp	x21, _EEPROM_NIC@GOTPAGE
Lloh37:
	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:
Lloh38:
	adrp	x8, _EEPROM_NIC_EXTERNAL_LNA@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EEPROM_NIC_EXTERNAL_LNA@GOTPAGEOFF]
Lloh40:
	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]
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_4:
Lloh43:
	adrp	x21, _EEPROM_LED@GOTPAGE
Lloh44:
	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:
Lloh45:
	adrp	x8, _EEPROM_LED_POLARITY_RDY_G@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EEPROM_LED_POLARITY_RDY_G@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh48:
	adrp	x8, _EEPROM_LED_POLARITY_RDY_A@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EEPROM_LED_POLARITY_RDY_A@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh51:
	adrp	x8, _EEPROM_LED_POLARITY_ACT@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EEPROM_LED_POLARITY_ACT@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh54:
	adrp	x8, _EEPROM_LED_POLARITY_GPIO_0@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EEPROM_LED_POLARITY_GPIO_0@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh57:
	adrp	x8, _EEPROM_LED_POLARITY_GPIO_1@GOTPAGE
Lloh58:
	ldr	x8, [x8, _EEPROM_LED_POLARITY_GPIO_1@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh60:
	adrp	x8, _EEPROM_LED_POLARITY_GPIO_2@GOTPAGE
Lloh61:
	ldr	x8, [x8, _EEPROM_LED_POLARITY_GPIO_2@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh63:
	adrp	x8, _EEPROM_LED_POLARITY_GPIO_3@GOTPAGE
Lloh64:
	ldr	x8, [x8, _EEPROM_LED_POLARITY_GPIO_3@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh66:
	adrp	x8, _EEPROM_LED_POLARITY_GPIO_4@GOTPAGE
Lloh67:
	ldr	x8, [x8, _EEPROM_LED_POLARITY_GPIO_4@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh69:
	adrp	x8, _EEPROM_LED_LED_MODE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _EEPROM_LED_LED_MODE@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
Lloh72:
	adrp	x8, _LED_MODE_DEFAULT@GOTPAGE
Lloh73:
	ldr	x8, [x8, _LED_MODE_DEFAULT@GOTPAGEOFF]
Lloh74:
	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]
Lloh75:
	adrp	x1, l_.str.2@PAGE
Lloh76:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_6:
Lloh77:
	adrp	x21, _EEPROM_FREQ@GOTPAGE
Lloh78:
	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:
Lloh79:
	adrp	x8, _EEPROM_FREQ_OFFSET@GOTPAGE
Lloh80:
	ldr	x8, [x8, _EEPROM_FREQ_OFFSET@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh82:
	adrp	x8, _EEPROM_FREQ_SEQ@GOTPAGE
Lloh83:
	ldr	x8, [x8, _EEPROM_FREQ_SEQ@GOTPAGEOFF]
Lloh84:
	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]
Lloh85:
	adrp	x1, l_.str.3@PAGE
Lloh86:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_eeprom_dbg
LBB0_8:
Lloh87:
	adrp	x20, _EEPROM_RSSI_OFFSET_BG@GOTPAGE
Lloh88:
	ldr	x20, [x20, _EEPROM_RSSI_OFFSET_BG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
Lloh89:
	adrp	x21, _EEPROM_RSSI_OFFSET_BG_1@GOTPAGE
Lloh90:
	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
Lloh91:
	adrp	x8, _EEPROM_RSSI_OFFSET_BG_2@GOTPAGE
Lloh92:
	ldr	x8, [x8, _EEPROM_RSSI_OFFSET_BG_2@GOTPAGEOFF]
Lloh93:
	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]
Lloh94:
	adrp	x1, l_.str.4@PAGE
Lloh95:
	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]
Lloh96:
	adrp	x21, _EEPROM_RSSI_OFFSET_BG_2@GOTPAGE
Lloh97:
	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:
Lloh98:
	adrp	x20, _EEPROM_RSSI_OFFSET_A@GOTPAGE
Lloh99:
	ldr	x20, [x20, _EEPROM_RSSI_OFFSET_A@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	str	w0, [sp, #12]
Lloh100:
	adrp	x21, _EEPROM_RSSI_OFFSET_A_1@GOTPAGE
Lloh101:
	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
Lloh102:
	adrp	x8, _EEPROM_RSSI_OFFSET_A_2@GOTPAGE
Lloh103:
	ldr	x8, [x8, _EEPROM_RSSI_OFFSET_A_2@GOTPAGEOFF]
Lloh104:
	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]
Lloh105:
	adrp	x1, l_.str.5@PAGE
Lloh106:
	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]
Lloh107:
	adrp	x21, _EEPROM_RSSI_OFFSET_A_2@GOTPAGE
Lloh108:
	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, #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	Lloh34, Lloh35
	.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	Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh75, Lloh76
	.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 AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh107, Lloh108
	.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_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	_RF5226,4,2                     ; @RF5226
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Antenna: 0x%04x\n"

	.comm	_EEPROM_NIC,4,2                 ; @EEPROM_NIC
	.comm	_EEPROM_NIC_EXTERNAL_LNA,4,2    ; @EEPROM_NIC_EXTERNAL_LNA
l_.str.1:                               ; @.str.1
	.asciz	"NIC: 0x%04x\n"

	.comm	_EEPROM_LED,4,2                 ; @EEPROM_LED
	.comm	_EEPROM_LED_POLARITY_RDY_G,4,2  ; @EEPROM_LED_POLARITY_RDY_G
	.comm	_EEPROM_LED_POLARITY_RDY_A,4,2  ; @EEPROM_LED_POLARITY_RDY_A
	.comm	_EEPROM_LED_POLARITY_ACT,4,2    ; @EEPROM_LED_POLARITY_ACT
	.comm	_EEPROM_LED_POLARITY_GPIO_0,4,2 ; @EEPROM_LED_POLARITY_GPIO_0
	.comm	_EEPROM_LED_POLARITY_GPIO_1,4,2 ; @EEPROM_LED_POLARITY_GPIO_1
	.comm	_EEPROM_LED_POLARITY_GPIO_2,4,2 ; @EEPROM_LED_POLARITY_GPIO_2
	.comm	_EEPROM_LED_POLARITY_GPIO_3,4,2 ; @EEPROM_LED_POLARITY_GPIO_3
	.comm	_EEPROM_LED_POLARITY_GPIO_4,4,2 ; @EEPROM_LED_POLARITY_GPIO_4
	.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	_rt73usb_validate_eeprom
.subsections_via_symbols
