	.file	"extr_base.c_nvkm_perfctr_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nvkm_perfctr_new, @function
nvkm_perfctr_new:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L17
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	edi, 32
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	mov	rdx, QWORD PTR 64[rsp]
	mov	QWORD PTR [rdx], rax
	test	rax, rax
	je	.L18
	mov	DWORD PTR 28[rax], r15d
	xor	edi, edi
	mov	DWORD PTR 24[rax], r14d
	mov	DWORD PTR [rax], r13d
.L7:
	mov	rdx, QWORD PTR 0[rbp+rdi]
	test	rdx, rdx
	jne	.L19
.L5:
	add	rdi, 8
	cmp	rdi, 32
	jne	.L7
	lea	rsi, 4[rbx]
	lea	rdi, 4[rax]
	call	list_add_tail@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	movsx	rcx, DWORD PTR [rbx]
	mov	rsi, QWORD PTR 16[rax]
	lea	r10, [r12+rdi*4]
	sal	rcx, 2
	sub	rdx, rcx
	mov	QWORD PTR [rsi+rdi], rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	r9, QWORD PTR [rdx+rdi]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR [r10+rdx]
	mov	DWORD PTR [r9+rdx], esi
	add	rdx, 4
	cmp	rdx, 32
	jne	.L6
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nvkm_perfctr_new, .-nvkm_perfctr_new
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_base.c_nvkm_perfctr_new.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvkm_perfctr_new, %function
nvkm_perfctr_new:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	beq	.L15
	mov	r5, r3
	ldr	r3, .L18
	mov	r6, r1
	mov	r0, #24
	ldr	r1, [r3]
	mov	r7, r2
	bl	kzalloc
	ldr	r3, [sp, #32]
	cmp	r0, #0
	str	r0, [r3]
	beq	.L16
	ldr	r3, [sp, #28]
	str	r6, [r0]
	str	r3, [r0, #16]
	ldr	r3, [sp, #24]
	sub	lr, r5, #4
	add	r6, r5, #12
	str	r7, [r0, #20]
	add	ip, r3, #28
	rsb	r5, r5, #4
.L7:
	add	r1, r5, lr
	ldr	r3, [lr, #4]!
	cmp	r3, #0
	bne	.L17
.L5:
	cmp	lr, r6
	add	ip, ip, #32
	bne	.L7
	add	r1, r4, #4
	add	r0, r0, #4
	bl	list_add_tail
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r2, [r0, #8]
	ldr	r8, [r4]
	ldr	r2, [r2, r1]
	ldr	r7, [r0, #12]
	sub	r3, r3, r8, lsl #2
	str	r3, [r7, r1]
	sub	r2, r2, #4
	sub	r3, ip, #32
.L6:
	ldr	r1, [r3, #4]!
	cmp	r3, ip
	str	r1, [r2, #4]!
	bne	.L6
	b	.L5
.L15:
	ldr	r3, .L18+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r3, .L18+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	GFP_KERNEL
	.word	EINVAL
	.word	ENOMEM
	.size	nvkm_perfctr_new, .-nvkm_perfctr_new
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
