	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt61pci_init_eeprom
_rt61pci_init_eeprom:                   ## @rt61pci_init_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	%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, %r12
	movq	_EEPROM_ANTENNA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rt2x00_eeprom_read
	movl	%eax, %r14d
	movq	_EEPROM_ANTENNA_RF_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	movl	%eax, %r15d
	movq	_MAC_CSR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, %ebx
	movq	_MAC_CSR0_CHIPSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	movl	%eax, %r13d
	movq	_MAC_CSR0_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_rt2x00_set_chip
	movq	_RF5225@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_RF5325@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_RF2527@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_RF2529@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rf
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	_EEPROM_ANTENNA_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.6:
	movq	_CAPABILITY_DOUBLE_ANTENNA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rsi
	callq	___set_bit
LBB0_7:
	movq	_EEPROM_ANTENNA_TX_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	movl	%eax, 20(%r12)
	movq	_EEPROM_ANTENNA_RX_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	movl	%eax, 24(%r12)
	movq	_EEPROM_ANTENNA_FRAME_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_CAPABILITY_FRAME_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rsi
	callq	___set_bit
LBB0_9:
	movq	_EEPROM_ANTENNA_HARDWARE_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_CAPABILITY_HW_BUTTON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rsi
	callq	___set_bit
LBB0_11:
	movq	_EEPROM_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, %ebx
	movq	_EEPROM_FREQ_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field16
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	_CAPABILITY_RF_SEQUENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rsi
	callq	___set_bit
LBB0_13:
	movq	_EEPROM_FREQ_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field16
	movl	%eax, (%r12)
	movq	_EEPROM_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_eeprom_read
	movl	%eax, %r14d
	movq	_EEPROM_NIC_EXTERNAL_LNA_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	_CAPABILITY_EXTERNAL_LNA_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rsi
	callq	___set_bit
LBB0_15:
	movq	_EEPROM_NIC_EXTERNAL_LNA_BG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movq	_CAPABILITY_EXTERNAL_LNA_BG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rsi
	callq	___set_bit
LBB0_17:
	movq	_RF2529@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rf
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:
	movq	%r12, %rdi
	callq	_rt2x00_has_cap_double_antenna
	testl	%eax, %eax
	jne	LBB0_23
## %bb.19:
	movq	_ANTENNA_A@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EEPROM_NIC_RX_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	addl	%ebx, %eax
	movl	%eax, 24(%r12)
	movq	_ANTENNA_B@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EEPROM_NIC_TX_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	subl	%eax, %ebx
	movl	%ebx, 20(%r12)
	movq	_EEPROM_NIC_TX_DIVERSITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	_ANTENNA_SW_DIVERSITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
LBB0_21:
	movq	_EEPROM_NIC_ENABLE_DIVERSITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	_ANTENNA_SW_DIVERSITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
