	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function contbgscan
_contbgscan:                            ## @contbgscan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rdi), %rcx
	movq	_IEEE80211_FEXT_BGSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_IEEE80211_F_CSAPENDING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%rcx)
	je	LBB0_2
LBB0_5:
	popq	%rbp
	retq
LBB0_2:
	movq	_IEEE80211_FEXT_SCAN_OFFLOAD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rdi)
	jne	LBB0_5
## %bb.3:
	movq	8(%rdi), %rdx
	movq	_IEEE80211_S_RUN@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_5
## %bb.4:
	movq	_ticks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rdi), %rsi
	addq	8(%rcx), %rsi
	movl	%eax, %edi
	callq	_ieee80211_time_after
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_FEXT_BGSCAN,4,2      ## @IEEE80211_FEXT_BGSCAN
	.comm	_IEEE80211_F_CSAPENDING,4,2     ## @IEEE80211_F_CSAPENDING
	.comm	_IEEE80211_FEXT_SCAN_OFFLOAD,4,2 ## @IEEE80211_FEXT_SCAN_OFFLOAD
	.comm	_IEEE80211_S_RUN,8,3            ## @IEEE80211_S_RUN
	.comm	_ticks,4,2                      ## @ticks
	.no_dead_strip	_contbgscan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function contbgscan
_contbgscan:                            ; @contbgscan
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0, #24]
	ldr	w8, [x9]
Lloh0:
	adrp	x10, _IEEE80211_FEXT_BGSCAN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IEEE80211_FEXT_BGSCAN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	w8, [x9, #4]
Lloh3:
	adrp	x10, _IEEE80211_F_CSAPENDING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_F_CSAPENDING@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x0]
Lloh6:
	adrp	x10, _IEEE80211_FEXT_SCAN_OFFLOAD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEEE80211_FEXT_SCAN_OFFLOAD@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x0, #8]
Lloh9:
	adrp	x10, _IEEE80211_S_RUN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IEEE80211_S_RUN@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _ticks@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x9, #8]
	ldr	x10, [x0, #16]
	add	x1, x10, x9
	mov	x0, x8
	bl	_ieee80211_time_after
	cmp	x0, #0
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_FEXT_BGSCAN,4,2      ; @IEEE80211_FEXT_BGSCAN
	.comm	_IEEE80211_F_CSAPENDING,4,2     ; @IEEE80211_F_CSAPENDING
	.comm	_IEEE80211_FEXT_SCAN_OFFLOAD,4,2 ; @IEEE80211_FEXT_SCAN_OFFLOAD
	.comm	_IEEE80211_S_RUN,8,3            ; @IEEE80211_S_RUN
	.comm	_ticks,4,2                      ; @ticks
	.no_dead_strip	_contbgscan
.subsections_via_symbols
