	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_calibration_apply
_ar9003_hw_calibration_apply:           ## @ar9003_hw_calibration_apply
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AR9300_MAX_CHAINS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	shlq	$2, %r13
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -152(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -272(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -264(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -256(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -144(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -248(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -184(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -176(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -240(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -232(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ath9k_hw_common
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	cmpl	$4000, %r15d                    ## imm = 0xFA0
	setge	%al
	movq	%r14, -280(%rbp)                ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jl	LBB0_1
## %bb.2:
	movq	_AR9300_NUM_5G_CAL_PIERS@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_AR9300_NUM_2G_CAL_PIERS@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	_AR9300_MAX_CHAINS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	testl	%r12d, %r12d
	jle	LBB0_33
## %bb.4:
	movb	%al, %r13b
	movl	(%rcx), %r14d
	leaq	(,%r12,4), %rbx
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	___bzero
	leaq	L_.memset_pattern(%rip), %rsi
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memset_pattern16
	xorl	%ebx, %ebx
	leaq	-116(%rbp), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_AR9300_MAX_CHAINS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%r12d, %rax
	cmpq	%rax, %rbx
	jge	LBB0_19
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%r14d, %r14d
	jle	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movl	-116(%rbp), %eax
	movq	-272(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movl	-112(%rbp), %eax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movl	-108(%rbp), %eax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movl	-104(%rbp), %eax
	movq	-264(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movl	-100(%rbp), %eax
	movq	-256(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=2
	incl	%r12d
	cmpl	%r12d, %r14d
	je	LBB0_17
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-280(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	leaq	-192(%rbp), %r8
	movq	%r15, %r9
	leaq	-100(%rbp), %rax
	pushq	%rax
	leaq	-104(%rbp), %rax
	pushq	%rax
	leaq	-108(%rbp), %rax
	pushq	%rax
	leaq	-112(%rbp), %rax
	pushq	%rax
	callq	_ar9003_hw_cal_pier_get
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	-192(%rbp), %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	subl	%eax, %ecx
	jg	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movl	(%rdx,%rbx,4), %edx
	leal	-100000(%rdx), %esi
	cmpl	$-99999, %esi                   ## imm = 0xFFFE7961
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpl	%eax, %edx
	jle	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, (%rdx,%rbx,4)
	movl	-116(%rbp), %edx
	movq	-248(%rbp), %rsi                ## 8-byte Reload
	movl	%edx, (%rsi,%rbx,4)
	movl	-112(%rbp), %edx
	movq	-184(%rbp), %rsi                ## 8-byte Reload
	movl	%edx, (%rsi,%rbx,4)
	movl	-108(%rbp), %edx
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	movl	%edx, (%rsi,%rbx,4)
	movl	-104(%rbp), %edx
	movq	-240(%rbp), %rsi                ## 8-byte Reload
	movl	%edx, (%rsi,%rbx,4)
	movl	-100(%rbp), %edx
	movq	-232(%rbp), %rsi                ## 8-byte Reload
	movl	%edx, (%rsi,%rbx,4)
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	testl	%ecx, %ecx
	js	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%rbx,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpl	%eax, %ecx
	jge	LBB0_16
	jmp	LBB0_15
LBB0_19:
	testl	%r12d, %r12d
	jle	LBB0_33
## %bb.20:
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_30:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax,%r13,4)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax,%r13,4)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax,%r13,4)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax,%r13,4)
	xorl	%eax, %eax
LBB0_31:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%eax, (%rcx,%r13,4)
	incq	%r13
	movq	_AR9300_MAX_CHAINS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_33
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %r9d
	movl	%r9d, -188(%rbp)                ## 4-byte Spill
	movq	-272(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %eax
	movq	%rax, -296(%rbp)                ## 8-byte Spill
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %eax
	movq	%rax, -288(%rbp)                ## 8-byte Spill
	movq	-248(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %r12d
	movq	-264(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %r11d
	movq	-240(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %r15d
	movq	-256(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %r10d
	movq	-232(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %ebx
	subq	$8, %rsp
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %ecx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	xorl	%eax, %eax
	movq	%rbx, -224(%rbp)                ## 8-byte Spill
	pushq	%rbx
	movq	%r10, -168(%rbp)                ## 8-byte Spill
	pushq	%r10
	movq	%r15, -216(%rbp)                ## 8-byte Spill
	pushq	%r15
	movq	-288(%rbp), %r15                ## 8-byte Reload
	movq	%r11, %rbx
	movq	%r11, -160(%rbp)                ## 8-byte Spill
	pushq	%r11
	movq	%r12, -208(%rbp)                ## 8-byte Spill
	pushq	%r12
	movq	-296(%rbp), %rbx                ## 8-byte Reload
	pushq	%r15
	pushq	%rbx
	callq	_ath_dbg
	movl	-188(%rbp), %esi                ## 4-byte Reload
	addq	$64, %rsp
	cmpl	%esi, %r15d
	jne	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r13,4)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%r14d, %ecx
	subl	%esi, %ecx
	movl	%r15d, %eax
	subl	%r14d, %eax
	cmpl	$999, %ecx                      ## imm = 0x3E7
	jg	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpl	$999, %eax                      ## imm = 0x3E7
	jg	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movq	-208(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%esi, %r14d
	callq	_interpolate
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %ecx
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %r8d
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_interpolate
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %ecx
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %r8d
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_interpolate
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movq	-160(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	-216(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_interpolate
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movq	-168(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	-224(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_interpolate
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=1
	cmpl	$999, %eax                      ## imm = 0x3E7
	jg	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-208(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, (%rax,%r13,4)
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-216(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, (%rax,%r13,4)
	movq	-224(%rbp), %rax                ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
	jmp	LBB0_31
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r13,4)
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%eax, (%rcx,%r13,4)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, (%rax,%r13,4)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-168(%rbp), %rax                ## 8-byte Reload
	jmp	LBB0_32
LBB0_33:
	movq	-280(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_ar9003_hw_power_control_override
	movq	_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	movl	8(%rbx), %r10d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	movl	%r15d, %ecx
	xorl	%eax, %eax
	pushq	%r10
	callq	_ath_dbg
	addq	$16, %rsp
	movq	_AR5416_MAX_CHAINS@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	jle	LBB0_36
## %bb.34:
	xorl	%edx, %edx
	cmpl	$4000, %r15d                    ## imm = 0xFA0
	setge	%dl
	shlq	$4, %rdx
	movq	(%r14,%rdx), %rcx
	movq	8(%r14,%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rsi,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	movl	(%rax,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%r8), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_35
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AR9300_MAX_CHAINS,4,2          ## @AR9300_MAX_CHAINS
	.comm	_AR9300_NUM_5G_CAL_PIERS,4,2    ## @AR9300_NUM_5G_CAL_PIERS
	.comm	_AR9300_NUM_2G_CAL_PIERS,4,2    ## @AR9300_NUM_2G_CAL_PIERS
	.comm	_EEPROM,4,2                     ## @EEPROM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ch=%d f=%d low=%d %d h=%d %d n=%d %d p=%d %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"for frequency=%d, calibration correction = %d %d %d\n"

	.comm	_AR5416_MAX_CHAINS,4,2          ## @AR5416_MAX_CHAINS
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	100000                          ## 0x186a0
	.long	100000                          ## 0x186a0
	.long	100000                          ## 0x186a0
	.long	100000                          ## 0x186a0

	.no_dead_strip	_ar9003_hw_calibration_apply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_calibration_apply
_ar9003_hw_calibration_apply:           ; @ar9003_hw_calibration_apply
	.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, #208
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x22, _AR9300_MAX_CHAINS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AR9300_MAX_CHAINS@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-136]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-160]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-168]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-144]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-152]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh17:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh18:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-128]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh19:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh20:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-176]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh21:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh22:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-200]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh23:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh24:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-208]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh25:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh26:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-184]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh27:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh28:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-192]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh29:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh30:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-240]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh31:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh32:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-248]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh33:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh34:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-256]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh35:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh36:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x12
	mov	sp, x23
	mov	x9, x8
Lloh37:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh38:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x24, x8, x12
	mov	sp, x24
	bl	_ath9k_hw_common
	sub	x8, x29, #8
	stur	x0, [x8, #-256]                 ; 8-byte Folded Spill
	cmp	w20, #3999
Lloh39:
	adrp	x8, _AR9300_NUM_5G_CAL_PIERS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AR9300_NUM_5G_CAL_PIERS@GOTPAGEOFF]
Lloh41:
	adrp	x9, _AR9300_NUM_2G_CAL_PIERS@GOTPAGE
Lloh42:
	ldr	x9, [x9, _AR9300_NUM_2G_CAL_PIERS@GOTPAGEOFF]
	cset	w27, gt
	csel	x8, x8, x9, gt
	ldr	w22, [x22]
	cmp	w22, #1
	b.lt	LBB0_28
; %bb.1:
	sub	x9, x29, #24
	stur	x24, [x9, #-256]                ; 8-byte Folded Spill
	sub	x9, x29, #16
	stur	x23, [x9, #-256]                ; 8-byte Folded Spill
	ldr	w23, [x8]
	mov	w24, #31072
	movk	w24, #65534, lsl #16
	lsl	x25, x22, #2
	mov	x0, x21
	mov	x1, x25
	bl	_bzero
Lloh43:
	adrp	x1, l_.memset_pattern@PAGE
Lloh44:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	ldur	x0, [x29, #-128]                ; 8-byte Folded Reload
	mov	x2, x25
	bl	_memset_pattern16
	mov	x28, #0
	sub	x25, x29, #120
	sub	x26, x29, #116
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh45:
	adrp	x8, _AR9300_MAX_CHAINS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AR9300_MAX_CHAINS@GOTPAGEOFF]
Lloh47:
	ldr	w22, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	cmp	x28, w22, sxtw
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w23, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w22, w22, #1
	cmp	w23, w22
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	x26, x25, [sp, #-16]!
	sub	x4, x29, #100
	sub	x5, x29, #104
	sub	x6, x29, #108
	sub	x7, x29, #112
	mov	x0, x19
	mov	x1, x27
	mov	x2, x22
	mov	x3, x28
	bl	_ar9003_hw_cal_pier_get
	add	sp, sp, #16
	cbnz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldur	w8, [x29, #-100]
	sub	w9, w20, w8
	cmp	w9, #0
	b.gt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldur	x10, [x29, #-128]               ; 8-byte Folded Reload
	ldr	w10, [x10, x28, lsl #2]
	add	w11, w24, #1
	add	w12, w10, w24
	cmp	w12, w11
	ccmp	w10, w8, #0, hs
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	lsl	x10, x28, #2
	ldur	x11, [x29, #-128]               ; 8-byte Folded Reload
	str	w8, [x11, x10]
	ldur	w11, [x29, #-104]
	ldur	x12, [x29, #-176]               ; 8-byte Folded Reload
	str	w11, [x12, x10]
	ldur	w11, [x29, #-108]
	ldur	x12, [x29, #-200]               ; 8-byte Folded Reload
	str	w11, [x12, x10]
	ldur	w11, [x29, #-112]
	ldur	x12, [x29, #-208]               ; 8-byte Folded Reload
	str	w11, [x12, x10]
	ldur	w11, [x29, #-116]
	ldur	x12, [x29, #-184]               ; 8-byte Folded Reload
	str	w11, [x12, x10]
	ldur	w11, [x29, #-120]
	ldur	x12, [x29, #-192]               ; 8-byte Folded Reload
	str	w11, [x12, x10]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	tbnz	w9, #31, LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w9, [x21, x28, lsl #2]
	cmp	w9, #1
	ccmp	w9, w8, #8, ge
	b.ge	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	lsl	x9, x28, #2
	str	w8, [x21, x9]
	ldur	w8, [x29, #-104]
	ldur	x10, [x29, #-136]               ; 8-byte Folded Reload
	str	w8, [x10, x9]
	ldur	w8, [x29, #-108]
	ldur	x10, [x29, #-160]               ; 8-byte Folded Reload
	str	w8, [x10, x9]
	ldur	w8, [x29, #-112]
	ldur	x10, [x29, #-168]               ; 8-byte Folded Reload
	str	w8, [x10, x9]
	ldur	w8, [x29, #-116]
	ldur	x10, [x29, #-144]               ; 8-byte Folded Reload
	str	w8, [x10, x9]
	ldur	w8, [x29, #-120]
	ldur	x10, [x29, #-152]               ; 8-byte Folded Reload
	str	w8, [x10, x9]
	b	LBB0_6
LBB0_14:
	cmp	w22, #1
	sub	x8, x29, #16
	ldur	x23, [x8, #-256]                ; 8-byte Folded Reload
	sub	x8, x29, #24
	ldur	x24, [x8, #-256]                ; 8-byte Folded Reload
	b.lt	LBB0_28
; %bb.15:
	mov	x27, #0
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w0, #0
	ldur	x8, [x29, #-240]                ; 8-byte Folded Reload
	str	wzr, [x8, x23]
	ldur	x8, [x29, #-256]                ; 8-byte Folded Reload
	str	wzr, [x8, x23]
	ldur	x8, [x29, #-248]                ; 8-byte Folded Reload
	str	wzr, [x8, x23]
	sub	x8, x29, #16
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	str	wzr, [x8, x23]
	mov	x23, x8
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	sub	x8, x29, #24
	ldur	x24, [x8, #-256]                ; 8-byte Folded Reload
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	str	w0, [x24, x27, lsl #2]
	add	x27, x27, #1
Lloh48:
	adrp	x8, _AR9300_MAX_CHAINS@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AR9300_MAX_CHAINS@GOTPAGEOFF]
Lloh50:
	ldrsw	x8, [x8]
	cmp	x27, x8
	b.ge	LBB0_28
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
Lloh51:
	adrp	x8, _EEPROM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EEPROM@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	lsl	x23, x27, #2
	ldr	w26, [x21, x23]
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	ldr	w24, [x8, x23]
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	ldr	w25, [x8, x23]
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	ldr	w22, [x8, x23]
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	ldr	w28, [x8, x23]
	ldur	x8, [x29, #-184]                ; 8-byte Folded Reload
	ldr	w10, [x8, x23]
	ldur	x8, [x29, #-152]                ; 8-byte Folded Reload
	ldr	w9, [x8, x23]
	ldur	x8, [x29, #-192]                ; 8-byte Folded Reload
	ldr	w8, [x8, x23]
	sub	sp, sp, #48
	stur	x8, [x29, #-224]                ; 8-byte Folded Spill
	str	x8, [sp, #40]
	stur	x9, [x29, #-216]                ; 8-byte Folded Spill
	str	x9, [sp, #32]
	stur	x10, [x29, #-232]               ; 8-byte Folded Spill
	stp	x28, x10, [sp, #16]
	stp	x25, x22, [sp]
	sub	x8, x29, #8
	ldur	x0, [x8, #-256]                 ; 8-byte Folded Reload
Lloh54:
	adrp	x2, l_.str@PAGE
Lloh55:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x27
	mov	x4, x20
	mov	x5, x26
	mov	x6, x24
	bl	_ath_dbg
	add	sp, sp, #48
	cmp	w25, w26
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldp	x9, x8, [x29, #-248]            ; 16-byte Folded Reload
	str	w24, [x8, x23]
	ldur	x8, [x29, #-168]                ; 8-byte Folded Reload
	ldr	w8, [x8, x23]
	str	w8, [x9, x23]
	ldur	x8, [x29, #-160]                ; 8-byte Folded Reload
	ldr	w8, [x8, x23]
	ldur	x9, [x29, #-256]                ; 8-byte Folded Reload
	str	w8, [x9, x23]
	sub	x8, x29, #16
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	str	w28, [x8, x23]
	b	LBB0_27
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	sub	x8, x29, #32
	stur	x28, [x8, #-256]                ; 8-byte Folded Spill
	sub	w9, w20, w26
	sub	w8, w25, w20
	cmp	w9, #999
	b.gt	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w8, #999
	b.gt	LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	bl	_interpolate
	ldur	x8, [x29, #-240]                ; 8-byte Folded Reload
	str	w0, [x8, x23]
	ldur	x8, [x29, #-160]                ; 8-byte Folded Reload
	ldr	w3, [x8, x23]
	ldur	x8, [x29, #-200]                ; 8-byte Folded Reload
	ldr	w4, [x8, x23]
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	bl	_interpolate
	ldur	x8, [x29, #-256]                ; 8-byte Folded Reload
	str	w0, [x8, x23]
	ldur	x8, [x29, #-168]                ; 8-byte Folded Reload
	ldr	w3, [x8, x23]
	ldur	x8, [x29, #-208]                ; 8-byte Folded Reload
	ldr	w4, [x8, x23]
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	bl	_interpolate
	ldur	x8, [x29, #-248]                ; 8-byte Folded Reload
	str	w0, [x8, x23]
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	sub	x8, x29, #32
	ldur	x3, [x8, #-256]                 ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	ldur	x4, [x29, #-232]                ; 8-byte Folded Reload
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_interpolate
	sub	x8, x29, #16
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	str	w0, [x8, x23]
	mov	x23, x8
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	ldp	x4, x3, [x29, #-224]            ; 16-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_interpolate
                                        ; kill: def $w0 killed $w0 def $x0
	b	LBB0_17
LBB0_24:                                ;   in Loop: Header=BB0_19 Depth=1
	cmp	w8, #999
	b.gt	LBB0_16
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=1
	ldur	x8, [x29, #-240]                ; 8-byte Folded Reload
	str	w22, [x8, x23]
	ldur	x8, [x29, #-200]                ; 8-byte Folded Reload
	ldr	w8, [x8, x23]
	ldur	x9, [x29, #-256]                ; 8-byte Folded Reload
	str	w8, [x9, x23]
	ldur	x8, [x29, #-208]                ; 8-byte Folded Reload
	ldr	w8, [x8, x23]
	ldur	x9, [x29, #-248]                ; 8-byte Folded Reload
	str	w8, [x9, x23]
	sub	x8, x29, #16
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	ldp	x9, x28, [x29, #-232]           ; 16-byte Folded Reload
	str	w9, [x8, x23]
	mov	x23, x8
	mov	x0, x28
	b	LBB0_17
LBB0_26:                                ;   in Loop: Header=BB0_19 Depth=1
	ldur	x8, [x29, #-240]                ; 8-byte Folded Reload
	str	w24, [x8, x23]
	ldur	x8, [x29, #-160]                ; 8-byte Folded Reload
	ldr	w8, [x8, x23]
	ldur	x9, [x29, #-256]                ; 8-byte Folded Reload
	str	w8, [x9, x23]
	ldur	x8, [x29, #-168]                ; 8-byte Folded Reload
	ldr	w8, [x8, x23]
	ldur	x9, [x29, #-248]                ; 8-byte Folded Reload
	str	w8, [x9, x23]
	sub	x8, x29, #16
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	sub	x9, x29, #32
	ldur	x9, [x9, #-256]                 ; 8-byte Folded Reload
	str	w9, [x8, x23]
LBB0_27:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x23, x8
	sub	x8, x29, #24
	ldur	x24, [x8, #-256]                ; 8-byte Folded Reload
	ldur	x0, [x29, #-216]                ; 8-byte Folded Reload
	b	LBB0_18
LBB0_28:
	mov	x0, x19
	mov	x1, x20
	ldp	x3, x21, [x29, #-248]           ; 16-byte Folded Reload
	mov	x2, x21
	ldur	x4, [x29, #-256]                ; 8-byte Folded Reload
	bl	_ar9003_hw_power_control_override
Lloh56:
	adrp	x8, _EEPROM@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EEPROM@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	ldp	w4, w5, [x21]
	ldr	w6, [x21, #8]
Lloh59:
	adrp	x2, l_.str.1@PAGE
Lloh60:
	add	x2, x2, l_.str.1@PAGEOFF
	sub	x8, x29, #8
	ldur	x0, [x8, #-256]                 ; 8-byte Folded Reload
	mov	x3, x20
	bl	_ath_dbg
Lloh61:
	adrp	x8, _AR5416_MAX_CHAINS@GOTPAGE
Lloh62:
	ldr	x8, [x8, _AR5416_MAX_CHAINS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_31
; %bb.29:
	mov	x9, #0
	cmp	w20, #3999
	cset	w10, gt
	lsl	x10, x10, #4
	mov	w11, #8
	mov	w12, #24
	csel	x11, x12, x11, gt
	ldr	x10, [x19, x10]
	ldr	x11, [x19, x11]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x23, x12]
	str	w13, [x10, x12]
	ldr	w13, [x24, x12]
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_30
LBB0_31:
	ldur	x8, [x29, #-96]
Lloh63:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh64:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.32:
	mov	w0, #0
	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	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_AR9300_MAX_CHAINS,4,2          ; @AR9300_MAX_CHAINS
	.comm	_AR9300_NUM_5G_CAL_PIERS,4,2    ; @AR9300_NUM_5G_CAL_PIERS
	.comm	_AR9300_NUM_2G_CAL_PIERS,4,2    ; @AR9300_NUM_2G_CAL_PIERS
	.comm	_EEPROM,4,2                     ; @EEPROM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ch=%d f=%d low=%d %d h=%d %d n=%d %d p=%d %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"for frequency=%d, calibration correction = %d %d %d\n"

	.comm	_AR5416_MAX_CHAINS,4,2          ; @AR5416_MAX_CHAINS
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	100000                          ; 0x186a0
	.long	100000                          ; 0x186a0
	.long	100000                          ; 0x186a0
	.long	100000                          ; 0x186a0

	.no_dead_strip	_ar9003_hw_calibration_apply
.subsections_via_symbols
