	.file	"extr_comb_detect.c_mask_filter_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mask filter thread started for segment %d"
	.text
	.p2align 4
	.type	mask_filter_thread, @function
mask_filter_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rsi, .LC0[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r12d, DWORD PTR [rdi]
	mov	rbx, QWORD PTR 24[rdi]
	mov	QWORD PTR 24[rsp], rdi
	mov	edi, 3
	mov	edx, r12d
	mov	QWORD PTR 8[rsp], rbx
	call	hb_deep_log@PLT
	lea	rax, 8[rbx]
	mov	QWORD PTR 16[rsp], rax
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rbx, QWORD PTR 16[rsp]
	mov	esi, r12d
	mov	rdi, rbx
	call	taskset_thread_wait4start@PLT
	mov	esi, r12d
	mov	rdi, rbx
	call	taskset_thread_stop@PLT
	test	rax, rax
	jne	.L25
	mov	rbx, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR 32[rax]
	mov	r13d, DWORD PTR [rdx]
	mov	rdx, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR [rax]
	mov	r14d, DWORD PTR [rdx]
	mov	r15d, DWORD PTR [rsi]
	mov	edi, DWORD PTR 4[rsi]
	movsx	rax, DWORD PTR 8[rsi]
	add	r14d, r13d
	test	r13d, r13d
	jne	.L26
	mov	ecx, eax
	mov	r11d, 4
	mov	edx, 2
	mov	r13d, 1
.L15:
	cmp	edi, r14d
	mov	r8, QWORD PTR 16[rsi]
	movsx	rcx, ecx
	mov	r10, QWORD PTR FILTER_CLASSIC[rip]
	sete	dil
	imul	edx, eax
	movzx	edi, dil
	add	r11, r8
	sub	r14d, edi
	lea	rdi, 4[0+rcx*4]
	movsx	rdx, edx
	lea	rsi, [r8+rdi]
	lea	rbx, 4[r8+rdx*4]
	mov	rdx, QWORD PTR 8[rsp]
	mov	r9, QWORD PTR [rdx]
	cmp	r9, r10
	je	.L27
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR 16[rdx]
	mov	rdx, QWORD PTR [rdx]
	add	rdi, QWORD PTR [rdx]
.L8:
	cmp	r13d, r14d
	jge	.L6
	lea	r8d, -3[r15]
	lea	rbp, 0[0+rax*4]
	add	r8, 2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, 1
	cmp	r15d, 2
	jg	.L11
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	and	edx, DWORD PTR [r11+rax*4]
	and	edx, DWORD PTR [rbx+rax*4]
	and	edx, ecx
	mov	DWORD PTR [rdi+rax*4], edx
	add	rax, 1
	cmp	rax, r8
	je	.L13
.L11:
	mov	edx, DWORD PTR [rsi+rax*4]
	mov	ecx, DWORD PTR -4[rsi+rax*4]
	and	ecx, edx
	and	ecx, DWORD PTR 4[rsi+rax*4]
	cmp	r9, r10
	jne	.L9
	mov	DWORD PTR [rdi+rax*4], ecx
	add	rax, 1
	cmp	rax, r8
	jne	.L11
.L13:
	add	r13d, 1
	add	r11, rbp
	add	rsi, rbp
	add	rbx, rbp
	add	rdi, rbp
	cmp	r14d, r13d
	jne	.L7
.L6:
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, r12d
	call	taskset_thread_complete@PLT
	jmp	.L14
.L26:
	lea	ecx, -1[r13]
	lea	edx, 1[r13]
	imul	ecx, eax
	movsx	r8, ecx
	add	ecx, eax
	lea	r11, 4[0+r8*4]
	jmp	.L15
.L27:
	mov	rdx, QWORD PTR 24[rdx]
	mov	rdx, QWORD PTR [rdx]
	add	rdi, QWORD PTR [rdx]
	jmp	.L8
.L25:
	mov	rdi, QWORD PTR 16[rsp]
	add	rsp, 40
	.cfi_def_cfa_offset 56
	mov	esi, 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
	jmp	taskset_thread_complete@PLT
	.cfi_endproc
.LFE0:
	.size	mask_filter_thread, .-mask_filter_thread
	.comm	FILTER_CLASSIC,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_comb_detect.c_mask_filter_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mask filter thread started for segment %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mask_filter_thread, %function
mask_filter_thread:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	ldr	r3, [r3, #12]
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r3
	sub	sp, sp, #36
	ldr	r2, [r0]
	str	r0, [sp, #28]
	ldr	r1, .L27
	mov	r0, #3
	str	r3, [sp, #16]
	str	r2, [sp, #20]
	bl	hb_deep_log
	add	r3, r4, #4
	str	r3, [sp, #24]
.L14:
	ldr	r5, [sp, #20]
	ldr	r4, [sp, #24]
	mov	r1, r5
	mov	r0, r4
	bl	taskset_thread_wait4start
	mov	r1, r5
	mov	r0, r4
	bl	taskset_thread_stop
	cmp	r0, #0
	bne	.L24
	ldr	r3, [sp, #28]
	ldmib	r3, {r1, r2}
	ldr	r3, [sp, #16]
	ldr	fp, [r1]
	ldr	r3, [r3, #16]
	ldr	r2, [r2]
	ldr	r3, [r3]
	add	r2, fp, r2
	str	r2, [sp, #8]
	ldr	r2, [r3]
	cmp	fp, #0
	str	r2, [sp, #12]
	ldmib	r3, {r2, r10}
	bne	.L25
	mov	lr, r10
	mov	r9, #4
	mov	r8, #2
	mov	fp, #1
.L15:
	ldr	r1, [sp, #8]
	mul	r8, r10, r8
	cmp	r2, r1
	moveq	r2, r1
	subeq	r2, r2, #1
	streq	r2, [sp, #8]
	ldr	r2, [sp, #16]
	ldr	r3, [r3, #12]
	ldr	r6, [r2]
	ldr	r2, .L27+4
	add	lr, lr, #1
	ldr	r7, [r2]
	add	r8, r8, #1
	cmp	r6, r7
	add	r4, r3, lr, lsl #2
	add	r8, r3, r8, lsl #2
	add	r9, r3, r9
	lsl	lr, lr, #2
	ldr	r3, [sp, #16]
	beq	.L26
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	lr, r3, lr
.L8:
	ldr	r3, [sp, #8]
	cmp	fp, r3
	bge	.L6
	ldr	r3, [sp, #12]
	lsl	r10, r10, #2
	add	r5, r4, r3, lsl #2
	sub	r5, r5, #8
.L7:
	ldr	r3, [sp, #12]
	cmp	r3, #2
	movgt	r1, r4
	movgt	r0, #1
	strgt	r4, [sp, #4]
	ble	.L13
.L11:
	ldr	r2, [r1]
	ldr	ip, [r1, #4]!
	cmp	r6, r7
	ldr	r3, [r1, #4]
	ldrne	r4, [r8, r0, lsl #2]
	and	r3, r3, ip
	and	r3, r3, r2
	ldrne	r2, [r9, r0, lsl #2]
	andne	r2, r2, r4
	andne	ip, ip, r2
	andne	r3, r3, ip
	cmp	r1, r5
	str	r3, [lr, r0, lsl #2]
	add	r0, r0, #1
	bne	.L11
	ldr	r4, [sp, #4]
.L13:
	ldr	r3, [sp, #8]
	add	fp, fp, #1
	cmp	r3, fp
	add	r9, r9, r10
	add	r4, r4, r10
	add	r8, r8, r10
	add	lr, lr, r10
	add	r5, r5, r10
	bne	.L7
.L6:
	ldr	r1, [sp, #20]
	ldr	r0, [sp, #24]
	bl	taskset_thread_complete
	b	.L14
.L25:
	sub	lr, fp, #1
	mul	lr, r10, lr
	add	r9, lr, #1
	lsl	r9, r9, #2
	add	lr, r10, lr
	add	r8, fp, #1
	b	.L15
.L26:
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	lr, r3, lr
	b	.L8
.L24:
	ldr	r1, [sp, #20]
	ldr	r0, [sp, #24]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	taskset_thread_complete
.L28:
	.align	2
.L27:
	.word	.LC0
	.word	FILTER_CLASSIC
	.size	mask_filter_thread, .-mask_filter_thread
	.comm	FILTER_CLASSIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
