	.file	"113214.c"
	.intel_syntax noprefix
	.text
	.globl	GPC_MAX
	.bss
	.align 4
	.type	GPC_MAX, @object
	.size	GPC_MAX, 4
GPC_MAX:
	.zero	4
	.globl	NV_MEM_ACCESS_RW
	.align 4
	.type	NV_MEM_ACCESS_RW, @object
	.size	NV_MEM_ACCESS_RW, 4
NV_MEM_ACCESS_RW:
	.zero	4
	.globl	NV_MEM_ACCESS_SYS
	.align 4
	.type	NV_MEM_ACCESS_SYS, @object
	.size	NV_MEM_ACCESS_SYS, 4
NV_MEM_ACCESS_SYS:
	.zero	4
	.text
	.globl	nve0_grctx_generate
	.type	nve0_grctx_generate, @function
nve0_grctx_generate:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 160
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	DWORD PTR -144[rbp], 0
	mov	DWORD PTR -140[rbp], 0
	mov	eax, DWORD PTR GPC_MAX[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -104[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	rcx, rdx
	mov	ebx, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR GPC_MAX[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L5:
	cmp	rsp, rdx
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L6:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L7
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L7:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	lea	rdx, -168[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	nvc0_grctx_init@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -120[rbp]
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, 0
	mov	edx, 1
	mov	esi, 608
	mov	rdi, rax
	call	nv_mask@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 4194820
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 4194824
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_unk40xx@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_unk44xx@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_unk46xx@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_unk47xx@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_unk58xx@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_unk60xx@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_unk64xx@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_unk70xx@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_unk78xx@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_unk80xx@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_unk88xx@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_gpc@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_tpc@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_graph_generate_tpcunk@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 4211028
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	edx, DWORD PTR NV_MEM_ACCESS_RW[rip]
	mov	eax, DWORD PTR NV_MEM_ACCESS_SYS[rip]
	or	eax, edx
	mov	edx, eax
	mov	esi, 256
	mov	edi, 12288
	call	mmio_data@PLT
	mov	edx, DWORD PTR NV_MEM_ACCESS_RW[rip]
	mov	eax, DWORD PTR NV_MEM_ACCESS_SYS[rip]
	or	eax, edx
	mov	edx, eax
	mov	esi, 256
	mov	edi, 32768
	call	mmio_data@PLT
	mov	eax, DWORD PTR NV_MEM_ACCESS_RW[rip]
	mov	edx, eax
	mov	esi, 4096
	mov	edi, 393216
	call	mmio_data@PLT
	mov	ecx, 1
	mov	edx, 8
	mov	esi, 0
	mov	edi, 4227084
	call	mmio_list@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, -2147483648
	mov	edi, 4227088
	call	mmio_list@PLT
	mov	ecx, 1
	mov	edx, 8
	mov	esi, 0
	mov	edi, 4296708
	call	mmio_list@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	edi, 4296712
	call	mmio_list@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, -2147483648
	mov	edi, 4220108
	call	mmio_list@PLT
	mov	ecx, 0
	mov	edx, 8
	mov	esi, 0
	mov	edi, 4227076
	call	mmio_list@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, -2147483600
	mov	edi, 4227080
	call	mmio_list@PLT
	mov	ecx, 0
	mov	edx, 8
	mov	esi, 0
	mov	edi, 4294664
	call	mmio_list@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, -2147483600
	mov	edi, 4294668
	call	mmio_list@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 25167360
	mov	edi, 4220104
	call	mmio_list@PLT
	mov	ecx, 2
	mov	edx, 12
	mov	esi, -2147483648
	mov	edi, 4294672
	call	mmio_list@PLT
	mov	ecx, 2
	mov	edx, 12
	mov	esi, 268435456
	mov	edi, 4298824
	call	mmio_list@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 35128904
	mov	edi, 4216880
	call	mmio_list@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 26411007
	mov	edi, 4220100
	call	mmio_list@PLT
	mov	DWORD PTR -164[rbp], 0
	mov	DWORD PTR -136[rbp], 0
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	eax, eax, 536
	mov	DWORD PTR -112[rbp], eax
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	eax, eax, 1608
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -112[rbp]
	sal	eax, 16
	or	eax, 268435456
	or	eax, DWORD PTR -136[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*8], ecx
	mov	eax, DWORD PTR -108[rbp]
	sal	eax, 16
	mov	ecx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	DWORD PTR 4[rax+rdx*8], ecx
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	eax, eax, 804
	add	DWORD PTR -136[rbp], eax
	add	DWORD PTR -164[rbp], 1
.L10:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -164[rbp], eax
	jl	.L11
	mov	DWORD PTR -164[rbp], 0
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	ebx, DWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, 12480
	mov	edi, eax
	call	GPC_UNIT@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, ebx
	mov	edi, eax
	call	mmio_list@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	or	eax, DWORD PTR -136[rbp]
	mov	ebx, eax
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, 12516
	mov	edi, eax
	call	GPC_UNIT@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, ebx
	mov	edi, eax
	call	mmio_list@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, edx
	sal	eax, 11
	sub	eax, edx
	add	DWORD PTR -136[rbp], eax
	add	DWORD PTR -164[rbp], 1
.L12:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -164[rbp], eax
	jl	.L13
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 101058057
	mov	edi, 1567004
	call	mmio_list@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 592389
	mov	edi, 1567008
	call	mmio_list@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 1
	mov	esi, 4295788
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 16
	mov	esi, 4298764
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 4
	mov	esi, 4308488
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, -2145779472
	mov	esi, 4220096
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 260047039
	mov	esi, 4216832
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 10
	mov	esi, 4299776
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	DWORD PTR -156[rbp], 0
	mov	DWORD PTR -152[rbp], 0
	jmp	.L14
.L18:
	mov	DWORD PTR -164[rbp], 0
	jmp	.L15
.L17:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -156[rbp], eax
	jge	.L16
	mov	ecx, DWORD PTR -156[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	edx, 1688
	mov	esi, ecx
	mov	edi, eax
	call	TPC_UNIT@PLT
	mov	ecx, eax
	mov	edx, DWORD PTR -152[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	ecx, DWORD PTR -156[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	edx, 1256
	mov	esi, ecx
	mov	edi, eax
	call	TPC_UNIT@PLT
	mov	ecx, eax
	mov	edx, DWORD PTR -152[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	eax, DWORD PTR -156[rbp]
	add	eax, 772
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, edx
	mov	edi, eax
	call	GPC_UNIT@PLT
	mov	ecx, eax
	mov	edx, DWORD PTR -152[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	ebx, DWORD PTR -152[rbp]
	lea	eax, 1[rbx]
	mov	DWORD PTR -152[rbp], eax
	mov	ecx, DWORD PTR -156[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	edx, 136
	mov	esi, ecx
	mov	edi, eax
	call	TPC_UNIT@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, ebx
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
.L16:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	ebx, DWORD PTR [rax]
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, 3080
	mov	edi, eax
	call	GPC_UNIT@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, ebx
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	ebx, DWORD PTR [rax]
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, 3212
	mov	edi, eax
	call	GPC_UNIT@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, ebx
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
	add	DWORD PTR -164[rbp], 1
.L15:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -164[rbp], eax
	jl	.L17
	add	DWORD PTR -156[rbp], 1
.L14:
	cmp	DWORD PTR -156[rbp], 3
	jle	.L18
	mov	DWORD PTR -148[rbp], 0
	mov	DWORD PTR -160[rbp], 0
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -160[rbp]
	sal	eax, 2
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -148[rbp], eax
	add	DWORD PTR -160[rbp], 1
.L19:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -160[rbp], eax
	jl	.L20
	mov	edx, DWORD PTR -148[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 4218920
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	edx, DWORD PTR -148[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 4216944
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 4218924
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 4216948
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 4218928
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 4216952
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 4218932
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 4216956
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	DWORD PTR -164[rbp], -1
	mov	DWORD PTR -156[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	cdq
	idiv	ecx
	mov	DWORD PTR -164[rbp], edx
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	je	.L22
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	eax, DWORD PTR -156[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 715827883
	shr	rdx, 32
	sar	eax, 31
	mov	esi, edx
	sub	esi, eax
	movsx	rax, esi
	mov	edi, DWORD PTR -64[rbp+rax*4]
	mov	ecx, DWORD PTR -156[rbp]
	movsx	rax, ecx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	r8d, ecx
	sar	r8d, 31
	mov	edx, eax
	sub	edx, r8d
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	mov	edx, DWORD PTR -164[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	edi, eax
	mov	edx, edi
	movsx	rax, esi
	mov	DWORD PTR -64[rbp+rax*4], edx
	add	DWORD PTR -156[rbp], 1
.L21:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -156[rbp], eax
	jl	.L22
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -156[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 715827883
	shr	rdx, 32
	sar	eax, 31
	mov	esi, edx
	sub	esi, eax
	movsx	rax, esi
	mov	edi, DWORD PTR -64[rbp+rax*4]
	mov	ecx, DWORD PTR -156[rbp]
	movsx	rax, ecx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	r8d, ecx
	sar	r8d, 31
	mov	edx, eax
	sub	edx, r8d
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	mov	edx, 7
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	edi, eax
	mov	edx, edi
	movsx	rax, esi
	mov	DWORD PTR -64[rbp+rax*4], edx
	add	DWORD PTR -156[rbp], 1
.L23:
	cmp	DWORD PTR -156[rbp], 31
	jle	.L24
	mov	DWORD PTR -128[rbp], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -124[rbp], eax
	jmp	.L25
.L26:
	sal	DWORD PTR -124[rbp]
	add	DWORD PTR -128[rbp], 1
.L25:
	mov	eax, DWORD PTR -124[rbp]
	and	eax, 16
	test	eax, eax
	je	.L26
	mov	eax, DWORD PTR -124[rbp]
	sal	eax, 16
	mov	DWORD PTR -72[rbp], eax
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -128[rbp]
	sal	eax, 21
	or	eax, edx
	mov	DWORD PTR -72[rbp], eax
	mov	ecx, DWORD PTR -72[rbp]
	mov	eax, 32
	cdq
	idiv	DWORD PTR -124[rbp]
	mov	eax, edx
	sal	eax, 24
	or	eax, ecx
	mov	DWORD PTR -72[rbp], eax
	mov	edx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 16[rax]
	sal	eax, 8
	or	eax, edx
	mov	DWORD PTR -72[rbp], eax
	mov	edx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 20[rax]
	or	eax, edx
	mov	DWORD PTR -72[rbp], eax
	mov	DWORD PTR -160[rbp], 1
	jmp	.L27
.L28:
	mov	esi, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 5
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdq
	idiv	DWORD PTR -124[rbp]
	mov	edi, edx
	mov	eax, DWORD PTR -160[rbp]
	lea	edx, -1[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	mov	ecx, eax
	sal	edi, cl
	mov	eax, edi
	or	eax, esi
	mov	DWORD PTR -68[rbp], eax
	add	DWORD PTR -160[rbp], 1
.L27:
	cmp	DWORD PTR -160[rbp], 6
	jle	.L28
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 16[rax]
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 20[rax]
	or	edx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 4295608
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	DWORD PTR -160[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	edx, DWORD PTR -64[rbp+rax*4]
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 1073858
	lea	ecx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
	add	DWORD PTR -160[rbp], 1
.L29:
	cmp	DWORD PTR -160[rbp], 5
	jle	.L30
	mov	edx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 4308944
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 4308964
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	DWORD PTR -160[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	edx, DWORD PTR -64[rbp+rax*4]
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 1077184
	lea	ecx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
	add	DWORD PTR -160[rbp], 1
.L31:
	cmp	DWORD PTR -160[rbp], 5
	jle	.L32
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 16[rax]
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 20[rax]
	or	edx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 4225212
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	DWORD PTR -160[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	edx, DWORD PTR -64[rbp+rax*4]
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 1056259
	lea	ecx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
	add	DWORD PTR -160[rbp], 1
.L33:
	cmp	DWORD PTR -160[rbp], 5
	jle	.L34
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	DWORD PTR -164[rbp], 0
	jmp	.L35
.L36:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -164[rbp]
	sal	eax, 3
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -140[rbp], eax
	add	DWORD PTR -164[rbp], 1
.L35:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -164[rbp], eax
	jl	.L36
	mov	DWORD PTR -160[rbp], 0
	mov	DWORD PTR -164[rbp], -1
	mov	DWORD PTR -132[rbp], -1
	jmp	.L37
.L40:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 16[rax]
	sub	eax, 1
	imul	eax, DWORD PTR -160[rbp]
	lea	edx, 31[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 5
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	je	.L38
	mov	eax, DWORD PTR -116[rbp]
	mov	DWORD PTR -132[rbp], eax
.L39:
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	cdq
	idiv	ecx
	mov	DWORD PTR -164[rbp], edx
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	je	.L39
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edi, DWORD PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	esi, -1[rax]
	mov	rdx, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -164[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdx+rcx*4], esi
	sub	edi, eax
	mov	edx, edi
	mov	DWORD PTR -156[rbp], edx
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR -156[rbp]
	add	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -144[rbp], eax
.L38:
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 131904
	sal	eax, 5
	mov	ecx, eax
	mov	edx, DWORD PTR -144[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	eax, DWORD PTR -144[rbp]
	xor	eax, DWORD PTR -140[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 131936
	sal	eax, 5
	mov	ecx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
	add	DWORD PTR -160[rbp], 1
.L37:
	cmp	DWORD PTR -160[rbp], 31
	jle	.L40
	mov	DWORD PTR -160[rbp], 0
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 1055028
	lea	ecx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	nv_wr32@PLT
	add	DWORD PTR -160[rbp], 1
.L41:
	cmp	DWORD PTR -160[rbp], 7
	jle	.L42
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 513
	mov	esi, 4217600
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 2
	mov	esi, 4229200
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 2
	mov	esi, 4229464
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 10
	mov	esi, 4300664
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_grctx_generate_icmd@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_grctx_generate_a097@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	nve0_grctx_generate_902d@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, 1
	mov	edx, 1
	mov	esi, 608
	mov	rdi, rax
	call	nv_mask@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 1881572874
	mov	esi, 4294656
	mov	rdi, rax
	call	nv_wr32@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 12291015
	mov	esi, 4308496
	mov	rdi, rax
	call	nv_wr32@PLT
	lea	rax, -168[rbp]
	mov	rdi, rax
	call	nvc0_grctx_fini@PLT
.L9:
	mov	rsp, r12
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	nve0_grctx_generate, .-nve0_grctx_generate
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"113214.c"
	.text
	.comm	GPC_MAX,4,4
	.comm	NV_MEM_ACCESS_RW,4,4
	.comm	NV_MEM_ACCESS_SYS,4,4
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nve0_grctx_generate
	.syntax unified
	.arm
	.fpu softvfp
	.type	nve0_grctx_generate, %function
nve0_grctx_generate:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #128
	str	r0, [fp, #-136]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	sub	r3, fp, #40
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	sub	r3, fp, #48
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	ldr	r3, .L39+4
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-80]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-76]
	ldr	r3, .L39+4
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-72]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-68]
	sub	r3, fp, #128
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	nvc0_grctx_init
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-64]
	b	.L3
.L2:
	mov	r3, #0
	mov	r2, #1
	mov	r1, #608
	ldr	r0, [fp, #-136]
	bl	nv_mask
	mov	r2, #0
	ldr	r1, .L39+8
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #0
	ldr	r1, .L39+12
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_unk40xx
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_unk44xx
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_unk46xx
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_unk47xx
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_unk58xx
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_unk60xx
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_unk64xx
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_unk70xx
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_unk78xx
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_unk80xx
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_unk88xx
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_gpc
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_tpc
	ldr	r0, [fp, #-136]
	bl	nve0_graph_generate_tpcunk
	mov	r2, #0
	ldr	r1, .L39+16
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r3, .L39+20
	ldr	r2, [r3]
	ldr	r3, .L39+24
	ldr	r3, [r3]
	orr	r3, r2, r3
	mov	r2, r3
	mov	r1, #256
	mov	r0, #12288
	bl	mmio_data
	ldr	r3, .L39+20
	ldr	r2, [r3]
	ldr	r3, .L39+24
	ldr	r3, [r3]
	orr	r3, r2, r3
	mov	r2, r3
	mov	r1, #256
	mov	r0, #32768
	bl	mmio_data
	ldr	r3, .L39+20
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #4096
	mov	r0, #393216
	bl	mmio_data
	mov	r3, #1
	mov	r2, #8
	mov	r1, #0
	ldr	r0, .L39+28
	bl	mmio_list
	mov	r3, #0
	mov	r2, #0
	mov	r1, #-2147483648
	ldr	r0, .L39+32
	bl	mmio_list
	mov	r3, #1
	mov	r2, #8
	mov	r1, #0
	ldr	r0, .L39+36
	bl	mmio_list
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L39+40
	bl	mmio_list
	mov	r3, #0
	mov	r2, #0
	mov	r1, #-2147483648
	ldr	r0, .L39+44
	bl	mmio_list
	mov	r3, #0
	mov	r2, #8
	mov	r1, #0
	ldr	r0, .L39+48
	bl	mmio_list
	mov	r3, #0
	mov	r2, #0
	mov	r1, #-2147483600
	ldr	r0, .L39+52
	bl	mmio_list
	mov	r3, #0
	mov	r2, #8
	mov	r1, #0
	ldr	r0, .L39+56
	bl	mmio_list
	mov	r3, #0
	mov	r2, #0
	mov	r1, #-2147483600
	ldr	r0, .L39+60
	bl	mmio_list
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L39+64
	ldr	r0, .L39+68
	bl	mmio_list
	mov	r3, #2
	mov	r2, #12
	mov	r1, #-2147483648
	ldr	r0, .L39+72
	bl	mmio_list
	mov	r3, #2
	mov	r2, #12
	mov	r1, #268435456
	ldr	r0, .L39+76
	bl	mmio_list
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L39+80
	ldr	r0, .L39+84
	bl	mmio_list
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L39+88
	ldr	r0, .L39+92
	bl	mmio_list
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L4
.L5:
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	str	r2, [fp, #-52]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #16
	orr	r2, r3, #268435456
	ldr	r3, [fp, #-96]
	orr	r1, r2, r3
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-124]
	str	r1, [r3, r2, lsl #3]
	ldr	r3, [fp, #-52]
	lsl	r2, r3, #16
	ldr	r1, [fp, #-76]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #804
	mul	r3, r2, r3
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L4:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	blt	.L5
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L6
.L7:
	mov	r1, #12480
	ldr	r0, [fp, #-124]
	bl	GPC_UNIT
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-124]
	ldr	r1, [r3, r2, lsl #3]
	mov	r3, #0
	mov	r2, #0
	bl	mmio_list
	ldr	r1, .L39+96
	ldr	r0, [fp, #-124]
	bl	GPC_UNIT
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-96]
	orr	r1, r2, r3
	mov	r3, #0
	mov	r2, #0
	bl	mmio_list
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #11
	sub	r3, r3, r2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L6:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L39+100
	ldr	r0, .L39+104
	bl	mmio_list
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L39+108
	ldr	r0, .L39+112
	bl	mmio_list
	mov	r2, #1
	ldr	r1, .L39+116
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #16
	ldr	r1, .L39+120
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #4
	ldr	r1, .L39+124
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r2, .L39+128
	ldr	r1, .L39+132
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r2, .L39+136
	ldr	r1, .L39+140
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #10
	ldr	r1, .L39+144
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L8
.L12:
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L9
.L11:
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	bge	.L10
	ldr	r2, .L39+148
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-124]
	bl	TPC_UNIT
	mov	r3, r0
	ldr	r2, [fp, #-112]
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r2, .L39+152
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-124]
	bl	TPC_UNIT
	mov	r3, r0
	ldr	r2, [fp, #-112]
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r3, [fp, #-116]
	add	r3, r3, #772
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	GPC_UNIT
	mov	r3, r0
	ldr	r2, [fp, #-112]
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #136
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-124]
	bl	TPC_UNIT
	mov	r1, r0
	ldr	r3, [fp, #-112]
	add	r2, r3, #1
	str	r2, [fp, #-112]
	mov	r2, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
.L10:
	ldr	r1, .L39+156
	ldr	r0, [fp, #-124]
	bl	GPC_UNIT
	mov	r1, r0
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r1, .L39+160
	ldr	r0, [fp, #-124]
	bl	GPC_UNIT
	mov	r1, r0
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L9:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L8:
	ldr	r3, [fp, #-116]
	cmp	r3, #3
	ble	.L12
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L13
.L14:
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	lsl	r3, r2, r3
	ldr	r2, [fp, #-108]
	orr	r3, r2, r3
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L13:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	ldr	r2, [fp, #-120]
	cmp	r2, r3
	blt	.L14
	ldr	r2, [fp, #-108]
	ldr	r1, .L39+164
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r2, [fp, #-108]
	ldr	r1, .L39+168
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #0
	ldr	r1, .L39+172
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #0
	ldr	r1, .L39+176
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #0
	ldr	r1, .L39+180
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #0
	ldr	r1, .L39+184
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #0
	ldr	r1, .L39+188
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #0
	ldr	r1, .L39+192
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #4]
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-68]
	bl	memcpy
	mvn	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L15
.L16:
	ldr	r3, [fp, #-124]
	add	r2, r3, #1
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-124]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-124]
	ldr	r3, [r3, r2, lsl #2]
	sub	r1, r3, #1
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-124]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-116]
	ldr	r2, .L39+196
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r0, r2, r3
	lsl	r3, r0, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	ip, [r3, #-28]
	ldr	r1, [fp, #-116]
	ldr	r3, .L39+196
	smull	lr, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-124]
	lsl	r3, r2, r3
	orr	r2, ip, r3
	lsl	r3, r0, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-28]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L15:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	blt	.L16
	b	.L17
.L18:
	ldr	r3, [fp, #-116]
	ldr	r2, .L39+196
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r0, r2, r3
	lsl	r3, r0, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	ip, [r3, #-28]
	ldr	r1, [fp, #-116]
	ldr	r3, .L39+196
	smull	lr, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r2, #7
	lsl	r3, r2, r3
	orr	r2, ip, r3
	lsl	r3, r0, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-28]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L17:
	ldr	r3, [fp, #-116]
	cmp	r3, #31
	ble	.L18
	mov	r3, #0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-84]
	b	.L19
.L20:
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #1
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L19:
	ldr	r3, [fp, #-84]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #16
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #21
	orr	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r4, [fp, #-48]
	mov	r3, #32
	ldr	r1, [fp, #-84]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #24
	orr	r3, r4, r3
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #8]
	lsl	r3, r3, #8
	orr	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #12]
	orr	r3, r2, r3
	str	r3, [fp, #-48]
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L21
.L22:
	ldr	r4, [fp, #-44]
	ldr	r3, [fp, #-120]
	add	r3, r3, #5
	mov	r2, #1
	lsl	r3, r2, r3
	ldr	r1, [fp, #-84]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r1, r3
	ldr	r3, [fp, #-120]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r1, r3
	orr	r3, r4, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L21:
	ldr	r3, [fp, #-120]
	cmp	r3, #6
	ble	.L22
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #8]
	lsl	r2, r3, #8
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #12]
	orr	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L39+200
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L23
.L24:
	ldr	r2, [fp, #-120]
	ldr	r3, .L39+204
	add	r3, r2, r3
	lsl	r1, r3, #2
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	mov	r2, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L23:
	ldr	r3, [fp, #-120]
	cmp	r3, #5
	ble	.L24
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r1, .L39+208
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r3, [fp, #-44]
	mov	r2, r3
	ldr	r1, .L39+212
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L25
.L26:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1064960
	add	r3, r3, #12224
	lsl	r1, r3, #2
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	mov	r2, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L25:
	ldr	r3, [fp, #-120]
	cmp	r3, #5
	ble	.L26
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #8]
	lsl	r2, r3, #8
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #12]
	orr	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L39+216
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L27
.L28:
	ldr	r2, [fp, #-120]
	ldr	r3, .L39+220
	add	r3, r2, r3
	lsl	r1, r3, #2
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	mov	r2, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L27:
	ldr	r3, [fp, #-120]
	cmp	r3, #5
	ble	.L28
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #4]
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-68]
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L29
.L30:
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #3
	lsl	r3, r2, r3
	ldr	r2, [fp, #-100]
	orr	r3, r2, r3
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L29:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	blt	.L30
	mov	r3, #0
	str	r3, [fp, #-120]
	mvn	r3, #0
	str	r3, [fp, #-124]
	mvn	r3, #0
	str	r3, [fp, #-92]
	b	.L31
.L34:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-120]
	mul	r3, r2, r3
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	beq	.L32
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-92]
.L33:
	ldr	r3, [fp, #-124]
	add	r2, r3, #1
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-124]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	ldr	r1, [fp, #-124]
	ldr	r3, [r3, r1, lsl #2]
	sub	ip, r3, #1
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-124]
	str	ip, [r1, r0, lsl #2]
	sub	r3, r2, r3
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-124]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	mov	r2, #1
	lsl	r3, r2, r3
	ldr	r2, [fp, #-104]
	orr	r3, r2, r3
	str	r3, [fp, #-104]
.L32:
	ldr	r3, [fp, #-120]
	add	r3, r3, #131072
	add	r3, r3, #832
	lsl	r3, r3, #5
	ldr	r2, [fp, #-104]
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r3, [fp, #-120]
	add	r3, r3, #131072
	add	r3, r3, #864
	lsl	r1, r3, #5
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	eor	r3, r3, r2
	mov	r2, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L31:
	ldr	r3, [fp, #-120]
	cmp	r3, #31
	ble	.L34
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L35
.L36:
	ldr	r2, [fp, #-120]
	ldr	r3, .L39+224
	add	r3, r2, r3
	lsl	r3, r3, #2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L35:
	ldr	r3, [fp, #-120]
	cmp	r3, #7
	ble	.L36
	ldr	r2, .L39+228
	ldr	r1, .L39+232
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #2
	ldr	r1, .L39+236
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #2
	ldr	r1, .L39+240
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	mov	r2, #10
	ldr	r1, .L39+244
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r0, [fp, #-136]
	bl	nve0_grctx_generate_icmd
	ldr	r0, [fp, #-136]
	bl	nve0_grctx_generate_a097
	ldr	r0, [fp, #-136]
	bl	nve0_grctx_generate_902d
	mov	r3, #1
	mov	r2, #1
	mov	r1, #608
	ldr	r0, [fp, #-136]
	bl	nv_mask
	ldr	r2, .L39+248
	ldr	r1, .L39+252
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	ldr	r2, .L39+256
	ldr	r1, .L39+260
	ldr	r0, [fp, #-136]
	bl	nv_wr32
	sub	r3, fp, #128
	mov	r0, r3
	bl	nvc0_grctx_fini
	mov	r3, r0
.L3:
	mov	sp, r5
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	GPC_MAX
	.word	4194820
	.word	4194824
	.word	4211028
	.word	NV_MEM_ACCESS_RW
	.word	NV_MEM_ACCESS_SYS
	.word	4227084
	.word	4227088
	.word	4296708
	.word	4296712
	.word	4220108
	.word	4227076
	.word	4227080
	.word	4294664
	.word	4294668
	.word	25167360
	.word	4220104
	.word	4294672
	.word	4298824
	.word	35128904
	.word	4216880
	.word	26411007
	.word	4220100
	.word	12516
	.word	101058057
	.word	1567004
	.word	592389
	.word	1567008
	.word	4295788
	.word	4298764
	.word	4308488
	.word	-2145779472
	.word	4220096
	.word	260047039
	.word	4216832
	.word	4299776
	.word	1688
	.word	1256
	.word	3080
	.word	3212
	.word	4218920
	.word	4216944
	.word	4218924
	.word	4216948
	.word	4218928
	.word	4216952
	.word	4218932
	.word	4216956
	.word	715827883
	.word	4295608
	.word	1073858
	.word	4308944
	.word	4308964
	.word	4225212
	.word	1056259
	.word	1055028
	.word	513
	.word	4217600
	.word	4229200
	.word	4229464
	.word	4300664
	.word	1881572874
	.word	4294656
	.word	12291015
	.word	4308496
	.size	nve0_grctx_generate, .-nve0_grctx_generate
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
