	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_eeprom_init_header
_ath5k_eeprom_init_header:              ## @ath5k_eeprom_init_header
	.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, %r15
	movq	_AR5K_EEPROM_INFO_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	_AR5K_EEPROM_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_magic@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
	movq	_AR5K_EEPROM_PROTECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_protect@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
	movq	_AR5K_EEPROM_REG_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_regdomain@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
	movq	_AR5K_EEPROM_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_version@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
	movq	_AR5K_EEPROM_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_header@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
	movq	(%r15), %rax
	movq	_AR5K_EEPROM_VERSION_3_0@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jl	LBB0_14
## %bb.1:
	movq	_AR5K_EEPROM_SIZE_UPPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AR5K_EEPROM_READ
	testl	%r12d, %r12d
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AR5K_EEPROM_INFO
	movl	%eax, %edi
	callq	_AR5K_EEPROM_READ
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_3
LBB0_4:
	movq	_AR5K_EEPROM_INFO_CKSUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.5:
	cmpl	(%r13), %r12d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_ATH5K_ERR
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_6:
	movq	(%r15), %rdi
	callq	_AR5K_EEPROM_ANT_GAIN
	movq	_ee_ant_gain@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_AR5K_EEPROM_READ_HDR
	movq	(%r15), %rax
	movq	_AR5K_EEPROM_VERSION_4_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_11
## %bb.7:
	movq	_AR5K_EEPROM_MISC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_misc0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
	movq	_AR5K_EEPROM_MISC1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_misc1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
	movq	_AR5K_EEPROM_MISC2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_misc2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
	movq	16(%r15), %rax
	movq	_AR5K_EEPROM_VERSION_4_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.8:
	movq	_AR5K_EEPROM_MISC3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_misc3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
	movq	16(%r15), %rax
LBB0_9:
	movq	_AR5K_EEPROM_VERSION_5_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_11
## %bb.10:
	movq	_AR5K_EEPROM_MISC4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_misc4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
	movq	_AR5K_EEPROM_MISC5@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_misc5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
	movq	_AR5K_EEPROM_MISC6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ee_misc6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_EEPROM_READ_HDR
LBB0_11:
	movq	(%r15), %rax
	movq	_AR5K_EEPROM_VERSION_3_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_13
## %bb.12:
	movq	_AR5K_EEPROM_OBDB0_2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AR5K_EEPROM_READ
	movq	24(%r15), %rax
	movq	_AR5K_EEPROM_MODE_11B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	$0, (%rax)
	movq	32(%r15), %rax
	movq	(%rax,%rcx,8), %rax
	movl	$0, (%rax)
	movq	_AR5K_EEPROM_OBDB1_2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AR5K_EEPROM_READ
	movq	24(%r15), %rax
	movq	_AR5K_EEPROM_MODE_11G@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	$0, (%rax)
	movq	32(%r15), %rax
	movq	(%rax,%rcx,8), %rax
	movl	$0, (%rax)
