	.file	"extr_core.c_perf_swevent_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	perf_swevent_add, @function
perf_swevent_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, swevent_htable[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	this_cpu_ptr@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	is_sampling_event@PLT
	test	rax, rax
	jne	.L10
.L2:
	xor	eax, eax
	test	DWORD PTR PERF_EF_START[rip], ebx
	mov	rdi, r12
	mov	rsi, rbp
	sete	al
	mov	DWORD PTR 4[rbp], eax
	call	find_swevent_head@PLT
	xor	edi, edi
	test	rax, rax
	mov	r12, rax
	sete	dil
	call	WARN_ON_ONCE@PLT
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbp
	call	hlist_add_head_rcu@PLT
	mov	rdi, rbp
	call	perf_event_update_userpage@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rbp]
	mov	rdi, rbp
	mov	DWORD PTR 12[rbp], eax
	call	perf_swevent_set_period@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	perf_swevent_add, .-perf_swevent_add
	.comm	swevent_htable,4,4
	.comm	PERF_EF_START,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_core.c_perf_swevent_add.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	perf_swevent_add, %function
perf_swevent_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, .L11
	mov	r5, r1
	bl	this_cpu_ptr
	mov	r6, r0
	mov	r0, r4
	bl	is_sampling_event
	cmp	r0, #0
	bne	.L10
.L2:
	ldr	r3, .L11+4
	mov	r0, r6
	ldr	r3, [r3]
	mov	r1, r4
	tst	r5, r3
	moveq	r3, #1
	movne	r3, #0
	str	r3, [r4, #4]
	bl	find_swevent_head
	mov	r6, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON_ONCE
	subs	r5, r0, #0
	beq	.L3
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L3:
	mov	r1, r6
	mov	r0, r4
	bl	hlist_add_head_rcu
	mov	r0, r4
	bl	perf_event_update_userpage
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, [r4, #8]
	mov	r0, r4
	str	r3, [r4, #12]
	bl	perf_swevent_set_period
	b	.L2
.L12:
	.align	2
.L11:
	.word	swevent_htable
	.word	PERF_EF_START
	.word	EINVAL
	.size	perf_swevent_add, .-perf_swevent_add
	.comm	swevent_htable,4,4
	.comm	PERF_EF_START,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