LBB0_23:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_rt2x00_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_ANTENNA,4,2             ## @EEPROM_ANTENNA
	.comm	_EEPROM_ANTENNA_RF_TYPE,4,2     ## @EEPROM_ANTENNA_RF_TYPE
	.comm	_MAC_CSR0,4,2                   ## @MAC_CSR0
	.comm	_MAC_CSR0_CHIPSET,4,2           ## @MAC_CSR0_CHIPSET
	.comm	_MAC_CSR0_REVISION,4,2          ## @MAC_CSR0_REVISION
	.comm	_RF5225,4,2                     ## @RF5225
	.comm	_RF5325,4,2                     ## @RF5325
	.comm	_RF2527,4,2                     ## @RF2527
	.comm	_RF2529,4,2                     ## @RF2529
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid RF chipset detected\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EEPROM_ANTENNA_NUM,4,2         ## @EEPROM_ANTENNA_NUM
	.comm	_CAPABILITY_DOUBLE_ANTENNA,4,2  ## @CAPABILITY_DOUBLE_ANTENNA
	.comm	_EEPROM_ANTENNA_TX_DEFAULT,4,2  ## @EEPROM_ANTENNA_TX_DEFAULT
	.comm	_EEPROM_ANTENNA_RX_DEFAULT,4,2  ## @EEPROM_ANTENNA_RX_DEFAULT
	.comm	_EEPROM_ANTENNA_FRAME_TYPE,4,2  ## @EEPROM_ANTENNA_FRAME_TYPE
	.comm	_CAPABILITY_FRAME_TYPE,4,2      ## @CAPABILITY_FRAME_TYPE
	.comm	_EEPROM_ANTENNA_HARDWARE_RADIO,4,2 ## @EEPROM_ANTENNA_HARDWARE_RADIO
	.comm	_CAPABILITY_HW_BUTTON,4,2       ## @CAPABILITY_HW_BUTTON
	.comm	_EEPROM_FREQ,4,2                ## @EEPROM_FREQ
	.comm	_EEPROM_FREQ_SEQ,4,2            ## @EEPROM_FREQ_SEQ
	.comm	_CAPABILITY_RF_SEQUENCE,4,2     ## @CAPABILITY_RF_SEQUENCE
	.comm	_EEPROM_FREQ_OFFSET,4,2         ## @EEPROM_FREQ_OFFSET
	.comm	_EEPROM_NIC,4,2                 ## @EEPROM_NIC
	.comm	_EEPROM_NIC_EXTERNAL_LNA_A,4,2  ## @EEPROM_NIC_EXTERNAL_LNA_A
	.comm	_CAPABILITY_EXTERNAL_LNA_A,4,2  ## @CAPABILITY_EXTERNAL_LNA_A
	.comm	_EEPROM_NIC_EXTERNAL_LNA_BG,4,2 ## @EEPROM_NIC_EXTERNAL_LNA_BG
	.comm	_CAPABILITY_EXTERNAL_LNA_BG,4,2 ## @CAPABILITY_EXTERNAL_LNA_BG
	.comm	_ANTENNA_A,4,2                  ## @ANTENNA_A
	.comm	_EEPROM_NIC_RX_FIXED,4,2        ## @EEPROM_NIC_RX_FIXED
	.comm	_ANTENNA_B,4,2                  ## @ANTENNA_B
	.comm	_EEPROM_NIC_TX_FIXED,4,2        ## @EEPROM_NIC_TX_FIXED
	.comm	_EEPROM_NIC_TX_DIVERSITY,4,2    ## @EEPROM_NIC_TX_DIVERSITY
	.comm	_ANTENNA_SW_DIVERSITY,8,3       ## @ANTENNA_SW_DIVERSITY
	.comm	_EEPROM_NIC_ENABLE_DIVERSITY,4,2 ## @EEPROM_NIC_ENABLE_DIVERSITY
	.comm	_EEPROM_LED,4,2                 ## @EEPROM_LED
	.comm	_EEPROM_LED_LED_MODE,4,2        ## @EEPROM_LED_LED_MODE
	.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_POLARITY_RDY_A,4,2  ## @EEPROM_LED_POLARITY_RDY_A
	.comm	_EEPROM_LED_POLARITY_RDY_G,4,2  ## @EEPROM_LED_POLARITY_RDY_G
	.comm	_LED_MODE_SIGNAL_STRENGTH,4,2   ## @LED_MODE_SIGNAL_STRENGTH
	.comm	_LED_TYPE_ASSOC,4,2             ## @LED_TYPE_ASSOC
	.comm	_LED_TYPE_QUALITY,4,2           ## @LED_TYPE_QUALITY
	.comm	_LED_TYPE_RADIO,4,2             ## @LED_TYPE_RADIO
	.comm	_MCU_LEDCS_LED_MODE,4,2         ## @MCU_LEDCS_LED_MODE
	.comm	_MCU_LEDCS_POLARITY_ACT,4,2     ## @MCU_LEDCS_POLARITY_ACT
	.comm	_MCU_LEDCS_POLARITY_GPIO_0,4,2  ## @MCU_LEDCS_POLARITY_GPIO_0
	.comm	_MCU_LEDCS_POLARITY_GPIO_1,4,2  ## @MCU_LEDCS_POLARITY_GPIO_1
	.comm	_MCU_LEDCS_POLARITY_GPIO_2,4,2  ## @MCU_LEDCS_POLARITY_GPIO_2
	.comm	_MCU_LEDCS_POLARITY_GPIO_3,4,2  ## @MCU_LEDCS_POLARITY_GPIO_3
	.comm	_MCU_LEDCS_POLARITY_GPIO_4,4,2  ## @MCU_LEDCS_POLARITY_GPIO_4
	.comm	_MCU_LEDCS_POLARITY_READY_A,4,2 ## @MCU_LEDCS_POLARITY_READY_A
	.comm	_MCU_LEDCS_POLARITY_READY_BG,4,2 ## @MCU_LEDCS_POLARITY_READY_BG
	.no_dead_strip	_rt61pci_init_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt61pci_init_eeprom
_rt61pci_init_eeprom:                   ; @rt61pci_init_eeprom
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _EEPROM_ANTENNA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_ANTENNA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rt2x00_eeprom_read
	mov	x20, x0
