	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_pspoll_workaround
_p54_pspoll_workaround:                 ## @p54_pspoll_workaround
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	movl	4(%rbx), %edi
	callq	_ieee80211_is_beacon
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$0, 4(%r14)
	je	LBB0_5
## %bb.2:
	movl	(%rbx), %edi
	movl	8(%r14), %esi
	callq	_ether_addr_equal_64bits
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	_WLAN_EID_TIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_p54_find_ie
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	4(%rax), %esi
	addq	$8, %rax
	movl	4(%r14), %edx
	movq	%rax, %rdi
	callq	_ieee80211_check_tim
	cmpl	(%r14), %eax
	jne	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_p54_set_ps                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_TIM,4,2               ## @WLAN_EID_TIM
	.no_dead_strip	_p54_pspoll_workaround
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_pspoll_workaround
_p54_pspoll_workaround:                 ; @p54_pspoll_workaround
	.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, x1
	mov	x19, x0
	ldr	x21, [x1]
	ldr	w0, [x21, #4]
	bl	_ieee80211_is_beacon
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w0, [x21]
	ldr	w1, [x19, #8]
	bl	_ether_addr_equal_64bits
	cbz	w0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _WLAN_EID_TIM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_TIM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_p54_find_ie
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x0, #4]
	add	x0, x0, #8
	ldr	w2, [x19, #4]
	bl	_ieee80211_check_tim
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_6
LBB0_5:
	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
LBB0_6:
	str	w0, [x19]
	mov	x0, x19
	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	_p54_set_ps
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_TIM,4,2               ; @WLAN_EID_TIM
	.no_dead_strip	_p54_pspoll_workaround
.subsections_via_symbols
