	.file	"extr_filesys-commit-changes.c_rec_scan.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"rec_scan (old_dir = %s, new_dir = %s)\n"
	.align 8
.LC1:
	.string	"l1 = %d, l2 = %d, nx = %d, ny = %d, px = %p, py = %p\n"
	.align 8
.LC2:
	.string	"x->filename = %s, y->filename = %s\n"
	.align 8
.LC3:
	.string	"change_attrs (%s/%s) returns error code %d.\n"
	.align 8
.LC4:
	.string	"rec_scan (%d, %d) succesfully ended.\n"
	.text
	.p2align 4
	.type	rec_scan, @function
rec_scan:
.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
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	mov	edi, 3
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR new_dir[rip]
	mov	edx, DWORD PTR old_dir[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	vkprintf@PLT
	lea	rsi, 24[rsp]
	mov	ecx, 1
	mov	DWORD PTR [r14], 0
	mov	rdi, QWORD PTR old_dir[rip]
	mov	edx, 1
	call	getdir@PLT
	lea	rsi, 32[rsp]
	mov	ecx, 1
	mov	rdi, QWORD PTR new_dir[rip]
	mov	edx, 1
	mov	ebx, eax
	call	getdir@PLT
	push	QWORD PTR 32[rsp]
	.cfi_def_cfa_offset 120
	mov	edx, r12d
	mov	r8d, ebx
	push	QWORD PTR 32[rsp]
	.cfi_def_cfa_offset 128
	mov	r9d, eax
	mov	ecx, r13d
	xor	eax, eax
	lea	rsi, .LC1[rip]
	mov	edi, 3
	call	vkprintf@PLT
	cmp	DWORD PTR old_dir_length[rip], r12d
	pop	rax
	.cfi_def_cfa_offset 120
	pop	rdx
	.cfi_def_cfa_offset 112
	je	.L57
.L2:
	mov	rbx, QWORD PTR 32[rsp]
.L4:
	mov	rbp, QWORD PTR 24[rsp]
	test	rbp, rbp
	setne	dl
	test	rbx, rbx
	setne	cl
	je	.L29
	test	dl, dl
	je	.L5
	lea	r15, 20[rsp]
.L18:
	mov	ecx, DWORD PTR [rbx]
	mov	edx, DWORD PTR 0[rbp]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	mov	edi, 4
	call	vkprintf@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR 0[rbp]
	call	strcmp@PLT
	test	eax, eax
	js	.L58
	je	.L8
	mov	DWORD PTR [r14], 1
	mov	rsi, rbx
	xor	ecx, ecx
	xor	edx, edx
	mov	edi, r13d
	call	add_file@PLT
	mov	rbx, QWORD PTR 8[rbx]
.L7:
	test	rbp, rbp
	setne	dl
	test	rbx, rbx
	setne	al
	mov	ecx, eax
	test	dl, dl
	je	.L5
	test	al, al
	jne	.L18
.L29:
	test	dl, dl
	je	.L55
.L26:
	mov	DWORD PTR [r14], 1
	test	rbp, rbp
	je	.L55
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rsi, rbp
	mov	edi, r12d
	call	remove_file@PLT
	mov	rbp, QWORD PTR 8[rbp]
	test	rbp, rbp
	jne	.L20
	test	rbx, rbx
	je	.L59
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rsi, rbx
	xor	ecx, ecx
	xor	edx, edx
	mov	edi, r13d
	call	add_file@PLT
	mov	rbx, QWORD PTR 8[rbx]
.L55:
	test	rbx, rbx
	jne	.L21
.L59:
	mov	rax, QWORD PTR old_dir[rip]
	movsx	rdx, r12d
	mov	rdi, QWORD PTR 24[rsp]
	mov	QWORD PTR [rax+rdx*8], 0
	mov	rax, QWORD PTR new_dir[rip]
	movsx	rdx, r13d
	mov	QWORD PTR [rax+rdx*8], 0
	call	free_filelist@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	free_filelist@PLT
	xor	eax, eax
	mov	ecx, r13d
	mov	edx, r12d
	lea	rsi, .LC4[rip]
	mov	edi, 3
	call	vkprintf@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L60
	add	rsp, 56
	.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
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	call	S_ISDIR@PLT
	test	rax, rax
	jne	.L61
.L9:
	mov	edi, DWORD PTR 16[rbx]
	call	S_ISDIR@PLT
	test	rax, rax
	je	.L12
	mov	edi, DWORD PTR 16[rbx]
	call	S_ISLNK@PLT
	test	eax, eax
	jne	.L12
.L11:
	mov	DWORD PTR [r14], 1
	mov	rsi, rbp
	mov	edi, r12d
	call	remove_file@PLT
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, rbx
	mov	edi, r13d
	call	add_file@PLT
.L17:
	mov	rbp, QWORD PTR 8[rbp]
	mov	rbx, QWORD PTR 8[rbx]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, 16[rbx]
	lea	rdi, 16[rbp]
	call	get_changed_attrs@PLT
	test	eax, eax
	je	.L17
	mov	DWORD PTR [r14], 1
	mov	rdx, rbp
	mov	rsi, rbx
	mov	ecx, eax
	mov	edi, r13d
	call	add_file@PLT
	mov	rbp, QWORD PTR 8[rbp]
	mov	rbx, QWORD PTR 8[rbx]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L58:
	mov	DWORD PTR [r14], 1
	mov	rsi, rbp
	mov	edi, r12d
	call	remove_file@PLT
	mov	rbp, QWORD PTR 8[rbp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	test	cl, cl
	jne	.L26
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L61:
	mov	edi, DWORD PTR 16[rbp]
	call	S_ISLNK@PLT
	test	eax, eax
	jne	.L9
	mov	edi, DWORD PTR 16[rbx]
	call	S_ISDIR@PLT
	test	rax, rax
	je	.L11
	mov	edi, DWORD PTR 16[rbx]
	call	S_ISLNK@PLT
	test	eax, eax
	jne	.L11
	mov	edx, DWORD PTR [rbx]
	mov	rdi, QWORD PTR new_dir[rip]
	mov	esi, r13d
	call	append_path@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, QWORD PTR old_dir[rip]
	mov	esi, r12d
	mov	DWORD PTR 12[rsp], eax
	call	append_path@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	rdx, r15
	mov	edi, eax
	mov	esi, r8d
	call	rec_scan
	lea	rsi, 16[rbx]
	lea	rdi, 16[rbp]
	call	get_changed_attrs@PLT
	mov	edx, eax
	and	eax, -9
	or	eax, DWORD PTR 20[rsp]
	je	.L17
	mov	rsi, rbx
	mov	edi, r13d
	call	change_attrs@PLT
	test	eax, eax
	jns	.L17
	mov	edx, DWORD PTR [rbx]
	mov	rsi, QWORD PTR new_dir[rip]
	mov	ecx, eax
	lea	rdi, .LC3[rip]
	call	kprintf@PLT
	add	DWORD PTR faults[rip], 1
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L57:
	mov	rax, QWORD PTR scan_ignore_list[rip]
	xor	ebp, ebp
	mov	rsi, QWORD PTR [rax]
	test	rsi, rsi
	je	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR 24[rsp]
	call	remove_file_from_list@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR scan_ignore_list[rip]
	mov	rsi, QWORD PTR [rax+rbp]
	add	rbp, 8
	call	remove_file_from_list@PLT
	mov	QWORD PTR 32[rsp], rax
	mov	rbx, rax
	mov	rax, QWORD PTR scan_ignore_list[rip]
	mov	rsi, QWORD PTR [rax+rbp]
	test	rsi, rsi
	jne	.L3
	jmp	.L4
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rec_scan, .-rec_scan
	.comm	scan_ignore_list,8,8
	.comm	old_dir_length,4,4
	.comm	old_dir,8,8
	.comm	new_dir,8,8
	.comm	faults,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_filesys-commit-changes.c_rec_scan.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rec_scan (old_dir = %s, new_dir = %s)\012\000"
	.align	2
.LC1:
	.ascii	"l1 = %d, l2 = %d, nx = %d, ny = %d, px = %p, py = %"
	.ascii	"p\012\000"
	.align	2
.LC2:
	.ascii	"x->filename = %s, y->filename = %s\012\000"
	.align	2
.LC3:
	.ascii	"change_attrs (%s/%s) returns error code %d.\012\000"
	.align	2
.LC4:
	.ascii	"rec_scan (%d, %d) succesfully ended.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rec_scan, %function
rec_scan:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	fp, .L56
	ldr	r10, .L56+4
	ldr	ip, .L56+8
	sub	sp, sp, #52
	mov	r6, r0
	mov	r7, r1
	mov	r8, r2
	ldr	r3, [fp]
	ldr	r2, [r10]
	ldr	r1, .L56+12
	mov	r0, #3
	ldr	ip, [ip]
	str	ip, [sp, #44]
	mov	ip,#0
	mov	r5, #0
	bl	vkprintf
	mov	r3, #1
	add	r1, sp, #32
	mov	r2, r3
	ldr	r0, [r10]
	str	r5, [r8]
	bl	getdir
	mov	r3, #1
	mov	r4, r0
	mov	r2, r3
	add	r1, sp, #36
	ldr	r0, [fp]
	bl	getdir
	ldr	r1, [sp, #32]
	ldr	ip, [sp, #36]
	mov	r3, r7
	str	r0, [sp, #4]
	str	r1, [sp, #8]
	mov	r2, r6
	mov	r0, #3
	ldr	r1, .L56+16
	str	r4, [sp]
	str	ip, [sp, #12]
	bl	vkprintf
	ldr	r3, .L56+20
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L50
.L2:
	ldr	r4, [sp, #36]
.L4:
	ldr	r5, [sp, #32]
	subs	r2, r4, #0
	movne	r2, #1
	subs	r3, r5, #0
	movne	r3, #1
	tst	r2, r3
	beq	.L5
	ldr	r9, .L56+24
.L18:
	mov	r1, r9
	ldr	r3, [r4]
	ldr	r2, [r5]
	mov	r0, #4
	bl	vkprintf
	ldr	r1, [r4]
	ldr	r0, [r5]
	bl	strcmp
	cmp	r0, #0
	blt	.L51
	beq	.L8
	mov	r2, #1
	mov	r3, #0
	mov	r1, r4
	str	r2, [r8]
	mov	r0, r7
	mov	r2, r3
	bl	add_file
	ldr	r4, [r4, #4]
.L7:
	subs	r3, r5, #0
	movne	r3, #1
	subs	r2, r4, #0
	movne	r2, #1
	tst	r3, r2
	bne	.L18
.L5:
	orrs	r3, r2, r3
	beq	.L48
	mov	r3, #1
	cmp	r5, #0
	str	r3, [r8]
	beq	.L48
.L19:
	mov	r1, r5
	mov	r0, r6
	bl	remove_file
	ldr	r5, [r5, #4]
	cmp	r5, #0
	bne	.L19
	cmp	r4, #0
	beq	.L52
.L20:
	mov	r3, #0
	mov	r1, r4
	mov	r2, r3
	mov	r0, r7
	bl	add_file
	ldr	r4, [r4, #4]
.L48:
	cmp	r4, #0
	bne	.L20
.L52:
	mov	r3, #0
	ldr	r1, [r10]
	ldr	r2, [fp]
	ldr	r0, [sp, #32]
	str	r3, [r1, r6, lsl #2]
	str	r3, [r2, r7, lsl #2]
	bl	free_filelist
	ldr	r0, [sp, #36]
	bl	free_filelist
	mov	r3, r7
	mov	r2, r6
	mov	r0, #3
	ldr	r1, .L56+28
	bl	vkprintf
	ldr	r3, .L56+8
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L53
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r0, [r5, #8]
	bl	S_ISDIR
	cmp	r0, #0
	bne	.L54
.L9:
	ldr	r0, [r4, #8]
	bl	S_ISDIR
	cmp	r0, #0
	beq	.L12
	ldr	r0, [r4, #8]
	bl	S_ISLNK
	subs	r3, r0, #0
	bne	.L12
	mov	r2, #1
	mov	r1, r5
	str	r2, [r8]
	mov	r0, r6
	str	r3, [sp, #20]
	bl	remove_file
	ldr	r3, [sp, #20]
	mov	r1, r4
	mov	r2, r3
	mov	r0, r7
	bl	add_file
.L17:
	ldr	r5, [r5, #4]
	ldr	r4, [r4, #4]
	b	.L7
.L12:
	add	r1, r4, #8
	add	r0, r5, #8
	bl	get_changed_attrs
	subs	r3, r0, #0
	beq	.L17
	mov	r2, #1
	mov	r1, r4
	str	r2, [r8]
	mov	r0, r7
	mov	r2, r5
	bl	add_file
	ldr	r5, [r5, #4]
	ldr	r4, [r4, #4]
	b	.L7
.L51:
	mov	r3, #1
	mov	r1, r5
	mov	r0, r6
	str	r3, [r8]
	bl	remove_file
	ldr	r5, [r5, #4]
	b	.L7
.L54:
	ldr	r0, [r5, #8]
	bl	S_ISLNK
	cmp	r0, #0
	bne	.L9
	ldr	r0, [r4, #8]
	bl	S_ISDIR
	cmp	r0, #0
	bne	.L55
.L13:
	mov	r3, #1
	mov	r1, r5
	str	r3, [r8]
	mov	r0, r6
	bl	remove_file
	mov	r3, #0
	mov	r1, r4
	mov	r2, r3
	mov	r0, r7
	bl	add_file
	ldr	r5, [r5, #4]
	ldr	r4, [r4, #4]
	b	.L7
.L50:
	ldr	r9, .L56+32
	ldr	r3, [r9]
	ldr	r1, [r3]
	cmp	r1, r5
	beq	.L2
.L3:
	ldr	r0, [sp, #32]
	bl	remove_file_from_list
	mov	r3, r0
	ldr	r2, [r9]
	ldr	r0, [sp, #36]
	ldr	r1, [r2, r5]
	str	r3, [sp, #32]
	bl	remove_file_from_list
	ldr	r3, [r9]
	add	r5, r5, #4
	ldr	r1, [r3, r5]
	str	r0, [sp, #36]
	cmp	r1, #0
	bne	.L3
	mov	r4, r0
	b	.L4
.L53:
	bl	__stack_chk_fail
.L55:
	ldr	r0, [r4, #8]
	bl	S_ISLNK
	cmp	r0, #0
	bne	.L13
	mov	r3, r5
	ldr	r2, [r3], #8
	mov	r1, r6
	ldr	r0, [r10]
	str	r3, [sp, #24]
	bl	append_path
	mov	r1, r4
	mov	r3, r0
	ldr	r2, [r1], #8
	ldr	r0, [fp]
	str	r1, [sp, #20]
	mov	r1, r7
	str	r3, [sp, #28]
	bl	append_path
	ldr	r3, [sp, #28]
	mov	r1, r0
	add	r2, sp, #40
	mov	r0, r3
	bl	rec_scan
	ldr	r1, [sp, #20]
	ldr	r0, [sp, #24]
	bl	get_changed_attrs
	ldr	r3, [sp, #40]
	bic	r1, r0, #8
	orrs	r3, r1, r3
	mov	r2, r0
	beq	.L17
	mov	r1, r4
	mov	r0, r7
	bl	change_attrs
	subs	r3, r0, #0
	bge	.L17
	ldr	r2, [r4]
	ldr	r1, [fp]
	ldr	r0, .L56+36
	bl	kprintf
	ldr	r2, .L56+40
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	b	.L17
.L57:
	.align	2
.L56:
	.word	new_dir
	.word	old_dir
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	old_dir_length
	.word	.LC2
	.word	.LC4
	.word	scan_ignore_list
	.word	.LC3
	.word	faults
	.size	rec_scan, .-rec_scan
	.comm	scan_ignore_list,4,4
	.comm	old_dir_length,4,4
	.comm	old_dir,4,4
	.comm	new_dir,4,4
	.comm	faults,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
