	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_get_target_powers     ## -- Begin function ath9k_hw_get_target_powers
	.p2align	4, 0x90
_ath9k_hw_get_target_powers:            ## @ath9k_hw_get_target_powers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	leaq	-112(%rbp), %r15
	movq	%r15, %rdx
	callq	_ath9k_hw_get_channel_centers
	cmpl	$0, 16(%rbp)
	leaq	-104(%rbp), %rax
	cmovneq	%r15, %rax
	movq	(%rax), %r15
	movq	(%r14), %r13
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_IS_CHAN_2GHZ
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ath9k_hw_fbin2freq
	xorl	%ecx, %ecx
	cmpq	%rax, %r15
	jle	LBB0_16
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %esi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_10
## %bb.2:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	addq	$16, %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r14, %r13
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	movq	_AR5416_BCHAN_UNUSED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_IS_CHAN_2GHZ
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ath9k_hw_fbin2freq
	movq	%r15, %rbx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpq	%rax, %r15
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %r13
	movq	%rbx, %rdi
	callq	_IS_CHAN_2GHZ
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ath9k_hw_fbin2freq
	cmpq	%rax, %r15
	movq	%rbx, %r15
	jge	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%r14), %eax
	shlq	$4, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax), %rbx
	movq	%r15, %rdi
	callq	_IS_CHAN_2GHZ
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ath9k_hw_fbin2freq
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_3
## %bb.9:
	leal	-1(%r14), %esi
	movl	%r14d, %r13d
	movl	$-1, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_10:
	xorl	%r13d, %r13d
	movl	$-1, %r14d
	jmp	LBB0_15
LBB0_11:
	movl	%r14d, %r13d
LBB0_13:
	movl	$-1, %r14d
	jmp	LBB0_14
LBB0_12:
	movl	%r14d, %r13d
LBB0_14:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	$-1, %esi
LBB0_15:
	movl	%r14d, %eax
	andl	%esi, %eax
	decl	%r13d
	cmpl	$-1, %eax
	sete	%al
	cmovnel	%r14d, %r13d
	movl	%r13d, %ecx
	cmpl	$-1, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_18
LBB0_16:
	movslq	%ecx, %rax
	shlq	$4, %rax
	movups	(%r14,%rax), %xmm0
	movups	%xmm0, (%r12)
LBB0_17:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	testb	%al, %al
	movl	$-1, %eax
	cmovnel	%eax, %esi
	movslq	%esi, %rbx
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx), %r14
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_IS_CHAN_2GHZ
	movq	%r14, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ath9k_hw_fbin2freq
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	incl	%ebx
	shlq	$4, %rbx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	(%r14,%rbx), %r12
	movq	%r13, %rdi
	callq	_IS_CHAN_2GHZ
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ath9k_hw_fbin2freq
	testq	%r15, %r15
	jle	LBB0_17
## %bb.19:
	movq	%rax, %r13
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax), %r12
	addq	$8, %r12
	addq	%r14, %rbx
	addq	$8, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rcx
	movq	(%rbx), %rax
	movq	(%rax,%r14,8), %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_ath9k_hw_interpolate
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	cmpq	%r14, %r15
	jne	LBB0_20
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5416_BCHAN_UNUSED,8,3        ## @AR5416_BCHAN_UNUSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_get_target_powers     ; -- Begin function ath9k_hw_get_target_powers
	.p2align	2
_ath9k_hw_get_target_powers:            ; @ath9k_hw_get_target_powers
	.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
	mov	x21, x6
	mov	x20, x5
	mov	x19, x4
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x25, sp
	mov	x2, sp
	bl	_ath9k_hw_get_channel_centers
	add	x8, x25, #8
	cmp	w21, #0
	csel	x8, x8, x25, eq
	ldr	x21, [x8]
	ldr	x25, [x22]
	mov	x0, x23
	bl	_IS_CHAN_2GHZ
	mov	x1, x0
	mov	x0, x25
	bl	_ath9k_hw_fbin2freq
	cmp	x21, x0
	b.le	LBB0_9
; %bb.1:
	cmp	x24, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x26, #0
Lloh0:
	adrp	x27, _AR5416_BCHAN_UNUSED@GOTPAGE
Lloh1:
	ldr	x27, [x27, _AR5416_BCHAN_UNUSED@GOTPAGEOFF]
	mov	x28, x22
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	add	x28, x28, #16
	cmp	x24, x26
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x28]
	ldr	x8, [x27]
	cmp	x25, x8
	b.eq	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_IS_CHAN_2GHZ
	mov	x1, x0
	mov	x0, x25
	bl	_ath9k_hw_fbin2freq
	cmp	x21, x0
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x28]
	mov	x0, x23
	bl	_IS_CHAN_2GHZ
	mov	x1, x0
	mov	x0, x25
	bl	_ath9k_hw_fbin2freq
	cmp	x21, x0
	ccmp	x26, #0, #4, lt
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w26, #1
	lsl	x8, x8, #4
	ldr	x25, [x22, x8]
	mov	x0, x23
	bl	_IS_CHAN_2GHZ
	mov	x1, x0
	mov	x0, x25
	bl	_ath9k_hw_fbin2freq
	cmp	x21, x0
	b.le	LBB0_3
; %bb.8:
	sub	w9, w26, #1
	mov	w8, #-1
	mov	x24, x26
	b	LBB0_14
LBB0_9:
	mov	w8, #0
	b	LBB0_15
LBB0_10:
	mov	w24, #0
LBB0_11:
	mov	w8, #-1
	mov	w9, #-1
	b	LBB0_14
LBB0_12:
	mov	w8, #-1
	mov	x24, x26
	mov	w9, #-1
	b	LBB0_14
LBB0_13:
	mov	w9, #-1
	mov	x24, x26
	mov	x8, x26
LBB0_14:
	and	w10, w8, w9
	sub	w11, w24, #1
	cmn	w10, #1
	cset	w10, eq
	csel	w8, w11, w8, eq
	cmn	w8, #1
	b.eq	LBB0_17
LBB0_15:
	ldr	q0, [x22, w8, sxtw #4]
	str	q0, [x19]
LBB0_16:
	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
LBB0_17:
	cmp	w10, #0
	csinv	w26, w9, wzr, eq
	sbfiz	x8, x26, #4, #32
	ldr	x24, [x22, x8]
	mov	x0, x23
	bl	_IS_CHAN_2GHZ
	mov	x1, x0
	mov	x0, x24
	bl	_ath9k_hw_fbin2freq
	mov	x24, x0
	add	w27, w26, #1
	lsl	x8, x27, #4
	ldr	x25, [x22, x8]
	mov	x0, x23
	bl	_IS_CHAN_2GHZ
	mov	x1, x0
	mov	x0, x25
	bl	_ath9k_hw_fbin2freq
	cmp	x20, #1
	b.lt	LBB0_16
; %bb.18:
	mov	x23, x0
	mov	x25, #0
	sxtw	x8, w26
	add	x8, x22, x8, lsl #4
	add	x26, x8, #8
	add	x8, x22, x27, lsl #4
	add	x22, x8, #8
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	lsl	x27, x25, #3
	ldr	x3, [x8, x27]
	ldr	x8, [x22]
	ldr	x4, [x8, x27]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_ath9k_hw_interpolate
	ldr	x8, [x19, #8]
	str	x0, [x8, x27]
	add	x25, x25, #1
	cmp	x20, x25
	b.ne	LBB0_19
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5416_BCHAN_UNUSED,8,3        ; @AR5416_BCHAN_UNUSED
.subsections_via_symbols
