	.file	"extr_jv_aux.c_delpaths_sorted.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	delpaths_sorted, @function
delpaths_sorted:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR [rsp], edi
	call	jv_array@PLT
	mov	DWORD PTR 12[rsp], eax
	lea	eax, 1[r13]
	mov	DWORD PTR 8[rsp], eax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, ebp
	call	jv_copy@PLT
	mov	edi, eax
	call	jv_array_length@PLT
	cmp	eax, r14d
	jle	.L11
	mov	edi, ebp
	mov	ebx, r14d
	call	jv_copy@PLT
	mov	esi, r14d
	mov	edi, eax
	call	jv_array_get@PLT
	mov	edi, eax
	call	jv_array_length@PLT
	xor	edi, edi
	cmp	eax, r13d
	setg	dil
	call	assert@PLT
	mov	edi, ebp
	call	jv_copy@PLT
	mov	esi, r14d
	mov	edi, eax
	call	jv_array_get@PLT
	mov	edi, eax
	call	jv_array_length@PLT
	mov	edi, ebp
	mov	DWORD PTR 4[rsp], eax
	call	jv_copy@PLT
	mov	esi, r14d
	mov	edi, eax
	call	jv_array_get@PLT
	mov	esi, r13d
	mov	edi, eax
	call	jv_array_get@PLT
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, ebp
	call	jv_copy@PLT
	mov	esi, ebx
	mov	edi, eax
	call	jv_array_get@PLT
	mov	esi, r13d
	mov	edi, eax
	call	jv_array_get@PLT
	mov	edi, r12d
	mov	r15d, eax
	call	jv_copy@PLT
	mov	esi, r15d
	mov	edi, eax
	call	jv_equal@PLT
	test	rax, rax
	je	.L8
	add	ebx, 1
.L3:
	mov	edi, ebp
	call	jv_copy@PLT
	mov	edi, eax
	call	jv_array_length@PLT
	cmp	eax, ebx
	jg	.L4
.L8:
	mov	ecx, DWORD PTR 8[rsp]
	cmp	DWORD PTR 4[rsp], ecx
	je	.L23
	mov	edi, r12d
	call	jv_copy@PLT
	mov	edi, DWORD PTR [rsp]
	mov	DWORD PTR 4[rsp], eax
	call	jv_copy@PLT
	mov	esi, DWORD PTR 4[rsp]
	mov	edi, eax
	call	jv_get@PLT
	mov	edi, eax
	mov	r15d, eax
	call	jv_is_valid@PLT
	test	rax, rax
	je	.L24
	mov	edi, r15d
	call	jv_get_kind@PLT
	cmp	rax, QWORD PTR JV_KIND_NULL[rip]
	je	.L25
	mov	edi, ebp
	call	jv_copy@PLT
	mov	esi, r14d
	mov	edx, ebx
	mov	edi, eax
	call	jv_array_slice@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	edi, r15d
	mov	esi, eax
	call	delpaths_sorted
	mov	edi, eax
	mov	r14d, eax
	call	jv_is_valid@PLT
	test	rax, rax
	je	.L26
	mov	edi, DWORD PTR [rsp]
	mov	edx, r14d
	mov	esi, r12d
	call	jv_set@PLT
	mov	DWORD PTR [rsp], eax
	mov	edi, DWORD PTR [rsp]
	call	jv_is_valid@PLT
	test	rax, rax
	je	.L11
.L9:
	mov	r14d, ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, DWORD PTR 12[rsp]
	mov	esi, r12d
	call	jv_array_append@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, r12d
	call	jv_free@PLT
	mov	edi, r15d
	call	jv_free@PLT
	mov	edi, DWORD PTR [rsp]
	call	jv_is_valid@PLT
	test	rax, rax
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, ebp
	call	jv_free@PLT
	mov	ebx, DWORD PTR [rsp]
	mov	edi, ebx
	call	jv_is_valid@PLT
	test	rax, rax
	je	.L16
	mov	esi, DWORD PTR 12[rsp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edi, ebx
	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	jv_dels@PLT
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rsp]
	call	jv_free@PLT
	mov	eax, DWORD PTR [rsp]
	add	rsp, 24
	.cfi_remember_state
	.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
