	.file	"extr_clean.c_remove_dirs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	remove_dirs, @function
remove_dirs:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	movdqu	xmm0, XMMWORD PTR STRING_LIST_INIT_DUP[rip]
	mov	QWORD PTR 16[rsp], rsi
	mov	DWORD PTR 44[rsp], edx
	mov	DWORD PTR 36[rsp], r8d
	mov	QWORD PTR 8[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR STRBUF_INIT[rip]
	mov	DWORD PTR 48[rsp], 1
	movaps	XMMWORD PTR 64[rsp], xmm0
	mov	QWORD PTR 56[rsp], rax
	mov	eax, DWORD PTR [rdi]
	mov	DWORD PTR [r9], 1
	mov	DWORD PTR 40[rsp], eax
	test	DWORD PTR REMOVE_DIR_KEEP_NESTED_GIT[rip], edx
	je	.L2
	call	is_nonbare_repository_dir@PLT
	test	rax, rax
	jne	.L45
.L2:
	mov	edi, DWORD PTR 4[rbx]
	call	opendir@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L46
	mov	esi, 47
	mov	rdi, rbx
	lea	r14, 56[rsp]
	call	strbuf_complete@PLT
	mov	eax, DWORD PTR [rbx]
	lea	r15, 64[rsp]
	mov	DWORD PTR 4[rsp], 0
	mov	DWORD PTR 32[rsp], eax
	lea	rax, 52[rsp]
	mov	QWORD PTR 24[rsp], rax
.L8:
	mov	rdi, rbp
	call	readdir@PLT
	mov	r13, rax
	test	rax, rax
	je	.L11
.L17:
	mov	edi, DWORD PTR 0[r13]
	call	is_dot_or_dotdot@PLT
	test	rax, rax
	jne	.L8
	mov	esi, DWORD PTR 32[rsp]
	mov	rdi, rbx
	call	strbuf_setlen@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbx
	call	strbuf_addstr@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	rsi, QWORD PTR 24[rsp]
	call	lstat@PLT
	test	rax, rax
	jne	.L47
	mov	edi, DWORD PTR 52[rsp]
	call	S_ISDIR@PLT
	test	rax, rax
	jne	.L48
	mov	edi, DWORD PTR 4[rbx]
	test	r12d, r12d
	jne	.L15
	call	unlink@PLT
	test	eax, eax
	jne	.L16
.L43:
	mov	edi, DWORD PTR 4[rbx]
.L15:
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdx, r14
	call	quote_path_relative@PLT
	mov	esi, DWORD PTR 60[rsp]
	mov	rdi, r15
	call	string_list_append@PLT
	mov	rdi, rbp
	call	readdir@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L17
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, rbp
	call	closedir@PLT
	mov	esi, DWORD PTR 40[rsp]
	mov	rdi, rbx
	call	strbuf_setlen@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR [rax]
	test	ecx, ecx
	jne	.L49
.L18:
	mov	edx, DWORD PTR 36[rsp]
	test	edx, edx
	jne	.L6
	mov	eax, DWORD PTR 64[rsp]
	test	eax, eax
	jle	.L6
	xor	ebx, ebx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L50:
	mov	edi, DWORD PTR msg_would_remove[rip]
	call	_@PLT
	mov	rdi, rax
.L22:
	mov	esi, ebp
	add	rbx, 1
	call	printf@PLT
	cmp	DWORD PTR 64[rsp], ebx
	jle	.L6
.L23:
	mov	rax, QWORD PTR 72[rsp]
	mov	ebp, DWORD PTR [rax+rbx*4]
	test	r12d, r12d
	jne	.L50
	mov	edi, DWORD PTR msg_remove[rip]
	call	_@PLT
	mov	rdi, rax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L49:
	test	r12d, r12d
	je	.L19
.L20:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], 1
.L6:
	mov	rdi, r14
	call	strbuf_release@PLT
	xor	esi, esi
	mov	rdi, r15
	call	string_list_clear@PLT
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L51
	mov	eax, DWORD PTR 4[rsp]
	add	rsp, 104
	.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
	.p2align 4,,10
	.p2align 3
