	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_mps_set_frame_flags  ## -- Begin function ieee80211_mps_set_frame_flags
	.p2align	4, 0x90
_ieee80211_mps_set_frame_flags:         ## @ieee80211_mps_set_frame_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdx), %edi
	callq	_is_unicast_ether_addr
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	4(%r12), %edi
	callq	_ieee80211_is_data_qos
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	sete	%bl
LBB0_3:
	movl	%ebx, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_19
## %bb.4:
	movl	(%r12), %edi
	callq	_is_unicast_ether_addr
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	4(%r12), %edi
	callq	_ieee80211_is_data_qos
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	(%r15), %rax
	movq	_NL80211_PLINK_ESTAB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	addq	$8, %r15
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %r15
LBB0_9:
	movl	(%r15), %ebx
	movq	_NL80211_MESH_POWER_ACTIVE@GOTPCREL(%rip), %rax
	movq	_IEEE80211_FCTL_PM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	(%rax), %ebx
	jne	LBB0_11
## %bb.10:
	notl	%edi
	callq	_cpu_to_le16
	andl	4(%r12), %eax
	jmp	LBB0_12
LBB0_11:
	callq	_cpu_to_le16
	orl	4(%r12), %eax
LBB0_12:
	movl	%eax, 4(%r12)
	movl	%eax, %edi
	callq	_ieee80211_is_data_qos
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	movq	%r12, %rdi
	callq	_ieee80211_get_qos_ctl
	movq	%rax, %r15
	movl	(%r12), %edi
	callq	_is_unicast_ether_addr
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_NL80211_MESH_POWER_DEEP_SLEEP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_17
LBB0_15:
	movl	(%r12), %edi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	cmpq	$0, 8(%r14)
	jle	LBB0_18
LBB0_17:
	movq	_IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$8, %eax
	orl	%eax, 4(%r15)
	jmp	LBB0_19
LBB0_18:
	movq	_IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$8, %eax
	notl	%eax
	andl	%eax, 4(%r15)
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_PLINK_ESTAB,8,3        ## @NL80211_PLINK_ESTAB
	.comm	_NL80211_MESH_POWER_ACTIVE,4,2  ## @NL80211_MESH_POWER_ACTIVE
	.comm	_IEEE80211_FCTL_PM,4,2          ## @IEEE80211_FCTL_PM
	.comm	_NL80211_MESH_POWER_DEEP_SLEEP,4,2 ## @NL80211_MESH_POWER_DEEP_SLEEP
	.comm	_IEEE80211_QOS_CTL_MESH_PS_LEVEL,4,2 ## @IEEE80211_QOS_CTL_MESH_PS_LEVEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_mps_set_frame_flags  ; -- Begin function ieee80211_mps_set_frame_flags
	.p2align	2
_ieee80211_mps_set_frame_flags:         ; @ieee80211_mps_set_frame_flags
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x2]
	bl	_is_unicast_ether_addr
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_ieee80211_is_data_qos
	cmp	x21, #0
	cset	w8, eq
	cmp	x0, #0
	csel	w0, wzr, w8, eq
LBB0_2:
	bl	_WARN_ON
	cbnz	x0, LBB0_19
; %bb.3:
	ldr	w0, [x20]
	bl	_is_unicast_ether_addr
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w0, [x20, #4]
	bl	_ieee80211_is_data_qos
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NL80211_PLINK_ESTAB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_PLINK_ESTAB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	add	x8, x21, #8
	b	LBB0_8
LBB0_7:
	mov	x8, x19
LBB0_8:
Lloh3:
	adrp	x9, _NL80211_MESH_POWER_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_MESH_POWER_ACTIVE@GOTPAGEOFF]
	ldr	w22, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _IEEE80211_FCTL_PM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_FCTL_PM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	cmp	w22, w8
	b.ne	LBB0_10
; %bb.9:
	mvn	w0, w0
	bl	_cpu_to_le16
	ldr	w8, [x20, #4]
	and	w0, w8, w0
	b	LBB0_11
LBB0_10:
	bl	_cpu_to_le16
	ldr	w8, [x20, #4]
	orr	w0, w8, w0
LBB0_11:
	str	w0, [x20, #4]
	bl	_ieee80211_is_data_qos
	cbz	x0, LBB0_19
; %bb.12:
	mov	x0, x20
	bl	_ieee80211_get_qos_ctl
	mov	x21, x0
	ldr	w0, [x20]
	bl	_is_unicast_ether_addr
	cbz	x0, LBB0_14
; %bb.13:
Lloh9:
	adrp	x8, _NL80211_MESH_POWER_DEEP_SLEEP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_MESH_POWER_DEEP_SLEEP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_16
LBB0_14:
	ldr	w0, [x20]
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_17
; %bb.15:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_17
LBB0_16:
Lloh12:
	adrp	x8, _IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8, asr #8
	b	LBB0_18
LBB0_17:
Lloh15:
	adrp	x8, _IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	bic	w8, w9, w8, asr #8
LBB0_18:
	str	w8, [x21, #4]
LBB0_19:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_PLINK_ESTAB,8,3        ; @NL80211_PLINK_ESTAB
	.comm	_NL80211_MESH_POWER_ACTIVE,4,2  ; @NL80211_MESH_POWER_ACTIVE
	.comm	_IEEE80211_FCTL_PM,4,2          ; @IEEE80211_FCTL_PM
	.comm	_NL80211_MESH_POWER_DEEP_SLEEP,4,2 ; @NL80211_MESH_POWER_DEEP_SLEEP
	.comm	_IEEE80211_QOS_CTL_MESH_PS_LEVEL,4,2 ; @IEEE80211_QOS_CTL_MESH_PS_LEVEL
.subsections_via_symbols
