	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_edac_soc_check
_xgene_edac_soc_check:                  ## @xgene_edac_soc_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movl	4(%r14), %edi
	movq	_PCPHPERRINTSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_xgene_edac_pcp_rd
	movl	4(%r14), %edi
	movq	_PCPLPERRINTSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	callq	_xgene_edac_pcp_rd
	movl	4(%r14), %edi
	movq	_MEMERRINTSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_xgene_edac_pcp_rd
	movl	-48(%rbp), %eax
	movq	_IOB_PA_ERR_MASK@GOTPCREL(%rip), %rdx
	movq	_IOB_BA_ERR_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	(%rdx), %edi
	orl	%ecx, %edi
	movq	_IOB_XGIC_ERR_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movq	_IOB_RB_ERR_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%ebx, %esi
	orl	%edx, %esi
	orl	%edi, %esi
	testl	%eax, %esi
	jne	LBB0_2
## %bb.1:
	movq	_CSW_SWITCH_TRACE_ERR_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	-52(%rbp), %esi
	orl	-44(%rbp), %esi
	je	LBB0_19
LBB0_2:
	testl	%eax, %ebx
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_xgene_edac_iob_gic_report
	movl	-48(%rbp), %eax
	movl	(%r15), %edx
	movl	(%r12), %ecx
LBB0_4:
	orl	%edx, %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_xgene_edac_rb_report
	movl	-48(%rbp), %eax
LBB0_6:
	movq	_IOB_PA_ERR_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_xgene_edac_pa_report
LBB0_8:
	movq	_CSW_SWITCH_TRACE_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -52(%rbp)
	je	LBB0_10
## %bb.9:
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movl	(%r13), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_edac_device_handle_ce
LBB0_10:
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_19
## %bb.11:
	cmpl	$1, (%r14)
	jne	LBB0_18
## %bb.12:
	movq	_soc_mem_err_v1@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_18
## %bb.13:
	leaq	L_.str.2(%rip), %r14
	xorl	%ebx, %ebx
	btl	%ebx, %edx
	jae	LBB0_16
	.p2align	4, 0x90
LBB0_15:
	movl	4(%r13), %edi
	movq	(%r15,%rbx,8), %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r13), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_edac_device_handle_ue
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$30, %rbx
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	-44(%rbp), %edx
	incq	%rbx
	btl	%ebx, %edx
	jb	LBB0_15
	jmp	LBB0_16
LBB0_18:
	movl	4(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r13), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_edac_device_handle_ue
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCPHPERRINTSTS,4,2             ## @PCPHPERRINTSTS
	.comm	_PCPLPERRINTSTS,4,2             ## @PCPLPERRINTSTS
	.comm	_MEMERRINTSTS,4,2               ## @MEMERRINTSTS
	.comm	_IOB_PA_ERR_MASK,4,2            ## @IOB_PA_ERR_MASK
	.comm	_IOB_BA_ERR_MASK,4,2            ## @IOB_BA_ERR_MASK
	.comm	_IOB_XGIC_ERR_MASK,4,2          ## @IOB_XGIC_ERR_MASK
	.comm	_IOB_RB_ERR_MASK,4,2            ## @IOB_RB_ERR_MASK
	.comm	_CSW_SWITCH_TRACE_ERR_MASK,4,2  ## @CSW_SWITCH_TRACE_ERR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CSW switch trace correctable memory parity error\n"

	.comm	_soc_mem_err_v1,8,3             ## @soc_mem_err_v1
L_.str.1:                               ## @.str.1
	.asciz	"SoC memory parity error 0x%08X\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s memory parity error\n"

	.no_dead_strip	_xgene_edac_soc_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_edac_soc_check
