	.file	"extr_aspeed_edac.c_init_csrows.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/memory"
.LC1:
	.string	"dt: missing /memory node\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"dt: failed requesting resource for /memory node\n"
	.align 8
.LC3:
	.string	"dt: /memory node resources: first page r.start=0x%x, resource_size=0x%x, PAGE_SHIFT macro=0x%x\n"
	.align 8
.LC4:
	.string	"initialized dimm with first_page=0x%lx and nr_pages=0x%x\n"
	.text
	.p2align 4
	.type	init_csrows, @function
init_csrows:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	mov	r13, QWORD PTR [rax]
	call	of_find_node_by_path@PLT
	test	rax, rax
	je	.L10
	mov	r14, rsp
	xor	esi, esi
	mov	rdi, rax
	mov	rbp, rax
	mov	rdx, r14
	call	of_address_to_resource@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	of_node_put@PLT
	test	r12d, r12d
	jne	.L11
	mov	rdi, r14
	mov	ebp, DWORD PTR PAGE_SHIFT[rip]
	call	resource_size@PLT
	mov	edx, DWORD PTR [rsp]
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC3[rip]
	mov	ecx, eax
	mov	r8d, ebp
	xor	eax, eax
	call	dev_dbg@PLT
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	eax, DWORD PTR [rsp]
	mov	rdi, r14
	sar	eax, cl
	mov	DWORD PTR 0[r13], eax
	call	resource_size@PLT
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	esi, DWORD PTR ASPEED_MCR_CONF[rip]
	lea	rdx, 4[rsp]
	mov	edi, DWORD PTR aspeed_regmap[rip]
	sar	eax, cl
	mov	r14d, eax
	add	eax, DWORD PTR 0[r13]
	sub	eax, 1
	mov	DWORD PTR 4[r13], eax
	call	regmap_read@PLT
	mov	rdx, QWORD PTR 16[r13]
	mov	eax, DWORD PTR 4[rsp]
	lea	rsi, .LC4[rip]
	test	DWORD PTR ASPEED_MCR_CONF_DRAM_TYPE[rip], eax
	mov	eax, DWORD PTR MEM_DDR4[rip]
	mov	rdx, QWORD PTR [rdx]
	cmove	eax, DWORD PTR MEM_DDR3[rip]
	mov	edi, DWORD PTR [rbx]
	mov	rcx, QWORD PTR [rdx]
	mov	DWORD PTR [rcx], eax
	mov	eax, DWORD PTR EDAC_SECDED[rip]
	mov	DWORD PTR 8[rcx], eax
	mov	eax, r14d
	cdq
	idiv	DWORD PTR 8[r13]
	mov	edx, DWORD PTR 0[r13]
	mov	DWORD PTR 4[rcx], eax
	mov	ecx, r14d
	xor	eax, eax
	call	dev_dbg@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	init_csrows, .-init_csrows
	.comm	aspeed_regmap,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	MEM_DDR4,4,4
	.comm	MEM_DDR3,4,4
	.comm	ENODEV,4,4
	.comm	EDAC_SECDED,4,4
	.comm	ASPEED_MCR_CONF_DRAM_TYPE,4,4
	.comm	ASPEED_MCR_CONF,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_aspeed_edac.c_init_csrows.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/memory\000"
	.align	2
.LC1:
	.ascii	"dt: missing /memory node\012\000"
	.align	2
.LC2:
	.ascii	"dt: failed requesting resource for /memory node\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"dt: /memory node resources: first page r.start=0x%x"
	.ascii	", resource_size=0x%x, PAGE_SHIFT macro=0x%x\012\000"
	.global	__aeabi_idiv
	.align	2
.LC4:
	.ascii	"initialized dimm with first_page=0x%lx and nr_pages"
	.ascii	"=0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_csrows, %function
init_csrows:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r0, #4]
	ldr	r2, .L13
	sub	sp, sp, #28
	mov	r4, r0
	ldr	r0, .L13+4
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	ldr	r7, [r3]
	bl	of_find_node_by_path
	subs	r5, r0, #0
	beq	.L10
	mov	r1, #0
	add	r2, sp, #12
	bl	of_address_to_resource
	mov	r6, r0
	mov	r0, r5
	bl	of_node_put
	cmp	r6, #0
	bne	.L11
	add	r0, sp, #12
	ldr	r5, [r4]
	ldr	r9, [sp, #12]
	bl	resource_size
	ldr	r8, .L13+8
	mov	r3, r0
	ldr	r1, [r8]
	mov	r2, r9
	mov	r0, r5
	str	r1, [sp]
	ldr	r1, .L13+12
	bl	dev_dbg
	ldr	r2, [r8]
	ldr	r3, [sp, #12]
	add	r0, sp, #12
	asr	r3, r3, r2
	str	r3, [r7]
	bl	resource_size
	ldr	r3, [r8]
	ldr	r2, [r7]
	asr	r5, r0, r3
	ldr	r1, .L13+16
	ldr	r3, .L13+20
	add	r2, r5, r2
	sub	r2, r2, #1
	ldr	r1, [r1]
	ldr	r0, [r3]
	str	r2, [r7, #4]
	add	r2, sp, #16
	bl	regmap_read
	ldr	r3, .L13+24
	ldr	r2, [sp, #16]
	ldr	r3, [r3]
	ldr	r1, [r7, #12]
	tst	r2, r3
	ldrne	r3, .L13+28
	ldreq	r3, .L13+32
	ldr	r1, [r1]
	ldr	r2, [r3]
	ldr	r3, .L13+36
	ldr	r8, [r1]
	ldr	r3, [r3]
	ldr	r1, [r7, #8]
	mov	r0, r5
	str	r2, [r8]
	str	r3, [r8, #8]
	bl	__aeabi_idiv
	mov	r3, r5
	str	r0, [r8, #4]
	ldr	r2, [r7]
	ldr	r0, [r4]
	ldr	r1, .L13+40
	bl	dev_dbg
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	ldr	r0, [r4]
	ldr	r1, .L13+44
	bl	dev_err
	b	.L1
.L10:
	ldr	r0, [r4]
	ldr	r1, .L13+48
	bl	dev_err
	ldr	r3, .L13+52
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	.LC0
	.word	PAGE_SHIFT
	.word	.LC3
	.word	ASPEED_MCR_CONF
	.word	aspeed_regmap
	.word	ASPEED_MCR_CONF_DRAM_TYPE
	.word	MEM_DDR4
	.word	MEM_DDR3
	.word	EDAC_SECDED
	.word	.LC4
	.word	.LC2
	.word	.LC1
	.word	ENODEV
	.size	init_csrows, .-init_csrows
	.comm	aspeed_regmap,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	MEM_DDR4,4,4
	.comm	MEM_DDR3,4,4
	.comm	ENODEV,4,4
	.comm	EDAC_SECDED,4,4
	.comm	ASPEED_MCR_CONF_DRAM_TYPE,4,4
	.comm	ASPEED_MCR_CONF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
