	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_instobj_new
_nv50_instobj_new:                      ## @nv50_instobj_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_nv50_instmem
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_order_base_2
	movl	%eax, %edi
	movl	$12, %esi
	callq	_max
	movl	%eax, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	leaq	24(%rax), %rdx
	movq	%rdx, (%r13)
	movq	_nv50_instobj_func@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_nvkm_instobj_ctor
	movq	%r15, 16(%r14)
	leaq	8(%r14), %rdi
	xorl	%esi, %esi
	callq	_refcount_set
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$1, %edx
	movl	%r12d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	$1, %r9d
	pushq	%r14
	pushq	$1
	callq	_nvkm_ram_get
	addq	$40, %rsp
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$24, %rsp
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nv50_instobj_func,4,2          ## @nv50_instobj_func
	.no_dead_strip	_nv50_instobj_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_instobj_new
_nv50_instobj_new:                      ; @nv50_instobj_new
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x21, x2
	mov	x19, x1
	bl	_nv50_instmem
	mov	x23, x0
	ldr	x20, [x0]
	mov	x0, x21
	bl	_order_base_2
	mov	w1, #12
	bl	_max
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x24, x0
	add	x2, x0, #24
	str	x2, [x22]
Lloh3:
	adrp	x0, _nv50_instobj_func@GOTPAGE
Lloh4:
	ldr	x0, [x0, _nv50_instobj_func@GOTPAGEOFF]
	mov	x1, x23
	bl	_nvkm_instobj_ctor
	str	x23, [x24, #16]
	add	x0, x24, #8
	mov	w1, #0
	bl	_refcount_set
	add	x0, x24, #4
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	mov	x3, x21
	mov	x4, x19
	mov	w5, #1
	mov	w6, #1
	mov	x7, x24
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nvkm_ram_get
LBB0_2:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nv50_instobj_func,4,2          ; @nv50_instobj_func
	.no_dead_strip	_nv50_instobj_new
.subsections_via_symbols
