	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i7core_inject_enable_store
_i7core_inject_enable_store:            ## @i7core_inject_enable_store
	.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
	movq	(%rdi), %r12
	movq	(%r12), %rax
	movq	56(%r12), %rcx
	movq	(%rcx,%rax,8), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rdx
	movq	%rsi, %rdi
	movl	$10, %esi
	callq	_strict_strtoul
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	cmpq	$0, -48(%rbp)
	je	LBB0_8
## %bb.3:
	movl	$1, 8(%r12)
	movl	12(%r12), %eax
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movq	(%r12), %rcx
	movq	64(%r12), %rdx
	cmpl	$3, (%rdx,%rcx,4)
	jl	LBB0_10
## %bb.5:
	andl	$3, %eax
	shlq	$35, %rax
	jmp	LBB0_11
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_8:
	movq	%rbx, %rdi
	callq	_disable_inject
	jmp	LBB0_18
LBB0_9:
	movabsq	$2199023255552, %rax            ## imm = 0x20000000000
	jmp	LBB0_11
LBB0_10:
	andl	$1, %eax
	shlq	$36, %rax
LBB0_11:
	movl	16(%r12), %ecx
	testl	%ecx, %ecx
	js	LBB0_14
## %bb.12:
	movq	(%r12), %rdx
	movq	64(%r12), %rsi
	cmpl	$3, (%rsi,%rdx,4)
	jl	LBB0_15
## %bb.13:
	andl	$1, %ecx
	jmp	LBB0_16
LBB0_14:
	movabsq	$1099511627776, %rcx            ## imm = 0x10000000000
	jmp	LBB0_17
LBB0_15:
	andl	$3, %ecx
LBB0_16:
	shlq	$34, %rcx
LBB0_17:
	orq	%rcx, %rax
	movl	20(%r12), %ecx
	movl	24(%r12), %edx
	movl	%ecx, %esi
	andl	$21, %esi
	shlq	$30, %rsi
	testl	%ecx, %ecx
	movabsq	$549755813888, %rcx             ## imm = 0x8000000000
	cmovnsq	%rsi, %rcx
	orq	%rax, %rcx
	movzwl	%dx, %eax
	shlq	$14, %rax
	testl	%edx, %edx
	movabsq	$274877906944, %rdx             ## imm = 0x4000000000
	cmovnsq	%rax, %rdx
	movl	28(%r12), %eax
	movl	%eax, %esi
	andl	$16383, %esi                    ## imm = 0x3FFF
	testl	%eax, %eax
	movabsq	$137438953472, %rbx             ## imm = 0x2000000000
	cmovnsq	%rsi, %rbx
	orq	%rdx, %rbx
	orq	%rcx, %rbx
	movl	32(%r12), %eax
	movl	%eax, %ecx
	andl	$1, %ecx
	movl	36(%r12), %edx
	andl	$3, %edx
	andl	$6, %eax
	leaq	(%rcx,%rax,4), %rax
	leaq	(%rax,%rdx,2), %r15
	movl	48(%r12), %edi
	movq	_MC_CFG_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edx
	callq	_pci_write_config_dword
	movq	(%r12), %rax
	movq	56(%r12), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	movq	_MC_CHANNEL_ADDR_MATCH@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%rbx, %rdx
	callq	_write_and_test
	movq	(%r12), %rax
	movq	56(%r12), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	movq	(%r13), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdx
	shrq	$32, %rdx
	callq	_write_and_test
	movq	56(%r12), %rax
	movq	(%r12), %rcx
	movq	40(%r12), %rdx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	movq	_MC_CHANNEL_ERROR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_write_and_test
	movq	(%r12), %rax
	movq	56(%r12), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	movq	_MC_CHANNEL_ERROR_INJECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdx
	callq	_write_and_test
	movl	48(%r12), %edi
	movq	_MC_CFG_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_pci_write_config_dword
	movq	40(%r12), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rcx
	callq	_debugf0
LBB0_18:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CFG_CONTROL,4,2             ## @MC_CFG_CONTROL
	.comm	_MC_CHANNEL_ADDR_MATCH,8,3      ## @MC_CHANNEL_ADDR_MATCH
	.comm	_MC_CHANNEL_ERROR_MASK,8,3      ## @MC_CHANNEL_ERROR_MASK
	.comm	_MC_CHANNEL_ERROR_INJECT,8,3    ## @MC_CHANNEL_ERROR_INJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error inject addr match 0x%016llx, ecc 0x%08x, inject 0x%08x\n"

	.no_dead_strip	_i7core_inject_enable_store
