	.file	"extr_core.c_perf_event_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	perf_event_enable
	.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, QWORD PTR 16[rdi]
	mov	r13, QWORD PTR 8[rbp]
	test	r13, r13
	je	.L11
	mov	rdi, rbp
	call	spin_lock_irq@PLT
	mov	rax, QWORD PTR [r12]
	cmp	rax, QWORD PTR PERF_EVENT_STATE_INACTIVE[rip]
	jge	.L6
	cmp	rax, QWORD PTR PERF_EVENT_STATE_ERROR[rip]
	je	.L12
.L4:
	cmp	QWORD PTR 16[rbp], 0
	jne	.L5
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	call	spin_lock_irq@PLT
	cmp	QWORD PTR 16[rbp], 0
	je	.L6
	mov	rax, QWORD PTR PERF_EVENT_STATE_OFF[rip]
	cmp	QWORD PTR [r12], rax
	jne	.L6
	mov	r13, QWORD PTR 8[rbp]
.L5:
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	mov	esi, DWORD PTR __perf_event_enable[rip]
	mov	rdx, r12
	mov	rdi, r13
	call	task_function_call@PLT
	test	eax, eax
	jne	.L14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	mov	rdi, r12
	call	__perf_event_mark_enabled@PLT
.L6:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irq@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR PERF_EVENT_STATE_OFF[rip]
	mov	QWORD PTR [r12], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR 8[rdi]
	mov	esi, DWORD PTR __perf_event_enable[rip]
	mov	rdx, r12
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	cpu_function_call@PLT
	.cfi_endproc
.LFE0:
	.size	perf_event_enable, .-perf_event_enable
	.comm	__perf_event_enable,4,4
	.comm	PERF_EVENT_STATE_OFF,8,8
	.comm	PERF_EVENT_STATE_INACTIVE,8,8
	.comm	PERF_EVENT_STATE_ERROR,8,8
	.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
	.global	perf_event_enable
	.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	r4, [r0, #8]
	mov	r5, r0
	ldr	r6, [r4, #4]
	cmp	r6, #0
	beq	.L15
	mov	r0, r4
	bl	spin_lock_irq
	ldr	r2, .L17
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	bge	.L6
	ldr	r2, .L17+4
	ldr	r2, [r2]
	cmp	r3, r2
	ldreq	r3, .L17+8
	ldreq	r3, [r3]
	streq	r3, [r5]
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L12
	ldr	r7, .L17+12
	ldr	r8, .L17+8
	b	.L5
.L16:
	ldr	r2, [r5]
	ldr	r3, [r8]
	cmp	r2, r3
	bne	.L6
	ldr	r6, [r4, #4]
.L5:
	mov	r0, r4
	bl	spin_unlock_irq
	mov	r2, r5
	mov	r0, r6
	ldr	r1, [r7]
	bl	task_function_call
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	bl	spin_lock_irq
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L16
.L6:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock_irq
.L15:
	ldr	r3, .L17+12
	mov	r2, r0
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	ldr	r0, [r0, #4]
	b	cpu_function_call
.L12:
	mov	r0, r5
	bl	__perf_event_mark_enabled
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock_irq
.L18:
	.align	2
.L17:
	.word	PERF_EVENT_STATE_INACTIVE
	.word	PERF_EVENT_STATE_ERROR
	.word	PERF_EVENT_STATE_OFF
	.word	__perf_event_enable
	.size	perf_event_enable, .-perf_event_enable
	.comm	__perf_event_enable,4,4
	.comm	PERF_EVENT_STATE_OFF,4,4
	.comm	PERF_EVENT_STATE_INACTIVE,4,4
	.comm	PERF_EVENT_STATE_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
