	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_start_radar_detection
_ieee80211_start_radar_detection:       ## @ieee80211_start_radar_detection
	.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
	movq	%rdx, %r14
	movq	%rsi, %rdi
	callq	_IEEE80211_DEV_TO_SUB_IF
	movq	%rax, %r15
	movq	8(%rax), %r12
	leaq	24(%r12), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	cmpq	$0, 16(%r12)
	je	LBB0_3
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_IEEE80211_SMPS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movl	8(%r12), %eax
	movl	%eax, 16(%r15)
	movl	$1, (%r15)
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_IEEE80211_CHANCTX_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ieee80211_vif_use_channel
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	movq	_IEEE80211_DFS_MIN_CAC_TIME_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	8(%r15), %rdi
	addq	$4, %r15
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ieee80211_queue_delayed_work
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IEEE80211_SMPS_OFF,4,2         ## @IEEE80211_SMPS_OFF
	.comm	_IEEE80211_CHANCTX_SHARED,4,2   ## @IEEE80211_CHANCTX_SHARED
	.comm	_IEEE80211_DFS_MIN_CAC_TIME_MS,4,2 ## @IEEE80211_DFS_MIN_CAC_TIME_MS
	.no_dead_strip	_ieee80211_start_radar_detection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_start_radar_detection
_ieee80211_start_radar_detection:       ; @ieee80211_start_radar_detection
	.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	x20, x2
	mov	x0, x1
	bl	_IEEE80211_DEV_TO_SUB_IF
	mov	x19, x0
	ldr	x21, [x0, #8]
	add	x0, x21, #24
	bl	_list_empty
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	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
	ret
LBB0_4:
Lloh3:
	adrp	x8, _IEEE80211_SMPS_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_SMPS_OFF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	stp	w9, w8, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
	add	x21, x21, #4
	mov	x0, x21
	bl	_mutex_lock
Lloh6:
	adrp	x8, _IEEE80211_CHANCTX_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_CHANCTX_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ieee80211_vif_use_channel
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	cbnz	w20, LBB0_3
; %bb.5:
Lloh9:
	adrp	x8, _IEEE80211_DFS_MIN_CAC_TIME_MS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_DFS_MIN_CAC_TIME_MS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	ldr	x0, [x19, #8]
	add	x1, x19, #4
	bl	_ieee80211_queue_delayed_work
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IEEE80211_SMPS_OFF,4,2         ; @IEEE80211_SMPS_OFF
	.comm	_IEEE80211_CHANCTX_SHARED,4,2   ; @IEEE80211_CHANCTX_SHARED
	.comm	_IEEE80211_DFS_MIN_CAC_TIME_MS,4,2 ; @IEEE80211_DFS_MIN_CAC_TIME_MS
	.no_dead_strip	_ieee80211_start_radar_detection
.subsections_via_symbols
