	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sdram_scrub_rate
_get_sdram_scrub_rate:                  ## @get_sdram_scrub_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	8(%rax), %rcx
	movq	16(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rbx
	movq	_MC_SCRUB_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_pci_read_config_dword
	movq	_SCRUBINTERVAL_MASK@GOTPCREL(%rip), %rax
	movq	-16(%rbp), %rsi
	andq	(%rax), %rsi
	movq	%rsi, -16(%rbp)
	je	LBB0_3
## %bb.4:
	imulq	$64000000, %rbx, %rbx           ## imm = 0x3D09000
	movq	%rbx, %rdi
	callq	_do_div
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MC_SCRUB_CONTROL,4,2           ## @MC_SCRUB_CONTROL
	.comm	_SCRUBINTERVAL_MASK,8,3         ## @SCRUBINTERVAL_MASK
	.no_dead_strip	_get_sdram_scrub_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sdram_scrub_rate
_get_sdram_scrub_rate:                  ; @get_sdram_scrub_rate
	.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
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	ldr	x0, [x9, #16]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _MC_SCRUB_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC_SCRUB_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_pci_read_config_dword
Lloh3:
	adrp	x8, _SCRUBINTERVAL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCRUBINTERVAL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	ands	x1, x9, x8
	str	x1, [sp, #8]
	b.eq	LBB0_4
; %bb.2:
	mov	w8, #36864
	movk	w8, #976, lsl #16
	mul	x19, x19, x8
	mov	x0, x19
	bl	_do_div
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MC_SCRUB_CONTROL,4,2           ; @MC_SCRUB_CONTROL
	.comm	_SCRUBINTERVAL_MASK,8,3         ; @SCRUBINTERVAL_MASK
	.no_dead_strip	_get_sdram_scrub_rate
.subsections_via_symbols
