	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv84_fifo_context_ctor
_nv84_fifo_context_ctor:                ## @nv84_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_HEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-32(%rbp), %rbx
	xorl	%ecx, %ecx
	movl	$65536, %r8d                    ## imm = 0x10000
	movl	$4096, %r9d                     ## imm = 0x1000
	pushq	%rbx
	pushq	%rax
	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_6
## %bb.1:
	movq	-32(%rbp), %rdi
	callq	_nv_object
	movq	_NVOBJ_FLAG_ZERO_ALLOC@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movq	-32(%rbp), %r9
	addq	$16, %r9
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$512, %edx                      ## imm = 0x200
	xorl	%ecx, %ecx
	callq	_nouveau_gpuobj_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	-32(%rbp), %rdi
	callq	_nv_object
	movq	-32(%rbp), %r9
	addq	$8, %r9
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$16384, %edx                    ## imm = 0x4000
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_nouveau_client
	movl	(%rax), %edi
	movq	-32(%rbp), %rsi
	movl	8(%rsi), %edx
	addq	$12, %rsi
	callq	_nouveau_vm_ref
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	-32(%rbp), %rdi
	callq	_nv_object
	movl	(%r15), %r8d
	movq	-32(%rbp), %r9
	addq	$4, %r9
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_nouveau_gpuobj_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	-32(%rbp), %rdi
	callq	_nv_object
	movl	(%r15), %r8d
	movq	-32(%rbp), %r9
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$256, %edx                      ## imm = 0x100
	movl	$256, %ecx                      ## imm = 0x100
	callq	_nouveau_gpuobj_new
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVOBJ_FLAG_HEAP,4,2            ## @NVOBJ_FLAG_HEAP
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ## @NVOBJ_FLAG_ZERO_ALLOC
	.no_dead_strip	_nv84_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 nv84_fifo_context_ctor
_nv84_fifo_context_ctor:                ; @nv84_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_HEAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVOBJ_FLAG_HEAP@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
	add	x7, sp, #8
	mov	x3, #0
	mov	w4, #65536
	mov	w5, #4096
	bl	_nouveau_fifo_context_create
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x21]
	cbnz	w20, LBB0_6
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_nv_object
	mov	x1, x0
Lloh3:
	adrp	x21, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGEOFF]
	ldr	w4, [x21]
	ldr	x8, [sp, #8]
	add	x5, x8, #16
	mov	x0, x19
	mov	w2, #512
	mov	w3, #0
	bl	_nouveau_gpuobj_new
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_nv_object
	mov	x1, x0
	ldr	x8, [sp, #8]
	add	x5, x8, #8
	mov	x0, x19
	mov	w2, #16384
	mov	w3, #0
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_nouveau_client
	ldr	w0, [x0]
	ldr	x8, [sp, #8]
	add	x1, x8, #12
	ldr	w2, [x8, #8]
	bl	_nouveau_vm_ref
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x0, [sp, #8]
	bl	_nv_object
	mov	x1, x0
	ldr	w4, [x21]
	ldr	x8, [sp, #8]
	add	x5, x8, #4
	mov	x0, x19
	mov	w2, #4096
	mov	w3, #1024
	bl	_nouveau_gpuobj_new
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x0, [sp, #8]
	bl	_nv_object
	mov	x1, x0
	ldr	w4, [x21]
	ldr	x5, [sp, #8]
	mov	x0, x19
	mov	w2, #256
	mov	w3, #256
	bl	_nouveau_gpuobj_new
	mov	x20, x0
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NVOBJ_FLAG_HEAP,4,2            ; @NVOBJ_FLAG_HEAP
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ; @NVOBJ_FLAG_ZERO_ALLOC
	.no_dead_strip	_nv84_fifo_context_ctor
.subsections_via_symbols
