	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcr_isr
_mcr_isr:                               ## @mcr_isr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_aspeed_regmap@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_ASPEED_MCR_INTR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	(%rbx), %edi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-44(%rbp), %r12d
	movq	_ASPEED_MCR_INTR_CTRL_CNT_REC@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%r12d, %r13d
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	sarl	$16, %r13d
	movq	_ASPEED_MCR_INTR_CTRL_CNT_UNREC@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movl	%r12d, %r15d
	sarl	$12, %r15d
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r14), %edi
	movq	_ASPEED_MCR_ADDR_UNREC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	callq	_regmap_read
	movl	-60(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edi
	movq	_ASPEED_MCR_ADDR_REC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_regmap_read
	movl	-64(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edi
	movq	_ASPEED_MCR_INTR_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_ASPEED_MCR_INTR_CTRL_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	(%r14), %edi
	movl	(%rbx), %esi
	movq	_ASPEED_MCR_INTR_CTRL_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_count_rec
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_count_un_rec
	cmpl	$65535, -56(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0xFFFF
	ja	LBB0_3
## %bb.1:
	cmpl	$4095, %r12d                    ## imm = 0xFFF
	ja	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_3:
	movq	_aspeed_regmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASPEED_MCR_INTR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	(%rbx), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aspeed_regmap,4,2              ## @aspeed_regmap
	.comm	_ASPEED_MCR_INTR_CTRL,4,2       ## @ASPEED_MCR_INTR_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received edac interrupt w/ mcr register 50: 0x%x\n"

	.comm	_ASPEED_MCR_INTR_CTRL_CNT_REC,4,2 ## @ASPEED_MCR_INTR_CTRL_CNT_REC
	.comm	_ASPEED_MCR_INTR_CTRL_CNT_UNREC,4,2 ## @ASPEED_MCR_INTR_CTRL_CNT_UNREC
L_.str.1:                               ## @.str.1
	.asciz	"%d recoverable interrupts and %d unrecoverable interrupts\n"

	.comm	_ASPEED_MCR_ADDR_UNREC,4,2      ## @ASPEED_MCR_ADDR_UNREC
	.comm	_ASPEED_MCR_ADDR_REC,4,2        ## @ASPEED_MCR_ADDR_REC
	.comm	_ASPEED_MCR_INTR_CTRL_CLEAR,4,2 ## @ASPEED_MCR_INTR_CTRL_CLEAR
L_.str.2:                               ## @.str.2
	.asciz	"received edac interrupt, but did not find any ECC counters\n"

L_.str.3:                               ## @.str.3
	.asciz	"edac interrupt handled. mcr reg 50 is now: 0x%x\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mcr_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcr_isr
_mcr_isr:                               ; @mcr_isr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
Lloh0:
	adrp	x24, _aspeed_regmap@GOTPAGE
Lloh1:
	ldr	x24, [x24, _aspeed_regmap@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x25, _ASPEED_MCR_INTR_CTRL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ASPEED_MCR_INTR_CTRL@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #28
	bl	_regmap_read
	ldr	w0, [x19]
	ldr	w8, [sp, #28]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [sp, #28]
Lloh6:
	adrp	x9, _ASPEED_MCR_INTR_CTRL_CNT_REC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ASPEED_MCR_INTR_CTRL_CNT_REC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w26, w9, w8
	asr	w21, w26, #16
Lloh9:
	adrp	x9, _ASPEED_MCR_INTR_CTRL_CNT_UNREC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ASPEED_MCR_INTR_CTRL_CNT_UNREC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w27, w9, w8
	asr	w20, w27, #12
	ldr	w0, [x19]
	stp	x21, x20, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x24]
Lloh14:
	adrp	x8, _ASPEED_MCR_ADDR_UNREC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ASPEED_MCR_ADDR_UNREC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #20
	bl	_regmap_read
	ldr	w22, [sp, #20]
	ldr	w0, [x24]
Lloh17:
	adrp	x8, _ASPEED_MCR_ADDR_REC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ASPEED_MCR_ADDR_REC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_regmap_read
	ldr	w23, [sp, #24]
	ldr	w0, [x24]
	ldr	w1, [x25]
Lloh20:
	adrp	x28, _ASPEED_MCR_INTR_CTRL_CLEAR@GOTPAGE
Lloh21:
	ldr	x28, [x28, _ASPEED_MCR_INTR_CTRL_CLEAR@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	w0, [x24]
	ldr	w1, [x25]
	ldr	w2, [x28]
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_count_rec
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_count_un_rec
	lsr	w8, w26, #16
	cbnz	w8, LBB0_3
; %bb.1:
	cmp	w27, #4095
	b.hi	LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_3:
	ldr	w0, [x24]
	ldr	w1, [x25]
	add	x2, sp, #28
	bl	_regmap_read
	ldr	w0, [x19]
	ldr	w8, [sp, #28]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
Lloh26:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_aspeed_regmap,4,2              ; @aspeed_regmap
	.comm	_ASPEED_MCR_INTR_CTRL,4,2       ; @ASPEED_MCR_INTR_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received edac interrupt w/ mcr register 50: 0x%x\n"

	.comm	_ASPEED_MCR_INTR_CTRL_CNT_REC,4,2 ; @ASPEED_MCR_INTR_CTRL_CNT_REC
	.comm	_ASPEED_MCR_INTR_CTRL_CNT_UNREC,4,2 ; @ASPEED_MCR_INTR_CTRL_CNT_UNREC
l_.str.1:                               ; @.str.1
	.asciz	"%d recoverable interrupts and %d unrecoverable interrupts\n"

	.comm	_ASPEED_MCR_ADDR_UNREC,4,2      ; @ASPEED_MCR_ADDR_UNREC
	.comm	_ASPEED_MCR_ADDR_REC,4,2        ; @ASPEED_MCR_ADDR_REC
	.comm	_ASPEED_MCR_INTR_CTRL_CLEAR,4,2 ; @ASPEED_MCR_INTR_CTRL_CLEAR
l_.str.2:                               ; @.str.2
	.asciz	"received edac interrupt, but did not find any ECC counters\n"

l_.str.3:                               ; @.str.3
	.asciz	"edac interrupt handled. mcr reg 50 is now: 0x%x\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mcr_isr
.subsections_via_symbols
