	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function highbank_mc_err_handler
_highbank_mc_err_handler:               ## @highbank_mc_err_handler
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rsi), %r15
	movq	_HB_DDR_ECC_INT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	_HB_DDR_ECC_INT_STAT_UE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_HB_DDR_ECC_U_ERR_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movq	_HW_EVENT_ERR_UNCORRECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_PAGE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	notl	%r8d
	andl	%eax, %r8d
	sarl	%cl, %eax
	movl	(%rbx), %r10d
	subq	$8, %rsp
	leaq	L_.str(%rip), %r11
	movq	%rbx, %rsi
	movl	$1, %edx
	movl	%eax, %ecx
	xorl	%r9d, %r9d
	pushq	%r11
	pushq	%r10
	pushq	$-1
	pushq	$0
	pushq	$0
	callq	_edac_mc_handle_error
	addq	$48, %rsp
LBB0_2:
	movq	_HB_DDR_ECC_INT_STAT_CE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_HB_DDR_ECC_C_ERR_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movzbl	%ah, %eax
	movl	%eax, %r12d
	movq	_HB_DDR_ECC_C_ERR_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movq	_HW_EVENT_ERR_CORRECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_PAGE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	notl	%r8d
	andl	%eax, %r8d
	sarl	%cl, %eax
	movl	(%rbx), %r10d
	subq	$8, %rsp
	leaq	L_.str(%rip), %r11
	movq	%rbx, %rsi
	movl	$1, %edx
	movl	%eax, %ecx
	movl	%r12d, %r9d
	pushq	%r11
	pushq	%r10
	pushq	$-1
	pushq	$0
	pushq	$0
	callq	_edac_mc_handle_error
	addq	$48, %rsp
LBB0_4:
	movq	_HB_DDR_ECC_INT_ACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_DDR_ECC_INT_STATUS,8,3      ## @HB_DDR_ECC_INT_STATUS
	.comm	_HB_DDR_ECC_INT_STAT_UE,4,2     ## @HB_DDR_ECC_INT_STAT_UE
	.comm	_HB_DDR_ECC_U_ERR_ADDR,8,3      ## @HB_DDR_ECC_U_ERR_ADDR
	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ## @HW_EVENT_ERR_UNCORRECTED
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_HB_DDR_ECC_INT_STAT_CE,4,2     ## @HB_DDR_ECC_INT_STAT_CE
	.comm	_HB_DDR_ECC_C_ERR_STAT,8,3      ## @HB_DDR_ECC_C_ERR_STAT
	.comm	_HB_DDR_ECC_C_ERR_ADDR,8,3      ## @HB_DDR_ECC_C_ERR_ADDR
	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ## @HW_EVENT_ERR_CORRECTED
	.comm	_HB_DDR_ECC_INT_ACK,8,3         ## @HB_DDR_ECC_INT_ACK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_highbank_mc_err_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function highbank_mc_err_handler
_highbank_mc_err_handler:               ; @highbank_mc_err_handler
	.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	x20, x1
	ldr	x22, [x1, #8]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _HB_DDR_ECC_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HB_DDR_ECC_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x19, x0
Lloh3:
	adrp	x8, _HB_DDR_ECC_INT_STAT_UE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HB_DDR_ECC_INT_STAT_UE@GOTPAGEOFF]
Lloh5:
	adrp	x25, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PAGE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x24, _PAGE_MASK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PAGE_MASK@GOTPAGEOFF]
Lloh10:
	adrp	x23, l_.str@PAGE
Lloh11:
	add	x23, x23, l_.str@PAGEOFF
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x22, #8]
Lloh12:
	adrp	x9, _HB_DDR_ECC_U_ERR_ADDR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HB_DDR_ECC_U_ERR_ADDR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh15:
	adrp	x8, _HW_EVENT_ERR_UNCORRECTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HW_EVENT_ERR_UNCORRECTED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x25]
	asr	w3, w0, w9
	ldr	w9, [x24]
	bic	w4, w0, w9
	ldr	w9, [x20]
	str	x23, [sp, #8]
	mov	w10, #-1
	stp	w10, w9, [sp]
	mov	x0, x8
	mov	x1, x20
	mov	w2, #1
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_edac_mc_handle_error
LBB0_2:
Lloh18:
	adrp	x8, _HB_DDR_ECC_INT_STAT_CE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HB_DDR_ECC_INT_STAT_CE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x22, #8]
Lloh21:
	adrp	x9, _HB_DDR_ECC_C_ERR_STAT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HB_DDR_ECC_C_ERR_STAT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ubfx	w21, w0, #8, #8
	ldr	x8, [x22, #8]
Lloh24:
	adrp	x9, _HB_DDR_ECC_C_ERR_ADDR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HB_DDR_ECC_C_ERR_ADDR@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh27:
	adrp	x8, _HW_EVENT_ERR_CORRECTED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HW_EVENT_ERR_CORRECTED@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x25]
	asr	w3, w0, w9
	ldr	w9, [x24]
	bic	w4, w0, w9
	ldr	w9, [x20]
	str	x23, [sp, #8]
	mov	w10, #-1
	stp	w10, w9, [sp]
	mov	x0, x8
	mov	x1, x20
	mov	w2, #1
	mov	x5, x21
	mov	w6, #0
	mov	w7, #0
	bl	_edac_mc_handle_error
LBB0_4:
	ldr	x8, [x22]
Lloh30:
	adrp	x9, _HB_DDR_ECC_INT_ACK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _HB_DDR_ECC_INT_ACK@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
Lloh33:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_DDR_ECC_INT_STATUS,8,3      ; @HB_DDR_ECC_INT_STATUS
	.comm	_HB_DDR_ECC_INT_STAT_UE,4,2     ; @HB_DDR_ECC_INT_STAT_UE
	.comm	_HB_DDR_ECC_U_ERR_ADDR,8,3      ; @HB_DDR_ECC_U_ERR_ADDR
	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ; @HW_EVENT_ERR_UNCORRECTED
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_HB_DDR_ECC_INT_STAT_CE,4,2     ; @HB_DDR_ECC_INT_STAT_CE
	.comm	_HB_DDR_ECC_C_ERR_STAT,8,3      ; @HB_DDR_ECC_C_ERR_STAT
	.comm	_HB_DDR_ECC_C_ERR_ADDR,8,3      ; @HB_DDR_ECC_C_ERR_ADDR
	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ; @HW_EVENT_ERR_CORRECTED
	.comm	_HB_DDR_ECC_INT_ACK,8,3         ; @HB_DDR_ECC_INT_ACK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_highbank_mc_err_handler
.subsections_via_symbols
