	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bluefield_edac_check
_bluefield_edac_check:                  ## @bluefield_edac_check
	.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	(%rdi), %rax
	movq	_EDAC_FLAG_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rcx
	movq	_MLXBF_ECC_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	addq	(%rcx), %rdi
	callq	_readl
	movq	%rax, %r14
	movq	_MLXBF_ECC_CNT__SERR_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_FIELD_GET
	movq	%rax, %r13
	movq	_MLXBF_ECC_CNT__DERR_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_FIELD_GET
	movq	%rax, %r12
	testq	%r13, %r13
	je	LBB0_2
## %bb.3:
	movq	_MLXBF_ECC_ERR__SECC@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_bluefield_gather_report_ecc
	testq	%r12, %r12
	je	LBB0_6
LBB0_5:
	movq	_MLXBF_ECC_ERR__DECC@GOTPCREL(%rip), %rax
	orq	(%rax), %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_bluefield_gather_report_ecc
LBB0_6:
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	movq	_MLXBF_ECC_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r15d, %r15d
	testq	%r12, %r12
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EDAC_FLAG_NONE,8,3             ## @EDAC_FLAG_NONE
	.comm	_MLXBF_ECC_CNT,8,3              ## @MLXBF_ECC_CNT
	.comm	_MLXBF_ECC_CNT__SERR_CNT,4,2    ## @MLXBF_ECC_CNT__SERR_CNT
	.comm	_MLXBF_ECC_CNT__DERR_CNT,4,2    ## @MLXBF_ECC_CNT__DERR_CNT
	.comm	_MLXBF_ECC_ERR__SECC,8,3        ## @MLXBF_ECC_ERR__SECC
	.comm	_MLXBF_ECC_ERR__DECC,8,3        ## @MLXBF_ECC_ERR__DECC
	.comm	_MLXBF_ECC_ERR,8,3              ## @MLXBF_ECC_ERR
	.no_dead_strip	_bluefield_edac_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bluefield_edac_check
_bluefield_edac_check:                  ; @bluefield_edac_check
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _EDAC_FLAG_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EDAC_FLAG_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x24, [x0, #8]
	ldr	x8, [x24]
Lloh3:
	adrp	x9, _MLXBF_ECC_CNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLXBF_ECC_CNT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
Lloh6:
	adrp	x8, _MLXBF_ECC_CNT__SERR_CNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLXBF_ECC_CNT__SERR_CNT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	mov	x23, x0
Lloh9:
	adrp	x8, _MLXBF_ECC_CNT__DERR_CNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLXBF_ECC_CNT__DERR_CNT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	mov	x22, x0
	cbz	x23, LBB0_7
; %bb.2:
Lloh12:
	adrp	x8, _MLXBF_ECC_ERR__SECC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLXBF_ECC_ERR__SECC@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	w2, #1
	bl	_bluefield_gather_report_ecc
	cbz	x22, LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _MLXBF_ECC_ERR__DECC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLXBF_ECC_ERR__DECC@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	orr	x21, x8, x21
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_bluefield_gather_report_ecc
LBB0_4:
	cbz	x20, LBB0_6
; %bb.5:
	ldr	x8, [x24]
Lloh18:
	adrp	x9, _MLXBF_ECC_ERR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MLXBF_ECC_ERR@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	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
	b	_writel
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
LBB0_7:
	mov	x21, #0
	cbnz	x22, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EDAC_FLAG_NONE,8,3             ; @EDAC_FLAG_NONE
	.comm	_MLXBF_ECC_CNT,8,3              ; @MLXBF_ECC_CNT
	.comm	_MLXBF_ECC_CNT__SERR_CNT,4,2    ; @MLXBF_ECC_CNT__SERR_CNT
	.comm	_MLXBF_ECC_CNT__DERR_CNT,4,2    ; @MLXBF_ECC_CNT__DERR_CNT
	.comm	_MLXBF_ECC_ERR__SECC,8,3        ; @MLXBF_ECC_ERR__SECC
	.comm	_MLXBF_ECC_ERR__DECC,8,3        ; @MLXBF_ECC_ERR__DECC
	.comm	_MLXBF_ECC_ERR,8,3              ; @MLXBF_ECC_ERR
	.no_dead_strip	_bluefield_edac_check
.subsections_via_symbols
