	.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), %rdi
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_PCI_DEVICE_ID_INTEL_3100_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_scrubrates_i3100@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_scrubrates_e752x@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rbx
	movq	_E752X_MCHSCRB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_pci_read_config_word
	movl	-12(%rbp), %edx
	andl	$15, %edx
	movl	%edx, -12(%rbp)
	movq	_SDRATE_EOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rbx), %rax
	cmpq	%rcx, %rax
	jne	LBB0_4
LBB0_9:
	movq	_KERN_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_e752x_printk
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_4:
	cmpl	%edx, 8(%rbx)
	je	LBB0_8
## %bb.5:
	addq	$24, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rbx), %rax
	cmpq	%rcx, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	16(%rbx), %rsi
	cmpl	%edx, (%rbx)
	movq	%rsi, %rbx
	jne	LBB0_6
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DEVICE_ID_INTEL_3100_0,8,3 ## @PCI_DEVICE_ID_INTEL_3100_0
	.comm	_scrubrates_i3100,8,3           ## @scrubrates_i3100
	.comm	_scrubrates_e752x,8,3           ## @scrubrates_e752x
	.comm	_E752X_MCHSCRB,4,2              ## @E752X_MCHSCRB
	.comm	_SDRATE_EOT,8,3                 ## @SDRATE_EOT
	.comm	_KERN_WARNING,4,2               ## @KERN_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid sdram scrub control value: 0x%x\n"

	.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]
	ldp	x8, x0, [x8]
Lloh0:
	adrp	x9, _PCI_DEVICE_ID_INTEL_3100_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DEVICE_ID_INTEL_3100_0@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _scrubrates_i3100@GOTPAGE
Lloh4:
	ldr	x10, [x10, _scrubrates_i3100@GOTPAGEOFF]
Lloh5:
	adrp	x11, _scrubrates_e752x@GOTPAGE
Lloh6:
	ldr	x11, [x11, _scrubrates_e752x@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x19, [x8]
Lloh7:
	adrp	x8, _E752X_MCHSCRB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E752X_MCHSCRB@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	and	w2, w8, #0xf
	str	w2, [sp, #12]
Lloh10:
	adrp	x8, _SDRATE_EOT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDRATE_EOT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x0, [x19]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
Lloh13:
	adrp	x8, _KERN_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KERN_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_e752x_printk
	mov	w0, #-1
	b	LBB0_6
LBB0_2:
	ldr	w9, [x19, #8]
	cmp	w9, w2
	b.eq	LBB0_6
; %bb.3:
	add	x9, x19, #24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x9, #-8]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x9], #16
	cmp	w10, w2
	b.ne	LBB0_4
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DEVICE_ID_INTEL_3100_0,8,3 ; @PCI_DEVICE_ID_INTEL_3100_0
	.comm	_scrubrates_i3100,8,3           ; @scrubrates_i3100
	.comm	_scrubrates_e752x,8,3           ; @scrubrates_e752x
	.comm	_E752X_MCHSCRB,4,2              ; @E752X_MCHSCRB
	.comm	_SDRATE_EOT,8,3                 ; @SDRATE_EOT
	.comm	_KERN_WARNING,4,2               ; @KERN_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid sdram scrub control value: 0x%x\n"

	.no_dead_strip	_get_sdram_scrub_rate
.subsections_via_symbols
