	.file	"extr_nouveau_mem.c_nouveau_mem_timing_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nouveau_mem_timing_read
	.type	nouveau_mem_timing_read, @function
nouveau_mem_timing_read:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	nouveau_dev@PLT
	mov	rdi, rax
	mov	r12, rax
	call	nouveau_fb@PLT
	mov	r15, rax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 0[rbp], -1
	cmp	eax, 191
	jg	.L1
	lea	edx, -132[rax]
	cmp	edx, 4
	ja	.L1
	lea	rcx, CSWTCH.1[rip]
	mov	edx, DWORD PTR [rcx+rdx*4]
	test	edx, edx
	jle	.L4
	lea	eax, -1[rdx]
	xor	ebx, ebx
	lea	r14, 4[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r13, QWORD PTR 8[rbp]
	lea	esi, 1049120[rbx]
	mov	rdi, r12
	call	nv_rd32@PLT
	add	r13, rbx
	add	rbx, 4
	mov	DWORD PTR 0[r13], eax
	cmp	r14, rbx
	jne	.L5
	mov	eax, DWORD PTR [r12]
.L4:
	mov	DWORD PTR 16[rbp], 0
	cmp	eax, 132
	jle	.L15
.L6:
	mov	rbx, QWORD PTR 24[rbp]
	mov	esi, 1049280
	mov	rdi, r12
	call	nv_rd32@PLT
	mov	esi, 1049284
	mov	rdi, r12
	mov	DWORD PTR [rbx], eax
	mov	rbx, QWORD PTR 24[rbp]
	call	nv_rd32@PLT
	mov	esi, 1049312
	mov	rdi, r12
	mov	DWORD PTR 4[rbx], eax
	mov	rbx, QWORD PTR 24[rbp]
	call	nv_rd32@PLT
	mov	esi, 1049316
	mov	rdi, r12
	mov	DWORD PTR 8[rbx], eax
	mov	rbx, QWORD PTR 24[rbp]
	call	nv_rd32@PLT
	mov	DWORD PTR 12[rbx], eax
	mov	QWORD PTR 32[rbp], 0
	mov	eax, DWORD PTR [r15]
	cmp	eax, 130
	je	.L7
	jg	.L8
	add	eax, -128
	cmp	eax, 1
	ja	.L1
	mov	rdx, QWORD PTR 24[rbp]
	mov	eax, DWORD PTR 4[rdx]
	and	eax, 3
	mov	DWORD PTR 36[rbp], eax
	mov	eax, DWORD PTR 4[rdx]
	sar	eax, 2
	and	eax, 3
	mov	DWORD PTR 32[rbp], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmp	eax, 131
	jne	.L1
	mov	rdx, QWORD PTR 24[rbp]
	xor	ecx, ecx
.L10:
	mov	edx, DWORD PTR 4[rdx]
	mov	eax, edx
	sar	edx, 5
	sar	eax, 2
	and	edx, 2
	and	eax, 1
	or	eax, edx
	or	eax, ecx
	mov	DWORD PTR 32[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, 1049128
	mov	rdi, r12
	call	nv_rd32@PLT
	sar	eax, 24
	and	eax, 15
	add	eax, 1
	mov	DWORD PTR 16[rbp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR 24[rbp]
	mov	eax, DWORD PTR 4[rdx]
	sar	eax, 7
	and	eax, 4
	mov	DWORD PTR 32[rbp], eax
	mov	ecx, eax
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	nouveau_mem_timing_read, .-nouveau_mem_timing_read
	.section	.rodata
	.align 16
	.type	CSWTCH.1, @object
	.size	CSWTCH.1, 20
CSWTCH.1:
	.long	5
	.long	5
	.long	9
	.long	3
	.long	3
	.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_timing_read.c"
	.text
	.align	2
	.global	nouveau_mem_timing_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	nouveau_mem_timing_read, %function
nouveau_mem_timing_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	bl	nouveau_dev
	mov	r6, r0
	bl	nouveau_fb
	ldr	r3, [r6]
	cmp	r3, #191
	bgt	.L2
	mvn	r1, #0
	sub	r2, r3, #132
	cmp	r2, #4
	str	r1, [r5]
	pophi	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r1, .L17
	mov	r9, r0
	ldr	r8, [r1, r2, lsl #2]
	cmp	r8, #0
	ble	.L4
	mov	r4, #0
	lsl	r8, r8, #2
.L5:
	add	r1, r4, #1048576
	mov	r0, r6
	add	r1, r1, #544
	ldr	r7, [r5, #4]
	bl	nv_rd32
	str	r0, [r7, r4]
	add	r4, r4, #4
	cmp	r8, r4
	bne	.L5
	ldr	r3, [r6]
.L4:
	mov	r2, #0
	cmp	r3, #132
	str	r2, [r5, #8]
	ble	.L16
.L6:
	ldr	r1, .L17+4
	mov	r0, r6
	ldr	r4, [r5, #12]
	bl	nv_rd32
	ldr	r1, .L17+8
	str	r0, [r4]
	mov	r0, r6
	ldr	r4, [r5, #12]
	bl	nv_rd32
	ldr	r1, .L17+12
	str	r0, [r4, #4]
	mov	r0, r6
	ldr	r4, [r5, #12]
	bl	nv_rd32
	ldr	r1, .L17+16
	str	r0, [r4, #8]
	mov	r0, r6
	ldr	r4, [r5, #12]
	bl	nv_rd32
	mov	r2, #0
	str	r0, [r4, #12]
	ldr	r3, [r9]
	str	r2, [r5, #16]
	cmp	r3, #130
	str	r2, [r5, #20]
	beq	.L7
	bgt	.L8
	sub	r3, r3, #128
	cmp	r3, #1
	pophi	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, [r5, #12]
	ldr	r3, [r2, #4]
	and	r3, r3, #3
	str	r3, [r5, #20]
	ldr	r3, [r2, #4]
	asr	r3, r3, #2
	and	r3, r3, #3
	str	r3, [r5, #16]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	cmp	r3, #131
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r5, #12]
.L10:
	ldr	r1, [r3, #4]
	asr	r3, r1, #5
	and	r3, r3, #2
	lsl	r1, r1, #29
	orr	r3, r3, r1, lsr #31
	orr	r2, r3, r2
	str	r2, [r5, #16]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mvn	r3, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	mov	r0, r6
	ldr	r1, .L17+20
	bl	nv_rd32
	asr	r3, r0, #24
	and	r3, r3, #15
	add	r3, r3, #1
	str	r3, [r5, #8]
	b	.L6
.L7:
	ldr	r3, [r5, #12]
	ldr	r2, [r3, #4]
	asr	r2, r2, #7
	and	r2, r2, #4
	str	r2, [r5, #16]
	b	.L10
.L18:
	.align	2
.L17:
	.word	.LANCHOR0
	.word	1049280
	.word	1049284
	.word	1049312
	.word	1049316
	.word	1049128
	.size	nouveau_mem_timing_read, .-nouveau_mem_timing_read
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CSWTCH.2, %object
	.size	CSWTCH.2, 20
CSWTCH.2:
	.word	5
	.word	5
	.word	9
	.word	3
	.word	3
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
