	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000e_systim_reset
_e1000e_systim_reset:                   ## @e1000e_systim_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	_FLAG_HAS_HW_TIMESTAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	addq	$40, %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movl	32(%rbx), %esi
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_4
LBB0_2:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_e1000e_get_base_timinca
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_warn
	jmp	LBB0_7
LBB0_3:
	movq	_TIMINCA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-36(%rbp), %esi
	callq	_ew32
LBB0_4:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	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
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	4(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_e1000e_config_hwtstamp
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_HAS_HW_TIMESTAMP,4,2      ## @FLAG_HAS_HW_TIMESTAMP
	.comm	_TIMINCA,4,2                    ## @TIMINCA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to restore TIMINCA clock rate delta: %d\n"

	.no_dead_strip	_e1000e_systim_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000e_systim_reset
_e1000e_systim_reset:                   ; @e1000e_systim_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
	ldr	w8, [x0], #40
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_7
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x19, #32]
	blr	x8
	mov	x2, x0
	cbnz	x0, LBB0_4
	b	LBB0_6
LBB0_3:
	add	x1, sp, #12
	mov	x0, x19
	bl	_e1000e_get_base_timinca
	mov	x2, x0
	cbz	x0, LBB0_5
LBB0_4:
	ldr	x0, [x19, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _TIMINCA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TIMINCA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
	bl	_ew32
LBB0_6:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	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
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x1, x19, #4
	mov	x0, x19
	bl	_e1000e_config_hwtstamp
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_HAS_HW_TIMESTAMP,4,2      ; @FLAG_HAS_HW_TIMESTAMP
	.comm	_TIMINCA,4,2                    ; @TIMINCA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to restore TIMINCA clock rate delta: %d\n"

	.no_dead_strip	_e1000e_systim_reset
.subsections_via_symbols
