	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp_mc_check
_axp_mc_check:                          ## @axp_mc_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_SDRAM_ERR_DATA_H_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_SDRAM_ERR_DATA_L_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_SDRAM_ERR_RECV_ECC_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SDRAM_ERR_CALC_ECC_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_SDRAM_ERR_ADDR_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SDRAM_ERR_SBE_COUNT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r15d
	movq	_SDRAM_ERR_DBE_COUNT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	_SDRAM_ERR_CAUSE_ERR_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_SDRAM_ERR_CAUSE_MSG_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_SDRAM_ERR_CAUSE_DBE_MASK@GOTPCREL(%rip), %r12
	movq	_SDRAM_ERR_CAUSE_SBE_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	orl	(%r12), %edi
	notl	%edi
	movq	_SDRAM_ERR_CAUSE_ERR_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	(%r13), %edi
	orl	(%r12), %edi
	notl	%edi
	movq	_SDRAM_ERR_CAUSE_MSG_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.3:
	movq	_SDRAM_ERR_SBE_COUNT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	testl	%r14d, %r14d
	movl	%r14d, %r12d
	jne	LBB0_4
## %bb.8:
	movq	_SDRAM_ERR_ADDR_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_6
## %bb.9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_1:
	testl	%r14d, %r14d
	movl	%r14d, %r12d
	je	LBB0_2
LBB0_4:
	movq	_SDRAM_ERR_DBE_COUNT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_SDRAM_ERR_ADDR_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.11:
	decl	%r12d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_13
LBB0_10:
	movq	_HW_EVENT_ERR_CORRECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %eax
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %r10
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rax
	pushq	$-1
	pushq	$-1
	pushq	$-1
	callq	_edac_mc_handle_error
	addq	$48, %rsp
	jmp	LBB0_14
LBB0_5:
	testl	%r15d, %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_7
LBB0_6:
	decl	%r15d
	testl	%r15d, %r15d
	jne	LBB0_10
LBB0_13:
	xorl	%r15d, %r15d
LBB0_14:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	je	LBB0_16
LBB0_15:
	movq	_HW_EVENT_ERR_UNCORRECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %eax
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rbx
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	$-1
	pushq	$-1
	pushq	$-1
	callq	_edac_mc_handle_error
	addq	$48, %rsp
LBB0_16:
	movq	_SDRAM_ERR_ADDR_CS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %esi
	movq	_SDRAM_ERR_ADDR_CS_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	_SDRAM_ERR_ADDR_BANK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%edx, %r15d
	movl	%edx, %edi
	movq	_SDRAM_ERR_ADDR_BANK_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	movq	_SDRAM_ERR_CALC_ECC_ROW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %r13d
	movq	_SDRAM_ERR_CALC_ECC_ROW_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r13d
	movq	_SDRAM_ERR_ADDR_COL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%edi, %r12d
	movq	_SDRAM_ERR_ADDR_COL_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	xorl	%edx, %r14d
	movzbl	%r14b, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	callq	_axp_mc_calc_address
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_sprintf
	movslq	%eax, %rbx
	addq	%r14, %rbx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_sprintf
	movslq	%eax, %r15
	addq	%rbx, %r15
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_sprintf
	movslq	%eax, %rdi
	addq	%r15, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	%r14d, %edx
	callq	_sprintf
	movq	_SDRAM_ERR_ADDR_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	andl	(%rax), %ecx
	jne	LBB0_17
## %bb.18:
	movq	_HW_EVENT_ERR_CORRECTED@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_HW_EVENT_ERR_UNCORRECTED@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %edi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %eax
	sarl	%cl, %eax
	movq	_PAGE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	notl	%r8d
	andl	%edx, %r8d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %ebx
	subq	$8, %rsp
	movl	$1, %edx
	movl	%eax, %ecx
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	pushq	(%rax)
	pushq	%rbx
	pushq	$-1
	pushq	$-1
	pushq	%r14
	callq	_edac_mc_handle_error
	addq	$104, %rsp
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addq	$56, %rsp
	jmp	LBB0_20
