	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_ptp_enable                ## -- Begin function qede_ptp_enable
	.p2align	4, 0x90
_qede_ptp_enable:                       ## @qede_ptp_enable
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 88(%rax)
	movq	24(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r12)
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	%r12, (%r14)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_qede_ptp_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:
	movq	%r14, %rdi
	callq	_qede_ptp_cfg_filters
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %r15
	addq	$8, %r15
	movl	%eax, 72(%r12)
	movl	68(%r12), %edi
	movq	16(%r14), %rax
	movq	(%rax), %rcx
	leaq	L_.str.2(%rip), %rdx
	movl	$16, %esi
	callq	_snprintf
	movq	_QED_MAX_PHC_DRIFT_PPB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r12)
	movups	%xmm0, 32(%r12)
	movq	_qede_ptp_adjfreq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_qede_ptp_adjtime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_qede_ptp_gettime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_qede_ptp_settime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_qede_ptp_ancillary_feature_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_ptp_clock_register
	movl	%eax, (%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_ERR
	movq	%r14, %rdi
	callq	_qede_ptp_disable
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_INFO
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_INFO
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r12, %rdi
	callq	_kfree
LBB0_9:
	movq	$0, (%r14)
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate struct for PTP\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"PTP enable failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.comm	_QED_MAX_PHC_DRIFT_PPB,4,2      ## @QED_MAX_PHC_DRIFT_PPB
	.comm	_qede_ptp_adjfreq,4,2           ## @qede_ptp_adjfreq
	.comm	_qede_ptp_adjtime,4,2           ## @qede_ptp_adjtime
	.comm	_qede_ptp_gettime,4,2           ## @qede_ptp_gettime
	.comm	_qede_ptp_settime,4,2           ## @qede_ptp_settime
	.comm	_qede_ptp_ancillary_feature_enable,4,2 ## @qede_ptp_ancillary_feature_enable
L_.str.3:                               ## @.str.3
	.asciz	"PTP clock registration failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_ptp_enable                ; -- Begin function qede_ptp_enable
	.p2align	2
_qede_ptp_enable:                       ; @qede_ptp_enable
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #96
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #88]
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	str	w8, [x0, #80]
	cbz	w8, LBB0_6
; %bb.2:
	str	x20, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_qede_ptp_init
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_qede_ptp_cfg_filters
Lloh3:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #72]
	ldr	w0, [x20, #68]
	ldr	x8, [x19, #16]
	ldr	x3, [x8]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #16
	bl	_snprintf
Lloh8:
	adrp	x8, _QED_MAX_PHC_DRIFT_PPB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QED_MAX_PHC_DRIFT_PPB@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x20, #32]
Lloh11:
	adrp	x8, _qede_ptp_adjfreq@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qede_ptp_adjfreq@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _qede_ptp_adjtime@GOTPAGE
Lloh15:
	ldr	x9, [x9, _qede_ptp_adjtime@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #20]
Lloh17:
	adrp	x8, _qede_ptp_gettime@GOTPAGE
Lloh18:
	ldr	x8, [x8, _qede_ptp_gettime@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _qede_ptp_settime@GOTPAGE
Lloh21:
	ldr	x9, [x9, _qede_ptp_settime@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _qede_ptp_ancillary_feature_enable@GOTPAGE
Lloh24:
	ldr	x10, [x10, _qede_ptp_ancillary_feature_enable@GOTPAGEOFF]
	stp	w9, w8, [x20, #12]
Lloh25:
	ldr	w8, [x10]
	mov	x0, x20
	str	w8, [x0, #8]!
	ldr	x1, [x19, #8]
	bl	_ptp_clock_register
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.4:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
	mov	x0, x19
	bl	_qede_ptp_disable
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_5:
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_6:
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
Lloh38:
	adrp	x8, _EIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x20
	bl	_kfree
LBB0_8:
	str	xzr, [x19]
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
	mov	w21, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate struct for PTP\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"PTP enable failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.comm	_QED_MAX_PHC_DRIFT_PPB,4,2      ; @QED_MAX_PHC_DRIFT_PPB
	.comm	_qede_ptp_adjfreq,4,2           ; @qede_ptp_adjfreq
	.comm	_qede_ptp_adjtime,4,2           ; @qede_ptp_adjtime
	.comm	_qede_ptp_gettime,4,2           ; @qede_ptp_gettime
	.comm	_qede_ptp_settime,4,2           ; @qede_ptp_settime
	.comm	_qede_ptp_ancillary_feature_enable,4,2 ; @qede_ptp_ancillary_feature_enable
l_.str.3:                               ; @.str.3
	.asciz	"PTP clock registration failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
