	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mps_set_sta_peer_pm
_mps_set_sta_peer_pm:                   ## @mps_set_sta_peer_pm
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_ieee80211_get_qos_ctl
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_ieee80211_has_pm
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$8, %eax
	testl	%eax, 4(%r15)
	jne	LBB0_3
## %bb.4:
	movq	_NL80211_MESH_POWER_LIGHT_SLEEP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_NL80211_MESH_POWER_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_NL80211_MESH_POWER_DEEP_SLEEP@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	cmpl	%ebx, (%r14)
	jne	LBB0_7
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	4(%r14), %edx
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_mps_dbg
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_mps_sta_status_update ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_QOS_CTL_MESH_PS_LEVEL,4,2 ## @IEEE80211_QOS_CTL_MESH_PS_LEVEL
	.comm	_NL80211_MESH_POWER_DEEP_SLEEP,4,2 ## @NL80211_MESH_POWER_DEEP_SLEEP
	.comm	_NL80211_MESH_POWER_LIGHT_SLEEP,4,2 ## @NL80211_MESH_POWER_LIGHT_SLEEP
	.comm	_NL80211_MESH_POWER_ACTIVE,4,2  ## @NL80211_MESH_POWER_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STA %pM enters mode %d\n"

	.no_dead_strip	_mps_set_sta_peer_pm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mps_set_sta_peer_pm
_mps_set_sta_peer_pm:                   ; @mps_set_sta_peer_pm
	.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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ieee80211_get_qos_ctl
	mov	x20, x0
	ldr	w0, [x21]
	bl	_ieee80211_has_pm
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x9, _IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _NL80211_MESH_POWER_DEEP_SLEEP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_MESH_POWER_DEEP_SLEEP@GOTPAGEOFF]
Lloh5:
	adrp	x11, _NL80211_MESH_POWER_LIGHT_SLEEP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _NL80211_MESH_POWER_LIGHT_SLEEP@GOTPAGEOFF]
	tst	w8, w9, asr #8
	csel	x8, x11, x10, eq
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _NL80211_MESH_POWER_ACTIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NL80211_MESH_POWER_ACTIVE@GOTPAGEOFF]
LBB0_3:
	ldr	w20, [x8]
	ldr	w8, [x19]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.4:
	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
LBB0_5:
	ldp	w2, w0, [x19, #4]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_mps_dbg
	str	w20, [x19]
	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	_ieee80211_mps_sta_status_update
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_QOS_CTL_MESH_PS_LEVEL,4,2 ; @IEEE80211_QOS_CTL_MESH_PS_LEVEL
	.comm	_NL80211_MESH_POWER_DEEP_SLEEP,4,2 ; @NL80211_MESH_POWER_DEEP_SLEEP
	.comm	_NL80211_MESH_POWER_LIGHT_SLEEP,4,2 ; @NL80211_MESH_POWER_LIGHT_SLEEP
	.comm	_NL80211_MESH_POWER_ACTIVE,4,2  ; @NL80211_MESH_POWER_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STA %pM enters mode %d\n"

	.no_dead_strip	_mps_set_sta_peer_pm
.subsections_via_symbols
