	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv10_graph_init
_nv10_graph_init:                       ## @nv10_graph_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_nv_engine
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_nouveau_fb
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_nouveau_graph_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	_NV03_PGRAPH_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-1, %edx
	callq	_nv_wr32
	movq	_NV03_PGRAPH_INTR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-1, %edx
	callq	_nv_wr32
	movq	_NV04_PGRAPH_DEBUG_0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$-1, %edx
	callq	_nv_wr32
	movl	(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	_NV04_PGRAPH_DEBUG_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1148672, %edx                  ## imm = 0x118700
	callq	_nv_wr32
	movq	_NV04_PGRAPH_DEBUG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$637086425, %edx                ## imm = 0x25F92AD9
	callq	_nv_wr32
	movq	_NV04_PGRAPH_DEBUG_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-169998288, %edx               ## imm = 0xF5DE0830
	callq	_nv_wr32
	movq	%r12, %rdi
	callq	_nv_device
	cmpl	$23, (%rax)
	movq	_NV10_PGRAPH_DEBUG_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	jl	LBB0_3
## %bb.2:
	movl	$520093696, %edx                ## imm = 0x1F000000
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$4196880, %esi                  ## imm = 0x400A10
	movl	$67059638, %edx                 ## imm = 0x3FF3FB6
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$4196408, %esi                  ## imm = 0x400838
	movl	$3114628, %edx                  ## imm = 0x2F8684
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$4196412, %esi                  ## imm = 0x40083C
	movl	$1138495, %edx                  ## imm = 0x115F3F
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$4196016, %esi                  ## imm = 0x4006B0
	movl	$1073741856, %edx               ## imm = 0x40000020
	jmp	LBB0_4
LBB0_3:
	xorl	%edx, %edx
LBB0_4:
	callq	_nv_wr32
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	*(%r12)
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_6
LBB0_7:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_NV10_PGRAPH_CTX_SWITCH
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nv_wr32
	movl	$1, %edi
	callq	_NV10_PGRAPH_CTX_SWITCH
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nv_wr32
	movl	$2, %edi
	callq	_NV10_PGRAPH_CTX_SWITCH
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nv_wr32
	movl	$3, %edi
	callq	_NV10_PGRAPH_CTX_SWITCH
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nv_wr32
	movl	$4, %edi
	callq	_NV10_PGRAPH_CTX_SWITCH
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	_NV10_PGRAPH_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-1, %edx
	callq	_nv_wr32
	movq	_NV10_PGRAPH_CTX_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-16777216, %edx                ## imm = 0xFF000000
	movl	$520093696, %ecx                ## imm = 0x1F000000
	callq	_nv_mask
	movq	_NV10_PGRAPH_CTX_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$268435712, %edx                ## imm = 0x10000100
	callq	_nv_wr32
	movq	_NV10_PGRAPH_FFINTFC_ST2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$134217728, %edx                ## imm = 0x8000000
	callq	_nv_wr32
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	_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
	.no_dead_strip	_nv10_graph_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv10_graph_init
_nv10_graph_init:                       ; @nv10_graph_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_nv_engine
	mov	x19, x0
	mov	x0, x20
	bl	_nouveau_fb
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_graph_init
	cbnz	w0, LBB0_8
; %bb.1:
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	_nv_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	_nv_wr32
Lloh6:
	adrp	x21, _NV04_PGRAPH_DEBUG_0@GOTPAGE
Lloh7:
	ldr	x21, [x21, _NV04_PGRAPH_DEBUG_0@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_nv_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	_nv_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	_nv_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	_nv_wr32
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
Lloh17:
	adrp	x9, _NV10_PGRAPH_DEBUG_4@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NV10_PGRAPH_DEBUG_4@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	mov	x0, x19
	cmp	w8, #23
	b.lt	LBB0_3
; %bb.2:
	mov	w2, #520093696
	bl	_nv_wr32
	mov	w21, #1712
	movk	w21, #64, lsl #16
	add	w1, w21, #864
	mov	x0, x19
	mov	w2, #16310
	movk	w2, #1023, lsl #16
	bl	_nv_wr32
	add	w1, w21, #392
	mov	x0, x19
	mov	w2, #34436
	movk	w2, #47, lsl #16
	bl	_nv_wr32
	add	w1, w21, #396
	mov	x0, x19
	mov	w2, #24383
	movk	w2, #17, lsl #16
	bl	_nv_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:
	mov	w2, #0
LBB0_4:
	bl	_nv_wr32
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_6
LBB0_7:
	mov	w0, #0
	bl	_NV10_PGRAPH_CTX_SWITCH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	mov	w0, #1
	bl	_NV10_PGRAPH_CTX_SWITCH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	mov	w0, #2
	bl	_NV10_PGRAPH_CTX_SWITCH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	mov	w0, #3
	bl	_NV10_PGRAPH_CTX_SWITCH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	mov	w0, #4
	bl	_NV10_PGRAPH_CTX_SWITCH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
Lloh20:
	adrp	x8, _NV10_PGRAPH_STATE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NV10_PGRAPH_STATE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
Lloh23:
	adrp	x8, _NV10_PGRAPH_CTX_USER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NV10_PGRAPH_CTX_USER@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-16777216
	mov	w3, #520093696
	bl	_nv_mask
Lloh26:
	adrp	x8, _NV10_PGRAPH_CTX_CONTROL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NV10_PGRAPH_CTX_CONTROL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #256
	movk	w2, #4096, lsl #16
	bl	_nv_wr32
Lloh29:
	adrp	x8, _NV10_PGRAPH_FFINTFC_ST2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NV10_PGRAPH_FFINTFC_ST2@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #134217728
	bl	_nv_wr32
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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	_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
	.no_dead_strip	_nv10_graph_init
.subsections_via_symbols
