	.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_5111
_ath5k_eeprom_read_pcal_info_5111:      ## @ath5k_eeprom_read_pcal_info_5111
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	40(%rdi), %edi
	callq	_AR5K_EEPROM_GROUPS_START
	movl	%eax, %r15d
	cmpl	$128, %r14d
	je	LBB0_6
## %bb.1:
	cmpl	$129, %r14d
	je	LBB0_8
## %bb.2:
	cmpl	$130, %r14d
	jne	LBB0_15
## %bb.3:
	movl	16(%r12), %edi
	callq	_AR5K_EEPROM_HDR_11A
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	movq	_AR5K_EEPROM_GROUP1_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r15d, %esi
	movq	%r12, %rdi
	callq	_ath5k_eeprom_init_11a_pcal_freq
	testl	%eax, %eax
	js	LBB0_19
## %bb.5:
	movq	_AR5K_EEPROM_GROUP2_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r12), %rax
	movq	32(%r12), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_6:
	movl	16(%r12), %edi
	callq	_AR5K_EEPROM_HDR_11G
	testl	%eax, %eax
	je	LBB0_18
## %bb.7:
	movq	8(%r12), %rcx
	movq	_AR5K_EEPROM_GROUP4_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$2312, (%rcx)                   ## imm = 0x908
	movl	$2412, 32(%rcx)                 ## imm = 0x96C
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	$2484, 64(%rcx)                 ## imm = 0x9B4
	movq	(%r12), %rax
	movl	$3, 512(%rax)
	jmp	LBB0_11
LBB0_8:
	movl	16(%r12), %edi
	callq	_AR5K_EEPROM_HDR_11B
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	16(%r12), %edi
	callq	_AR5K_EEPROM_HDR_11G
	testl	%eax, %eax
	je	LBB0_18
LBB0_10:
	movq	24(%r12), %rcx
	movq	_AR5K_EEPROM_GROUP3_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$2412, (%rcx)                   ## imm = 0x96C
	movl	$2447, 32(%rcx)                 ## imm = 0x98F
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	$2484, 64(%rcx)                 ## imm = 0x9B4
	movq	(%r12), %rax
	movl	$3, 516(%rax)
LBB0_11:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %r13d
	cmpl	$0, (%rax,%r13,4)
	jle	LBB0_14
## %bb.12:
	addl	%r15d, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AR5K_EEPROM_READ
	movq	$0, (%r15)
	movq	8(%r15), %rax
	movl	$0, (%rax)
	leal	1(%rbx), %edi
	callq	_AR5K_EEPROM_READ
	movq	8(%r15), %rax
	movq	$0, 4(%rax)
	movl	$0, 12(%rax)
	leal	2(%rbx), %edi
	callq	_AR5K_EEPROM_READ
	movq	8(%r15), %rax
	movq	$0, 16(%rax)
	leal	3(%rbx), %edi
	callq	_AR5K_EEPROM_READ
	movq	8(%r15), %rax
	movq	$0, 24(%rax)
	movl	$0, 32(%rax)
	leal	4(%rbx), %edi
	callq	_AR5K_EEPROM_READ
	movq	8(%r15), %rax
	movq	$0, 36(%rax)
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movl	16(%r15), %ecx
	movq	%r12, %rdi
	callq	_ath5k_get_pcdac_intercepts
	incq	%r14
	movq	(%r12), %rax
	movslq	(%rax,%r13,4), %rax
	addq	$32, %r15
	addl	$5, %ebx
	cmpq	%rax, %r14
	jl	LBB0_13
LBB0_14:
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_eeprom_convert_pcal_info_5111 ## TAILCALL
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_GROUP1_OFFSET,4,2  ## @AR5K_EEPROM_GROUP1_OFFSET
	.comm	_AR5K_EEPROM_GROUP2_OFFSET,4,2  ## @AR5K_EEPROM_GROUP2_OFFSET
	.comm	_AR5K_EEPROM_GROUP3_OFFSET,4,2  ## @AR5K_EEPROM_GROUP3_OFFSET
	.comm	_AR5K_EEPROM_GROUP4_OFFSET,4,2  ## @AR5K_EEPROM_GROUP4_OFFSET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR5K_EEPROM_PCDAC_M,4,2        ## @AR5K_EEPROM_PCDAC_M
	.comm	_AR5K_EEPROM_POWER_M,4,2        ## @AR5K_EEPROM_POWER_M
	.no_dead_strip	_ath5k_eeprom_read_pcal_info_5111
.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_5111
_ath5k_eeprom_read_pcal_info_5111:      ; @ath5k_eeprom_read_pcal_info_5111
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #40]
	bl	_AR5K_EEPROM_GROUPS_START
	mov	x22, x0
	cmp	w19, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w19, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w19, #130
	b.ne	LBB0_15