LBB0_13:
	movq	_AR5K_EEPROM_IS_HB63@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AR5K_EEPROM_READ
	movl	$0, 40(%r15)
	movq	_AR5K_EEPROM_RFKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AR5K_EEPROM_READ
	movq	_AR5K_EEPROM_RFKILL_GPIO_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_REG_MS
	movq	%rax, 56(%r15)
	movl	$0, 44(%r15)
	movq	_AR5K_EEPROM_PCIE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AR5K_EEPROM_READ
	movl	$0, 48(%r15)
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_INFO_MAX,4,2       ## @AR5K_EEPROM_INFO_MAX
	.comm	_AR5K_EEPROM_MAGIC,4,2          ## @AR5K_EEPROM_MAGIC
	.comm	_ee_magic,4,2                   ## @ee_magic
	.comm	_AR5K_EEPROM_PROTECT,4,2        ## @AR5K_EEPROM_PROTECT
	.comm	_ee_protect,4,2                 ## @ee_protect
	.comm	_AR5K_EEPROM_REG_DOMAIN,4,2     ## @AR5K_EEPROM_REG_DOMAIN
	.comm	_ee_regdomain,4,2               ## @ee_regdomain
	.comm	_AR5K_EEPROM_VERSION,4,2        ## @AR5K_EEPROM_VERSION
	.comm	_ee_version,4,2                 ## @ee_version
	.comm	_AR5K_EEPROM_HDR,4,2            ## @AR5K_EEPROM_HDR
	.comm	_ee_header,4,2                  ## @ee_header
	.comm	_AR5K_EEPROM_VERSION_3_0,8,3    ## @AR5K_EEPROM_VERSION_3_0
	.comm	_AR5K_EEPROM_SIZE_UPPER,4,2     ## @AR5K_EEPROM_SIZE_UPPER
	.comm	_AR5K_EEPROM_SIZE_UPPER_MASK,4,2 ## @AR5K_EEPROM_SIZE_UPPER_MASK
	.comm	_AR5K_EEPROM_SIZE_ENDLOC_SHIFT,4,2 ## @AR5K_EEPROM_SIZE_ENDLOC_SHIFT
	.comm	_AR5K_EEPROM_SIZE_LOWER,4,2     ## @AR5K_EEPROM_SIZE_LOWER
	.comm	_AR5K_EEPROM_INFO_BASE,4,2      ## @AR5K_EEPROM_INFO_BASE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AR5K_EEPROM_INFO_CKSUM,4,2     ## @AR5K_EEPROM_INFO_CKSUM
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Invalid EEPROM checksum: 0x%04x eep_max: 0x%04x (%s)\n"

L_.str.2:                               ## @.str.2
	.asciz	"default size"

L_.str.3:                               ## @.str.3
	.asciz	"custom size"

	.comm	_ee_ant_gain,4,2                ## @ee_ant_gain
	.comm	_AR5K_EEPROM_VERSION_4_0,8,3    ## @AR5K_EEPROM_VERSION_4_0
	.comm	_AR5K_EEPROM_MISC0,4,2          ## @AR5K_EEPROM_MISC0
	.comm	_ee_misc0,4,2                   ## @ee_misc0
	.comm	_AR5K_EEPROM_MISC1,4,2          ## @AR5K_EEPROM_MISC1
	.comm	_ee_misc1,4,2                   ## @ee_misc1
	.comm	_AR5K_EEPROM_MISC2,4,2          ## @AR5K_EEPROM_MISC2
	.comm	_ee_misc2,4,2                   ## @ee_misc2
	.comm	_AR5K_EEPROM_VERSION_4_3,8,3    ## @AR5K_EEPROM_VERSION_4_3
	.comm	_AR5K_EEPROM_MISC3,4,2          ## @AR5K_EEPROM_MISC3
	.comm	_ee_misc3,4,2                   ## @ee_misc3
	.comm	_AR5K_EEPROM_VERSION_5_0,8,3    ## @AR5K_EEPROM_VERSION_5_0
	.comm	_AR5K_EEPROM_MISC4,4,2          ## @AR5K_EEPROM_MISC4
	.comm	_ee_misc4,4,2                   ## @ee_misc4
	.comm	_AR5K_EEPROM_MISC5,4,2          ## @AR5K_EEPROM_MISC5
	.comm	_ee_misc5,4,2                   ## @ee_misc5
	.comm	_AR5K_EEPROM_MISC6,4,2          ## @AR5K_EEPROM_MISC6
	.comm	_ee_misc6,4,2                   ## @ee_misc6
	.comm	_AR5K_EEPROM_VERSION_3_3,8,3    ## @AR5K_EEPROM_VERSION_3_3
	.comm	_AR5K_EEPROM_OBDB0_2GHZ,4,2     ## @AR5K_EEPROM_OBDB0_2GHZ
	.comm	_AR5K_EEPROM_MODE_11B,8,3       ## @AR5K_EEPROM_MODE_11B
	.comm	_AR5K_EEPROM_OBDB1_2GHZ,4,2     ## @AR5K_EEPROM_OBDB1_2GHZ
	.comm	_AR5K_EEPROM_MODE_11G,8,3       ## @AR5K_EEPROM_MODE_11G
	.comm	_AR5K_EEPROM_IS_HB63,4,2        ## @AR5K_EEPROM_IS_HB63
	.comm	_AR5K_SREV_AR2425,4,2           ## @AR5K_SREV_AR2425
	.comm	_AR5K_EEPROM_RFKILL,4,2         ## @AR5K_EEPROM_RFKILL
	.comm	_AR5K_EEPROM_RFKILL_GPIO_SEL,4,2 ## @AR5K_EEPROM_RFKILL_GPIO_SEL
	.comm	_AR5K_EEPROM_RFKILL_POLARITY,4,2 ## @AR5K_EEPROM_RFKILL_POLARITY
	.comm	_AR5K_EEPROM_PCIE_OFFSET,4,2    ## @AR5K_EEPROM_PCIE_OFFSET
	.comm	_AR5K_EEPROM_PCIE_SERDES_SECTION,4,2 ## @AR5K_EEPROM_PCIE_SERDES_SECTION
	.no_dead_strip	_ath5k_eeprom_init_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_eeprom_init_header
