	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_instmem_oneinit
_nv04_instmem_oneinit:                  ## @nv04_instmem_oneinit
	.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
	callq	_nv04_instmem
	movq	%rax, %rbx
	movq	24(%rax), %r14
	movl	$524288, (%rax)                 ## imm = 0x80000
	leaq	32(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$524288, %ecx                   ## imm = 0x80000
	movl	$1, %r8d
	callq	_nvkm_mm_init
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_NVKM_MEM_TARGET_INST@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	16(%rbx), %r9
	movq	%r14, %rdi
	movl	$65536, %edx                    ## imm = 0x10000
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nvkm_memory_new
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	12(%rbx), %r8
	movq	%r14, %rdi
	movl	$32768, %esi                    ## imm = 0x8000
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_ramht_new
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	leaq	8(%rbx), %r9
	movq	%r14, %rdi
	movl	$2048, %edx                     ## imm = 0x800
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_nvkm_memory_new
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r15), %esi
	addq	$4, %rbx
	movq	%r14, %rdi
	movl	$512, %edx                      ## imm = 0x200
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_memory_new                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_MEM_TARGET_INST,4,2       ## @NVKM_MEM_TARGET_INST
	.no_dead_strip	_nv04_instmem_oneinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_instmem_oneinit
_nv04_instmem_oneinit:                  ; @nv04_instmem_oneinit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_nv04_instmem
	mov	x20, x0
	ldr	x19, [x0, #24]
	mov	w8, #524288
	str	w8, [x0], #32
	mov	w1, #0
	mov	w2, #0
	mov	w3, #524288
	mov	w4, #1
	bl	_nvkm_mm_init
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x21, _NVKM_MEM_TARGET_INST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NVKM_MEM_TARGET_INST@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x5, x20, #16
	mov	x0, x19
	mov	w2, #65536
	mov	w3, #0
	mov	w4, #0
	bl	_nvkm_memory_new
	cbnz	w0, LBB0_4
; %bb.2:
	add	x4, x20, #12
	mov	x0, x19
	mov	w1, #32768
	mov	w2, #0
	mov	x3, #0
	bl	_nvkm_ramht_new
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x21]
	add	x5, x20, #8
	mov	x0, x19
	mov	w2, #2048
	mov	w3, #0
	mov	w4, #1
	bl	_nvkm_memory_new
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w1, [x21]
	add	x5, x20, #4
	mov	x0, x19
	mov	w2, #512
	mov	w3, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nvkm_memory_new
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_MEM_TARGET_INST,4,2       ; @NVKM_MEM_TARGET_INST
	.no_dead_strip	_nv04_instmem_oneinit
.subsections_via_symbols
