	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv40_gr_init                   ## -- Begin function nv40_gr_init
	.p2align	4, 0x90
_nv40_gr_init:                          ## @nv40_gr_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_nv40_gr
	movq	8(%rax), %r15
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_nv40_grctx_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.1:
	movq	_NV40_PGRAPH_CTXCTL_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	_NV03_PGRAPH_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	_NV40_PGRAPH_INTR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	_NV04_PGRAPH_DEBUG_0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_nvkm_wr32
	movl	(%r14), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	_NV04_PGRAPH_DEBUG_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1074956224, %edx               ## imm = 0x401287C0
	callq	_nvkm_wr32
	movq	_NV04_PGRAPH_DEBUG_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-522289067, %edx               ## imm = 0xE0DE8055
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_DEBUG_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_nvkm_wr32
	movq	_NV04_PGRAPH_LIMIT_VIOL_PIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$12467295, %edx                 ## imm = 0xBE3C5F
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_CTX_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$268501248, %edx                ## imm = 0x10010100
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$5440, %esi                     ## imm = 0x1540
	callq	_nvkm_rd32
	movl	%eax, %ecx
	andl	$255, %ecx
	je	LBB0_6
## %bb.2:
	testb	$1, %al
	jne	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movl	%ecx, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	shrl	%eax
	incl	%ebx
	testb	$2, %cl
	movl	%eax, %ecx
	je	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	movl	$4214784, %esi                  ## imm = 0x405000
	movl	%ebx, %edx
	callq	_nvkm_wr32
LBB0_6:
	cmpl	$64, (%r15)
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movl	$4196784, %esi                  ## imm = 0x4009B0
	movl	$-2094526465, %edx              ## imm = 0x83280FFF
	callq	_nvkm_wr32
	movl	$4196788, %esi                  ## imm = 0x4009B4
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	movl	$4196384, %esi                  ## imm = 0x400820
	movl	$-2094526721, %edx              ## imm = 0x83280EFF
	callq	_nvkm_wr32
	movl	$4196388, %esi                  ## imm = 0x400824
LBB0_9:
	movq	%r15, %rdi
	movl	$160, %edx
	callq	_nvkm_wr32
	movl	(%r15), %eax
	addl	$-64, %eax
	cmpl	$14, %eax
	ja	LBB0_18
## %bb.10:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	movq	%r15, %rdi
	movl	$4196448, %esi                  ## imm = 0x400860
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$4196452, %esi                  ## imm = 0x400864
	xorl	%edx, %edx
	jmp	LBB0_17
LBB0_16:
	movq	%r15, %rdi
	movl	$4196392, %esi                  ## imm = 0x400828
	movl	$126027280, %edx                ## imm = 0x7830610
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$4196396, %esi                  ## imm = 0x40082C
	movl	$362, %edx                      ## imm = 0x16A
	jmp	LBB0_17
LBB0_11:
	movq	%r15, %rdi
	movl	$4196792, %esi                  ## imm = 0x4009B8
	movl	$7922534, %edx                  ## imm = 0x78E366
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$4196796, %esi                  ## imm = 0x4009BC
	movl	$332, %edx                      ## imm = 0x14C
	jmp	LBB0_17
LBB0_12:
	movq	%r15, %rdi
	movl	$4196392, %esi                  ## imm = 0x400828
	movl	$7706367, %edx                  ## imm = 0x7596FF
	jmp	LBB0_13
LBB0_14:
	movq	%r15, %rdi
	movl	$4196392, %esi                  ## imm = 0x400828
	movl	$7523191, %edx                  ## imm = 0x72CB77
LBB0_13:
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$4196396, %esi                  ## imm = 0x40082C
	movl	$264, %edx                      ## imm = 0x108
LBB0_17:
	callq	_nvkm_wr32
LBB0_18:
	movq	%r15, %rdi
	movl	$4197176, %esi                  ## imm = 0x400B38
	movl	$805304320, %edx                ## imm = 0x2FFFF800
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$4197180, %esi                  ## imm = 0x400B3C
	movl	$24576, %edx                    ## imm = 0x6000
	callq	_nvkm_wr32
	movl	(%r15), %eax
	addl	$-68, %eax
	cmpl	$35, %eax
	ja	LBB0_25
## %bb.19:
	movl	$268687496, %edx                ## imm = 0x1003D888
	movabsq	$34359739648, %rcx              ## imm = 0x800000500
	btq	%rax, %rcx
	jb	LBB0_23
## %bb.20:
	movl	$-1213745920, %ebx              ## imm = 0xB7A7B500
	movl	$65, %ecx
	btq	%rax, %rcx
	jb	LBB0_24
