	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv40_gr_construct_state3d_2
_nv40_gr_construct_state3d_2:           ## @nv40_gr_construct_state3d_2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movl	$1, %r14d
	movl	$4202496, %esi                  ## imm = 0x402000
	movl	$1, %edx
	callq	_cp_ctx
	xorl	%eax, %eax
	cmpl	$64, (%r12)
	sete	%al
	movl	$2, %edx
	subl	%eax, %edx
	movq	%r15, %rdi
	movl	$4203524, %esi                  ## imm = 0x402404
	callq	_cp_ctx
	movl	(%r12), %eax
	addl	$-64, %eax
	cmpl	$39, %eax
	ja	LBB0_4
## %bb.1:
	movl	$2624, %ecx                     ## imm = 0xA40
	btq	%rax, %rcx
	jb	LBB0_6
## %bb.2:
	movabsq	$549755834368, %rcx             ## imm = 0x8000005000
	btq	%rax, %rcx
	jae	LBB0_3
## %bb.5:
	movl	$32, %r14d
	jmp	LBB0_7
LBB0_6:
	movl	$1057, %r14d                    ## imm = 0x421
	jmp	LBB0_7
LBB0_3:
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movl	$33, %r14d
LBB0_7:
	movq	%r15, %rdi
	movl	$4203524, %esi                  ## imm = 0x402404
	movl	%r14d, %edx
	callq	_gr_def
	cmpl	$64, (%r12)
	je	LBB0_12
## %bb.8:
	movq	%r15, %rdi
	movl	$4203528, %esi                  ## imm = 0x402408
	movl	$51130563, %edx                 ## imm = 0x30C30C3
	callq	_gr_def
	movl	(%r12), %eax
	leal	-68(%rax), %ecx
	cmpl	$35, %ecx
	ja	LBB0_11
## %bb.9:
	movabsq	$34359739717, %rdx              ## imm = 0x800000545
	btq	%rcx, %rdx
	jae	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movl	$4203584, %esi                  ## imm = 0x402440
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4203584, %esi                  ## imm = 0x402440
	movl	$69633, %edx                    ## imm = 0x11001
	callq	_gr_def
	movl	(%r12), %eax
LBB0_11:
	movl	$9, %edx
	cmpl	$64, %eax
	jne	LBB0_13
LBB0_12:
	movl	$8, %edx
LBB0_13:
	movq	%r15, %rdi
	movl	$4203648, %esi                  ## imm = 0x402480
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4203656, %esi                  ## imm = 0x402488
	movl	$1040318976, %edx               ## imm = 0x3E020200
	callq	_gr_def
	movq	%r15, %rdi
	movl	$4203660, %esi                  ## imm = 0x40248C
	movl	$16777215, %edx                 ## imm = 0xFFFFFF
	callq	_gr_def
	movl	(%r12), %eax
	addl	$-64, %eax
	movl	$202391296, %edx                ## imm = 0xC103F00
	cmpl	$11, %eax
	ja	LBB0_15
