	.file	"extr_repack.c_remove_temporary_files.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	remove_temporary_files, @function
remove_temporary_files:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	movdqu	xmm0, XMMWORD PTR STRBUF_INIT[rip]
	mov	edi, DWORD PTR packdir[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR [rsp], xmm0
	call	opendir@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR packdir[rip]
	mov	r12, rax
	mov	r13, rsp
	call	strlen@PLT
	mov	esi, DWORD PTR packtmp[rip]
	mov	rdi, r13
	lea	ebp, 1[rax]
	call	strbuf_addstr@PLT
	mov	r14, QWORD PTR [rsp]
	movsx	rbp, ebp
	sub	r14, rbp
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r12
	call	readdir@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L11
.L6:
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	rdx, r14
	add	rsi, rbp
	call	strncmp@PLT
	test	rax, rax
	jne	.L5
	mov	rsi, rbp
	mov	rdi, r13
	call	strbuf_setlen@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r13
	call	strbuf_addstr@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	unlink@PLT
	mov	rdi, r12
	call	readdir@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L6
.L11:
	mov	rdi, r12
	call	closedir@PLT
	mov	rdi, r13
	call	strbuf_release@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	remove_temporary_files, .-remove_temporary_files
	.comm	packtmp,4,4
	.comm	packdir,4,4
	.comm	STRBUF_INIT,16,16
	.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_repack.c_remove_temporary_files.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_temporary_files, %function
remove_temporary_files:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L13
	sub	sp, sp, #16
	add	r7, sp, #4
	ldm	r3, {r0, r1}
	ldr	r4, .L13+4
	stm	r7, {r0, r1}
	ldr	r3, .L13+8
	ldr	r0, [r4]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	opendir
	subs	r6, r0, #0
	beq	.L1
	ldr	r0, [r4]
	bl	strlen
	mov	r5, r0
	ldr	r3, .L13+12
	mov	r0, r7
	ldr	r1, [r3]
	bl	strbuf_addstr
	ldr	r8, [sp, #4]
	add	r5, r5, #1
	sub	r8, r8, r5
.L5:
	mov	r0, r6
	bl	readdir
	subs	r4, r0, #0
	beq	.L11
.L6:
	ldr	r1, [sp, #8]
	mov	r2, r8
	ldr	r0, [r4]
	add	r1, r5, r1
	bl	strncmp
	cmp	r0, #0
	bne	.L5
	mov	r1, r5
	mov	r0, r7
	bl	strbuf_setlen
	ldr	r1, [r4]
	mov	r0, r7
	bl	strbuf_addstr
	ldr	r0, [sp, #8]
	bl	unlink
	mov	r0, r6
	bl	readdir
	subs	r4, r0, #0
	bne	.L6
.L11:
	mov	r0, r6
	bl	closedir
	mov	r0, r7
	bl	strbuf_release
.L1:
	ldr	r3, .L13+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	STRBUF_INIT
	.word	packdir
	.word	.LC0
	.word	packtmp
	.size	remove_temporary_files, .-remove_temporary_files
	.comm	packtmp,4,4
	.comm	packdir,4,4
	.comm	STRBUF_INIT,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
