	.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_5111
_ath5k_eeprom_convert_pcal_info_5111:   ## @ath5k_eeprom_convert_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	%esi, %rcx
	movq	8(%rdi), %rax
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_38
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ecx, (%rbx,%r14)
	movl	40(%rax), %eax
	movl	%eax, 4(%rbx,%r14)
	incq	%r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax,%rcx,8), %r13
	jae	LBB0_38
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
                                        ##     Child Loop BB0_35 Depth 2
	movq	_AR5K_EEPROM_N_PD_CURVES@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$24, %esi
	callq	_kcalloc
	movq	%r13, %r14
	shlq	$5, %r14
	movq	%rax, 8(%rbx,%r14)
	testq	%rax, %rax
	je	LBB0_36
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movq	%r15, %rbx
	movq	_AR5K_EEPROM_N_PD_CURVES@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rsi), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rax,%rdi,8), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	btq	%rax, %rdx
	jae	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rsi), %rcx
	movl	$1, (%rcx,%rdi,4)
	movq	_AR5K_EEPROM_N_PWR_POINTS_5111@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	leaq	(%rax,%rax,2), %r15
	movq	%rcx, (%r12,%r15,8)
	movq	(%rdx), %rdi
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 16(%r12,%r15,8)
	testq	%rax, %rax
	je	LBB0_36
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_AR5K_EEPROM_N_PWR_POINTS_5111@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r12,%r15,8)
	testq	%rax, %rax
	je	LBB0_36
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%r15,8), %rcx
	movq	(%rcx), %r8
	testq	%r8, %r8
	je	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%r15,8), %rcx
	addq	$16, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx,%r14), %r10
	movq	24(%rdx,%r14), %rsi
	movq	(%rcx), %rdi
	cmpq	$8, %r8
	jae	LBB0_16
LBB0_31:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
LBB0_32:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %rdx
	orq	$1, %rdx
	testb	$1, %r8b
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r10,%rcx,4), %ebx
	addl	%ebx, %ebx
	movl	%ebx, (%rax,%rcx,4)
	movl	(%rsi,%rcx,4), %ebx
	movl	%ebx, (%rdi,%rcx,4)
	movq	%rdx, %rcx
