	.file	"extr_content_filter.c_cfil_dispatch_attach_event.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"so %llx filter_control_unit %u kcunit %u"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"ctl_enqueuedata() failed: %d"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB2:
	.text
.LHOTB2:
	.p2align 4
	.type	cfil_dispatch_attach_event, @function
cfil_dispatch_attach_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	socket_lock_assert_owned@PLT
	lea	rdi, cfil_lck_rw[rip]
	call	cfil_rw_lock_shared@PLT
	mov	rax, QWORD PTR 24[rbp]
	test	rax, rax
	je	.L2
	cmp	QWORD PTR 8[rax], 0
	je	.L2
	mov	ecx, DWORD PTR MAX_CONTENT_FILTER[rip]
	test	ecx, ecx
	jle	.L4
	mov	rsi, QWORD PTR content_filters[rip]
	mov	eax, 1
	xor	r13d, r13d
.L9:
	mov	rbx, QWORD PTR -8[rsi+rax*8]
	mov	edx, eax
	mov	r15d, eax
	test	rbx, rbx
	je	.L7
	cmp	DWORD PTR [rbx], r12d
	jne	.L7
	mov	r8, QWORD PTR 8[r14]
	mov	rdi, rax
	sal	rdi, 5
	lea	r13, -32[r8+rdi]
	mov	rdi, QWORD PTR 16[r13]
	test	rdi, rdi
	je	.L7
	cmp	rdi, rbx
	sete	dil
	movzx	edi, dil
	call	VERIFY@PLT
.L8:
	cmp	QWORD PTR 16[r13], 0
	je	.L39
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR CFEF_SENT_SOCK_ATTACHED[rip], eax
	jne	.L14
	mov	rdi, rbp
	call	VM_KERNEL_ADDRPERM@PLT
	mov	edi, DWORD PTR LOG_INFO[rip]
	mov	ecx, r12d
	mov	r8d, r15d
	movsx	rdx, eax
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	CFIL_LOG@PLT
	mov	r12d, DWORD PTR 4[rbx]
	and	r12d, DWORD PTR CFF_FLOW_CONTROLLED[rip]
	je	.L15
	mov	eax, DWORD PTR 0[r13]
	mov	r12d, DWORD PTR ENOBUFS[rip]
.L13:
	or	eax, DWORD PTR CFEF_FLOW_CONTROLLED[rip]
	lea	rdi, cfil_stats[rip+4]
	mov	DWORD PTR 0[r13], eax
	call	OSIncrementAtomic@PLT
	lea	rdi, cfil_lck_rw[rip]
	call	cfil_rw_lock_shared_to_exclusive@PLT
	test	eax, eax
	jne	.L20
	lea	rdi, cfil_lck_rw[rip]
	call	cfil_rw_lock_exclusive@PLT
.L20:
	mov	eax, DWORD PTR CFF_FLOW_CONTROLLED[rip]
	or	DWORD PTR 4[rbx], eax
	lea	rdi, cfil_lck_rw[rip]
	call	cfil_rw_unlock_exclusive@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	add	rax, 1
	lea	r15d, 1[rdx]
	cmp	ecx, eax
	jge	.L9
	test	r13, r13
	jne	.L8
.L4:
	cmp	QWORD PTR ENOBUFS[rip], 0
	je	.L5
.L12:
	xor	r12d, r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rbp, QWORD PTR EINVAL[rip]
	cmp	QWORD PTR ENOBUFS[rip], rbp
	je	.L40
	test	rbp, rbp
	je	.L12
.L19:
	lea	rdi, cfil_stats[rip]
	mov	r12d, ebp
	call	OSIncrementAtomic@PLT
