	.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_5112
_ath5k_eeprom_read_pcal_info_5112:      ## @ath5k_eeprom_read_pcal_info_5112
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movslq	%esi, %r12
	movq	_AR5K_EEPROM_N_PD_CURVES@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.3:
	movl	%esi, %r14d
	movq	(%r15), %rcx
	movq	(%rcx,%r12,8), %rsi
	movq	8(%r15), %rdi
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	%edx, %ebx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%r12,4), %eax
	btl	%ebx, %eax
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ecx, %rax
	incl	%ecx
	movl	%ebx, (%rsi,%rax,4)
	movl	(%r8), %edx
	jmp	LBB0_6
LBB0_7:
	movq	16(%r15), %rax
	movl	%ecx, (%rax,%r12,4)
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.8:
	cmpl	$3, %ecx
	jge	LBB0_2
## %bb.9:
	cmpl	$128, %r14d
	je	LBB0_13
## %bb.10:
	cmpl	$129, %r14d
	je	LBB0_19
## %bb.11:
	cmpl	$130, %r14d
	jne	LBB0_2
## %bb.12:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	24(%r15), %rdi
	callq	_AR5K_EEPROM_GROUPS_START
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ath5k_eeprom_init_11a_pcal_freq
	movq	_AR5K_EEPROM_GROUP2_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	addq	%rbx, %r13
	leaq	64(%r15), %rax
	jmp	LBB0_20
LBB0_1:
	movq	16(%r15), %rax
	movl	$0, (%rax,%r12,4)
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	24(%r15), %rdi
	callq	_AR5K_EEPROM_GROUPS_START
	movq	%rax, %r13
	movl	48(%r15), %edi
	callq	_AR5K_EEPROM_HDR_11A
	testl	%eax, %eax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_15
## %bb.14:
	movq	_AR5K_EEPROM_GROUP4_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_19:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	24(%r15), %rdi
	callq	_AR5K_EEPROM_GROUPS_START
	movq	%rax, %rbx
	movl	48(%r15), %edi
	callq	_AR5K_EEPROM_HDR_11A
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	_AR5K_EEPROM_GROUP3_OFFSET@GOTPCREL(%rip), %rax
	cmovnel	(%rax), %r13d
	addq	%rbx, %r13
	leaq	56(%r15), %rax
	jmp	LBB0_20
LBB0_15:
	movl	48(%r15), %edi
	callq	_AR5K_EEPROM_HDR_11B
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movq	_AR5K_EEPROM_GROUP2_OFFSET@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	%rax, %r13
LBB0_18:
	leaq	40(%r15), %rax
LBB0_20:
	movq	(%rax), %rdx
	movq	32(%r15), %rax
	cmpl	$0, (%rax,%r12,4)
	jle	LBB0_30
## %bb.21:
	xorl	%esi, %esi
	movq	_AR5K_EEPROM_N_XPD0_POINTS@GOTPCREL(%rip), %r14
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	$1, (%rax)
	xorl	%eax, %eax
LBB0_29:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$3, %rbx
	movq	%rax, (%rdx,%r12,8)
	incq	%rsi
	movq	32(%r15), %rax
	movslq	(%rax,%rcx,4), %rax
	movq	%rbx, %r13
	cmpq	%rax, %rsi
	jge	LBB0_30
