	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvc0_graph_context_ctor        ## -- Begin function nvc0_graph_context_ctor
	.p2align	4, 0x90
_nvc0_graph_context_ctor:               ## @nvc0_graph_context_ctor
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_nouveau_client
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	32(%r12), %r15
	movl	(%r12), %r8d
	movq	_NVOBJ_FLAG_ZERO_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-48(%rbp), %r10
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movl	$256, %r9d                      ## imm = 0x100
	pushq	%r10
	pushq	%rax
	callq	_nouveau_graph_context_create
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_nv_object
	movq	%rax, (%r13)
	testl	%ebx, %ebx
	jne	LBB0_22
## %bb.1:
	movq	-48(%rbp), %r9
	addq	$8, %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	movl	$256, %ecx                      ## imm = 0x100
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.2:
	movq	-48(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_nv_gpuobj
	movq	_NV_MEM_ACCESS_RW@GOTPCREL(%rip), %rcx
	movq	_NV_MEM_ACCESS_SYS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	-48(%rbp), %rcx
	addq	$4, %rcx
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_nouveau_gpuobj_map_vm
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.3:
	cmpl	$0, (%r15)
	je	LBB0_9
## %bb.4:
	movq	%r15, %rbx
	movq	$-1, %r13
	movl	$8, %r15d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	incq	%r13
	cmpq	%rax, %r13
	jge	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-16(%rbx,%r15,2), %edx
	movl	-12(%rbx,%r15,2), %ecx
	movq	-48(%rbp), %rax
	movq	16(%rax), %r9
	addq	%r15, %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	testl	%eax, %eax
	jne	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r14
	movq	-48(%rbp), %rax
	movq	16(%rax), %rax
	movq	(%rax,%r15), %rdi
	movl	-8(%rbx,%r15,2), %edx
	leaq	(%rax,%r15), %rcx
	addq	$-8, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_nouveau_gpuobj_map_vm
	testl	%eax, %eax
	jne	LBB0_24
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 16(%r14,%r15,2)
	leaq	16(%r15), %r15
	movq	%r14, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_5
LBB0_9:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpl	$0, 12(%r15)
	je	LBB0_15
## %bb.10:
	addq	$24, %r15
	movl	$-1, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rbx
	addq	$32, %r15
	movl	-12(%rbx), %edx
	movq	8(%rax), %rdi
	movl	(%rax), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, (%rax)
	shll	$2, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, (%rax)
	shll	$2, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	callq	_nv_wo32
	cmpl	$0, 20(%rbx)
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	callq	_ARRAY_SIZE
	incl	%r13d
	cmpl	%eax, %r13d
	jge	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-8(%r15), %r14d
	movl	-4(%r15), %ecx
	movq	-48(%rbp), %rax
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%rax), %rdx
	movq	(%r15), %rsi
	shlq	$4, %rsi
	movl	(%rdx,%rsi), %edx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	orl	%edx, %r14d
	jmp	LBB0_11
LBB0_15:
	cmpl	$0, (%r12)
	jle	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	movq	8(%r12), %rax
	movl	(%rax,%rbx), %edx
	movl	%ebx, %esi
	callq	_nv_wo32
	addq	$4, %rbx
	cmpl	%ebx, (%r12)
	jg	LBB0_17
LBB0_18:
	cmpl	$0, 16(%r12)
	movq	-48(%rbp), %rdi
	je	LBB0_20
## %bb.19:
	xorl	%ebx, %ebx
	movl	$244, %esi
	xorl	%edx, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rdi
	movl	$248, %esi
	xorl	%edx, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rdi
	movl	(%rdi), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	$16, %esi
	callq	_nv_wo32
	movq	-48(%rbp), %r14
	movl	4(%r14), %edi
	callq	_lower_32_bits
	movq	%r14, %rdi
	movl	$20, %esi
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %r14
	movl	4(%r14), %edi
	callq	_upper_32_bits
	movq	%r14, %rdi
	movl	$24, %esi
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rdi
	movl	$28, %esi
	movl	$1, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rdi
	movl	$32, %esi
	xorl	%edx, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rdi
	movl	$40, %esi
	xorl	%edx, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	jmp	LBB0_21
LBB0_24:
	movl	%eax, %ebx
	jmp	LBB0_22
LBB0_20:
	movl	(%rdi), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_nv_wo32
	movq	-48(%rbp), %rdi
	movl	4(%rdi), %edx
	sarl	$8, %edx
	movl	$4, %esi
LBB0_21:
	callq	_nv_wo32
LBB0_22:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ## @NVOBJ_FLAG_ZERO_ALLOC
	.comm	_NV_MEM_ACCESS_RW,4,2           ## @NV_MEM_ACCESS_RW
	.comm	_NV_MEM_ACCESS_SYS,4,2          ## @NV_MEM_ACCESS_SYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvc0_graph_context_ctor        ; -- Begin function nvc0_graph_context_ctor
	.p2align	2