; %bb.3:
	ldr	w0, [x20, #16]
	bl	_AR5K_EEPROM_HDR_11A
	cbz	w0, LBB0_16
; %bb.4:
Lloh0:
	adrp	x8, _AR5K_EEPROM_GROUP1_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_EEPROM_GROUP1_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w1, w8, w22
	mov	x0, x20
	bl	_ath5k_eeprom_init_11a_pcal_freq
	tbnz	w0, #31, LBB0_16
; %bb.5:
Lloh3:
	adrp	x8, _AR5K_EEPROM_GROUP2_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_EEPROM_GROUP2_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x21, [x20, #32]
	ldr	x9, [x20]
	b	LBB0_11
LBB0_6:
	ldr	w0, [x20, #16]
	bl	_AR5K_EEPROM_HDR_11G
	cbz	w0, LBB0_16
; %bb.7:
Lloh6:
	adrp	x8, _AR5K_EEPROM_GROUP4_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR5K_EEPROM_GROUP4_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w10, #2312
	ldp	x9, x21, [x20]
	str	w10, [x21]
	mov	w10, #2412
	str	w10, [x21, #32]
	mov	w10, #2484
	str	w10, [x21, #64]
	mov	w10, #3
	str	w10, [x9, #512]
	b	LBB0_11
LBB0_8:
	ldr	w0, [x20, #16]
	bl	_AR5K_EEPROM_HDR_11B
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x20, #16]
	bl	_AR5K_EEPROM_HDR_11G
	cbz	w0, LBB0_16
LBB0_10:
	ldr	x21, [x20, #24]
Lloh9:
	adrp	x8, _AR5K_EEPROM_GROUP3_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_EEPROM_GROUP3_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #2412
	str	w9, [x21]
	mov	w9, #2447
	str	w9, [x21, #32]
	mov	w9, #2484
	str	w9, [x21, #64]
	ldr	x9, [x20]
	mov	w10, #3
	str	w10, [x9, #516]
LBB0_11:
	ldr	w9, [x9, w19, uxtw #2]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x23, #0
	add	w22, w8, w22
	add	x24, x21, #12
	mov	w25, w19
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_AR5K_EEPROM_READ
	movi.2d	v0, #0000000000000000
	stur	d0, [x24, #-4]
	ldur	x8, [x24, #4]
	str	wzr, [x8]
	add	w0, w22, #1
	bl	_AR5K_EEPROM_READ
	ldur	x8, [x24, #4]
	movi.2d	v0, #0000000000000000
	stur	d0, [x8, #4]
	str	wzr, [x8, #12]
	add	w0, w22, #2
	bl	_AR5K_EEPROM_READ
	ldur	x8, [x24, #4]
	movi.2d	v0, #0000000000000000
	str	d0, [x8, #16]
	add	w0, w22, #3
	bl	_AR5K_EEPROM_READ
	ldur	x8, [x24, #4]
	movi.2d	v0, #0000000000000000
	str	d0, [x8, #24]
	str	wzr, [x8, #32]
	add	w0, w22, #4
	bl	_AR5K_EEPROM_READ
	ldur	x8, [x24, #4]
	movi.2d	v0, #0000000000000000
	stur	d0, [x8, #36]
	ldp	w2, w1, [x24, #-4]
	ldr	w3, [x24, #12]
	mov	x0, x20
	bl	_ath5k_get_pcdac_intercepts
	add	x23, x23, #1
	ldr	x8, [x20]
	ldrsw	x8, [x8, x25, lsl #2]
	add	x24, x24, #32
	add	w22, w22, #5
	cmp	x23, x8
	b.lt	LBB0_13
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ath5k_eeprom_convert_pcal_info_5111
LBB0_15:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_GROUP1_OFFSET,4,2  ; @AR5K_EEPROM_GROUP1_OFFSET
	.comm	_AR5K_EEPROM_GROUP2_OFFSET,4,2  ; @AR5K_EEPROM_GROUP2_OFFSET
	.comm	_AR5K_EEPROM_GROUP3_OFFSET,4,2  ; @AR5K_EEPROM_GROUP3_OFFSET
	.comm	_AR5K_EEPROM_GROUP4_OFFSET,4,2  ; @AR5K_EEPROM_GROUP4_OFFSET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR5K_EEPROM_PCDAC_M,4,2        ; @AR5K_EEPROM_PCDAC_M
	.comm	_AR5K_EEPROM_POWER_M,4,2        ; @AR5K_EEPROM_POWER_M
	.no_dead_strip	_ath5k_eeprom_read_pcal_info_5111
.subsections_via_symbols