_ath5k_eeprom_init_header:              ; @ath5k_eeprom_init_header
	.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
Lloh0:
	adrp	x22, _AR5K_EEPROM_INFO_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AR5K_EEPROM_INFO_MAX@GOTPAGEOFF]
	ldr	w20, [x22]
Lloh2:
	adrp	x8, _AR5K_EEPROM_MAGIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR5K_EEPROM_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ee_magic@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ee_magic@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
Lloh8:
	adrp	x8, _AR5K_EEPROM_PROTECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR5K_EEPROM_PROTECT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ee_protect@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ee_protect@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
Lloh14:
	adrp	x8, _AR5K_EEPROM_REG_DOMAIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR5K_EEPROM_REG_DOMAIN@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _ee_regdomain@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ee_regdomain@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
Lloh20:
	adrp	x8, _AR5K_EEPROM_VERSION@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AR5K_EEPROM_VERSION@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _ee_version@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ee_version@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
Lloh26:
	adrp	x8, _AR5K_EEPROM_HDR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AR5K_EEPROM_HDR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _ee_header@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ee_header@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
	ldr	x8, [x19]
Lloh32:
	adrp	x9, _AR5K_EEPROM_VERSION_3_0@GOTPAGE
Lloh33:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_3_0@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_15
LBB0_2:
Lloh35:
	adrp	x8, _AR5K_EEPROM_SIZE_UPPER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AR5K_EEPROM_SIZE_UPPER@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_AR5K_EEPROM_READ
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_AR5K_EEPROM_INFO
	bl	_AR5K_EEPROM_READ
	add	w21, w21, #1
	cmp	w20, w21
	b.ne	LBB0_4
LBB0_5:
Lloh38:
	adrp	x8, _AR5K_EEPROM_INFO_CKSUM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AR5K_EEPROM_INFO_CKSUM@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w8, [x22]
Lloh41:
	adrp	x9, l_.str.3@PAGE
Lloh42:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh43:
	adrp	x10, l_.str.2@PAGE
Lloh44:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w20, w8
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	bl	_ATH5K_ERR
Lloh47:
	adrp	x8, _EIO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_7:
	ldr	x0, [x19]
	bl	_AR5K_EEPROM_ANT_GAIN
Lloh50:
	adrp	x8, _ee_ant_gain@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ee_ant_gain@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
	ldr	x8, [x19]
Lloh53:
	adrp	x9, _AR5K_EEPROM_VERSION_4_0@GOTPAGE
Lloh54:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_4_0@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.8:
Lloh56:
	adrp	x8, _AR5K_EEPROM_MISC0@GOTPAGE