Lloh3:
	adrp	x8, _EEPROM_ANTENNA_RF_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEPROM_ANTENNA_RF_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_rt2x00_get_field16
	mov	x21, x0
Lloh6:
	adrp	x8, _MAC_CSR0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_CSR0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	mov	x22, x0
Lloh9:
	adrp	x8, _MAC_CSR0_CHIPSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAC_CSR0_CHIPSET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_rt2x00_get_field32
	mov	x23, x0
Lloh12:
	adrp	x8, _MAC_CSR0_REVISION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAC_CSR0_REVISION@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	mov	x3, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_rt2x00_set_chip
Lloh15:
	adrp	x8, _RF5225@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RF5225@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rf
Lloh18:
	adrp	x21, _RF2529@GOTPAGE
Lloh19:
	ldr	x21, [x21, _RF2529@GOTPAGEOFF]
	cbnz	x0, LBB0_4
; %bb.1:
Lloh20:
	adrp	x8, _RF5325@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RF5325@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rf
	cbnz	x0, LBB0_4
; %bb.2:
Lloh23:
	adrp	x8, _RF2527@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RF2527@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rf
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_rf
	cbz	x0, LBB0_24
LBB0_4:
Lloh26:
	adrp	x8, _EEPROM_ANTENNA_NUM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EEPROM_ANTENNA_NUM@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field16
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.5:
Lloh29:
	adrp	x8, _CAPABILITY_DOUBLE_ANTENNA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CAPABILITY_DOUBLE_ANTENNA@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	___set_bit
