	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7615_set_channel
_mt7615_set_channel:                    ## @mt7615_set_channel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_cancel_delayed_work_sync
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_MT76_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	8(%rbx), %r12
	movq	%r12, %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_mt7615_dfs_check_channel
	movq	%rbx, %rdi
	callq	_mt76_set_channel
	movq	%rbx, %rdi
	callq	_mt7615_mcu_set_channel
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_mt7615_dfs_init_radar_detector
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mt7615_mac_cca_stats_reset
	xorl	%eax, %eax
	callq	_ktime_get_boottime
	movl	%eax, 12(%rbx)
	xorl	%edi, %edi
	callq	_MT_MIB_SDR16
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
LBB0_2:
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_mt76_txq_schedule_all
	movq	%rbx, %rdi
	callq	_mt76_hw
	movq	_MT7615_WATCHDOG_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_ieee80211_queue_delayed_work
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT76_RESET,4,2                 ## @MT76_RESET
	.comm	_MT7615_WATCHDOG_TIME,4,2       ## @MT7615_WATCHDOG_TIME
	.no_dead_strip	_mt7615_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7615_set_channel
_mt7615_set_channel:                    ; @mt7615_set_channel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_cancel_delayed_work_sync
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x23, _MT76_RESET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MT76_RESET@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x21, x19, #8
	mov	x1, x21
	bl	_set_bit
	mov	x0, x19
	bl	_mt7615_dfs_check_channel
	mov	x0, x19
	bl	_mt76_set_channel
	mov	x0, x19
	bl	_mt7615_mcu_set_channel
	mov	x22, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mt7615_dfs_init_radar_detector
	mov	x22, x0
	mov	x0, x19
	bl	_mt7615_mac_cca_stats_reset
	bl	_ktime_get_boottime
	str	w0, [x19, #12]
	mov	w0, #0
	bl	_MT_MIB_SDR16
	mov	x1, x0
	mov	x0, x19
	bl	_mt76_rr
LBB0_2:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_mt76_txq_schedule_all
	mov	x0, x19
	bl	_mt76_hw
Lloh2:
	adrp	x8, _MT7615_WATCHDOG_TIME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT7615_WATCHDOG_TIME@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_ieee80211_queue_delayed_work
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MT76_RESET,4,2                 ; @MT76_RESET
	.comm	_MT7615_WATCHDOG_TIME,4,2       ; @MT7615_WATCHDOG_TIME
	.no_dead_strip	_mt7615_set_channel
.subsections_via_symbols
