	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fec_ptp_start_cyclecounter     ## -- Begin function fec_ptp_start_cyclecounter
	.p2align	4, 0x90
_fec_ptp_start_cyclecounter:            ## @fec_ptp_start_cyclecounter
	.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
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	idivl	(%rbx)
	movl	%eax, %r15d
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_FEC_T_INC_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	_FEC_ATIME_INC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_FEC_COUNTER_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FEC_ATIME_EVT_PERIOD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_writel
	movq	_FEC_T_CTRL_ENABLE@GOTPCREL(%rip), %rax
	movq	_FEC_T_CTRL_PERIOD_RST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_FEC_ATIME_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_writel
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_fec_ptp_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$31, %edi
	callq	_CLOCKSOURCE_MASK
	movl	%eax, 16(%rbx)
	movl	$31, 8(%rbx)
	movq	_FEC_CC_MULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	addq	$24, %rbx
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_ns
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_timecounter_init
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FEC_T_INC_OFFSET,4,2           ## @FEC_T_INC_OFFSET
	.comm	_FEC_ATIME_INC,8,3              ## @FEC_ATIME_INC
	.comm	_FEC_COUNTER_PERIOD,4,2         ## @FEC_COUNTER_PERIOD
	.comm	_FEC_ATIME_EVT_PERIOD,8,3       ## @FEC_ATIME_EVT_PERIOD
	.comm	_FEC_T_CTRL_ENABLE,4,2          ## @FEC_T_CTRL_ENABLE
	.comm	_FEC_T_CTRL_PERIOD_RST,4,2      ## @FEC_T_CTRL_PERIOD_RST
	.comm	_FEC_ATIME_CTRL,8,3             ## @FEC_ATIME_CTRL
	.comm	_fec_ptp_read,4,2               ## @fec_ptp_read
	.comm	_FEC_CC_MULT,4,2                ## @FEC_CC_MULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fec_ptp_start_cyclecounter     ; -- Begin function fec_ptp_start_cyclecounter
	.p2align	2
_fec_ptp_start_cyclecounter:            ; @fec_ptp_start_cyclecounter
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0]
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	add	x19, x0, #4
	sdiv	w21, w9, w8
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _FEC_T_INC_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FEC_T_INC_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w0, w21, w8
	ldr	x8, [x20, #32]
Lloh3:
	adrp	x9, _FEC_ATIME_INC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FEC_ATIME_INC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh6:
	adrp	x8, _FEC_COUNTER_PERIOD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FEC_COUNTER_PERIOD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x20, #32]
Lloh9:
	adrp	x9, _FEC_ATIME_EVT_PERIOD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FEC_ATIME_EVT_PERIOD@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh12:
	adrp	x8, _FEC_T_CTRL_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FEC_T_CTRL_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _FEC_T_CTRL_PERIOD_RST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FEC_T_CTRL_PERIOD_RST@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x20, #32]
Lloh18:
	adrp	x9, _FEC_ATIME_CTRL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FEC_ATIME_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	add	x21, x20, #8
	mov	x0, x21
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh21:
	adrp	x8, _fec_ptp_read@GOTPAGE
Lloh22:
	ldr	x8, [x8, _fec_ptp_read@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	mov	w22, #31
	mov	w0, #31
	bl	_CLOCKSOURCE_MASK
	str	w0, [x20, #16]
Lloh24:
	adrp	x8, _FEC_CC_MULT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FEC_CC_MULT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	stp	w22, w8, [x20, #8]
	add	x20, x20, #24
	bl	_ktime_get_real
	bl	_ktime_to_ns
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_timecounter_init
	mov	x0, x19
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_T_INC_OFFSET,4,2           ; @FEC_T_INC_OFFSET
	.comm	_FEC_ATIME_INC,8,3              ; @FEC_ATIME_INC
	.comm	_FEC_COUNTER_PERIOD,4,2         ; @FEC_COUNTER_PERIOD
	.comm	_FEC_ATIME_EVT_PERIOD,8,3       ; @FEC_ATIME_EVT_PERIOD
	.comm	_FEC_T_CTRL_ENABLE,4,2          ; @FEC_T_CTRL_ENABLE
	.comm	_FEC_T_CTRL_PERIOD_RST,4,2      ; @FEC_T_CTRL_PERIOD_RST
	.comm	_FEC_ATIME_CTRL,8,3             ; @FEC_ATIME_CTRL
	.comm	_fec_ptp_read,4,2               ; @fec_ptp_read
	.comm	_FEC_CC_MULT,4,2                ; @FEC_CC_MULT
.subsections_via_symbols
