	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_offchannel_ps_enable
_ieee80211_offchannel_ps_enable:        ## @ieee80211_offchannel_ps_enable
	.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, %r14
	movq	8(%rdi), %rbx
	movl	$0, (%rbx)
	leaq	16(%rbx), %rdi
	callq	_del_timer_sync
	leaq	4(%r14), %rdi
	callq	_del_timer_sync
	movq	%r14, %rdi
	callq	_del_timer_sync
	leaq	12(%rbx), %rdi
	callq	_cancel_work_sync
	movl	8(%rbx), %eax
	movq	_IEEE80211_CONF_PS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 8(%rbx)
	movq	_IEEE80211_CONF_CHANGE_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_config
LBB0_2:
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	_IEEE80211_HW_PS_NULLFUNC_STACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_5
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ieee80211_send_nullfunc        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ## @IEEE80211_CONF_PS
	.comm	_IEEE80211_CONF_CHANGE_PS,4,2   ## @IEEE80211_CONF_CHANGE_PS
	.comm	_IEEE80211_HW_PS_NULLFUNC_STACK,4,2 ## @IEEE80211_HW_PS_NULLFUNC_STACK
	.no_dead_strip	_ieee80211_offchannel_ps_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_offchannel_ps_enable
_ieee80211_offchannel_ps_enable:        ; @ieee80211_offchannel_ps_enable
	.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	x19, x0
	ldr	x20, [x0, #8]
	str	wzr, [x20]
	add	x0, x20, #16
	bl	_del_timer_sync
	add	x0, x19, #4
	bl	_del_timer_sync
	mov	x0, x19
	bl	_del_timer_sync
	add	x0, x20, #12
	bl	_cancel_work_sync
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x9, _IEEE80211_CONF_PS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_CONF_PS@GOTPAGEOFF]
	ldr	w10, [x9]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w10, #1
	str	w10, [x20]
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x20, #8]
Lloh2:
	adrp	x8, _IEEE80211_CONF_CHANGE_PS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_CONF_CHANGE_PS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_config
LBB0_2:
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x20, #4]
Lloh5:
	adrp	x9, _IEEE80211_HW_PS_NULLFUNC_STACK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_HW_PS_NULLFUNC_STACK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ieee80211_send_nullfunc
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ; @IEEE80211_CONF_PS
	.comm	_IEEE80211_CONF_CHANGE_PS,4,2   ; @IEEE80211_CONF_CHANGE_PS
	.comm	_IEEE80211_HW_PS_NULLFUNC_STACK,4,2 ; @IEEE80211_HW_PS_NULLFUNC_STACK
	.no_dead_strip	_ieee80211_offchannel_ps_enable
.subsections_via_symbols
