	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xgbe_ptp_register              ## -- Begin function xgbe_ptp_register
	.p2align	4, 0x90
_xgbe_ptp_register:                     ## @xgbe_ptp_register
	.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	%rdi, %rbx
	leaq	64(%rdi), %r14
	movl	60(%rdi), %edi
	movl	92(%rbx), %r15d
	callq	_netdev_name
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movl	36(%rbx), %eax
	movl	56(%rbx), %esi
	movl	%eax, 84(%rbx)
	movq	_xgbe_adjfreq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_xgbe_adjtime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_xgbe_gettime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_xgbe_settime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_xgbe_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	%r14, %rdi
	callq	_ptp_clock_register
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	56(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_1:
	leaq	8(%rbx), %r14
	movq	%r15, 48(%rbx)
	movl	36(%rbx), %esi
	callq	_div_u64
	movl	%eax, 40(%rbx)
	movq	_xgbe_cc_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	$64, %edi
	callq	_CLOCKSOURCE_MASK
	movl	%eax, 24(%rbx)
	movl	$1, 8(%rbx)
	movq	$0, 16(%rbx)
	leaq	32(%rbx), %r15
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_ns
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_timecounter_init
	movq	_MAC_TSCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_XGMAC_IOWRITE
	movq	_HWTSTAMP_TX_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_HWTSTAMP_FILTER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_xgbe_adjfreq,4,2               ## @xgbe_adjfreq
	.comm	_xgbe_adjtime,4,2               ## @xgbe_adjtime
	.comm	_xgbe_gettime,4,2               ## @xgbe_gettime
	.comm	_xgbe_settime,4,2               ## @xgbe_settime
	.comm	_xgbe_enable,4,2                ## @xgbe_enable
L_.str.1:                               ## @.str.1
	.asciz	"ptp_clock_register failed\n"

	.comm	_xgbe_cc_read,4,2               ## @xgbe_cc_read
	.comm	_MAC_TSCR,4,2                   ## @MAC_TSCR
	.comm	_HWTSTAMP_TX_OFF,4,2            ## @HWTSTAMP_TX_OFF
	.comm	_HWTSTAMP_FILTER_NONE,4,2       ## @HWTSTAMP_FILTER_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xgbe_ptp_register              ; -- Begin function xgbe_ptp_register
	.p2align	2
_xgbe_ptp_register:                     ; @xgbe_ptp_register
	.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	x19, x0
	ldr	w20, [x0, #92]
	ldr	w0, [x0, #60]
	bl	_netdev_name
	mov	x3, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #4
	bl	_snprintf
Lloh2:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _xgbe_enable@GOTPAGE
Lloh6:
	ldr	x9, [x9, _xgbe_enable@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mov	x0, x19
	str	w9, [x0, #64]!
	ldur	w9, [x0, #-28]
	stp	w9, w8, [x0, #20]
Lloh8:
	adrp	x8, _xgbe_adjfreq@GOTPAGE
Lloh9:
	ldr	x8, [x8, _xgbe_adjfreq@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _xgbe_adjtime@GOTPAGE
Lloh12:
	ldr	x9, [x9, _xgbe_adjtime@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #12]
Lloh14:
	adrp	x8, _xgbe_gettime@GOTPAGE
Lloh15:
	ldr	x8, [x8, _xgbe_gettime@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _xgbe_settime@GOTPAGE
Lloh18:
	ldr	x9, [x9, _xgbe_settime@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	ldur	w1, [x0, #-8]
	bl	_ptp_clock_register
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #56]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	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	_dev_err
LBB0_2:
	str	x20, [x19, #48]
	ldr	w1, [x19, #36]
	bl	_div_u64
	str	w0, [x19, #40]
Lloh22:
	adrp	x8, _xgbe_cc_read@GOTPAGE
Lloh23:
	ldr	x8, [x8, _xgbe_cc_read@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	mov	w0, #64
	bl	_CLOCKSOURCE_MASK
	str	w0, [x19, #24]
	mov	w8, #1
	mov	x20, x19
	str	w8, [x20, #8]!
	str	xzr, [x19, #16]
	add	x21, x19, #32
	bl	_ktime_get_real
	bl	_ktime_to_ns
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_timecounter_init
Lloh25:
	adrp	x8, _MAC_TSCR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MAC_TSCR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_XGMAC_IOWRITE
Lloh28:
	adrp	x8, _HWTSTAMP_TX_OFF@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HWTSTAMP_TX_OFF@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _HWTSTAMP_FILTER_NONE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _HWTSTAMP_FILTER_NONE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [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
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_xgbe_adjfreq,4,2               ; @xgbe_adjfreq
	.comm	_xgbe_adjtime,4,2               ; @xgbe_adjtime
	.comm	_xgbe_gettime,4,2               ; @xgbe_gettime
	.comm	_xgbe_settime,4,2               ; @xgbe_settime
	.comm	_xgbe_enable,4,2                ; @xgbe_enable
l_.str.1:                               ; @.str.1
	.asciz	"ptp_clock_register failed\n"

	.comm	_xgbe_cc_read,4,2               ; @xgbe_cc_read
	.comm	_MAC_TSCR,4,2                   ; @MAC_TSCR
	.comm	_HWTSTAMP_TX_OFF,4,2            ; @HWTSTAMP_TX_OFF
	.comm	_HWTSTAMP_FILTER_NONE,4,2       ; @HWTSTAMP_FILTER_NONE
.subsections_via_symbols
