	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7615_dfs_stop_radar_detector ## -- Begin function mt7615_dfs_stop_radar_detector
	.p2align	4, 0x90
_mt7615_dfs_stop_radar_detector:        ## @mt7615_dfs_stop_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_RDD_STOP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MT_HW_RDD0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MT_RX_SEL0@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	xorl	%r8d, %r8d
	callq	_mt7615_mcu_rdd_cmd
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	(%rbx), %rcx
	movq	_NL80211_CHAN_WIDTH_160@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.2:
	movq	_NL80211_CHAN_WIDTH_80P80@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r14), %esi
	movq	_MT_HW_RDD1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt7615_mcu_rdd_cmd             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RDD_STOP,4,2                   ## @RDD_STOP
	.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_stop_radar_detector ; -- Begin function mt7615_dfs_stop_radar_detector
	.p2align	2
_mt7615_dfs_stop_radar_detector:        ; @mt7615_dfs_stop_radar_detector
	.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	x19, x0
Lloh0:
	adrp	x20, _RDD_STOP@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RDD_STOP@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _MT_HW_RDD0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_HW_RDD0@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x21, _MT_RX_SEL0@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MT_RX_SEL0@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	w4, #0
	bl	_mt7615_mcu_rdd_cmd
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _NL80211_CHAN_WIDTH_160@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NL80211_CHAN_WIDTH_160@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _NL80211_CHAN_WIDTH_80P80@GOTPAGE
Lloh11:
	ldr	x10, [x10, _NL80211_CHAN_WIDTH_80P80@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x20]
Lloh13:
	adrp	x8, _MT_HW_RDD1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MT_HW_RDD1@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w4, #0
	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
	b	_mt7615_mcu_rdd_cmd
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RDD_STOP,4,2                   ; @RDD_STOP
	.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
