	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_set_power_cal
_carl9170_set_power_cal:                ## @carl9170_set_power_cal
	.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
	movl	%edx, -92(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AR5416_MAX_NUM_TGT_PWRS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	cmpl	$2999, %ebx                     ## imm = 0xBB7
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jg	LBB0_2
## %bb.1:
	leal	-2300(%rbx), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_2:
	leal	-4800(%rbx), %eax
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$33, %rcx
	addl	%eax, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
LBB0_3:
	xorl	%ecx, %ecx
                                        ## implicit-def: $r13
                                        ## implicit-def: $r14d
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r14d, %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_carl9170_find_freq_idx
	movslq	%eax, %rbx
	shlq	$4, %rbx
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, (%r15)
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	4(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	4(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, 4(%r15)
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	8(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	8(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, 8(%r15)
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	12(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	12(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, 12(%r15)
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	cmpl	$3, %ecx
	je	LBB0_18
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	cmpl	$2, %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$1, %ecx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	104(%rax), %r13
	movq	_AR5416_NUM_5G_TARGET_PWRS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	96(%rax), %r13
	movq	_AR5416_NUM_2G_CCK_TARGET_PWRS@GOTPCREL(%rip), %rax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jg	LBB0_14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	88(%rax), %r13
	movq	_AR5416_NUM_2G_OFDM_TARGET_PWRS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testl	%r14d, %r14d
	jg	LBB0_14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_BUG
	testl	%r14d, %r14d
	jle	LBB0_4
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %eax
	xorl	%r14d, %r14d
	movq	%r13, %rcx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx), %edx
	cmpl	$255, %edx
	je	LBB0_5
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	%edx, (%rbx,%r14,4)
	incq	%r14
	addq	$16, %rcx
	cmpq	%r14, %rax
	jne	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_18:
                                        ## implicit-def: $r13
	xorl	%eax, %eax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_21 Depth=1
	xorl	%r14d, %r14d
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_carl9170_find_freq_idx
	movslq	%eax, %rbx
	shlq	$4, %rbx
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, (%r15)
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	4(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	4(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, 4(%r15)
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	8(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	8(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, 8(%r15)
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	12(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	12(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, 12(%r15)
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	16(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	16(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, 16(%r15)
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	20(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	20(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, 20(%r15)
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	24(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	24(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, 24(%r15)
	movl	(%r13,%rbx), %esi
	movq	8(%r13,%rbx), %rax
	movl	28(%rax), %edx
	movl	16(%r13,%rbx), %ecx
	movq	24(%r13,%rbx), %rax
	movl	28(%rax), %r8d
	movl	%r12d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, 28(%r15)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	$4, %eax
	je	LBB0_35
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
	cmpl	$3, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	ja	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	jmpq	*%rax
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	80(%rax), %r13
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	72(%rax), %r13
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	_AR5416_NUM_5G_TARGET_PWRS@GOTPCREL(%rip), %rax
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	64(%rax), %r13
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	48(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	56(%rax), %r13
LBB0_29:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	_AR5416_NUM_2G_OFDM_TARGET_PWRS@GOTPCREL(%rip), %rax
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_19
LBB0_31:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%r14d, %eax
	movq	%r13, %rcx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx), %edx
	cmpl	$255, %edx
	je	LBB0_20
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=2
	movl	%edx, (%rsi,%r14,4)
	incq	%r14
	addq	$16, %rcx
	cmpq	%r14, %rax
	jne	LBB0_32
## %bb.34:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	%eax, %r14d
	jmp	LBB0_20
LBB0_30:                                ##   in Loop: Header=BB0_21 Depth=1
	xorl	%eax, %eax
	callq	_BUG
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	testl	%r14d, %r14d
	jg	LBB0_31
	jmp	LBB0_19
LBB0_35:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	callq	_carl9170_calc_ctl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
LJTI0_0:
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_27
	.long	L0_0_set_28
	.end_data_region
                                        ## -- End function
	.comm	_AR5416_MAX_NUM_TGT_PWRS,4,2    ## @AR5416_MAX_NUM_TGT_PWRS
	.comm	_AR5416_NUM_5G_TARGET_PWRS,4,2  ## @AR5416_NUM_5G_TARGET_PWRS
	.comm	_AR5416_NUM_2G_CCK_TARGET_PWRS,4,2 ## @AR5416_NUM_2G_CCK_TARGET_PWRS
	.comm	_AR5416_NUM_2G_OFDM_TARGET_PWRS,4,2 ## @AR5416_NUM_2G_OFDM_TARGET_PWRS
	.no_dead_strip	_carl9170_set_power_cal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_set_power_cal
_carl9170_set_power_cal:                ; @carl9170_set_power_cal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	stur	w2, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _AR5416_MAX_NUM_TGT_PWRS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5416_MAX_NUM_TGT_PWRS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cmp	w1, #2999
	stur	w1, [x29, #-96]                 ; 4-byte Folded Spill
	b.gt	LBB0_2
; %bb.1:
	sub	w23, w1, #2300
	b	LBB0_3
LBB0_2:
	mov	w8, #-4800
	add	w8, w1, w8
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w23, w8, w9
LBB0_3:
	mov	w19, #0
Lloh8:
	adrp	x20, _AR5416_NUM_2G_CCK_TARGET_PWRS@GOTPAGE
Lloh9:
	ldr	x20, [x20, _AR5416_NUM_2G_CCK_TARGET_PWRS@GOTPAGEOFF]
                                        ; implicit-def: $x28
                                        ; implicit-def: $w24
                                        ; implicit-def: $x27
Lloh10:
	adrp	x26, _AR5416_NUM_5G_TARGET_PWRS@GOTPAGE
Lloh11:
	ldr	x26, [x26, _AR5416_NUM_5G_TARGET_PWRS@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w24, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	bl	_carl9170_find_freq_idx
	add	x25, x28, w0, sxtw #4
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27]
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8, #4]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8, #4]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27, #4]
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8, #8]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8, #8]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27, #8]
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8, #12]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8, #12]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27, #12]
	add	w19, w19, #1
	cmp	w19, #3
	b.eq	LBB0_17
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w19, #2
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w19, #1
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w19, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x28, [x21, #104]
	ldr	w24, [x26]
	ldr	x27, [x21]
	cmp	w24, #1
	b.ge	LBB0_13
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x28, [x21, #96]
	ldr	w24, [x20]
	ldr	x27, [x21, #8]
	cmp	w24, #1
	b.ge	LBB0_13
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x28, [x21, #88]
Lloh12:
	adrp	x8, _AR5416_NUM_2G_OFDM_TARGET_PWRS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR5416_NUM_2G_OFDM_TARGET_PWRS@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
	ldr	x27, [x21, #16]
	cmp	w24, #1
	b.ge	LBB0_13
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_BUG
	cmp	w24, #1
	b.lt	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, w24
	mov	x9, x28
	mov	x24, #0
LBB0_14:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x9]
	cmp	w10, #255
	b.eq	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	str	w10, [x22, x24, lsl #2]
	add	x24, x24, #1
	add	x9, x9, #16
	cmp	x8, x24
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x8
	b	LBB0_5
LBB0_17:
	mov	w28, #0
Lloh15:
	adrp	x19, lJTI0_0@PAGE
Lloh16:
	add	x19, x19, lJTI0_0@PAGEOFF
                                        ; implicit-def: $x20
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w24, #0
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	bl	_carl9170_find_freq_idx
	add	x25, x20, w0, sxtw #4
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27]
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8, #4]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8, #4]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27, #4]
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8, #8]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8, #8]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27, #8]
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8, #12]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8, #12]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27, #12]
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8, #16]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8, #16]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27, #16]
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8, #20]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8, #20]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27, #20]
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8, #24]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8, #24]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27, #24]
	ldr	w1, [x25]
	ldr	x8, [x25, #8]
	ldr	w2, [x8, #28]
	ldr	w3, [x25, #16]
	ldr	x8, [x25, #24]
	ldr	w4, [x8, #28]
	mov	x0, x23
	bl	_carl9170_interpolate_u8
	str	w0, [x27, #28]
	add	w28, w28, #1
	cmp	w28, #4
	b.eq	LBB0_31
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
	cmp	w28, #3
	b.hi	LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w8, w28
	adr	x9, LBB0_22
	ldrb	w10, [x19, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x20, [x21, #80]
	ldr	w24, [x26]
	ldr	x27, [x21, #24]
	cmp	w24, #1
	b.ge	LBB0_27
	b	LBB0_18
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x20, [x21, #72]
	ldr	w24, [x26]
	ldr	x27, [x21, #32]
	cmp	w24, #1
	b.ge	LBB0_27
	b	LBB0_18
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x20, [x21, #64]
Lloh17:
	adrp	x8, _AR5416_NUM_2G_OFDM_TARGET_PWRS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AR5416_NUM_2G_OFDM_TARGET_PWRS@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
	ldr	x27, [x21, #40]
	cmp	w24, #1
	b.ge	LBB0_27
	b	LBB0_18
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=1
Lloh20:
	adrp	x8, _AR5416_NUM_2G_OFDM_TARGET_PWRS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AR5416_NUM_2G_OFDM_TARGET_PWRS@GOTPAGEOFF]
Lloh22:
	ldr	w24, [x8]
	ldp	x27, x20, [x21, #48]
	cmp	w24, #1
	b.ge	LBB0_27
	b	LBB0_18
LBB0_26:                                ;   in Loop: Header=BB0_20 Depth=1
	bl	_BUG
	cmp	w24, #1
	b.lt	LBB0_18
LBB0_27:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w8, w24
	mov	x9, x20
	mov	x24, #0
LBB0_28:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x9]
	cmp	w10, #255
	b.eq	LBB0_19
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=2
	str	w10, [x22, x24, lsl #2]
	add	x24, x24, #1
	add	x9, x9, #16
	cmp	x8, x24
	b.ne	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x24, x8
	b	LBB0_19
LBB0_31:
	mov	x0, x21
	ldp	w1, w2, [x29, #-96]             ; 8-byte Folded Reload
	bl	_carl9170_calc_ctl
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.32:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_22-LBB0_22)>>2
	.byte	(LBB0_23-LBB0_22)>>2
	.byte	(LBB0_24-LBB0_22)>>2
	.byte	(LBB0_25-LBB0_22)>>2
                                        ; -- End function
	.comm	_AR5416_MAX_NUM_TGT_PWRS,4,2    ; @AR5416_MAX_NUM_TGT_PWRS
	.comm	_AR5416_NUM_5G_TARGET_PWRS,4,2  ; @AR5416_NUM_5G_TARGET_PWRS
	.comm	_AR5416_NUM_2G_CCK_TARGET_PWRS,4,2 ; @AR5416_NUM_2G_CCK_TARGET_PWRS
	.comm	_AR5416_NUM_2G_OFDM_TARGET_PWRS,4,2 ; @AR5416_NUM_2G_OFDM_TARGET_PWRS
	.no_dead_strip	_carl9170_set_power_cal
.subsections_via_symbols
