	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_init_ptp                 ## -- Begin function bnx2x_init_ptp
	.p2align	4, 0x90
_bnx2x_init_ptp:                        ## @bnx2x_init_ptp
	.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
	callq	_bnx2x_configure_ptp
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BNX2X_ERR                      ## TAILCALL
LBB0_1:
	leaq	12(%rbx), %rdi
	movq	_bnx2x_ptp_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	cmpl	$0, (%rbx)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_bnx2x_init_cyclecounter
	leaq	8(%rbx), %r14
	leaq	4(%rbx), %r15
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_ns
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_timecounter_init
	movl	$1, (%rbx)
LBB0_3:
	movq	_BNX2X_MSG_PTP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stopping PTP initialization\n"

	.comm	_bnx2x_ptp_task,4,2             ## @bnx2x_ptp_task
	.comm	_BNX2X_MSG_PTP,4,2              ## @BNX2X_MSG_PTP
L_.str.1:                               ## @.str.1
	.asciz	"PTP initialization ended successfully\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_init_ptp                 ; -- Begin function bnx2x_init_ptp
	.p2align	2
_bnx2x_init_ptp:                        ; @bnx2x_init_ptp
	.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
	bl	_bnx2x_configure_ptp
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@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	_BNX2X_ERR
LBB0_2:
	add	x0, x19, #12
Lloh2:
	adrp	x8, _bnx2x_ptp_task@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bnx2x_ptp_task@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_bnx2x_init_cyclecounter
	add	x20, x19, #8
	add	x21, x19, #4
	bl	_ktime_get_real
	bl	_ktime_to_ns
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_timecounter_init
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
Lloh5:
	adrp	x8, _BNX2X_MSG_PTP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BNX2X_MSG_PTP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	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	_DP
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stopping PTP initialization\n"

	.comm	_bnx2x_ptp_task,4,2             ; @bnx2x_ptp_task
	.comm	_BNX2X_MSG_PTP,4,2              ; @BNX2X_MSG_PTP
l_.str.1:                               ; @.str.1
	.asciz	"PTP initialization ended successfully\n"

.subsections_via_symbols
