	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_init_band_txpower
_ath9k_init_band_txpower:               ## @ath9k_init_band_txpower
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_ath9k_hw_common
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	shlq	$4, %rcx
	cmpl	$0, (%rax,%rcx)
	jle	LBB0_3
## %bb.1:
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx), %r13
	addq	$8, %r13
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	movq	(%rsi,%r14), %rax
	addq	%r14, %rsi
	shlq	$2, %rax
	addq	(%rbx), %rax
	movq	%rax, 8(%rbx)
	movq	_NL80211_CHAN_HT20@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_cfg80211_chandef_create
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_ath9k_cmn_get_channel
	movq	_MAX_COMBINED_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_ath9k_hw_set_txpowerlimit
	incq	%r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$8, %r14
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_CHAN_HT20,4,2          ## @NL80211_CHAN_HT20
	.comm	_MAX_COMBINED_POWER,4,2         ## @MAX_COMBINED_POWER
	.no_dead_strip	_ath9k_init_band_txpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_init_band_txpower
_ath9k_init_band_txpower:               ; @ath9k_init_band_txpower
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_ath9k_hw_common
	ldr	x8, [x0]
	add	x22, x8, w21, sxtw #4
	ldr	w9, [x22]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	sxtw	x9, w21
	add	x8, x8, x9, lsl #4
	add	x21, x8, #8
Lloh0:
	adrp	x25, _NL80211_CHAN_HT20@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NL80211_CHAN_HT20@GOTPAGEOFF]
Lloh2:
	adrp	x26, _MAX_COMBINED_POWER@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MAX_COMBINED_POWER@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x1, x8, x23
	ldr	x8, [x20]
	ldr	x9, [x1]
	add	x8, x8, x9, lsl #2
	str	x8, [x20, #8]
	ldr	w2, [x25]
	add	x0, sp, #8
	bl	_cfg80211_chandef_create
	ldr	w0, [x19]
	add	x2, sp, #8
	mov	x1, x20
	bl	_ath9k_cmn_get_channel
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #1
	bl	_ath9k_hw_set_txpowerlimit
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #8
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_3:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_CHAN_HT20,4,2          ; @NL80211_CHAN_HT20
	.comm	_MAX_COMBINED_POWER,4,2         ; @MAX_COMBINED_POWER
	.no_dead_strip	_ath9k_init_band_txpower
.subsections_via_symbols
