	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ieee80211_recalc_txpower     ## -- Begin function __ieee80211_recalc_txpower
	.p2align	4, 0x90
___ieee80211_recalc_txpower:            ## @__ieee80211_recalc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	8(%r15), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	16(%r15), %esi
	movq	_IEEE80211_UNSET_POWER_LEVEL@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %esi
	je	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	callq	_min
	movl	%eax, %r14d
	movl	(%rbx), %esi
LBB0_4:
	movl	12(%r15), %eax
	cmpl	%esi, %eax
	je	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, %r14d
LBB0_6:
	xorl	%ebx, %ebx
	cmpl	4(%r15), %r14d
	je	LBB0_8
## %bb.7:
	movl	%r14d, 4(%r15)
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_ieee80211_hw_config
	movl	$1, %ebx
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_UNSET_POWER_LEVEL,4,2 ## @IEEE80211_UNSET_POWER_LEVEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ieee80211_recalc_txpower     ; -- Begin function __ieee80211_recalc_txpower
	.p2align	2
___ieee80211_recalc_txpower:            ; @__ieee80211_recalc_txpower
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_rcu_read_lock
	ldr	w0, [x19, #8]
	bl	_rcu_dereference
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x0]
	ldr	w20, [x8]
	bl	_rcu_read_unlock
	ldr	w1, [x19, #16]
Lloh0:
	adrp	x21, _IEEE80211_UNSET_POWER_LEVEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IEEE80211_UNSET_POWER_LEVEL@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w1, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_min
	mov	x20, x0
	ldr	w1, [x21]
LBB0_3:
	ldr	w8, [x19, #12]
	cmp	w8, w1
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x8
	bl	_min
	mov	x20, x0
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.ne	LBB0_8
; %bb.6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	bl	_rcu_read_unlock
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	str	w20, [x19, #4]
	ldr	w0, [x19]
	mov	w1, #0
	bl	_ieee80211_hw_config
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_UNSET_POWER_LEVEL,4,2 ; @IEEE80211_UNSET_POWER_LEVEL
.subsections_via_symbols