LBB0_22:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
	cmpl	$0, (%r14)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rsi,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	leaq	(%rdx,%rax,8), %r15
	addq	$32, %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	1(%r13), %rbx
	movl	%r13d, %edi
	callq	_AR5K_EEPROM_READ
	movq	(%r15), %rax
	movq	$0, (%rax,%r12,8)
	movq	(%r15), %rax
	movq	$0, 8(%rax,%r12,8)
	addq	$2, %r12
	movq	%rbx, %r13
	cmpl	%r12d, (%r14)
	jg	LBB0_25
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%r13, %rbx
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	%ebx, %edi
	callq	_AR5K_EEPROM_READ
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r15,%r12,8), %rax
	movq	$0, 4(%rax)
	movl	$0, 12(%rax)
	leal	1(%rbx), %edi
	callq	_AR5K_EEPROM_READ
	movq	16(%r15,%r12,8), %rax
	movq	$0, (%rax)
	leal	2(%rbx), %edi
	callq	_AR5K_EEPROM_READ
	movq	%r15, %rdx
	movq	16(%r15,%r12,8), %rax
	movl	$0, 8(%rax)
	movq	24(%r15,%r12,8), %rax
	movabsq	$150323855380, %rcx             ## imm = 0x2300000014
	movq	%rcx, (%rax)
	movl	$63, 8(%rax)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	24(%r15), %rcx
	movq	8(%rdx,%r12,8), %rax
	movq	_AR5K_EEPROM_VERSION_4_3@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	jl	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	$0, (%rax)
	movq	32(%rdx,%r12,8), %rax
	movq	24(%rax), %rax
	jmp	LBB0_29
LBB0_30:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_eeprom_convert_pcal_info_5112 ## TAILCALL
	.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_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	_AR5K_EEPROM_N_XPD0_POINTS,4,2  ## @AR5K_EEPROM_N_XPD0_POINTS
	.comm	_AR5K_EEPROM_VERSION_4_3,8,3    ## @AR5K_EEPROM_VERSION_4_3
	.no_dead_strip	_ath5k_eeprom_read_pcal_info_5112
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ath5k_eeprom_read_pcal_info_5112
lCPI0_0:
	.long	20                              ; 0x14
	.long	35                              ; 0x23
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ath5k_eeprom_read_pcal_info_5112:      ; @ath5k_eeprom_read_pcal_info_5112
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x1
	mov	x20, x0
	sxtw	x24, w19
Lloh0:
	adrp	x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w10, #0
	b.le	LBB0_11
