	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv10_gr_init                   ## -- Begin function nv10_gr_init
	.p2align	4, 0x90
_nv10_gr_init:                          ## @nv10_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_nv10_gr
	movq	(%rax), %rbx
	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	$1148672, %edx                  ## imm = 0x118700
	callq	_nvkm_wr32
	movq	_NV04_PGRAPH_DEBUG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$637086425, %edx                ## imm = 0x25F92AD9
	callq	_nvkm_wr32
	movq	_NV04_PGRAPH_DEBUG_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-169998288, %edx               ## imm = 0xF5DE0830
	callq	_nvkm_wr32
	movq	(%rbx), %rax
	movq	_NV_11@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.1:
	cmpl	$23, 8(%rbx)
	jl	LBB0_3
## %bb.2:
	movq	_NV10_PGRAPH_DEBUG_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$520093696, %edx                ## imm = 0x1F000000
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4196880, %esi                  ## imm = 0x400A10
	movl	$67059638, %edx                 ## imm = 0x3FF3FB6
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4196408, %esi                  ## imm = 0x400838
	movl	$3114628, %edx                  ## imm = 0x2F8684
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4196412, %esi                  ## imm = 0x40083C
	movl	$1138495, %edx                  ## imm = 0x115F3F
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$4196016, %esi                  ## imm = 0x4006B0
	movl	$1073741856, %edx               ## imm = 0x40000020
	jmp	LBB0_4
LBB0_3:
	movq	_NV10_PGRAPH_DEBUG_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
LBB0_4:
	callq	_nvkm_wr32
	xorl	%edi, %edi
	callq	_NV10_PGRAPH_CTX_SWITCH
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movl	$1, %edi
	callq	_NV10_PGRAPH_CTX_SWITCH
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movl	$2, %edi
	callq	_NV10_PGRAPH_CTX_SWITCH
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movl	$3, %edi
	callq	_NV10_PGRAPH_CTX_SWITCH
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movl	$4, %edi
	callq	_NV10_PGRAPH_CTX_SWITCH
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_CTX_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-16777216, %edx                ## imm = 0xFF000000
	movl	$520093696, %ecx                ## imm = 0x1F000000
	callq	_nvkm_mask
	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_FFINTFC_ST2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$134217728, %edx                ## imm = 0x8000000
	callq	_nvkm_wr32
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_2,4,2        ## @NV04_PGRAPH_DEBUG_2
	.comm	_NV04_PGRAPH_DEBUG_3,4,2        ## @NV04_PGRAPH_DEBUG_3
	.comm	_NV_11,8,3                      ## @NV_11
	.comm	_NV10_PGRAPH_DEBUG_4,4,2        ## @NV10_PGRAPH_DEBUG_4
	.comm	_NV10_PGRAPH_STATE,4,2          ## @NV10_PGRAPH_STATE
	.comm	_NV10_PGRAPH_CTX_USER,4,2       ## @NV10_PGRAPH_CTX_USER
	.comm	_NV10_PGRAPH_CTX_CONTROL,4,2    ## @NV10_PGRAPH_CTX_CONTROL
	.comm	_NV10_PGRAPH_FFINTFC_ST2,4,2    ## @NV10_PGRAPH_FFINTFC_ST2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv10_gr_init                   ; -- Begin function nv10_gr_init
	.p2align	2
_nv10_gr_init:                          ; @nv10_gr_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_nv10_gr
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _NV03_PGRAPH_INTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV03_PGRAPH_INTR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
Lloh3:
	adrp	x8, _NV03_PGRAPH_INTR_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV03_PGRAPH_INTR_EN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
Lloh6:
	adrp	x20, _NV04_PGRAPH_DEBUG_0@GOTPAGE
Lloh7:
	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
Lloh8:
	adrp	x8, _NV04_PGRAPH_DEBUG_1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NV04_PGRAPH_DEBUG_1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #34560
	movk	w2, #17, lsl #16
	bl	_nvkm_wr32
Lloh11:
	adrp	x8, _NV04_PGRAPH_DEBUG_2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NV04_PGRAPH_DEBUG_2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #10969
	movk	w2, #9721, 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, #2096
	movk	w2, #62942, lsl #16
	bl	_nvkm_wr32
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _NV_11@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NV_11@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #23
	b.lt	LBB0_3
; %bb.2:
Lloh20:
	adrp	x8, _NV10_PGRAPH_DEBUG_4@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NV10_PGRAPH_DEBUG_4@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #520093696
	bl	_nvkm_wr32
	mov	w20, #1712
	movk	w20, #64, lsl #16
	add	w1, w20, #864
	mov	x0, x19
	mov	w2, #16310
	movk	w2, #1023, lsl #16
	bl	_nvkm_wr32
	add	w1, w20, #392
	mov	x0, x19
	mov	w2, #34436
	movk	w2, #47, lsl #16
	bl	_nvkm_wr32
	add	w1, w20, #396
	mov	x0, x19
	mov	w2, #24383
	movk	w2, #17, lsl #16
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #1712
	movk	w1, #64, lsl #16
	mov	w2, #32
	movk	w2, #16384, lsl #16
	b	LBB0_4
LBB0_3:
Lloh23:
	adrp	x8, _NV10_PGRAPH_DEBUG_4@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NV10_PGRAPH_DEBUG_4@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
LBB0_4:
	bl	_nvkm_wr32
	mov	w0, #0
	bl	_NV10_PGRAPH_CTX_SWITCH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	mov	w0, #1
	bl	_NV10_PGRAPH_CTX_SWITCH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	mov	w0, #2
	bl	_NV10_PGRAPH_CTX_SWITCH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	mov	w0, #3
	bl	_NV10_PGRAPH_CTX_SWITCH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	mov	w0, #4
	bl	_NV10_PGRAPH_CTX_SWITCH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	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
Lloh29:
	adrp	x8, _NV10_PGRAPH_CTX_USER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NV10_PGRAPH_CTX_USER@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-16777216
	mov	w3, #520093696
	bl	_nvkm_mask
Lloh32:
	adrp	x8, _NV10_PGRAPH_CTX_CONTROL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NV10_PGRAPH_CTX_CONTROL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #256
	movk	w2, #4096, lsl #16
	bl	_nvkm_wr32
Lloh35:
	adrp	x8, _NV10_PGRAPH_FFINTFC_ST2@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NV10_PGRAPH_FFINTFC_ST2@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #134217728
	bl	_nvkm_wr32
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.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_2,4,2        ; @NV04_PGRAPH_DEBUG_2
	.comm	_NV04_PGRAPH_DEBUG_3,4,2        ; @NV04_PGRAPH_DEBUG_3
	.comm	_NV_11,8,3                      ; @NV_11
	.comm	_NV10_PGRAPH_DEBUG_4,4,2        ; @NV10_PGRAPH_DEBUG_4
	.comm	_NV10_PGRAPH_STATE,4,2          ; @NV10_PGRAPH_STATE
	.comm	_NV10_PGRAPH_CTX_USER,4,2       ; @NV10_PGRAPH_CTX_USER
	.comm	_NV10_PGRAPH_CTX_CONTROL,4,2    ; @NV10_PGRAPH_CTX_CONTROL
	.comm	_NV10_PGRAPH_FFINTFC_ST2,4,2    ; @NV10_PGRAPH_FFINTFC_ST2
.subsections_via_symbols
