	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_edac_pmd_hw_ctl
_xgene_edac_pmd_hw_ctl:                 ## @xgene_edac_pmd_hw_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_OP_RUNNING_INTERRUPT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	8(%r14), %rax
	movq	_PMD0_MERR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	4(%rax), %edi
	movq	_PCPHPERRINTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	movl	%eax, %esi
	callq	_xgene_edac_pcp_clrbits
	jmp	LBB0_5
LBB0_4:
	testl	%esi, %esi
	je	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	callq	_xgene_edac_pmd_hw_cfg
	movq	_MAX_CPU_PER_PMD@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_xgene_edac_pmd_cpu_hw_cfg
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xgene_edac_pcp_setbits         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_RUNNING_INTERRUPT,8,3       ## @OP_RUNNING_INTERRUPT
	.comm	_PCPHPERRINTMSK,4,2             ## @PCPHPERRINTMSK
	.comm	_PMD0_MERR_MASK,4,2             ## @PMD0_MERR_MASK
	.comm	_MAX_CPU_PER_PMD,4,2            ## @MAX_CPU_PER_PMD
	.no_dead_strip	_xgene_edac_pmd_hw_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_pmd_hw_ctl
_xgene_edac_pmd_hw_ctl:                 ; @xgene_edac_pmd_hw_ctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _OP_RUNNING_INTERRUPT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OP_RUNNING_INTERRUPT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x8, _PCPHPERRINTMSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCPHPERRINTMSK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _PMD0_MERR_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PMD0_MERR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	ldp	w9, w0, [x9]
	lsl	w2, w10, w9
	cbz	w1, LBB0_8
; %bb.2:
	mov	x1, x8
	bl	_xgene_edac_pcp_clrbits
	b	LBB0_4
LBB0_3:
	cbz	w1, LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_xgene_edac_pmd_hw_cfg
Lloh9:
	adrp	x21, _MAX_CPU_PER_PMD@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MAX_CPU_PER_PMD@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_xgene_edac_pmd_cpu_hw_cfg
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x1, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_xgene_edac_pcp_setbits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_RUNNING_INTERRUPT,8,3       ; @OP_RUNNING_INTERRUPT
	.comm	_PCPHPERRINTMSK,4,2             ; @PCPHPERRINTMSK
	.comm	_PMD0_MERR_MASK,4,2             ; @PMD0_MERR_MASK
	.comm	_MAX_CPU_PER_PMD,4,2            ; @MAX_CPU_PER_PMD
	.no_dead_strip	_xgene_edac_pmd_hw_ctl
.subsections_via_symbols
