	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_sta_pwrsave          ## -- Begin function ieee80211_sta_pwrsave
	.p2align	4, 0x90
_ieee80211_sta_pwrsave:                 ## @ieee80211_sta_pwrsave
	.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), %r14
	testl	%esi, %esi
	setne	%al
	movq	_IEEE80211_NODE_PWR_MGT@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, (%r14)
	setne	%cl
	cmpb	%cl, %al
	je	LBB0_5
## %bb.1:
	movl	%esi, %ebx
	testl	%esi, %esi
	movq	_IEEE80211_MSG_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmovneq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdx
	callq	_IEEE80211_NOTE
	movl	(%r15), %eax
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.4:
	orl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_ieee80211_ref_node
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_send_nulldata        ## TAILCALL
LBB0_2:
	notl	%eax
	andl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_ieee80211_ref_node
	movl	%eax, %edi
	callq	_ieee80211_send_nulldata
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pwrsave_flushq                 ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_NODE_PWR_MGT,4,2     ## @IEEE80211_NODE_PWR_MGT
	.comm	_IEEE80211_MSG_POWER,4,2        ## @IEEE80211_MSG_POWER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sta power save mode %s"

L_.str.1:                               ## @.str.1
	.asciz	"on"

L_.str.2:                               ## @.str.2
	.asciz	"off"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_sta_pwrsave          ; -- Begin function ieee80211_sta_pwrsave
	.p2align	2
_ieee80211_sta_pwrsave:                 ; @ieee80211_sta_pwrsave
	.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
	ldr	x19, [x0]
	cmp	w1, #0
	cset	w8, ne
	ldr	w9, [x19]
Lloh0:
	adrp	x21, _IEEE80211_NODE_PWR_MGT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IEEE80211_NODE_PWR_MGT@GOTPAGEOFF]
	ldr	w10, [x21]
	tst	w10, w9
	cset	w9, ne
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x1
Lloh2:
	adrp	x8, _IEEE80211_MSG_POWER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_MSG_POWER@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.1@PAGE
Lloh8:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w20, #0
	csel	x4, x9, x8, ne
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x19
	bl	_IEEE80211_NOTE
	ldr	w8, [x21]
	cbz	w20, LBB0_3
; %bb.2:
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_ieee80211_ref_node
	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
	b	_ieee80211_send_nulldata
LBB0_3:
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_ieee80211_ref_node
	bl	_ieee80211_send_nulldata
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	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
	b	_pwrsave_flushq
LBB0_5:
	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
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_NODE_PWR_MGT,4,2     ; @IEEE80211_NODE_PWR_MGT
	.comm	_IEEE80211_MSG_POWER,4,2        ; @IEEE80211_MSG_POWER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sta power save mode %s"

l_.str.1:                               ; @.str.1
	.asciz	"on"

l_.str.2:                               ; @.str.2
	.asciz	"off"

.subsections_via_symbols
