	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd64_get_scrub_rate
_amd64_get_scrub_rate:                  ## @amd64_get_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movl	$0, -28(%rbp)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	movq	_boot_cpu_data@GOTPCREL(%rip), %rcx
	subl	(%rax), %r14d
	cmpl	$21, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_f15h_select_dct
LBB0_2:
	movl	(%rbx), %edi
	movq	_SCRCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_amd64_read_pci_cfg
	andl	$31, -28(%rbp)
	movq	_scrubrates@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%rdi,%rbx,8), %eax
	cmpl	-28(%rbp), %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movl	4(%rdi,%rbx,8), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_boot_cpu_data,4,2              ## @boot_cpu_data
	.comm	_SCRCTRL,4,2                    ## @SCRCTRL
	.comm	_scrubrates,8,3                 ## @scrubrates
	.no_dead_strip	_amd64_get_scrub_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd64_get_scrub_rate
_amd64_get_scrub_rate:                  ; @amd64_get_scrub_rate
	.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
	ldr	x20, [x0]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
Lloh3:
	adrp	x8, _boot_cpu_data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _boot_cpu_data@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #21
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_f15h_select_dct
LBB0_2:
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _SCRCTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCRCTRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_amd64_read_pci_cfg
	ldr	w8, [sp, #12]
	and	w8, w8, #0x1f
	str	w8, [sp, #12]
Lloh9:
	adrp	x20, _scrubrates@GOTPAGE
Lloh10:
	ldr	x20, [x20, _scrubrates@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x21, #0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w8, [x0, x21]
	ldr	w9, [sp, #12]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x21, x21, #8
	cmp	x22, w0, sxtw
	b.lt	LBB0_4
	b	LBB0_7
LBB0_6:
	add	x8, x0, x21
	ldr	w19, [x8, #4]
LBB0_7:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_boot_cpu_data,4,2              ; @boot_cpu_data
	.comm	_SCRCTRL,4,2                    ; @SCRCTRL
	.comm	_scrubrates,8,3                 ; @scrubrates
	.no_dead_strip	_amd64_get_scrub_rate
.subsections_via_symbols
