	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bluefield_gather_report_ecc
_bluefield_gather_report_ecc:           ## @bluefield_gather_report_ecc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	_MLXBF_ECC_LATCH_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r13), %rsi
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	_HW_EVENT_ERR_CORRECTED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HW_EVENT_ERR_UNCORRECTED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MLXBF_ECC_LATCH_SEL__START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	callq	_writel
	movq	_MLXBF_SYNDROM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_MLXBF_SYNDROM__SERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movl	%eax, %r15d
	movq	_MLXBF_SYNDROM__DERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movl	%eax, %r12d
	movq	_MLXBF_SYNDROM__SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	testl	%r15d, %r15d
	setne	%cl
	orb	-41(%rbp), %cl                  ## 1-byte Folded Reload
	orl	%r12d, %r14d
	setne	%dl
	cmpb	$1, %cl
	jne	LBB0_5
## %bb.4:
	testb	%dl, %dl
	je	LBB0_5
## %bb.7:
	movl	%eax, %r15d
	movq	_MLXBF_ADD_INFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	movq	_MLXBF_ADD_INFO__ERR_PRANK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_FIELD_GET
	xorl	%r14d, %r14d
	cmpl	$2, %eax
	jl	LBB0_9
## %bb.8:
	movq	(%r13), %rax
	xorl	%r14d, %r14d
	cmpl	$3, (%rax)
	setl	%r14b
LBB0_9:
	movq	_MLXBF_ERR_ADDR_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	movq	_MLXBF_ERR_ADDR_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	callq	_PFN_DOWN
	movl	%eax, %ebx
	callq	_offset_in_page
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %r10d
	subq	$8, %rsp
	leaq	L_.str(%rip), %r11
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movl	%r15d, %r9d
	pushq	%r11
	pushq	%r10
	pushq	$0
	pushq	$0
	pushq	%r14
	jmp	LBB0_6
LBB0_5:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rbx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	$-1
	pushq	$0
	pushq	$0
LBB0_6:
	callq	_edac_mc_handle_error
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ## @HW_EVENT_ERR_CORRECTED
	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ## @HW_EVENT_ERR_UNCORRECTED
	.comm	_MLXBF_ECC_LATCH_SEL__START,4,2 ## @MLXBF_ECC_LATCH_SEL__START
	.comm	_MLXBF_ECC_LATCH_SEL,8,3        ## @MLXBF_ECC_LATCH_SEL
	.comm	_MLXBF_SYNDROM,8,3              ## @MLXBF_SYNDROM
	.comm	_MLXBF_SYNDROM__SERR,4,2        ## @MLXBF_SYNDROM__SERR
	.comm	_MLXBF_SYNDROM__DERR,4,2        ## @MLXBF_SYNDROM__DERR
	.comm	_MLXBF_SYNDROM__SYN,4,2         ## @MLXBF_SYNDROM__SYN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_MLXBF_ADD_INFO,8,3             ## @MLXBF_ADD_INFO
	.comm	_MLXBF_ADD_INFO__ERR_PRANK,4,2  ## @MLXBF_ADD_INFO__ERR_PRANK
	.comm	_MLXBF_ERR_ADDR_0,8,3           ## @MLXBF_ERR_ADDR_0
	.comm	_MLXBF_ERR_ADDR_1,8,3           ## @MLXBF_ERR_ADDR_1
	.no_dead_strip	_bluefield_gather_report_ecc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bluefield_gather_report_ecc
