	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_eeprom_read_pcal_info_2413
_ath5k_eeprom_read_pcal_info_2413:      ## @ath5k_eeprom_read_pcal_info_2413
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movslq	%esi, %r9
	movq	_AR5K_EEPROM_N_PD_CURVES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_12
## %bb.1:
	movl	%esi, %r14d
	movq	(%r12), %rax
	movq	(%rax,%r9,8), %rax
	movq	8(%r12), %rdx
	cmpl	$1, %r8d
	jne	LBB0_15
## %bb.2:
	xorl	%r15d, %r15d
	movl	%r8d, %esi
LBB0_3:
	testb	$1, %r8b
	je	LBB0_6
## %bb.4:
	decl	%esi
	movl	(%rdx,%r9,4), %ecx
	btl	%esi, %ecx
	jae	LBB0_6
## %bb.5:
	movslq	%r15d, %rcx
	incl	%r15d
	movl	%esi, (%rax,%rcx,4)
LBB0_6:
	movq	16(%r12), %rax
	movl	%r15d, (%rax,%r9,4)
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.7:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_ath5k_cal_data_offset_2413
	movq	%rax, %r13
	cmpl	$128, %r14d
	je	LBB0_21
## %bb.8:
	cmpl	$129, %r14d
	je	LBB0_23
## %bb.9:
	cmpl	$130, %r14d
	jne	LBB0_13
## %bb.10:
	movl	40(%r12), %edi
	callq	_AR5K_EEPROM_HDR_11A
	testl	%eax, %eax
	je	LBB0_42
## %bb.11:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ath5k_eeprom_init_11a_pcal_freq
	leaq	56(%r12), %rcx
	movq	_AR5K_EEPROM_N_5GHZ_CHAN@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_12:
	movq	16(%r12), %rax
	movl	$0, (%rax,%r9,4)
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%r15d, %r15d
	movl	%r8d, %esi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	addl	$-2, %edi
	je	LBB0_3
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%rsi), %ebx
	movl	(%rdx,%r9,4), %ecx
	btl	%ebx, %ecx
	jae	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movslq	%r15d, %rcx
	incl	%r15d
	movl	%ebx, (%rax,%rcx,4)
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	addl	$-2, %esi
	movl	(%rdx,%r9,4), %ecx
	btl	%esi, %ecx
	jae	LBB0_16
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movslq	%r15d, %rcx
	incl	%r15d
	movl	%esi, (%rax,%rcx,4)
	jmp	LBB0_16
LBB0_21:
	movl	40(%r12), %edi
	callq	_AR5K_EEPROM_HDR_11G
	testl	%eax, %eax
	je	LBB0_42
## %bb.22:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movl	$128, %esi
	movq	%r13, %rdx
	callq	_ath5k_eeprom_init_11bg_2413
	leaq	32(%r12), %rcx
	jmp	LBB0_25
LBB0_23:
	movl	40(%r12), %edi
	callq	_AR5K_EEPROM_HDR_11B
	testl	%eax, %eax
	je	LBB0_42
## %bb.24:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movl	$129, %esi
	movq	%r13, %rdx
	callq	_ath5k_eeprom_init_11bg_2413
	leaq	48(%r12), %rcx
LBB0_25:
	movq	_AR5K_EEPROM_N_2GHZ_CHAN_2413@GOTPCREL(%rip), %rax
LBB0_26:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %rcx
	cmpl	$0, (%rcx,%rdx,4)
	jle	LBB0_39
