	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd64_inject_write_store
_amd64_inject_write_store:              ## @amd64_inject_write_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rdi), %rbx
	leaq	-40(%rbp), %rdx
	movq	%rsi, %rdi
	movl	$10, %esi
	callq	_strict_strtoul
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_1
## %bb.2:
	movslq	%eax, %r14
	jmp	LBB0_3
LBB0_1:
	movq	_F10_NB_ARRAY_DRAM_ECC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	12(%rbx), %edi
	callq	_SET_NB_ARRAY_ADDRESS
	orl	%eax, %r12d
	movl	(%rbx), %edi
	movq	_F10_NB_ARRAY_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_amd64_write_pci_cfg
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_SET_NB_DRAM_INJECTION_WRITE
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_F10_NB_ARRAY_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_amd64_write_pci_cfg
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_debugf0
LBB0_3:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_F10_NB_ARRAY_DRAM_ECC,4,2      ## @F10_NB_ARRAY_DRAM_ECC
	.comm	_F10_NB_ARRAY_ADDR,4,2          ## @F10_NB_ARRAY_ADDR
	.comm	_F10_NB_ARRAY_DATA,4,2          ## @F10_NB_ARRAY_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"section=0x%x word_bits=0x%x\n"

	.no_dead_strip	_amd64_inject_write_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd64_inject_write_store
_amd64_inject_write_store:              ; @amd64_inject_write_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	ldr	x22, [x0]
	add	x2, sp, #8
	mov	x0, x1
	mov	w1, #10
	bl	_strict_strtoul
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
	sxtw	x19, w0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _F10_NB_ARRAY_DRAM_ECC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _F10_NB_ARRAY_DRAM_ECC@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	ldr	w0, [x22, #12]
	bl	_SET_NB_ARRAY_ADDRESS
	orr	w20, w0, w20
	ldr	w0, [x22]
Lloh6:
	adrp	x8, _F10_NB_ARRAY_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _F10_NB_ARRAY_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_amd64_write_pci_cfg
	ldp	w1, w0, [x22, #4]
	bl	_SET_NB_DRAM_INJECTION_WRITE
	mov	x21, x0
	ldr	w0, [x22]
Lloh9:
	adrp	x8, _F10_NB_ARRAY_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F10_NB_ARRAY_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_amd64_write_pci_cfg
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_debugf0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_F10_NB_ARRAY_DRAM_ECC,4,2      ; @F10_NB_ARRAY_DRAM_ECC
	.comm	_F10_NB_ARRAY_ADDR,4,2          ; @F10_NB_ARRAY_ADDR
	.comm	_F10_NB_ARRAY_DATA,4,2          ; @F10_NB_ARRAY_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"section=0x%x word_bits=0x%x\n"

	.no_dead_strip	_amd64_inject_write_store
.subsections_via_symbols
