	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_set_txpower              ## -- Begin function ath9k_set_txpower
	.p2align	4, 0x90
_ath9k_set_txpower:                     ## @ath9k_set_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_ath9k_hw_regulatory
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ath9k_ps_wakeup
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.1:
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movl	(%r12), %eax
	jmp	LBB0_4
LBB0_2:
	movl	$-1, %eax
LBB0_4:
	movl	%eax, -36(%rbp)
	movq	8(%rbx), %rdi
	movq	_IEEE80211_IFACE_ITER_RESUME_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ath9k_tpc_vif_iter@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	movl	-36(%rbp), %esi
	cmpl	$-1, %esi
	jne	LBB0_6
LBB0_5:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	%esi, -36(%rbp)
LBB0_6:
	addl	%esi, %esi
	movq	(%rbx), %rax
	movl	%esi, (%rax)
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ath9k_hw_set_txpowerlimit
	movl	(%r15), %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	%rbx, %rdi
	callq	_ath9k_ps_restore
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ## @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_ath9k_tpc_vif_iter,4,2         ## @ath9k_tpc_vif_iter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_set_txpower              ; -- Begin function ath9k_set_txpower
	.p2align	2
_ath9k_set_txpower:                     ; @ath9k_set_txpower
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_ath9k_hw_regulatory
	mov	x21, x0
	mov	x0, x19
	bl	_ath9k_ps_wakeup
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.1:
	cbz	x22, LBB0_3
; %bb.2:
	ldr	w8, [x22]
	b	LBB0_4
LBB0_3:
	mov	w8, #-1
LBB0_4:
	str	w8, [sp, #12]
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x8, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ath9k_tpc_vif_iter@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ath9k_tpc_vif_iter@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_ieee80211_iterate_active_interfaces_atomic
	ldr	w8, [sp, #12]
	cmn	w8, #1
	b.ne	LBB0_6
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_6:
	lsl	w1, w8, #1
	ldr	x8, [x19]
	str	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_ath9k_hw_set_txpowerlimit
	ldr	w8, [x21]
	ldr	x9, [x19]
	str	w8, [x9, #4]
	mov	x0, x19
	bl	_ath9k_ps_restore
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ; @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_ath9k_tpc_vif_iter,4,2         ; @ath9k_tpc_vif_iter
.subsections_via_symbols