LBB0_7:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	xorl	%r15d, %r15d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SDRAM_ERR_DATA_H_REG,8,3       ## @SDRAM_ERR_DATA_H_REG
	.comm	_SDRAM_ERR_DATA_L_REG,8,3       ## @SDRAM_ERR_DATA_L_REG
	.comm	_SDRAM_ERR_RECV_ECC_REG,8,3     ## @SDRAM_ERR_RECV_ECC_REG
	.comm	_SDRAM_ERR_CALC_ECC_REG,8,3     ## @SDRAM_ERR_CALC_ECC_REG
	.comm	_SDRAM_ERR_ADDR_REG,8,3         ## @SDRAM_ERR_ADDR_REG
	.comm	_SDRAM_ERR_SBE_COUNT_REG,8,3    ## @SDRAM_ERR_SBE_COUNT_REG
	.comm	_SDRAM_ERR_DBE_COUNT_REG,8,3    ## @SDRAM_ERR_DBE_COUNT_REG
	.comm	_SDRAM_ERR_CAUSE_ERR_REG,8,3    ## @SDRAM_ERR_CAUSE_ERR_REG
	.comm	_SDRAM_ERR_CAUSE_MSG_REG,8,3    ## @SDRAM_ERR_CAUSE_MSG_REG
	.comm	_SDRAM_ERR_CAUSE_DBE_MASK,4,2   ## @SDRAM_ERR_CAUSE_DBE_MASK
	.comm	_SDRAM_ERR_CAUSE_SBE_MASK,4,2   ## @SDRAM_ERR_CAUSE_SBE_MASK
	.comm	_SDRAM_ERR_ADDR_TYPE_MASK,4,2   ## @SDRAM_ERR_ADDR_TYPE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inconsistent SBE count detected"

L_.str.1:                               ## @.str.1
	.asciz	"inconsistent DBE count detected"

	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ## @HW_EVENT_ERR_CORRECTED
L_.str.2:                               ## @.str.2
	.asciz	"details unavailable (multiple errors)"

	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ## @HW_EVENT_ERR_UNCORRECTED
	.comm	_SDRAM_ERR_ADDR_CS_MASK,4,2     ## @SDRAM_ERR_ADDR_CS_MASK
	.comm	_SDRAM_ERR_ADDR_CS_OFFSET,4,2   ## @SDRAM_ERR_ADDR_CS_OFFSET
	.comm	_SDRAM_ERR_ADDR_BANK_MASK,4,2   ## @SDRAM_ERR_ADDR_BANK_MASK
	.comm	_SDRAM_ERR_ADDR_BANK_OFFSET,4,2 ## @SDRAM_ERR_ADDR_BANK_OFFSET
	.comm	_SDRAM_ERR_CALC_ECC_ROW_MASK,4,2 ## @SDRAM_ERR_CALC_ECC_ROW_MASK
	.comm	_SDRAM_ERR_CALC_ECC_ROW_OFFSET,4,2 ## @SDRAM_ERR_CALC_ECC_ROW_OFFSET
	.comm	_SDRAM_ERR_ADDR_COL_MASK,4,2    ## @SDRAM_ERR_ADDR_COL_MASK
	.comm	_SDRAM_ERR_ADDR_COL_OFFSET,4,2  ## @SDRAM_ERR_ADDR_COL_OFFSET
L_.str.3:                               ## @.str.3
	.asciz	"row=0x%04x "

L_.str.4:                               ## @.str.4
	.asciz	"bank=0x%x "

L_.str.5:                               ## @.str.5
	.asciz	"col=0x%04x "

L_.str.6:                               ## @.str.6
	.asciz	"cs=%d"

	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.no_dead_strip	_axp_mc_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp_mc_check
