	.file	"extr_nv10.c_nv10_graph_load_context.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nv10_graph_load_context, @function
nv10_graph_load_context:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	nv10_graph_priv@PLT
	mov	rbp, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR [r12]
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR nv10_graph_ctx_regs[rip]
	mov	esi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	nv_wr32@PLT
.L2:
	mov	rdi, QWORD PTR nv10_graph_ctx_regs[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jg	.L3
	mov	rdi, rbp
	call	nv_device@PLT
	cmp	DWORD PTR [rax], 22
	jle	.L6
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR nv17_graph_ctx_regs[rip]
	mov	esi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	nv_wr32@PLT
.L4:
	mov	rdi, QWORD PTR nv17_graph_ctx_regs[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jg	.L5
.L6:
	mov	rdi, r12
	call	nv10_graph_load_pipe@PLT
	mov	esi, DWORD PTR NV10_PGRAPH_GLOBALSTATE1[rip]
	mov	rdi, rbp
	call	nv_rd32@PLT
	mov	esi, r13d
	mov	rdi, r12
	movzx	edx, ax
	call	nv10_graph_load_dma_vtxbuf@PLT
	mov	esi, DWORD PTR NV10_PGRAPH_CTX_CONTROL[rip]
	mov	rdi, rbp
	mov	edx, 268501248
	call	nv_wr32@PLT
	mov	ecx, r13d
	mov	rdi, rbp
	mov	edx, -16777216
	mov	esi, DWORD PTR NV10_PGRAPH_CTX_USER[rip]
	sal	ecx, 24
	call	nv_mask@PLT
	mov	esi, DWORD PTR NV10_PGRAPH_FFINTFC_ST2[rip]
	mov	rdi, rbp
	xor	ecx, ecx
	mov	edx, 805306368
	call	nv_mask@PLT
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	nv10_graph_load_context, .-nv10_graph_load_context
	.comm	nv17_graph_ctx_regs,8,8
	.comm	nv10_graph_ctx_regs,8,8
	.comm	NV10_PGRAPH_GLOBALSTATE1,4,4
	.comm	NV10_PGRAPH_FFINTFC_ST2,4,4
	.comm	NV10_PGRAPH_CTX_USER,4,4
	.comm	NV10_PGRAPH_CTX_CONTROL,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_nv10.c_nv10_graph_load_context.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv10_graph_load_context, %function
nv10_graph_load_context:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r1
	mov	r7, r0
	bl	nv10_graph_priv
	mov	r4, #0
	mov	r5, r0
	ldr	r6, .L11
	b	.L2
.L3:
	ldr	r2, [r7]
	ldr	r3, [r6]
	ldr	r2, [r2, r4, lsl #2]
	ldr	r1, [r3, r4, lsl #2]
	mov	r0, r5
	bl	nv_wr32
	add	r4, r4, #1
.L2:
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	cmp	r0, r4
	bgt	.L3
	mov	r0, r5
	bl	nv_device
	ldr	r3, [r0]
	cmp	r3, #22
	ble	.L6
	mov	r4, #0
	ldr	r6, .L11+4
	b	.L4
.L5:
	ldr	r2, [r7, #4]
	ldr	r3, [r6]
	ldr	r2, [r2, r4, lsl #2]
	ldr	r1, [r3, r4, lsl #2]
	mov	r0, r5
	add	r4, r4, #1
	bl	nv_wr32
.L4:
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	cmp	r0, r4
	bgt	.L5
.L6:
	mov	r0, r7
	bl	nv10_graph_load_pipe
	ldr	r3, .L11+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	nv_rd32
	lsl	r2, r0, #16
	mov	r1, r8
	mov	r0, r7
	lsr	r2, r2, #16
	bl	nv10_graph_load_dma_vtxbuf
	ldr	r3, .L11+12
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L11+16
	bl	nv_wr32
	ldr	r2, .L11+20
	lsl	r3, r8, #24
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #-16777216
	bl	nv_mask
	ldr	r3, .L11+24
	mov	r0, r5
	ldr	r1, [r3]
	mov	r2, #805306368
	mov	r3, #0
	bl	nv_mask
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	nv10_graph_ctx_regs
	.word	nv17_graph_ctx_regs
	.word	NV10_PGRAPH_GLOBALSTATE1
	.word	NV10_PGRAPH_CTX_CONTROL
	.word	268501248
	.word	NV10_PGRAPH_CTX_USER
	.word	NV10_PGRAPH_FFINTFC_ST2
	.size	nv10_graph_load_context, .-nv10_graph_load_context
	.comm	nv17_graph_ctx_regs,4,4
	.comm	nv10_graph_ctx_regs,4,4
	.comm	NV10_PGRAPH_GLOBALSTATE1,4,4
	.comm	NV10_PGRAPH_FFINTFC_ST2,4,4
	.comm	NV10_PGRAPH_CTX_USER,4,4
	.comm	NV10_PGRAPH_CTX_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
