	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_eeprom_read_modes
_ath5k_eeprom_read_modes:               ## @ath5k_eeprom_read_modes
	.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
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rbx
	movq	232(%rdi), %rax
	movl	%edx, %r13d
	movq	$0, (%rax,%r13,8)
	leaq	1(%rbx), %r12
	movl	%ebx, %edi
	callq	_AR5K_EEPROM_READ
	movq	256(%r14), %rax
	movq	$0, (%rax,%r13,8)
	leal	-128(%r15), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.3:
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %rax
	movl	$0, 4(%rax)
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rax
	addq	$4, %rax
	jmp	LBB0_4
LBB0_1:
	cmpl	$130, %r15d
	jne	LBB0_5
## %bb.2:
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %rax
	movl	$0, 12(%rax)
	movq	16(%r14), %rcx
	movq	(%rcx,%r13,8), %rcx
	movl	$0, 12(%rcx)
	movl	$0, 8(%rax)
	addq	$2, %rbx
	movl	%r12d, %edi
	callq	_AR5K_EEPROM_READ
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rax
	movl	$0, 8(%rax)
	movq	8(%r14), %rcx
	movq	(%rcx,%r13,8), %rcx
	movl	$0, 4(%rcx)
	movl	$0, 4(%rax)
	movl	$0, (%rcx)
	movq	%rbx, %r12
LBB0_4:
	movl	$0, (%rax)
