	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_eeprom_convert_pcal_info_2413
_ath5k_eeprom_convert_pcal_info_2413:   ## @ath5k_eeprom_convert_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movslq	%esi, %r8
	movq	8(%rdi), %rax
	cmpl	$0, (%rax,%r8,4)
	je	LBB0_18
## %bb.1:
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	(%rax,%r8,8), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_AR5K_EEPROM_N_PD_CURVES@GOTPCREL(%rip), %rax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	8(%rdi), %rax
	movl	(%rax,%r8,4), %eax
	cmpq	%rax, %rbx
	movq	_AR5K_EEPROM_N_PD_CURVES@GOTPCREL(%rip), %rax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	jae	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movl	(%rax), %edi
	movl	(%rcx), %edx
	movl	$24, %esi
	callq	_kcalloc
	movq	%rax, %r15
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rbx,2), %rdx
	shlq	$4, %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, 8(%rax,%rdx)
	testq	%r15, %r15
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rdi), %rax
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	(%rax,%r8,4), %ebx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %rdx
	addq	$8, %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	addq	%rax, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r12,8), %rax
	decl	%ebx
	xorl	%edx, %edx
	cmpq	%rbx, %r12
	setne	%dl
	movq	_AR5K_EEPROM_N_PD_POINTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subl	%edx, %edi
	leaq	(%rax,%rax,2), %r14
	movl	%edi, (%r15,%r14,8)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 16(%r15,%r14,8)
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	leaq	(%r15,%r14,8), %r13
	movl	(%r13), %edi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r15,%r14,8)
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	leaq	(%r15,%r14,8), %rcx
	addq	$16, %rcx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	32(%r14), %rdx
	movq	(%rdx,%r12,8), %rdx
	movq	(%rcx), %r9
	movq	%rdx, (%r9)
	movq	8(%r14), %rcx
	movl	(%rcx,%r12,4), %r8d
	shll	$2, %r8d
	movl	%r8d, (%rax)
	movl	(%r13), %ecx
	cmpl	$2, %ecx
	jb	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	16(%r14), %rcx
	movq	(%rcx,%r12,8), %r10
	movq	24(%r14), %rcx
	movq	(%rcx,%r12,8), %r11
	movl	$1, %esi
	movl	%r8d, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-4(%r10,%rsi,4), %edi
	leal	(%rbx,%rdi,2), %ebx
	movl	%ebx, (%rax,%rsi,4)
	addq	-8(%r11,%rsi,8), %rdx
	movq	%rdx, (%r9,%rsi,8)
	incq	%rsi
	movl	(%r13), %ecx
	cmpq	%rcx, %rsi
	jb	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	testq	%r12, %r12
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%r8d, (%rdx)
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rdi), %rdx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	(%rdx,%r8,4), %ebx
	leal	-1(%rbx), %esi
	cmpq	%rsi, %r12
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	decl	%ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -4(%r14)
	movl	(%rdx,%r8,4), %ebx
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r12
	movl	%ebx, %eax
	cmpq	%rax, %r12
	jae	LBB0_2
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r14), %r15
	jmp	LBB0_6
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_ath5k_eeprom_free_pcal_info
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_N_PD_CURVES,4,2    ## @AR5K_EEPROM_N_PD_CURVES
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_AR5K_EEPROM_N_PD_POINTS,8,3    ## @AR5K_EEPROM_N_PD_POINTS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ath5k_eeprom_convert_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_convert_pcal_info_2413
_ath5k_eeprom_convert_pcal_info_2413:   ; @ath5k_eeprom_convert_pcal_info_2413
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0, #8]
	ldr	w8, [x8, w1, sxtw #2]
	cbz	w8, LBB0_18
; %bb.1:
	mov	x20, x0
	mov	x19, #0
	ldr	x8, [x0]
	sxtw	x24, w1
	str	x1, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [x8, w1, sxtw #3]
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	add	x19, x19, #1
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x24, lsl #2]
	cmp	x19, x8
Lloh4:
	adrp	x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGEOFF]
Lloh6:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
	b.hs	LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	w0, [x8]
	ldr	w2, [x9]
	mov	w1, #24
	bl	_kcalloc
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	w9, #48
	madd	x21, x19, x9, x8
	str	x0, [x21, #8]!
	cbz	x0, LBB0_17
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x24, lsl #2]
	mov	w10, #24
	cbz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldr	x27, [x9]
	cmp	w8, #1
	cset	w8, ne
Lloh8:
	adrp	x9, _AR5K_EEPROM_N_PD_POINTS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AR5K_EEPROM_N_PD_POINTS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	sub	w0, w9, w8
	madd	x25, x27, x10, x22
	str	w0, [x25]
Lloh11:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #8
	mov	w28, #24
	bl	_kcalloc
	mov	x26, x25
	str	x0, [x26, #16]!
	cbz	x0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
	ldp	x9, x8, [sp, #8]                ; 16-byte Folded Reload
	mov	w10, #48
	madd	x8, x9, x10, x8
	add	x10, x8, #40
	add	x9, x8, #16
	stp	x9, x10, [sp, #56]              ; 16-byte Folded Spill
	add	x10, x8, #24
	add	x9, x8, #32
	stp	x9, x10, [sp, #40]              ; 16-byte Folded Spill
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	x8, x8, #4
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	w0, [x25]
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kcalloc
	madd	x8, x27, x28, x22
	str	x0, [x8, #8]
	cbz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x9, [x8, x19, lsl #3]
	ldr	x15, [x26]
	str	x9, [x15]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w8, [x8, x19, lsl #2]
	lsl	w8, w8, #2
	str	w8, [x0]
	ldr	w12, [x25]
	cmp	w12, #2
	b.lo	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x10, #0
	ldp	x13, x11, [sp, #40]             ; 16-byte Folded Reload
	ldr	x11, [x11]
	lsl	x12, x19, #3
	ldr	x11, [x11, x12]
	ldr	x13, [x13]
	ldr	x13, [x13, x12]
	add	x14, x0, #4
	add	x15, x15, #8
	mov	x16, x8
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	x12, x10, #2
	ldr	w17, [x11, x12]
	add	w16, w16, w17, lsl #1
	str	w16, [x14, x12]
	lsl	x12, x10, #3
	ldr	x17, [x13, x12]
	add	x9, x17, x9
	str	x9, [x15, x12]
	ldr	w12, [x25]
	add	x17, x10, #2
	add	x10, x10, #1
	cmp	x17, x12
	b.lo	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	cbnz	x19, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [x20, #16]
	ldr	w8, [x9, x24, lsl #2]
	sub	w10, w8, #1
	cmp	x19, x10
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	sub	w8, w12, #1
	ldr	w8, [x0, w8, uxtw #2]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	str	w8, [x10]
	ldr	w8, [x9, x24, lsl #2]
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x19, x19, #1
	cmp	x19, w8, uxtw
	mov	w10, #24
	b.hs	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x22, [x21]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldr	x27, [x9, x19, lsl #3]
	sub	w8, w8, #1
	cmp	x19, x8
	cset	w8, ne
Lloh13:
	adrp	x9, _AR5K_EEPROM_N_PD_POINTS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AR5K_EEPROM_N_PD_POINTS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	sub	w0, w9, w8
	madd	x25, x27, x10, x22
	str	w0, [x25]
Lloh16:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh17:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #8
	mov	w28, #24
	bl	_kcalloc
	mov	x26, x25
	str	x0, [x26, #16]!
	cbnz	x0, LBB0_7
LBB0_17:
	mov	x0, x20
	ldr	x1, [sp]                        ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ath5k_eeprom_free_pcal_info
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_N_PD_CURVES,4,2    ; @AR5K_EEPROM_N_PD_CURVES
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_AR5K_EEPROM_N_PD_POINTS,8,3    ; @AR5K_EEPROM_N_PD_POINTS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ath5k_eeprom_convert_pcal_info_2413
.subsections_via_symbols
