	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_ramht_new              ## -- Begin function nouveau_ramht_new
	.p2align	4, 0x90
_nouveau_ramht_new:                     ## @nouveau_ramht_new
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %r14
	movl	%ecx, %eax
	movl	%edx, %r9d
	movq	%rsi, %r8
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	cmoveq	%rdi, %rsi
	movq	_NVOBJ_FLAG_ZERO_ALLOC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	leaq	-24(%rbp), %r10
	movq	_nouveau_ramht_oclass@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	pushq	%r10
	pushq	%rbx
	pushq	%rax
	callq	_nouveau_gpuobj_create
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	-24(%rbp), %rdi
	movq	%rdi, (%r14)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	callq	_nv_gpuobj
	movl	(%rax), %edi
	sarl	$3, %edi
	callq	_log2i
	movq	-24(%rbp), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nouveau_ramht_oclass,4,2       ## @nouveau_ramht_oclass
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ## @NVOBJ_FLAG_ZERO_ALLOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_ramht_new              ; -- Begin function nouveau_ramht_new
	.p2align	2
_nouveau_ramht_new:                     ; @nouveau_ramht_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x4
	mov	x6, x3
	mov	x5, x2
	mov	x4, x1
	ldr	x8, [x0]
	cmp	x8, #0
	csel	x1, x0, x8, eq
Lloh0:
	adrp	x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGEOFF]
Lloh2:
	ldr	w7, [x8]
	add	x8, sp, #8
	str	x8, [sp]
Lloh3:
	adrp	x2, _nouveau_ramht_oclass@GOTPAGE
Lloh4:
	ldr	x2, [x2, _nouveau_ramht_oclass@GOTPAGEOFF]
	mov	w3, #0
	bl	_nouveau_gpuobj_create
	mov	x19, x0
	ldr	x0, [sp, #8]
	str	x0, [x20]
	cbnz	w19, LBB0_2
; %bb.1:
	bl	_nv_gpuobj
	ldr	w8, [x0]
	asr	w0, w8, #3
	bl	_log2i
	ldr	x8, [sp, #8]
	str	w0, [x8]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_nouveau_ramht_oclass,4,2       ; @nouveau_ramht_oclass
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ; @NVOBJ_FLAG_ZERO_ALLOC
.subsections_via_symbols
