	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clear_sta_ps_flags
_clear_sta_ps_flags:                    ## @clear_sta_ps_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	8(%r14), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_NL80211_IFTYPE_AP_VLAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	leaq	8(%r14), %rdi
	callq	_ieee80211_vif_is_mesh
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movq	16(%r14), %r14
LBB0_4:
	movq	_WLAN_STA_PS_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_clear_sta_flag
	movq	_WLAN_STA_PS_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_test_and_clear_sta_flag
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_atomic_dec                     ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ## @NL80211_IFTYPE_AP_VLAN
	.comm	_WLAN_STA_PS_DRIVER,4,2         ## @WLAN_STA_PS_DRIVER
	.comm	_WLAN_STA_PS_STA,4,2            ## @WLAN_STA_PS_STA
	.no_dead_strip	_clear_sta_ps_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clear_sta_ps_flags
_clear_sta_ps_flags:                    ; @clear_sta_ps_flags
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	ldr	x8, [x0, #8]!
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NL80211_IFTYPE_AP_VLAN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_IFTYPE_AP_VLAN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x19, [x19, #16]
	b	LBB0_3
LBB0_2:
	bl	_ieee80211_vif_is_mesh
	cbz	x0, LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _WLAN_STA_PS_DRIVER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_STA_PS_DRIVER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_clear_sta_flag
Lloh9:
	adrp	x8, _WLAN_STA_PS_STA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLAN_STA_PS_STA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_test_and_clear_sta_flag
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_atomic_dec
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ; @NL80211_IFTYPE_AP_VLAN
	.comm	_WLAN_STA_PS_DRIVER,4,2         ; @WLAN_STA_PS_DRIVER
	.comm	_WLAN_STA_PS_STA,4,2            ; @WLAN_STA_PS_STA
	.no_dead_strip	_clear_sta_ps_flags
.subsections_via_symbols