## %bb.21:
	cmpq	$2, %rax
	jne	LBB0_25
## %bb.22:
	movl	$-1213745888, %ebx              ## imm = 0xB7A7B520
	movl	$57380, %edx                    ## imm = 0xE024
	jmp	LBB0_24
LBB0_23:
	movl	$-1213745856, %ebx              ## imm = 0xB7A7B540
LBB0_24:
	movq	%r15, %rdi
	movl	$4197316, %esi                  ## imm = 0x400BC4
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$4197308, %esi                  ## imm = 0x400BBC
	movl	%ebx, %edx
	callq	_nvkm_wr32
LBB0_25:
	movq	8(%r15), %rax
	movq	%r15, %rdi
	movl	$1, %esi
	callq	*(%rax)
	movl	%eax, %r14d
	decl	%r14d
	movl	(%r15), %eax
	addl	$-64, %eax
	cmpl	$14, %eax
	ja	LBB0_30
## %bb.26:
	movl	$17470, %ecx                    ## imm = 0x443E
	btl	%eax, %ecx
	jae	LBB0_28
## %bb.27:
	movl	$4196852, %ebx                  ## imm = 0x4009F4
	movl	$4196848, %r13d                 ## imm = 0x4009F0
LBB0_31:
	movl	$4196516, -60(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x4008A4
	movl	$4196512, -56(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x4008A0
	movl	$4196420, -52(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x400844
	movl	$4196416, -48(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x400840
	movl	$4221428, -44(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x4069F4
	movl	$4221424, %r12d                 ## imm = 0x4069F0
LBB0_32:
	movq	%r15, %rdi
	movl	$1049088, %esi                  ## imm = 0x100200
	callq	_nvkm_rd32
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$1049092, %esi                  ## imm = 0x100204
	callq	_nvkm_rd32
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$1049088, %esi                  ## imm = 0x100200
	callq	_nvkm_rd32
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$1049092, %esi                  ## imm = 0x100204
	callq	_nvkm_rd32
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_nvkm_wr32
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_nvkm_wr32
LBB0_33:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	testl	%eax, %eax
	jne	LBB0_30
## %bb.29:
	movl	$4196456, -60(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x400868
	movl	$4196452, -56(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x400864
	movl	$4196388, -52(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x400824
	movl	$4196384, -48(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x400820
	movl	$4221352, -44(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x4069A8
	movl	$4221348, %r12d                 ## imm = 0x4069A4
	movl	$4196776, %ebx                  ## imm = 0x4009A8
	movl	$4196772, %r13d                 ## imm = 0x4009A4
	jmp	LBB0_32
LBB0_30:
	movl	$4197876, %ebx                  ## imm = 0x400DF4
	movl	$4197872, %r13d                 ## imm = 0x400DF0
	jmp	LBB0_31
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_18
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_NV40_PGRAPH_CTXCTL_CUR,4,2     ## @NV40_PGRAPH_CTXCTL_CUR
	.comm	_NV03_PGRAPH_INTR,4,2           ## @NV03_PGRAPH_INTR
	.comm	_NV40_PGRAPH_INTR_EN,4,2        ## @NV40_PGRAPH_INTR_EN
	.comm	_NV04_PGRAPH_DEBUG_0,4,2        ## @NV04_PGRAPH_DEBUG_0
	.comm	_NV04_PGRAPH_DEBUG_1,4,2        ## @NV04_PGRAPH_DEBUG_1
	.comm	_NV04_PGRAPH_DEBUG_3,4,2        ## @NV04_PGRAPH_DEBUG_3
	.comm	_NV10_PGRAPH_DEBUG_4,4,2        ## @NV10_PGRAPH_DEBUG_4
	.comm	_NV04_PGRAPH_LIMIT_VIOL_PIX,4,2 ## @NV04_PGRAPH_LIMIT_VIOL_PIX
	.comm	_NV10_PGRAPH_CTX_CONTROL,4,2    ## @NV10_PGRAPH_CTX_CONTROL
	.comm	_NV10_PGRAPH_STATE,4,2          ## @NV10_PGRAPH_STATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv40_gr_init                   ; -- Begin function nv40_gr_init
	.p2align	2
_nv40_gr_init:                          ; @nv40_gr_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	bl	_nv40_gr
	mov	x1, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_nv40_grctx_init
	cbnz	w0, LBB0_29
; %bb.1:
Lloh0:
	adrp	x8, _NV40_PGRAPH_CTXCTL_CUR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV40_PGRAPH_CTXCTL_CUR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
Lloh3:
	adrp	x8, _NV03_PGRAPH_INTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV03_PGRAPH_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
Lloh6:
	adrp	x8, _NV40_PGRAPH_INTR_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NV40_PGRAPH_INTR_EN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
Lloh9:
	adrp	x20, _NV04_PGRAPH_DEBUG_0@GOTPAGE
Lloh10:
	ldr	x20, [x20, _NV04_PGRAPH_DEBUG_0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
Lloh11:
	adrp	x8, _NV04_PGRAPH_DEBUG_1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NV04_PGRAPH_DEBUG_1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #34752
	movk	w2, #16402, lsl #16
	bl	_nvkm_wr32
Lloh14:
	adrp	x8, _NV04_PGRAPH_DEBUG_3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NV04_PGRAPH_DEBUG_3@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #32853
	movk	w2, #57566, lsl #16
	bl	_nvkm_wr32
Lloh17:
	adrp	x8, _NV10_PGRAPH_DEBUG_4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NV10_PGRAPH_DEBUG_4@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #32768
	bl	_nvkm_wr32
Lloh20:
	adrp	x8, _NV04_PGRAPH_LIMIT_VIOL_PIX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NV04_PGRAPH_LIMIT_VIOL_PIX@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #15455
	movk	w2, #190, lsl #16
	bl	_nvkm_wr32
Lloh23:
	adrp	x8, _NV10_PGRAPH_CTX_CONTROL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NV10_PGRAPH_CTX_CONTROL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #256
	movk	w2, #4097, lsl #16
	bl	_nvkm_wr32
Lloh26:
	adrp	x8, _NV10_PGRAPH_STATE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NV10_PGRAPH_STATE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #5440
	bl	_nvkm_rd32
	ands	w8, w0, #0xff
	b.eq	LBB0_5
; %bb.2:
	mov	w2, #0
	tbnz	w0, #0, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	lsr	w8, w8, #1
	add	w2, w2, #1
	tbz	w9, #1, LBB0_3
LBB0_4:
	mov	x0, x19
	mov	w1, #20480
	movk	w1, #64, lsl #16
	bl	_nvkm_wr32
LBB0_5:
	mov	w8, #3839
	movk	w8, #33576, lsl #16
	mov	w25, #2544
	movk	w25, #64, lsl #16
	ldr	w9, [x19]
	cmp	w9, #64
	b.ne	LBB0_7
; %bb.6:
	sub	w1, w25, #64
	add	w2, w8, #256
	mov	x0, x19
	bl	_nvkm_wr32
	sub	w1, w25, #60
	b	LBB0_8
LBB0_7:
	sub	w1, w25, #464
	mov	x0, x19
	mov	w2, #3839
	movk	w2, #33576, lsl #16
	bl	_nvkm_wr32
	sub	w1, w25, #460
LBB0_8:
	mov	x0, x19
	mov	w2, #160
	bl	_nvkm_wr32
	ldr	w8, [x19]
	sub	w8, w8, #64
	cmp	w8, #14
	b.hi	LBB0_17
; %bb.9:
Lloh29:
	adrp	x9, lJTI0_0@PAGE
Lloh30:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	sub	w1, w25, #400
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	sub	w1, w25, #396
	mov	x0, x19
	mov	w2, #0
	b	LBB0_16
LBB0_11:
	sub	w1, w25, #456
	mov	x0, x19
	mov	w2, #1552
	movk	w2, #1923, lsl #16
	bl	_nvkm_wr32
	sub	w1, w25, #452
	mov	x0, x19
	mov	w2, #362
	b	LBB0_16
LBB0_12:
	sub	w1, w25, #56
	mov	x0, x19
	mov	w2, #58214
	movk	w2, #120, lsl #16
	bl	_nvkm_wr32
	sub	w1, w25, #52
	mov	x0, x19
	mov	w2, #332
	b	LBB0_16
LBB0_13:
	sub	w1, w25, #456
	mov	x0, x19
	mov	w2, #38655
	movk	w2, #117, lsl #16
	b	LBB0_15
LBB0_14:
	sub	w1, w25, #456
	mov	x0, x19
	mov	w2, #52087
	movk	w2, #114, lsl #16
LBB0_15:
	bl	_nvkm_wr32
	sub	w1, w25, #452
	mov	x0, x19
	mov	w2, #264
LBB0_16:
	bl	_nvkm_wr32
LBB0_17:
	add	w1, w25, #328
	mov	x0, x19
	mov	w2, #63488
	movk	w2, #12287, lsl #16
	bl	_nvkm_wr32
	add	w1, w25, #332
	mov	x0, x19
	mov	w2, #24576
	bl	_nvkm_wr32
	ldr	w8, [x19]
	sub	w8, w8, #68
	cmp	w8, #35
	b.hi	LBB0_24
; %bb.18:
	mov	w20, #46336
	movk	w20, #47015, lsl #16
	mov	w2, #55432
	movk	w2, #4099, lsl #16
	mov	w9, #1
	lsl	x9, x9, x8
	mov	x10, #1280
	movk	x10, #8, lsl #32
	tst	x9, x10
	b.ne	LBB0_22
; %bb.19:
	mov	w9, #1
	lsl	x9, x9, x8
	mov	w10, #65
	tst	x9, x10
	b.ne	LBB0_23
; %bb.20:
	cmp	x8, #2
	b.ne	LBB0_24
; %bb.21:
	add	w20, w20, #32
	mov	w2, #57380
	b	LBB0_23
LBB0_22:
	add	w20, w20, #64
LBB0_23:
	add	w1, w25, #468
	mov	x0, x19
	bl	_nvkm_wr32
	add	w1, w25, #460
	mov	x0, x19
	mov	x2, x20
	bl	_nvkm_wr32
LBB0_24:
	mov	w21, #27044
	movk	w21, #64, lsl #16
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w22, #1
	mov	x0, x19
	mov	w1, #1
	blr	x8
	sub	w20, w0, #1
	ldr	w8, [x19]
	sub	w8, w8, #64
	cmp	w8, #14
	b.hi	LBB0_32
; %bb.25:
	lsl	w9, w22, w8
	mov	w10, #17470
	tst	w9, w10
	b.eq	LBB0_30
; %bb.26:
	add	w26, w25, #4
	mov	w27, #2544
	movk	w27, #64, lsl #16
LBB0_27:
	sub	w24, w25, #432
	sub	w23, w25, #428
	sub	w22, w25, #336
	sub	w8, w25, #332
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	add	w28, w21, #76
	add	w25, w21, #80
LBB0_28:
	mov	w21, #512
	movk	w21, #16, lsl #16
	mov	x0, x19
	mov	w1, #512
	movk	w1, #16, lsl #16
	bl	_nvkm_rd32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x27
	bl	_nvkm_wr32
	orr	w27, w21, #0x4
	mov	x0, x19
	mov	x1, x27
	bl	_nvkm_rd32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x26
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #512
	movk	w1, #16, lsl #16
	bl	_nvkm_rd32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x28
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x27
	bl	_nvkm_rd32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_nvkm_wr32
	mov	x0, x19
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x2, x20
	bl	_nvkm_wr32
	mov	w0, #0
LBB0_29:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_30:
	cbnz	w8, LBB0_32
; %bb.31:
	sub	w24, w25, #464
	sub	w23, w25, #460
	sub	w22, w25, #396
	sub	w8, w25, #392
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	sub	w27, w25, #76
	sub	w26, w25, #72
	add	w25, w21, #4
	mov	w28, #27044
	movk	w28, #64, lsl #16
	b	LBB0_28
LBB0_32:
	add	w27, w25, #1024
	add	w26, w25, #1028
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
                                        ; -- End function
	.comm	_NV40_PGRAPH_CTXCTL_CUR,4,2     ; @NV40_PGRAPH_CTXCTL_CUR
	.comm	_NV03_PGRAPH_INTR,4,2           ; @NV03_PGRAPH_INTR
	.comm	_NV40_PGRAPH_INTR_EN,4,2        ; @NV40_PGRAPH_INTR_EN
	.comm	_NV04_PGRAPH_DEBUG_0,4,2        ; @NV04_PGRAPH_DEBUG_0
	.comm	_NV04_PGRAPH_DEBUG_1,4,2        ; @NV04_PGRAPH_DEBUG_1
	.comm	_NV04_PGRAPH_DEBUG_3,4,2        ; @NV04_PGRAPH_DEBUG_3
	.comm	_NV10_PGRAPH_DEBUG_4,4,2        ; @NV10_PGRAPH_DEBUG_4
	.comm	_NV04_PGRAPH_LIMIT_VIOL_PIX,4,2 ; @NV04_PGRAPH_LIMIT_VIOL_PIX
	.comm	_NV10_PGRAPH_CTX_CONTROL,4,2    ; @NV10_PGRAPH_CTX_CONTROL
	.comm	_NV10_PGRAPH_STATE,4,2          ; @NV10_PGRAPH_STATE
.subsections_via_symbols
