	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_ecc_ded
_xgbe_ecc_ded:                          ## @xgbe_ecc_ded
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	(%rsi), %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %ecx
	incl	%ecx
	jmp	LBB0_3
LBB0_2:
	movq	_ecc_ded_period@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	imulq	(%rax), %rcx
	addq	(%r13), %rcx
	movq	%rcx, (%rbx)
	movl	$1, %ecx
LBB0_3:
	movl	%ecx, (%r12)
	movq	_ecc_ded_threshold@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jbe	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_netdev_alert
	movl	$1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ecc_ded_period,8,3             ## @ecc_ded_period
	.comm	_HZ,8,3                         ## @HZ
	.comm	_ecc_ded_threshold,4,2          ## @ecc_ded_threshold
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s ECC detected errors exceed threshold\n"

	.no_dead_strip	_xgbe_ecc_ded
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_ecc_ded
_xgbe_ecc_ded:                          ; @xgbe_ecc_ded
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x1, [x1]
	bl	_time_before
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	add	w8, w8, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _ecc_ded_period@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ecc_ded_period@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _HZ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	madd	x8, x10, x9, x8
	str	x8, [x22]
	mov	w8, #1
LBB0_3:
	str	w8, [x21]
Lloh8:
	adrp	x9, _ecc_ded_threshold@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ecc_ded_threshold@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ls	LBB0_5
; %bb.4:
	ldr	w0, [x20]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_netdev_alert
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ecc_ded_period,8,3             ; @ecc_ded_period
	.comm	_HZ,8,3                         ; @HZ
	.comm	_ecc_ded_threshold,4,2          ; @ecc_ded_threshold
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s ECC detected errors exceed threshold\n"

	.no_dead_strip	_xgbe_ecc_ded
.subsections_via_symbols