_nvc0_graph_context_ctor:               ; @nvc0_graph_context_ctor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_nouveau_client
	ldr	x21, [x0]
	ldp	x24, x25, [x19, #24]
	ldr	w4, [x19]
Lloh0:
	adrp	x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
	add	x7, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, #0
	mov	w5, #256
	bl	_nouveau_graph_context_create
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x23]
	cbnz	w22, LBB0_23
; %bb.1:
	ldr	x8, [sp, #8]
	add	x5, x8, #8
	mov	x0, x20
	mov	x1, #0
	mov	w2, #4096
	mov	w3, #256
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x22, x0
	cbnz	w0, LBB0_23
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	bl	_nv_gpuobj
Lloh3:
	adrp	x8, _NV_MEM_ACCESS_RW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV_MEM_ACCESS_RW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NV_MEM_ACCESS_SYS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NV_MEM_ACCESS_SYS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	x8, [sp, #8]
	add	x3, x8, #4
	mov	x1, x21
	bl	_nouveau_gpuobj_map_vm
	mov	x22, x0
	cbnz	w0, LBB0_23
; %bb.3:
	ldr	w8, [x25]
	cbz	w8, LBB0_9
; %bb.4:
	mov	x23, #-1
	mov	w26, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	bl	_ARRAY_SIZE
	add	x23, x23, #1
	cmp	x23, w0, sxtw
	b.ge	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w2, w3, [x25]
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #16]
	add	x5, x8, x26
	mov	x0, x20
	mov	x1, #0
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	cbnz	w0, LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #16]
	add	x3, x8, x26
	ldr	x0, [x3], #-8
	ldr	w2, [x25, #8]
	mov	x1, x21
	bl	_nouveau_gpuobj_map_vm
	cbnz	w0, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #16
	ldr	w8, [x25, #32]!
	cbnz	w8, LBB0_5
LBB0_9:
	ldr	w8, [x24, #12]
	cbz	w8, LBB0_15
; %bb.10:
	add	x21, x24, #12
	mov	w22, #-1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w2, [x21]
	ldr	x0, [x8, #8]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	lsl	w1, w9, #2
	bl	_nv_wo32
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	lsl	w1, w9, #2
	mov	x2, x20
	bl	_nv_wo32
	ldr	w8, [x21, #32]!
	cbz	w8, LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #24]
	bl	_ARRAY_SIZE
	add	w22, w22, #1
	cmp	w22, w0
	b.ge	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldp	w20, w9, [x21, #4]
	ldr	x8, [sp, #8]
	cbz	w9, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x10, [x8, #16]
	ldur	x11, [x21, #12]
	lsl	x11, x11, #4
	ldr	w10, [x10, x11]
	asr	w9, w10, w9
	orr	w20, w9, w20
	b	LBB0_11
LBB0_15:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x20, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x20]
	mov	x1, x20
	bl	_nv_wo32
	add	x20, x20, #4
	ldr	w8, [x19]
	cmp	w8, w20
	b.gt	LBB0_17
LBB0_18:
	ldr	w8, [x19, #16]
	ldr	x0, [sp, #8]
	cbz	w8, LBB0_21
; %bb.19:
	mov	w1, #244
	mov	w2, #0
	bl	_nv_wo32
	ldr	x0, [sp, #8]
	mov	w1, #248
	mov	w2, #0
	bl	_nv_wo32
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	w1, #16
	bl	_nv_wo32
	ldr	x19, [sp, #8]
	ldr	w0, [x19, #4]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	w1, #20
	bl	_nv_wo32
	ldr	x19, [sp, #8]
	ldr	w0, [x19, #4]
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	w1, #24
	bl	_nv_wo32
	ldr	x0, [sp, #8]
	mov	w1, #28
	mov	w2, #1
	bl	_nv_wo32
	ldr	x0, [sp, #8]
	mov	w1, #32
	mov	w2, #0
	bl	_nv_wo32
	ldr	x0, [sp, #8]
	mov	w1, #40
	mov	w2, #0
	bl	_nv_wo32
	ldr	x0, [sp, #8]
	mov	w1, #44
	mov	w2, #0
	b	LBB0_22
LBB0_20:
	mov	x22, x0
	b	LBB0_23
LBB0_21:
	ldr	w8, [x0]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	w1, #0
	bl	_nv_wo32
	ldr	x0, [sp, #8]
	ldr	w8, [x0, #4]
	asr	w2, w8, #8
	mov	w1, #4
LBB0_22:
	bl	_nv_wo32
	mov	w22, #0
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ; @NVOBJ_FLAG_ZERO_ALLOC
	.comm	_NV_MEM_ACCESS_RW,4,2           ; @NV_MEM_ACCESS_RW
	.comm	_NV_MEM_ACCESS_SYS,4,2          ; @NV_MEM_ACCESS_SYS
.subsections_via_symbols