## %bb.27:
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addq	%rcx, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	24(%rax), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_30 Depth=1
	movl	$0, 12(%rax)
	movl	$0, 12(%rcx)
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%r14
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movslq	(%rax,%rcx,4), %rax
	addq	$32, %r12
	movq	%rbx, %r13
	cmpq	%rax, %r14
	jge	LBB0_39
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_AR5K_EEPROM_READ
	movq	-24(%r12), %rax
	movl	$0, (%rax)
	movq	-16(%r12), %rax
	movl	$0, (%rax)
	movq	-8(%r12), %rax
	movq	(%rax), %rax
	movl	$0, (%rax)
	leal	1(%r13), %edi
	callq	_AR5K_EEPROM_READ
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	$0, (%rax)
	movq	-8(%r12), %rcx
	movq	(%rcx), %rcx
	movl	$0, 4(%rcx)
	movl	$0, 4(%rax)
	leaq	3(%r13), %rbx
	leal	2(%r13), %edi
	callq	_AR5K_EEPROM_READ
	movq	-8(%r12), %rax
	movq	(%rax), %rax
	movl	$0, 8(%rax)
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	movl	$0, 8(%rcx)
	movl	$0, 12(%rax)
	movl	$0, 12(%rcx)
	cmpl	$1, %r15d
	jle	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	-24(%r12), %rax
	movl	$0, 4(%rax)
	movq	-16(%r12), %rax
	movl	$0, 4(%rax)
	movl	%ebx, %edi
	callq	_AR5K_EEPROM_READ
	movq	-8(%r12), %rax
	movq	8(%rax), %rax
	movl	$0, (%rax)
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movl	$0, (%rax)
	leal	4(%r13), %edi
	callq	_AR5K_EEPROM_READ
	movq	-8(%r12), %rax
	movq	8(%rax), %rax
	movl	$0, 4(%rax)
	movq	(%r12), %rcx
	movq	8(%rcx), %rcx
	movl	$0, 4(%rcx)
	movl	$0, 8(%rax)
	movl	$0, 8(%rcx)
	leaq	6(%r13), %rbx
	leal	5(%r13), %edi
	callq	_AR5K_EEPROM_READ
	movq	-8(%r12), %rax
	movq	8(%rax), %rax
	movl	$0, 12(%rax)
	movq	(%r12), %rcx
	movq	8(%rcx), %rcx
	movl	$0, 12(%rcx)
	cmpl	$2, %r15d
	je	LBB0_28
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	-24(%r12), %rax
	movl	$0, 8(%rax)
	movq	-16(%r12), %rax
	movl	$0, 8(%rax)
	movl	%ebx, %edi
	callq	_AR5K_EEPROM_READ
	movq	-8(%r12), %rax
	movq	16(%rax), %rax
	movl	$0, (%rax)
	movq	(%r12), %rcx
	movq	16(%rcx), %rcx
	movl	$0, (%rcx)
	movl	$0, 4(%rax)
	movl	$0, 4(%rcx)
	leaq	8(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	incl	%ebx
	movl	%ebx, %edi
	callq	_AR5K_EEPROM_READ
	movq	-8(%r12), %rax
	movq	16(%rax), %rax
	movl	$0, 8(%rax)
	movq	(%r12), %rcx
	movq	16(%rcx), %rcx
	movl	$0, 8(%rcx)
	movl	$0, 12(%rax)
	movl	$0, 12(%rcx)
	cmpl	$4, %r15d
	jb	LBB0_37
## %bb.33:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	-24(%r12), %rax
	movl	$0, 12(%rax)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edi
	callq	_AR5K_EEPROM_READ
	movq	-16(%r12), %rax
	movl	$0, 12(%rax)
	movq	-8(%r12), %rax
	movq	24(%rax), %rax
	movl	$0, (%rax)
	movq	(%r12), %rax
	movq	24(%rax), %rax
	movl	$0, (%rax)
	leal	1(%rbx), %edi
	callq	_AR5K_EEPROM_READ
	movq	-8(%r12), %rax
	movq	24(%rax), %rax
	movl	$0, 4(%rax)
	movq	(%r12), %rcx
	movq	24(%rcx), %rcx
	movl	$0, 4(%rcx)
	movl	$0, 8(%rax)
	leal	2(%rbx), %edi
	callq	_AR5K_EEPROM_READ
	movq	(%r12), %rax
	movq	24(%rax), %rax
	movl	$0, 8(%rax)
	movq	-8(%r12), %rcx
	movq	24(%rcx), %rcx
	movl	$0, 12(%rcx)
	movl	$0, 12(%rax)
	addq	$12, %r13
	addl	$3, %ebx
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_30 Depth=1
	jne	LBB0_29
## %bb.35:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	$0, 12(%rax)
	movl	$0, 12(%rcx)
	addq	$4, %r13
LBB0_36:                                ##   in Loop: Header=BB0_30 Depth=1
	movl	%ebx, %edi
	callq	_AR5K_EEPROM_READ
	jmp	LBB0_38
LBB0_37:                                ##   in Loop: Header=BB0_30 Depth=1
	movl	$0, 12(%rax)
	addq	$9, %r13
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_AR5K_EEPROM_READ
	movq	(%r12), %rax
	movq	16(%rax), %rax
	movl	$0, 12(%rax)
LBB0_38:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	%r13, %rbx
	jmp	LBB0_29
LBB0_39:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_eeprom_convert_pcal_info_2413 ## TAILCALL
LBB0_42:
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_N_PD_CURVES,4,2    ## @AR5K_EEPROM_N_PD_CURVES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR5K_EEPROM_N_5GHZ_CHAN,4,2    ## @AR5K_EEPROM_N_5GHZ_CHAN
	.comm	_AR5K_EEPROM_N_2GHZ_CHAN_2413,4,2 ## @AR5K_EEPROM_N_2GHZ_CHAN_2413
	.no_dead_strip	_ath5k_eeprom_read_pcal_info_2413
.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_pcal_info_2413
_ath5k_eeprom_read_pcal_info_2413:      ; @ath5k_eeprom_read_pcal_info_2413
	.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	x19, x1
	mov	x20, x0
	sxtw	x25, w19
Lloh0:
	adrp	x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	cmp	w10, #0
	b.le	LBB0_11
; %bb.1:
	mov	w26, #0
	ldp	x9, x8, [x20]
	ldr	x9, [x9, w19, sxtw #3]
	add	w10, w10, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w10, w10, #1
	cmp	w10, #1
	b.ls	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w10, #2
	ldr	w12, [x8, x25, lsl #2]
	lsr	w12, w12, w11
	tbz	w12, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w11, [x9, w26, sxtw #2]
	add	w26, w26, #1
	b	LBB0_2
LBB0_5:
	ldr	x8, [x20, #16]
	str	w26, [x8, x25, lsl #2]
	cbz	w26, LBB0_12
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_ath5k_cal_data_offset_2413
	mov	x22, x0
	cmp	w19, #128
	b.eq	LBB0_14
; %bb.7:
	cmp	w19, #129
	b.eq	LBB0_16
; %bb.8:
	cmp	w19, #130
	b.ne	LBB0_12
; %bb.9:
	ldr	w0, [x20, #40]
	bl	_AR5K_EEPROM_HDR_11A
	cbz	w0, LBB0_13
; %bb.10:
	mov	x0, x20
	mov	x1, x22
	bl	_ath5k_eeprom_init_11a_pcal_freq
	add	x9, x20, #56
Lloh3:
	adrp	x8, _AR5K_EEPROM_N_5GHZ_CHAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_EEPROM_N_5GHZ_CHAN@GOTPAGEOFF]
	b	LBB0_19
LBB0_11:
	ldr	x8, [x20, #16]
	str	wzr, [x8, x25, lsl #2]
LBB0_12:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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_14:
	ldr	w0, [x20, #40]
	bl	_AR5K_EEPROM_HDR_11G
	cbz	w0, LBB0_13
; %bb.15:
	mov	x0, x20
	mov	w1, #128
	mov	x2, x22
	bl	_ath5k_eeprom_init_11bg_2413
	add	x9, x20, #32
	b	LBB0_18
LBB0_16:
	ldr	w0, [x20, #40]
	bl	_AR5K_EEPROM_HDR_11B
	cbz	w0, LBB0_13
; %bb.17:
	mov	x0, x20
	mov	w1, #129
	mov	x2, x22
	bl	_ath5k_eeprom_init_11bg_2413
	add	x9, x20, #48
LBB0_18:
Lloh8:
	adrp	x8, _AR5K_EEPROM_N_2GHZ_CHAN_2413@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR5K_EEPROM_N_2GHZ_CHAN_2413@GOTPAGEOFF]
LBB0_19:
	ldr	x21, [x9]
	ldr	x9, [x20, #24]
	ldr	w9, [x9, x25, lsl #2]
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.20:
	mov	x27, #0
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x22, x22, x8
	add	x28, x21, #24
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	str	wzr, [x8, #12]
	str	wzr, [x9, #12]
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x27, x27, #1
	ldr	x8, [x20, #24]
	ldrsw	x8, [x8, x25, lsl #2]
	add	x28, x28, #32
	mov	x22, x23
	cmp	x27, x8
	b.ge	LBB0_30
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_AR5K_EEPROM_READ
	ldp	x8, x9, [x28, #-24]
	str	wzr, [x8]
	str	wzr, [x9]
	ldur	x8, [x28, #-8]
	ldr	x8, [x8]
	str	wzr, [x8]
	add	w0, w22, #1
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x28]
	ldr	x8, [x8]
	str	wzr, [x8]
	ldur	x9, [x28, #-8]
	ldr	x9, [x9]
	str	wzr, [x9, #4]
	str	wzr, [x8, #4]
	add	x23, x22, #3
	add	w0, w22, #2
	bl	_AR5K_EEPROM_READ
	ldur	x8, [x28, #-8]
	ldr	x8, [x8]
	str	wzr, [x8, #8]
	ldr	x9, [x28]
	ldr	x9, [x9]
	str	wzr, [x9, #8]
	str	wzr, [x8, #12]
	str	wzr, [x9, #12]
	cmp	w26, #1
	b.le	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldp	x8, x9, [x28, #-24]
	str	wzr, [x8, #4]
	str	wzr, [x9, #4]
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	ldur	x8, [x28, #-8]
	ldr	x8, [x8, #8]
	str	wzr, [x8]
	ldr	x8, [x28]
	ldr	x8, [x8, #8]
	str	wzr, [x8]
	add	w0, w22, #4
	bl	_AR5K_EEPROM_READ
	ldur	x8, [x28, #-8]
	ldr	x8, [x8, #8]
	str	wzr, [x8, #4]
	ldr	x9, [x28]
	ldr	x9, [x9, #8]
	str	wzr, [x9, #4]
	str	wzr, [x8, #8]
	str	wzr, [x9, #8]
	add	x23, x22, #6
	add	w0, w22, #5
	bl	_AR5K_EEPROM_READ
	ldur	x8, [x28, #-8]
	ldr	x8, [x8, #8]
	str	wzr, [x8, #12]
	ldr	x9, [x28]
	ldr	x9, [x9, #8]
	str	wzr, [x9, #12]
	cmp	w26, #2
	b.eq	LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	ldp	x8, x9, [x28, #-24]
	str	wzr, [x8, #8]
	str	wzr, [x9, #8]
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	ldur	x8, [x28, #-8]
	ldr	x8, [x8, #16]
	str	wzr, [x8]
	ldr	x9, [x28]
	ldr	x9, [x9, #16]
	str	wzr, [x9]
	str	wzr, [x8, #4]
	str	wzr, [x9, #4]
	add	x24, x22, #8
	add	w0, w23, #1
	bl	_AR5K_EEPROM_READ
	ldur	x8, [x28, #-8]
	ldr	x8, [x8, #16]
	str	wzr, [x8, #8]
	ldr	x9, [x28]
	ldr	x9, [x9, #16]
	str	wzr, [x9, #8]
	str	wzr, [x8, #12]
	str	wzr, [x9, #12]
	cmp	w26, #4
	b.lo	LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	ldur	x8, [x28, #-24]
	str	wzr, [x8, #12]
	mov	x0, x24
	bl	_AR5K_EEPROM_READ
	ldp	x8, x9, [x28, #-16]
	str	wzr, [x8, #12]
	ldr	x8, [x9, #24]
	str	wzr, [x8]
	ldr	x8, [x28]
	ldr	x8, [x8, #24]
	str	wzr, [x8]
	add	w0, w24, #1
	bl	_AR5K_EEPROM_READ
	ldur	x8, [x28, #-8]
	ldr	x8, [x8, #24]
	str	wzr, [x8, #4]
	ldr	x9, [x28]
	ldr	x9, [x9, #24]
	str	wzr, [x9, #4]
	str	wzr, [x8, #8]
	add	w0, w24, #2
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x28]
	ldr	x8, [x8, #24]
	str	wzr, [x8, #8]
	ldur	x9, [x28, #-8]
	ldr	x9, [x9, #24]
	str	wzr, [x9, #12]
	str	wzr, [x8, #12]
	add	x23, x22, #12
	add	w0, w24, #3
	bl	_AR5K_EEPROM_READ
	b	LBB0_22
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=1
	b.ne	LBB0_22
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
	str	wzr, [x8, #12]
	str	wzr, [x9, #12]
	add	x22, x22, #4
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	mov	x23, x22
	b	LBB0_22
LBB0_29:                                ;   in Loop: Header=BB0_23 Depth=1
	str	wzr, [x8, #12]
	add	x23, x22, #9
	mov	x0, x24
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x28]
	ldr	x8, [x8, #16]
	str	wzr, [x8, #12]
	b	LBB0_22
LBB0_30:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	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
	b	_ath5k_eeprom_convert_pcal_info_2413
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_N_PD_CURVES,4,2    ; @AR5K_EEPROM_N_PD_CURVES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR5K_EEPROM_N_5GHZ_CHAN,4,2    ; @AR5K_EEPROM_N_5GHZ_CHAN
	.comm	_AR5K_EEPROM_N_2GHZ_CHAN_2413,4,2 ; @AR5K_EEPROM_N_2GHZ_CHAN_2413
	.no_dead_strip	_ath5k_eeprom_read_pcal_info_2413
.subsections_via_symbols