Lloh57:
	ldr	x8, [x8, _AR5K_EEPROM_MISC0@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
Lloh59:
	adrp	x8, _ee_misc0@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ee_misc0@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
Lloh62:
	adrp	x8, _AR5K_EEPROM_MISC1@GOTPAGE
Lloh63:
	ldr	x8, [x8, _AR5K_EEPROM_MISC1@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
Lloh65:
	adrp	x8, _ee_misc1@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ee_misc1@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
Lloh68:
	adrp	x8, _AR5K_EEPROM_MISC2@GOTPAGE
Lloh69:
	ldr	x8, [x8, _AR5K_EEPROM_MISC2@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
Lloh71:
	adrp	x8, _ee_misc2@GOTPAGE
Lloh72:
	ldr	x8, [x8, _ee_misc2@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
	ldr	x8, [x19, #16]
Lloh74:
	adrp	x9, _AR5K_EEPROM_VERSION_4_3@GOTPAGE
Lloh75:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_4_3@GOTPAGEOFF]
Lloh76:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.9:
Lloh77:
	adrp	x8, _AR5K_EEPROM_MISC3@GOTPAGE
Lloh78:
	ldr	x8, [x8, _AR5K_EEPROM_MISC3@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
Lloh80:
	adrp	x8, _ee_misc3@GOTPAGE
Lloh81:
	ldr	x8, [x8, _ee_misc3@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
	ldr	x8, [x19, #16]
LBB0_10:
Lloh83:
	adrp	x9, _AR5K_EEPROM_VERSION_5_0@GOTPAGE
Lloh84:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_5_0@GOTPAGEOFF]
Lloh85:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.11:
Lloh86:
	adrp	x8, _AR5K_EEPROM_MISC4@GOTPAGE
Lloh87:
	ldr	x8, [x8, _AR5K_EEPROM_MISC4@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
Lloh89:
	adrp	x8, _ee_misc4@GOTPAGE
Lloh90:
	ldr	x8, [x8, _ee_misc4@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
Lloh92:
	adrp	x8, _AR5K_EEPROM_MISC5@GOTPAGE
Lloh93:
	ldr	x8, [x8, _AR5K_EEPROM_MISC5@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x8]
Lloh95:
	adrp	x8, _ee_misc5@GOTPAGE
Lloh96:
	ldr	x8, [x8, _ee_misc5@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
Lloh98:
	adrp	x8, _AR5K_EEPROM_MISC6@GOTPAGE
Lloh99:
	ldr	x8, [x8, _AR5K_EEPROM_MISC6@GOTPAGEOFF]
Lloh100:
	ldr	w0, [x8]
Lloh101:
	adrp	x8, _ee_misc6@GOTPAGE
Lloh102:
	ldr	x8, [x8, _ee_misc6@GOTPAGEOFF]
Lloh103:
	ldr	w1, [x8]
	bl	_AR5K_EEPROM_READ_HDR
LBB0_12:
	ldr	x8, [x19]
Lloh104:
	adrp	x9, _AR5K_EEPROM_VERSION_3_3@GOTPAGE
Lloh105:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_3_3@GOTPAGEOFF]
Lloh106:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.13:
Lloh107:
	adrp	x8, _AR5K_EEPROM_OBDB0_2GHZ@GOTPAGE
Lloh108:
	ldr	x8, [x8, _AR5K_EEPROM_OBDB0_2GHZ@GOTPAGEOFF]
Lloh109:
	ldr	w0, [x8]
	bl	_AR5K_EEPROM_READ
Lloh110:
	adrp	x8, _AR5K_EEPROM_MODE_11B@GOTPAGE
Lloh111:
	ldr	x8, [x8, _AR5K_EEPROM_MODE_11B@GOTPAGEOFF]
Lloh112:
	ldr	x8, [x8]
	lsl	x8, x8, #3
	ldp	x9, x10, [x19, #24]
	ldr	x9, [x9, x8]
	str	wzr, [x9]
	ldr	x8, [x10, x8]
	str	wzr, [x8]
Lloh113:
	adrp	x8, _AR5K_EEPROM_OBDB1_2GHZ@GOTPAGE
Lloh114:
	ldr	x8, [x8, _AR5K_EEPROM_OBDB1_2GHZ@GOTPAGEOFF]
Lloh115:
	ldr	w0, [x8]
	bl	_AR5K_EEPROM_READ
Lloh116:
	adrp	x8, _AR5K_EEPROM_MODE_11G@GOTPAGE
Lloh117:
	ldr	x8, [x8, _AR5K_EEPROM_MODE_11G@GOTPAGEOFF]
Lloh118:
	ldr	x8, [x8]
	lsl	x8, x8, #3
	ldp	x9, x10, [x19, #24]
	ldr	x9, [x9, x8]
	str	wzr, [x9]
	ldr	x8, [x10, x8]
	str	wzr, [x8]
LBB0_14:
Lloh119:
	adrp	x8, _AR5K_EEPROM_IS_HB63@GOTPAGE
Lloh120:
	ldr	x8, [x8, _AR5K_EEPROM_IS_HB63@GOTPAGEOFF]
Lloh121:
	ldr	w0, [x8]
	bl	_AR5K_EEPROM_READ
	str	wzr, [x19, #40]
Lloh122:
	adrp	x8, _AR5K_EEPROM_RFKILL@GOTPAGE
Lloh123:
	ldr	x8, [x8, _AR5K_EEPROM_RFKILL@GOTPAGEOFF]
Lloh124:
	ldr	w0, [x8]
	bl	_AR5K_EEPROM_READ
Lloh125:
	adrp	x8, _AR5K_EEPROM_RFKILL_GPIO_SEL@GOTPAGE
Lloh126:
	ldr	x8, [x8, _AR5K_EEPROM_RFKILL_GPIO_SEL@GOTPAGEOFF]
Lloh127:
	ldr	w1, [x8]
	bl	_AR5K_REG_MS
	str	x0, [x19, #56]
	str	wzr, [x19, #44]
Lloh128:
	adrp	x8, _AR5K_EEPROM_PCIE_OFFSET@GOTPAGE
Lloh129:
	ldr	x8, [x8, _AR5K_EEPROM_PCIE_OFFSET@GOTPAGEOFF]
Lloh130:
	ldr	w0, [x8]
	bl	_AR5K_EEPROM_READ
	mov	w0, #0
	str	wzr, [x19, #48]
LBB0_15:
	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 AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_INFO_MAX,4,2       ; @AR5K_EEPROM_INFO_MAX
	.comm	_AR5K_EEPROM_MAGIC,4,2          ; @AR5K_EEPROM_MAGIC
	.comm	_ee_magic,4,2                   ; @ee_magic
	.comm	_AR5K_EEPROM_PROTECT,4,2        ; @AR5K_EEPROM_PROTECT
	.comm	_ee_protect,4,2                 ; @ee_protect
	.comm	_AR5K_EEPROM_REG_DOMAIN,4,2     ; @AR5K_EEPROM_REG_DOMAIN
	.comm	_ee_regdomain,4,2               ; @ee_regdomain
	.comm	_AR5K_EEPROM_VERSION,4,2        ; @AR5K_EEPROM_VERSION
	.comm	_ee_version,4,2                 ; @ee_version
	.comm	_AR5K_EEPROM_HDR,4,2            ; @AR5K_EEPROM_HDR
	.comm	_ee_header,4,2                  ; @ee_header
	.comm	_AR5K_EEPROM_VERSION_3_0,8,3    ; @AR5K_EEPROM_VERSION_3_0
	.comm	_AR5K_EEPROM_SIZE_UPPER,4,2     ; @AR5K_EEPROM_SIZE_UPPER
	.comm	_AR5K_EEPROM_SIZE_UPPER_MASK,4,2 ; @AR5K_EEPROM_SIZE_UPPER_MASK
	.comm	_AR5K_EEPROM_SIZE_ENDLOC_SHIFT,4,2 ; @AR5K_EEPROM_SIZE_ENDLOC_SHIFT
	.comm	_AR5K_EEPROM_SIZE_LOWER,4,2     ; @AR5K_EEPROM_SIZE_LOWER
	.comm	_AR5K_EEPROM_INFO_BASE,4,2      ; @AR5K_EEPROM_INFO_BASE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AR5K_EEPROM_INFO_CKSUM,4,2     ; @AR5K_EEPROM_INFO_CKSUM
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Invalid EEPROM checksum: 0x%04x eep_max: 0x%04x (%s)\n"

l_.str.2:                               ; @.str.2
	.asciz	"default size"

l_.str.3:                               ; @.str.3
	.asciz	"custom size"

	.comm	_ee_ant_gain,4,2                ; @ee_ant_gain
	.comm	_AR5K_EEPROM_VERSION_4_0,8,3    ; @AR5K_EEPROM_VERSION_4_0
	.comm	_AR5K_EEPROM_MISC0,4,2          ; @AR5K_EEPROM_MISC0
	.comm	_ee_misc0,4,2                   ; @ee_misc0
	.comm	_AR5K_EEPROM_MISC1,4,2          ; @AR5K_EEPROM_MISC1
	.comm	_ee_misc1,4,2                   ; @ee_misc1
	.comm	_AR5K_EEPROM_MISC2,4,2          ; @AR5K_EEPROM_MISC2
	.comm	_ee_misc2,4,2                   ; @ee_misc2
	.comm	_AR5K_EEPROM_VERSION_4_3,8,3    ; @AR5K_EEPROM_VERSION_4_3
	.comm	_AR5K_EEPROM_MISC3,4,2          ; @AR5K_EEPROM_MISC3
	.comm	_ee_misc3,4,2                   ; @ee_misc3
	.comm	_AR5K_EEPROM_VERSION_5_0,8,3    ; @AR5K_EEPROM_VERSION_5_0
	.comm	_AR5K_EEPROM_MISC4,4,2          ; @AR5K_EEPROM_MISC4
	.comm	_ee_misc4,4,2                   ; @ee_misc4
	.comm	_AR5K_EEPROM_MISC5,4,2          ; @AR5K_EEPROM_MISC5
	.comm	_ee_misc5,4,2                   ; @ee_misc5
	.comm	_AR5K_EEPROM_MISC6,4,2          ; @AR5K_EEPROM_MISC6
	.comm	_ee_misc6,4,2                   ; @ee_misc6
	.comm	_AR5K_EEPROM_VERSION_3_3,8,3    ; @AR5K_EEPROM_VERSION_3_3
	.comm	_AR5K_EEPROM_OBDB0_2GHZ,4,2     ; @AR5K_EEPROM_OBDB0_2GHZ
	.comm	_AR5K_EEPROM_MODE_11B,8,3       ; @AR5K_EEPROM_MODE_11B
	.comm	_AR5K_EEPROM_OBDB1_2GHZ,4,2     ; @AR5K_EEPROM_OBDB1_2GHZ
	.comm	_AR5K_EEPROM_MODE_11G,8,3       ; @AR5K_EEPROM_MODE_11G
	.comm	_AR5K_EEPROM_IS_HB63,4,2        ; @AR5K_EEPROM_IS_HB63
	.comm	_AR5K_SREV_AR2425,4,2           ; @AR5K_SREV_AR2425
	.comm	_AR5K_EEPROM_RFKILL,4,2         ; @AR5K_EEPROM_RFKILL
	.comm	_AR5K_EEPROM_RFKILL_GPIO_SEL,4,2 ; @AR5K_EEPROM_RFKILL_GPIO_SEL
	.comm	_AR5K_EEPROM_RFKILL_POLARITY,4,2 ; @AR5K_EEPROM_RFKILL_POLARITY
	.comm	_AR5K_EEPROM_PCIE_OFFSET,4,2    ; @AR5K_EEPROM_PCIE_OFFSET
	.comm	_AR5K_EEPROM_PCIE_SERDES_SECTION,4,2 ; @AR5K_EEPROM_PCIE_SERDES_SECTION
	.no_dead_strip	_ath5k_eeprom_init_header
.subsections_via_symbols
