	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv30_gr_init                   ## -- Begin function nv30_gr_init
	.p2align	4, 0x90
_nv30_gr_init:                          ## @nv30_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_nv20_gr
	movq	8(%rax), %rbx
	movq	_NV20_PGRAPH_CHANNEL_CTX_TABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	(%rax), %edi
	callq	_nvkm_memory_addr
	sarl	$4, %eax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_nvkm_wr32
	movq	_NV03_PGRAPH_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	_NV03_PGRAPH_INTR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	_NV04_PGRAPH_DEBUG_0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_nvkm_wr32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	_NV04_PGRAPH_DEBUG_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1074956224, %edx               ## imm = 0x401287C0
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4196496, %esi                  ## imm = 0x400890
	movl	$28599295, %edx                 ## imm = 0x1B463FF
	callq	_nvkm_wr32
	movq	_NV04_PGRAPH_DEBUG_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-220330891, %edx               ## imm = 0xF2DE0475
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_DEBUG_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_nvkm_wr32
	movq	_NV04_PGRAPH_LIMIT_VIOL_PIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-263462922, %edx               ## imm = 0xF04BDFF6
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4197248, %esi                  ## imm = 0x400B80
	movl	$268687496, %edx                ## imm = 0x1003D888
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4197252, %esi                  ## imm = 0x400B84
	movl	$201326592, %edx                ## imm = 0xC000000
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4194456, %esi                  ## imm = 0x400098
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4194460, %esi                  ## imm = 0x40009C
	movl	$371968, %edx                   ## imm = 0x5AD00
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4197256, %esi                  ## imm = 0x400B88
	movl	$1660879103, %edx               ## imm = 0x62FF00FF
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4194464, %esi                  ## imm = 0x4000A0
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4194468, %esi                  ## imm = 0x4000A4
	movl	$8, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4196520, %esi                  ## imm = 0x4008A8
	movl	$-1216044032, %edx              ## imm = 0xB784A400
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4197280, %esi                  ## imm = 0x400BA0
	movl	$3114629, %edx                  ## imm = 0x2F8685
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4197284, %esi                  ## imm = 0x400BA4
	movl	$2301759, %edx                  ## imm = 0x231F3F
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4196516, %esi                  ## imm = 0x4008A4
	movl	$1073741856, %edx               ## imm = 0x40000020
	callq	_nvkm_wr32
	cmpl	$52, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_NV10_PGRAPH_RDI_INDEX@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$15335428, %edx                 ## imm = 0xEA0004
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_RDI_DATA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$2097665, %edx                  ## imm = 0x200201
	callq	_nvkm_wr32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$15335432, %edx                 ## imm = 0xEA0008
	callq	_nvkm_wr32
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_nvkm_wr32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$15335424, %edx                 ## imm = 0xEA0000
	callq	_nvkm_wr32
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$50, %edx
	callq	_nvkm_wr32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$14680068, %edx                 ## imm = 0xE00004
	callq	_nvkm_wr32
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_nvkm_wr32
LBB0_2:
	movq	%rbx, %rdi
	movl	$4194496, %esi                  ## imm = 0x4000C0
	movl	$22, %edx
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_CTX_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$268435712, %edx                ## imm = 0x10000100
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4196188, %esi                  ## imm = 0x40075C
	movl	$1, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1049088, %esi                  ## imm = 0x100200
	callq	_nvkm_rd32
	movq	%rbx, %rdi
	movl	$4196772, %esi                  ## imm = 0x4009A4
	movl	%eax, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1049092, %esi                  ## imm = 0x100204
	callq	_nvkm_rd32
	movq	%rbx, %rdi
	movl	$4196776, %esi                  ## imm = 0x4009A8
	movl	%eax, %edx
	callq	_nvkm_wr32
	cmpl	$52, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$4196176, %esi                  ## imm = 0x400750
	movl	$15335424, %edx                 ## imm = 0xEA0000
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1049088, %esi                  ## imm = 0x100200
	callq	_nvkm_rd32
	movq	%rbx, %rdi
	movl	$4196180, %esi                  ## imm = 0x400754
	movl	%eax, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4196176, %esi                  ## imm = 0x400750
	movl	$15335428, %edx                 ## imm = 0xEA0004
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1049092, %esi                  ## imm = 0x100204
	callq	_nvkm_rd32
	movq	%rbx, %rdi
	movl	$4196180, %esi                  ## imm = 0x400754
	movl	%eax, %edx
	callq	_nvkm_wr32
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV20_PGRAPH_CHANNEL_CTX_TABLE,4,2 ## @NV20_PGRAPH_CHANNEL_CTX_TABLE
	.comm	_NV03_PGRAPH_INTR,4,2           ## @NV03_PGRAPH_INTR
	.comm	_NV03_PGRAPH_INTR_EN,4,2        ## @NV03_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_RDI_INDEX,4,2      ## @NV10_PGRAPH_RDI_INDEX
	.comm	_NV10_PGRAPH_RDI_DATA,4,2       ## @NV10_PGRAPH_RDI_DATA
	.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	_nv30_gr_init                   ; -- Begin function nv30_gr_init
	.p2align	2
