	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_set_power_mgmt
_ieee80211_set_power_mgmt:              ## @ieee80211_set_power_mgmt
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_IEEE80211_DEV_TO_SUB_IF
	movq	%rax, %r13
	movl	(%rbx), %edi
	callq	_wdev_priv
	movq	%rax, %r14
	movq	16(%r13), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	_IEEE80211_HW_SUPPORTS_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_2
## %bb.4:
	cmpl	%r12d, (%r13)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	cmpl	%r15d, (%r14)
	je	LBB0_9
LBB0_6:
	movl	%r12d, (%r13)
	movl	%r15d, (%r14)
	movq	%r13, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	8(%r13), %esi
	movq	%r13, %rdi
	callq	___ieee80211_request_smps
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_IEEE80211_HW_SUPPORTS_DYNAMIC_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_8
## %bb.7:
	movq	_IEEE80211_CONF_CHANGE_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ieee80211_hw_config
LBB0_8:
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_ieee80211_recalc_ps
	movq	%r13, %rdi
	callq	_ieee80211_recalc_ps_vif
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IEEE80211_HW_SUPPORTS_PS,4,2   ## @IEEE80211_HW_SUPPORTS_PS
	.comm	_IEEE80211_HW_SUPPORTS_DYNAMIC_PS,4,2 ## @IEEE80211_HW_SUPPORTS_DYNAMIC_PS
	.comm	_IEEE80211_CONF_CHANGE_PS,4,2   ## @IEEE80211_CONF_CHANGE_PS
	.no_dead_strip	_ieee80211_set_power_mgmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_set_power_mgmt
_ieee80211_set_power_mgmt:              ; @ieee80211_set_power_mgmt
	.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, x3
	mov	x22, x2
	mov	x20, x1
	mov	x0, x1
	bl	_IEEE80211_DEV_TO_SUB_IF
	mov	x19, x0
	ldr	w0, [x20]
	bl	_wdev_priv
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #4]
Lloh6:
	adrp	x9, _IEEE80211_HW_SUPPORTS_PS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_HW_SUPPORTS_PS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, w21
	b.eq	LBB0_7
LBB0_4:
	str	w22, [x19]
	str	w21, [x20]
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	___ieee80211_request_smps
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w8, [x20, #4]
Lloh9:
	adrp	x9, _IEEE80211_HW_SUPPORTS_DYNAMIC_PS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_HW_SUPPORTS_DYNAMIC_PS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _IEEE80211_CONF_CHANGE_PS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_CONF_CHANGE_PS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_config
LBB0_6:
	mov	x0, x20
	mov	w1, #-1
	bl	_ieee80211_recalc_ps
	mov	x0, x19
	bl	_ieee80211_recalc_ps_vif
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IEEE80211_HW_SUPPORTS_PS,4,2   ; @IEEE80211_HW_SUPPORTS_PS
	.comm	_IEEE80211_HW_SUPPORTS_DYNAMIC_PS,4,2 ; @IEEE80211_HW_SUPPORTS_DYNAMIC_PS
	.comm	_IEEE80211_CONF_CHANGE_PS,4,2   ; @IEEE80211_CONF_CHANGE_PS
	.no_dead_strip	_ieee80211_set_power_mgmt
.subsections_via_symbols
