	.file	"extr_i915_drv.c_gen9_edram_size_mb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gen9_edram_size_mb, @function
gen9_edram_size_mb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	movabs	rax, 34359738372
	mov	QWORD PTR 16[rsp], rax
	movabs	rax, 68719476748
	mov	QWORD PTR 24[rsp], rax
	add	rax, 4
	mov	QWORD PTR 32[rsp], rax
	mov	QWORD PTR 40[rsp], rax
	movabs	rax, 4294967297
	mov	QWORD PTR [rsp], rax
	movabs	rax, 8589934594
	mov	QWORD PTR 8[rsp], rax
	call	EDRAM_NUM_BANKS@PLT
	mov	edi, ebp
	mov	r12d, eax
	call	EDRAM_WAYS_IDX@PLT
	mov	edi, ebp
	mov	ebx, DWORD PTR 16[rsp+rax*4]
	call	EDRAM_SETS_IDX@PLT
	imul	ebx, DWORD PTR [rsp+rax*4]
	mov	eax, ebx
	imul	eax, r12d
	mov	rdx, QWORD PTR 56[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L5
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gen9_edram_size_mb, .-gen9_edram_size_mb
	.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_i915_drv.c_gen9_edram_size_mb.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gen9_edram_size_mb, %function
gen9_edram_size_mb:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r1
	sub	sp, sp, #60
	ldr	ip, .L6
	add	lr, sp, #20
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	add	r5, sp, #4
	add	ip, ip, #16
	stm	lr, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	r5, {r0, r1, r2, r3}
	ldr	r3, .L6+4
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	bl	EDRAM_NUM_BANKS
	mov	r5, r0
	mov	r0, r4
	bl	EDRAM_WAYS_IDX
	mov	r3, r0
	add	r2, sp, #56
	add	r3, r2, r3, lsl #2
	mov	r0, r4
	ldr	r4, [r3, #-36]
	bl	EDRAM_SETS_IDX
	add	r3, sp, #56
	add	r0, r3, r0, lsl #2
	ldr	r3, .L6+4
	ldr	r0, [r0, #-52]
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	mul	r4, r0, r4
	mul	r0, r5, r4
	bne	.L5
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LANCHOR0
	.word	.LC2
	.size	gen9_edram_size_mb, .-gen9_edram_size_mb
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	4
	.word	8
	.word	12
	.word	16
	.word	16
	.word	16
	.word	16
	.word	16
.LC1:
	.word	1
	.word	1
	.word	2
	.word	2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
