	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_ps_beacon
_carl9170_ps_beacon:                    ## @carl9170_ps_beacon
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	_IEEE80211_CONF_PS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	(%rax), %ecx
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	_FCS_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addl	$40, %eax
	cmpl	%ebx, %eax
	jae	LBB0_10
## %bb.2:
	leaq	12(%r15), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ath_is_mybeacon
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	cmpl	$0, (%r14)
	je	LBB0_10
## %bb.4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	subl	(%r13), %ebx
	movq	_WLAN_EID_TIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_carl9170_find_ie
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %rbx
	movl	4(%rax), %r12d
	cmpl	$8, %r12d
	jb	LBB0_10
## %bb.6:
	movq	%rbx, %r13
	addq	$8, %r13
	movq	16(%r15), %rax
	xorl	%edi, %edi
	cmpl	$0, 4(%rax)
	sete	%dil
	callq	_WARN_ON_ONCE
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	(%r13), %eax
	decl	%eax
	movq	16(%r15), %rcx
	cltd
	idivl	4(%rcx)
	movl	%edx, (%r15)
LBB0_8:
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_ieee80211_check_tim
	movl	12(%rbx), %ecx
	andl	$1, %ecx
	orl	%eax, %ecx
	movq	_PS_OFF_BCN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_11
## %bb.9:
	orl	%eax, 4(%r15)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	notl	%eax
	andl	%eax, 4(%r15)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_carl9170_ps_check              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ## @IEEE80211_CONF_PS
	.comm	_FCS_LEN,4,2                    ## @FCS_LEN
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_WLAN_EID_TIM,4,2               ## @WLAN_EID_TIM
	.comm	_PS_OFF_BCN,4,2                 ## @PS_OFF_BCN
	.no_dead_strip	_carl9170_ps_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_ps_beacon
_carl9170_ps_beacon:                    ; @carl9170_ps_beacon
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	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
; %bb.1:
Lloh3:
	adrp	x23, _FCS_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FCS_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #40
	cmp	w8, w22
	b.hs	LBB0_10
; %bb.2:
	add	x20, x19, #12
	mov	x0, x20
	mov	x1, x21
	bl	_ath_is_mybeacon
	cbz	w0, LBB0_10
; %bb.3:
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.4:
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x23]
	sub	w1, w22, w8
Lloh8:
	adrp	x8, _WLAN_EID_TIM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_EID_TIM@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_carl9170_find_ie
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
	ldr	w22, [x0, #4]
	cmp	w22, #8
	b.lo	LBB0_10
; %bb.6:
	add	x23, x21, #8
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w8, [x23]
	sub	w8, w8, #1
	ldr	x9, [x19, #16]
	ldr	w9, [x9, #4]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19]
LBB0_8:
	ldr	w2, [x20]
	mov	x0, x23
	mov	x1, x22
	bl	_ieee80211_check_tim
	ldr	w8, [x21, #12]
	and	w9, w8, #0x1
Lloh11:
	adrp	x8, _PS_OFF_BCN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PS_OFF_BCN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w9, w9, w0
	cbz	w9, LBB0_11
; %bb.9:
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_carl9170_ps_check
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ; @IEEE80211_CONF_PS
	.comm	_FCS_LEN,4,2                    ; @FCS_LEN
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_WLAN_EID_TIM,4,2               ; @WLAN_EID_TIM
	.comm	_PS_OFF_BCN,4,2                 ; @PS_OFF_BCN
	.no_dead_strip	_carl9170_ps_beacon
.subsections_via_symbols
