	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_IGB_FLAG_PTP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movl	16(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	jae	LBB0_2
## %bb.4:
	movq	_E1000_TSAUXC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_wr32
	movq	_E1000_TSIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E1000_TSIM_TXTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wr32
	movq	_E1000_IMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E1000_IMS_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_5:
	callq	_wr32
	movl	16(%rbx), %eax
	andl	$-2, %eax
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_timespec
	movl	%eax, -24(%rbp)
	addq	$12, %rbx
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_igb_ptp_settime_i210
	jmp	LBB0_7
LBB0_8:
	leaq	8(%rbx), %r14
	addq	$4, %rbx
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_ns
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_timecounter_init               ## TAILCALL
LBB0_2:
	cmpl	$133, %eax
	jne	LBB0_7
## %bb.3:
	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_5
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IGB_FLAG_PTP,4,2               ## @IGB_FLAG_PTP
	.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_TSIM,4,2                 ## @E1000_TSIM
	.comm	_E1000_TSIM_TXTS,4,2            ## @E1000_TSIM_TXTS
	.comm	_E1000_IMS,4,2                  ## @E1000_IMS
	.comm	_E1000_IMS_TS,4,2               ## @E1000_IMS_TS
.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, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IGB_FLAG_PTP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IGB_FLAG_PTP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #16]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hs	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _E1000_TSAUXC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_TSAUXC@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, _E1000_TSIM_TXTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_TSIM_TXTS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_wr32
Lloh12:
	adrp	x8, _E1000_IMS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E1000_IMS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _E1000_IMS_TS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E1000_IMS_TS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
LBB0_3:
	bl	_wr32
	ldr	w8, [x19, #16]
	and	w8, w8, #0xfffffffe
	cmp	w8, #130
	b.ne	LBB0_5
; %bb.4:
	bl	_ktime_get_real
	bl	_ktime_to_timespec
	str	w0, [sp, #8]
	add	x0, x19, #12
	add	x1, sp, #8
	bl	_igb_ptp_settime_i210
	b	LBB0_8
LBB0_5:
	add	x20, x19, #8
	add	x19, x19, #4
	bl	_ktime_get_real
	bl	_ktime_to_ns
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_timecounter_init
LBB0_6:
	cmp	w8, #133
	b.ne	LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _E1000_TIMINCA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E1000_TIMINCA@GOTPAGEOFF]
Lloh20:
	adrp	x9, _INCPERIOD_82576@GOTPAGE
Lloh21:
	ldr	x9, [x9, _INCPERIOD_82576@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	ldr	w8, [x9]
Lloh24:
	adrp	x9, _INCVALUE_82576@GOTPAGE
Lloh25:
	ldr	x9, [x9, _INCVALUE_82576@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w9, w8
	b	LBB0_3
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IGB_FLAG_PTP,4,2               ; @IGB_FLAG_PTP
	.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_TSIM,4,2                 ; @E1000_TSIM
	.comm	_E1000_TSIM_TXTS,4,2            ; @E1000_TSIM_TXTS
	.comm	_E1000_IMS,4,2                  ; @E1000_IMS
	.comm	_E1000_IMS_TS,4,2               ; @E1000_IMS_TS
.subsections_via_symbols
