	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_phy_con_cal_onoff      ## -- Begin function mt7601u_phy_con_cal_onoff
	.p2align	4, 0x90
_mt7601u_phy_con_cal_onoff:             ## @mt7601u_phy_con_cal_onoff
	.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	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, (%rsi)
	jne	LBB0_2
## %bb.1:
	leaq	4(%rbx), %rdi
	callq	_cancel_delayed_work_sync
LBB0_2:
	leaq	40(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movl	52(%rbx), %edi
	movl	8(%r14), %esi
	callq	_ether_addr_copy
	leaq	48(%rbx), %rdi
	callq	_ewma_rssi_init
	movq	_MT_FREQ_OFFSET_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	32(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	movl	$0, (%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	24(%rbx), %edi
	addq	$4, %rbx
	movq	_MT_FREQ_CAL_INIT_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_queue_delayed_work   ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_FREQ_OFFSET_INVALID,4,2     ## @MT_FREQ_OFFSET_INVALID
	.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_con_cal_onoff      ; -- Begin function mt7601u_phy_con_cal_onoff
	.p2align	2
_mt7601u_phy_con_cal_onoff:             ; @mt7601u_phy_con_cal_onoff
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	cbnz	x8, LBB0_2
; %bb.1:
	add	x0, x19, #4
	bl	_cancel_delayed_work_sync
LBB0_2:
	add	x21, x19, #40
	mov	x0, x21
	bl	_spin_lock_bh
	ldr	w0, [x19, #52]
	ldr	w1, [x20, #8]
	bl	_ether_addr_copy
	add	x0, x19, #48
	bl	_ewma_rssi_init
Lloh0:
	adrp	x8, _MT_FREQ_OFFSET_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_FREQ_OFFSET_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	mov	x0, x21
	bl	_spin_unlock_bh
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x8, [x20]
	str	x8, [x19, #8]
	str	wzr, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #24]
	add	x1, x19, #4
Lloh3:
	adrp	x8, _MT_FREQ_CAL_INIT_DELAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_FREQ_CAL_INIT_DELAY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	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	_ieee80211_queue_delayed_work
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_FREQ_OFFSET_INVALID,4,2     ; @MT_FREQ_OFFSET_INVALID
	.comm	_MT_FREQ_CAL_INIT_DELAY,4,2     ; @MT_FREQ_CAL_INIT_DELAY
.subsections_via_symbols
