	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_enable_ps
_ieee80211_enable_ps:                   ## @ieee80211_enable_ps
	.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
	cmpq	$0, 32(%rdi)
	je	LBB0_1
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movl	(%rbx), %eax
	testq	%rdi, %rdi
	jle	LBB0_3
## %bb.2:
	movq	_IEEE80211_HW_SUPPORTS_DYNAMIC_PS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
LBB0_3:
	movq	_IEEE80211_HW_PS_NULLFUNC_STACK@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_ieee80211_send_nullfunc
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.5:
	movq	_IEEE80211_HW_REPORTS_TX_ACK_STATUS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
LBB0_8:
	movq	_IEEE80211_CONF_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_IEEE80211_CONF_CHANGE_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ieee80211_hw_config            ## TAILCALL
LBB0_7:
	addq	$24, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	_msecs_to_jiffies
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HW_SUPPORTS_DYNAMIC_PS,4,2 ## @IEEE80211_HW_SUPPORTS_DYNAMIC_PS
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_IEEE80211_HW_PS_NULLFUNC_STACK,4,2 ## @IEEE80211_HW_PS_NULLFUNC_STACK
	.comm	_IEEE80211_HW_REPORTS_TX_ACK_STATUS,4,2 ## @IEEE80211_HW_REPORTS_TX_ACK_STATUS
	.comm	_IEEE80211_CONF_PS,4,2          ## @IEEE80211_CONF_PS
	.comm	_IEEE80211_CONF_CHANGE_PS,4,2   ## @IEEE80211_CONF_CHANGE_PS
	.no_dead_strip	_ieee80211_enable_ps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_enable_ps
_ieee80211_enable_ps:                   ; @ieee80211_enable_ps
	.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
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	w8, [x19]
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, _IEEE80211_HW_SUPPORTS_DYNAMIC_PS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HW_SUPPORTS_DYNAMIC_PS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_4:
Lloh3:
	adrp	x20, _IEEE80211_HW_PS_NULLFUNC_STACK@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IEEE80211_HW_PS_NULLFUNC_STACK@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w2, #1
	bl	_ieee80211_send_nullfunc
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh5:
	adrp	x9, _IEEE80211_HW_REPORTS_TX_ACK_STATUS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_HW_REPORTS_TX_ACK_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
LBB0_7:
Lloh8:
	adrp	x8, _IEEE80211_CONF_PS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_CONF_PS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
Lloh11:
	adrp	x8, _IEEE80211_CONF_CHANGE_PS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_CONF_CHANGE_PS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ieee80211_hw_config
LBB0_8:
	add	x19, x19, #24
Lloh14:
	adrp	x8, _jiffies@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh16:
	ldr	x20, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HW_SUPPORTS_DYNAMIC_PS,4,2 ; @IEEE80211_HW_SUPPORTS_DYNAMIC_PS
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_IEEE80211_HW_PS_NULLFUNC_STACK,4,2 ; @IEEE80211_HW_PS_NULLFUNC_STACK
	.comm	_IEEE80211_HW_REPORTS_TX_ACK_STATUS,4,2 ; @IEEE80211_HW_REPORTS_TX_ACK_STATUS
	.comm	_IEEE80211_CONF_PS,4,2          ; @IEEE80211_CONF_PS
	.comm	_IEEE80211_CONF_CHANGE_PS,4,2   ; @IEEE80211_CONF_CHANGE_PS
	.no_dead_strip	_ieee80211_enable_ps
.subsections_via_symbols
