	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i7core_inject_enable_show
_i7core_inject_enable_show:             ## @i7core_inject_enable_show
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_to_mci
	movq	(%rax), %rbx
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movq	_MC_CHANNEL_ERROR_INJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-20(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_edac_dbg
	testb	$12, -20(%rbp)
	je	LBB0_3
## %bb.4:
	movl	$1, 8(%rbx)
	movl	$1, %edx
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movl	8(%rbx), %edx
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_sprintf
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CHANNEL_ERROR_INJECT,4,2    ## @MC_CHANNEL_ERROR_INJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inject error read: 0x%018x\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d\n"

	.no_dead_strip	_i7core_inject_enable_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i7core_inject_enable_show
_i7core_inject_enable_show:             ; @i7core_inject_enable_show
	.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, x2
	bl	_to_mci
	ldr	x20, [x0]
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _MC_CHANNEL_ERROR_INJECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC_CHANNEL_ERROR_INJECT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w2, [sp, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
	ldrb	w8, [sp, #12]
	tst	w8, #0xc
	b.eq	LBB0_3
; %bb.2:
	mov	w2, #1
	str	w2, [x20, #8]
	b	LBB0_4
LBB0_3:
	ldr	w2, [x20, #8]
LBB0_4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sprintf
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CHANNEL_ERROR_INJECT,4,2    ; @MC_CHANNEL_ERROR_INJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inject error read: 0x%018x\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d\n"

	.no_dead_strip	_i7core_inject_enable_show
.subsections_via_symbols