LBB0_5:
	movl	%r12d, %edi
	callq	_AR5K_EEPROM_READ
	movq	24(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	32(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	(%r14), %rcx
	movq	_AR5K_EEPROM_VERSION_3_2@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rcx
	jg	LBB0_7
## %bb.6:
	cmpl	$130, %r15d
	movl	$15, %ecx
	movl	$28, %edx
	cmovel	%ecx, %edx
	movl	%edx, (%rax,%r13,4)
LBB0_7:
	leal	1(%r12), %edi
	callq	_AR5K_EEPROM_READ
	movq	40(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	48(%r14), %rax
	movl	$0, (%rax,%r13,4)
	leal	2(%r12), %edi
	callq	_AR5K_EEPROM_READ
	movq	56(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	64(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	(%r14), %rcx
	cmpq	(%rbx), %rcx
	jg	LBB0_9
## %bb.8:
	cmpl	$130, %r15d
	movl	$-54, %ecx
	movl	$-1, %edx
	cmovel	%ecx, %edx
	movl	%edx, (%rax,%r13,4)
LBB0_9:
	leal	3(%r12), %edi
	callq	_AR5K_EEPROM_READ
	movq	72(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	80(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	88(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	(%r14), %rax
	movq	_AR5K_EEPROM_VERSION_4_0@GOTPCREL(%rip), %rbx
	cmpl	$129, %r15d
	je	LBB0_12
## %bb.10:
	cmpq	(%rbx), %rax
	jl	LBB0_12
## %bb.11:
	movq	96(%r14), %rcx
	movl	$0, (%rcx,%r13,4)
LBB0_12:
	leaq	4(%r12), %rdi
	movq	_AR5K_EEPROM_VERSION_3_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_17
## %bb.13:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_AR5K_EEPROM_READ
	movq	104(%r14), %rax
	movl	$0, (%rax,%r13,4)
	cmpl	$130, %r15d
	jne	LBB0_15
## %bb.14:
	leaq	(,%r13,4), %rax
	addq	112(%r14), %rax
	jmp	LBB0_16
LBB0_15:
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %rax
	movl	$0, (%rax)
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rax
LBB0_16:
	addq	$5, %r12
	movl	$0, (%rax)
	movq	%r12, %rdi
LBB0_17:
	movq	(%r14), %rax
	movq	_AR5K_EEPROM_VERSION_3_4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_19
## %bb.18:
	movq	_AR5K_EEPROM_I_GAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	120(%r14), %rdx
	movl	%ecx, (%rdx,%r13,4)
	movq	_AR5K_EEPROM_CCK_OFDM_DELTA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 128(%r14)
	jmp	LBB0_21
LBB0_19:
	movq	120(%r14), %rax
	movl	$0, (%rax,%r13,4)
	leaq	1(%rdi), %r12
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_AR5K_EEPROM_READ
	cmpl	$128, %r15d
	jne	LBB0_20
## %bb.25:
	movl	$0, 128(%r14)
	movq	(%r14), %rax
	movq	_AR5K_EEPROM_VERSION_4_6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_27
## %bb.26:
	movl	$0, 132(%r14)
LBB0_27:
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_29
	jmp	LBB0_59
LBB0_20:
	movq	(%r14), %rax
	movq	%r12, %rdi
LBB0_21:
	movq	(%rbx), %rcx
	cmpl	$130, %r15d
	jne	LBB0_24
## %bb.22:
	cmpq	%rcx, %rax
	jl	LBB0_24
## %bb.23:
	movq	136(%r14), %rdx
	movl	$0, (%rdx,%r13,4)
	movq	144(%r14), %rdx
	movl	$0, (%rdx,%r13,4)
LBB0_24:
	movq	%rdi, %r12
	cmpq	%rcx, %rax
	jl	LBB0_59
LBB0_29:
	leaq	8(%r14), %rbx
	cmpl	$128, %r15d
	je	LBB0_42
## %bb.30:
	cmpl	$129, %r15d
	je	LBB0_34
## %bb.31:
	cmpl	$130, %r15d
	jne	LBB0_53
## %bb.32:
	movq	_AR5K_EEPROM_VERSION_4_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_53
## %bb.33:
	leaq	1(%r12), %rbx
	movl	%r12d, %edi
	callq	_AR5K_EEPROM_READ
	movq	152(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	%rbx, %r12
	jmp	LBB0_53
LBB0_42:
	movl	%r12d, %edi
	callq	_AR5K_EEPROM_READ
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_ath5k_eeprom_bin2freq
	movq	240(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_AR5K_EEPROM_CHANNEL_DIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_44
## %bb.43:
	movq	232(%r14), %rax
	incq	(%rax,%r13,8)
LBB0_44:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_ath5k_eeprom_bin2freq
	movq	240(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	_AR5K_EEPROM_CHANNEL_DIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_46
## %bb.45:
	movq	232(%r14), %rax
	incq	(%rax,%r13,8)
LBB0_46:
	leal	1(%r12), %edi
	callq	_AR5K_EEPROM_READ
	movq	160(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	112(%r14), %rax
	movl	$0, (%rax,%r13,4)
	leal	2(%r12), %edi
	callq	_AR5K_EEPROM_READ
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_ath5k_eeprom_bin2freq
	movq	240(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	_AR5K_EEPROM_CHANNEL_DIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_48
## %bb.47:
	movq	232(%r14), %rax
	incq	(%rax,%r13,8)
LBB0_48:
	movq	(%r14), %rax
	movq	_AR5K_EEPROM_VERSION_4_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_50
## %bb.49:
	movq	152(%r14), %rax
	movl	$0, (%rax,%r13,4)
LBB0_50:
	leaq	4(%r12), %rbx
	leal	3(%r12), %edi
	callq	_AR5K_EEPROM_READ
	movq	136(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	144(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	(%r14), %rax
	movq	_AR5K_EEPROM_VERSION_4_2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_52
## %bb.51:
	movq	%rbx, %r12
	jmp	LBB0_53
LBB0_34:
	movl	%r12d, %edi
	callq	_AR5K_EEPROM_READ
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$129, %edx
	callq	_ath5k_eeprom_bin2freq
	movq	248(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_AR5K_EEPROM_CHANNEL_DIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_36
## %bb.35:
	movq	232(%r14), %rax
	incq	(%rax,%r13,8)
LBB0_36:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$129, %edx
	callq	_ath5k_eeprom_bin2freq
	movq	248(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	_AR5K_EEPROM_CHANNEL_DIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_38
## %bb.37:
	movq	232(%r14), %rax
	incq	(%rax,%r13,8)
LBB0_38:
	leal	1(%r12), %edi
	callq	_AR5K_EEPROM_READ
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$129, %edx
	callq	_ath5k_eeprom_bin2freq
	movq	248(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	_AR5K_EEPROM_CHANNEL_DIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_40
## %bb.39:
	movq	232(%r14), %rax
	incq	(%rax,%r13,8)
LBB0_40:
	addq	$2, %r12
	movq	(%r14), %rax
	movq	_AR5K_EEPROM_VERSION_4_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_53
## %bb.41:
	movq	152(%r14), %rax
	movl	$0, (%rax,%r13,4)
	jmp	LBB0_53
LBB0_52:
	addq	$5, %r12
	movl	%ebx, %edi
	callq	_AR5K_EEPROM_READ
	movl	$0, 168(%r14)
LBB0_53:
	movq	176(%r14), %rax
	movq	_AR5K_EEPROM_VERSION_5_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_59
## %bb.54:
	cmpl	$128, %r15d
	je	LBB0_58
## %bb.55:
	cmpl	$130, %r15d
	jne	LBB0_59
## %bb.56:
	movq	184(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	192(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movl	%r12d, %ebx
	movl	%r12d, %edi
	callq	_AR5K_EEPROM_READ
	movq	200(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	208(%r14), %rax
	movl	$0, (%rax,%r13,4)
	addq	$2, %r12
	leal	1(%rbx), %edi
	callq	_AR5K_EEPROM_READ
	movq	216(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movl	228(%r14), %edi
	callq	_AR5K_EEPROM_EEMAP
	cmpl	$2, %eax
	jl	LBB0_59
## %bb.57:
	movl	$0, 224(%r14)
	jmp	LBB0_59
LBB0_58:
	movq	184(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	192(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movl	%r12d, %edi
	callq	_AR5K_EEPROM_READ
	movq	200(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	208(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	%r12, %rbx
	addq	$2, %rbx
	leal	1(%r12), %edi
	callq	_AR5K_EEPROM_READ
	movq	216(%r14), %rax
	movl	$0, (%rax,%r13,4)
	movq	%rbx, %r12
LBB0_59:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_VERSION_3_2,8,3    ## @AR5K_EEPROM_VERSION_3_2
	.comm	_AR5K_EEPROM_VERSION_4_0,8,3    ## @AR5K_EEPROM_VERSION_4_0
	.comm	_AR5K_EEPROM_VERSION_3_3,8,3    ## @AR5K_EEPROM_VERSION_3_3
	.comm	_AR5K_EEPROM_VERSION_3_4,8,3    ## @AR5K_EEPROM_VERSION_3_4
	.comm	_AR5K_EEPROM_I_GAIN,4,2         ## @AR5K_EEPROM_I_GAIN
	.comm	_AR5K_EEPROM_CCK_OFDM_DELTA,4,2 ## @AR5K_EEPROM_CCK_OFDM_DELTA
	.comm	_AR5K_EEPROM_VERSION_4_6,8,3    ## @AR5K_EEPROM_VERSION_4_6
	.comm	_AR5K_EEPROM_VERSION_4_1,8,3    ## @AR5K_EEPROM_VERSION_4_1
	.comm	_AR5K_EEPROM_CHANNEL_DIS,8,3    ## @AR5K_EEPROM_CHANNEL_DIS
	.comm	_AR5K_EEPROM_VERSION_4_2,8,3    ## @AR5K_EEPROM_VERSION_4_2
	.comm	_AR5K_EEPROM_VERSION_5_0,8,3    ## @AR5K_EEPROM_VERSION_5_0
	.no_dead_strip	_ath5k_eeprom_read_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_eeprom_read_modes
_ath5k_eeprom_read_modes:               ; @ath5k_eeprom_read_modes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x1]
	ldr	x8, [x0, #232]
	mov	w26, w2
	lsl	x27, x26, #3
	str	xzr, [x8, x27]
	add	x22, x23, #1
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x20, #256]
	str	xzr, [x8, x27]
	sub	w8, w21, #128
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
	ldp	x8, x9, [x20, #8]
	ldr	x8, [x8, x27]
	str	wzr, [x8, #4]
	ldr	x8, [x9, x27]
	add	x8, x8, #4
	b	LBB0_4
LBB0_2:
	cmp	w21, #130
	b.ne	LBB0_5
; %bb.3:
	ldp	x8, x9, [x20, #8]
	ldr	x8, [x8, x27]
	str	wzr, [x8, #12]
	ldr	x9, [x9, x27]
	str	wzr, [x9, #12]
	str	wzr, [x8, #8]
	add	x23, x23, #2
	mov	x0, x22
	bl	_AR5K_EEPROM_READ
	ldp	x9, x8, [x20, #8]
	ldr	x8, [x8, x27]
	str	wzr, [x8, #8]
	ldr	x9, [x9, x27]
	str	wzr, [x9, #4]
	str	wzr, [x8, #4]
	str	wzr, [x9]
	mov	x22, x23
LBB0_4:
	str	wzr, [x8]
LBB0_5:
	mov	x0, x22
	bl	_AR5K_EEPROM_READ
	lsl	x25, x26, #2
	ldp	x9, x8, [x20, #24]
	str	wzr, [x9, x25]
	str	wzr, [x8, x25]
	ldr	x9, [x20]
Lloh0:
	adrp	x23, _AR5K_EEPROM_VERSION_3_2@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AR5K_EEPROM_VERSION_3_2@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x9, x10
	b.gt	LBB0_7
; %bb.6:
	mov	w9, #28
	mov	w10, #15
	cmp	w21, #130
	csel	w9, w10, w9, eq
	str	w9, [x8, x26, lsl #2]
LBB0_7:
	add	w0, w22, #1
	bl	_AR5K_EEPROM_READ
	ldp	x8, x9, [x20, #40]
	str	wzr, [x8, x25]
	str	wzr, [x9, x25]
	add	w0, w22, #2
	bl	_AR5K_EEPROM_READ
	ldp	x9, x8, [x20, #56]
	str	wzr, [x9, x25]
	str	wzr, [x8, x25]
	ldr	x9, [x20]
	ldr	x10, [x23]
	cmp	x9, x10
	b.gt	LBB0_9
; %bb.8:
	cmp	w21, #130
	mov	w9, #-54
	csinv	w9, w9, wzr, eq
	str	w9, [x8, x26, lsl #2]
LBB0_9:
	add	x23, x22, #4
	add	w0, w22, #3
	bl	_AR5K_EEPROM_READ
	ldp	x8, x9, [x20, #72]
	str	wzr, [x8, x25]
	str	wzr, [x9, x25]
	ldr	x8, [x20, #88]
	str	wzr, [x8, x25]
	ldr	x8, [x20]
Lloh2:
	adrp	x24, _AR5K_EEPROM_VERSION_4_0@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AR5K_EEPROM_VERSION_4_0@GOTPAGEOFF]
	cmp	w21, #129
	b.eq	LBB0_12
; %bb.10:
	ldr	x9, [x24]
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.11:
	ldr	x9, [x20, #96]
	str	wzr, [x9, x26, lsl #2]
LBB0_12:
Lloh4:
	adrp	x9, _AR5K_EEPROM_VERSION_3_3@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_3_3@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_17
; %bb.13:
	add	x22, x22, #5
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x20, #104]
	str	wzr, [x8, x26, lsl #2]
	cmp	w21, #130
	b.ne	LBB0_15
; %bb.14:
	ldr	x8, [x20, #112]
	add	x8, x8, x26, lsl #2
	b	LBB0_16
LBB0_15:
	ldp	x8, x9, [x20, #8]
	ldr	x8, [x8, x27]
	str	wzr, [x8]
	ldr	x8, [x9, x27]
LBB0_16:
	str	wzr, [x8]
	mov	x23, x22
LBB0_17:
	ldr	x8, [x20]
Lloh7:
	adrp	x9, _AR5K_EEPROM_VERSION_3_4@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_3_4@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_19
; %bb.18:
Lloh10:
	adrp	x9, _AR5K_EEPROM_I_GAIN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AR5K_EEPROM_I_GAIN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	x10, [x20, #120]
	str	w9, [x10, x26, lsl #2]
Lloh13:
	adrp	x9, _AR5K_EEPROM_CCK_OFDM_DELTA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AR5K_EEPROM_CCK_OFDM_DELTA@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	str	w9, [x20, #128]
	b	LBB0_24
LBB0_19:
	ldr	x8, [x20, #120]
	str	wzr, [x8, x26, lsl #2]
	add	x22, x23, #1
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	cmp	w21, #128
	b.ne	LBB0_23
; %bb.20:
	str	wzr, [x20, #128]
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _AR5K_EEPROM_VERSION_4_6@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_4_6@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_22
; %bb.21:
	str	wzr, [x20, #132]
LBB0_22:
	ldr	x9, [x24]
	cmp	x8, x9
	b.ge	LBB0_28
	b	LBB0_58
LBB0_23:
	ldr	x8, [x20]
	mov	x23, x22
LBB0_24:
	ldr	x9, [x24]
	cmp	w21, #130
	b.ne	LBB0_27
; %bb.25:
	cmp	x8, x9
	b.lt	LBB0_27
; %bb.26:
	ldp	x10, x11, [x20, #136]
	str	wzr, [x10, x25]
	str	wzr, [x11, x25]
LBB0_27:
	mov	x22, x23
	cmp	x8, x9
	b.lt	LBB0_58
LBB0_28:
	add	x24, x20, #8
	cmp	w21, #128
	b.eq	LBB0_33
; %bb.29:
	cmp	w21, #129
	b.eq	LBB0_44
; %bb.30:
	cmp	w21, #130
	b.ne	LBB0_43
; %bb.31:
Lloh19:
	adrp	x9, _AR5K_EEPROM_VERSION_4_1@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_4_1@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_43
; %bb.32:
	add	x23, x22, #1
	mov	x0, x22
	bl	_AR5K_EEPROM_READ
	b	LBB0_51
LBB0_33:
	mov	x0, x22
	bl	_AR5K_EEPROM_READ
	mov	x0, x24
	mov	w1, #0
	mov	w2, #128
	bl	_ath5k_eeprom_bin2freq
	ldr	x8, [x20, #240]
	str	x0, [x8]
Lloh22:
	adrp	x23, _AR5K_EEPROM_CHANNEL_DIS@GOTPAGE
Lloh23:
	ldr	x23, [x23, _AR5K_EEPROM_CHANNEL_DIS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_35
; %bb.34:
	ldr	x8, [x20, #232]
	ldr	x9, [x8, x27]
	add	x9, x9, #1
	str	x9, [x8, x27]
LBB0_35:
	mov	x0, x24
	mov	w1, #0
	mov	w2, #128
	bl	_ath5k_eeprom_bin2freq
	ldr	x8, [x20, #240]
	str	x0, [x8, #8]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_37
; %bb.36:
	ldr	x8, [x20, #232]
	ldr	x9, [x8, x27]
	add	x9, x9, #1
	str	x9, [x8, x27]
LBB0_37:
	add	w0, w22, #1
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x20, #160]
	str	wzr, [x8, x25]
	ldr	x8, [x20, #112]
	str	wzr, [x8, x25]
	add	w0, w22, #2
	bl	_AR5K_EEPROM_READ
	mov	x0, x24
	mov	w1, #0
	mov	w2, #128
	bl	_ath5k_eeprom_bin2freq
	ldr	x8, [x20, #240]
	str	x0, [x8, #16]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_39
; %bb.38:
	ldr	x8, [x20, #232]
	ldr	x9, [x8, x27]
	add	x9, x9, #1
	str	x9, [x8, x27]
LBB0_39:
	ldr	x8, [x20]
Lloh24:
	adrp	x9, _AR5K_EEPROM_VERSION_4_1@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_4_1@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_41
; %bb.40:
	ldr	x8, [x20, #152]
	str	wzr, [x8, x26, lsl #2]
LBB0_41:
	add	x23, x22, #4
	add	w0, w22, #3
	bl	_AR5K_EEPROM_READ
	ldp	x8, x9, [x20, #136]
	str	wzr, [x8, x25]
	str	wzr, [x9, x25]
	ldr	x8, [x20]
Lloh27:
	adrp	x9, _AR5K_EEPROM_VERSION_4_2@GOTPAGE
Lloh28:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_4_2@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_52
; %bb.42:
	add	x22, x22, #5
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	str	wzr, [x20, #168]
LBB0_43:
	mov	x23, x22
	b	LBB0_52
LBB0_44:
	mov	x0, x22
	bl	_AR5K_EEPROM_READ
	mov	x0, x24
	mov	w1, #0
	mov	w2, #129
	bl	_ath5k_eeprom_bin2freq
	ldr	x8, [x20, #248]
	str	x0, [x8]
Lloh30:
	adrp	x28, _AR5K_EEPROM_CHANNEL_DIS@GOTPAGE
Lloh31:
	ldr	x28, [x28, _AR5K_EEPROM_CHANNEL_DIS@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_46
; %bb.45:
	ldr	x8, [x20, #232]
	ldr	x9, [x8, x27]
	add	x9, x9, #1
	str	x9, [x8, x27]
LBB0_46:
	mov	x0, x24
	mov	w1, #0
	mov	w2, #129
	bl	_ath5k_eeprom_bin2freq
	ldr	x8, [x20, #248]
	str	x0, [x8, #8]
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_48
; %bb.47:
	ldr	x8, [x20, #232]
	ldr	x9, [x8, x27]
	add	x9, x9, #1
	str	x9, [x8, x27]
LBB0_48:
	add	x23, x22, #2
	add	w0, w22, #1
	bl	_AR5K_EEPROM_READ
	mov	x0, x24
	mov	w1, #0
	mov	w2, #129
	bl	_ath5k_eeprom_bin2freq
	ldr	x8, [x20, #248]
	str	x0, [x8, #16]
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_50
; %bb.49:
	ldr	x8, [x20, #232]
	ldr	x9, [x8, x27]
	add	x9, x9, #1
	str	x9, [x8, x27]
LBB0_50:
	ldr	x8, [x20]
Lloh32:
	adrp	x9, _AR5K_EEPROM_VERSION_4_1@GOTPAGE
Lloh33:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_4_1@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_52
LBB0_51:
	ldr	x8, [x20, #152]
	str	wzr, [x8, x26, lsl #2]
LBB0_52:
	ldr	x8, [x20, #176]
Lloh35:
	adrp	x9, _AR5K_EEPROM_VERSION_5_0@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_5_0@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_57
; %bb.53:
	cmp	w21, #128
	b.eq	LBB0_59
; %bb.54:
	cmp	w21, #130
	b.ne	LBB0_57
; %bb.55:
	ldp	x8, x9, [x20, #184]
	str	wzr, [x8, x25]
	str	wzr, [x9, x25]
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	ldp	x8, x9, [x20, #200]
	str	wzr, [x8, x25]
	str	wzr, [x9, x25]
	add	x22, x23, #2
	add	w0, w23, #1
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x20, #216]
	str	wzr, [x8, x25]
	ldr	w0, [x20, #228]
	bl	_AR5K_EEPROM_EEMAP
	cmp	w0, #2
	b.lt	LBB0_58
; %bb.56:
	str	wzr, [x20, #224]
	b	LBB0_58
LBB0_57:
	mov	x22, x23
LBB0_58:
	str	x22, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_59:
	ldp	x8, x9, [x20, #184]
	str	wzr, [x8, x25]
	str	wzr, [x9, x25]
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	ldp	x8, x9, [x20, #200]
	str	wzr, [x8, x25]
	str	wzr, [x9, x25]
	add	x22, x23, #2
	add	w0, w23, #1
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x20, #216]
	str	wzr, [x8, x25]
	b	LBB0_58
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_VERSION_3_2,8,3    ; @AR5K_EEPROM_VERSION_3_2
	.comm	_AR5K_EEPROM_VERSION_4_0,8,3    ; @AR5K_EEPROM_VERSION_4_0
	.comm	_AR5K_EEPROM_VERSION_3_3,8,3    ; @AR5K_EEPROM_VERSION_3_3
	.comm	_AR5K_EEPROM_VERSION_3_4,8,3    ; @AR5K_EEPROM_VERSION_3_4
	.comm	_AR5K_EEPROM_I_GAIN,4,2         ; @AR5K_EEPROM_I_GAIN
	.comm	_AR5K_EEPROM_CCK_OFDM_DELTA,4,2 ; @AR5K_EEPROM_CCK_OFDM_DELTA
	.comm	_AR5K_EEPROM_VERSION_4_6,8,3    ; @AR5K_EEPROM_VERSION_4_6
	.comm	_AR5K_EEPROM_VERSION_4_1,8,3    ; @AR5K_EEPROM_VERSION_4_1
	.comm	_AR5K_EEPROM_CHANNEL_DIS,8,3    ; @AR5K_EEPROM_CHANNEL_DIS
	.comm	_AR5K_EEPROM_VERSION_4_2,8,3    ; @AR5K_EEPROM_VERSION_4_2
	.comm	_AR5K_EEPROM_VERSION_5_0,8,3    ; @AR5K_EEPROM_VERSION_5_0
	.no_dead_strip	_ath5k_eeprom_read_modes
.subsections_via_symbols
