	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fec_ptp_init                   ## -- Begin function fec_ptp_init
	.p2align	4, 0x90
_fec_ptp_init:                          ## @fec_ptp_init
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	callq	_platform_get_drvdata
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	24(%rbx), %r15
	movl	%eax, 92(%rbx)
	movl	88(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	movl	$16, %esi
	callq	_snprintf
	movabsq	$4544967296, %rax               ## imm = 0x10EE6B280
	movq	%rax, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movups	%xmm0, 72(%rbx)
	movq	_fec_ptp_adjfreq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_fec_ptp_adjtime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_fec_ptp_gettime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_fec_ptp_settime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_fec_ptp_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	100(%rbx), %edi
	callq	_clk_get_rate
	movl	%eax, %ecx
	movl	%eax, (%rbx)
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ecx
	movl	%eax, 4(%rbx)
	leaq	96(%rbx), %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	callq	_fec_ptp_start_cyclecounter
	movq	%rbx, %r13
	addq	$8, %r13
	movq	_fec_time_keep@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_INIT_DELAYED_WORK
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname_optional
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_platform_get_irq_optional
	testl	%eax, %eax
	js	LBB0_4
LBB0_2:
	movq	_fec_pps_interrupt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	4(%r14), %r8d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ptp_clock_register
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	$0, 16(%rbx)
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_6:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_delayed_work          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fec ptp"

	.comm	_fec_ptp_adjfreq,4,2            ## @fec_ptp_adjfreq
	.comm	_fec_ptp_adjtime,4,2            ## @fec_ptp_adjtime
	.comm	_fec_ptp_gettime,4,2            ## @fec_ptp_gettime
	.comm	_fec_ptp_settime,4,2            ## @fec_ptp_settime
	.comm	_fec_ptp_enable,4,2             ## @fec_ptp_enable
	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.comm	_fec_time_keep,4,2              ## @fec_time_keep
L_.str.1:                               ## @.str.1
	.asciz	"pps"

	.comm	_fec_pps_interrupt,4,2          ## @fec_pps_interrupt
L_.str.2:                               ## @.str.2
	.asciz	"request for pps irq failed(%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"ptp_clock_register failed\n"

	.comm	_HZ,4,2                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function fec_ptp_init
lCPI0_0:
	.long	250000000                       ; 0xee6b280
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_fec_ptp_init
	.p2align	2
_fec_ptp_init:                          ; @fec_ptp_init
	.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	x23, x1
	mov	x19, x0
	bl	_platform_get_drvdata
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #92]
	ldr	w0, [x0, #88]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #16
	bl	_snprintf
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	x22, x20
	str	d0, [x22, #24]!
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #56]
	stur	q0, [x20, #72]
Lloh7:
	adrp	x8, _fec_ptp_adjfreq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _fec_ptp_adjfreq@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #48]
Lloh10:
	adrp	x8, _fec_ptp_adjtime@GOTPAGE
Lloh11:
	ldr	x8, [x8, _fec_ptp_adjtime@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _fec_ptp_gettime@GOTPAGE
Lloh14:
	ldr	x9, [x9, _fec_ptp_gettime@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
Lloh16:
	adrp	x8, _fec_ptp_settime@GOTPAGE
Lloh17:
	ldr	x8, [x8, _fec_ptp_settime@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _fec_ptp_enable@GOTPAGE
Lloh20:
	ldr	x9, [x9, _fec_ptp_enable@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
	ldr	w0, [x20, #100]
	bl	_clk_get_rate
	str	w0, [x20]
Lloh22:
	adrp	x8, _NSEC_PER_SEC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NSEC_PER_SEC@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	sdiv	w8, w8, w0
	str	w8, [x20, #4]
	add	x0, x20, #96
	bl	_spin_lock_init
	mov	x0, x21
	bl	_fec_ptp_start_cyclecounter
	add	x24, x20, #8
Lloh25:
	adrp	x8, _fec_time_keep@GOTPAGE
Lloh26:
	ldr	x8, [x8, _fec_time_keep@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_INIT_DELAYED_WORK
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname_optional
	mov	x1, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x23
	bl	_platform_get_irq_optional
	mov	x1, x0
	tbnz	w0, #31, LBB0_4
LBB0_2:
Lloh30:
	adrp	x8, _fec_pps_interrupt@GOTPAGE
Lloh31:
	ldr	x8, [x8, _fec_pps_interrupt@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	ldr	w4, [x19, #4]
	mov	x0, x19
	mov	w3, #0
	mov	x5, x21
	bl	_devm_request_irq
	tbz	w0, #31, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_4:
	mov	x0, x22
	mov	x1, x19
	bl	_ptp_clock_register
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	str	xzr, [x20, #16]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_6:
Lloh37:
	adrp	x8, _HZ@GOTPAGE
Lloh38:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x24
	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
	b	_schedule_delayed_work
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fec ptp"

	.comm	_fec_ptp_adjfreq,4,2            ; @fec_ptp_adjfreq
	.comm	_fec_ptp_adjtime,4,2            ; @fec_ptp_adjtime
	.comm	_fec_ptp_gettime,4,2            ; @fec_ptp_gettime
	.comm	_fec_ptp_settime,4,2            ; @fec_ptp_settime
	.comm	_fec_ptp_enable,4,2             ; @fec_ptp_enable
	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.comm	_fec_time_keep,4,2              ; @fec_time_keep
l_.str.1:                               ; @.str.1
	.asciz	"pps"

	.comm	_fec_pps_interrupt,4,2          ; @fec_pps_interrupt
l_.str.2:                               ; @.str.2
	.asciz	"request for pps irq failed(%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"ptp_clock_register failed\n"

	.comm	_HZ,4,2                         ; @HZ
.subsections_via_symbols