_axp_mc_check:                          ; @axp_mc_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	ldr	x20, [x0, #8]
	ldr	x8, [x20]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _SDRAM_ERR_DATA_H_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDRAM_ERR_DATA_H_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _SDRAM_ERR_DATA_L_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDRAM_ERR_DATA_L_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _SDRAM_ERR_RECV_ECC_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDRAM_ERR_RECV_ECC_REG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x9, _SDRAM_ERR_CALC_ECC_REG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDRAM_ERR_CALC_ECC_REG@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _SDRAM_ERR_ADDR_REG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDRAM_ERR_ADDR_REG@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	ldr	x8, [x20, #8]
Lloh15:
	adrp	x23, _SDRAM_ERR_SBE_COUNT_REG@GOTPAGE
Lloh16:
	ldr	x23, [x23, _SDRAM_ERR_SBE_COUNT_REG@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x25, x0
	ldr	x8, [x20, #8]
Lloh17:
	adrp	x9, _SDRAM_ERR_DBE_COUNT_REG@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SDRAM_ERR_DBE_COUNT_REG@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x26, x0
	ldr	x8, [x20, #8]
Lloh20:
	adrp	x27, _SDRAM_ERR_CAUSE_ERR_REG@GOTPAGE
Lloh21:
	ldr	x27, [x27, _SDRAM_ERR_CAUSE_ERR_REG@GOTPAGEOFF]
	ldr	x9, [x27]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x20, #8]
Lloh22:
	adrp	x21, _SDRAM_ERR_CAUSE_MSG_REG@GOTPAGE
Lloh23:
	ldr	x21, [x21, _SDRAM_ERR_CAUSE_MSG_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh24:
	adrp	x24, _SDRAM_ERR_CAUSE_DBE_MASK@GOTPAGE
Lloh25:
	ldr	x24, [x24, _SDRAM_ERR_CAUSE_DBE_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh26:
	adrp	x28, _SDRAM_ERR_CAUSE_SBE_MASK@GOTPAGE
Lloh27:
	ldr	x28, [x28, _SDRAM_ERR_CAUSE_SBE_MASK@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w8, w9, w8
	mvn	w0, w8
	ldr	x8, [x20, #8]
	ldr	x9, [x27]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x24]
	ldr	w9, [x28]
	orr	w8, w9, w8
	mvn	w0, w8
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
Lloh28:
	adrp	x21, _SDRAM_ERR_ADDR_TYPE_MASK@GOTPAGE
Lloh29:
	ldr	x21, [x21, _SDRAM_ERR_ADDR_TYPE_MASK@GOTPAGEOFF]
Lloh30:
	adrp	x28, _HW_EVENT_ERR_CORRECTED@GOTPAGE
Lloh31:
	ldr	x28, [x28, _HW_EVENT_ERR_CORRECTED@GOTPAGEOFF]
Lloh32:
	adrp	x27, l_.str.2@PAGE
Lloh33:
	add	x27, x27, l_.str.2@PAGEOFF
Lloh34:
	adrp	x19, _HW_EVENT_ERR_UNCORRECTED@GOTPAGE
Lloh35:
	ldr	x19, [x19, _HW_EVENT_ERR_UNCORRECTED@GOTPAGEOFF]
	cbz	w25, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	cbnz	w26, LBB0_5
; %bb.2:
	ldr	w8, [x21]
	tst	w8, w22
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w24, [sp, #20]                  ; 4-byte Folded Reload
	b.eq	LBB0_9
; %bb.3:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #4]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	mov	w26, #0
	b	LBB0_7
LBB0_4:
	cbz	w26, LBB0_14
LBB0_5:
	ldr	x8, [x20, #8]
Lloh38:
	adrp	x9, _SDRAM_ERR_DBE_COUNT_REG@GOTPAGE
Lloh39:
	ldr	x9, [x9, _SDRAM_ERR_DBE_COUNT_REG@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w8, [x21]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.6:
	sub	w26, w26, #1
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w24, [sp, #20]                  ; 4-byte Folded Reload
	cbz	w25, LBB0_10
LBB0_7:
	ldr	w0, [x28]
	ldr	x23, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w8, [x23]
	str	x27, [sp, #8]
	mov	w9, #-1
	stp	w9, w8, [sp]
	mov	x1, x23
	mov	x2, x25
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #-1
	mov	w7, #-1
	bl	_edac_mc_handle_error
	cbnz	w26, LBB0_12
	b	LBB0_13
LBB0_8:
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w24, [sp, #20]                  ; 4-byte Folded Reload
	cbz	w25, LBB0_11
LBB0_9:
	sub	w25, w25, #1
	cbnz	w25, LBB0_7
LBB0_10:
	ldr	x23, [sp, #40]                  ; 8-byte Folded Reload
	cbnz	w26, LBB0_12
	b	LBB0_13
LBB0_11:
	ldr	x23, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w0, [x23, #4]
Lloh41:
	adrp	x1, l_.str@PAGE
Lloh42:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_12:
	ldr	w0, [x19]
	ldr	w8, [x23]
	str	x27, [sp, #8]
	mov	w9, #-1
	stp	w9, w8, [sp]
	mov	x1, x23
	mov	x2, x25
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #-1
	mov	w7, #-1
	bl	_edac_mc_handle_error
LBB0_13:
Lloh43:
	adrp	x8, _SDRAM_ERR_ADDR_CS_MASK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SDRAM_ERR_ADDR_CS_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh46:
	adrp	x9, _SDRAM_ERR_ADDR_CS_OFFSET@GOTPAGE
Lloh47:
	ldr	x9, [x9, _SDRAM_ERR_ADDR_CS_OFFSET@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	asr	w25, w8, w9
Lloh49:
	adrp	x8, _SDRAM_ERR_ADDR_BANK_MASK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SDRAM_ERR_ADDR_BANK_MASK@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh52:
	adrp	x9, _SDRAM_ERR_ADDR_BANK_OFFSET@GOTPAGE
Lloh53:
	ldr	x9, [x9, _SDRAM_ERR_ADDR_BANK_OFFSET@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	asr	w26, w8, w9
Lloh55:
	adrp	x8, _SDRAM_ERR_CALC_ECC_ROW_MASK@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SDRAM_ERR_CALC_ECC_ROW_MASK@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	and	w8, w8, w24
Lloh58:
	adrp	x9, _SDRAM_ERR_CALC_ECC_ROW_OFFSET@GOTPAGE
Lloh59:
	ldr	x9, [x9, _SDRAM_ERR_CALC_ECC_ROW_OFFSET@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	asr	w27, w8, w9
Lloh61:
	adrp	x8, _SDRAM_ERR_ADDR_COL_MASK@GOTPAGE
Lloh62:
	ldr	x8, [x8, _SDRAM_ERR_ADDR_COL_MASK@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh64:
	adrp	x9, _SDRAM_ERR_ADDR_COL_OFFSET@GOTPAGE
Lloh65:
	ldr	x9, [x9, _SDRAM_ERR_ADDR_COL_OFFSET@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	asr	w28, w8, w9
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	eor	w8, w24, w8
	and	w8, w8, #0xff
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	x1, x25
	mov	x2, x26
	mov	x3, x27
	mov	x4, x28
	bl	_axp_mc_calc_address
	mov	x24, x0
Lloh67:
	adrp	x1, l_.str.3@PAGE
Lloh68:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x27
	bl	_sprintf
	add	x21, x21, w0, sxtw
Lloh69:
	adrp	x1, l_.str.4@PAGE
Lloh70:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, x26
	bl	_sprintf
	add	x21, x21, w0, sxtw
Lloh71:
	adrp	x1, l_.str.5@PAGE
Lloh72:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x2, x28
	bl	_sprintf
	add	x0, x21, w0, sxtw
Lloh73:
	adrp	x1, l_.str.6@PAGE
Lloh74:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x25
	bl	_sprintf
Lloh75:
	adrp	x8, _SDRAM_ERR_ADDR_TYPE_MASK@GOTPAGE
Lloh76:
	ldr	x8, [x8, _SDRAM_ERR_ADDR_TYPE_MASK@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	tst	w8, w22
Lloh78:
	adrp	x8, _HW_EVENT_ERR_CORRECTED@GOTPAGE
Lloh79:
	ldr	x8, [x8, _HW_EVENT_ERR_CORRECTED@GOTPAGEOFF]
	csel	x8, x8, x19, eq
	ldr	w0, [x8]
Lloh80:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh81:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
	asr	w3, w24, w8
Lloh83:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh84:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	bic	w4, w24, w8
	ldr	w8, [x23]
	ldr	x9, [x20]
	str	x9, [sp, #8]
	mov	w9, #-1
	stp	w9, w8, [sp]
	mov	x1, x23
	mov	w2, #1
	ldr	w5, [sp, #40]                   ; 4-byte Folded Reload
	mov	x6, x25
	mov	w7, #-1
	bl	_edac_mc_handle_error
LBB0_14:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_SDRAM_ERR_DATA_H_REG,8,3       ; @SDRAM_ERR_DATA_H_REG
	.comm	_SDRAM_ERR_DATA_L_REG,8,3       ; @SDRAM_ERR_DATA_L_REG
	.comm	_SDRAM_ERR_RECV_ECC_REG,8,3     ; @SDRAM_ERR_RECV_ECC_REG
	.comm	_SDRAM_ERR_CALC_ECC_REG,8,3     ; @SDRAM_ERR_CALC_ECC_REG
	.comm	_SDRAM_ERR_ADDR_REG,8,3         ; @SDRAM_ERR_ADDR_REG
	.comm	_SDRAM_ERR_SBE_COUNT_REG,8,3    ; @SDRAM_ERR_SBE_COUNT_REG
	.comm	_SDRAM_ERR_DBE_COUNT_REG,8,3    ; @SDRAM_ERR_DBE_COUNT_REG
	.comm	_SDRAM_ERR_CAUSE_ERR_REG,8,3    ; @SDRAM_ERR_CAUSE_ERR_REG
	.comm	_SDRAM_ERR_CAUSE_MSG_REG,8,3    ; @SDRAM_ERR_CAUSE_MSG_REG
	.comm	_SDRAM_ERR_CAUSE_DBE_MASK,4,2   ; @SDRAM_ERR_CAUSE_DBE_MASK
	.comm	_SDRAM_ERR_CAUSE_SBE_MASK,4,2   ; @SDRAM_ERR_CAUSE_SBE_MASK
	.comm	_SDRAM_ERR_ADDR_TYPE_MASK,4,2   ; @SDRAM_ERR_ADDR_TYPE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inconsistent SBE count detected"

l_.str.1:                               ; @.str.1
	.asciz	"inconsistent DBE count detected"

	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ; @HW_EVENT_ERR_CORRECTED
l_.str.2:                               ; @.str.2
	.asciz	"details unavailable (multiple errors)"

	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ; @HW_EVENT_ERR_UNCORRECTED
	.comm	_SDRAM_ERR_ADDR_CS_MASK,4,2     ; @SDRAM_ERR_ADDR_CS_MASK
	.comm	_SDRAM_ERR_ADDR_CS_OFFSET,4,2   ; @SDRAM_ERR_ADDR_CS_OFFSET
	.comm	_SDRAM_ERR_ADDR_BANK_MASK,4,2   ; @SDRAM_ERR_ADDR_BANK_MASK
	.comm	_SDRAM_ERR_ADDR_BANK_OFFSET,4,2 ; @SDRAM_ERR_ADDR_BANK_OFFSET
	.comm	_SDRAM_ERR_CALC_ECC_ROW_MASK,4,2 ; @SDRAM_ERR_CALC_ECC_ROW_MASK
	.comm	_SDRAM_ERR_CALC_ECC_ROW_OFFSET,4,2 ; @SDRAM_ERR_CALC_ECC_ROW_OFFSET
	.comm	_SDRAM_ERR_ADDR_COL_MASK,4,2    ; @SDRAM_ERR_ADDR_COL_MASK
	.comm	_SDRAM_ERR_ADDR_COL_OFFSET,4,2  ; @SDRAM_ERR_ADDR_COL_OFFSET
l_.str.3:                               ; @.str.3
	.asciz	"row=0x%04x "

l_.str.4:                               ; @.str.4
	.asciz	"bank=0x%x "

l_.str.5:                               ; @.str.5
	.asciz	"col=0x%04x "

l_.str.6:                               ; @.str.6
	.asciz	"cs=%d"

	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.no_dead_strip	_axp_mc_check
.subsections_via_symbols
