	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_edac_mc_irq_ctl
_xgene_edac_mc_irq_ctl:                 ## @xgene_edac_mc_irq_ctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_edac_op_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EDAC_OPSTATE_INT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movq	8(%r14), %rdi
	addq	$8, %rdi
	callq	_mutex_lock
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.2:
	movb	(%r14), %al
	movq	8(%r14), %rdi
	movl	(%rdi), %ecx
	btsl	%eax, %ecx
	movl	%ecx, (%rdi)
	cmpl	4(%rdi), %ecx
	jne	LBB0_4
## %bb.3:
	movq	_PCPHPERRINTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCU_UNCORR_ERR_MASK@GOTPCREL(%rip), %rax
	movq	_MCU_CTL_ERR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_xgene_edac_pcp_clrbits
	movq	8(%r14), %rdi
	movq	_PCPLPERRINTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCU_CORR_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_xgene_edac_pcp_clrbits
LBB0_4:
	movq	_MCUGECR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	16(%r14), %rdi
	callq	_readl
	movq	_MCU_GECR_DEMANDUCINTREN_MASK@GOTPCREL(%rip), %rcx
	movq	_MCU_GECR_BACKUCINTREN_MASK@GOTPCREL(%rip), %rdx
	movq	_MCU_GECR_CINTREN_MASK@GOTPCREL(%rip), %rsi
	movq	_MUC_GECR_MCUADDRERREN_MASK@GOTPCREL(%rip), %rdi
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	movq	(%rbx), %rsi
	addq	16(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	8(%r14), %rdi
	jmp	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_MCUGECR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	16(%r14), %rdi
	callq	_readl
	movq	_MCU_GECR_DEMANDUCINTREN_MASK@GOTPCREL(%rip), %rcx
	movq	_MCU_GECR_BACKUCINTREN_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_MCU_GECR_CINTREN_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_MUC_GECR_MCUADDRERREN_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%rbx), %rsi
	addq	16(%r14), %rsi
	callq	_writel
	movq	8(%r14), %rdi
	movq	_PCPHPERRINTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCU_UNCORR_ERR_MASK@GOTPCREL(%rip), %rax
	movq	_MCU_CTL_ERR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_xgene_edac_pcp_setbits
	movq	8(%r14), %rdi
	movq	_PCPLPERRINTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCU_CORR_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_xgene_edac_pcp_setbits
	movb	(%r14), %cl
	movl	$-2, %eax
	roll	%cl, %eax
	movq	8(%r14), %rdi
	andl	%eax, (%rdi)
LBB0_6:
	addq	$8, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_edac_op_state,8,3              ## @edac_op_state
	.comm	_EDAC_OPSTATE_INT,8,3           ## @EDAC_OPSTATE_INT
	.comm	_PCPHPERRINTMSK,4,2             ## @PCPHPERRINTMSK
	.comm	_MCU_UNCORR_ERR_MASK,4,2        ## @MCU_UNCORR_ERR_MASK
	.comm	_MCU_CTL_ERR_MASK,4,2           ## @MCU_CTL_ERR_MASK
	.comm	_PCPLPERRINTMSK,4,2             ## @PCPLPERRINTMSK
	.comm	_MCU_CORR_ERR_MASK,4,2          ## @MCU_CORR_ERR_MASK
	.comm	_MCUGECR,8,3                    ## @MCUGECR
	.comm	_MCU_GECR_DEMANDUCINTREN_MASK,4,2 ## @MCU_GECR_DEMANDUCINTREN_MASK
	.comm	_MCU_GECR_BACKUCINTREN_MASK,4,2 ## @MCU_GECR_BACKUCINTREN_MASK
	.comm	_MCU_GECR_CINTREN_MASK,4,2      ## @MCU_GECR_CINTREN_MASK
	.comm	_MUC_GECR_MCUADDRERREN_MASK,4,2 ## @MUC_GECR_MCUADDRERREN_MASK
	.no_dead_strip	_xgene_edac_mc_irq_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_edac_mc_irq_ctl
