	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x2_set_channel
_mt76x2_set_channel:                    ## @mt76x2_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	%rsi, %r13
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	callq	_tasklet_disable
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_tasklet_disable
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_MT76_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r12
	movq	%r12, %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_mt76_set_channel
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mt76x2_mac_stop
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_mt76x2_phy_set_channel
	movl	%eax, %r13d
	movq	_MT_CH_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt76_rr
	movq	_MT_CH_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt76_rr
	movq	%rbx, %rdi
	callq	_mt76x02_dfs_init_params
	movq	%rbx, %rdi
	callq	_mt76x2_mac_resume
	movq	_MT76_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_tasklet_enable
	movq	%rbx, %rdi
	callq	_tasklet_enable
	movq	%rbx, %rdi
	callq	_mt76_txq_schedule_all
	movl	%r13d, %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	_MT_CH_IDLE,4,2                 ## @MT_CH_IDLE
	.comm	_MT_CH_BUSY,4,2                 ## @MT_CH_BUSY
	.no_dead_strip	_mt76x2_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x2_set_channel
_mt76x2_set_channel:                    ; @mt76x2_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	x21, x1
	mov	x19, x0
	add	x0, x0, #16
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	bl	_tasklet_disable
	add	x20, x19, #12
	mov	x0, x20
	bl	_tasklet_disable
	add	x22, x19, #4
	mov	x0, x22
	bl	_mutex_lock
Lloh0:
	adrp	x24, _MT76_RESET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MT76_RESET@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x23, x19, #8
	mov	x1, x23
	bl	_set_bit
	mov	x0, x19
	bl	_mt76_set_channel
	mov	x0, x19
	mov	w1, #1
	bl	_mt76x2_mac_stop
	mov	x0, x19
	mov	x1, x21
	bl	_mt76x2_phy_set_channel
	mov	x21, x0
Lloh2:
	adrp	x8, _MT_CH_IDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_CH_IDLE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76_rr
Lloh5:
	adrp	x8, _MT_CH_BUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_CH_BUSY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76_rr
	mov	x0, x19
	bl	_mt76x02_dfs_init_params
	mov	x0, x19
	bl	_mt76x2_mac_resume
	ldr	w0, [x24]
	mov	x1, x23
	bl	_clear_bit
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x20
	bl	_tasklet_enable
	mov	x0, x19
	bl	_tasklet_enable
	mov	x0, x19
	bl	_mt76_txq_schedule_all
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MT76_RESET,4,2                 ; @MT76_RESET
	.comm	_MT_CH_IDLE,4,2                 ; @MT_CH_IDLE
	.comm	_MT_CH_BUSY,4,2                 ; @MT_CH_BUSY
	.no_dead_strip	_mt76x2_set_channel
.subsections_via_symbols
