	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_adhoc_check
_ipw_adhoc_check:                       ## @ipw_adhoc_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movslq	20(%rdi), %rax
	leal	1(%rax), %edx
	movl	%edx, 20(%rdi)
	cmpq	%rax, (%rdi)
	jge	LBB0_3
## %bb.1:
	movq	_CFG_ADHOC_PERSIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_2
LBB0_3:
	movl	12(%rbx), %edi
	addq	$16, %rbx
	callq	_le16_to_cpu
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_schedule_delayed_work          ## TAILCALL
LBB0_2:
	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
	movq	_IPW_DL_ASSOC@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_IPW_DEBUG
	movq	%rbx, %rdi
	callq	_ipw_remove_current_network
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ipw_disassociate               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_ADHOC_PERSIST,4,2          ## @CFG_ADHOC_PERSIST
	.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"

	.no_dead_strip	_ipw_adhoc_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_adhoc_check
_ipw_adhoc_check:                       ; @ipw_adhoc_check
	.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	x19, x0
	ldrsw	x8, [x0, #20]
	add	w2, w8, #1
	str	w2, [x0, #20]
	ldr	x9, [x0]
	cmp	x9, x8
	b.ge	LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _CFG_ADHOC_PERSIST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CFG_ADHOC_PERSIST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	add	x20, x19, #16
	ldr	w0, [x19, #12]
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_schedule_delayed_work
LBB0_3:
Lloh3:
	adrp	x8, _IPW_DL_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPW_DL_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IPW_DL_NOTIF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPW_DL_NOTIF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _IPW_DL_STATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPW_DL_STATE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _IPW_DL_ASSOC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IPW_DL_ASSOC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w0, w8, w9
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IPW_DEBUG
	mov	x0, x19
	bl	_ipw_remove_current_network
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ipw_disassociate
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_ADHOC_PERSIST,4,2          ; @CFG_ADHOC_PERSIST
	.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"

	.no_dead_strip	_ipw_adhoc_check
.subsections_via_symbols
