	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_ptp_reset                  ## -- Begin function igb_ptp_reset
	.p2align	4, 0x90
_igb_ptp_reset:                         ## @igb_ptp_reset
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	28(%rdi), %rsi
	callq	_igb_ptp_set_timestamp_mode
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	24(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	jae	LBB0_1
## %bb.3:
	movq	_E1000_TSAUXC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_wr32
	movq	_E1000_TSSDP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_wr32
	movq	_E1000_TSIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TSYNC_INTERRUPTS@GOTPCREL(%rip), %rax
	movl	20(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movq	_TSINTR_SYS_WRAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_5:
	orl	(%rax), %esi
	callq	_wr32
	movq	_E1000_IMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E1000_IMS_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_6:
	callq	_wr32
	movl	24(%rbx), %eax
	andl	$-2, %eax
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_timespec64
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_igb_ptp_write_i210
	jmp	LBB0_9
LBB0_8:
	leaq	16(%rbx), %r15
	leaq	12(%rbx), %r12
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_ns
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_timecounter_init
	jmp	LBB0_9
LBB0_1:
	cmpl	$133, %eax
	jne	LBB0_9
## %bb.2:
	movq	_E1000_TIMINCA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INCPERIOD_82576@GOTPCREL(%rip), %rax
	movq	_INCVALUE_82576@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	jmp	LBB0_6
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	callq	_wrfl
	movq	_IGB_PTP_OVERFLOW_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.10:
	addq	$4, %rbx
	movq	_IGB_SYSTIM_OVERFLOW_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_schedule_delayed_work
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_TIMINCA,4,2              ## @E1000_TIMINCA
	.comm	_INCPERIOD_82576,4,2            ## @INCPERIOD_82576
	.comm	_INCVALUE_82576,4,2             ## @INCVALUE_82576
	.comm	_E1000_TSAUXC,4,2               ## @E1000_TSAUXC
	.comm	_E1000_TSSDP,4,2                ## @E1000_TSSDP
	.comm	_E1000_TSIM,4,2                 ## @E1000_TSIM
	.comm	_TSYNC_INTERRUPTS,4,2           ## @TSYNC_INTERRUPTS
	.comm	_TSINTR_SYS_WRAP,4,2            ## @TSINTR_SYS_WRAP
	.comm	_E1000_IMS,4,2                  ## @E1000_IMS
	.comm	_E1000_IMS_TS,4,2               ## @E1000_IMS_TS
	.comm	_IGB_PTP_OVERFLOW_CHECK,4,2     ## @IGB_PTP_OVERFLOW_CHECK
	.comm	_IGB_SYSTIM_OVERFLOW_PERIOD,4,2 ## @IGB_SYSTIM_OVERFLOW_PERIOD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_ptp_reset                  ; -- Begin function igb_ptp_reset
	.p2align	2
_igb_ptp_reset:                         ; @igb_ptp_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	add	x1, x0, #28
	bl	_igb_ptp_set_timestamp_mode
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #24]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hs	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _E1000_TSAUXC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_TSAUXC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_wr32
Lloh3:
	adrp	x8, _E1000_TSSDP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_TSSDP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_wr32
Lloh6:
	adrp	x8, _E1000_TSIM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_TSIM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _TSYNC_INTERRUPTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TSYNC_INTERRUPTS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
Lloh12:
	adrp	x10, _TSINTR_SYS_WRAP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TSINTR_SYS_WRAP@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
	bl	_wr32
Lloh15:
	adrp	x8, _E1000_IMS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E1000_IMS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _E1000_IMS_TS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E1000_IMS_TS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
LBB0_2:
	bl	_wr32
	ldr	w8, [x19, #24]
	and	w8, w8, #0xfffffffe
	cmp	w8, #130
	b.ne	LBB0_4
; %bb.3:
	bl	_ktime_get_real
	bl	_ktime_to_timespec64
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_igb_ptp_write_i210
	b	LBB0_7
LBB0_4:
	add	x21, x19, #16
	add	x22, x19, #12
	bl	_ktime_get_real
	bl	_ktime_to_ns
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_timecounter_init
	b	LBB0_7
LBB0_5:
	cmp	w8, #133
	b.ne	LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _E1000_TIMINCA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E1000_TIMINCA@GOTPAGEOFF]
Lloh23:
	adrp	x9, _INCPERIOD_82576@GOTPAGE
Lloh24:
	ldr	x9, [x9, _INCPERIOD_82576@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	ldr	w8, [x9]
Lloh27:
	adrp	x9, _INCVALUE_82576@GOTPAGE
Lloh28:
	ldr	x9, [x9, _INCVALUE_82576@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w1, w9, w8
	b	LBB0_2
LBB0_7:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	bl	_wrfl
	ldr	w8, [x19]
Lloh30:
	adrp	x9, _IGB_PTP_OVERFLOW_CHECK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IGB_PTP_OVERFLOW_CHECK@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	add	x0, x19, #4
Lloh33:
	adrp	x8, _IGB_SYSTIM_OVERFLOW_PERIOD@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IGB_SYSTIM_OVERFLOW_PERIOD@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_schedule_delayed_work
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_TIMINCA,4,2              ; @E1000_TIMINCA
	.comm	_INCPERIOD_82576,4,2            ; @INCPERIOD_82576
	.comm	_INCVALUE_82576,4,2             ; @INCVALUE_82576
	.comm	_E1000_TSAUXC,4,2               ; @E1000_TSAUXC
	.comm	_E1000_TSSDP,4,2                ; @E1000_TSSDP
	.comm	_E1000_TSIM,4,2                 ; @E1000_TSIM
	.comm	_TSYNC_INTERRUPTS,4,2           ; @TSYNC_INTERRUPTS
	.comm	_TSINTR_SYS_WRAP,4,2            ; @TSINTR_SYS_WRAP
	.comm	_E1000_IMS,4,2                  ; @E1000_IMS
	.comm	_E1000_IMS_TS,4,2               ; @E1000_IMS_TS
	.comm	_IGB_PTP_OVERFLOW_CHECK,4,2     ; @IGB_PTP_OVERFLOW_CHECK
	.comm	_IGB_SYSTIM_OVERFLOW_PERIOD,4,2 ; @IGB_SYSTIM_OVERFLOW_PERIOD
.subsections_via_symbols