_nv30_gr_init:                          ; @nv30_gr_init
	.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	w22, #4
	movk	w22, #234, lsl #16
	mov	w21, #1872
	movk	w21, #64, lsl #16
	bl	_nv20_gr
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _NV20_PGRAPH_CHANNEL_CTX_TABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV20_PGRAPH_CHANNEL_CTX_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x0]
	bl	_nvkm_memory_addr
	asr	w2, w0, #4
	mov	x0, x19
	mov	x1, x20
	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, _NV03_PGRAPH_INTR_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NV03_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
	add	w1, w21, #320
	mov	x0, x19
	mov	w2, #25599
	movk	w2, #436, 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, #1141
	movk	w2, #62174, 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, #57334
	movk	w2, #61515, lsl #16
	bl	_nvkm_wr32
	add	w1, w21, #1072
	mov	x0, x19
	mov	w2, #55432
	movk	w2, #4099, lsl #16
	bl	_nvkm_wr32
	add	w1, w21, #1076
	mov	x0, x19
	mov	w2, #201326592
	bl	_nvkm_wr32
	sub	w1, w21, #1720
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	sub	w1, w21, #1716
	mov	x0, x19
	mov	w2, #44288
	movk	w2, #5, lsl #16
	bl	_nvkm_wr32
	add	w1, w21, #1080
	mov	x0, x19
	mov	w2, #255
	movk	w2, #25343, lsl #16
	bl	_nvkm_wr32
	sub	w1, w21, #1712
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	sub	w1, w21, #1708
	mov	x0, x19
	mov	w2, #8
	bl	_nvkm_wr32
	add	w1, w21, #344
	mov	x0, x19
	mov	w2, #41984
	movk	w2, #46980, lsl #16
	bl	_nvkm_wr32
	add	w1, w21, #1104
	mov	x0, x19
	mov	w2, #34437
	movk	w2, #47, lsl #16
	bl	_nvkm_wr32
	add	w1, w21, #1108
	mov	x0, x19
	mov	w2, #7999
	movk	w2, #35, lsl #16
	bl	_nvkm_wr32
	add	w1, w21, #340
	mov	x0, x19
	mov	w2, #32
	movk	w2, #16384, lsl #16
	bl	_nvkm_wr32
	ldr	w8, [x19]
	cmp	w8, #52
	b.ne	LBB0_2
; %bb.1:
Lloh23:
	adrp	x20, _NV10_PGRAPH_RDI_INDEX@GOTPAGE
Lloh24:
	ldr	x20, [x20, _NV10_PGRAPH_RDI_INDEX@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #4
	movk	w2, #234, lsl #16
	bl	_nvkm_wr32
Lloh25:
	adrp	x23, _NV10_PGRAPH_RDI_DATA@GOTPAGE
Lloh26:
	ldr	x23, [x23, _NV10_PGRAPH_RDI_DATA@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #513
	movk	w2, #32, lsl #16
	bl	_nvkm_wr32
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #8
	movk	w2, #234, lsl #16
	bl	_nvkm_wr32
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #8
	bl	_nvkm_wr32
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #15335424
	bl	_nvkm_wr32
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #50
	bl	_nvkm_wr32
	ldr	w1, [x20]
	sub	w2, w22, #160, lsl #12          ; =655360
	mov	x0, x19
	bl	_nvkm_wr32
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #2
	bl	_nvkm_wr32
LBB0_2:
	mov	w22, #512
	movk	w22, #16, lsl #16
	sub	w1, w21, #1680
	mov	x0, x19
	mov	w2, #22
	bl	_nvkm_wr32
Lloh27:
	adrp	x8, _NV10_PGRAPH_CTX_CONTROL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NV10_PGRAPH_CTX_CONTROL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #256
	movk	w2, #4096, lsl #16
	bl	_nvkm_wr32
Lloh30:
	adrp	x8, _NV10_PGRAPH_STATE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NV10_PGRAPH_STATE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
	add	w1, w21, #12
	mov	x0, x19
	mov	w2, #1
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #512
	movk	w1, #16, lsl #16
	bl	_nvkm_rd32
	mov	x2, x0
	add	w1, w21, #596
	mov	x0, x19
	bl	_nvkm_wr32
	orr	w1, w22, #0x4
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x2, x0
	add	w1, w21, #600
	mov	x0, x19
	bl	_nvkm_wr32
	ldr	w8, [x19]
	cmp	w8, #52
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1872
	movk	w1, #64, lsl #16
	mov	w2, #15335424
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #512
	movk	w1, #16, lsl #16
	bl	_nvkm_rd32
	mov	x2, x0
	add	w20, w21, #4
	mov	x0, x19
	mov	x1, x20
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #1872
	movk	w1, #64, lsl #16
	mov	w2, #4
	movk	w2, #234, lsl #16
	bl	_nvkm_wr32
	add	w1, w22, #4
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_nvkm_wr32
LBB0_4:
	mov	w0, #0
	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
	ret
	.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 AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NV20_PGRAPH_CHANNEL_CTX_TABLE,4,2 ; @NV20_PGRAPH_CHANNEL_CTX_TABLE
	.comm	_NV03_PGRAPH_INTR,4,2           ; @NV03_PGRAPH_INTR
	.comm	_NV03_PGRAPH_INTR_EN,4,2        ; @NV03_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_RDI_INDEX,4,2      ; @NV10_PGRAPH_RDI_INDEX
	.comm	_NV10_PGRAPH_RDI_DATA,4,2       ; @NV10_PGRAPH_RDI_DATA
	.comm	_NV10_PGRAPH_CTX_CONTROL,4,2    ; @NV10_PGRAPH_CTX_CONTROL
	.comm	_NV10_PGRAPH_STATE,4,2          ; @NV10_PGRAPH_STATE
.subsections_via_symbols
