	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_fifo_context_ctor
_nvc0_fifo_context_ctor:                ## @nvc0_fifo_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rdi, %r14
	movq	_NVOBJ_FLAG_ZERO_ALLOC@GOTPCREL(%rip), %rax
	movq	_NVOBJ_FLAG_HEAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	leaq	-32(%rbp), %rax
	xorl	%ecx, %ecx
	movl	$4096, %r8d                     ## imm = 0x1000
	movl	$4096, %r9d                     ## imm = 0x1000
	pushq	%rax
	pushq	%rbx
	callq	_nouveau_fifo_context_create
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	-32(%rbp), %rdi
	callq	_nv_object
	movq	%rax, (%r15)
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.1:
	movq	-32(%rbp), %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$65536, %edx                    ## imm = 0x10000
	movl	$4096, %ecx                     ## imm = 0x1000
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	-32(%rbp), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_lower_32_bits
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-32(%rbp), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	$516, %esi                      ## imm = 0x204
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-32(%rbp), %rdi
	movl	$520, %esi                      ## imm = 0x208
	movl	$-1, %edx
	callq	_nv_wo32
	movq	-32(%rbp), %rdi
	movl	$524, %esi                      ## imm = 0x20C
	movl	$255, %edx
	callq	_nv_wo32
	movq	%r14, %rdi
	callq	_nouveau_client
	movl	(%rax), %edi
	movq	-32(%rbp), %rsi
	movq	(%rsi), %rdx
	addq	$8, %rsi
	callq	_nouveau_vm_ref
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ## @NVOBJ_FLAG_ZERO_ALLOC
	.comm	_NVOBJ_FLAG_HEAP,4,2            ## @NVOBJ_FLAG_HEAP
	.no_dead_strip	_nvc0_fifo_context_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0_fifo_context_ctor
_nvc0_fifo_context_ctor:                ; @nvc0_fifo_context_ctor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x5
	mov	x19, x0
Lloh0:
	adrp	x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NVOBJ_FLAG_HEAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVOBJ_FLAG_HEAP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w6, w9, w8
	add	x7, sp, #8
	mov	x3, #0
	mov	w4, #4096
	mov	w5, #4096
	bl	_nouveau_fifo_context_create
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x21]
	cbnz	w20, LBB0_3
; %bb.1:
	ldr	x5, [sp, #8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #65536
	mov	w3, #4096
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x20, [sp, #8]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x20
	mov	w1, #512
	bl	_nv_wo32
	ldr	x20, [sp, #8]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x20
	mov	w1, #516
	bl	_nv_wo32
	ldr	x0, [sp, #8]
	mov	w1, #520
	mov	w2, #-1
	bl	_nv_wo32
	ldr	x0, [sp, #8]
	mov	w1, #524
	mov	w2, #255
	bl	_nv_wo32
	mov	x0, x19
	bl	_nouveau_client
	ldr	w0, [x0]
	ldr	x1, [sp, #8]
	ldr	x2, [x1], #8
	bl	_nouveau_vm_ref
	mov	x20, x0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ; @NVOBJ_FLAG_ZERO_ALLOC
	.comm	_NVOBJ_FLAG_HEAP,4,2            ; @NVOBJ_FLAG_HEAP
	.no_dead_strip	_nvc0_fifo_context_ctor
.subsections_via_symbols