.L24:
	.cfi_restore_state
	mov	edi, r12d
	call	jv_free@PLT
	mov	edi, DWORD PTR [rsp]
	call	jv_free@PLT
	mov	DWORD PTR [rsp], r15d
	jmp	.L11
.L26:
	mov	edi, r12d
	call	jv_free@PLT
	mov	edi, DWORD PTR [rsp]
	call	jv_free@PLT
	mov	DWORD PTR [rsp], r14d
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	delpaths_sorted, .-delpaths_sorted
	.comm	JV_KIND_NULL,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_jv_aux.c_delpaths_sorted.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	delpaths_sorted, %function
delpaths_sorted:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r2
	sub	sp, sp, #12
	mov	r10, r0
	mov	r5, r1
	bl	jv_array
	mov	r8, #0
	add	r3, r7, #1
	str	r3, [sp]
	str	r0, [sp, #4]
.L2:
	mov	r0, r5
	bl	jv_copy
	bl	jv_array_length
	cmp	r0, r8
	ble	.L11
	mov	r0, r5
	bl	jv_copy
	mov	r1, r8
	bl	jv_array_get
	bl	jv_array_length
	cmp	r0, r7
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	mov	r0, r5
	bl	jv_copy
	mov	r1, r8
	bl	jv_array_get
	bl	jv_array_length
	mov	r9, r0
	mov	r0, r5
	bl	jv_copy
	mov	r1, r8
	bl	jv_array_get
	mov	r1, r7
	bl	jv_array_get
	mov	r4, r8
	mov	r6, r0
	b	.L3
.L4:
	mov	r0, r6
	bl	jv_copy
	mov	fp, r0
	mov	r0, r5
	bl	jv_copy
	mov	r1, r4
	bl	jv_array_get
	mov	r1, r7
	bl	jv_array_get
	mov	r1, r0
	mov	r0, fp
	bl	jv_equal
	cmp	r0, #0
	beq	.L8
	add	r4, r4, #1
.L3:
	mov	r0, r5
	bl	jv_copy
	bl	jv_array_length
	cmp	r0, r4
	bgt	.L4
.L8:
	ldr	r3, [sp]
	cmp	r9, r3
	beq	.L24
	mov	r0, r10
	bl	jv_copy
	mov	r9, r0
	mov	r0, r6
	bl	jv_copy
	mov	r1, r0
	mov	r0, r9
	bl	jv_get
	mov	r9, r0
	bl	jv_is_valid
	cmp	r0, #0
	beq	.L25
	mov	r0, r9
	bl	jv_get_kind
	ldr	r3, .L28
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L26
	mov	r0, r5
	bl	jv_copy
	mov	r1, r8
	mov	r2, r4
	bl	jv_array_slice
	ldr	r2, [sp]
	mov	r1, r0
	mov	r0, r9
	bl	delpaths_sorted
	mov	r8, r0
	bl	jv_is_valid
	cmp	r0, #0
	beq	.L27
	mov	r2, r8
	mov	r1, r6
	mov	r0, r10
	bl	jv_set
	mov	r10, r0
	mov	r0, r10
	bl	jv_is_valid
	cmp	r0, #0
	beq	.L11
.L9:
	mov	r8, r4
	b	.L2
.L24:
	mov	r1, r6
	ldr	r0, [sp, #4]
	bl	jv_array_append
	str	r0, [sp, #4]
	b	.L9
.L26:
	mov	r0, r6
	bl	jv_free
	mov	r0, r9
	bl	jv_free
	mov	r0, r10
	bl	jv_is_valid
	cmp	r0, #0
	bne	.L9
.L11:
	mov	r0, r5
	bl	jv_free
	mov	r0, r10
	bl	jv_is_valid
	cmp	r0, #0
	beq	.L16
	mov	r0, r10
	ldr	r1, [sp, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	jv_dels
.L16:
	ldr	r0, [sp, #4]
	bl	jv_free
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	mov	r0, r6
	bl	jv_free
	mov	r0, r10
	bl	jv_free
	mov	r10, r9
	b	.L11
.L27:
	mov	r0, r6
	bl	jv_free
	mov	r0, r10
	bl	jv_free
	mov	r10, r8
	b	.L11
.L29:
	.align	2
.L28:
	.word	JV_KIND_NULL
	.size	delpaths_sorted, .-delpaths_sorted
	.comm	JV_KIND_NULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