.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_store
_i7core_inject_enable_store:            ; @i7core_inject_enable_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x22, [x0]
	ldr	x8, [x22, #56]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x1
	mov	w1, #10
	bl	_strict_strtoul
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.3:
	mov	w8, #1
	str	w8, [x22, #8]
	ldr	w8, [x22, #12]
	tbnz	w8, #31, LBB0_8
; %bb.4:
	ldr	x9, [x22, #64]
	ldr	x10, [x22]
	ldr	w9, [x9, x10, lsl #2]
	cmp	w9, #3
	and	w9, w8, #0x1
	lsl	x9, x9, #36
	and	w8, w8, #0x3
	lsl	x8, x8, #35
	csel	x8, x9, x8, lt
	ldr	w9, [x22, #16]
	tbnz	w9, #31, LBB0_9
LBB0_5:
	ldr	x10, [x22, #64]
	ldr	x11, [x22]
	ldr	w10, [x10, x11, lsl #2]
	cmp	w10, #3
	and	w10, w9, #0x3
	orr	x10, x8, x10, lsl #34
	and	w9, w9, #0x1
	orr	x8, x8, x9, lsl #34
	csel	x8, x10, x8, lt
	b	LBB0_10
LBB0_6:
	mov	x19, #0
	b	LBB0_11
LBB0_7:
	mov	x0, x20
	bl	_disable_inject
	b	LBB0_11
LBB0_8:
	mov	x8, #2199023255552
	ldr	w9, [x22, #16]
	tbz	w9, #31, LBB0_5
LBB0_9:
	orr	x8, x8, #0x10000000000
LBB0_10:
	mov	w9, #21
	ldp	w10, w11, [x22, #20]
	and	x9, x10, x9
	lsl	x9, x9, #30
	cmp	w10, #0
	mov	x10, #549755813888
	csel	x9, x10, x9, lt
	orr	x8, x9, x8
	lsl	w9, w11, #14
	and	x9, x9, #0x3fffc000
	cmp	w11, #0
	mov	x10, #274877906944
	csel	x9, x10, x9, lt
	orr	x8, x8, x9
	ldp	w9, w10, [x22, #28]
	and	x11, x9, #0x3fff
	cmp	w9, #0
	mov	x9, #137438953472
	csel	x9, x9, x11, lt
	orr	x20, x8, x9
	ldr	w8, [x22, #36]
	lsl	w8, w8, #1
	and	x8, x8, #0x6
	lsl	w9, w10, #2
	and	x9, x9, #0x18
	bfxil	x9, x10, #0, #1
	orr	x21, x9, x8
	ldr	w0, [x22, #48]
Lloh0:
	adrp	x23, _MC_CFG_CONTROL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MC_CFG_CONTROL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #2
	bl	_pci_write_config_dword
	ldr	x8, [x22, #56]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
Lloh2:
	adrp	x24, _MC_CHANNEL_ADDR_MATCH@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MC_CHANNEL_ADDR_MATCH@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x2, x20
	bl	_write_and_test
	ldr	x8, [x22, #56]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
	ldr	x8, [x24]
	add	x1, x8, #4
	lsr	x2, x20, #32
	bl	_write_and_test
	ldr	x8, [x22, #56]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
Lloh4:
	adrp	x8, _MC_CHANNEL_ERROR_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MC_CHANNEL_ERROR_MASK@GOTPAGEOFF]
Lloh6:
	ldr	x1, [x8]
	ldr	x2, [x22, #40]
	bl	_write_and_test
	ldr	x8, [x22, #56]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _MC_CHANNEL_ERROR_INJECT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MC_CHANNEL_ERROR_INJECT@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
	mov	x2, x21
	bl	_write_and_test
	ldr	w0, [x22, #48]
	ldr	w1, [x23]
	mov	w2, #8
	bl	_pci_write_config_dword
	ldr	x2, [x22, #40]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x3, x21
	bl	_debugf0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CFG_CONTROL,4,2             ; @MC_CFG_CONTROL
	.comm	_MC_CHANNEL_ADDR_MATCH,8,3      ; @MC_CHANNEL_ADDR_MATCH
	.comm	_MC_CHANNEL_ERROR_MASK,8,3      ; @MC_CHANNEL_ERROR_MASK
	.comm	_MC_CHANNEL_ERROR_INJECT,8,3    ; @MC_CHANNEL_ERROR_INJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error inject addr match 0x%016llx, ecc 0x%08x, inject 0x%08x\n"

	.no_dead_strip	_i7core_inject_enable_store
.subsections_via_symbols
