	.file	"extr_external_files.c_filter_subidx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	".idx"
.LC1:
	.string	".sub"
	.text
	.p2align 4
	.type	filter_subidx, @function
filter_subidx:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ebx, DWORD PTR [rsi]
	test	ebx, ebx
	jle	.L2
	mov	QWORD PTR 8[rsp], 0
	xor	ebp, ebp
	lea	r14, .LC0[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	QWORD PTR 8[rsp], r15
.L3:
	mov	ebx, DWORD PTR 0[r13]
	add	rbp, 1
	cmp	ebx, ebp
	jle	.L2
.L4:
	mov	rax, QWORD PTR [r12]
	mov	rbx, rbp
	mov	rsi, r14
	sal	rbx, 4
	mov	r15, QWORD PTR [rax+rbx]
	mov	rdi, r15
	call	case_endswith@PLT
	test	rax, rax
	jne	.L8
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	call	case_endswith@PLT
	test	rax, rax
	je	.L3
	cmp	QWORD PTR 8[rsp], 0
	je	.L3
	mov	rdi, r15
	call	strlen@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, r15
	lea	rdx, -4[rax]
	call	strncmp@PLT
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR [r12]
	add	rbp, 1
	mov	DWORD PTR 8[rax+rbx], -1
	mov	ebx, DWORD PTR 0[r13]
	cmp	ebx, ebp
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	sub	ebx, 1
	js	.L1
	movsx	rbp, ebx
	sal	rbp, 4
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	sub	ebx, 1
	sub	rbp, 16
	cmp	ebx, -1
	je	.L1
.L7:
	mov	rdi, QWORD PTR [r12]
	mov	eax, DWORD PTR 8[rdi+rbp]
	test	eax, eax
	jns	.L6
	mov	esi, DWORD PTR 0[r13]
	mov	edx, ebx
	sub	ebx, 1
	sub	rbp, 16
	call	MP_TARRAY_REMOVE_AT@PLT
	cmp	ebx, -1
	jne	.L7
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	filter_subidx, .-filter_subidx
	.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_external_files.c_filter_subidx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".idx\000"
	.align	2
.LC1:
	.ascii	".sub\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	filter_subidx, %function
filter_subidx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r1]
	mov	r7, r1
	cmp	r4, #0
	mov	r6, r0
	ble	.L2
	mov	r5, #0
	ldr	r8, .L19
	mov	r9, r5
	ldr	r10, .L19+4
	b	.L4
.L3:
	ldr	r4, [r7]
	add	r5, r5, #1
	cmp	r4, r5
	ble	.L2
.L4:
	ldr	r3, [r6]
	mov	r1, r8
	ldr	fp, [r3, r5, lsl #3]
	lsl	r4, r5, #3
	mov	r0, fp
	bl	case_endswith
	cmp	r0, #0
	movne	r9, fp
	bne	.L3
	mov	r1, r10
	mov	r0, fp
	bl	case_endswith
	cmp	r0, #0
	beq	.L3
	cmp	r9, #0
	beq	.L3
	mov	r0, fp
	bl	strlen
	mov	r1, fp
	sub	r2, r0, #4
	mov	r0, r9
	bl	strncmp
	cmp	r0, #0
	ldreq	r3, [r6]
	add	r5, r5, #1
	addeq	r4, r3, r4
	mvneq	r3, #0
	streq	r3, [r4, #4]
	ldr	r4, [r7]
	cmp	r4, r5
	bgt	.L4
.L2:
	subs	r4, r4, #1
	bpl	.L7
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	subs	r4, r4, #1
	popcc	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r0, [r6]
	add	r3, r0, r4, lsl #3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bge	.L6
	mov	r2, r4
	ldr	r1, [r7]
	bl	MP_TARRAY_REMOVE_AT
	subs	r4, r4, #1
	popcc	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	b	.L7
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	.LC1
	.size	filter_subidx, .-filter_subidx
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
