	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x0_set_channel
_mt76x0_set_channel:                    ## @mt76x0_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$8, %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mt76x02_pre_tbtt_enable
	movq	%rbx, %rdi
	callq	_mt76_is_mmio
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	4(%rbx), %rdi
	callq	_tasklet_disable
LBB0_2:
	movq	%rbx, %rdi
	callq	_mt76_set_channel
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mt76x0_phy_set_channel
	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_edcca_init
	movq	%rbx, %rdi
	callq	_mt76_is_mmio
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_mt76x02_dfs_init_params
	leaq	4(%rbx), %rdi
	callq	_tasklet_enable
LBB0_4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mt76x02_pre_tbtt_enable
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mt76_txq_schedule_all          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_CH_IDLE,4,2                 ## @MT_CH_IDLE
	.comm	_MT_CH_BUSY,4,2                 ## @MT_CH_BUSY
	.no_dead_strip	_mt76x0_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x0_set_channel
_mt76x0_set_channel:                    ; @mt76x0_set_channel
	.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
	mov	x19, x0
	add	x0, x0, #8
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	mov	w1, #0
	bl	_mt76x02_pre_tbtt_enable
	mov	x0, x19
	bl	_mt76_is_mmio
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #4
	bl	_tasklet_disable
LBB0_2:
	mov	x0, x19
	bl	_mt76_set_channel
	mov	x0, x19
	mov	x1, x20
	bl	_mt76x0_phy_set_channel
Lloh0:
	adrp	x8, _MT_CH_IDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_CH_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76_rr
Lloh3:
	adrp	x8, _MT_CH_BUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_CH_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76_rr
	mov	x0, x19
	bl	_mt76x02_edcca_init
	mov	x0, x19
	bl	_mt76_is_mmio
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mt76x02_dfs_init_params
	add	x0, x19, #4
	bl	_tasklet_enable
LBB0_4:
	mov	x0, x19
	mov	w1, #1
	bl	_mt76x02_pre_tbtt_enable
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mt76_txq_schedule_all
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_CH_IDLE,4,2                 ; @MT_CH_IDLE
	.comm	_MT_CH_BUSY,4,2                 ; @MT_CH_BUSY
	.no_dead_strip	_mt76x0_set_channel
.subsections_via_symbols
