	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7615_dfs_start_radar_detector ## -- Begin function mt7615_dfs_start_radar_detector
	.p2align	4, 0x90
_mt7615_dfs_start_radar_detector:       ## @mt7615_dfs_start_radar_detector
	.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	%rdi, %rbx
	movq	_RDD_CAC_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_HW_RDD0@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_MT_RX_SEL0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_mt7615_mcu_rdd_cmd
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_mt7615_dfs_start_rdd
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	(%rbx), %rax
	movq	_NL80211_CHAN_WIDTH_160@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_NL80211_CHAN_WIDTH_80P80@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movq	_MT_HW_RDD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt7615_dfs_start_rdd
	testl	%eax, %eax
	js	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDD_CAC_START,4,2              ## @RDD_CAC_START
	.comm	_MT_HW_RDD0,4,2                 ## @MT_HW_RDD0
	.comm	_MT_RX_SEL0,4,2                 ## @MT_RX_SEL0
	.comm	_NL80211_CHAN_WIDTH_160,8,3     ## @NL80211_CHAN_WIDTH_160
	.comm	_NL80211_CHAN_WIDTH_80P80,8,3   ## @NL80211_CHAN_WIDTH_80P80
	.comm	_MT_HW_RDD1,4,2                 ## @MT_HW_RDD1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7615_dfs_start_radar_detector ; -- Begin function mt7615_dfs_start_radar_detector
	.p2align	2
_mt7615_dfs_start_radar_detector:       ; @mt7615_dfs_start_radar_detector
	.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
Lloh0:
	adrp	x8, _RDD_CAC_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDD_CAC_START@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x20, _MT_HW_RDD0@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MT_HW_RDD0@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh5:
	adrp	x8, _MT_RX_SEL0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_RX_SEL0@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	w4, #0
	bl	_mt7615_mcu_rdd_cmd
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7615_dfs_start_rdd
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _NL80211_CHAN_WIDTH_160@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_CHAN_WIDTH_160@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _NL80211_CHAN_WIDTH_80P80@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NL80211_CHAN_WIDTH_80P80@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _MT_HW_RDD1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MT_HW_RDD1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt7615_dfs_start_rdd
	tbnz	w0, #31, LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RDD_CAC_START,4,2              ; @RDD_CAC_START
	.comm	_MT_HW_RDD0,4,2                 ; @MT_HW_RDD0
	.comm	_MT_RX_SEL0,4,2                 ; @MT_RX_SEL0
	.comm	_NL80211_CHAN_WIDTH_160,8,3     ; @NL80211_CHAN_WIDTH_160
	.comm	_NL80211_CHAN_WIDTH_80P80,8,3   ; @NL80211_CHAN_WIDTH_80P80
	.comm	_MT_HW_RDD1,4,2                 ; @MT_HW_RDD1
.subsections_via_symbols