; %bb.1:
	mov	w9, #0
	mov	w11, #0
	ldp	x13, x12, [x20]
	ldr	x13, [x13, w19, sxtw #3]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w11, w11, #1
	cmp	w11, w10
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12, x24, lsl #2]
	lsr	w14, w14, w11
	tbz	w14, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w11, [x13, w9, sxtw #2]
	add	w9, w9, #1
	ldr	w10, [x8]
	b	LBB0_2
LBB0_5:
	ldr	x8, [x20, #16]
	str	w9, [x8, x24, lsl #2]
	cbz	w9, LBB0_12
; %bb.6:
	cmp	w9, #3
	b.ge	LBB0_12
; %bb.7:
	cmp	w19, #128
	b.eq	LBB0_13
; %bb.8:
	cmp	w19, #129
	b.eq	LBB0_15
; %bb.9:
	cmp	w19, #130
	b.ne	LBB0_12
; %bb.10:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x0, [x20, #24]
	bl	_AR5K_EEPROM_GROUPS_START
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ath5k_eeprom_init_11a_pcal_freq
Lloh2:
	adrp	x8, _AR5K_EEPROM_GROUP2_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR5K_EEPROM_GROUP2_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	x22, x21, x8
	add	x8, x20, #64
	b	LBB0_20
LBB0_11:
	ldr	x8, [x20, #16]
	str	wzr, [x8, x24, lsl #2]
LBB0_12:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	ldr	x0, [x20, #24]
	bl	_AR5K_EEPROM_GROUPS_START
	mov	x22, x0
	ldr	w0, [x20, #48]
	bl	_AR5K_EEPROM_HDR_11A
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	cbz	w0, LBB0_16
; %bb.14:
Lloh8:
	adrp	x8, _AR5K_EEPROM_GROUP4_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR5K_EEPROM_GROUP4_OFFSET@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x0, [x20, #24]
	bl	_AR5K_EEPROM_GROUPS_START
	mov	x21, x0
	ldr	w0, [x20, #48]
	bl	_AR5K_EEPROM_HDR_11A
Lloh10:
	adrp	x8, _AR5K_EEPROM_GROUP3_OFFSET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR5K_EEPROM_GROUP3_OFFSET@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	add	x22, x21, x8
	add	x8, x20, #56
	b	LBB0_20
LBB0_16:
	ldr	w0, [x20, #48]
	bl	_AR5K_EEPROM_HDR_11B
	cbz	w0, LBB0_19
; %bb.17:
Lloh13:
	adrp	x8, _AR5K_EEPROM_GROUP2_OFFSET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR5K_EEPROM_GROUP2_OFFSET@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	add	x22, x22, x8
LBB0_19:
	add	x8, x20, #40
LBB0_20:
	ldr	x21, [x8]
	ldr	x8, [x20, #32]
	ldr	w8, [x8, x24, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.21:
	mov	x25, #0
Lloh15:
	adrp	x26, _AR5K_EEPROM_N_XPD0_POINTS@GOTPAGE
Lloh16:
	ldr	x26, [x26, _AR5K_EEPROM_N_XPD0_POINTS@GOTPAGEOFF]
	mov	w27, #40
Lloh17:
	adrp	x8, lCPI0_0@PAGE
Lloh18:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x8, #0
	mov	w10, #1
	str	w10, [x9]
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	mul	x9, x25, x27
	str	x8, [x21, x9]
	add	x22, x23, #3
	add	x25, x25, #1
	ldr	x8, [x20, #32]
	ldrsw	x8, [x8, x24, lsl #2]
	cmp	x25, x8
	b.ge	LBB0_30
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x28, #0
	madd	x8, x25, x27, x21
	add	x19, x8, #32
LBB0_26:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x23, x22, #1
	mov	x0, x22
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x19]
	lsl	x9, x28, #3
	str	xzr, [x8, x9]
	ldr	x8, [x19]
	add	x8, x8, x9
	str	xzr, [x8, #8]
	add	x28, x28, #2
	ldr	w8, [x26]
	mov	x22, x23
	cmp	w8, w28
	b.gt	LBB0_26
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x23, x22
LBB0_28:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x23
	bl	_AR5K_EEPROM_READ
	madd	x19, x25, x27, x21
	ldr	x8, [x19, #8]
	movi.2d	v0, #0000000000000000
	stur	d0, [x8, #4]
	str	wzr, [x8, #12]
	add	w0, w23, #1
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x19, #16]
	movi.2d	v0, #0000000000000000
	str	d0, [x8]
	add	w0, w23, #2
	bl	_AR5K_EEPROM_READ
	ldp	x9, x8, [x19, #8]
	str	wzr, [x8, #8]
	ldr	x8, [x19, #24]
	str	d8, [x8]
	mov	w10, #63
	str	w10, [x8, #8]
	ldr	x8, [x20, #24]
Lloh19:
	adrp	x10, _AR5K_EEPROM_VERSION_4_3@GOTPAGE
Lloh20:
	ldr	x10, [x10, _AR5K_EEPROM_VERSION_4_3@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x8, x10
	b.lt	LBB0_22
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=1
	str	wzr, [x9]
	madd	x8, x25, x27, x21
	ldr	x8, [x8, #32]
	ldr	x8, [x8, #24]
	b	LBB0_23
LBB0_30:
	mov	x0, x20
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_ath5k_eeprom_convert_pcal_info_5112
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.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_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	_AR5K_EEPROM_N_XPD0_POINTS,4,2  ; @AR5K_EEPROM_N_XPD0_POINTS
	.comm	_AR5K_EEPROM_VERSION_4_3,8,3    ; @AR5K_EEPROM_VERSION_4_3
	.no_dead_strip	_ath5k_eeprom_read_pcal_info_5112
.subsections_via_symbols
