	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_sdram_scrub_rate
_set_sdram_scrub_rate:                  ## @set_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	(%rax), %rcx
	movq	(%rcx), %rcx
	movq	_PCI_DEVICE_ID_INTEL_3100_0@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_scrubrates_i3100@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_scrubrates_e752x@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	8(%rax), %rdi
	movq	(%rcx), %r8
	movq	_SDRATE_EOT@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	$-1, %rdx
	movq	%r8, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	incq	%rdx
	addq	$16, %rbx
	cmpq	%rsi, %rcx
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r9, %rcx
	jne	LBB0_4
LBB0_6:
	movl	$-1, %eax
	cmpq	%r9, %rcx
	je	LBB0_8
## %bb.7:
	movl	%edx, %eax
	movq	_E752X_MCHSCRB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	shlq	$4, %rax
	movl	8(%r8,%rax), %edx
	callq	_pci_write_config_word
	movl	-16(%rbx), %eax
LBB0_8:
	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	_SDRATE_EOT,8,3                 ## @SDRATE_EOT
	.comm	_E752X_MCHSCRB,4,2              ## @E752X_MCHSCRB
	.no_dead_strip	_set_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 set_sdram_scrub_rate
_set_sdram_scrub_rate:                  ; @set_sdram_scrub_rate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _PCI_DEVICE_ID_INTEL_3100_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DEVICE_ID_INTEL_3100_0@GOTPAGEOFF]
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	x8, [x8]
Lloh7:
	adrp	x9, _SDRATE_EOT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SDRATE_EOT@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x9]
	mov	x9, #-1
	mov	x19, x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19], #16
	add	x9, x9, #1
	cmp	x11, x1
	ccmp	x11, x10, #4, lt
	b.ne	LBB0_1
; %bb.2:
	cmp	x11, x10
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x10, _E752X_MCHSCRB@GOTPAGE
Lloh11:
	ldr	x10, [x10, _E752X_MCHSCRB@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x10]
	add	x8, x8, w9, uxtw #4
	ldr	w2, [x8, #8]
	bl	_pci_write_config_word
	ldur	w0, [x19, #-16]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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	_SDRATE_EOT,8,3                 ; @SDRATE_EOT
	.comm	_E752X_MCHSCRB,4,2              ; @E752X_MCHSCRB
	.no_dead_strip	_set_sdram_scrub_rate
.subsections_via_symbols