_xgene_edac_mc_irq_ctl:                 ; @xgene_edac_mc_irq_ctl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _edac_op_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _edac_op_state@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EDAC_OPSTATE_INT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EDAC_OPSTATE_INT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	ldr	x20, [x0]
	ldr	x8, [x20, #8]
	add	x0, x8, #8
	bl	_mutex_lock
	cbz	w19, LBB0_6
; %bb.2:
	ldr	w8, [x20]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x0, [x20, #8]
	ldp	w9, w10, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	cmp	w8, w10
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _PCPHPERRINTMSK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCPHPERRINTMSK@GOTPAGEOFF]
Lloh8:
	adrp	x9, _MCU_UNCORR_ERR_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MCU_UNCORR_ERR_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _MCU_CTL_ERR_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MCU_CTL_ERR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_xgene_edac_pcp_clrbits
	ldr	x0, [x20, #8]
Lloh15:
	adrp	x8, _PCPLPERRINTMSK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCPLPERRINTMSK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _MCU_CORR_ERR_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MCU_CORR_ERR_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_xgene_edac_pcp_clrbits
LBB0_4:
	ldr	x8, [x20, #16]
Lloh21:
	adrp	x19, _MCUGECR@GOTPAGE
Lloh22:
	ldr	x19, [x19, _MCUGECR@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_readl
Lloh23:
	adrp	x8, _MCU_GECR_DEMANDUCINTREN_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MCU_GECR_DEMANDUCINTREN_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _MCU_GECR_BACKUCINTREN_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MCU_GECR_BACKUCINTREN_MASK@GOTPAGEOFF]
Lloh28:
	adrp	x10, _MCU_GECR_CINTREN_MASK@GOTPAGE
Lloh29:
	ldr	x10, [x10, _MCU_GECR_CINTREN_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	ldr	w10, [x10]
Lloh32:
	adrp	x11, _MUC_GECR_MCUADDRERREN_MASK@GOTPAGE
Lloh33:
	ldr	x11, [x11, _MUC_GECR_MCUADDRERREN_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w0, w8, w11
	ldr	x8, [x20, #16]
	ldr	x9, [x19]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #8]
	b	LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x20, #16]
Lloh35:
	adrp	x19, _MCUGECR@GOTPAGE
Lloh36:
	ldr	x19, [x19, _MCUGECR@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_readl
Lloh37:
	adrp	x8, _MCU_GECR_DEMANDUCINTREN_MASK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MCU_GECR_DEMANDUCINTREN_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _MCU_GECR_BACKUCINTREN_MASK@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MCU_GECR_BACKUCINTREN_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh43:
	adrp	x9, _MCU_GECR_CINTREN_MASK@GOTPAGE
Lloh44:
	ldr	x9, [x9, _MCU_GECR_CINTREN_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh46:
	adrp	x9, _MUC_GECR_MCUADDRERREN_MASK@GOTPAGE
Lloh47:
	ldr	x9, [x9, _MUC_GECR_MCUADDRERREN_MASK@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w0, w0, w8
	ldr	x8, [x20, #16]
	ldr	x9, [x19]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x20, #8]
Lloh49:
	adrp	x8, _PCPHPERRINTMSK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PCPHPERRINTMSK@GOTPAGEOFF]
Lloh51:
	adrp	x9, _MCU_UNCORR_ERR_MASK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _MCU_UNCORR_ERR_MASK@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
Lloh54:
	ldr	w8, [x9]
Lloh55:
	adrp	x9, _MCU_CTL_ERR_MASK@GOTPAGE
Lloh56:
	ldr	x9, [x9, _MCU_CTL_ERR_MASK@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_xgene_edac_pcp_setbits
	ldr	x0, [x20, #8]
Lloh58:
	adrp	x8, _PCPLPERRINTMSK@GOTPAGE
Lloh59:
	ldr	x8, [x8, _PCPLPERRINTMSK@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
Lloh61:
	adrp	x8, _MCU_CORR_ERR_MASK@GOTPAGE
Lloh62:
	ldr	x8, [x8, _MCU_CORR_ERR_MASK@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	bl	_xgene_edac_pcp_setbits
	ldr	w8, [x20]
	mov	w9, #1
	lsl	w9, w9, w8
	ldr	x8, [x20, #8]
	ldr	w10, [x8]
	bic	w9, w10, w9
	str	w9, [x8]
LBB0_7:
	add	x0, x8, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh53
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_edac_op_state,8,3              ; @edac_op_state
	.comm	_EDAC_OPSTATE_INT,8,3           ; @EDAC_OPSTATE_INT
	.comm	_PCPHPERRINTMSK,4,2             ; @PCPHPERRINTMSK
	.comm	_MCU_UNCORR_ERR_MASK,4,2        ; @MCU_UNCORR_ERR_MASK
	.comm	_MCU_CTL_ERR_MASK,4,2           ; @MCU_CTL_ERR_MASK
	.comm	_PCPLPERRINTMSK,4,2             ; @PCPLPERRINTMSK
	.comm	_MCU_CORR_ERR_MASK,4,2          ; @MCU_CORR_ERR_MASK
	.comm	_MCUGECR,8,3                    ; @MCUGECR
	.comm	_MCU_GECR_DEMANDUCINTREN_MASK,4,2 ; @MCU_GECR_DEMANDUCINTREN_MASK
	.comm	_MCU_GECR_BACKUCINTREN_MASK,4,2 ; @MCU_GECR_BACKUCINTREN_MASK
	.comm	_MCU_GECR_CINTREN_MASK,4,2      ; @MCU_GECR_CINTREN_MASK
	.comm	_MUC_GECR_MCUADDRERREN_MASK,4,2 ; @MUC_GECR_MCUADDRERREN_MASK
	.no_dead_strip	_xgene_edac_mc_irq_ctl
.subsections_via_symbols
