	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_ptp_init
_qede_ptp_init:                         ## @qede_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	40(%r12), %rdi
	callq	_spin_lock_init
	movq	32(%r12), %rax
	movl	(%rbx), %edi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_INFO
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_4:
	leaq	28(%r12), %rdi
	movq	_qede_ptp_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_qede_ptp_read_cc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movl	$64, %edi
	callq	_CYCLECOUNTER_MASK
	movl	%eax, 16(%r12)
	movq	$0, 8(%r12)
	movl	$1, (%r12)
	leaq	24(%r12), %rbx
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_ns
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_timecounter_init
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PTP HW enable failed\n"

	.comm	_qede_ptp_task,4,2              ## @qede_ptp_task
	.comm	_qede_ptp_read_cc,4,2           ## @qede_ptp_read_cc
	.no_dead_strip	_qede_ptp_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_ptp_init
_qede_ptp_init:                         ; @qede_ptp_init
	.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
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	add	x0, x19, #40
	bl	_spin_lock_init
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w0, [x21]
	blr	x8
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_DP_INFO
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
	add	x0, x19, #28
Lloh5:
	adrp	x8, _qede_ptp_task@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qede_ptp_task@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_WORK
	cbz	w20, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh8:
	adrp	x8, _qede_ptp_read_cc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qede_ptp_read_cc@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	w0, #64
	bl	_CYCLECOUNTER_MASK
	str	w0, [x19, #16]
	str	xzr, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	add	x20, x19, #24
	bl	_ktime_get_real
	bl	_ktime_to_ns
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_timecounter_init
LBB0_6:
	mov	w22, #0
LBB0_7:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PTP HW enable failed\n"

	.comm	_qede_ptp_task,4,2              ; @qede_ptp_task
	.comm	_qede_ptp_read_cc,4,2           ; @qede_ptp_read_cc
	.no_dead_strip	_qede_ptp_init
.subsections_via_symbols
