	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sta_beacon_miss
_sta_beacon_miss:                       ## @sta_beacon_miss
	.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	%rdi, %rbx
	movq	64(%rdi), %r14
	movq	%r14, %rdi
	callq	_IEEE80211_LOCK_ASSERT
	movq	_IEEE80211_F_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	(%rbx), %rax
	movq	_IEEE80211_S_RUN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setae	%dil
	movq	_ieee80211_state_name@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movslq	(%rcx,%rax,4), %rsi
	callq	_KASSERT
	movq	_IEEE80211_MSG_STATE@GOTPCREL(%rip), %rax
	movq	_IEEE80211_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_ieee80211_opmode_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	(%r15), %rax
	movl	(%rax,%rdx,4), %r8d
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_IEEE80211_DPRINTF
	movq	(%rbx), %rax
	movq	_IEEE80211_S_CSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_csa_completeswitch   ## TAILCALL
LBB0_1:
	movq	16(%rbx), %rax
	incq	%rax
	movq	%rax, 16(%rbx)
	cmpq	24(%rbx), %rax
	jge	LBB0_2
## %bb.7:
	movq	40(%rbx), %rdi
	movl	56(%rbx), %esi
	movl	8(%rdi), %ecx
	movl	(%rdi), %r9d
	movl	4(%rdi), %r8d
	movl	%ecx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_send_probereq        ## TAILCALL
LBB0_2:
	leaq	52(%rbx), %rdi
	callq	_callout_stop
	movq	$0, 16(%rbx)
	incl	48(%rbx)
	movq	32(%rbx), %rax
	movq	_IEEE80211_ROAMING_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_IEEE80211_S_ASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	jmp	LBB0_4
LBB0_5:
	movq	_IEEE80211_S_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_new_state            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_F_SCAN,4,2           ## @IEEE80211_F_SCAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scanning"

	.comm	_IEEE80211_S_RUN,8,3            ## @IEEE80211_S_RUN
	.comm	_ieee80211_state_name,8,3       ## @ieee80211_state_name
	.comm	_IEEE80211_MSG_STATE,4,2        ## @IEEE80211_MSG_STATE
	.comm	_IEEE80211_MSG_DEBUG,4,2        ## @IEEE80211_MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"beacon miss, mode %s state %s\n"

	.comm	_ieee80211_opmode_name,8,3      ## @ieee80211_opmode_name
	.comm	_IEEE80211_S_CSA,8,3            ## @IEEE80211_S_CSA
	.comm	_IEEE80211_ROAMING_AUTO,8,3     ## @IEEE80211_ROAMING_AUTO
	.comm	_IEEE80211_S_ASSOC,4,2          ## @IEEE80211_S_ASSOC
	.comm	_IEEE80211_S_SCAN,4,2           ## @IEEE80211_S_SCAN
	.comm	_IEEE80211_CHAN_TURBO,4,2       ## @IEEE80211_CHAN_TURBO
	.comm	_IEEE80211_NODE_TURBOP,4,2      ## @IEEE80211_NODE_TURBOP
	.no_dead_strip	_sta_beacon_miss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sta_beacon_miss
_sta_beacon_miss:                       ; @sta_beacon_miss
	.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, x0
	ldr	x20, [x0, #64]
	mov	x0, x20
	bl	_IEEE80211_LOCK_ASSERT
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IEEE80211_F_SCAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_F_SCAN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _IEEE80211_S_RUN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_S_RUN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, hs
Lloh8:
	adrp	x21, _ieee80211_state_name@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ieee80211_state_name@GOTPAGEOFF]
	ldr	x9, [x21]
	ldrsw	x1, [x9, x8, lsl #2]
	bl	_KASSERT
Lloh10:
	adrp	x8, _IEEE80211_MSG_STATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IEEE80211_MSG_STATE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _IEEE80211_MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IEEE80211_MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh16:
	adrp	x8, _ieee80211_opmode_name@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ieee80211_opmode_name@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldp	x10, x9, [x19]
	ldr	w3, [x8, x9, lsl #2]
	ldr	x8, [x21]
	ldr	w4, [x8, x10, lsl #2]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IEEE80211_DPRINTF
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _IEEE80211_S_CSA@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_S_CSA@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, 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	_ieee80211_csa_completeswitch
LBB0_2:
	ldp	x8, x9, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.3:
	ldr	x0, [x19, #40]
	ldr	w1, [x19, #56]
	ldp	w4, w2, [x0, #4]
	ldr	w5, [x0]
	mov	x3, x2
	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	_ieee80211_send_probereq
LBB0_4:
	add	x0, x19, #52
	bl	_callout_stop
	str	xzr, [x19, #16]
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
	ldr	x8, [x19, #32]
Lloh24:
	adrp	x9, _IEEE80211_ROAMING_AUTO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IEEE80211_ROAMING_AUTO@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh27:
	adrp	x8, _IEEE80211_S_ASSOC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IEEE80211_S_ASSOC@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	b	LBB0_7
LBB0_6:
Lloh30:
	adrp	x8, _IEEE80211_S_SCAN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IEEE80211_S_SCAN@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
LBB0_7:
	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	_ieee80211_new_state
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_F_SCAN,4,2           ; @IEEE80211_F_SCAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scanning"

	.comm	_IEEE80211_S_RUN,8,3            ; @IEEE80211_S_RUN
	.comm	_ieee80211_state_name,8,3       ; @ieee80211_state_name
	.comm	_IEEE80211_MSG_STATE,4,2        ; @IEEE80211_MSG_STATE
	.comm	_IEEE80211_MSG_DEBUG,4,2        ; @IEEE80211_MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"beacon miss, mode %s state %s\n"

	.comm	_ieee80211_opmode_name,8,3      ; @ieee80211_opmode_name
	.comm	_IEEE80211_S_CSA,8,3            ; @IEEE80211_S_CSA
	.comm	_IEEE80211_ROAMING_AUTO,8,3     ; @IEEE80211_ROAMING_AUTO
	.comm	_IEEE80211_S_ASSOC,4,2          ; @IEEE80211_S_ASSOC
	.comm	_IEEE80211_S_SCAN,4,2           ; @IEEE80211_S_SCAN
	.comm	_IEEE80211_CHAN_TURBO,4,2       ; @IEEE80211_CHAN_TURBO
	.comm	_IEEE80211_NODE_TURBOP,4,2      ; @IEEE80211_NODE_TURBOP
	.no_dead_strip	_sta_beacon_miss
.subsections_via_symbols
