	.file	"extr_nv04.c_nv04_instobj_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nv04_instobj_new, @function
nv04_instobj_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	nv04_instmem@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 24
	mov	rbp, rax
	call	kzalloc@PLT
	test	rax, rax
	je	.L7
	lea	rdx, 16[rax]
	mov	rsi, rbp
	lea	rdi, nv04_instobj_func[rip]
	mov	rbx, rax
	mov	QWORD PTR [r14], rdx
	call	nvkm_instobj_ctor@PLT
	lea	rax, nv04_instobj_ptrs[rip]
	mov	QWORD PTR 8[rbx], rbp
	mov	rdi, rbp
	mov	QWORD PTR 16[rbx], rax
	call	mutex_lock@PLT
	test	r12d, r12d
	mov	eax, 1
	mov	r8d, r13d
	cmove	r12d, eax
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	lea	rdi, 4[rbp]
	mov	ecx, r13d
	push	rbx
	.cfi_def_cfa_offset 64
	mov	edx, 1
	xor	esi, esi
	mov	r9d, r12d
	call	nvkm_mm_head@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	mutex_unlock@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rdx
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nv04_instobj_new, .-nv04_instobj_new
	.comm	nv04_instobj_ptrs,4,4
	.comm	nv04_instobj_func,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_nv04.c_nv04_instobj_new.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv04_instobj_new, %function
nv04_instobj_new:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #20
	mov	r7, r1
	mov	r6, r2
	bl	nv04_instmem
	ldr	r3, .L8
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, #12
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L7
	ldr	r3, [sp, #40]
	add	r2, r4, #8
	mov	r1, r5
	str	r2, [r3]
	ldr	r0, .L8+4
	bl	nvkm_instobj_ctor
	ldr	r3, .L8+8
	str	r5, [r4, #4]
	str	r3, [r4, #8]
	mov	r0, r5
	bl	mutex_lock
	cmp	r6, #0
	moveq	r6, #1
	mov	r3, r7
	mov	r2, #1
	mov	r1, #0
	str	r4, [sp, #8]
	str	r6, [sp, #4]
	str	r7, [sp]
	add	r0, r5, #4
	bl	nvkm_mm_head
	mov	r4, r0
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	ldr	r3, .L8+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	.align	2
.L8:
	.word	GFP_KERNEL
	.word	nv04_instobj_func
	.word	nv04_instobj_ptrs
	.word	ENOMEM
	.size	nv04_instobj_new, .-nv04_instobj_new
	.comm	nv04_instobj_ptrs,4,4
	.comm	nv04_instobj_func,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
