	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_graph_init
_nv04_graph_init:                       ## @nv04_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_nv_engine
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_nouveau_graph_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_NV03_PGRAPH_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_nv_wr32
	movq	_NV03_PGRAPH_INTR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_nv_wr32
	movq	_NV04_PGRAPH_VALID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	_NV04_PGRAPH_VALID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	_NV04_PGRAPH_DEBUG_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$305250304, %edx                ## imm = 0x1231C000
	callq	_nv_wr32
	movq	_NV04_PGRAPH_DEBUG_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1913721088, %edx               ## imm = 0x72111100
	callq	_nv_wr32
	movq	_NV04_PGRAPH_DEBUG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$299233393, %edx                ## imm = 0x11D5F071
	callq	_nv_wr32
	movq	_NV04_PGRAPH_DEBUG_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-254476495, %edx               ## imm = 0xF0D4FF31
	callq	_nv_wr32
	movq	_NV04_PGRAPH_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_nv_wr32
	movq	_NV04_PGRAPH_CTX_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$268435712, %edx                ## imm = 0x10000100
	callq	_nv_wr32
	movq	_NV04_PGRAPH_CTX_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-16777216, %edx                ## imm = 0xFF000000
	movl	$251658240, %ecx                ## imm = 0xF000000
	callq	_nv_mask
	movq	_NV04_PGRAPH_PATTERN_SHAPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	_NV04_PGRAPH_BETA_AND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_nv_wr32
LBB0_2:
	movl	%r14d, %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_VALID1,4,2         ## @NV04_PGRAPH_VALID1
	.comm	_NV04_PGRAPH_VALID2,4,2         ## @NV04_PGRAPH_VALID2
	.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	_NV04_PGRAPH_STATE,4,2          ## @NV04_PGRAPH_STATE
	.comm	_NV04_PGRAPH_CTX_CONTROL,4,2    ## @NV04_PGRAPH_CTX_CONTROL
	.comm	_NV04_PGRAPH_CTX_USER,4,2       ## @NV04_PGRAPH_CTX_USER
	.comm	_NV04_PGRAPH_PATTERN_SHAPE,4,2  ## @NV04_PGRAPH_PATTERN_SHAPE
	.comm	_NV04_PGRAPH_BETA_AND,4,2       ## @NV04_PGRAPH_BETA_AND
	.no_dead_strip	_nv04_graph_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_graph_init
_nv04_graph_init:                       ; @nv04_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
	bl	_nv_engine
	mov	x20, x0
	bl	_nouveau_graph_init
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NV03_PGRAPH_INTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV03_PGRAPH_INTR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	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, x20
	mov	w2, #-1
	bl	_nv_wr32
Lloh6:
	adrp	x8, _NV04_PGRAPH_VALID1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NV04_PGRAPH_VALID1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_nv_wr32
Lloh9:
	adrp	x8, _NV04_PGRAPH_VALID2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NV04_PGRAPH_VALID2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_nv_wr32
Lloh12:
	adrp	x8, _NV04_PGRAPH_DEBUG_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NV04_PGRAPH_DEBUG_0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #49152
	movk	w2, #4657, lsl #16
	bl	_nv_wr32
Lloh15:
	adrp	x8, _NV04_PGRAPH_DEBUG_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NV04_PGRAPH_DEBUG_1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #4352
	movk	w2, #29201, lsl #16
	bl	_nv_wr32
Lloh18:
	adrp	x8, _NV04_PGRAPH_DEBUG_2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NV04_PGRAPH_DEBUG_2@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #61553
	movk	w2, #4565, lsl #16
	bl	_nv_wr32
Lloh21:
	adrp	x8, _NV04_PGRAPH_DEBUG_3@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NV04_PGRAPH_DEBUG_3@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #65329
	movk	w2, #61652, lsl #16
	bl	_nv_wr32
Lloh24:
	adrp	x8, _NV04_PGRAPH_STATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NV04_PGRAPH_STATE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_nv_wr32
Lloh27:
	adrp	x8, _NV04_PGRAPH_CTX_CONTROL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NV04_PGRAPH_CTX_CONTROL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #256
	movk	w2, #4096, lsl #16
	bl	_nv_wr32
Lloh30:
	adrp	x8, _NV04_PGRAPH_CTX_USER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NV04_PGRAPH_CTX_USER@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-16777216
	mov	w3, #251658240
	bl	_nv_mask
Lloh33:
	adrp	x8, _NV04_PGRAPH_PATTERN_SHAPE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NV04_PGRAPH_PATTERN_SHAPE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_nv_wr32
Lloh36:
	adrp	x8, _NV04_PGRAPH_BETA_AND@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NV04_PGRAPH_BETA_AND@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_nv_wr32
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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_VALID1,4,2         ; @NV04_PGRAPH_VALID1
	.comm	_NV04_PGRAPH_VALID2,4,2         ; @NV04_PGRAPH_VALID2
	.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	_NV04_PGRAPH_STATE,4,2          ; @NV04_PGRAPH_STATE
	.comm	_NV04_PGRAPH_CTX_CONTROL,4,2    ; @NV04_PGRAPH_CTX_CONTROL
	.comm	_NV04_PGRAPH_CTX_USER,4,2       ; @NV04_PGRAPH_CTX_USER
	.comm	_NV04_PGRAPH_PATTERN_SHAPE,4,2  ; @NV04_PGRAPH_PATTERN_SHAPE
	.comm	_NV04_PGRAPH_BETA_AND,4,2       ; @NV04_PGRAPH_BETA_AND
	.no_dead_strip	_nv04_graph_init
.subsections_via_symbols
