	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_mgd_probe_ap
_ieee80211_mgd_probe_ap:                ## @ieee80211_mgd_probe_ap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_ieee80211_sdata_running
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, 32(%rbx)
	je	LBB0_10
## %bb.2:
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rdi
	cmpq	$0, 16(%rdi)
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 8(%rdi)
	je	LBB0_5
LBB0_4:
	addq	$4, %rdi
	callq	_mutex_unlock
LBB0_10:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.7:
	movq	_beacon_loss_count@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlme_dbg_ratelimited
	leaq	8(%rbx), %rdi
	movq	_NL80211_CQM_RSSI_BEACON_LOSS_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ieee80211_cqm_rssi_notify
	movl	16(%rbx), %r15d
	movq	_IEEE80211_STA_BEACON_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IEEE80211_STA_CONNECTION_POLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	%eax, %r12d
	orl	%r15d, %eax
	movl	%eax, 16(%rbx)
	movq	(%rbx), %rdi
	jmp	LBB0_8
LBB0_6:
	movl	16(%rbx), %r15d
	movq	_IEEE80211_STA_BEACON_POLL@GOTPCREL(%rip), %rax
	movq	_IEEE80211_STA_CONNECTION_POLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r12d
	orl	%ecx, %r12d
	orl	%r15d, %ecx
	movl	%ecx, 16(%rbx)
LBB0_8:
	addq	$4, %rdi
	callq	_mutex_unlock
	testl	%r15d, %r12d
	jne	LBB0_10
## %bb.9:
	movq	(%rbx), %rdi
	callq	_mutex_lock
	movq	(%rbx), %rdi
	movl	$-1, %esi
	callq	_ieee80211_recalc_ps
	movq	(%rbx), %rdi
	callq	_mutex_unlock
	movq	$0, 24(%rbx)
	movq	%rbx, %rdi
	callq	_ieee80211_mgd_probe_ap_send
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"detected beacon loss from AP (missed %d beacons) - probing\n"

	.comm	_beacon_loss_count,4,2          ## @beacon_loss_count
	.comm	_NL80211_CQM_RSSI_BEACON_LOSS_EVENT,4,2 ## @NL80211_CQM_RSSI_BEACON_LOSS_EVENT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IEEE80211_STA_BEACON_POLL,4,2  ## @IEEE80211_STA_BEACON_POLL
	.comm	_IEEE80211_STA_CONNECTION_POLL,4,2 ## @IEEE80211_STA_CONNECTION_POLL
	.no_dead_strip	_ieee80211_mgd_probe_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_mgd_probe_ap
_ieee80211_mgd_probe_ap:                ; @ieee80211_mgd_probe_ap
	.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, x1
	mov	x20, x0
	bl	_ieee80211_sdata_running
	cbz	w0, LBB0_6
; %bb.1:
	add	x19, x20, #20
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	add	x0, x8, #4
	bl	_mutex_lock
	ldr	x8, [x20]
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_4
; %bb.3:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
LBB0_4:
	add	x0, x8, #4
	bl	_mutex_unlock
LBB0_5:
	mov	x0, 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	_mutex_unlock
LBB0_6:
	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_7:
	cbz	w21, LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _beacon_loss_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, _beacon_loss_count@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlme_dbg_ratelimited
	add	x0, x20, #8
Lloh5:
	adrp	x8, _NL80211_CQM_RSSI_BEACON_LOSS_EVENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NL80211_CQM_RSSI_BEACON_LOSS_EVENT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_ieee80211_cqm_rssi_notify
	ldr	w8, [x20, #16]
Lloh11:
	adrp	x9, _IEEE80211_STA_BEACON_POLL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_STA_BEACON_POLL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _IEEE80211_STA_CONNECTION_POLL@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IEEE80211_STA_CONNECTION_POLL@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w10, w10, w9
	and	w21, w10, w8
	orr	w8, w9, w8
	str	w8, [x20, #16]
	ldr	x8, [x20]
	b	LBB0_10
LBB0_9:
	ldr	w9, [x20, #16]
Lloh17:
	adrp	x10, _IEEE80211_STA_BEACON_POLL@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IEEE80211_STA_BEACON_POLL@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _IEEE80211_STA_CONNECTION_POLL@GOTPAGE
Lloh21:
	ldr	x11, [x11, _IEEE80211_STA_CONNECTION_POLL@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	orr	w10, w11, w10
	and	w21, w10, w9
	orr	w9, w11, w9
	str	w9, [x20, #16]
LBB0_10:
	add	x0, x8, #4
	bl	_mutex_unlock
	cbnz	w21, LBB0_5
; %bb.11:
	ldr	x0, [x20]
	bl	_mutex_lock
	ldr	x0, [x20]
	mov	w1, #-1
	bl	_ieee80211_recalc_ps
	ldr	x0, [x20]
	bl	_mutex_unlock
	str	xzr, [x20, #24]
	mov	x0, x20
	bl	_ieee80211_mgd_probe_ap_send
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"detected beacon loss from AP (missed %d beacons) - probing\n"

	.comm	_beacon_loss_count,4,2          ; @beacon_loss_count
	.comm	_NL80211_CQM_RSSI_BEACON_LOSS_EVENT,4,2 ; @NL80211_CQM_RSSI_BEACON_LOSS_EVENT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IEEE80211_STA_BEACON_POLL,4,2  ; @IEEE80211_STA_BEACON_POLL
	.comm	_IEEE80211_STA_CONNECTION_POLL,4,2 ; @IEEE80211_STA_CONNECTION_POLL
	.no_dead_strip	_ieee80211_mgd_probe_ap
.subsections_via_symbols
