	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv40_graph_construct_shader
_nv40_graph_construct_shader:           ## @nv40_graph_construct_shader
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	movq	24(%rdi), %r13
	movq	%r12, %rdi
	callq	_nv40_graph_vs_count
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %eax
	cmpl	$64, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movl	$2176, %ecx                     ## imm = 0x880
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$5480, %eax                     ## imm = 0x1568
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$6824, %ecx                     ## imm = 0x1AA8
	jmp	LBB0_5
LBB0_2:
	addl	$-65, %eax
	cmpl	$2, %eax
	jae	LBB0_4
## %bb.3:
	movl	$2176, %eax                     ## imm = 0x880
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$4352, %eax                     ## imm = 0x1100
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$5056, %ecx                     ## imm = 0x13C0
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_nv44_graph_class
	testq	%rax, %rax
	movl	$4752, %eax                     ## imm = 0x1290
	movl	$4704, %ecx                     ## imm = 0x1260
	cmovel	%eax, %ecx
	movl	$4048, %eax                     ## imm = 0xFD0
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1872, %eax                     ## imm = 0x750
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_5:
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	imull	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	leal	192(%rbx), %esi
	movq	%r15, %rdi
	callq	_cp_lsr
	movq	%r12, %rdi
	callq	_nv44_graph_class
	testq	%rax, %rax
	movl	$8388673, %eax                  ## imm = 0x800041
	movl	$8388649, %esi                  ## imm = 0x800029
	cmovel	%eax, %esi
	movq	%r15, %rdi
	callq	_cp_out
	movl	(%r15), %r14d
	leal	(%r14,%rbx), %eax
	addl	$192, %eax
	movl	%eax, (%r15)
	movq	8(%r15), %rax
	movq	_NOUVEAU_GRCTX_VALS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.6:
	leal	640(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	648(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	656(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	664(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	672(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	680(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	688(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	696(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	704(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	712(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	720(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	728(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	736(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	744(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	752(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	leal	760(,%r14,4), %esi
	movq	%r13, %rdi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_13
## %bb.7:
	xorl	%r15d, %r15d
	cmpl	$64, -72(%rbp)                  ## 4-byte Folded Reload
	sete	%r15b
	shll	$8, %r15d
	addl	$256, %r15d                     ## imm = 0x100
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%r14d, %eax
	leal	768(,%rax,4), %ebx
	shll	$2, -60(%rbp)                   ## 4-byte Folded Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%r14d, %eax
	leal	768(,%rax,4), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	movl	$-6, %r14d
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_nv_wo32
	addl	$6, %r14d
	addl	$24, %ebx
	cmpl	$2172, %r14d                    ## imm = 0x87C
	jb	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r14d, %r14d
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$1065353216, %edx               ## imm = 0x3F800000
	callq	_nv_wo32
	addl	$4, %r14d
	addl	$16, %ebx
	cmpl	%r15d, %r14d
	jb	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%r12d
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	addl	%eax, %ebx
	addl	%eax, -72(%rbp)                 ## 4-byte Folded Spill
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jne	LBB0_8
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOUVEAU_GRCTX_VALS,8,3         ## @NOUVEAU_GRCTX_VALS
	.no_dead_strip	_nv40_graph_construct_shader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv40_graph_construct_shader
_nv40_graph_construct_shader:           ; @nv40_graph_construct_shader
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
	ldp	x22, x19, [x0, #16]
	mov	x0, x22
	bl	_nv40_graph_vs_count
	mov	x20, x0
	ldr	w24, [x22]
	cmp	w24, #64
	b.ne	LBB0_2
; %bb.1:
	mov	w25, #5480
	mov	w27, #2176
	mov	w26, #6824
	b	LBB0_5
LBB0_2:
	sub	w8, w24, #65
	cmp	w8, #2
	b.hs	LBB0_4
; %bb.3:
	mov	w25, #4352
	mov	w27, #2176
	mov	w26, #5056
	b	LBB0_5
LBB0_4:
	mov	x0, x22
	bl	_nv44_graph_class
	cmp	x0, #0
	mov	w8, #4704
	mov	w9, #4752
	csel	w26, w9, w8, eq
	mov	w25, #4048
	mov	w27, #1872
LBB0_5:
	orr	w8, wzr, #0xc0
	madd	w23, w26, w20, w8
	mov	x0, x21
	mov	x1, x23
	bl	_cp_lsr
	mov	x0, x22
	bl	_nv44_graph_class
	mov	w8, #41
	movk	w8, #128, lsl #16
	add	w9, w8, #24
	cmp	x0, #0
	csel	w1, w9, w8, eq
	mov	x0, x21
	bl	_cp_out
	ldr	w22, [x21]
	add	w8, w22, w23
	str	w8, [x21]
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _NOUVEAU_GRCTX_VALS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NOUVEAU_GRCTX_VALS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.6:
	lsl	w21, w22, #2
	add	w1, w21, #640
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #648
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #656
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #664
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #672
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #680
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #688
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #696
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #704
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #712
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #720
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #728
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #736
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #744
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #752
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w1, w21, #760
	mov	x0, x19
	mov	w2, #1065353216
	bl	_nv_wo32
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.7:
	mov	w23, #0
	mov	w8, #256
	mov	w9, #512
	cmp	w24, #64
	csel	w24, w9, w8, eq
	add	w8, w27, w22
	lsl	w8, w8, #2
	add	w27, w8, #768
	lsl	w26, w26, #2
	add	w8, w25, w22
	lsl	w8, w8, #2
	add	w22, w8, #768
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	mov	w25, #-6
	mov	x21, x27
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_nv_wo32
	add	w25, w25, #6
	add	w21, w21, #24
	cmp	w25, #2172
	b.lo	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w25, #0
	mov	x21, x22
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1065353216
	bl	_nv_wo32
	add	w25, w25, #4
	add	w21, w21, #16
	cmp	w25, w24
	b.lo	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w23, w23, #1
	add	w27, w27, w26
	add	w22, w22, w26
	cmp	w23, w20
	b.ne	LBB0_8
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NOUVEAU_GRCTX_VALS,8,3         ; @NOUVEAU_GRCTX_VALS
	.no_dead_strip	_nv40_graph_construct_shader
.subsections_via_symbols
