	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7615_regd_notifier
_mt7615_regd_notifier:                  ## @mt7615_regd_notifier
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_wiphy_to_ieee80211_hw
	movq	(%rax), %rbx
	movq	(%r14), %rax
	cmpq	(%rbx), %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, (%rbx)
	movq	8(%rbx), %rax
	movq	_IEEE80211_CHAN_RADAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_mt7615_dfs_stop_radar_detector
	movq	(%r14), %rax
	movq	_NL80211_DFS_UNSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	movq	_RDD_CAC_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_HW_RDD0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MT_RX_SEL0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mt7615_mcu_rdd_cmd             ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mt7615_dfs_start_radar_detector ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_RADAR,4,2       ## @IEEE80211_CHAN_RADAR
	.comm	_NL80211_DFS_UNSET,8,3          ## @NL80211_DFS_UNSET
	.comm	_RDD_CAC_END,4,2                ## @RDD_CAC_END
	.comm	_MT_HW_RDD0,4,2                 ## @MT_HW_RDD0
	.comm	_MT_RX_SEL0,4,2                 ## @MT_RX_SEL0
	.no_dead_strip	_mt7615_regd_notifier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7615_regd_notifier
_mt7615_regd_notifier:                  ; @mt7615_regd_notifier
	.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	x20, x1
	bl	_wiphy_to_ieee80211_hw
	ldr	x19, [x0]
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	str	x8, [x19]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _IEEE80211_CHAN_RADAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_CHAN_RADAR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_mt7615_dfs_stop_radar_detector
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _NL80211_DFS_UNSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_DFS_UNSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _RDD_CAC_END@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RDD_CAC_END@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MT_HW_RDD0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_HW_RDD0@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _MT_RX_SEL0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_RX_SEL0@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mt7615_mcu_rdd_cmd
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mt7615_dfs_start_radar_detector
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_RADAR,4,2       ; @IEEE80211_CHAN_RADAR
	.comm	_NL80211_DFS_UNSET,8,3          ; @NL80211_DFS_UNSET
	.comm	_RDD_CAC_END,4,2                ; @RDD_CAC_END
	.comm	_MT_HW_RDD0,4,2                 ; @MT_HW_RDD0
	.comm	_MT_RX_SEL0,4,2                 ; @MT_RX_SEL0
	.no_dead_strip	_mt7615_regd_notifier
.subsections_via_symbols
