	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_eeprom_init_11a_pcal_freq
_ath5k_eeprom_init_11a_pcal_freq:       ## @ath5k_eeprom_init_11a_pcal_freq
	.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, %r14
	movl	%esi, -44(%rbp)
	movq	8(%rdi), %rax
	movq	24(%rdi), %r13
	movq	_AR5K_EEPROM_VERSION_3_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movl	(%r14), %edi
	callq	_AR5K_EEPROM_FREQ_M
	leal	1(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	%r15d, %edi
	callq	_AR5K_EEPROM_READ
	movq	$0, (%r13)
	movl	$0, 8(%r13)
	movl	-44(%rbp), %r15d
	leal	1(%r15), %r12d
	movl	%r15d, %edi
	callq	_AR5K_EEPROM_READ
	movq	$0, 12(%r13)
	leal	2(%r15), %ebx
	movl	%r12d, %edi
	callq	_AR5K_EEPROM_READ
	movq	$0, 20(%r13)
	leal	3(%r15), %r12d
	movl	%ebx, %edi
	callq	_AR5K_EEPROM_READ
	movq	$0, 28(%r13)
	movl	$0, 36(%r13)
	addl	$4, %r15d
	movl	%r15d, -44(%rbp)
	movl	%r12d, %edi
	callq	_AR5K_EEPROM_READ
	movq	16(%r14), %rax
	movq	_AR5K_EEPROM_MODE_11A@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movl	$10, (%rax,%rdx,4)
	movq	_AR5K_EEPROM_N_5GHZ_CHAN@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.3:
	addq	$8, %r14
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_ath5k_eeprom_bin2freq
	movl	%eax, (%r13)
	cmpl	$2, (%r12)
	jl	LBB0_6
## %bb.4:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdx
	movl	(%r13,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_ath5k_eeprom_bin2freq
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_6
LBB0_1:
	movq	_AR5K_EEPROM_N_5GHZ_CHAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AR5K_EEPROM_MODE_11A@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r13, %rcx
	callq	_ath5k_eeprom_read_freq_list
LBB0_6:
	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_3,8,3    ## @AR5K_EEPROM_VERSION_3_3
	.comm	_AR5K_EEPROM_N_5GHZ_CHAN,4,2    ## @AR5K_EEPROM_N_5GHZ_CHAN
	.comm	_AR5K_EEPROM_MODE_11A,8,3       ## @AR5K_EEPROM_MODE_11A
	.no_dead_strip	_ath5k_eeprom_init_11a_pcal_freq
.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_11a_pcal_freq
_ath5k_eeprom_init_11a_pcal_freq:       ; @ath5k_eeprom_init_11a_pcal_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	mov	x20, x0
	ldr	x8, [x20, #8]!
	str	w1, [sp, #12]
	ldr	x19, [x20, #16]
Lloh0:
	adrp	x9, _AR5K_EEPROM_VERSION_3_3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_3_3@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.1:
	mov	x22, x1
	ldr	w0, [x21]
	bl	_AR5K_EEPROM_FREQ_M
	add	w23, w22, #1
	str	w23, [sp, #12]
	mov	x0, x22
	bl	_AR5K_EEPROM_READ
	movi.2d	v0, #0000000000000000
	str	d0, [x19]
	str	wzr, [x19, #8]
	add	w24, w22, #2
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	movi.2d	v0, #0000000000000000
	stur	d0, [x19, #12]
	add	w23, w22, #3
	mov	x0, x24
	bl	_AR5K_EEPROM_READ
	movi.2d	v0, #0000000000000000
	stur	d0, [x19, #20]
	add	w24, w22, #4
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	movi.2d	v0, #0000000000000000
	stur	d0, [x19, #28]
	str	wzr, [x19, #36]
	add	w8, w22, #5
	str	w8, [sp, #12]
	mov	x0, x24
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x21, #16]
Lloh3:
	adrp	x21, _AR5K_EEPROM_MODE_11A@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AR5K_EEPROM_MODE_11A@GOTPAGEOFF]
	ldr	x2, [x21]
	mov	w9, #10
	str	w9, [x8, x2, lsl #2]
Lloh5:
	adrp	x22, _AR5K_EEPROM_N_5GHZ_CHAN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AR5K_EEPROM_N_5GHZ_CHAN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_ath5k_eeprom_bin2freq
	str	w0, [x19]
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.3:
	mov	w23, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x21]
	lsl	x24, x23, #2
	ldr	w1, [x19, x24]
	mov	x0, x20
	bl	_ath5k_eeprom_bin2freq
	str	w0, [x19, x24]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_4
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _AR5K_EEPROM_N_5GHZ_CHAN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR5K_EEPROM_N_5GHZ_CHAN@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _AR5K_EEPROM_MODE_11A@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR5K_EEPROM_MODE_11A@GOTPAGEOFF]
Lloh12:
	ldr	x4, [x8]
	add	x1, sp, #12
	mov	x0, x21
	mov	x3, x19
	bl	_ath5k_eeprom_read_freq_list
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_VERSION_3_3,8,3    ; @AR5K_EEPROM_VERSION_3_3
	.comm	_AR5K_EEPROM_N_5GHZ_CHAN,4,2    ; @AR5K_EEPROM_N_5GHZ_CHAN
	.comm	_AR5K_EEPROM_MODE_11A,8,3       ; @AR5K_EEPROM_MODE_11A
	.no_dead_strip	_ath5k_eeprom_init_11a_pcal_freq
.subsections_via_symbols