_bluefield_gather_report_ecc:           ; @bluefield_gather_report_ecc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HW_EVENT_ERR_CORRECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_EVENT_ERR_CORRECTED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HW_EVENT_ERR_UNCORRECTED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HW_EVENT_ERR_UNCORRECTED@GOTPAGEOFF]
	ldr	x25, [x0, #8]
	cmp	w2, #0
	csel	x8, x8, x9, ne
	ldr	w21, [x8]
Lloh4:
	adrp	x8, _MLXBF_ECC_LATCH_SEL__START@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLXBF_ECC_LATCH_SEL__START@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x25, #8]
Lloh7:
	adrp	x9, _MLXBF_ECC_LATCH_SEL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MLXBF_ECC_LATCH_SEL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x25, #8]
Lloh10:
	adrp	x9, _MLXBF_SYNDROM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MLXBF_SYNDROM@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
Lloh13:
	adrp	x8, _MLXBF_SYNDROM__SERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLXBF_SYNDROM__SERR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_GET
	mov	x24, x0
Lloh16:
	adrp	x8, _MLXBF_SYNDROM__DERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MLXBF_SYNDROM__DERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_GET
	orr	w26, w23, w0
Lloh19:
	adrp	x8, _MLXBF_SYNDROM__SYN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MLXBF_SYNDROM__SYN@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_GET
	cmp	w26, #0
	cset	w8, ne
	cmp	w24, #0
	ccmp	w23, #0, #4, eq
	b.ne	LBB0_4
; %bb.1:
	tbz	w8, #0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	x8, [x25, #8]
Lloh22:
	adrp	x9, _MLXBF_ADD_INFO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MLXBF_ADD_INFO@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x1, x0
Lloh25:
	adrp	x8, _MLXBF_ADD_INFO__ERR_PRANK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MLXBF_ADD_INFO__ERR_PRANK@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_FIELD_GET
	cmp	w0, #2
	b.lt	LBB0_5
; %bb.3:
	ldr	x8, [x25]
	ldr	w8, [x8]
	cmp	w8, #3
	cset	w23, lt
	b	LBB0_6
LBB0_4:
	ldr	w8, [x20]
Lloh28:
	adrp	x9, l_.str@PAGE
Lloh29:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [sp, #8]
	mov	w9, #-1
	stp	w9, w8, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	b	LBB0_7
LBB0_5:
	mov	w23, #0
LBB0_6:
	ldr	x8, [x25, #8]
Lloh30:
	adrp	x9, _MLXBF_ERR_ADDR_0@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MLXBF_ERR_ADDR_0@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x25, #8]
Lloh33:
	adrp	x9, _MLXBF_ERR_ADDR_1@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MLXBF_ERR_ADDR_1@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	bl	_PFN_DOWN
	mov	x24, x0
	bl	_offset_in_page
	mov	x4, x0
	ldr	w8, [x20]
Lloh36:
	adrp	x9, l_.str@PAGE
Lloh37:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [sp, #8]
	stp	wzr, w8, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x24
	mov	x5, x22
	mov	x6, x23
LBB0_7:
	mov	w7, #0
	bl	_edac_mc_handle_error
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ; @HW_EVENT_ERR_CORRECTED
	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ; @HW_EVENT_ERR_UNCORRECTED
	.comm	_MLXBF_ECC_LATCH_SEL__START,4,2 ; @MLXBF_ECC_LATCH_SEL__START
	.comm	_MLXBF_ECC_LATCH_SEL,8,3        ; @MLXBF_ECC_LATCH_SEL
	.comm	_MLXBF_SYNDROM,8,3              ; @MLXBF_SYNDROM
	.comm	_MLXBF_SYNDROM__SERR,4,2        ; @MLXBF_SYNDROM__SERR
	.comm	_MLXBF_SYNDROM__DERR,4,2        ; @MLXBF_SYNDROM__DERR
	.comm	_MLXBF_SYNDROM__SYN,4,2         ; @MLXBF_SYNDROM__SYN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_MLXBF_ADD_INFO,8,3             ; @MLXBF_ADD_INFO
	.comm	_MLXBF_ADD_INFO__ERR_PRANK,4,2  ; @MLXBF_ADD_INFO__ERR_PRANK
	.comm	_MLXBF_ERR_ADDR_0,8,3           ; @MLXBF_ERR_ADDR_0
	.comm	_MLXBF_ERR_ADDR_1,8,3           ; @MLXBF_ERR_ADDR_1
	.no_dead_strip	_bluefield_gather_report_ecc
.subsections_via_symbols
