	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_sdram_scrub_setting
_enable_sdram_scrub_setting:            ## @enable_sdram_scrub_setting
	.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	8(%rdi), %rbx
	movl	(%rbx), %edi
	movq	_MC_CFG_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-28(%rbp), %edx
	andl	$-4, %edx
	movl	%edx, -28(%rbp)
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	_MC_CFG_UNLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_pci_write_config_dword
	movq	_set_sdram_scrub_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_get_sdram_scrub_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CFG_CONTROL,4,2             ## @MC_CFG_CONTROL
	.comm	_MC_CFG_UNLOCK,4,2              ## @MC_CFG_UNLOCK
	.comm	_set_sdram_scrub_rate,4,2       ## @set_sdram_scrub_rate
	.comm	_get_sdram_scrub_rate,4,2       ## @get_sdram_scrub_rate
	.no_dead_strip	_enable_sdram_scrub_setting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_sdram_scrub_setting
_enable_sdram_scrub_setting:            ; @enable_sdram_scrub_setting
	.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, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x20]
Lloh0:
	adrp	x21, _MC_CFG_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MC_CFG_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffffc
	str	w8, [sp, #12]
	ldr	w0, [x20]
	ldr	w1, [x21]
Lloh2:
	adrp	x9, _MC_CFG_UNLOCK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MC_CFG_UNLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_pci_write_config_dword
Lloh5:
	adrp	x8, _set_sdram_scrub_rate@GOTPAGE
Lloh6:
	ldr	x8, [x8, _set_sdram_scrub_rate@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _get_sdram_scrub_rate@GOTPAGE
Lloh9:
	ldr	x9, [x9, _get_sdram_scrub_rate@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CFG_CONTROL,4,2             ; @MC_CFG_CONTROL
	.comm	_MC_CFG_UNLOCK,4,2              ; @MC_CFG_UNLOCK
	.comm	_set_sdram_scrub_rate,4,2       ; @set_sdram_scrub_rate
	.comm	_get_sdram_scrub_rate,4,2       ; @get_sdram_scrub_rate
	.no_dead_strip	_enable_sdram_scrub_setting
.subsections_via_symbols