LBB0_6:
Lloh32:
	adrp	x8, _EEPROM_ANTENNA_TX_DEFAULT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EEPROM_ANTENNA_TX_DEFAULT@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field16
	str	w0, [x19, #20]
Lloh35:
	adrp	x8, _EEPROM_ANTENNA_RX_DEFAULT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EEPROM_ANTENNA_RX_DEFAULT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field16
	str	w0, [x19, #24]
Lloh38:
	adrp	x8, _EEPROM_ANTENNA_FRAME_TYPE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EEPROM_ANTENNA_FRAME_TYPE@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field16
	cbz	w0, LBB0_8
; %bb.7:
Lloh41:
	adrp	x8, _CAPABILITY_FRAME_TYPE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CAPABILITY_FRAME_TYPE@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	___set_bit
LBB0_8:
Lloh44:
	adrp	x8, _EEPROM_ANTENNA_HARDWARE_RADIO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EEPROM_ANTENNA_HARDWARE_RADIO@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field16
	cbz	w0, LBB0_10
; %bb.9:
Lloh47:
	adrp	x8, _CAPABILITY_HW_BUTTON@GOTPAGE
Lloh48:
	ldr	x8, [x8, _CAPABILITY_HW_BUTTON@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	___set_bit
LBB0_10:
Lloh50:
	adrp	x8, _EEPROM_FREQ@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EEPROM_FREQ@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	mov	x20, x0
Lloh53:
	adrp	x8, _EEPROM_FREQ_SEQ@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EEPROM_FREQ_SEQ@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	bl	_rt2x00_get_field16
	cbz	w0, LBB0_12
; %bb.11:
Lloh56:
	adrp	x8, _CAPABILITY_RF_SEQUENCE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _CAPABILITY_RF_SEQUENCE@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	___set_bit
LBB0_12:
Lloh59:
	adrp	x8, _EEPROM_FREQ_OFFSET@GOTPAGE
Lloh60:
	ldr	x8, [x8, _EEPROM_FREQ_OFFSET@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field16
	str	w0, [x19]
Lloh62:
	adrp	x8, _EEPROM_NIC@GOTPAGE
Lloh63:
	ldr	x8, [x8, _EEPROM_NIC@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	mov	x20, x0
Lloh65:
	adrp	x8, _EEPROM_NIC_EXTERNAL_LNA_A@GOTPAGE
Lloh66:
	ldr	x8, [x8, _EEPROM_NIC_EXTERNAL_LNA_A@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	bl	_rt2x00_get_field16
	cbz	w0, LBB0_14
; %bb.13:
Lloh68:
	adrp	x8, _CAPABILITY_EXTERNAL_LNA_A@GOTPAGE
Lloh69:
	ldr	x8, [x8, _CAPABILITY_EXTERNAL_LNA_A@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	___set_bit
LBB0_14:
Lloh71:
	adrp	x8, _EEPROM_NIC_EXTERNAL_LNA_BG@GOTPAGE
Lloh72:
	ldr	x8, [x8, _EEPROM_NIC_EXTERNAL_LNA_BG@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field16
	cbz	w0, LBB0_16
; %bb.15:
Lloh74:
	adrp	x8, _CAPABILITY_EXTERNAL_LNA_BG@GOTPAGE
Lloh75:
	ldr	x8, [x8, _CAPABILITY_EXTERNAL_LNA_BG@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	___set_bit
LBB0_16:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00_rf
	cbz	x0, LBB0_23
; %bb.17:
	mov	x0, x19
	bl	_rt2x00_has_cap_double_antenna
	cbz	w0, LBB0_19
; %bb.18:
	mov	w0, #0
	b	LBB0_23
LBB0_19:
Lloh77:
	adrp	x8, _ANTENNA_A@GOTPAGE
Lloh78:
	ldr	x8, [x8, _ANTENNA_A@GOTPAGEOFF]
Lloh79:
	ldr	w21, [x8]
Lloh80:
	adrp	x8, _EEPROM_NIC_RX_FIXED@GOTPAGE
Lloh81:
	ldr	x8, [x8, _EEPROM_NIC_RX_FIXED@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field16
	add	w8, w0, w21
	str	w8, [x19, #24]
Lloh83:
	adrp	x8, _ANTENNA_B@GOTPAGE
Lloh84:
	ldr	x8, [x8, _ANTENNA_B@GOTPAGEOFF]
Lloh85:
	ldr	w21, [x8]
Lloh86:
	adrp	x8, _EEPROM_NIC_TX_FIXED@GOTPAGE
Lloh87:
	ldr	x8, [x8, _EEPROM_NIC_TX_FIXED@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field16
	sub	w8, w21, w0
	str	w8, [x19, #20]
Lloh89:
	adrp	x8, _EEPROM_NIC_TX_DIVERSITY@GOTPAGE
Lloh90:
	ldr	x8, [x8, _EEPROM_NIC_TX_DIVERSITY@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field16
Lloh92:
	adrp	x21, _ANTENNA_SW_DIVERSITY@GOTPAGE
Lloh93:
	ldr	x21, [x21, _ANTENNA_SW_DIVERSITY@GOTPAGEOFF]
	cbz	w0, LBB0_21
; %bb.20:
	ldr	x8, [x21]
	str	w8, [x19, #20]
LBB0_21:
Lloh94:
	adrp	x8, _EEPROM_NIC_ENABLE_DIVERSITY@GOTPAGE
Lloh95:
	ldr	x8, [x8, _EEPROM_NIC_ENABLE_DIVERSITY@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field16
	cbz	w0, LBB0_23
; %bb.22:
	mov	w0, #0
	ldr	x8, [x21]
	str	w8, [x19, #24]
LBB0_23:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_24:
Lloh97:
	adrp	x1, l_.str@PAGE
Lloh98:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_err
Lloh99:
	adrp	x8, _ENODEV@GOTPAGE
Lloh100:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh101:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh97, Lloh98
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_ANTENNA,4,2             ; @EEPROM_ANTENNA
	.comm	_EEPROM_ANTENNA_RF_TYPE,4,2     ; @EEPROM_ANTENNA_RF_TYPE
	.comm	_MAC_CSR0,4,2                   ; @MAC_CSR0
	.comm	_MAC_CSR0_CHIPSET,4,2           ; @MAC_CSR0_CHIPSET
	.comm	_MAC_CSR0_REVISION,4,2          ; @MAC_CSR0_REVISION
	.comm	_RF5225,4,2                     ; @RF5225
	.comm	_RF5325,4,2                     ; @RF5325
	.comm	_RF2527,4,2                     ; @RF2527
	.comm	_RF2529,4,2                     ; @RF2529
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid RF chipset detected\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EEPROM_ANTENNA_NUM,4,2         ; @EEPROM_ANTENNA_NUM
	.comm	_CAPABILITY_DOUBLE_ANTENNA,4,2  ; @CAPABILITY_DOUBLE_ANTENNA
	.comm	_EEPROM_ANTENNA_TX_DEFAULT,4,2  ; @EEPROM_ANTENNA_TX_DEFAULT
	.comm	_EEPROM_ANTENNA_RX_DEFAULT,4,2  ; @EEPROM_ANTENNA_RX_DEFAULT
	.comm	_EEPROM_ANTENNA_FRAME_TYPE,4,2  ; @EEPROM_ANTENNA_FRAME_TYPE
	.comm	_CAPABILITY_FRAME_TYPE,4,2      ; @CAPABILITY_FRAME_TYPE
	.comm	_EEPROM_ANTENNA_HARDWARE_RADIO,4,2 ; @EEPROM_ANTENNA_HARDWARE_RADIO
	.comm	_CAPABILITY_HW_BUTTON,4,2       ; @CAPABILITY_HW_BUTTON
	.comm	_EEPROM_FREQ,4,2                ; @EEPROM_FREQ
	.comm	_EEPROM_FREQ_SEQ,4,2            ; @EEPROM_FREQ_SEQ
	.comm	_CAPABILITY_RF_SEQUENCE,4,2     ; @CAPABILITY_RF_SEQUENCE
	.comm	_EEPROM_FREQ_OFFSET,4,2         ; @EEPROM_FREQ_OFFSET
	.comm	_EEPROM_NIC,4,2                 ; @EEPROM_NIC
	.comm	_EEPROM_NIC_EXTERNAL_LNA_A,4,2  ; @EEPROM_NIC_EXTERNAL_LNA_A
	.comm	_CAPABILITY_EXTERNAL_LNA_A,4,2  ; @CAPABILITY_EXTERNAL_LNA_A
	.comm	_EEPROM_NIC_EXTERNAL_LNA_BG,4,2 ; @EEPROM_NIC_EXTERNAL_LNA_BG
	.comm	_CAPABILITY_EXTERNAL_LNA_BG,4,2 ; @CAPABILITY_EXTERNAL_LNA_BG
	.comm	_ANTENNA_A,4,2                  ; @ANTENNA_A
	.comm	_EEPROM_NIC_RX_FIXED,4,2        ; @EEPROM_NIC_RX_FIXED
	.comm	_ANTENNA_B,4,2                  ; @ANTENNA_B
	.comm	_EEPROM_NIC_TX_FIXED,4,2        ; @EEPROM_NIC_TX_FIXED
	.comm	_EEPROM_NIC_TX_DIVERSITY,4,2    ; @EEPROM_NIC_TX_DIVERSITY
	.comm	_ANTENNA_SW_DIVERSITY,8,3       ; @ANTENNA_SW_DIVERSITY
	.comm	_EEPROM_NIC_ENABLE_DIVERSITY,4,2 ; @EEPROM_NIC_ENABLE_DIVERSITY
	.comm	_EEPROM_LED,4,2                 ; @EEPROM_LED
	.comm	_EEPROM_LED_LED_MODE,4,2        ; @EEPROM_LED_LED_MODE
	.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_POLARITY_RDY_A,4,2  ; @EEPROM_LED_POLARITY_RDY_A
	.comm	_EEPROM_LED_POLARITY_RDY_G,4,2  ; @EEPROM_LED_POLARITY_RDY_G
	.comm	_LED_MODE_SIGNAL_STRENGTH,4,2   ; @LED_MODE_SIGNAL_STRENGTH
	.comm	_LED_TYPE_ASSOC,4,2             ; @LED_TYPE_ASSOC
	.comm	_LED_TYPE_QUALITY,4,2           ; @LED_TYPE_QUALITY
	.comm	_LED_TYPE_RADIO,4,2             ; @LED_TYPE_RADIO
	.comm	_MCU_LEDCS_LED_MODE,4,2         ; @MCU_LEDCS_LED_MODE
	.comm	_MCU_LEDCS_POLARITY_ACT,4,2     ; @MCU_LEDCS_POLARITY_ACT
	.comm	_MCU_LEDCS_POLARITY_GPIO_0,4,2  ; @MCU_LEDCS_POLARITY_GPIO_0
	.comm	_MCU_LEDCS_POLARITY_GPIO_1,4,2  ; @MCU_LEDCS_POLARITY_GPIO_1
	.comm	_MCU_LEDCS_POLARITY_GPIO_2,4,2  ; @MCU_LEDCS_POLARITY_GPIO_2
	.comm	_MCU_LEDCS_POLARITY_GPIO_3,4,2  ; @MCU_LEDCS_POLARITY_GPIO_3
	.comm	_MCU_LEDCS_POLARITY_GPIO_4,4,2  ; @MCU_LEDCS_POLARITY_GPIO_4
	.comm	_MCU_LEDCS_POLARITY_READY_A,4,2 ; @MCU_LEDCS_POLARITY_READY_A
	.comm	_MCU_LEDCS_POLARITY_READY_BG,4,2 ; @MCU_LEDCS_POLARITY_READY_BG
	.no_dead_strip	_rt61pci_init_eeprom
.subsections_via_symbols