.L10:
	lea	rdi, cfil_lck_rw[rip]
	call	cfil_rw_unlock_shared@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L41
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	QWORD PTR ENOBUFS[rip], 0
	jne	.L12
	xor	r12d, r12d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r15, rsp
	mov	esi, 64
	mov	rdi, r15
	call	bzero@PLT
	mov	eax, DWORD PTR CFM_VERSION_CURRENT[rip]
	mov	esi, DWORD PTR 4[rbp]
	mov	DWORD PTR 32[rsp], 64
	mov	edi, DWORD PTR 8[rsp]
	mov	DWORD PTR 56[rsp], eax
	mov	eax, DWORD PTR CFM_TYPE_EVENT[rip]
	mov	DWORD PTR 52[rsp], eax
	mov	eax, DWORD PTR CFM_OP_SOCKET_ATTACHED[rip]
	mov	DWORD PTR 48[rsp], eax
	mov	rax, QWORD PTR 24[r13]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR 24[rsp], edx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 20[rsp], edx
	mov	edx, 4
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR 12[rsp], eax
	call	memcpy@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR SOF_DELEGATED[rip], eax
	je	.L16
	mov	eax, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR 12[rbp]
	mov	edx, 4
	mov	edi, DWORD PTR [rsp]
	mov	DWORD PTR 4[rsp], eax
	call	memcpy@PLT
.L17:
	mov	rax, QWORD PTR 16[r13]
	mov	r8d, DWORD PTR CTL_DATA_EOR[rip]
	mov	ecx, 64
	mov	rdx, r15
	mov	esi, DWORD PTR 8[rax]
	mov	edi, DWORD PTR 12[rax]
	call	ctl_enqueuedata@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L42
	lea	rdi, 4[r13]
	call	microuptime@PLT
	mov	eax, DWORD PTR 8[r13]
	lea	rdi, cfil_stats[rip+8]
	mov	DWORD PTR 4[r14], eax
	mov	eax, DWORD PTR 4[r13]
	mov	DWORD PTR [r14], eax
	mov	eax, DWORD PTR CFEF_SENT_SOCK_ATTACHED[rip]
	or	DWORD PTR 0[r13], eax
	call	OSIncrementAtomic@PLT
	cmp	QWORD PTR ENOBUFS[rip], 0
	jne	.L12
	mov	eax, DWORD PTR 0[r13]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L39:
	cmp	QWORD PTR ENOBUFS[rip], 0
	jne	.L12
	mov	eax, DWORD PTR 0[r13]
	xor	r12d, r12d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, 4
	mov	edi, DWORD PTR [rsp]
	mov	DWORD PTR 4[rsp], eax
	call	memcpy@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L42:
	mov	edi, DWORD PTR LOG_ERR[rip]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	CFIL_LOG@PLT
	cmp	rbp, QWORD PTR ENOBUFS[rip]
	jne	.L19
	mov	eax, DWORD PTR 0[r13]
	mov	r12d, ebp
	jmp	.L13
.L41:
	call	__stack_chk_fail@PLT
.L40:
	jmp	.L5
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	cfil_dispatch_attach_event.cold, @function
cfil_dispatch_attach_event.cold:
.LFSB0:
.L5:
	.cfi_def_cfa_offset 144
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	eax, DWORD PTR ds:0
	ud2
	.cfi_endproc
.LFE0:
	.text
	.size	cfil_dispatch_attach_event, .-cfil_dispatch_attach_event
	.section	.text.unlikely
	.size	cfil_dispatch_attach_event.cold, .-cfil_dispatch_attach_event.cold
.LCOLDE2:
	.text
.LHOTE2:
	.comm	content_filters,8,8
	.comm	cfil_stats,12,8
	.comm	cfil_lck_rw,4,4
	.comm	SOF_DELEGATED,4,4
	.comm	MAX_CONTENT_FILTER,4,4
	.comm	LOG_INFO,4,4
	.comm	LOG_ERR,4,4
	.comm	LOG_DEBUG,4,4
	.comm	ENOBUFS,8,8
	.comm	EINVAL,8,8
	.comm	CTL_DATA_EOR,4,4
	.comm	CFM_VERSION_CURRENT,4,4
	.comm	CFM_TYPE_EVENT,4,4
	.comm	CFM_OP_SOCKET_ATTACHED,4,4
	.comm	CFF_FLOW_CONTROLLED,4,4
	.comm	CFEF_SENT_SOCK_ATTACHED,4,4
	.comm	CFEF_FLOW_CONTROLLED,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_content_filter.c_cfil_dispatch_attach_event.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"so %llx filter_control_unit %u kcunit %u\000"
	.align	2
