	.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_5112
_ath5k_eeprom_convert_pcal_info_5112:   ## @ath5k_eeprom_convert_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movslq	%esi, %rbx
	movq	8(%rdi), %rax
	cmpl	$0, (%rax,%rbx,4)
	je	LBB0_23
## %bb.1:
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	_AR5K_EEPROM_N_PD_CURVES@GOTPCREL(%rip), %rax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rdx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	incq	%r14
	movq	8(%rdi), %rax
	movl	(%rax,%rbx,4), %eax
	cmpq	%rax, %r14
	movq	_AR5K_EEPROM_N_PD_CURVES@GOTPCREL(%rip), %rax
	jae	LBB0_23
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
	movl	(%rax), %edi
	movq	%rdx, %r15
	movl	(%rdx), %edx
	movl	$24, %esi
	callq	_kcalloc
	movq	%rax, %rcx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r14,2), %rdx
	shlq	$4, %rdx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, 8(%rax,%rdx)
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rdi), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, (%rax,%rbx,4)
	movq	%r15, %rdx
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rsi), %r10
	addq	$8, %r10
	addq	%rax, %rsi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r10, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r13,8), %rax
	leaq	(%rax,%rax,2), %r15
	leaq	(%rcx,%r15,8), %r12
	cmpl	$1, %r13d
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	testl	%r13d, %r13d
	jne	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_AR5K_EEPROM_N_XPD0_POINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, (%r12)
	movq	%rdx, %r14
	movl	(%rdx), %edx
	movl	$8, %esi
	movq	%rcx, %rbx
	callq	_kcalloc
	movq	%rbx, %rcx
	movq	%rax, 16(%rbx,%r15,8)
	testq	%rax, %rax
	je	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r12), %edi
	movl	(%r14), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%rbx,%r15,8)
	testq	%rax, %rax
	je	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	leaq	(%rbx,%r15,8), %rcx
	addq	$16, %rcx
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	movq	24(%r10), %r9
	movq	(%r9), %rsi
	movq	(%rcx), %rdi
	movq	%rsi, (%rdi)
	movq	32(%r10), %rbx
	movl	(%rbx), %r8d
	movl	%r8d, (%rax)
	cmpl	$2, (%r12)
	jb	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rbx,%rcx,4), %edx
	movl	%edx, (%rax,%rcx,4)
	addq	(%r9,%rcx,8), %rsi
	movq	%rsi, (%rdi,%rcx,8)
	incq	%rcx
	movl	(%r12), %edx
	cmpq	%rdx, %rcx
	jb	LBB0_12
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	_AR5K_EEPROM_N_XPD3_POINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, (%r12)
	movq	%rdx, %rbx
	movl	(%rdx), %edx
	movl	$8, %esi
	movq	%rcx, %r14
	callq	_kcalloc
	movq	%r14, %rcx
	movq	%rax, 16(%r14,%r15,8)
	testq	%rax, %rax
	je	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r12), %edi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r14,%r15,8)
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$0, (%r12)
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=2
	leaq	(%r14,%r15,8), %rsi
	addq	$16, %rsi
	movq	16(%r10), %rcx
	movq	8(%r10), %rdx
	movq	(%rsi), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rcx,%rdi,4), %ebx
	movl	%ebx, (%rax,%rdi,4)
	movq	(%rdx,%rdi,8), %rbx
	movq	%rbx, (%rsi,%rdi,8)
	incq	%rdi
	movl	(%r12), %ebx
	cmpq	%rbx, %rdi
	jb	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	(%rax), %r8d
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rdx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%r8d, (%rax)
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r13
	movq	16(%rdi), %rax
	movl	(%rax,%rbx,4), %eax
	cmpq	%rax, %r13
	jae	LBB0_2
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r10), %rcx
	jmp	LBB0_6
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_ath5k_eeprom_free_pcal_info
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_24
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	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_XPD0_POINTS,4,2  ## @AR5K_EEPROM_N_XPD0_POINTS
	.comm	_AR5K_EEPROM_N_XPD3_POINTS,4,2  ## @AR5K_EEPROM_N_XPD3_POINTS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ath5k_eeprom_convert_pcal_info_5112
