	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_handle_missed_beacon
_ipw_handle_missed_beacon:              ## @ipw_handle_missed_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	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	movl	4(%rdi), %ecx
	movl	8(%rdi), %eax
	cmpl	%esi, %ecx
	jge	LBB0_5
## %bb.1:
	movq	_STATUS_ASSOCIATED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.2:
	movq	_IPW_DL_INFO@GOTPCREL(%rip), %r15
	movq	_IPW_DL_NOTIF@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	orl	(%r15), %edi
	movq	_IPW_DL_STATE@GOTPCREL(%rip), %r13
	orl	(%r13), %edi
	movq	_IPW_DL_ASSOC@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_IPW_DEBUG
	movq	_STATUS_ROAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	_STATUS_SCANNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	orl	(%r15), %edi
	orl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_IPW_DEBUG
	leaq	16(%rbx), %rdi
	callq	_schedule_work
LBB0_4:
	addq	$24, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
LBB0_5:
	movq	_STATUS_ROAMING@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.17:
	movq	_IPW_DL_NOTIF@GOTPCREL(%rip), %rax
	movq	_IPW_DL_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IPW_DEBUG                      ## TAILCALL
LBB0_6:
	movq	_roaming@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_12
## %bb.7:
	cmpl	%r14d, 12(%rbx)
	jge	LBB0_12
## %bb.8:
	cmpl	%r14d, %ecx
	jl	LBB0_12
## %bb.9:
	movq	_IPW_DL_NOTIF@GOTPCREL(%rip), %rax
	movq	_IPW_DL_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_IPW_DEBUG
	movl	8(%rbx), %ecx
	movl	(%r15), %eax
	testl	%ecx, %eax
	jne	LBB0_16
## %bb.10:
	orl	%ecx, %eax
	movl	%eax, 8(%rbx)
	movq	_STATUS_SCANNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_STATUS_SCANNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.13:
	movq	_IPW_MB_SCAN_CANCEL_THRESHOLD@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jge	LBB0_15
## %bb.14:
	movq	_IPW_DL_INFO@GOTPCREL(%rip), %rax
	movq	_IPW_DL_NOTIF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_IPW_DL_STATE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_IPW_DEBUG
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_schedule_work
LBB0_15:
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IPW_DEBUG_NOTIF                ## TAILCALL
LBB0_11:
	addq	$20, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_delayed_work          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_ASSOCIATED,4,2          ## @STATUS_ASSOCIATED
	.comm	_IPW_DL_INFO,4,2                ## @IPW_DL_INFO
	.comm	_IPW_DL_NOTIF,4,2               ## @IPW_DL_NOTIF
	.comm	_IPW_DL_STATE,4,2               ## @IPW_DL_STATE
	.comm	_IPW_DL_ASSOC,4,2               ## @IPW_DL_ASSOC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missed beacon: %d - disassociate\n"

	.comm	_STATUS_ROAMING,4,2             ## @STATUS_ROAMING
	.comm	_STATUS_SCANNING,4,2            ## @STATUS_SCANNING
L_.str.1:                               ## @.str.1
	.asciz	"Aborting scan with missed beacon.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Missed beacon: %d - roam in progress\n"

	.comm	_roaming,8,3                    ## @roaming
L_.str.3:                               ## @.str.3
	.asciz	"Missed beacon: %d - initiate roaming\n"

	.comm	_IPW_MB_SCAN_CANCEL_THRESHOLD,4,2 ## @IPW_MB_SCAN_CANCEL_THRESHOLD
L_.str.4:                               ## @.str.4
	.asciz	"Missed beacon: %d\n"

	.no_dead_strip	_ipw_handle_missed_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_handle_missed_beacon
