	.file	"extr_item.c_vlc_readdir_helper_finish.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vlc_readdir_helper_finish
	.type	vlc_readdir_helper_finish, @function
vlc_readdir_helper_finish:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	test	esi, esi
	jne	.L22
.L2:
	mov	rdi, QWORD PTR 32[rbx]
	call	free@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 24[rbx]
	test	rdi, rdi
	je	.L6
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r12, QWORD PTR [rsi+rbp*8]
	test	r12, r12
	je	.L4
	mov	edi, DWORD PTR 8[r12]
	call	input_item_slave_Delete@PLT
	mov	rdi, QWORD PTR [r12]
	call	free@PLT
	mov	rdi, r12
	call	free@PLT
	mov	rsi, QWORD PTR 24[rbx]
	mov	rdi, QWORD PTR [rbx]
.L4:
	add	rbp, 1
	cmp	rdi, rbp
	ja	.L5
.L6:
	call	TAB_CLEAN@PLT
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	je	.L7
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 16[rbx]
	mov	rdi, QWORD PTR [rax+rbp*8]
	add	rbp, 1
	call	free@PLT
	mov	rdi, QWORD PTR 8[rbx]
	cmp	rdi, rbp
	ja	.L8
.L7:
	mov	rsi, QWORD PTR 16[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	TAB_CLEAN@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	edi, DWORD PTR 40[rdi]
	call	rdh_sort@PLT
	mov	esi, DWORD PTR 40[rbx]
	mov	rdi, rbx
	call	rdh_attach_slaves@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	vlc_readdir_helper_finish, .-vlc_readdir_helper_finish
	.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_item.c_vlc_readdir_helper_finish.c"
	.text
	.align	2
	.global	vlc_readdir_helper_finish
	.syntax unified
	.arm
	.fpu softvfp
	.type	vlc_readdir_helper_finish, %function
vlc_readdir_helper_finish:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bne	.L22
.L2:
	ldr	r0, [r4, #16]
	bl	free
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L3
	mov	r5, #0
	ldr	r1, [r4, #12]
.L5:
	ldr	r6, [r1, r5, lsl #2]
	add	r5, r5, #1
	cmp	r6, #0
	beq	.L4
	ldr	r0, [r6, #4]
	bl	input_item_slave_Delete
	ldr	r0, [r6]
	bl	free
	mov	r0, r6
	bl	free
	ldr	r1, [r4, #12]
	ldr	r0, [r4]
.L4:
	cmp	r0, r5
	bhi	.L5
.L6:
	bl	TAB_CLEAN
	ldr	r0, [r4, #4]
	cmp	r0, #0
	beq	.L7
	mov	r5, #0
.L8:
	ldr	r3, [r4, #8]
	ldr	r0, [r3, r5, lsl #2]
	bl	free
	ldr	r0, [r4, #4]
	add	r5, r5, #1
	cmp	r0, r5
	bhi	.L8
.L7:
	ldr	r1, [r4, #8]
	pop	{r4, r5, r6, lr}
	b	TAB_CLEAN
.L22:
	ldr	r0, [r0, #20]
	bl	rdh_sort
	mov	r0, r4
	ldr	r1, [r4, #20]
	bl	rdh_attach_slaves
	b	.L2
.L3:
	ldr	r1, [r4, #12]
	b	.L6
	.size	vlc_readdir_helper_finish, .-vlc_readdir_helper_finish
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
