	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_set_freq_cal_data
_carl9170_set_freq_cal_data:            ## @carl9170_set_freq_cal_data
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AR5416_PD_GAIN_ICEPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	(,%r12,8), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_18
## %bb.2:
	movl	$-2300, %ecx                    ## imm = 0xF704
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	4(%rax), %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_AR5416_NUM_2G_CAL_PIERS@GOTPCREL(%rip), %rcx
	movq	%r13, %rax
	jmp	LBB0_4
LBB0_3:
	movl	$-4800, %eax                    ## imm = 0xED40
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	4(%rcx), %eax
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$33, %rcx
	addl	%eax, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%r13), %rax
	movq	_AR5416_NUM_5G_CAL_PIERS@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	-1(%rcx), %rdi
	cmpl	$255, -4(%rax,%rcx,4)
	movq	%rdi, %rcx
	je	LBB0_5
## %bb.7:
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_carl9170_find_freq_idx
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_carl9170_regwrite_begin
	movq	_AR5416_MAX_CHAINS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_24
## %bb.8:
	leaq	16(%r13), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movslq	%r15d, %rax
	addq	$24, %r13
	movq	%r13, -152(%rbp)                ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	incl	%eax
	cltq
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r12,4), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=1
	leal	1860300(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	leal	1860304(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	leal	1860308(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	leal	1860312(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	leal	1860316(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	leal	1860320(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	leal	1860324(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	leal	1860328(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	leal	1860332(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	leal	1860336(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	leal	1860340(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	leal	1860344(%r13), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	addl	$1860348, %r13d                 ## imm = 0x1C62FC
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	_AR5416_MAX_CHAINS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rdx, %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	jge	LBB0_24
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movl	%ebx, -116(%rbp)                ## 4-byte Spill
	movq	_AR5416_PD_GAIN_ICEPTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	(%rcx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r12
	shlq	$4, %r12
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13,%rax,4), %esi
	movq	8(%r15,%r12), %rax
	movq	24(%r15,%r12), %rdi
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	(%r13,%r14,4), %ecx
	movq	(%rdi), %rax
	movl	(%rax,%rbx,4), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_carl9170_interpolate_u8
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%r13,%rax,4), %esi
	movq	(%r15,%r12), %rax
	movq	16(%r15,%r12), %rdi
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movl	(%r13,%r14,4), %ecx
	movq	(%rdi), %rax
	movl	(%rax,%rbx,4), %r8d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax,%rbx,4)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%r13,%rax,4), %esi
	movq	8(%r15,%r12), %rax
	movq	24(%r15,%r12), %rdi
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%r13,%rax,4), %ecx
	movq	8(%rdi), %rax
	movl	(%rax,%rbx,4), %r8d
	movl	%r14d, %edi
	callq	_carl9170_interpolate_u8
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%r13,%rax,4), %esi
	movq	(%r15,%r12), %rax
	movq	16(%r15,%r12), %rdi
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%r13,%rax,4), %ecx
	movq	8(%rdi), %rax
	movl	(%rax,%rbx,4), %r8d
	movl	%r14d, %edi
	callq	_carl9170_interpolate_u8
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	%ecx, (%rax,%rbx,4)
	incq	%rbx
	movq	_AR5416_PD_GAIN_ICEPTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	cmpl	$129, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpl	$128, %eax
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r13d
	shll	$12, %r13d
	leal	1860224(%r13), %r14d
	movl	$-12, %r15d
	movl	-116(%rbp), %ebx                ## 4-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=2
	incl	%r15d
	cmpl	$64, %r15d
	je	LBB0_23
LBB0_16:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	12(%r15), %r12d
	cmpl	$24, %r12d
	ja	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	%r12d, %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	%r15d, %edi
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	movq	-128(%rbp), %rdx                ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=2
	callq	_carl9170_interpolate_val
	movl	%r12d, %edx
	andl	$3, %edx
	leal	(,%rdx,8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, %ebx
	cmpl	$3, %edx
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=2
	andl	$2147483644, %r12d              ## imm = 0x7FFFFFFC
	addl	%r14d, %r12d
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_carl9170_regwrite
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	xorl	%eax, %eax
	callq	_carl9170_regwrite_finish
	xorl	%eax, %eax
	callq	_carl9170_regwrite_result
	jmp	LBB0_25
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5416_PD_GAIN_ICEPTS,4,2      ## @AR5416_PD_GAIN_ICEPTS
	.comm	_AR5416_NUM_2G_CAL_PIERS,4,2    ## @AR5416_NUM_2G_CAL_PIERS
	.comm	_AR5416_NUM_5G_CAL_PIERS,4,2    ## @AR5416_NUM_5G_CAL_PIERS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR5416_MAX_CHAINS,4,2          ## @AR5416_MAX_CHAINS
	.no_dead_strip	_carl9170_set_freq_cal_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_set_freq_cal_data
_carl9170_set_freq_cal_data:            ; @carl9170_set_freq_cal_data
	.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, #80
	mov	x25, 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_PD_GAIN_ICEPTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5416_PD_GAIN_ICEPTS@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	lsl	x8, x19, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0xffffffff0
	sub	x9, x9, x12
	stur	x9, [x29, #-96]                 ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x12
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	mov	sp, x8
	stur	x1, [x29, #-120]                ; 8-byte Folded Spill
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_23
; %bb.2:
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	ldr	w8, [x8, #4]
	sub	w22, w8, #2300
Lloh10:
	adrp	x9, _AR5416_NUM_2G_CAL_PIERS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AR5416_NUM_2G_CAL_PIERS@GOTPAGEOFF]
	mov	x8, x25
	b	LBB0_4
LBB0_3:
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	ldr	w8, [x8, #4]
	mov	w9, #-4800
	add	w8, w8, w9
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w22, w8, w9
	add	x8, x25, #8
Lloh12:
	adrp	x9, _AR5416_NUM_5G_CAL_PIERS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AR5416_NUM_5G_CAL_PIERS@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	ldr	x23, [x8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #1
	b.lt	LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x0, x9, #1
	add	x8, x23, x9, lsl #2
	ldur	w8, [x8, #-4]
	mov	x9, x0
	cmp	w8, #255
	b.eq	LBB0_5
; %bb.7:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x23
	mov	x2, x22
	bl	_carl9170_find_freq_idx
	mov	x26, x0
	mov	x0, x25
	bl	_carl9170_regwrite_begin
Lloh14:
	adrp	x8, _AR5416_MAX_CHAINS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR5416_MAX_CHAINS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.8:
	stur	xzr, [x29, #-112]               ; 8-byte Folded Spill
	mov	w24, #0
	add	x8, x25, #16
	stur	x8, [x29, #-144]                ; 8-byte Folded Spill
	sxtw	x11, w26
	add	x8, x25, #24
	stp	x11, x8, [x29, #-136]           ; 16-byte Folded Spill
	lsl	x8, x19, #2
	add	x9, x11, #1
	ldur	x10, [x29, #-104]               ; 8-byte Folded Reload
	add	x25, x10, x8
	ldur	x10, [x29, #-96]                ; 8-byte Folded Reload
	add	x26, x10, x8
	lsl	x19, x11, #2
	lsl	x20, x9, #2
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	w8, #25216
	movk	w8, #28, lsl #16
	ldur	w9, [x29, #-148]                ; 4-byte Folded Reload
	add	w27, w8, w9
	add	w0, w27, #76
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #80
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #84
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #88
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #92
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #96
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #100
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #104
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #108
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #112
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #116
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #120
	mov	w1, #0
	bl	_carl9170_regwrite
	add	w0, w27, #124
	mov	w1, #0
	bl	_carl9170_regwrite
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	add	x9, x9, #1
Lloh17:
	adrp	x8, _AR5416_MAX_CHAINS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AR5416_MAX_CHAINS@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	stur	x9, [x29, #-112]                ; 8-byte Folded Spill
	cmp	x9, x8
	b.ge	LBB0_26
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
Lloh20:
	adrp	x8, _AR5416_PD_GAIN_ICEPTS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AR5416_PD_GAIN_ICEPTS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x27, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x9]
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x23, x19]
	ldur	x9, [x29, #-136]                ; 8-byte Folded Reload
	add	x21, x8, x9, lsl #4
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	lsl	x28, x27, #2
	ldr	w2, [x8, x28]
	ldr	w3, [x23, x20]
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	ldr	w4, [x8, x28]
	mov	x0, x22
	bl	_carl9170_interpolate_u8
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	str	w0, [x8, x28]
	ldr	w1, [x23, x19]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w2, [x8, x28]
	ldr	w3, [x23, x20]
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	w4, [x8, x28]
	mov	x0, x22
	bl	_carl9170_interpolate_u8
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	str	w8, [x9, x28]
	ldr	w1, [x23, x19]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	ldr	w2, [x8, x28]
	ldr	w3, [x23, x20]
	ldr	x8, [x21, #24]
	ldr	x8, [x8, #8]
	ldr	w4, [x8, x28]
	mov	x0, x22
	bl	_carl9170_interpolate_u8
	str	w0, [x26, x28]
	ldr	w1, [x23, x19]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w2, [x8, x28]
	ldr	w3, [x23, x20]
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #8]
	ldr	w4, [x8, x28]
	mov	x0, x22
	bl	_carl9170_interpolate_u8
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	str	w8, [x25, x28]
	add	x27, x27, #1
Lloh23:
	adrp	x8, _AR5416_PD_GAIN_ICEPTS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AR5416_PD_GAIN_ICEPTS@GOTPAGEOFF]
Lloh25:
	ldrsw	x8, [x8]
	cmp	x27, x8
	b.ge	LBB0_16
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x8, [x29, #-128]            ; 16-byte Folded Reload
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	cmp	w8, #128
	b.ne	LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldur	x9, [x29, #-144]                ; 8-byte Folded Reload
	b	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	lsl	w9, w8, #12
	mov	w8, #25216
	movk	w8, #28, lsl #16
	stur	w9, [x29, #-148]                ; 4-byte Folded Spill
	add	w21, w9, w8
	mov	w27, #-12
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w27, w27, #1
	cmp	w27, #64
	b.eq	LBB0_9
LBB0_18:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w28, w27, #12
	cmp	w28, #24
	b.hi	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x28
	ldp	x1, x2, [x29, #-104]            ; 16-byte Folded Reload
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x27
	mov	x1, x25
	mov	x2, x26
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=2
	bl	_carl9170_interpolate_val
	and	w8, w28, #0x3
	lsl	w9, w8, #3
	lsl	w9, w0, w9
	orr	w24, w9, w24
	cmp	w8, #3
	b.ne	LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	and	w8, w28, #0x7ffffffc
	add	w0, w21, w8
	mov	x1, x24
	bl	_carl9170_regwrite
	mov	w24, #0
	b	LBB0_17
LBB0_23:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.25:
	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_26:
	bl	_carl9170_regwrite_finish
	bl	_carl9170_regwrite_result
	b	LBB0_24
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5416_PD_GAIN_ICEPTS,4,2      ; @AR5416_PD_GAIN_ICEPTS
	.comm	_AR5416_NUM_2G_CAL_PIERS,4,2    ; @AR5416_NUM_2G_CAL_PIERS
	.comm	_AR5416_NUM_5G_CAL_PIERS,4,2    ; @AR5416_NUM_5G_CAL_PIERS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR5416_MAX_CHAINS,4,2          ; @AR5416_MAX_CHAINS
	.no_dead_strip	_carl9170_set_freq_cal_data
.subsections_via_symbols
