	.file	"extr_trace_events_filter.c_apply_subsystem_event_filter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"0"
	.text
	.p2align 4
	.globl	apply_subsystem_event_filter
	.type	apply_subsystem_event_filter, @function
apply_subsystem_event_filter:
.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
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR 16[rdi]
	mov	r14, QWORD PTR 8[rdi]
	lea	rdi, event_mutex[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L2
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L3:
	lea	rdi, event_mutex[rip]
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.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	rdi, r13
	call	strstrip@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	strcmp@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L9
	mov	rcx, rsp
	mov	rdx, r13
	mov	rsi, r14
	mov	rdi, rbp
	call	create_system_filter@PLT
	cmp	QWORD PTR [rsp], 0
	mov	r12d, eax
	je	.L3
	mov	rdi, QWORD PTR [rbx]
	call	__free_filter@PLT
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rbx], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, r14
	mov	rdi, rbp
	call	filter_free_subsystem_preds@PLT
	mov	rdi, QWORD PTR [rbx]
	call	remove_filter_string@PLT
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR [rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rbx], 0
	call	tracepoint_synchronize_unregister@PLT
	mov	rdi, rbp
	mov	rsi, r14
	call	filter_free_subsystem_filters@PLT
	mov	rdi, QWORD PTR [rsp]
	call	__free_filter@PLT
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	apply_subsystem_event_filter, .-apply_subsystem_event_filter
	.comm	event_mutex,4,4
	.comm	ENODEV,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_trace_events_filter.c_apply_subsystem_event_filter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"0\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	apply_subsystem_event_filter
	.syntax unified
	.arm
	.fpu softvfp
	.type	apply_subsystem_event_filter, %function
apply_subsystem_event_filter:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r3, #0
	mov	r4, r0
	ldr	r2, .L13
	sub	sp, sp, #8
	ldr	r0, .L13+4
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r6, r1
	str	r3, [sp]
	ldr	r7, [r4, #8]
	ldr	r8, [r4, #4]
	bl	mutex_lock
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L13+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L3:
	ldr	r0, .L13+4
	bl	mutex_unlock
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r6
	bl	strstrip
	ldr	r1, .L13+12
	bl	strcmp
	subs	r5, r0, #0
	beq	.L12
	mov	r3, sp
	mov	r2, r6
	mov	r1, r8
	mov	r0, r4
	bl	create_system_filter
	ldr	r3, [sp]
	mov	r5, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, [r7]
	bl	__free_filter
	ldr	r3, [sp]
	str	r3, [r7]
	b	.L3
.L12:
	mov	r1, r8
	mov	r0, r4
	bl	filter_free_subsystem_preds
	ldr	r0, [r7]
	bl	remove_filter_string
	ldr	r3, [r7]
	str	r3, [sp]
	str	r5, [r7]
	bl	tracepoint_synchronize_unregister
	mov	r1, r8
	mov	r0, r4
	bl	filter_free_subsystem_filters
	ldr	r0, [sp]
	bl	__free_filter
	b	.L3
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	event_mutex
	.word	ENODEV
	.word	.LC0
	.size	apply_subsystem_event_filter, .-apply_subsystem_event_filter
	.comm	event_mutex,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
