	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_edac_l3_hw_init
_xgene_edac_l3_hw_init:                 ## @xgene_edac_l3_hw_init
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	_L3C_ECR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movq	_L3C_UCERREN@GOTPCREL(%rip), %rcx
	movq	_L3C_CERREN@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	(%rbx), %rcx
	movq	_OP_RUNNING_INTERRUPT@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rcx
	jne	LBB0_4
## %bb.1:
	movq	_L3C_ECR_UCINTREN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_L3C_ECR_CINTREN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	orl	%eax, %edx
	orl	%ecx, %edx
	movl	%edx, %eax
	jmp	LBB0_4
LBB0_3:
	orl	%edx, %ecx
	notl	%ecx
	andl	%ecx, %eax
LBB0_4:
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.5:
	movl	(%r15), %edi
	movq	_PCPHPERRINTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_L3C_UNCORR_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.8:
	callq	_xgene_edac_pcp_clrbits
	movl	(%r15), %edi
	movq	_PCPLPERRINTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_L3C_CORR_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xgene_edac_pcp_clrbits         ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	_xgene_edac_pcp_setbits
	movl	(%r15), %edi
	movq	_PCPLPERRINTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_L3C_CORR_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xgene_edac_pcp_setbits         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L3C_ECR,8,3                    ## @L3C_ECR
	.comm	_L3C_UCERREN,4,2                ## @L3C_UCERREN
	.comm	_L3C_CERREN,4,2                 ## @L3C_CERREN
	.comm	_OP_RUNNING_INTERRUPT,8,3       ## @OP_RUNNING_INTERRUPT
	.comm	_L3C_ECR_UCINTREN,4,2           ## @L3C_ECR_UCINTREN
	.comm	_L3C_ECR_CINTREN,4,2            ## @L3C_ECR_CINTREN
	.comm	_PCPHPERRINTMSK,4,2             ## @PCPHPERRINTMSK
	.comm	_L3C_UNCORR_ERR_MASK,4,2        ## @L3C_UNCORR_ERR_MASK
	.comm	_PCPLPERRINTMSK,4,2             ## @PCPLPERRINTMSK
	.comm	_L3C_CORR_ERR_MASK,4,2          ## @L3C_CORR_ERR_MASK
	.no_dead_strip	_xgene_edac_l3_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_edac_l3_hw_init
_xgene_edac_l3_hw_init:                 ; @xgene_edac_l3_hw_init
	.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, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x22, _L3C_ECR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _L3C_ECR@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _L3C_UCERREN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _L3C_UCERREN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _L3C_CERREN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _L3C_CERREN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldr	x8, [x20]
Lloh8:
	adrp	x23, _OP_RUNNING_INTERRUPT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _OP_RUNNING_INTERRUPT@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _L3C_ECR_UCINTREN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _L3C_ECR_UCINTREN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _L3C_ECR_CINTREN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _L3C_ECR_CINTREN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w10, w0, w10
	orr	w8, w8, w0
	orr	w8, w8, w9
	cmp	w19, #0
	csel	w0, w10, w8, eq
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x21]
Lloh16:
	adrp	x8, _PCPHPERRINTMSK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCPHPERRINTMSK@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _L3C_UNCORR_ERR_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _L3C_UNCORR_ERR_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	cbz	w19, LBB0_6
; %bb.4:
	bl	_xgene_edac_pcp_clrbits
	ldr	w0, [x21]
Lloh22:
	adrp	x8, _PCPLPERRINTMSK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PCPLPERRINTMSK@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _L3C_CORR_ERR_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _L3C_CORR_ERR_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	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	_xgene_edac_pcp_clrbits
LBB0_5:
	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_6:
	bl	_xgene_edac_pcp_setbits
	ldr	w0, [x21]
Lloh28:
	adrp	x8, _PCPLPERRINTMSK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PCPLPERRINTMSK@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _L3C_CORR_ERR_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _L3C_CORR_ERR_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	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	_xgene_edac_pcp_setbits
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_L3C_ECR,8,3                    ; @L3C_ECR
	.comm	_L3C_UCERREN,4,2                ; @L3C_UCERREN
	.comm	_L3C_CERREN,4,2                 ; @L3C_CERREN
	.comm	_OP_RUNNING_INTERRUPT,8,3       ; @OP_RUNNING_INTERRUPT
	.comm	_L3C_ECR_UCINTREN,4,2           ; @L3C_ECR_UCINTREN
	.comm	_L3C_ECR_CINTREN,4,2            ; @L3C_ECR_CINTREN
	.comm	_PCPHPERRINTMSK,4,2             ; @PCPHPERRINTMSK
	.comm	_L3C_UNCORR_ERR_MASK,4,2        ; @L3C_UNCORR_ERR_MASK
	.comm	_PCPLPERRINTMSK,4,2             ; @PCPLPERRINTMSK
	.comm	_L3C_CORR_ERR_MASK,4,2          ; @L3C_CORR_ERR_MASK
	.no_dead_strip	_xgene_edac_l3_hw_init
.subsections_via_symbols
