	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_start_radar_detection
_nl80211_start_radar_detection:         ## @nl80211_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r12
	movq	16(%r12), %r14
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	callq	_nl80211_parse_chandef
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movl	20(%r14), %edi
	leaq	-64(%rbp), %rsi
	callq	_cfg80211_chandef_dfs_required
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	je	LBB0_7
## %bb.8:
	movq	-64(%rbp), %rax
	movq	(%rax), %rax
	movq	_NL80211_DFS_USABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.9:
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.11:
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	16(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %r13
	movq	_CHAN_MODE_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-56(%rbp), %edi
	callq	_BIT
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_cfg80211_can_use_iftype_chan
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	8(%r15), %rax
	leaq	4(%r15), %rdi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	-64(%rbp), %rax
	movq	%rax, 8(%r14)
	movl	$1, (%r14)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
LBB0_14:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_15
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_DFS_USABLE,8,3         ## @NL80211_DFS_USABLE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_CHAN_MODE_SHARED,4,2           ## @CHAN_MODE_SHARED
	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_nl80211_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 nl80211_start_radar_detection
_nl80211_start_radar_detection:         ; @nl80211_start_radar_detection
	.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
	ldr	x8, [x1]
	ldp	x19, x21, [x8]
	ldr	x20, [x21, #16]
	mov	x2, sp
	mov	x0, x19
	bl	_nl80211_parse_chandef
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
	ldr	w0, [x20, #20]
	mov	x1, sp
	bl	_cfg80211_chandef_dfs_required
	mov	x22, x0
	tbnz	w0, #31, LBB0_13
; %bb.4:
	cbz	w22, LBB0_11
; %bb.5:
	ldr	x8, [sp]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _NL80211_DFS_USABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_DFS_USABLE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.7:
	mov	x0, x19
	bl	_mutex_lock
	ldr	w22, [x20, #16]
	ldr	x23, [sp]
Lloh5:
	adrp	x8, _CHAN_MODE_SHARED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHAN_MODE_SHARED@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
	ldr	w0, [sp, #8]
	bl	_BIT
	mov	x5, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	bl	_cfg80211_can_use_iftype_chan
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x0, x19, #4
	mov	x2, sp
	mov	x1, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	x8, [sp]
	str	x8, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #4]
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_13
LBB0_11:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	mov	x0, x22
	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_14:
Lloh13:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_DFS_USABLE,8,3         ; @NL80211_DFS_USABLE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_CHAN_MODE_SHARED,4,2           ; @CHAN_MODE_SHARED
	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_nl80211_start_radar_detection
.subsections_via_symbols
