	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sta_age
_sta_age:                               ## @sta_age
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	callq	_adhoc_age
	movq	(%rbx), %rsi
	movq	_IEEE80211_M_STA@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rsi
	sete	%dil
	callq	_KASSERT
	movq	8(%rbx), %rax
	movq	_IEEE80211_ROAMING_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_IEEE80211_F_BGSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movq	24(%rbx), %rax
	movq	_IEEE80211_S_RUN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sta_roam_check                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_M_STA,8,3            ## @IEEE80211_M_STA
	.comm	_IEEE80211_ROAMING_AUTO,8,3     ## @IEEE80211_ROAMING_AUTO
	.comm	_IEEE80211_F_BGSCAN,4,2         ## @IEEE80211_F_BGSCAN
	.comm	_IEEE80211_S_RUN,8,3            ## @IEEE80211_S_RUN
	.no_dead_strip	_sta_age
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sta_age
_sta_age:                               ; @sta_age
	.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
	mov	x20, x0
	ldr	x19, [x0]
	bl	_adhoc_age
	ldr	x1, [x19]
Lloh0:
	adrp	x8, _IEEE80211_M_STA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_M_STA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	cset	w0, eq
	bl	_KASSERT
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _IEEE80211_ROAMING_AUTO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_ROAMING_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19, #16]
Lloh6:
	adrp	x9, _IEEE80211_F_BGSCAN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_F_BGSCAN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _IEEE80211_S_RUN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_S_RUN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sta_roam_check
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_M_STA,8,3            ; @IEEE80211_M_STA
	.comm	_IEEE80211_ROAMING_AUTO,8,3     ; @IEEE80211_ROAMING_AUTO
	.comm	_IEEE80211_F_BGSCAN,4,2         ; @IEEE80211_F_BGSCAN
	.comm	_IEEE80211_S_RUN,8,3            ; @IEEE80211_S_RUN
	.no_dead_strip	_sta_age
.subsections_via_symbols