.L48:
	.cfi_restore_state
	mov	rsi, QWORD PTR 16[rsp]
	mov	r8d, DWORD PTR 36[rsp]
	mov	ecx, r12d
	mov	rdi, rbx
	mov	edx, DWORD PTR 44[rsp]
	lea	r9, 48[rsp]
	call	remove_dirs
	mov	esi, DWORD PTR 48[rsp]
	test	eax, eax
	mov	eax, 1
	cmove	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], eax
	test	esi, esi
	jne	.L43
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L46:
	test	r12d, r12d
	je	.L52
	mov	DWORD PTR 4[rsp], 0
	lea	r14, 56[rsp]
	lea	r15, 64[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L45:
	mov	edi, DWORD PTR 36[rsp]
	lea	r14, 56[rsp]
	test	edi, edi
	je	.L53
.L3:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 4[rsp], 0
	lea	r15, 64[rsp]
	mov	DWORD PTR [rax], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR 4[rbx]
	call	rmdir@PLT
	test	eax, eax
	je	.L20
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 4[rbx]
	mov	rdx, r14
	mov	ebp, DWORD PTR errno[rip]
	call	quote_path_relative@PLT
	mov	edi, DWORD PTR msg_warn_remove_failed[rip]
	mov	DWORD PTR errno[rip], ebp
	mov	ebp, DWORD PTR 60[rsp]
	call	_@PLT
	mov	rdi, rax
	mov	esi, ebp
	call	warning_errno@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 4[rsp], 1
	mov	DWORD PTR [rax], 0
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L52:
	mov	edi, DWORD PTR 4[rbx]
	lea	r14, 56[rsp]
	lea	r15, 64[rsp]
	call	rmdir@PLT
	mov	DWORD PTR 4[rsp], eax
	test	eax, eax
	je	.L6
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 4[rbx]
	mov	rdx, r14
	mov	ebp, DWORD PTR errno[rip]
	call	quote_path_relative@PLT
	mov	edi, DWORD PTR msg_warn_remove_failed[rip]
	mov	DWORD PTR errno[rip], ebp
	mov	ebp, DWORD PTR 60[rsp]
	call	_@PLT
	mov	rdi, rax
	mov	esi, ebp
	call	warning_errno@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L47:
	mov	edi, DWORD PTR msg_warn_lstat_failed[rip]
	mov	r13d, DWORD PTR 4[rbx]
	call	_@PLT
	mov	esi, r13d
	mov	rdi, rax
	call	warning_errno@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 4[rsp], 1
	mov	DWORD PTR [rax], 0
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 4[rbx]
	mov	rdx, r14
	mov	r13d, DWORD PTR errno[rip]
	call	quote_path_relative@PLT
	mov	edi, DWORD PTR msg_warn_remove_failed[rip]
	mov	DWORD PTR errno[rip], r13d
	mov	r13d, DWORD PTR 60[rsp]
	call	_@PLT
	mov	rdi, rax
	mov	esi, r13d
	call	warning_errno@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 4[rsp], 1
	mov	DWORD PTR [rax], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L53:
	mov	edi, DWORD PTR 4[rbx]
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdx, r14
	call	quote_path_relative@PLT
	mov	ebp, DWORD PTR 60[rsp]
	test	r12d, r12d
	jne	.L54
	mov	edi, DWORD PTR msg_skip_git_dir[rip]
	call	_@PLT
	mov	rdi, rax
.L5:
	mov	esi, ebp
	call	printf@PLT
	jmp	.L3
.L54:
	mov	edi, DWORD PTR msg_would_skip_git_dir[rip]
	call	_@PLT
	mov	rdi, rax
	jmp	.L5
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	remove_dirs, .-remove_dirs
	.comm	msg_would_skip_git_dir,4,4
	.comm	msg_would_remove,4,4
	.comm	msg_warn_remove_failed,4,4
	.comm	msg_warn_lstat_failed,4,4
	.comm	msg_skip_git_dir,4,4
	.comm	msg_remove,4,4
	.comm	errno,4,4
	.comm	STRING_LIST_INIT_DUP,16,16
	.comm	STRBUF_INIT,8,8
	.comm	REMOVE_DIR_KEEP_NESTED_GIT,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_clean.c_remove_dirs.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_dirs, %function
remove_dirs:
	@ args = 8, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	ip, #1
	mov	r7, r2
	mov	lr, r1
	sub	sp, sp, #68
	ldr	r0, .L53
	str	r2, [sp, #28]
	ldr	r1, .L53+4
	ldr	r2, .L53+8
	ldr	r6, [sp, #108]
	add	r10, sp, #44
	ldr	r0, [r0]
	str	r0, [sp, #60]
	mov	r0,#0
	ldm	r1, {r0, r1}
	ldr	r4, .L53+12
	stm	r10, {r0, r1}
	ldm	r2, {r0, r1}
	ldr	r2, [r5]
	str	ip, [r6]
	str	r2, [sp, #24]
	ldr	r2, [r4]
	add	fp, sp, #52
	tst	r7, r2
	mov	r9, r3
	stm	fp, {r0, r1}
	ldr	r7, [sp, #104]
	str	lr, [sp, #16]
	str	ip, [sp, #36]
	beq	.L2
	mov	r0, r5
	bl	is_nonbare_repository_dir
	cmp	r0, #0
	bne	.L46
.L2:
	ldr	r0, [r5, #4]
	bl	opendir
	subs	r8, r0, #0
	beq	.L47
	mov	r1, #47
	mov	r0, r5
	bl	strbuf_complete
	mov	r3, #0
	str	r3, [sp, #12]
	ldr	r3, [r5]
	str	r3, [sp, #20]
.L8:
	mov	r0, r8
	bl	readdir
	subs	r4, r0, #0
	beq	.L11
.L17:
	ldr	r0, [r4]
	bl	is_dot_or_dotdot
	subs	r3, r0, #0
	str	r3, [sp, #8]
	bne	.L8
	ldr	r1, [sp, #20]
	mov	r0, r5
	bl	strbuf_setlen
	ldr	r1, [r4]
	mov	r0, r5
	bl	strbuf_addstr
	ldr	r0, [r5, #4]
	add	r1, sp, #40
	bl	lstat
	cmp	r0, #0
	bne	.L48
	ldr	r0, [sp, #40]
	bl	S_ISDIR
	cmp	r0, #0
	bne	.L49
	cmp	r9, #0
	ldr	r0, [r5, #4]
	bne	.L15
	bl	unlink
	cmp	r0, #0
	bne	.L16
	ldr	r0, [r5, #4]
.L15:
	mov	r2, r10
	ldr	r1, [sp, #16]
	bl	quote_path_relative
	ldr	r1, [sp, #48]
	mov	r0, fp
	bl	string_list_append
	mov	r0, r8
	bl	readdir
	subs	r4, r0, #0
	bne	.L17
.L11:
	mov	r0, r8
	bl	closedir
	mov	r0, r5
	ldr	r1, [sp, #24]
	bl	strbuf_setlen
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L50
.L18:
	cmp	r7, #0
	bne	.L6
	ldr	r3, [sp, #52]
	cmp	r3, #0
	ble	.L6
	ldr	r5, .L53+16
	ldr	r4, .L53+20
.L23:
	cmp	r9, #0
	ldrne	r0, [r4]
	ldreq	r0, [r5]
	bl	_
	ldr	r3, [sp, #56]
	ldr	r1, [r3, r7, lsl #2]
	bl	printf
	ldr	r3, [sp, #52]
	add	r7, r7, #1
	cmp	r3, r7
	bgt	.L23
.L6:
	mov	r0, r10
	bl	strbuf_release
	mov	r0, fp
	mov	r1, #0
	bl	string_list_clear
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L51
	ldr	r0, [sp, #12]
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L50:
	cmp	r9, #0
	beq	.L19
.L20:
	mov	r3, #1
	str	r3, [r6]
	b	.L6
.L49:
	add	r3, sp, #36
	ldr	r2, [sp, #28]
	str	r3, [sp, #4]
	mov	r0, r5
	mov	r3, r9
	ldr	r1, [sp, #16]
	str	r7, [sp]
	bl	remove_dirs
	cmp	r0, #0
	ldr	r2, [sp, #12]
	movne	r2, #1
	ldr	r3, [sp, #36]
	str	r2, [sp, #12]
	cmp	r3, #0
	streq	r3, [r6]
	beq	.L8
	ldr	r1, [sp, #16]
	mov	r2, r10
	ldr	r0, [r5, #4]
	bl	quote_path_relative
	mov	r0, fp
	ldr	r1, [sp, #48]
	bl	string_list_append
	b	.L8
.L47:
	cmp	r9, #0
	strne	r8, [sp, #12]
	bne	.L6
	ldr	r0, [r5, #4]
	bl	rmdir
	subs	r3, r0, #0
	str	r3, [sp, #12]
	beq	.L6
	ldr	r4, .L53+24
	mov	r2, r10
	ldr	r1, [sp, #16]
	ldr	r0, [r5, #4]
	ldr	r5, [r4]
	bl	quote_path_relative
	ldr	r3, .L53+28
	str	r5, [r4]
	ldr	r0, [r3]
	bl	_
	ldr	r1, [sp, #48]
	bl	warning_errno
	str	r9, [r6]
	b	.L6
.L46:
	cmp	r7, #0
	beq	.L52
.L3:
	mov	r0, #0
	str	r0, [r6]
	str	r0, [sp, #12]
	b	.L6
.L19:
	ldr	r0, [r5, #4]
	bl	rmdir
	cmp	r0, #0
	beq	.L20
	mov	r3, #1
	ldr	r4, .L53+24
	mov	r2, r10
	ldr	r1, [sp, #16]
	ldr	r0, [r5, #4]
	str	r3, [sp, #12]
	ldr	r5, [r4]
	bl	quote_path_relative
	ldr	r3, .L53+28
	str	r5, [r4]
	ldr	r0, [r3]
	bl	_
	ldr	r1, [sp, #48]
	bl	warning_errno
	str	r9, [r6]
	b	.L18
.L48:
	mov	r2, #1
	ldr	r3, .L53+32
	str	r2, [sp, #12]
	ldr	r0, [r3]
	bl	_
	ldr	r1, [r5, #4]
	bl	warning_errno
	ldr	r3, [sp, #8]
	str	r3, [r6]
	b	.L11
.L16:
	mov	r3, #1
	str	r3, [sp, #12]
	ldr	r3, .L53+24
	ldr	r1, [sp, #16]
	mov	r2, r10
	ldr	r0, [r5, #4]
	ldr	r4, [r3]
	bl	quote_path_relative
	ldr	r2, .L53+28
	ldr	r3, .L53+24
	ldr	r0, [r2]
	str	r4, [r3]
	bl	_
	ldr	r1, [sp, #48]
	bl	warning_errno
	str	r9, [r6]
	b	.L8
.L52:
	ldr	r1, [sp, #16]
	mov	r2, r10
	ldr	r0, [r5, #4]
	bl	quote_path_relative
	cmp	r9, #0
	ldrne	r3, .L53+36
	ldreq	r3, .L53+40
	ldr	r0, [r3]
	bl	_
	ldr	r1, [sp, #48]
	bl	printf
	b	.L3
.L51:
	bl	__stack_chk_fail
.L54:
	.align	2
.L53:
	.word	.LC0
	.word	STRBUF_INIT
	.word	STRING_LIST_INIT_DUP
	.word	REMOVE_DIR_KEEP_NESTED_GIT
	.word	msg_remove
	.word	msg_would_remove
	.word	errno
	.word	msg_warn_remove_failed
	.word	msg_warn_lstat_failed
	.word	msg_would_skip_git_dir
	.word	msg_skip_git_dir
	.size	remove_dirs, .-remove_dirs
	.comm	msg_would_skip_git_dir,4,4
	.comm	msg_would_remove,4,4
	.comm	msg_warn_remove_failed,4,4
	.comm	msg_warn_lstat_failed,4,4
	.comm	msg_skip_git_dir,4,4
	.comm	msg_remove,4,4
	.comm	errno,4,4
	.comm	STRING_LIST_INIT_DUP,8,4
	.comm	STRBUF_INIT,8,4
	.comm	REMOVE_DIR_KEEP_NESTED_GIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
