	.file	"extr_nouveau_mem.c_nouveau_mem_ddr2_mr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"(%u) Invalid tCL: %u"
.LC1:
	.string	"(%u) Invalid tWR: %u"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"(%u) Invalid odt value, assuming disabled: %x"
	.section	.rodata.str1.1
.LC3:
	.string	"(%u) MR: %08x"
	.text
	.p2align 4
	.type	nouveau_mem_ddr2_mr, @function
nouveau_mem_ddr2_mr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, r9
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	call	nouveau_drm@PLT
	mov	QWORD PTR 24[rbx], 0
	mov	rdi, rax
	cmp	r13d, 14
	jg	.L2
	mov	ecx, DWORD PTR [r12]
	mov	r10d, DWORD PTR 4[rbp]
	cmp	r10d, DWORD PTR NV_MEM_CL_DDR2_MAX[rip]
	mov	DWORD PTR [rbx], ecx
	jge	.L10
.L4:
	mov	r9d, DWORD PTR 8[rbp]
	cmp	r9d, DWORD PTR NV_MEM_WR_DDR2_MAX[rip]
	jge	.L11
	cmp	ecx, 3
	jg	.L12
.L7:
	mov	r8, QWORD PTR 8[r12]
	sal	r10d, 4
	sub	r9d, 1
	mov	rsi, QWORD PTR 8[rbx]
	sal	r9d, 9
	mov	ecx, DWORD PTR [r8]
	and	ecx, 4111
	or	ecx, r10d
	or	ecx, r9d
	mov	DWORD PTR [rsi], ecx
	mov	edx, DWORD PTR [rbx]
	lea	eax, 0[0+rdx*4]
	sal	edx, 5
	and	edx, 64
	and	eax, 4
	or	eax, edx
	mov	edx, DWORD PTR 4[r8]
	and	edx, 1056699
	or	eax, edx
	mov	DWORD PTR 4[rsi], eax
	mov	edx, DWORD PTR 16[rbx]
	lea	rsi, .LC3[rip]
	call	NV_DEBUG@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ecx, DWORD PTR 0[rbp]
	mov	r10d, DWORD PTR 4[rbp]
	and	ecx, 7
	cmp	r10d, DWORD PTR NV_MEM_CL_DDR2_MAX[rip]
	mov	DWORD PTR [rbx], ecx
	jl	.L4
.L10:
	mov	edx, DWORD PTR 16[rbx]
	mov	ecx, r10d
	lea	rsi, .LC0[rip]
	call	NV_WARN@PLT
	mov	eax, DWORD PTR ERANGE[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, DWORD PTR 16[rbx]
	lea	rsi, .LC2[rip]
	mov	QWORD PTR 8[rsp], rdi
	call	NV_WARN@PLT
	mov	DWORD PTR [rbx], 0
	mov	r10d, DWORD PTR 4[rbp]
	mov	r9d, DWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 8[rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR 16[rbx]
	mov	ecx, r9d
	lea	rsi, .LC1[rip]
	call	NV_WARN@PLT
	mov	eax, DWORD PTR ERANGE[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nouveau_mem_ddr2_mr, .-nouveau_mem_ddr2_mr
	.comm	NV_MEM_WR_DDR2_MAX,4,4
	.comm	NV_MEM_CL_DDR2_MAX,4,4
	.comm	ERANGE,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_nouveau_mem.c_nouveau_mem_ddr2_mr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(%u) Invalid tCL: %u\000"
	.align	2
.LC1:
	.ascii	"(%u) Invalid tWR: %u\000"
	.align	2
.LC2:
	.ascii	"(%u) Invalid odt value, assuming disabled: %x\000"
	.align	2
.LC3:
	.ascii	"(%u) MR: %08x\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nouveau_mem_ddr2_mr, %function
nouveau_mem_ddr2_mr:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r3
	mov	r7, r2
	ldr	r4, [sp, #28]
	ldr	r8, [sp, #24]
	bl	nouveau_drm
	mov	r3, #0
	ldr	r2, .L13
	cmp	r6, #14
	str	r3, [r4, #12]
	ldr	r2, [r2]
	ldrgt	r3, [r7]
	mov	r5, r0
	ldr	r0, [r7, #4]
	ldrle	r3, [r8]
	andgt	r3, r3, #7
	cmp	r0, r2
	str	r3, [r4]
	bge	.L10
	ldr	r2, .L13+4
	ldr	r1, [r7, #8]
	ldr	r2, [r2]
	cmp	r1, r2
	bge	.L11
	cmp	r3, #3
	bgt	.L12
.L7:
	ldr	lr, [r8, #4]
	ldr	r2, .L13+8
	ldr	r3, [lr]
	ldr	ip, [r4, #4]
	and	r2, r2, r3
	orr	r3, r2, r0, lsl #4
	sub	r1, r1, #1
	orr	r3, r3, r1, lsl #9
	str	r3, [ip]
	ldr	r1, [r4]
	ldr	lr, [lr, #4]
	lsl	r2, r1, #2
	ldr	r0, .L13+12
	lsl	r1, r1, #5
	and	r1, r1, #64
	and	r2, r2, #4
	and	r0, r0, lr
	orr	r2, r2, r1
	orr	r2, r2, r0
	str	r2, [ip, #4]
	mov	r0, r5
	ldr	r2, [r4, #8]
	ldr	r1, .L13+16
	bl	NV_DEBUG
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r1, .L13+20
	mov	r0, r5
	ldr	r2, [r4, #8]
	bl	NV_WARN
	ldmib	r7, {r0, r1}
	mov	r3, #0
	str	r3, [r4]
	b	.L7
.L10:
	mov	r3, r0
	ldr	r2, [r4, #8]
	mov	r0, r5
	ldr	r1, .L13+24
	bl	NV_WARN
	ldr	r3, .L13+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r3, r1
	mov	r0, r5
	ldr	r2, [r4, #8]
	ldr	r1, .L13+32
	bl	NV_WARN
	ldr	r3, .L13+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	NV_MEM_CL_DDR2_MAX
	.word	NV_MEM_WR_DDR2_MAX
	.word	4111
	.word	1056699
	.word	.LC3
	.word	.LC2
	.word	.LC0
	.word	ERANGE
	.word	.LC1
	.size	nouveau_mem_ddr2_mr, .-nouveau_mem_ddr2_mr
	.comm	NV_MEM_WR_DDR2_MAX,4,4
	.comm	NV_MEM_CL_DDR2_MAX,4,4
	.comm	ERANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