.LC1:
	.ascii	"ctl_enqueuedata() failed: %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cfil_dispatch_attach_event, %function
cfil_dispatch_attach_event:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	ldr	r3, .L49
	sub	sp, sp, #76
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	mov	r9, r1
	mov	r8, r2
	bl	socket_lock_assert_owned
	ldr	r0, .L49+4
	bl	cfil_rw_lock_shared
	ldr	r3, [r7, #20]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L49+8
	ldr	ip, [r3]
	cmp	ip, #0
	ble	.L4
	mov	r6, #1
	mov	r5, #0
	ldr	r3, .L49+12
	ldr	r3, [r3]
	rsb	r1, r3, r3, lsl #30
	rsb	r1, r3, r1, lsl #2
	sub	r3, r3, #4
.L9:
	ldr	r4, [r3, #4]!
	cmp	r4, #0
	beq	.L7
	ldr	r2, [r4]
	cmp	r2, r8
	bne	.L7
	ldr	r5, [r9, #8]
	add	r0, r3, r3, lsl #2
	add	r0, r0, r1
	add	r5, r5, r0
	ldr	r0, [r5, #12]
	cmp	r0, #0
	beq	.L7
	sub	r0, r0, r4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
.L8:
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L46
	ldr	r10, .L49+16
	ldr	r3, [r5]
	ldr	r2, [r10]
	tst	r3, r2
	bne	.L14
	ldr	r3, .L49+20
	mov	r0, r7
	ldr	r3, [r3]
	ldr	fp, .L49+24
	str	r3, [sp, #12]
	bl	VM_KERNEL_ADDRPERM
	ldr	r3, [sp, #12]
	mov	r2, r0
	ldr	r1, .L49+28
	mov	r0, r3
	str	r6, [sp]
	mov	r3, r8
	bl	CFIL_LOG
	ldr	r3, [fp]
	ldr	r2, [r4, #4]
	tst	r2, r3
	beq	.L15
	ldr	r2, .L49+32
	ldr	r3, [r5]
	ldr	r6, [r2]
.L13:
	ldr	r2, .L49+36
	ldr	r0, .L49+40
	ldr	r2, [r2]
	orr	r3, r2, r3
	str	r3, [r5]
	bl	OSIncrementAtomic
	ldr	r0, .L49+4
	bl	cfil_rw_lock_shared_to_exclusive
	cmp	r0, #0
	bne	.L20
	ldr	r0, .L49+4
	bl	cfil_rw_lock_exclusive
.L20:
	ldr	r3, [r4, #4]
	ldr	r2, [fp]
	ldr	r0, .L49+4
	orr	r3, r3, r2
	str	r3, [r4, #4]
	bl	cfil_rw_unlock_exclusive
	b	.L1
.L7:
	add	r6, r6, #1
	cmp	r6, ip
	ble	.L9
	cmp	r5, #0
	bne	.L8
.L4:
	ldr	r3, .L49+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
.L12:
	mov	r6, #0
	b	.L10
.L2:
	ldr	r2, .L49+44
	ldr	r3, .L49+32
	ldr	r6, [r2]
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L5
	cmp	r6, #0
	beq	.L12
.L19:
	ldr	r0, .L49+48
	bl	OSIncrementAtomic
.L10:
	ldr	r0, .L49+4
	bl	cfil_rw_unlock_shared
.L1:
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	mov	r0, r6
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r2, .L49+32
	ldr	r6, [r2]
	cmp	r6, #0
	bne	.L12
	ldr	fp, .L49+24
	b	.L13
.L15:
	mov	r1, #48
	add	r0, sp, #20
	bl	bzero
	mov	r0, #48
	ldr	r3, [r7, #20]
	ldr	ip, [r5, #16]
	ldr	r1, [r3, #8]
	ldr	r2, .L49+52
	ldr	r1, [r1]
	ldr	lr, [ip]
	ldr	ip, [r2]
	str	r1, [sp, #44]
	ldr	r2, .L49+56
	ldr	r1, .L49+60
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	lr, [sp, #52]
	ldm	r3, {r3, lr}
	str	r3, [sp, #36]
	ldr	r3, [r7, #8]
	str	r2, [sp, #60]
	str	r1, [sp, #56]
	mov	r2, #4
	ldr	r1, [r7, #4]
	str	r0, [sp, #48]
	ldr	r0, [sp, #28]
	str	lr, [sp, #40]
	str	ip, [sp, #64]
	str	r3, [sp, #32]
	bl	memcpy
	ldr	r3, .L49+64
	ldr	r2, [r7]
	ldr	r3, [r3]
	ldr	r0, [sp, #20]
	tst	r2, r3
	ldrne	r3, [r7, #16]
	ldmibeq	r7, {r1, r3}
	ldrne	r1, [r7, #12]
	mov	r2, #4
	str	r3, [sp, #24]
	bl	memcpy
	ldr	r3, [r5, #12]
	ldr	r2, .L49+68
	ldr	r1, [r3, #8]
	ldr	r0, [r3, #12]
	ldr	r3, [r2]
	add	r2, sp, #20
	str	r3, [sp]
	mov	r3, #48
	bl	ctl_enqueuedata
	subs	r6, r0, #0
	bne	.L48
	add	r0, r5, #4
	bl	microuptime
	ldr	r2, [r10]
	ldr	r3, [r5]
	ldr	r1, [r5, #8]
	orr	r3, r3, r2
	ldr	r2, [r5, #4]
	ldr	r0, .L49+72
	str	r1, [r9, #4]
	str	r2, [r9]
	str	r3, [r5]
	bl	OSIncrementAtomic
	ldr	r3, .L49+32
	ldr	r6, [r3]
	cmp	r6, #0
	bne	.L12
.L44:
	ldr	r3, [r5]
	b	.L13
.L46:
	ldr	r3, .L49+32
	ldr	r6, [r3]
	cmp	r6, #0
	bne	.L12
	ldr	r3, [r5]
	ldr	fp, .L49+24
	b	.L13
.L48:
	ldr	r3, .L49+76
	mov	r2, r6
	ldr	r0, [r3]
	ldr	r1, .L49+80
	bl	CFIL_LOG
	ldr	r3, .L49+32
	ldr	r3, [r3]
	cmp	r6, r3
	bne	.L19
	b	.L44
.L47:
	bl	__stack_chk_fail
.L5:
	mov	r3, #0
	ldr	r3, [r3]
	.inst	0xe7f000f0
.L50:
	.align	2
.L49:
	.word	.LC2
	.word	cfil_lck_rw
	.word	MAX_CONTENT_FILTER
	.word	content_filters
	.word	CFEF_SENT_SOCK_ATTACHED
	.word	LOG_INFO
	.word	CFF_FLOW_CONTROLLED
	.word	.LC0
	.word	ENOBUFS
	.word	CFEF_FLOW_CONTROLLED
	.word	cfil_stats+4
	.word	EINVAL
	.word	cfil_stats
	.word	CFM_VERSION_CURRENT
	.word	CFM_TYPE_EVENT
	.word	CFM_OP_SOCKET_ATTACHED
	.word	SOF_DELEGATED
	.word	CTL_DATA_EOR
	.word	cfil_stats+8
	.word	LOG_ERR
	.word	.LC1
	.size	cfil_dispatch_attach_event, .-cfil_dispatch_attach_event
	.comm	content_filters,4,4
	.comm	cfil_stats,12,4
	.comm	cfil_lck_rw,4,4
	.comm	SOF_DELEGATED,4,4
	.comm	MAX_CONTENT_FILTER,4,4
	.comm	LOG_INFO,4,4
	.comm	LOG_ERR,4,4
	.comm	LOG_DEBUG,4,4
	.comm	ENOBUFS,4,4
	.comm	EINVAL,4,4
	.comm	CTL_DATA_EOR,4,4
	.comm	CFM_VERSION_CURRENT,4,4
	.comm	CFM_TYPE_EVENT,4,4
	.comm	CFM_OP_SOCKET_ATTACHED,4,4
	.comm	CFF_FLOW_CONTROLLED,4,4
	.comm	CFEF_SENT_SOCK_ATTACHED,4,4
	.comm	CFEF_FLOW_CONTROLLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
