	.file	"extr_core.c___perf_event_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__perf_event_enable, @function
__perf_event_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 24[rdi]
	mov	rbx, QWORD PTR 16[rdi]
	mov	rdi, r12
	call	__get_cpu_context@PLT
	mov	ecx, DWORD PTR 4[r12]
	xor	edi, edi
	mov	r13, rax
	test	ecx, ecx
	sete	dil
	call	WARN_ON_ONCE@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	spin_lock@PLT
	mov	rdi, r12
	call	update_context_time@PLT
	mov	rax, QWORD PTR PERF_EVENT_STATE_INACTIVE[rip]
	cmp	QWORD PTR 0[rbp], rax
	jge	.L5
	mov	edi, DWORD PTR current[rip]
	mov	rsi, r12
	call	perf_cgroup_set_timestamp@PLT
	mov	rdi, rbp
	call	__perf_event_mark_enabled@PLT
	mov	rdi, rbp
	call	event_filter_match@PLT
	test	eax, eax
	je	.L29
	cmp	rbp, rbx
	je	.L8
	mov	rax, QWORD PTR PERF_EVENT_STATE_ACTIVE[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L5
	mov	edx, 1
	mov	rsi, r13
	mov	rdi, rbp
	call	group_can_go_on@PLT
	test	eax, eax
	jne	.L13
	mov	edx, DWORD PTR EEXIST[rip]
	test	edx, edx
	je	.L5
.L14:
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbx
	call	group_sched_out@PLT
.L10:
	cmp	QWORD PTR 8[rbx], 0
	je	.L5
	mov	rdi, rbx
	call	update_group_times@PLT
	mov	rax, QWORD PTR PERF_EVENT_STATE_ERROR[rip]
	mov	QWORD PTR [rbx], rax
.L5:
	mov	rdi, r12
	call	spin_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	rdi, rbp
	call	is_cgroup_event@PLT
	test	rax, rax
	je	.L5
	mov	rdi, rbp
	call	perf_cgroup_defer_enabled@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	call	event_sched_in@PLT
	test	eax, eax
	je	.L5
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, 1
	mov	rsi, r13
	mov	rdi, rbx
	call	group_can_go_on@PLT
	test	eax, eax
	jne	.L26
	mov	eax, DWORD PTR EEXIST[rip]
	test	eax, eax
	jne	.L10
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbx
	call	group_sched_in@PLT
	test	eax, eax
	jne	.L10
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	__perf_event_enable, .-__perf_event_enable
	.comm	current,4,4
	.comm	PERF_EVENT_STATE_INACTIVE,8,8
	.comm	PERF_EVENT_STATE_ERROR,8,8
	.comm	PERF_EVENT_STATE_ACTIVE,8,8
	.comm	EINVAL,4,4
	.comm	EEXIST,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_core.c___perf_event_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__perf_event_enable, %function
__perf_event_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #12]
	ldr	r8, [r0, #8]
	mov	r5, r0
	mov	r0, r6
	bl	__get_cpu_context
	ldr	r3, [r6, #4]
	mov	r7, r0
	clz	r0, r3
	lsr	r0, r0, #5
	bl	WARN_ON_ONCE
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, .L33
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r6
	bl	spin_lock
	mov	r0, r6
	bl	update_context_time
	ldr	r3, .L33+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L5
	ldr	r3, .L33+8
	mov	r1, r6
	ldr	r0, [r3]
	bl	perf_cgroup_set_timestamp
	mov	r0, r5
	bl	__perf_event_mark_enabled
	mov	r0, r5
	bl	event_filter_match
	cmp	r0, #0
	beq	.L32
	cmp	r5, r8
	beq	.L8
	ldr	r3, .L33+12
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L5
	mov	r2, #1
	mov	r1, r7
	mov	r0, r5
	bl	group_can_go_on
	cmp	r0, #0
	bne	.L13
	ldr	r3, .L33+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
.L14:
	mov	r1, r7
	mov	r2, r6
	mov	r0, r8
	bl	group_sched_out
.L10:
	ldr	r3, [r8, #4]
	cmp	r3, #0
	beq	.L5
	mov	r0, r8
	bl	update_group_times
	ldr	r3, .L33+20
	ldr	r3, [r3]
	str	r3, [r8]
.L5:
	mov	r0, r6
	bl	spin_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L32:
	mov	r0, r5
	bl	is_cgroup_event
	cmp	r0, #0
	beq	.L5
	mov	r0, r5
	bl	perf_cgroup_defer_enabled
	b	.L5
.L13:
	mov	r0, r5
	mov	r2, r6
	mov	r1, r7
	bl	event_sched_in
	cmp	r0, #0
	beq	.L5
	b	.L14
.L8:
	mov	r2, #1
	mov	r1, r7
	mov	r0, r8
	bl	group_can_go_on
	cmp	r0, #0
	bne	.L29
	ldr	r3, .L33+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	b	.L5
.L29:
	mov	r1, r7
	mov	r2, r6
	mov	r0, r8
	bl	group_sched_in
	cmp	r0, #0
	bne	.L10
	b	.L5
.L34:
	.align	2
.L33:
	.word	EINVAL
	.word	PERF_EVENT_STATE_INACTIVE
	.word	current
	.word	PERF_EVENT_STATE_ACTIVE
	.word	EEXIST
	.word	PERF_EVENT_STATE_ERROR
	.size	__perf_event_enable, .-__perf_event_enable
	.comm	current,4,4
	.comm	PERF_EVENT_STATE_INACTIVE,4,4
	.comm	PERF_EVENT_STATE_ERROR,4,4
	.comm	PERF_EVENT_STATE_ACTIVE,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