_ipw_handle_missed_beacon:              ; @ipw_handle_missed_beacon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	str	w1, [x0]
	ldp	w9, w8, [x0, #4]
	cmp	w9, w1
	b.ge	LBB0_5
; %bb.1:
Lloh0:
	adrp	x10, _STATUS_ASSOCIATED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _STATUS_ASSOCIATED@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.2:
Lloh3:
	adrp	x21, _IPW_DL_INFO@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IPW_DL_INFO@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh5:
	adrp	x22, _IPW_DL_NOTIF@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IPW_DL_NOTIF@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh7:
	adrp	x23, _IPW_DL_STATE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _IPW_DL_STATE@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _IPW_DL_ASSOC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPW_DL_ASSOC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w8, w9
	str	x20, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IPW_DEBUG
Lloh14:
	adrp	x8, _STATUS_ROAMING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STATUS_ROAMING@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
Lloh17:
	adrp	x9, _STATUS_SCANNING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _STATUS_SCANNING@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w0, w8, w9
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG
	add	x0, x19, #16
	bl	_schedule_work
LBB0_4:
	add	x0, x19, #24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_schedule_work
LBB0_5:
Lloh22:
	adrp	x21, _STATUS_ROAMING@GOTPAGE
Lloh23:
	ldr	x21, [x21, _STATUS_ROAMING@GOTPAGEOFF]
	ldr	w10, [x21]
	tst	w10, w8
	b.eq	LBB0_8
; %bb.6:
Lloh24:
	adrp	x8, _IPW_DL_NOTIF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IPW_DL_NOTIF@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _IPW_DL_STATE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IPW_DL_STATE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w0, w9, w8
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_IPW_DEBUG
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh32:
	adrp	x10, _roaming@GOTPAGE
Lloh33:
	ldr	x10, [x10, _roaming@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
	cbz	x10, LBB0_10
; %bb.9:
	ldr	w10, [x19, #12]
	cmp	w10, w20
	ccmp	w9, w20, #8, lt
	b.ge	LBB0_13
LBB0_10:
Lloh35:
	adrp	x9, _STATUS_SCANNING@GOTPAGE
Lloh36:
	ldr	x9, [x9, _STATUS_SCANNING@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh38:
	adrp	x9, _IPW_MB_SCAN_CANCEL_THRESHOLD@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IPW_MB_SCAN_CANCEL_THRESHOLD@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, w20, #0, ne
	b.ge	LBB0_12
; %bb.11:
Lloh41:
	adrp	x8, _IPW_DL_INFO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IPW_DL_INFO@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _IPW_DL_NOTIF@GOTPAGE
Lloh45:
	ldr	x9, [x9, _IPW_DL_NOTIF@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh47:
	adrp	x9, _IPW_DL_STATE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _IPW_DL_STATE@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w0, w8, w9
Lloh50:
	adrp	x1, l_.str.1@PAGE
Lloh51:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG
	add	x0, x19, #16
	bl	_schedule_work
LBB0_12:
Lloh52:
	adrp	x0, l_.str.4@PAGE
Lloh53:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_IPW_DEBUG_NOTIF
LBB0_13:
Lloh54:
	adrp	x8, _IPW_DL_NOTIF@GOTPAGE
Lloh55:
	ldr	x8, [x8, _IPW_DL_NOTIF@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	adrp	x9, _IPW_DL_STATE@GOTPAGE
Lloh58:
	ldr	x9, [x9, _IPW_DL_STATE@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	orr	w0, w9, w8
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh60:
	adrp	x1, l_.str.3@PAGE
Lloh61:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_IPW_DEBUG
	ldr	w8, [x19, #8]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.14:
	orr	w8, w9, w8
	str	w8, [x19, #8]
Lloh62:
	adrp	x9, _STATUS_SCANNING@GOTPAGE
Lloh63:
	ldr	x9, [x9, _STATUS_SCANNING@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.15:
	add	x0, x19, #20
	mov	w1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_schedule_delayed_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_ASSOCIATED,4,2          ; @STATUS_ASSOCIATED
	.comm	_IPW_DL_INFO,4,2                ; @IPW_DL_INFO
	.comm	_IPW_DL_NOTIF,4,2               ; @IPW_DL_NOTIF
	.comm	_IPW_DL_STATE,4,2               ; @IPW_DL_STATE
	.comm	_IPW_DL_ASSOC,4,2               ; @IPW_DL_ASSOC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missed beacon: %d - disassociate\n"

	.comm	_STATUS_ROAMING,4,2             ; @STATUS_ROAMING
	.comm	_STATUS_SCANNING,4,2            ; @STATUS_SCANNING
l_.str.1:                               ; @.str.1
	.asciz	"Aborting scan with missed beacon.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Missed beacon: %d - roam in progress\n"

	.comm	_roaming,8,3                    ; @roaming
l_.str.3:                               ; @.str.3
	.asciz	"Missed beacon: %d - initiate roaming\n"

	.comm	_IPW_MB_SCAN_CANCEL_THRESHOLD,4,2 ; @IPW_MB_SCAN_CANCEL_THRESHOLD
l_.str.4:                               ; @.str.4
	.asciz	"Missed beacon: %d\n"

	.no_dead_strip	_ipw_handle_missed_beacon
.subsections_via_symbols