.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_5112
_ath5k_eeprom_convert_pcal_info_5112:   ; @ath5k_eeprom_convert_pcal_info_5112
	.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, #24]                   ; 8-byte Folded Spill
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0, #8]
	ldr	w8, [x8, w1, sxtw #2]
	cbz	w8, LBB0_23
; %bb.1:
	mov	x20, x0
	mov	x19, #0
	ldr	x8, [x0]
	sxtw	x9, w1
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x8, w1, sxtw #3]
	stp	x8, x9, [sp, #64]               ; 16-byte Folded Spill
Lloh0:
	adrp	x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGEOFF]
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	mov	w28, #24
	mov	w23, #48
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	add	x19, x19, #1
	ldr	x8, [x20, #8]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w8, [x8, x9, lsl #2]
	cmp	x19, x8
Lloh4:
	adrp	x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGEOFF]
	mov	w23, #48
	b.hs	LBB0_23
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	ldr	w0, [x8]
	ldr	w2, [x24]
	mov	w1, #24
	bl	_kcalloc
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	mov	w11, #48
	madd	x26, x19, x23, x8
	str	x0, [x26, #8]!
	cbz	x0, LBB0_22
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	mov	x21, #0
	ldp	x9, x8, [sp, #16]               ; 16-byte Folded Reload
	madd	x19, x9, x11, x8
	add	x9, x19, #24
	add	x8, x19, #16
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
	add	x9, x19, #32
	add	x8, x19, #40
	stp	x8, x9, [sp, #48]               ; 16-byte Folded Spill
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x27, [x8, x21, lsl #3]
	madd	x23, x27, x28, x22
	cmp	w21, #1
	b.eq	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	cbnz	w21, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
Lloh6:
	adrp	x8, _AR5K_EEPROM_N_XPD0_POINTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR5K_EEPROM_N_XPD0_POINTS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	w0, [x23]
	ldr	w2, [x24]
	mov	w1, #8
	bl	_kcalloc
	madd	x25, x27, x28, x22
	str	x0, [x25, #16]!
	cbz	x0, LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [x23]
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kcalloc
	madd	x8, x27, x28, x22
	str	x0, [x8, #8]
	cbz	x0, LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x9, [x8]
	ldr	x10, [x9]
	ldr	x11, [x25]
	str	x10, [x11]
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x12, [x8]
	ldr	w8, [x12]
	str	w8, [x0]
	ldr	w13, [x23]
	cmp	w13, #2
	b.lo	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	w13, #1
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	x14, x13, #2
	ldr	w15, [x12, x14]
	str	w15, [x0, x14]
	lsl	x14, x13, #3
	ldr	x15, [x9, x14]
	add	x10, x15, x10
	str	x10, [x11, x14]
	add	x13, x13, #1
	ldr	w14, [x23]
	cmp	x13, x14
	b.lo	LBB0_12
	b	LBB0_19
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=2
Lloh9:
	adrp	x8, _AR5K_EEPROM_N_XPD3_POINTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_EEPROM_N_XPD3_POINTS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	str	w0, [x23]
	ldr	w2, [x24]
	mov	w1, #8
	bl	_kcalloc
	madd	x25, x27, x28, x22
	str	x0, [x25, #16]!
	cbz	x0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [x23]
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kcalloc
	madd	x8, x27, x28, x22
	str	x0, [x8, #8]
	cbz	x0, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x23]
	cbz	w8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x8, #0
	ldp	x10, x9, [sp, #32]              ; 16-byte Folded Reload
	ldr	x9, [x9]
	ldr	x10, [x10]
	ldr	x11, [x25]
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	x12, x8, #2
	ldr	w13, [x9, x12]
	str	w13, [x0, x12]
	lsl	x12, x8, #3
	ldr	x13, [x10, x12]
	str	x13, [x11, x12]
	add	x8, x8, #1
	ldr	w12, [x23]
	cmp	x8, x12
	b.lo	LBB0_17
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x0]
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=2
Lloh12:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	str	w8, [x19]
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x21, x21, #1
	ldr	x8, [x20, #16]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w8, [x8, x9, lsl #2]
	cmp	x21, x8
	b.hs	LBB0_2
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x22, [x26]
	b	LBB0_6
LBB0_22:
	mov	x0, x20
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ath5k_eeprom_free_pcal_info
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_23:
	mov	w0, #0
LBB0_24:
	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	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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_XPD0_POINTS,4,2  ; @AR5K_EEPROM_N_XPD0_POINTS
	.comm	_AR5K_EEPROM_N_XPD3_POINTS,4,2  ; @AR5K_EEPROM_N_XPD3_POINTS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ath5k_eeprom_convert_pcal_info_5112
.subsections_via_symbols