LBB0_34:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, %r8
	je	LBB0_2
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r10,%rcx,4), %edx
	addl	%edx, %edx
	movl	%edx, (%rax,%rcx,4)
	movl	(%rsi,%rcx,4), %edx
	movl	%edx, (%rdi,%rcx,4)
	movl	4(%r10,%rcx,4), %edx
	addl	%edx, %edx
	movl	%edx, 4(%rax,%rcx,4)
	movl	4(%rsi,%rcx,4), %edx
	movl	%edx, 4(%rdi,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_35
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, %rcx
	subq	%rax, %rcx
	cmpq	$32, %rcx
	jb	LBB0_31
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rcx
	subq	%r10, %rcx
	cmpq	$32, %rcx
	jb	LBB0_31
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %rcx
	subq	%rax, %rcx
	cmpq	$32, %rcx
	jb	LBB0_31
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, %rcx
	subq	%r10, %rcx
	cmpq	$32, %rcx
	jb	LBB0_31
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, %rdx
	subq	%rsi, %rdx
	movl	$0, %ecx
	cmpq	$32, %rdx
	jb	LBB0_32
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rcx
	andq	$-8, %rcx
	leaq	-8(%rcx), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %rdx
	andq	$-2, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%r10,%rbx,4), %xmm0
	movdqu	16(%r10,%rbx,4), %xmm1
	paddd	%xmm0, %xmm0
	paddd	%xmm1, %xmm1
	movdqu	%xmm0, (%rax,%rbx,4)
	movdqu	%xmm1, 16(%rax,%rbx,4)
	movups	(%rsi,%rbx,4), %xmm0
	movups	16(%rsi,%rbx,4), %xmm1
	movups	%xmm0, (%rdi,%rbx,4)
	movups	%xmm1, 16(%rdi,%rbx,4)
	movdqu	32(%r10,%rbx,4), %xmm0
	movdqu	48(%r10,%rbx,4), %xmm1
	paddd	%xmm0, %xmm0
	paddd	%xmm1, %xmm1
	movdqu	%xmm0, 32(%rax,%rbx,4)
	movdqu	%xmm1, 48(%rax,%rbx,4)
	movups	32(%rsi,%rbx,4), %xmm0
	movups	48(%rsi,%rbx,4), %xmm1
	movups	%xmm0, 32(%rdi,%rbx,4)
	movups	%xmm1, 48(%rdi,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rdx
	jne	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r9b
	je	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movdqu	(%r10,%rbx,4), %xmm0
	movdqu	16(%r10,%rbx,4), %xmm1
	paddd	%xmm0, %xmm0
	paddd	%xmm1, %xmm1
	movdqu	%xmm0, (%rax,%rbx,4)
	movdqu	%xmm1, 16(%rax,%rbx,4)
	movups	(%rsi,%rbx,4), %xmm0
	movups	16(%rsi,%rbx,4), %xmm1
	movups	%xmm0, (%rdi,%rbx,4)
	movups	%xmm1, 16(%rdi,%rbx,4)
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rcx, %r8
	je	LBB0_2
	jmp	LBB0_32
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	testb	$1, %r9b
	jne	LBB0_25
	jmp	LBB0_26
LBB0_38:
	xorl	%eax, %eax
	jmp	LBB0_39
LBB0_36:
	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
LBB0_39:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_N_PD_CURVES,8,3    ## @AR5K_EEPROM_N_PD_CURVES
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_AR5K_EEPROM_N_PWR_POINTS_5111,8,3 ## @AR5K_EEPROM_N_PWR_POINTS_5111
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ath5k_eeprom_convert_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_convert_pcal_info_5111
_ath5k_eeprom_convert_pcal_info_5111:   ; @ath5k_eeprom_convert_pcal_info_5111
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	sbfiz	x8, x1, #3, #32
	ldr	x9, [x0, #8]
	ldr	x9, [x9, x8]
	cbz	x9, LBB0_26
; %bb.1:
	mov	x21, x2
	mov	x20, x0
	mov	x23, #0
	ldr	x9, [x0]
	sxtw	x24, w1
	ldr	x8, [x9, x8]
	stp	x1, x8, [sp]                    ; 16-byte Folded Spill
Lloh0:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x25, _AR5K_EEPROM_N_PWR_POINTS_5111@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AR5K_EEPROM_N_PWR_POINTS_5111@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x0]
	add	x9, x21, x23, lsl #5
	str	w8, [x9]
	ldr	w8, [x0, #40]
	str	w8, [x9, #4]
	add	x23, x23, #1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x24, lsl #3]
	cmp	x23, x8
	b.hs	LBB0_26
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
Lloh4:
	adrp	x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	ldr	w2, [x27]
	mov	w1, #24
	bl	_kcalloc
	add	x8, x21, x23, lsl #5
	str	x0, [x8, #8]
	cbz	x0, LBB0_27
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
Lloh7:
	adrp	x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR5K_EEPROM_N_PD_CURVES@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
	ldr	x9, [x20, #16]
	ldr	x9, [x9, x24, lsl #3]
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	x10, x9, x19
	tbz	w10, #0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x19, x19, #1
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x8
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x19, [x8]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #24]
	mov	w9, #1
	str	w9, [x8, x24, lsl #2]
	ldr	x8, [x25]
	mov	w9, #24
	madd	x26, x19, x9, x22
	str	x8, [x26]
	ldr	x0, [x25]
	ldr	w2, [x27]
	mov	w1, #8
	bl	_kcalloc
	mov	x28, x26
	str	x0, [x28, #16]!
	cbz	x0, LBB0_27
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x25]
	ldr	w2, [x27]
	mov	w1, #4
	bl	_kcalloc
	mov	w8, #24
	madd	x8, x19, x8, x22
	str	x0, [x8, #8]
	cbz	x0, LBB0_27
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x26]
	cbz	x9, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x21, x23, lsl #5
	ldp	x8, x10, [x10, #16]
	ldr	x11, [x28]
	cmp	x9, #8
	b.hs	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, #0
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x9, x9, x12
	lsl	x13, x12, #2
	add	x11, x11, x13
	add	x10, x10, x13
	add	x12, x0, x13
	add	x8, x8, x13
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x8], #4
	lsl	w13, w13, #1
	str	w13, [x12], #4
	ldr	w13, [x10], #4
	str	w13, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_17
	b	LBB0_2
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, #0
	sub	x13, x11, x0
	cmp	x13, #32
	b.lo	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	x13, x0, x8
	cmp	x13, #32
	b.lo	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	x13, x10, x0
	cmp	x13, #32
	b.lo	LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	x13, x11, x8
	cmp	x13, #32
	b.lo	LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	x13, x11, x10
	cmp	x13, #32
	b.lo	LBB0_16
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	and	x12, x9, #0xfffffffffffffff8
	add	x13, x8, #16
	add	x14, x0, #16
	add	x15, x10, #16
	add	x16, x11, #16
	mov	x17, x12
LBB0_24:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x13, #-16]
	shl.4s	v0, v0, #1
	shl.4s	v1, v1, #1
	stp	q0, q1, [x14, #-16]
	ldp	q0, q1, [x15, #-16]
	add	x13, x13, #32
	stp	q0, q1, [x16, #-16]
	add	x14, x14, #32
	add	x15, x15, #32
	add	x16, x16, #32
	subs	x17, x17, #8
	b.ne	LBB0_24
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x9, x12
	b.eq	LBB0_2
	b	LBB0_16
LBB0_26:
	mov	w0, #0
	b	LBB0_28
LBB0_27:
	mov	x0, x20
	ldr	x1, [sp]                        ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ath5k_eeprom_free_pcal_info
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_28:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_N_PD_CURVES,8,3    ; @AR5K_EEPROM_N_PD_CURVES
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_AR5K_EEPROM_N_PWR_POINTS_5111,8,3 ; @AR5K_EEPROM_N_PWR_POINTS_5111
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ath5k_eeprom_convert_pcal_info_5111
.subsections_via_symbols
