	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_ptp_init                ## -- Begin function e1000e_ptp_init
	.p2align	4, 0x90
_e1000e_ptp_init:                       ## @e1000e_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, 8(%rdi)
	movq	_FLAG_HAS_HW_TIMESTAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	leaq	24(%rdi), %r14
	movq	_e1000e_ptp_clock_info@GOTPCREL(%rip), %rax
	movl	8(%rax), %edi
	movl	%edi, 32(%rbx)
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	40(%rbx), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movl	48(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_2
## %bb.3:
	movl	$23999999, %r15d                ## imm = 0x16E35FF
	cmpl	$129, %eax
	jb	LBB0_6
## %bb.4:
	movq	_TSYNCRXCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_TSYNCRXCTL_SYSCFI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
	jmp	LBB0_5
LBB0_2:
	addl	$-132, %eax
	cmpl	$2, %eax
	jae	LBB0_7
LBB0_5:
	movl	$599999999, %r15d               ## imm = 0x23C345FF
LBB0_6:
	movl	%r15d, (%r14)
LBB0_7:
	leaq	36(%rbx), %r15
	movq	_e1000e_systim_overflow_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_E1000_SYSTIM_OVERFLOW_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_schedule_delayed_work
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_ptp_clock_register
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	$0, 8(%rbx)
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_e_err                          ## TAILCALL
LBB0_8:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_e_info                         ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_HAS_HW_TIMESTAMP,4,2      ## @FLAG_HAS_HW_TIMESTAMP
	.comm	_e1000e_ptp_clock_info,12,2     ## @e1000e_ptp_clock_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%pm"

	.comm	_TSYNCRXCTL,4,2                 ## @TSYNCRXCTL
	.comm	_E1000_TSYNCRXCTL_SYSCFI,4,2    ## @E1000_TSYNCRXCTL_SYSCFI
	.comm	_e1000e_systim_overflow_work,4,2 ## @e1000e_systim_overflow_work
	.comm	_E1000_SYSTIM_OVERFLOW_PERIOD,4,2 ## @E1000_SYSTIM_OVERFLOW_PERIOD
L_.str.1:                               ## @.str.1
	.asciz	"ptp_clock_register failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"registered PHC clock\n"

	.comm	_X86_FEATURE_ART,4,2            ## @X86_FEATURE_ART
	.comm	_e1000e_phc_getcrosststamp,4,2  ## @e1000e_phc_getcrosststamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_ptp_init                ; -- Begin function e1000e_ptp_init
	.p2align	2
_e1000e_ptp_init:                       ; @e1000e_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
	str	xzr, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FLAG_HAS_HW_TIMESTAMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAG_HAS_HW_TIMESTAMP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _e1000e_ptp_clock_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _e1000e_ptp_clock_info@GOTPAGEOFF]
	ldr	x9, [x8]
	mov	x20, x0
	str	x9, [x20, #24]!
	ldr	w0, [x8, #8]
	str	w0, [x20, #8]
	ldr	x8, [x20, #16]
	ldr	w3, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	w8, [x20, #24]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hs	LBB0_4
; %bb.2:
	mov	w21, #13823
	movk	w21, #366, lsl #16
	cmp	w8, #129
	b.lo	LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _TSYNCRXCTL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TSYNCRXCTL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_er32
Lloh10:
	adrp	x8, _E1000_TSYNCRXCTL_SYSCFI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_TSYNCRXCTL_SYSCFI@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_6
	b	LBB0_5
LBB0_4:
	sub	w8, w8, #132
	cmp	w8, #2
	b.hs	LBB0_7
LBB0_5:
	mov	w21, #17919
	movk	w21, #9155, lsl #16
LBB0_6:
	str	w21, [x20]
LBB0_7:
	add	x21, x19, #36
Lloh13:
	adrp	x8, _e1000e_systim_overflow_work@GOTPAGE
Lloh14:
	ldr	x8, [x8, _e1000e_systim_overflow_work@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_DELAYED_WORK
Lloh16:
	adrp	x8, _E1000_SYSTIM_OVERFLOW_PERIOD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E1000_SYSTIM_OVERFLOW_PERIOD@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_schedule_delayed_work
	ldr	x1, [x19, #16]
	mov	x0, x20
	bl	_ptp_clock_register
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	str	xzr, [x19, #8]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, 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	_e_err
LBB0_9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.10:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@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	_e_info
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_HAS_HW_TIMESTAMP,4,2      ; @FLAG_HAS_HW_TIMESTAMP
	.comm	_e1000e_ptp_clock_info,12,2     ; @e1000e_ptp_clock_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%pm"

	.comm	_TSYNCRXCTL,4,2                 ; @TSYNCRXCTL
	.comm	_E1000_TSYNCRXCTL_SYSCFI,4,2    ; @E1000_TSYNCRXCTL_SYSCFI
	.comm	_e1000e_systim_overflow_work,4,2 ; @e1000e_systim_overflow_work
	.comm	_E1000_SYSTIM_OVERFLOW_PERIOD,4,2 ; @E1000_SYSTIM_OVERFLOW_PERIOD
l_.str.1:                               ; @.str.1
	.asciz	"ptp_clock_register failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"registered PHC clock\n"

	.comm	_X86_FEATURE_ART,4,2            ; @X86_FEATURE_ART
	.comm	_e1000e_phc_getcrosststamp,4,2  ; @e1000e_phc_getcrosststamp
.subsections_via_symbols
