	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5100_set_scrub_rate
_i5100_set_scrub_rate:                  ## @i5100_set_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
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movl	4(%rbx), %edi
	movq	_I5100_MC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_dword
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
	movq	_I5100_MC_SCRBEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -28(%rbp)
	leaq	8(%rbx), %rdi
	movq	_I5100_SCRUB_REFRESH_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_schedule_delayed_work
	jmp	LBB0_3
LBB0_2:
	movl	$0, (%rbx)
	movq	_I5100_MC_SCRBEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -28(%rbp)
	leaq	8(%rbx), %rdi
	callq	_cancel_delayed_work
LBB0_3:
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	movl	-28(%rbp), %edx
	callq	_pci_write_config_dword
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-28(%rbp), %edi
	callq	_i5100_mc_scrben
	imull	$5900000, %eax, %eax            ## imm = 0x5A06E0
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I5100_MC,4,2                   ## @I5100_MC
	.comm	_I5100_MC_SCRBEN_MASK,4,2       ## @I5100_MC_SCRBEN_MASK
	.comm	_I5100_SCRUB_REFRESH_RATE,4,2   ## @I5100_SCRUB_REFRESH_RATE
	.no_dead_strip	_i5100_set_scrub_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5100_set_scrub_rate
_i5100_set_scrub_rate:                  ; @i5100_set_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
	mov	x19, x1
	ldr	x20, [x0]
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x21, _I5100_MC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I5100_MC@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	cbz	w19, LBB0_2
; %bb.1:
	mov	w8, #1
	mov	x0, x20
	str	w8, [x0], #8
Lloh2:
	adrp	x8, _I5100_MC_SCRBEN_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I5100_MC_SCRBEN_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
Lloh5:
	adrp	x8, _I5100_SCRUB_REFRESH_RATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I5100_SCRUB_REFRESH_RATE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_schedule_delayed_work
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	str	wzr, [x0], #8
Lloh8:
	adrp	x8, _I5100_MC_SCRBEN_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I5100_MC_SCRBEN_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
	bl	_cancel_delayed_work
LBB0_3:
	ldr	w0, [x20, #4]
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	bl	_pci_write_config_dword
	ldr	w0, [x20, #4]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w0, [sp, #12]
	bl	_i5100_mc_scrben
	mov	w8, #1760
	movk	w8, #90, lsl #16
	mul	w0, w0, w8
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_I5100_MC,4,2                   ; @I5100_MC
	.comm	_I5100_MC_SCRBEN_MASK,4,2       ; @I5100_MC_SCRBEN_MASK
	.comm	_I5100_SCRUB_REFRESH_RATE,4,2   ; @I5100_SCRUB_REFRESH_RATE
	.no_dead_strip	_i5100_set_scrub_rate
.subsections_via_symbols
