	.file	"extr_demux_playlist.c_parse_dir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	parse_dir, @function
parse_dir:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rdx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 4[rdx]
	test	eax, eax
	je	.L4
	xor	eax, eax
	cmp	QWORD PTR 16[rdi], 0
	mov	r12, rdi
	je	.L27
.L1:
	mov	rcx, QWORD PTR -24[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L28
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	edi, DWORD PTR [rdx]
	call	bstr0@PLT
	mov	rdi, r12
	mov	esi, eax
	call	mp_file_get_path@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L4
	movsx	rax, DWORD PTR MAX_DIR_STACK[rip]
	mov	rcx, rsp
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	lea	rdx, 15[0+rax*4]
	mov	rax, rdx
	and	rdx, -4096
	sub	rcx, rdx
	and	rax, -16
	mov	rdx, rcx
	cmp	rsp, rdx
	je	.L6
.L29:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rdx
	jne	.L29
.L6:
	and	eax, 4095
	sub	rsp, rax
	test	rax, rax
	je	.L7
	or	QWORD PTR -8[rsp+rax], 0
.L7:
	mov	rdi, r12
	mov	rdx, rsp
	lea	r9, -36[rbp]
	xor	ecx, ecx
	lea	r8, -32[rbp]
	call	scan_dir@PLT
	mov	rdi, QWORD PTR -32[rbp]
	test	rdi, rdi
	je	.L8
	mov	ecx, DWORD PTR cmp_filename[rip]
	mov	esi, DWORD PTR -36[rbp]
	mov	edx, 8
	call	qsort@PLT
.L8:
	mov	eax, DWORD PTR -36[rbp]
	xor	ebx, ebx
	test	eax, eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR -32[rbp]
	mov	edi, DWORD PTR 4[r12]
	mov	rsi, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	call	playlist_add_file@PLT
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, ebx
	jg	.L9
.L10:
	test	eax, eax
	mov	DWORD PTR [r12], 0
	setle	al
	movzx	eax, al
	neg	eax
	jmp	.L1
.L4:
	mov	eax, -1
	jmp	.L1
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parse_dir, .-parse_dir
	.comm	cmp_filename,4,4
	.comm	MAX_DIR_STACK,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_demux_playlist.c_parse_dir.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_dir, %function
parse_dir:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r2, .L22
	ldr	r3, [r0, #8]
	ldr	r2, [r2]
	str	r2, [fp, #-16]
	mov	r2,#0
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L4
	ldr	r4, [r0, #12]
	mov	r5, r0
	cmp	r4, #0
	movne	r0, #0
	beq	.L20
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L20:
	ldr	r0, [r3]
	bl	bstr0
	mov	r1, r0
	mov	r0, r5
	bl	mp_file_get_path
	subs	r1, r0, #0
	beq	.L4
	ldr	r3, .L22+4
	sub	r0, fp, #20
	ldr	r3, [r3]
	sub	r2, fp, #24
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	str	r0, [sp, #4]
	str	r2, [sp]
	mov	r3, r4
	mov	r0, r5
	add	r2, sp, #8
	str	r4, [fp, #-24]
	str	r4, [fp, #-20]
	bl	scan_dir
	ldr	r0, [fp, #-24]
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L22+8
	mov	r2, #4
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	bl	qsort
.L5:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L7
.L6:
	ldr	r3, [fp, #-24]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, r4, lsl #2]
	bl	playlist_add_file
	ldr	r3, [fp, #-20]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L7:
	cmp	r3, #0
	movgt	r3, #0
	movle	r3, #1
	mov	r2, #0
	rsb	r0, r3, #0
	str	r2, [r5]
	b	.L1
.L4:
	mvn	r0, #0
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	MAX_DIR_STACK
	.word	cmp_filename
	.size	parse_dir, .-parse_dir
	.comm	cmp_filename,4,4
	.comm	MAX_DIR_STACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
