	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00lib_rxdone_check_ps
_rt2x00lib_rxdone_check_ps:             ## @rt2x00lib_rxdone_check_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movl	(%rax), %edi
	callq	_ieee80211_is_beacon
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	24(%r14), %rax
	movq	_IEEE80211_CONF_PS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	testl	%ecx, (%rax)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movq	(%rbx), %rsi
	movq	_FCS_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	40(%rax), %rcx
	cmpq	%rcx, %rsi
	jle	LBB0_11
## %bb.5:
	movq	_RXDONE_MY_BSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_11
## %bb.6:
	cmpl	$0, 12(%r14)
	je	LBB0_11
## %bb.7:
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r14)
	movq	8(%rbx), %rdi
	subq	%rax, %rsi
	movq	_WLAN_EID_TIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rt2x00lib_find_ie
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %rbx
	movl	4(%rax), %esi
	cmpl	$4, %esi
	jb	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	addq	$8, %rdi
	movl	12(%r14), %edx
	callq	_ieee80211_check_tim
	movl	8(%rbx), %ecx
	andl	$1, %ecx
	orl	%eax, %ecx
	jne	LBB0_11
## %bb.10:
	movq	_CONFIG_POWERSAVING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_12
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	4(%r14), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ## @IEEE80211_CONF_PS
	.comm	_FCS_LEN,8,3                    ## @FCS_LEN
	.comm	_RXDONE_MY_BSS,4,2              ## @RXDONE_MY_BSS
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_WLAN_EID_TIM,4,2               ## @WLAN_EID_TIM
	.comm	_CONFIG_POWERSAVING,4,2         ## @CONFIG_POWERSAVING
	.no_dead_strip	_rt2x00lib_rxdone_check_ps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00lib_rxdone_check_ps
_rt2x00lib_rxdone_check_ps:             ; @rt2x00lib_rxdone_check_ps
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	ldr	w0, [x8]
	bl	_ieee80211_is_beacon
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _IEEE80211_CONF_PS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_CONF_PS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_likely
	cbnz	x0, LBB0_10
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_likely
	cbnz	x0, LBB0_10
LBB0_3:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _FCS_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FCS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x10, x9, #40
	cmp	x8, x10
	b.le	LBB0_10
; %bb.4:
	ldr	w10, [x21]
Lloh6:
	adrp	x11, _RXDONE_MY_BSS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _RXDONE_MY_BSS@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_10
; %bb.5:
	ldr	w10, [x19, #12]
	cbz	w10, LBB0_10
; %bb.6:
Lloh9:
	adrp	x10, _jiffies@GOTPAGE
Lloh10:
	ldr	x10, [x10, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	str	w10, [x19, #16]
	ldr	x0, [x20, #8]
	sub	x1, x8, x9
Lloh12:
	adrp	x8, _WLAN_EID_TIM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WLAN_EID_TIM@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_rt2x00lib_find_ie
	cbz	x0, LBB0_10
; %bb.7:
	mov	x20, x0
	ldr	w1, [x0, #4]
	cmp	w1, #4
	b.lo	LBB0_10
; %bb.8:
	add	x0, x20, #8
	ldr	w2, [x19, #12]
	bl	_ieee80211_check_tim
	ldr	w8, [x20, #8]
	and	w8, w8, #0x1
	orr	w8, w8, w0
	cbnz	w8, LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _CONFIG_POWERSAVING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONFIG_POWERSAVING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	w0, LBB0_11
LBB0_10:
	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_11:
	ldr	w0, [x19, #4]
	mov	x1, 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	_queue_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ; @IEEE80211_CONF_PS
	.comm	_FCS_LEN,8,3                    ; @FCS_LEN
	.comm	_RXDONE_MY_BSS,4,2              ; @RXDONE_MY_BSS
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_WLAN_EID_TIM,4,2               ; @WLAN_EID_TIM
	.comm	_CONFIG_POWERSAVING,4,2         ; @CONFIG_POWERSAVING
	.no_dead_strip	_rt2x00lib_rxdone_check_ps
.subsections_via_symbols
