	.file	"extr_base.c_nvkm_perfsrc_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"enabled source %08x %08x %08x\n"
	.text
	.p2align 4
	.type	nvkm_perfsrc_enable, @function
nvkm_perfsrc_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	lea	r14, 32[rsp]
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 24[rsp], rax
.L2:
	mov	rax, QWORD PTR 16[rsp]
	xor	ebx, ebx
	lea	r12, [rax+rax]
.L7:
	mov	rax, QWORD PTR [r15]
	mov	rax, QWORD PTR [rax+r12]
	mov	eax, DWORD PTR [rax+rbx]
	test	eax, eax
	je	.L9
	mov	rdi, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR 8[r15]
	mov	rcx, r14
	mov	esi, DWORD PTR 16[r15]
	mov	edx, DWORD PTR [rax+rdi]
	mov	rdi, rbp
	call	nvkm_perfsig_find@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR [r15]
	mov	rdi, rbp
	mov	rax, QWORD PTR [rax+r12]
	mov	edx, DWORD PTR [rax+rbx]
	call	nvkm_perfsrc_find@PLT
	mov	r13, rax
	test	rax, rax
	je	.L15
	mov	rdx, QWORD PTR [r15]
	mov	edi, DWORD PTR 4[r13]
	mov	r11d, DWORD PTR 0[r13]
	cmp	QWORD PTR 16[rax], 1
	mov	rdx, QWORD PTR [rdx+r12]
	mov	ecx, edi
	sbb	eax, eax
	mov	esi, DWORD PTR 8[r13]
	sal	r11d, cl
	mov	ecx, 32
	not	eax
	mov	r8d, DWORD PTR [rdx+rbx]
	and	eax, -2147483648
	add	rbx, 4
	or	r11d, eax
	sar	r8d, cl
	mov	ecx, edi
	mov	rdi, QWORD PTR 24[rsp]
	mov	edx, r11d
	sal	r8d, cl
	mov	DWORD PTR 8[rsp], r11d
	or	r8d, eax
	mov	ecx, r8d
	mov	DWORD PTR 12[rsp], r8d
	call	nvkm_mask@PLT
	mov	r11d, DWORD PTR 8[rsp]
	mov	edx, DWORD PTR 8[r13]
	lea	rsi, .LC0[rip]
	mov	r8d, DWORD PTR 12[rsp]
	mov	rdi, rbp
	mov	ecx, r11d
	call	nvkm_debug@PLT
	cmp	rbx, 32
	jne	.L7
.L9:
	add	QWORD PTR 16[rsp], 4
	mov	rax, QWORD PTR 16[rsp]
	cmp	rax, 16
	jne	.L2
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nvkm_perfsrc_enable, .-nvkm_perfsrc_enable
	.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_perfsrc_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enabled source %08x %08x %08x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvkm_perfsrc_enable, %function
nvkm_perfsrc_enable:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, #0
	mov	r9, r0
	mov	r7, r1
	ldr	r3, .L19
	sub	sp, sp, #28
	ldr	fp, [r0]
	ldr	r10, .L19+4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	str	r8, [sp, #16]
.L2:
	mov	r6, #0
.L7:
	ldr	r3, [r7]
	ldr	r3, [r3, r8]
	ldr	r3, [r3, r6]
	cmp	r3, #0
	beq	.L9
	ldr	r2, [r7, #4]
	ldr	r1, [r7, #8]
	mov	r0, r9
	ldr	r2, [r2, r8]
	add	r3, sp, #16
	bl	nvkm_perfsig_find
	subs	r1, r0, #0
	beq	.L16
	ldr	r3, [r7]
	mov	r0, r9
	ldr	r3, [r3, r8]
	ldr	r2, [r3, r6]
	bl	nvkm_perfsrc_find
	subs	r4, r0, #0
	beq	.L16
	ldr	r2, [r4, #12]
	ldr	r3, [r7]
	cmp	r2, #0
	movne	r2, #-2147483648
	ldr	r1, [r3, r8]
	ldr	r3, [r4, #4]
	ldr	r5, [r1, r6]
	ldr	r1, [r4]
	asr	r5, r5, #32
	orr	r5, r2, r5, lsl r3
	mov	r0, fp
	orr	r2, r2, r1, lsl r3
	mov	r3, r5
	ldr	r1, [r4, #8]
	str	r2, [sp, #12]
	bl	nvkm_mask
	ldr	r1, [r4, #8]
	ldr	r2, [sp, #12]
	mov	r0, r9
	mov	r3, r2
	add	r6, r6, #4
	mov	r2, r1
	str	r5, [sp]
	mov	r1, r10
	bl	nvkm_debug
	cmp	r6, #32
	bne	.L7
.L9:
	add	r8, r8, #4
	cmp	r8, #16
	bne	.L2
	mov	r0, #0
	b	.L1
.L16:
	ldr	r3, .L19+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	.LC0
	.word	EINVAL
	.size	nvkm_perfsrc_enable, .-nvkm_perfsrc_enable
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
