	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostap_update_sta_ps2
_hostap_update_sta_ps2:                 ## @hostap_update_sta_ps2
	.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
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movl	(%rsi), %eax
	movq	_WLAN_STA_PS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	testl	%eax, %ecx
	jne	LBB0_6
## %bb.2:
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	_DEBUG_PS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %edx
	sarl	$2, %r15d
	sarl	$4, %r14d
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
LBB0_3:
	testl	%eax, %ecx
	je	LBB0_6
## %bb.4:
	movq	%rdi, %r12
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_DEBUG_PS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %edx
	movl	%r15d, %ecx
	sarl	$2, %ecx
	movl	%r14d, %r8d
	sarl	$4, %r8d
	leaq	L_.str.1(%rip), %rsi
	callq	_PDEBUG
	movq	_IEEE80211_FTYPE_CTL@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_7
## %bb.5:
	movq	_IEEE80211_STYPE_PSPOLL@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_packet_send           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_STA_PS,4,2                ## @WLAN_STA_PS
	.comm	_DEBUG_PS2,4,2                  ## @DEBUG_PS2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STA %pM changed to use PS mode (type=0x%02X, stype=0x%02X)\n"

L_.str.1:                               ## @.str.1
	.asciz	"STA %pM changed to not use PS mode (type=0x%02X, stype=0x%02X)\n"

	.comm	_IEEE80211_FTYPE_CTL,4,2        ## @IEEE80211_FTYPE_CTL
	.comm	_IEEE80211_STYPE_PSPOLL,4,2     ## @IEEE80211_STYPE_PSPOLL
	.no_dead_strip	_hostap_update_sta_ps2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostap_update_sta_ps2
_hostap_update_sta_ps2:                 ; @hostap_update_sta_ps2
	.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	x19, x4
	mov	x21, x3
	mov	x20, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _WLAN_STA_PS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_STA_PS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w10, w9, w8
	cbz	w2, LBB0_3
; %bb.1:
	cbnz	w10, LBB0_6
; %bb.2:
	orr	w8, w9, w8
Lloh3:
	adrp	x9, _DEBUG_PS2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEBUG_PS2@GOTPAGEOFF]
	str	w8, [x20]
Lloh5:
	ldr	w0, [x9]
	ldr	w2, [x20, #4]
	asr	w3, w21, #2
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	asr	w4, w19, #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
	b	_PDEBUG
LBB0_3:
	cbz	w10, LBB0_6
; %bb.4:
	mov	x22, x0
	bic	w8, w8, w9
	str	w8, [x20]
Lloh8:
	adrp	x8, _DEBUG_PS2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEBUG_PS2@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w2, [x20, #4]
	asr	w3, w21, #2
	asr	w4, w19, #4
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PDEBUG
Lloh13:
	adrp	x8, _IEEE80211_FTYPE_CTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IEEE80211_FTYPE_CTL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _IEEE80211_STYPE_PSPOLL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IEEE80211_STYPE_PSPOLL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w19, #0, eq
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x22
	mov	x1, x20
	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	_schedule_packet_send
LBB0_6:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_STA_PS,4,2                ; @WLAN_STA_PS
	.comm	_DEBUG_PS2,4,2                  ; @DEBUG_PS2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STA %pM changed to use PS mode (type=0x%02X, stype=0x%02X)\n"

l_.str.1:                               ; @.str.1
	.asciz	"STA %pM changed to not use PS mode (type=0x%02X, stype=0x%02X)\n"

	.comm	_IEEE80211_FTYPE_CTL,4,2        ; @IEEE80211_FTYPE_CTL
	.comm	_IEEE80211_STYPE_PSPOLL,4,2     ; @IEEE80211_STYPE_PSPOLL
	.no_dead_strip	_hostap_update_sta_ps2
.subsections_via_symbols
