	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_phy_set_channel        ## -- Begin function mt7601u_phy_set_channel
	.p2align	4, 0x90
_mt7601u_phy_set_channel:               ## @mt7601u_phy_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	20(%rdi), %r14
	movq	%r14, %rdi
	callq	_cancel_delayed_work_sync
	movq	%r12, %rdi
	callq	_cancel_delayed_work_sync
	leaq	28(%r12), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	___mt7601u_phy_set_channel
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.1:
	movq	_MT7601U_STATE_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	16(%r12), %edi
	movq	_MT_CALIBRATE_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_ieee80211_queue_delayed_work
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.3:
	movl	16(%r12), %edi
	movq	_MT_FREQ_CAL_INIT_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_ieee80211_queue_delayed_work
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT7601U_STATE_SCANNING,4,2     ## @MT7601U_STATE_SCANNING
	.comm	_MT_CALIBRATE_INTERVAL,4,2      ## @MT_CALIBRATE_INTERVAL
	.comm	_MT_FREQ_CAL_INIT_DELAY,4,2     ## @MT_FREQ_CAL_INIT_DELAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_phy_set_channel        ; -- Begin function mt7601u_phy_set_channel
	.p2align	2
_mt7601u_phy_set_channel:               ; @mt7601u_phy_set_channel
	.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	x21, x1
	mov	x19, x0
	add	x20, x0, #20
	mov	x0, x20
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	bl	_cancel_delayed_work_sync
	add	x22, x19, #28
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x21
	bl	___mt7601u_phy_set_channel
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	cbnz	w21, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MT7601U_STATE_SCANNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT7601U_STATE_SCANNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x8, _MT_CALIBRATE_INTERVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_CALIBRATE_INTERVAL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_ieee80211_queue_delayed_work
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x8, _MT_FREQ_CAL_INIT_DELAY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_FREQ_CAL_INIT_DELAY@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_ieee80211_queue_delayed_work
LBB0_4:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MT7601U_STATE_SCANNING,4,2     ; @MT7601U_STATE_SCANNING
	.comm	_MT_CALIBRATE_INTERVAL,4,2      ; @MT_CALIBRATE_INTERVAL
	.comm	_MT_FREQ_CAL_INIT_DELAY,4,2     ; @MT_FREQ_CAL_INIT_DELAY
.subsections_via_symbols
