	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_instmem_ctor
_nv04_instmem_ctor:                     ## @nv04_instmem_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
	leaq	-32(%rbp), %rcx
	callq	_nouveau_instmem_create
	movl	%eax, %ebx
	movq	-32(%rbp), %rdi
	callq	_nv_object
	movq	%rax, (%r15)
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.1:
	movq	-32(%rbp), %rdi
	movl	$524288, 20(%rdi)               ## imm = 0x80000
	movq	_nv04_instmem_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	addq	$28, %rdi
	xorl	%esi, %esi
	movl	$524288, %edx                   ## imm = 0x80000
	movl	$1, %ecx
	callq	_nouveau_mm_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	-32(%rbp), %r9
	addq	$16, %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$65536, %edx                    ## imm = 0x10000
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	-32(%rbp), %r8
	addq	$12, %r8
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	xorl	%ecx, %ecx
	callq	_nouveau_ramht_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	_NVOBJ_FLAG_ZERO_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-32(%rbp), %r9
	addq	$8, %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2048, %edx                     ## imm = 0x800
	xorl	%ecx, %ecx
	callq	_nouveau_gpuobj_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	-32(%rbp), %r9
	addq	$4, %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$512, %edx                      ## imm = 0x200
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	-32(%rbp), %rax
	movl	$1, (%rax)
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nv04_instmem_alloc,4,2         ## @nv04_instmem_alloc
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ## @NVOBJ_FLAG_ZERO_ALLOC
	.no_dead_strip	_nv04_instmem_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_instmem_ctor
_nv04_instmem_ctor:                     ; @nv04_instmem_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
	add	x3, sp, #8
	bl	_nouveau_instmem_create
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x21]
	cbnz	w20, LBB0_7
; %bb.1:
	ldr	x8, [sp, #8]
	mov	w9, #524288
Lloh0:
	adrp	x10, _nv04_instmem_alloc@GOTPAGE
Lloh1:
	ldr	x10, [x10, _nv04_instmem_alloc@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	stp	w9, w10, [x8, #20]
	add	x0, x8, #28
	mov	w1, #0
	mov	w2, #524288
	mov	w3, #1
	bl	_nouveau_mm_init
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x8, [sp, #8]
	add	x5, x8, #16
	mov	x0, x19
	mov	x1, #0
	mov	w2, #65536
	mov	w3, #0
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x8, [sp, #8]
	add	x4, x8, #12
	mov	x0, x19
	mov	x1, #0
	mov	w2, #32768
	mov	w3, #0
	bl	_nouveau_ramht_new
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	ldr	x8, [sp, #8]
	add	x5, x8, #8
	mov	x0, x19
	mov	x1, #0
	mov	w2, #2048
	mov	w3, #0
	bl	_nouveau_gpuobj_new
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x8, [sp, #8]
	add	x5, x8, #4
	mov	x0, x19
	mov	x1, #0
	mov	w2, #512
	mov	w3, #0
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x8, [sp, #8]
	mov	w9, #1
	str	w9, [x8]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_nv04_instmem_alloc,4,2         ; @nv04_instmem_alloc
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ; @NVOBJ_FLAG_ZERO_ALLOC
	.no_dead_strip	_nv04_instmem_ctor
.subsections_via_symbols