_xgene_edac_soc_check:                  ; @xgene_edac_soc_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x8, _PCPHPERRINTSTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCPHPERRINTSTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #28
	bl	_xgene_edac_pcp_rd
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x8, _PCPLPERRINTSTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCPLPERRINTSTS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_xgene_edac_pcp_rd
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x8, _MEMERRINTSTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MEMERRINTSTS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #20
	bl	_xgene_edac_pcp_rd
	ldr	w8, [sp, #28]
Lloh9:
	adrp	x21, _IOB_PA_ERR_MASK@GOTPAGE
Lloh10:
	ldr	x21, [x21, _IOB_PA_ERR_MASK@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh11:
	adrp	x23, _IOB_BA_ERR_MASK@GOTPAGE
Lloh12:
	ldr	x23, [x23, _IOB_BA_ERR_MASK@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w10, w9, w10
Lloh13:
	adrp	x11, _IOB_XGIC_ERR_MASK@GOTPAGE
Lloh14:
	ldr	x11, [x11, _IOB_XGIC_ERR_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
Lloh16:
	adrp	x24, _IOB_RB_ERR_MASK@GOTPAGE
Lloh17:
	ldr	x24, [x24, _IOB_RB_ERR_MASK@GOTPAGEOFF]
	orr	w12, w10, w11
	ldr	w10, [x24]
	orr	w12, w12, w10
Lloh18:
	adrp	x22, _CSW_SWITCH_TRACE_ERR_MASK@GOTPAGE
Lloh19:
	ldr	x22, [x22, _CSW_SWITCH_TRACE_ERR_MASK@GOTPAGEOFF]
	tst	w12, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w12, [sp, #24]
	ldr	w13, [x22]
	and	w12, w13, w12
	ldr	w13, [sp, #20]
	orr	w12, w12, w13
	cbz	w12, LBB0_18
LBB0_2:
	tst	w11, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_xgene_edac_iob_gic_report
	ldr	w8, [sp, #28]
	ldr	w10, [x24]
	ldr	w9, [x23]
LBB0_4:
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_xgene_edac_rb_report
	ldr	w8, [sp, #28]
LBB0_6:
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_xgene_edac_pa_report
LBB0_8:
	ldr	w8, [sp, #24]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x19, #4]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w3, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_edac_device_handle_ce
LBB0_10:
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_18
; %bb.11:
	ldr	w9, [x20]
	cmp	w9, #1
	b.ne	LBB0_17
; %bb.12:
Lloh22:
	adrp	x9, _soc_mem_err_v1@GOTPAGE
Lloh23:
	ldr	x9, [x9, _soc_mem_err_v1@GOTPAGEOFF]
Lloh24:
	ldr	x21, [x9]
	cbz	x21, LBB0_17
; %bb.13:
	mov	x22, #0
Lloh25:
	adrp	x20, l_.str.2@PAGE
Lloh26:
	add	x20, x20, l_.str.2@PAGEOFF
	lsr	w8, w8, w22
	tbz	w8, #0, LBB0_15
LBB0_14:
	ldr	w0, [x19, #4]
	ldr	x8, [x21, x22, lsl #3]
	str	x8, [sp]
	mov	x1, x20
	bl	_dev_err
	ldr	w3, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_edac_device_handle_ue
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	x22, #30
	b.eq	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [sp, #20]
	add	x22, x22, #1
	lsr	w8, w8, w22
	tbnz	w8, #0, LBB0_14
	b	LBB0_15
LBB0_17:
	ldr	w0, [x19, #4]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w3, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_edac_device_handle_ue
LBB0_18:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PCPHPERRINTSTS,4,2             ; @PCPHPERRINTSTS
	.comm	_PCPLPERRINTSTS,4,2             ; @PCPLPERRINTSTS
	.comm	_MEMERRINTSTS,4,2               ; @MEMERRINTSTS
	.comm	_IOB_PA_ERR_MASK,4,2            ; @IOB_PA_ERR_MASK
	.comm	_IOB_BA_ERR_MASK,4,2            ; @IOB_BA_ERR_MASK
	.comm	_IOB_XGIC_ERR_MASK,4,2          ; @IOB_XGIC_ERR_MASK
	.comm	_IOB_RB_ERR_MASK,4,2            ; @IOB_RB_ERR_MASK
	.comm	_CSW_SWITCH_TRACE_ERR_MASK,4,2  ; @CSW_SWITCH_TRACE_ERR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CSW switch trace correctable memory parity error\n"

	.comm	_soc_mem_err_v1,8,3             ; @soc_mem_err_v1
l_.str.1:                               ; @.str.1
	.asciz	"SoC memory parity error 0x%08X\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s memory parity error\n"

	.no_dead_strip	_xgene_edac_soc_check
.subsections_via_symbols
