	.file	"extr_amd64_edac.c___amd64_set_scrub_rate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__amd64_set_scrub_rate, @function
__amd64_set_scrub_rate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR scrubrates[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR scrubrates[rip]
	lea	rax, [rdi+r15]
	mov	r14, QWORD PTR [rax]
	cmp	r14, rbp
	jl	.L3
	cmp	QWORD PTR 8[rax], r12
	jle	.L4
.L3:
	add	rbx, 1
.L2:
	call	ARRAY_SIZE@PLT
	mov	r15, rbx
	sal	r15, 4
	cmp	eax, ebx
	jg	.L5
	mov	rax, QWORD PTR scrubrates[rip]
	mov	r14, QWORD PTR [rax+r15]
.L4:
	mov	esi, DWORD PTR SCRCTRL[rip]
	mov	ecx, 31
	mov	rdx, r14
	mov	rdi, r13
	call	pci_write_bits32@PLT
	xor	eax, eax
	test	r14, r14
	je	.L1
	mov	rax, QWORD PTR scrubrates[rip]
	mov	eax, DWORD PTR 8[rax+r15]
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	__amd64_set_scrub_rate, .-__amd64_set_scrub_rate
	.comm	scrubrates,8,8
	.comm	SCRCTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_amd64_edac.c___amd64_set_scrub_rate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__amd64_set_scrub_rate, %function
__amd64_set_scrub_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L12
	mov	r10, r0
	mov	r9, r1
	mov	r7, r2
	mov	r4, #0
	ldr	r0, [r8]
	b	.L2
.L5:
	ldr	r0, [r8]
	ldr	r5, [r0, r4, lsl #3]
	add	r3, r0, r6
	cmp	r5, r7
	blt	.L3
	ldr	r3, [r3, #4]
	cmp	r3, r9
	ble	.L4
.L3:
	add	r4, r4, #1
.L2:
	bl	ARRAY_SIZE
	cmp	r0, r4
	lsl	r6, r4, #3
	bgt	.L5
	ldr	r3, [r8]
	ldr	r5, [r3, r6]
.L4:
	ldr	r3, .L12+4
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r10
	mov	r3, #31
	bl	pci_write_bits32
	cmp	r5, #0
	ldrne	r3, [r8]
	addne	r6, r3, r6
	ldrne	r5, [r6, #4]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	scrubrates
	.word	SCRCTRL
	.size	__amd64_set_scrub_rate, .-__amd64_set_scrub_rate
	.comm	scrubrates,4,4
	.comm	SCRCTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
