	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_edac_mc_is_active
_xgene_edac_mc_is_active:               ## @xgene_edac_mc_is_active
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	12(%rax), %edi
	movq	_CSW_CSWCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_CSW_CSWCR_DUALMCB_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r15), %rax
	testl	%ecx, -28(%rbp)
	je	LBB0_4
## %bb.2:
	movl	8(%rax), %edi
	movq	_MCBADDRMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	_MCBADDRMR_DUALMCU_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	movl	$5, %ecx
	movl	$15, %eax
	cmovel	%ecx, %eax
	jmp	LBB0_6
LBB0_4:
	movl	4(%rax), %edi
	movq	_MCBADDRMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movq	_MCBADDRMR_DUALMCU_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	testl	%eax, -28(%rbp)
	setne	%cl
	leal	(%rcx,%rcx), %eax
	incl	%eax
LBB0_6:
	movq	(%r15), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_8
## %bb.7:
	movl	%eax, (%rcx)
LBB0_8:
	xorl	%ebx, %ebx
	btl	%r14d, %eax
	setb	%bl
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_CSW_CSWCR,4,2                  ## @CSW_CSWCR
	.comm	_CSW_CSWCR_DUALMCB_MASK,4,2     ## @CSW_CSWCR_DUALMCB_MASK
	.comm	_MCBADDRMR,4,2                  ## @MCBADDRMR
	.comm	_MCBADDRMR_DUALMCU_MODE_MASK,4,2 ## @MCBADDRMR_DUALMCU_MODE_MASK
	.no_dead_strip	_xgene_edac_mc_is_active
.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_is_active
_xgene_edac_mc_is_active:               ; @xgene_edac_mc_is_active
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #12]
Lloh0:
	adrp	x8, _CSW_CSWCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSW_CSWCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	ldr	w9, [sp, #12]
Lloh3:
	adrp	x8, _CSW_CSWCR_DUALMCB_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSW_CSWCR_DUALMCB_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	ldr	x8, [x20]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x8, #8]
Lloh6:
	adrp	x8, _MCBADDRMR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCBADDRMR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	x0, LBB0_1
; %bb.5:
Lloh9:
	adrp	x8, _MCBADDRMR_DUALMCU_MODE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MCBADDRMR_DUALMCU_MODE_MASK@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w9
	mov	w8, #15
	mov	w9, #5
	csel	w8, w9, w8, eq
	b	LBB0_8
LBB0_6:
	ldr	w0, [x8, #4]
Lloh12:
	adrp	x8, _MCBADDRMR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCBADDRMR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	x0, LBB0_1
; %bb.7:
	ldr	w8, [sp, #12]
Lloh15:
	adrp	x9, _MCBADDRMR_DUALMCU_MODE_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MCBADDRMR_DUALMCU_MODE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #3
	csinc	w8, w8, wzr, ne
LBB0_8:
	ldr	x9, [x20]
	ldr	w10, [x9]
	cbnz	w10, LBB0_10
; %bb.9:
	str	w8, [x9]
LBB0_10:
	lsr	w8, w8, w19
	and	w0, w8, #0x1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CSW_CSWCR,4,2                  ; @CSW_CSWCR
	.comm	_CSW_CSWCR_DUALMCB_MASK,4,2     ; @CSW_CSWCR_DUALMCB_MASK
	.comm	_MCBADDRMR,4,2                  ; @MCBADDRMR
	.comm	_MCBADDRMR_DUALMCU_MODE_MASK,4,2 ; @MCBADDRMR_DUALMCU_MODE_MASK
	.no_dead_strip	_xgene_edac_mc_is_active
.subsections_via_symbols
