	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocelot_init_timestamp
_ocelot_init_timestamp:                 ## @ocelot_init_timestamp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_ocelot_ptp_clock_info@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$12, %rdi
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %esi
	callq	_ptp_clock_register
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	4(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	testl	%edi, %edi
	je	LBB0_3
## %bb.2:
	movl	$30, %edi
	callq	_SYS_PTP_CFG_PTP_STAMP_WID
	movq	_SYS_PTP_CFG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ocelot_write
	movq	_ANA_TABLES_PTP_ID_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_ocelot_write
	movq	_ANA_TABLES_PTP_ID_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_ocelot_write
	movq	_PTP_CFG_MISC_PTP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PTP_CFG_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ocelot_write
	movq	_HWTSTAMP_FILTER_PTP_V2_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ocelot_ptp_clock_info,4,2      ## @ocelot_ptp_clock_info
	.comm	_SYS_PTP_CFG,4,2                ## @SYS_PTP_CFG
	.comm	_ANA_TABLES_PTP_ID_LOW,4,2      ## @ANA_TABLES_PTP_ID_LOW
	.comm	_ANA_TABLES_PTP_ID_HIGH,4,2     ## @ANA_TABLES_PTP_ID_HIGH
	.comm	_PTP_CFG_MISC_PTP_EN,4,2        ## @PTP_CFG_MISC_PTP_EN
	.comm	_PTP_CFG_MISC,4,2               ## @PTP_CFG_MISC
	.comm	_HWTSTAMP_FILTER_PTP_V2_EVENT,4,2 ## @HWTSTAMP_FILTER_PTP_V2_EVENT
	.no_dead_strip	_ocelot_init_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocelot_init_timestamp
_ocelot_init_timestamp:                 ; @ocelot_init_timestamp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ocelot_ptp_clock_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ocelot_ptp_clock_info@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x20, x0
	str	w8, [x20, #12]!
	ldur	w1, [x20, #-4]
	mov	x0, x20
	bl	_ptp_clock_register
	stur	w0, [x20, #-8]
	bl	_IS_ERR
	mov	x8, x0
	ldur	w0, [x20, #-8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #30
	bl	_SYS_PTP_CFG_PTP_STAMP_WID
	mov	x1, x0
Lloh3:
	adrp	x8, _SYS_PTP_CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_PTP_CFG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ocelot_write
Lloh6:
	adrp	x8, _ANA_TABLES_PTP_ID_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ANA_TABLES_PTP_ID_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	bl	_ocelot_write
Lloh9:
	adrp	x8, _ANA_TABLES_PTP_ID_HIGH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ANA_TABLES_PTP_ID_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	bl	_ocelot_write
Lloh12:
	adrp	x8, _PTP_CFG_MISC_PTP_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PTP_CFG_MISC_PTP_EN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _PTP_CFG_MISC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PTP_CFG_MISC@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ocelot_write
Lloh18:
	adrp	x8, _HWTSTAMP_FILTER_PTP_V2_EVENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HWTSTAMP_FILTER_PTP_V2_EVENT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_ocelot_ptp_clock_info,4,2      ; @ocelot_ptp_clock_info
	.comm	_SYS_PTP_CFG,4,2                ; @SYS_PTP_CFG
	.comm	_ANA_TABLES_PTP_ID_LOW,4,2      ; @ANA_TABLES_PTP_ID_LOW
	.comm	_ANA_TABLES_PTP_ID_HIGH,4,2     ; @ANA_TABLES_PTP_ID_HIGH
	.comm	_PTP_CFG_MISC_PTP_EN,4,2        ; @PTP_CFG_MISC_PTP_EN
	.comm	_PTP_CFG_MISC,4,2               ; @PTP_CFG_MISC
	.comm	_HWTSTAMP_FILTER_PTP_V2_EVENT,4,2 ; @HWTSTAMP_FILTER_PTP_V2_EVENT
	.no_dead_strip	_ocelot_init_timestamp
.subsections_via_symbols
