	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_mps_sta_status_update ## -- Begin function ieee80211_mps_sta_status_update
	.p2align	4, 0x90
_ieee80211_mps_sta_status_update:       ## @ieee80211_mps_sta_status_update
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_NL80211_PLINK_ESTAB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%r15), %r12
	movq	_NL80211_MESH_POWER_UNKNOWN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_3
LBB0_2:
	movl	16(%r15), %r12d
LBB0_3:
	movq	_NL80211_MESH_POWER_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	cmpl	%ebx, %r12d
	setne	%r14b
	movq	_WLAN_STA_PS_STA@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_test_sta_flag
	cmpl	%r14d, %eax
	je	LBB0_10
## %bb.4:
	cmpl	%ebx, %r12d
	je	LBB0_7
## %bb.5:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_set_sta_flag
	movq	24(%r15), %rdi
	callq	_atomic_inc
	movq	24(%r15), %rdi
	movl	20(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_mps_dbg
	movq	(%r15), %rax
	movq	_NL80211_PLINK_ESTAB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_ieee80211_sta_ps_deliver_wakeup
	movq	(%r15), %rax
	movq	_NL80211_PLINK_ESTAB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.8:
	movq	_WLAN_STA_MPSP_OWNER@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_WLAN_STA_MPSP_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_clear_sta_flag
	movq	_WLAN_STA_MPSP_RECIPIENT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_sta_flag                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_PLINK_ESTAB,8,3        ## @NL80211_PLINK_ESTAB
	.comm	_NL80211_MESH_POWER_UNKNOWN,8,3 ## @NL80211_MESH_POWER_UNKNOWN
	.comm	_NL80211_MESH_POWER_ACTIVE,4,2  ## @NL80211_MESH_POWER_ACTIVE
	.comm	_WLAN_STA_PS_STA,4,2            ## @WLAN_STA_PS_STA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start PS buffering frames towards %pM\n"

	.comm	_WLAN_STA_MPSP_OWNER,4,2        ## @WLAN_STA_MPSP_OWNER
	.comm	_WLAN_STA_MPSP_RECIPIENT,4,2    ## @WLAN_STA_MPSP_RECIPIENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_mps_sta_status_update ; -- Begin function ieee80211_mps_sta_status_update
	.p2align	2
_ieee80211_mps_sta_status_update:       ; @ieee80211_mps_sta_status_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _NL80211_PLINK_ESTAB@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NL80211_PLINK_ESTAB@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x21, [x19, #8]
Lloh2:
	adrp	x8, _NL80211_MESH_POWER_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NL80211_MESH_POWER_UNKNOWN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_3
LBB0_2:
	ldr	w21, [x19, #16]
LBB0_3:
Lloh5:
	adrp	x8, _NL80211_MESH_POWER_ACTIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NL80211_MESH_POWER_ACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	cmp	w21, w23
	cset	w24, ne
Lloh8:
	adrp	x22, _WLAN_STA_PS_STA@GOTPAGE
Lloh9:
	ldr	x22, [x22, _WLAN_STA_PS_STA@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_test_sta_flag
	cmp	w0, w24
	b.eq	LBB0_6
; %bb.4:
	cmp	w21, w23
	b.eq	LBB0_7
; %bb.5:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_set_sta_flag
	ldr	x0, [x19, #24]
	bl	_atomic_inc
	ldr	x0, [x19, #24]
	ldr	w2, [x19, #20]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mps_dbg
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_ieee80211_sta_ps_deliver_wakeup
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _WLAN_STA_MPSP_OWNER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WLAN_STA_MPSP_OWNER@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _WLAN_STA_MPSP_OWNER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WLAN_STA_MPSP_OWNER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_clear_sta_flag
Lloh17:
	adrp	x8, _WLAN_STA_MPSP_RECIPIENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WLAN_STA_MPSP_RECIPIENT@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_clear_sta_flag
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_PLINK_ESTAB,8,3        ; @NL80211_PLINK_ESTAB
	.comm	_NL80211_MESH_POWER_UNKNOWN,8,3 ; @NL80211_MESH_POWER_UNKNOWN
	.comm	_NL80211_MESH_POWER_ACTIVE,4,2  ; @NL80211_MESH_POWER_ACTIVE
	.comm	_WLAN_STA_PS_STA,4,2            ; @WLAN_STA_PS_STA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start PS buffering frames towards %pM\n"

	.comm	_WLAN_STA_MPSP_OWNER,4,2        ; @WLAN_STA_MPSP_OWNER
	.comm	_WLAN_STA_MPSP_RECIPIENT,4,2    ; @WLAN_STA_MPSP_RECIPIENT
.subsections_via_symbols
