	.file	"extr_evlist.c_perf_evlist__enable_event_thread.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	perf_evlist__enable_event_thread, @function
perf_evlist__enable_event_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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
	mov	edi, DWORD PTR [rdi]
	mov	rbx, rsi
	call	perf_cpu_map__nr@PLT
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	je	.L2
	mov	ebp, eax
	xor	r13d, r13d
	test	eax, eax
	jg	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	add	r13d, 1
	cmp	ebp, r13d
	je	.L4
.L3:
	mov	r14d, DWORD PTR PERF_EVENT_IOC_ENABLE[rip]
	mov	edx, r12d
	mov	esi, r13d
	mov	rdi, rbx
	call	FD@PLT
	xor	edx, edx
	mov	edi, eax
	mov	esi, r14d
	call	ioctl@PLT
	test	eax, eax
	je	.L11
	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
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	perf_evlist__enable_event_thread, .-perf_evlist__enable_event_thread
	.comm	PERF_EVENT_IOC_ENABLE,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_evlist.c_perf_evlist__enable_event_thread.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	perf_evlist__enable_event_thread, %function
perf_evlist__enable_event_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r0, [r0]
	mov	r7, r2
	bl	perf_cpu_map__nr
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L2
	cmp	r0, #0
	mov	r6, r0
	movgt	r4, #0
	ldrgt	r8, .L10
	ble	.L4
.L3:
	mov	r1, r4
	mov	r2, r7
	mov	r0, r5
	bl	FD
	mov	r2, #0
	ldr	r1, [r8]
	bl	ioctl
	cmp	r0, #0
	add	r4, r4, #1
	popne	{r4, r5, r6, r7, r8, pc}
	cmp	r6, r4
	bne	.L3
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L10+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	PERF_EVENT_IOC_ENABLE
	.word	EINVAL
	.size	perf_evlist__enable_event_thread, .-perf_evlist__enable_event_thread
	.comm	PERF_EVENT_IOC_ENABLE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