## %bb.14:
	cltq
	leaq	l_switch.table.nv40_gr_construct_state3d_2(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
LBB0_15:
	movq	%r15, %rdi
	movl	$4203664, %esi                  ## imm = 0x402490
	callq	_gr_def
	xorl	%edx, %edx
	cmpl	$68, (%r12)
	setge	%dl
	shll	$17, %edx
	addl	$131072, %edx                   ## imm = 0x20000
	movq	%r15, %rdi
	movl	$4203676, %esi                  ## imm = 0x40249C
	callq	_gr_def
	movq	%r15, %rdi
	movl	$4203776, %esi                  ## imm = 0x402500
	movl	$31, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4203824, %esi                  ## imm = 0x402530
	movl	$33024, %edx                    ## imm = 0x8100
	callq	_gr_def
	cmpl	$64, (%r12)
	jne	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	movl	$4203900, %esi                  ## imm = 0x40257C
	movl	$6, %edx
	callq	_cp_ctx
LBB0_17:
	movq	%r15, %rdi
	movl	$4203924, %esi                  ## imm = 0x402594
	movl	$16, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4204544, %esi                  ## imm = 0x402800
	movl	$17, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4204544, %esi                  ## imm = 0x402800
	movl	$1, %edx
	callq	_gr_def
	movl	(%r12), %eax
	addl	$-64, %eax
	cmpl	$11, %eax
	ja	LBB0_23
## %bb.18:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	movq	%r15, %rdi
	movl	$4204644, %esi                  ## imm = 0x402864
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4204644, %esi                  ## imm = 0x402864
	movl	$4097, %edx                     ## imm = 0x1001
	callq	_gr_def
	movq	%r15, %rdi
	movl	$4204656, %esi                  ## imm = 0x402870
	movl	$3, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4204664, %esi                  ## imm = 0x402878
	movl	$3, %edx
	callq	_gr_def
	cmpl	$71, (%r12)
	je	LBB0_24
## %bb.20:
	movq	%r15, %rdi
	movl	$4204800, %esi                  ## imm = 0x402900
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4204864, %esi                  ## imm = 0x402940
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4204928, %esi                  ## imm = 0x402980
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4204992, %esi                  ## imm = 0x4029C0
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4205056, %esi                  ## imm = 0x402A00
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4205120, %esi                  ## imm = 0x402A40
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4205184, %esi                  ## imm = 0x402A80
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4205248, %esi                  ## imm = 0x402AC0
	jmp	LBB0_22
LBB0_21:
	movq	%r15, %rdi
	movl	$4204612, %esi                  ## imm = 0x402844
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4204612, %esi                  ## imm = 0x402844
	movl	$1, %edx
	callq	_gr_def
	movq	%r15, %rdi
	movl	$4204624, %esi                  ## imm = 0x402850
LBB0_22:
	movl	$1, %edx
	callq	_cp_ctx
	jmp	LBB0_24
LBB0_23:
	movq	%r15, %rdi
	movl	$4204612, %esi                  ## imm = 0x402844
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4204612, %esi                  ## imm = 0x402844
	movl	$4097, %edx                     ## imm = 0x1001
	callq	_gr_def
	movq	%r15, %rdi
	movl	$4204624, %esi                  ## imm = 0x402850
	movl	$2, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4204628, %esi                  ## imm = 0x402854
	movl	$3, %edx
	callq	_gr_def
LBB0_24:
	movq	%r15, %rdi
	movl	$4205568, %esi                  ## imm = 0x402C00
	movl	$4, %edx
	callq	_cp_ctx
	cmpl	$64, (%r12)
	movl	$-2139095039, %eax              ## imm = 0x80800001
	movl	$8945665, %edx                  ## imm = 0x888001
	cmovel	%eax, %edx
	movq	%r15, %rdi
	movl	$4205568, %esi                  ## imm = 0x402C00
	callq	_gr_def
	movl	(%r12), %eax
	addl	$-71, %eax
	cmpl	$4, %eax
	ja	LBB0_29
## %bb.25:
	movl	$21, %ecx
	btl	%eax, %ecx
	jae	LBB0_29
## %bb.26:
	movq	%r15, %rdi
	movl	$4205600, %esi                  ## imm = 0x402C20
	movl	$40, %edx
	callq	_cp_ctx
	movl	$4205632, %ebx                  ## imm = 0x402C40
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$-1, %edx
	callq	_gr_def
	addl	$4, %ebx
	cmpl	$4205760, %ebx                  ## imm = 0x402CC0
	jne	LBB0_27
## %bb.28:
	movq	%r15, %rdi
	movl	$4206776, %esi                  ## imm = 0x4030B8
	movl	$13, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4206812, %esi                  ## imm = 0x4030DC
	movl	$5, %edx
	callq	_gr_def
	movq	%r15, %rdi
	movl	$4206824, %esi                  ## imm = 0x4030E8
LBB0_34:
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_gr_def
LBB0_35:
	xorl	%edx, %edx
	cmpl	$64, (%r12)
	sete	%dl
	addl	$3, %edx
	movq	%r15, %rdi
	movl	$4207616, %esi                  ## imm = 0x403400
	callq	_cp_ctx
	xorl	%edx, %edx
	cmpl	$64, (%r12)
	sete	%dl
	addl	$3, %edx
	movq	%r15, %rdi
	movl	$4207632, %esi                  ## imm = 0x403410
	callq	_cp_ctx
	movq	(%r15), %rdi
	callq	_nv40_gr_vs_count
	movl	$4207648, %r14d                 ## imm = 0x403420
	movq	%r15, %rdi
	movl	$4207648, %esi                  ## imm = 0x403420
	movl	%eax, %edx
	callq	_cp_ctx
	movq	(%r15), %rdi
	callq	_nv40_gr_vs_count
	testl	%eax, %eax
	jle	LBB0_38
## %bb.36:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$21845, %edx                    ## imm = 0x5555
	callq	_gr_def
	incl	%ebx
	movq	(%r15), %rdi
	callq	_nv40_gr_vs_count
	addl	$4, %r14d
	cmpl	%eax, %ebx
	jl	LBB0_37
LBB0_38:
	cmpl	$64, (%r12)
	je	LBB0_40
## %bb.39:
	movq	%r15, %rdi
	movl	$4208128, %esi                  ## imm = 0x403600
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4208128, %esi                  ## imm = 0x403600
	movl	$1, %edx
	callq	_gr_def
LBB0_40:
	movq	%r15, %rdi
	movl	$4208640, %esi                  ## imm = 0x403800
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4209688, %esi                  ## imm = 0x403C18
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4209688, %esi                  ## imm = 0x403C18
	movl	$1, %edx
	callq	_gr_def
	movl	(%r12), %eax
	leal	-70(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_43
## %bb.41:
	movl	$43, %edx
	btl	%ecx, %edx
	jae	LBB0_43
## %bb.42:
	movq	%r15, %rdi
	movl	$4214808, %esi                  ## imm = 0x405018
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4214808, %esi                  ## imm = 0x405018
	movl	$148897793, %edx                ## imm = 0x8E00001
	callq	_gr_def
	movq	%r15, %rdi
	movl	$4217892, %esi                  ## imm = 0x405C24
	movl	$1, %edx
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4217892, %esi                  ## imm = 0x405C24
	movl	$929792, %edx                   ## imm = 0xE3000
	callq	_gr_def
	movl	(%r12), %eax
LBB0_43:
	cmpl	$78, %eax
	je	LBB0_45
## %bb.44:
	movq	%r15, %rdi
	movl	$4216832, %esi                  ## imm = 0x405800
	movl	$11, %edx
	callq	_cp_ctx
LBB0_45:
	movq	%r15, %rdi
	movl	$4222976, %esi                  ## imm = 0x407000
	movl	$1, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cp_ctx                         ## TAILCALL
LBB0_29:
	movq	%r15, %rdi
	movl	$4205584, %esi                  ## imm = 0x402C10
	movl	$4, %edx
	callq	_cp_ctx
	movl	(%r12), %eax
	movl	$36, %edx
	cmpl	$64, %eax
	je	LBB0_32
## %bb.30:
	movl	$24, %edx
	cmpl	$67, %eax
	jl	LBB0_32
## %bb.31:
	xorl	%ecx, %ecx
	cmpl	$75, %eax
	setb	%cl
	leal	8(,%rcx,8), %edx
LBB0_32:
	movq	%r15, %rdi
	movl	$4205600, %esi                  ## imm = 0x402C20
	callq	_cp_ctx
	xorl	%edx, %edx
	cmpl	$64, (%r12)
	sete	%dl
	xorl	$13, %edx
	movq	%r15, %rdi
	movl	$4205744, %esi                  ## imm = 0x402CB0
	callq	_cp_ctx
	movq	%r15, %rdi
	movl	$4205780, %esi                  ## imm = 0x402CD4
	movl	$5, %edx
	callq	_gr_def
	cmpl	$64, (%r12)
	je	LBB0_35
## %bb.33:
	movq	%r15, %rdi
	movl	$4205792, %esi                  ## imm = 0x402CE0
	jmp	LBB0_34
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_21
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_19
	.long	L0_0_set_23
	.long	L0_0_set_19
	.long	L0_0_set_23
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_nv40_gr_construct_state3d_2
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.nv40_gr_construct_state3d_2
l_switch.table.nv40_gr_construct_state3d_2:
	.long	1611677440                      ## 0x60103f00
	.long	537935616                       ## 0x20103f00
	.long	537935616                       ## 0x20103f00
	.long	202391296                       ## 0xc103f00
	.long	202391296                       ## 0xc103f00
	.long	202391296                       ## 0xc103f00
	.long	202391296                       ## 0xc103f00
	.long	1074806528                      ## 0x40103f00
	.long	202391296                       ## 0xc103f00
	.long	537935616                       ## 0x20103f00
	.long	202391296                       ## 0xc103f00
	.long	537935616                       ## 0x20103f00

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv40_gr_construct_state3d_2
_nv40_gr_construct_state3d_2:           ; @nv40_gr_construct_state3d_2
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w23, #10308
	movk	w23, #64, lsl #16
	mov	w8, #12288
	movk	w8, #14, lsl #16
	ldr	x22, [x0]
	add	w1, w8, #799, lsl #12           ; =3272704
	mov	w20, #1
	mov	w2, #1
	bl	_cp_ctx
	ldr	w8, [x22]
	cmp	w8, #64
	cinc	w2, w20, ne
	sub	w21, w23, #1088
	mov	x0, x19
	mov	x1, x21
	bl	_cp_ctx
	ldr	w8, [x22]
	sub	w8, w8, #64
	cmp	w8, #39
	b.hi	LBB0_6
; %bb.1:
	mov	w9, #1
	lsl	x9, x9, x8
	mov	w10, #2624
	tst	x9, x10
	b.ne	LBB0_4
; %bb.2:
	mov	w9, #1
	lsl	x9, x9, x8
	mov	x10, #20480
	movk	x10, #128, lsl #32
	tst	x9, x10
	b.eq	LBB0_5
; %bb.3:
	mov	w20, #32
	b	LBB0_7
LBB0_4:
	mov	w20, #1057
	b	LBB0_7
LBB0_5:
	cbz	x8, LBB0_7
LBB0_6:
	mov	w20, #33
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_gr_def
	ldr	w8, [x22]
	cmp	w8, #64
	b.eq	LBB0_11
; %bb.8:
	sub	w1, w23, #1084
	mov	x0, x19
	mov	w2, #12483
	movk	w2, #780, lsl #16
	bl	_gr_def
	ldr	w8, [x22]
	sub	w9, w8, #68
	cmp	w9, #35
	mov	w10, #1
	lsl	x9, x10, x9
	mov	x10, #1349
	movk	x10, #8, lsl #32
	and	x9, x9, x10
	ccmp	x9, #0, #4, ls
	b.eq	LBB0_10
; %bb.9:
	sub	w20, w23, #1028
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_cp_ctx
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4097
	movk	w2, #1, lsl #16
	bl	_gr_def
	ldr	w8, [x22]
LBB0_10:
	cmp	w8, #64
	b.ne	LBB0_12
LBB0_11:
	mov	w2, #8
	b	LBB0_13
LBB0_12:
	mov	w2, #9
LBB0_13:
	sub	w1, w23, #964
	mov	x0, x19
	bl	_cp_ctx
	sub	w1, w23, #956
	mov	x0, x19
	mov	w2, #512
	movk	w2, #15874, lsl #16
	bl	_gr_def
	sub	w1, w23, #952
	mov	x0, x19
	mov	w2, #16777215
	bl	_gr_def
	ldr	w8, [x22]
	sub	w8, w8, #64
	cmp	w8, #11
	b.hi	LBB0_15
; %bb.14:
Lloh0:
	adrp	x9, l_switch.table.nv40_gr_construct_state3d_2@PAGE
Lloh1:
	add	x9, x9, l_switch.table.nv40_gr_construct_state3d_2@PAGEOFF
	ldr	w2, [x9, w8, sxtw #2]
	b	LBB0_16
LBB0_15:
	mov	w2, #16128
	movk	w2, #3088, lsl #16
LBB0_16:
	sub	w1, w23, #948
	mov	x0, x19
	bl	_gr_def
	ldr	w8, [x22]
	mov	w9, #262144
	mov	w10, #131072
	cmp	w8, #68
	csel	w2, w10, w9, lt
	sub	w1, w23, #936
	mov	x0, x19
	bl	_gr_def
	sub	w1, w23, #836
	mov	x0, x19
	mov	w2, #31
	bl	_cp_ctx
	sub	w1, w23, #788
	mov	x0, x19
	mov	w2, #33024
	bl	_gr_def
	ldr	w8, [x22]
	cmp	w8, #64
	b.ne	LBB0_18
; %bb.17:
	sub	w1, w23, #712
	mov	x0, x19
	mov	w2, #6
	bl	_cp_ctx
LBB0_18:
	sub	w1, w23, #688
	mov	x0, x19
	mov	w2, #16
	bl	_cp_ctx
	sub	w20, w23, #68
	mov	x0, x19
	mov	x1, x20
	mov	w2, #17
	bl	_cp_ctx
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_gr_def
	ldr	w8, [x22]
	sub	w8, w8, #64
	cmp	w8, #11
	b.hi	LBB0_24
; %bb.19:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_20
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_20:
	add	w20, w23, #32
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_cp_ctx
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4097
	bl	_gr_def
	add	w1, w23, #44
	mov	x0, x19
	mov	w2, #3
	bl	_cp_ctx
	add	w1, w23, #52
	mov	x0, x19
	mov	w2, #3
	bl	_gr_def
	ldr	w8, [x22]
	cmp	w8, #71
	b.eq	LBB0_25
; %bb.21:
	add	w1, w23, #188
	mov	x0, x19
	mov	w2, #1
	bl	_cp_ctx
	add	w1, w23, #252
	mov	x0, x19
	mov	w2, #1
	bl	_cp_ctx
	add	w1, w23, #316
	mov	x0, x19
	mov	w2, #1
	bl	_cp_ctx
	add	w1, w23, #380
	mov	x0, x19
	mov	w2, #1
	bl	_cp_ctx
	add	w1, w23, #444
	mov	x0, x19
	mov	w2, #1
	bl	_cp_ctx
	add	w1, w23, #508
	mov	x0, x19
	mov	w2, #1
	bl	_cp_ctx
	add	w1, w23, #572
	mov	x0, x19
	mov	w2, #1
	bl	_cp_ctx
	add	w1, w23, #636
	b	LBB0_23
LBB0_22:
	mov	x0, x19
	mov	w1, #10308
	movk	w1, #64, lsl #16
	mov	w2, #1
	bl	_cp_ctx
	mov	x0, x19
	mov	w1, #10308
	movk	w1, #64, lsl #16
	mov	w2, #1
	bl	_gr_def
	add	w1, w23, #12
LBB0_23:
	mov	x0, x19
	mov	w2, #1
	bl	_cp_ctx
	b	LBB0_25
LBB0_24:
	mov	x0, x19
	mov	w1, #10308
	movk	w1, #64, lsl #16
	mov	w2, #1
	bl	_cp_ctx
	mov	x0, x19
	mov	w1, #10308
	movk	w1, #64, lsl #16
	mov	w2, #4097
	bl	_gr_def
	add	w1, w23, #12
	mov	x0, x19
	mov	w2, #2
	bl	_cp_ctx
	add	w1, w23, #16
	mov	x0, x19
	mov	w2, #3
	bl	_gr_def
LBB0_25:
	add	w20, w23, #956
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_cp_ctx
	ldr	w8, [x22]
	mov	w9, #32769
	movk	w9, #136, lsl #16
	mov	w10, #1
	movk	w10, #32896, lsl #16
	cmp	w8, #64
	csel	w2, w10, w9, eq
	mov	x0, x19
	mov	x1, x20
	bl	_gr_def
	ldr	w8, [x22]
	sub	w8, w8, #71
	cmp	w8, #4
	b.hi	LBB0_42
; %bb.26:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #21
	tst	w8, w9
	b.eq	LBB0_42
; %bb.27:
	add	w1, w23, #988
	mov	x0, x19
	mov	w2, #40
	bl	_cp_ctx
	mov	w20, #0
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	add	w8, w23, w20
	add	w1, w8, #1020
	mov	x0, x19
	mov	w2, #-1
	bl	_gr_def
	add	w20, w20, #4
	cmp	w20, #128
	b.ne	LBB0_28
; %bb.29:
	add	w1, w23, #2164
	mov	x0, x19
	mov	w2, #13
	bl	_cp_ctx
	add	w1, w23, #2200
	mov	x0, x19
	mov	w2, #5
	bl	_gr_def
	add	w1, w23, #2212
LBB0_30:
	mov	x0, x19
	mov	w2, #65535
	bl	_gr_def
LBB0_31:
	mov	w21, #13344
	movk	w21, #64, lsl #16
	ldr	w8, [x22]
	cmp	w8, #64
	mov	w20, #3
	cinc	w2, w20, eq
	add	w1, w23, #3004
	mov	x0, x19
	bl	_cp_ctx
	ldr	w8, [x22]
	cmp	w8, #64
	cinc	w2, w20, eq
	sub	w1, w21, #16
	mov	x0, x19
	bl	_cp_ctx
	ldr	x0, [x19]
	bl	_nv40_gr_vs_count
	mov	x2, x0
	mov	x0, x19
	mov	w1, #13344
	movk	w1, #64, lsl #16
	bl	_cp_ctx
	ldr	x0, [x19]
	bl	_nv40_gr_vs_count
	cmp	w0, #1
	b.lt	LBB0_34
; %bb.32:
	mov	w23, #0
	mov	w20, #13344
	movk	w20, #64, lsl #16
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #21845
	bl	_gr_def
	add	w23, w23, #1
	ldr	x0, [x19]
	bl	_nv40_gr_vs_count
	add	w20, w20, #4
	cmp	w23, w0
	b.lt	LBB0_33
LBB0_34:
	ldr	w8, [x22]
	cmp	w8, #64
	b.eq	LBB0_36
; %bb.35:
	add	w20, w21, #480
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_cp_ctx
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_gr_def
LBB0_36:
	mov	w23, #20504
	movk	w23, #64, lsl #16
	add	w1, w21, #992
	mov	w24, #1
	mov	x0, x19
	mov	w2, #1
	bl	_cp_ctx
	add	w20, w21, #2040
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_cp_ctx
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_gr_def
	ldr	w8, [x22]
	sub	w9, w8, #70
	cmp	w9, #5
	b.hi	LBB0_39
; %bb.37:
	lsl	w9, w24, w9
	mov	w10, #43
	tst	w9, w10
	b.eq	LBB0_39
; %bb.38:
	mov	x0, x19
	mov	w1, #20504
	movk	w1, #64, lsl #16
	mov	w2, #1
	bl	_cp_ctx
	mov	x0, x19
	mov	w1, #20504
	movk	w1, #64, lsl #16
	mov	w2, #1
	movk	w2, #2272, lsl #16
	bl	_gr_def
	add	w20, w23, #3084
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_cp_ctx
	mov	x0, x19
	mov	x1, x20
	mov	w2, #12288
	movk	w2, #14, lsl #16
	bl	_gr_def
	ldr	w8, [x22]
LBB0_39:
	cmp	w8, #78
	b.eq	LBB0_41
; %bb.40:
	add	w1, w23, #2024
	mov	x0, x19
	mov	w2, #11
	bl	_cp_ctx
LBB0_41:
	mov	x0, x19
	mov	w1, #28672
	movk	w1, #64, lsl #16
	mov	w2, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cp_ctx
LBB0_42:
	add	w1, w23, #972
	mov	x0, x19
	mov	w2, #4
	bl	_cp_ctx
	ldr	w8, [x22]
	mov	w9, #36
	mov	w10, #24
	mov	w11, #8
	mov	w12, #16
	cmp	w8, #75
	csel	w11, w12, w11, lo
	cmp	w8, #67
	csel	w10, w10, w11, lt
	cmp	w8, #64
	csel	w2, w9, w10, eq
	add	w1, w23, #988
	mov	x0, x19
	bl	_cp_ctx
	ldr	w8, [x22]
	cmp	w8, #64
	mov	w8, #12
	cinc	w2, w8, ne
	add	w1, w23, #1132
	mov	x0, x19
	bl	_cp_ctx
	add	w1, w23, #1168
	mov	x0, x19
	mov	w2, #5
	bl	_gr_def
	ldr	w8, [x22]
	cmp	w8, #64
	b.eq	LBB0_31
; %bb.43:
	add	w1, w23, #1180
	b	LBB0_30
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_22-LBB0_20)>>2
	.byte	(LBB0_24-LBB0_20)>>2
	.byte	(LBB0_24-LBB0_20)>>2
	.byte	(LBB0_24-LBB0_20)>>2
	.byte	(LBB0_24-LBB0_20)>>2
	.byte	(LBB0_24-LBB0_20)>>2
	.byte	(LBB0_24-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_24-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_24-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
                                        ; -- End function
	.no_dead_strip	_nv40_gr_construct_state3d_2
	.p2align	2                               ; @switch.table.nv40_gr_construct_state3d_2
l_switch.table.nv40_gr_construct_state3d_2:
	.long	1611677440                      ; 0x60103f00
	.long	537935616                       ; 0x20103f00
	.long	537935616                       ; 0x20103f00
	.long	202391296                       ; 0xc103f00
	.long	202391296                       ; 0xc103f00
	.long	202391296                       ; 0xc103f00
	.long	202391296                       ; 0xc103f00
	.long	1074806528                      ; 0x40103f00
	.long	202391296                       ; 0xc103f00
	.long	537935616                       ; 0x20103f00
	.long	202391296                       ; 0xc103f00
	.long	537935616                       ; 0x20103f00

.subsections_via_symbols
