	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv64x60_mc_check
_mv64x60_mc_check:                      ## @mv64x60_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	_MV64X60_SDRAM_ERR_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_in_le32
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %r13d
	andl	$-4, %ebx
	movq	_MV64X60_SDRAM_ERR_ECC_RCVD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_in_le32
	movl	%eax, %r15d
	movq	_MV64X60_SDRAM_ERR_ECC_CALC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_in_le32
	testb	$1, %r13b
	jne	LBB0_3
## %bb.2:
	xorl	%r15d, %eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%ebx, %esi
	sarl	%cl, %esi
	movq	_PAGE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movl	(%r14), %ecx
	movl	%ecx, (%rsp)
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_edac_mc_handle_ce
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %esi
	sarl	%cl, %esi
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	(%r14), %r8d
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_edac_mc_handle_ue
LBB0_4:
	movq	_MV64X60_SDRAM_ERR_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_out_le32                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MV64X60_SDRAM_ERR_ADDR,8,3     ## @MV64X60_SDRAM_ERR_ADDR
	.comm	_MV64X60_SDRAM_ERR_ECC_RCVD,8,3 ## @MV64X60_SDRAM_ERR_ECC_RCVD
	.comm	_MV64X60_SDRAM_ERR_ECC_CALC,8,3 ## @MV64X60_SDRAM_ERR_ECC_CALC
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.no_dead_strip	_mv64x60_mc_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv64x60_mc_check
_mv64x60_mc_check:                      ; @mv64x60_mc_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
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	x8, [x22]
Lloh0:
	adrp	x23, _MV64X60_SDRAM_ERR_ADDR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MV64X60_SDRAM_ERR_ADDR@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_in_le32
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	and	w24, w0, #0xfffffffc
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _MV64X60_SDRAM_ERR_ECC_RCVD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MV64X60_SDRAM_ERR_ECC_RCVD@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_le32
	mov	x21, x0
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _MV64X60_SDRAM_ERR_ECC_CALC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MV64X60_SDRAM_ERR_ECC_CALC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_le32
	tbnz	w20, #0, LBB0_4
; %bb.2:
	eor	w3, w0, w21
Lloh8:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	asr	w1, w24, w8
Lloh11:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w2, w8, w24
	ldr	w6, [x19]
	mov	x0, x19
	mov	w4, #0
	mov	w5, #0
	bl	_edac_mc_handle_ce
	b	LBB0_5
LBB0_3:
	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_4:
Lloh14:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	asr	w1, w24, w8
Lloh17:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w2, w8, w24
	ldr	w4, [x19]
	mov	x0, x19
	mov	w3, #0
	bl	_edac_mc_handle_ue
LBB0_5:
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x0, x9, x8
	mov	w1, #0
	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	_out_le32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MV64X60_SDRAM_ERR_ADDR,8,3     ; @MV64X60_SDRAM_ERR_ADDR
	.comm	_MV64X60_SDRAM_ERR_ECC_RCVD,8,3 ; @MV64X60_SDRAM_ERR_ECC_RCVD
	.comm	_MV64X60_SDRAM_ERR_ECC_CALC,8,3 ; @MV64X60_SDRAM_ERR_ECC_CALC
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.no_dead_strip	_mv64x60_mc_check
.subsections_via_symbols
