	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_graph_init
_nvc0_graph_init:                       ## @nvc0_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_nouveau_graph_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_nvc0_graph_init_obj418880
	movq	%rbx, %rdi
	callq	_nvc0_graph_init_regs
	movq	%rbx, %rdi
	callq	_nvc0_graph_init_gpc_0
	movq	%rbx, %rdi
	movl	$4195584, %esi                  ## imm = 0x400500
	movl	$65537, %edx                    ## imm = 0x10001
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$4194620, %esi                  ## imm = 0x40013C
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	callq	_nvc0_graph_init_units
	movq	%rbx, %rdi
	callq	_nvc0_graph_init_gpc_1
	movq	%rbx, %rdi
	callq	_nvc0_graph_init_rop
	movq	%rbx, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$4194616, %esi                  ## imm = 0x400138
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$4194584, %esi                  ## imm = 0x400118
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$4194608, %esi                  ## imm = 0x400130
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$4194588, %esi                  ## imm = 0x40011C
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$4194612, %esi                  ## imm = 0x400134
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$4194388, %esi                  ## imm = 0x400054
	movl	$885929060, %edx                ## imm = 0x34CE3464
	callq	_nv_wr32
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_nvc0_graph_init_ctxctl         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvc0_graph_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0_graph_init
_nvc0_graph_init:                       ; @nvc0_graph_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
	mov	x19, x0
	bl	_nouveau_graph_init
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_nvc0_graph_init_obj418880
	mov	x0, x19
	bl	_nvc0_graph_init_regs
	mov	x0, x19
	bl	_nvc0_graph_init_gpc_0
	mov	w20, #84
	movk	w20, #64, lsl #16
	add	w1, w20, #1196
	mov	x0, x19
	mov	w2, #65537
	bl	_nv_wr32
	add	w1, w20, #172
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	add	w1, w20, #232
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	mov	x0, x19
	bl	_nvc0_graph_init_units
	mov	x0, x19
	bl	_nvc0_graph_init_gpc_1
	mov	x0, x19
	bl	_nvc0_graph_init_rop
	add	w1, w20, #180
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	add	w1, w20, #228
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	add	w1, w20, #196
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	add	w1, w20, #220
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	add	w1, w20, #200
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	add	w1, w20, #224
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #84
	movk	w1, #64, lsl #16
	mov	w2, #13412
	movk	w2, #13518, lsl #16
	bl	_nv_wr32
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nvc0_graph_init_ctxctl
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvc0_graph_init
.subsections_via_symbols
