	.file	"605160.c"
	.intel_syntax noprefix
	.text
	.globl	semaphore
	.bss
	.align 8
	.type	semaphore, @object
	.size	semaphore, 8
semaphore:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"\320\237\321\200\320\276\321\206\320\265\321\201\321\201: %d. \320\244\320\260\320\271\320\273 1: %s (%ld b). \320\244\320\260\320\271\320\273 2: %s (%ld b). \320\244\320\260\320\271\320\273\321\213 \320\275\320\265 \321\200\320\260\320\262\320\275\321\213.\n"
.LC1:
	.string	"r"
	.align 8
.LC2:
	.string	"\320\236\321\210\320\270\320\261\320\272\320\260 \321\207\321\202\320\265\320\275\320\270\321\217 \321\204\320\260\320\271\320\273\320\260 %s\n"
	.align 8
.LC3:
	.string	"\320\237\321\200\320\276\321\206\320\265\321\201\321\201: %d. \320\244\320\260\320\271\320\273 1: %s (%ld b). \320\244\320\260\320\271\320\273 2: %s (%ld b). \320\244\320\220\320\231\320\233\320\253 \320\240\320\220\320\222\320\235\320\253.\n"
	.align 8
.LC4:
	.string	"\320\236\321\210\320\270\320\261\320\272\320\260 \321\201\320\276\320\267\320\264\320\260\320\275\320\270\321\217 \320\277\321\200\320\276\321\206\320\265\321\201\321\201\320\260"
	.text
	.globl	compareFiles
	.type	compareFiles, @function
compareFiles:
.LFB6:
	.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, 352
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -360[rbp], rdi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -340[rbp], eax
	cmp	DWORD PTR -340[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR semaphore[rip]
	mov	rdi, rax
	call	sem_wait@PLT
	lea	rdx, -320[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	lea	rdx, -176[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rdx, QWORD PTR -272[rbp]
	mov	rax, QWORD PTR -128[rbp]
	cmp	rdx, rax
	je	.L3
	mov	r12, QWORD PTR -128[rbp]
	mov	rbx, QWORD PTR -272[rbp]
	call	getpid@PLT
	mov	esi, eax
	mov	rdx, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	r9, r12
	mov	r8, rdx
	mov	rcx, rbx
	mov	rdx, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -360[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR semaphore[rip]
	mov	rdi, rax
	call	sem_post@PLT
	call	getpid@PLT
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	jmp	.L1
.L5:
	mov	rax, QWORD PTR -368[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -368[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR semaphore[rip]
	mov	rdi, rax
	call	sem_post@PLT
	call	getpid@PLT
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	jmp	.L1
.L10:
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -342[rbp], al
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -341[rbp], al
	movzx	eax, BYTE PTR -342[rbp]
	cmp	al, BYTE PTR -341[rbp]
	je	.L8
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L8
	mov	r12, QWORD PTR -128[rbp]
	mov	rbx, QWORD PTR -272[rbp]
	call	getpid@PLT
	mov	esi, eax
	mov	rdx, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	r9, r12
	mov	r8, rdx
	mov	rcx, rbx
	mov	rdx, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L10
.L9:
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L11
	mov	r12, QWORD PTR -128[rbp]
	mov	rbx, QWORD PTR -272[rbp]
	call	getpid@PLT
	mov	esi, eax
	mov	rdx, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	r9, r12
	mov	r8, rdx
	mov	rcx, rbx
	mov	rdx, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L4:
	mov	rax, QWORD PTR semaphore[rip]
	mov	rdi, rax
	call	sem_post@PLT
	call	getpid@PLT
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	jmp	.L1
.L2:
	cmp	DWORD PTR -340[rbp], -1
	jne	.L1
	lea	rdi, .LC4[rip]
	call	puts@PLT
	nop
.L1:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	add	rsp, 352
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compareFiles, .-compareFiles
	.section	.rodata
	.align 8
.LC5:
	.string	"\320\222\320\262\320\265\320\264\320\270\321\202\320\265 \320\270\320\274\321\217 \320\277\320\265\321\200\320\262\320\276\320\263\320\276 \320\272\320\260\321\202\320\260\320\273\320\276\320\263\320\260:"
.LC6:
	.string	"%s"
	.align 8
.LC7:
	.string	"\320\222\320\262\320\265\320\264\320\270\321\202\320\265 \320\270\320\274\321\217 \320\262\321\202\320\276\321\200\320\276\320\263\320\276 \320\272\320\260\321\202\320\260\320\273\320\276\320\263\320\260:"
	.align 8
.LC8:
	.string	"\320\222\320\262\320\265\320\264\320\270\321\202\320\265 \320\274\320\260\320\272\321\201\320\270\320\274\320\260\320\273\321\214\320\275\320\276\320\265 \320\272\320\276\320\273\320\270\321\207\320\265\321\201\321\202\320\262\320\276 \320\277\321\200\320\276\321\206\320\265\321\201\321\201\320\276\320\262:"
.LC9:
	.string	"%d"
	.align 8
.LC10:
	.string	"\320\236\321\202\320\272\321\200\321\213\321\202\320\270\320\265 dir1. \320\236\321\210\320\270\320\261\320\272\320\260"
	.align 8
.LC11:
	.string	"\320\236\321\210\320\270\320\261\320\272\320\260 \320\277\321\200\320\270 \320\277\320\276\320\273\321\203\321\207\320\265\320\275\320\270\320\270 \320\270\320\275\321\204\320\276\321\200\320\274\320\260\321\206\320\270\320\270 \320\276\320\261 \321\204\320\260\320\271\320\273\320\265"
	.align 8
.LC12:
	.string	"\320\236\321\202\320\272\321\200\321\213\321\202\320\270\320\265 dir2. \320\236\321\210\320\270\320\261\320\272\320\260"
.LC13:
	.string	"/compare"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 1000
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -800[rbp], 0
	mov	QWORD PTR -792[rbp], 0
	mov	QWORD PTR -784[rbp], 0
	mov	QWORD PTR -776[rbp], 0
	mov	QWORD PTR -768[rbp], 0
	mov	QWORD PTR -760[rbp], 0
	mov	QWORD PTR -752[rbp], 0
	mov	QWORD PTR -744[rbp], 0
	mov	QWORD PTR -736[rbp], 0
	mov	QWORD PTR -728[rbp], 0
	mov	QWORD PTR -720[rbp], 0
	mov	QWORD PTR -712[rbp], 0
	mov	QWORD PTR -704[rbp], 0
	mov	QWORD PTR -696[rbp], 0
	mov	QWORD PTR -688[rbp], 0
	mov	QWORD PTR -680[rbp], 0
	mov	QWORD PTR -672[rbp], 0
	mov	QWORD PTR -664[rbp], 0
	mov	QWORD PTR -656[rbp], 0
	mov	QWORD PTR -648[rbp], 0
	mov	QWORD PTR -640[rbp], 0
	mov	QWORD PTR -632[rbp], 0
	mov	QWORD PTR -624[rbp], 0
	mov	QWORD PTR -616[rbp], 0
	mov	QWORD PTR -608[rbp], 0
	mov	QWORD PTR -600[rbp], 0
	mov	QWORD PTR -592[rbp], 0
	mov	QWORD PTR -584[rbp], 0
	mov	QWORD PTR -576[rbp], 0
	mov	QWORD PTR -568[rbp], 0
	mov	QWORD PTR -560[rbp], 0
	mov	QWORD PTR -552[rbp], 0
	mov	QWORD PTR -544[rbp], 0
	mov	QWORD PTR -536[rbp], 0
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	mov	QWORD PTR -512[rbp], 0
	mov	QWORD PTR -504[rbp], 0
	mov	QWORD PTR -496[rbp], 0
	mov	QWORD PTR -488[rbp], 0
	mov	QWORD PTR -480[rbp], 0
	mov	QWORD PTR -472[rbp], 0
	mov	QWORD PTR -464[rbp], 0
	mov	QWORD PTR -456[rbp], 0
	mov	QWORD PTR -448[rbp], 0
	mov	QWORD PTR -440[rbp], 0
	mov	QWORD PTR -432[rbp], 0
	mov	QWORD PTR -424[rbp], 0
	mov	QWORD PTR -416[rbp], 0
	mov	QWORD PTR -408[rbp], 0
	mov	QWORD PTR -400[rbp], 0
	mov	QWORD PTR -392[rbp], 0
	mov	QWORD PTR -384[rbp], 0
	mov	QWORD PTR -376[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	QWORD PTR -360[rbp], 0
	mov	QWORD PTR -352[rbp], 0
	mov	QWORD PTR -344[rbp], 0
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	DWORD PTR -1008[rbp], 0
	mov	DWORD PTR -1000[rbp], 0
	mov	DWORD PTR -996[rbp], 0
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -976[rbp], rax
	mov	edi, 256
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -976[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -968[rbp], rax
	mov	edi, 256
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -968[rbp]
	mov	QWORD PTR [rax], rdx
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -800[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -544[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -1008[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -800[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -960[rbp], rax
	cmp	QWORD PTR -960[rbp], 0
	jne	.L18
	lea	rdi, .LC10[rip]
	call	puts@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L36
.L21:
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	lea	rax, -800[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -800[rbp]
	lea	rax, -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	mov	rax, QWORD PTR -952[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -952[rbp]
	lea	rcx, 19[rax]
	lea	rax, -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	lea	rdx, -944[rbp]
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L19
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L36
.L19:
	mov	eax, DWORD PTR -920[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L18
	add	DWORD PTR -1000[rbp], 1
	mov	eax, DWORD PTR -1000[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -976[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -976[rbp], rax
	mov	eax, DWORD PTR -1000[rbp]
	sub	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -976[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -1000[rbp]
	sub	edx, 1
	mov	edx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -976[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 256
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR [rbx], rax
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -1000[rbp]
	sub	eax, 1
	mov	eax, eax
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -976[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	lea	rcx, -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
.L18:
	mov	rax, QWORD PTR -960[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -952[rbp], rax
	cmp	QWORD PTR -952[rbp], 0
	jne	.L21
	mov	rax, QWORD PTR -960[rbp]
	mov	rdi, rax
	call	closedir@PLT
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -960[rbp], rax
	cmp	QWORD PTR -960[rbp], 0
	jne	.L23
	lea	rdi, .LC12[rip]
	call	puts@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L36
.L26:
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -544[rbp]
	lea	rax, -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	mov	rax, QWORD PTR -952[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -952[rbp]
	lea	rcx, 19[rax]
	lea	rax, -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	lea	rdx, -944[rbp]
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L24
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L36
.L24:
	mov	eax, DWORD PTR -920[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L23
	add	DWORD PTR -996[rbp], 1
	mov	eax, DWORD PTR -996[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -968[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -968[rbp], rax
	mov	eax, DWORD PTR -996[rbp]
	sub	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -968[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -996[rbp]
	sub	edx, 1
	mov	edx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -968[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 256
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR [rbx], rax
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -996[rbp]
	sub	eax, 1
	mov	eax, eax
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -968[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	lea	rcx, -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
.L23:
	mov	rax, QWORD PTR -960[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -952[rbp], rax
	cmp	QWORD PTR -952[rbp], 0
	jne	.L26
	mov	rax, QWORD PTR -960[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	eax, DWORD PTR -1008[rbp]
	mov	ecx, eax
	mov	edx, 448
	mov	esi, 64
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR semaphore[rip], rax
	mov	DWORD PTR -992[rbp], 0
	jmp	.L27
.L30:
	mov	DWORD PTR -988[rbp], 0
	jmp	.L28
.L29:
	mov	rax, QWORD PTR semaphore[rip]
	lea	rdx, -1004[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sem_getvalue@PLT
	mov	eax, DWORD PTR -1004[rbp]
	test	eax, eax
	je	.L29
	mov	eax, DWORD PTR -988[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -968[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -992[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -976[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	compareFiles
	add	DWORD PTR -988[rbp], 1
.L28:
	mov	eax, DWORD PTR -988[rbp]
	cmp	DWORD PTR -996[rbp], eax
	ja	.L29
	add	DWORD PTR -992[rbp], 1
.L27:
	mov	eax, DWORD PTR -992[rbp]
	cmp	DWORD PTR -1000[rbp], eax
	ja	.L30
.L31:
	mov	rax, QWORD PTR semaphore[rip]
	lea	rdx, -1004[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sem_getvalue@PLT
	mov	eax, DWORD PTR -1004[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -1008[rbp]
	cmp	edx, eax
	jne	.L31
	lea	rdi, .LC13[rip]
	call	sem_unlink@PLT
	mov	DWORD PTR -984[rbp], 0
	jmp	.L32
.L33:
	mov	eax, DWORD PTR -984[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -976[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -984[rbp], 1
.L32:
	mov	eax, DWORD PTR -984[rbp]
	cmp	DWORD PTR -1000[rbp], eax
	ja	.L33
	mov	DWORD PTR -980[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -980[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -968[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -980[rbp], 1
.L34:
	mov	eax, DWORD PTR -980[rbp]
	cmp	DWORD PTR -996[rbp], eax
	ja	.L35
	mov	rax, QWORD PTR -976[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -968[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L36:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"605160.c"
	.text
	.comm	semaphore,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\320\237\321\200\320\276\321\206\320\265\321\201\321"
	.ascii	"\201: %d. \320\244\320\260\320\271\320\273 1: %s (%"
	.ascii	"ld b). \320\244\320\260\320\271\320\273 2: %s (%ld "
	.ascii	"b). \320\244\320\260\320\271\320\273\321\213 \320\275"
	.ascii	"\320\265 \321\200\320\260\320\262\320\275\321\213.\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"\320\236\321\210\320\270\320\261\320\272\320\260 \321"
	.ascii	"\207\321\202\320\265\320\275\320\270\321\217 \321\204"
	.ascii	"\320\260\320\271\320\273\320\260 %s\012\000"
	.align	2
.LC3:
	.ascii	"\320\237\321\200\320\276\321\206\320\265\321\201\321"
	.ascii	"\201: %d. \320\244\320\260\320\271\320\273 1: %s (%"
	.ascii	"ld b). \320\244\320\260\320\271\320\273 2: %s (%ld "
	.ascii	"b). \320\244\320\220\320\231\320\233\320\253 \320\240"
	.ascii	"\320\220\320\222\320\235\320\253.\012\000"
	.align	2
.LC4:
	.ascii	"\320\236\321\210\320\270\320\261\320\272\320\260 \321"
	.ascii	"\201\320\276\320\267\320\264\320\260\320\275\320\270"
	.ascii	"\321\217 \320\277\321\200\320\276\321\206\320\265\321"
	.ascii	"\201\321\201\320\260\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	compareFiles
	.syntax unified
	.arm
	.fpu softvfp
	.type	compareFiles, %function
compareFiles:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #216
	str	r0, [fp, #-208]
	str	r1, [fp, #-212]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_wait
	sub	r3, fp, #188
	mov	r1, r3
	ldr	r0, [fp, #-208]
	bl	stat
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-212]
	bl	stat
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	beq	.L3
	bl	getpid
	mov	r1, r0
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-56]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-212]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-208]
	ldr	r0, .L15+8
	bl	printf
	b	.L4
.L3:
	ldr	r1, .L15+12
	ldr	r0, [fp, #-208]
	bl	fopen
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	bne	.L5
	ldr	r1, [fp, #-208]
	ldr	r0, .L15+16
	bl	printf
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_post
	bl	getpid
	mov	r3, r0
	mov	r1, #9
	mov	r0, r3
	bl	kill
	b	.L1
.L5:
	ldr	r1, .L15+12
	ldr	r0, [fp, #-212]
	bl	fopen
	str	r0, [fp, #-192]
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bne	.L8
	ldr	r1, [fp, #-212]
	ldr	r0, .L15+16
	bl	printf
	ldr	r0, [fp, #-196]
	bl	fclose
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_post
	bl	getpid
	mov	r3, r0
	mov	r1, #9
	mov	r0, r3
	bl	kill
	b	.L1
.L10:
	ldr	r0, [fp, #-196]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-202]
	ldr	r0, [fp, #-192]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-201]
	ldrb	r2, [fp, #-202]	@ zero_extendqisi2
	ldrb	r3, [fp, #-201]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L8
	ldr	r0, [fp, #-196]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r0, [fp, #-192]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	bl	getpid
	mov	r1, r0
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-56]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-212]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-208]
	ldr	r0, .L15+8
	bl	printf
	b	.L9
.L8:
	ldr	r0, [fp, #-196]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r0, [fp, #-192]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
.L9:
	ldr	r0, [fp, #-196]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r0, [fp, #-192]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	bl	getpid
	mov	r1, r0
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-56]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-212]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-208]
	ldr	r0, .L15+20
	bl	printf
.L11:
	ldr	r0, [fp, #-196]
	bl	fclose
	ldr	r0, [fp, #-192]
	bl	fclose
.L4:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_post
	bl	getpid
	mov	r3, r0
	mov	r1, #9
	mov	r0, r3
	bl	kill
	b	.L1
.L2:
	ldr	r3, [fp, #-200]
	cmn	r3, #1
	bne	.L1
	ldr	r0, .L15+24
	bl	puts
	nop
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	semaphore
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	compareFiles, .-compareFiles
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\320\222\320\262\320\265\320\264\320\270\321\202\320"
	.ascii	"\265 \320\270\320\274\321\217 \320\277\320\265\321\200"
	.ascii	"\320\262\320\276\320\263\320\276 \320\272\320\260\321"
	.ascii	"\202\320\260\320\273\320\276\320\263\320\260:\000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.align	2
.LC8:
	.ascii	"\320\222\320\262\320\265\320\264\320\270\321\202\320"
	.ascii	"\265 \320\270\320\274\321\217 \320\262\321\202\320\276"
	.ascii	"\321\200\320\276\320\263\320\276 \320\272\320\260\321"
	.ascii	"\202\320\260\320\273\320\276\320\263\320\260:\000"
	.align	2
.LC9:
	.ascii	"\320\222\320\262\320\265\320\264\320\270\321\202\320"
	.ascii	"\265 \320\274\320\260\320\272\321\201\320\270\320\274"
	.ascii	"\320\260\320\273\321\214\320\275\320\276\320\265 \320"
	.ascii	"\272\320\276\320\273\320\270\321\207\320\265\321\201"
	.ascii	"\321\202\320\262\320\276 \320\277\321\200\320\276\321"
	.ascii	"\206\320\265\321\201\321\201\320\276\320\262:\000"
	.align	2
.LC10:
	.ascii	"%d\000"
	.align	2
.LC11:
	.ascii	"\320\236\321\202\320\272\321\200\321\213\321\202\320"
	.ascii	"\270\320\265 dir1. \320\236\321\210\320\270\320\261"
	.ascii	"\320\272\320\260\000"
	.align	2
.LC12:
	.ascii	"/\000"
	.align	2
.LC13:
	.ascii	"\320\236\321\210\320\270\320\261\320\272\320\260 \320"
	.ascii	"\277\321\200\320\270 \320\277\320\276\320\273\321\203"
	.ascii	"\321\207\320\265\320\275\320\270\320\270 \320\270\320"
	.ascii	"\275\321\204\320\276\321\200\320\274\320\260\321\206"
	.ascii	"\320\270\320\270 \320\276\320\261 \321\204\320\260\320"
	.ascii	"\271\320\273\320\265\000"
	.align	2
.LC14:
	.ascii	"\320\236\321\202\320\272\321\200\321\213\321\202\320"
	.ascii	"\270\320\265 dir2. \320\236\321\210\320\270\320\261"
	.ascii	"\320\272\320\260\000"
	.align	2
.LC15:
	.ascii	"/compare\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 912
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #916
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-784]
	sub	r3, fp, #780
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-528]
	sub	r3, fp, #524
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-924]
	mov	r3, #0
	str	r3, [fp, #-916]
	mov	r3, #0
	str	r3, [fp, #-912]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-908]
	mov	r0, #256
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-908]
	str	r2, [r3]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-904]
	mov	r0, #256
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-904]
	str	r2, [r3]
	ldr	r0, .L40+4
	bl	puts
	sub	r3, fp, #784
	mov	r1, r3
	ldr	r0, .L40+8
	bl	__isoc99_scanf
	ldr	r0, .L40+12
	bl	puts
	sub	r3, fp, #528
	mov	r1, r3
	ldr	r0, .L40+8
	bl	__isoc99_scanf
	ldr	r0, .L40+16
	bl	puts
	sub	r3, fp, #924
	mov	r1, r3
	ldr	r0, .L40+20
	bl	__isoc99_scanf
	sub	r3, fp, #784
	mov	r0, r3
	bl	opendir
	str	r0, [fp, #-884]
	ldr	r3, [fp, #-884]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L40+24
	bl	puts
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L38
.L23:
	mov	r3, #0
	str	r3, [fp, #-272]
	sub	r3, fp, #268
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #784
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #784
	sub	r3, fp, #272
	mov	r0, r3
	bl	strncat
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #272
	add	r3, r3, r2
	ldr	r2, .L40+28
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-880]
	add	r4, r3, #11
	ldr	r3, [fp, #-880]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #272
	mov	r1, r4
	mov	r0, r3
	bl	strncat
	sub	r2, fp, #876
	sub	r3, fp, #272
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L40+32
	bl	puts
	mvn	r3, #0
	b	.L38
.L21:
	ldr	r3, [fp, #-860]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L20
	ldr	r3, [fp, #-916]
	add	r3, r3, #1
	str	r3, [fp, #-916]
	ldr	r3, [fp, #-916]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-908]
	bl	realloc
	str	r0, [fp, #-908]
	ldr	r3, [fp, #-916]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-908]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-916]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-908]
	add	r4, r2, r3
	mov	r1, #256
	bl	realloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-916]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-908]
	add	r3, r2, r3
	ldr	r4, [r3]
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #272
	mov	r1, r3
	mov	r0, r4
	bl	strncpy
.L20:
	ldr	r0, [fp, #-884]
	bl	readdir
	str	r0, [fp, #-880]
	ldr	r3, [fp, #-880]
	cmp	r3, #0
	bne	.L23
	ldr	r0, [fp, #-884]
	bl	closedir
	sub	r3, fp, #528
	mov	r0, r3
	bl	opendir
	str	r0, [fp, #-884]
	ldr	r3, [fp, #-884]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L40+36
	bl	puts
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L38
.L28:
	mov	r3, #0
	str	r3, [fp, #-272]
	sub	r3, fp, #268
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #528
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #528
	sub	r3, fp, #272
	mov	r0, r3
	bl	strncat
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #272
	add	r3, r3, r2
	ldr	r2, .L40+28
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-880]
	add	r4, r3, #11
	ldr	r3, [fp, #-880]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #272
	mov	r1, r4
	mov	r0, r3
	bl	strncat
	sub	r2, fp, #876
	sub	r3, fp, #272
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L26
	ldr	r0, .L40+32
	bl	puts
	mvn	r3, #0
	b	.L38
.L26:
	ldr	r3, [fp, #-860]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L25
	ldr	r3, [fp, #-912]
	add	r3, r3, #1
	str	r3, [fp, #-912]
	ldr	r3, [fp, #-912]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-904]
	bl	realloc
	str	r0, [fp, #-904]
	ldr	r3, [fp, #-912]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-912]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r4, r2, r3
	mov	r1, #256
	bl	realloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-912]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r4, [r3]
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #272
	mov	r1, r3
	mov	r0, r4
	bl	strncpy
.L25:
	ldr	r0, [fp, #-884]
	bl	readdir
	str	r0, [fp, #-880]
	ldr	r3, [fp, #-880]
	cmp	r3, #0
	bne	.L28
	ldr	r0, [fp, #-884]
	bl	closedir
	ldr	r3, [fp, #-924]
	mov	r2, #448
	mov	r1, #64
	ldr	r0, .L40+40
	bl	sem_open
	mov	r3, r0
	ldr	r2, .L40+44
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-900]
	b	.L29
.L32:
	mov	r3, #0
	str	r3, [fp, #-896]
	b	.L30
.L31:
	ldr	r3, .L40+44
	ldr	r3, [r3]
	sub	r2, fp, #920
	mov	r1, r2
	mov	r0, r3
	bl	sem_getvalue
	ldr	r3, [fp, #-920]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-900]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-908]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-896]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	compareFiles
	ldr	r3, [fp, #-896]
	add	r3, r3, #1
	str	r3, [fp, #-896]
.L30:
	ldr	r3, [fp, #-896]
	ldr	r2, [fp, #-912]
	cmp	r2, r3
	bhi	.L31
	ldr	r3, [fp, #-900]
	add	r3, r3, #1
	str	r3, [fp, #-900]
.L29:
	ldr	r3, [fp, #-900]
	ldr	r2, [fp, #-916]
	cmp	r2, r3
	bhi	.L32
.L33:
	ldr	r3, .L40+44
	ldr	r3, [r3]
	sub	r2, fp, #920
	mov	r1, r2
	mov	r0, r3
	bl	sem_getvalue
	ldr	r3, [fp, #-920]
	mov	r2, r3
	ldr	r3, [fp, #-924]
	cmp	r2, r3
	bne	.L33
	ldr	r0, .L40+40
	bl	sem_unlink
	mov	r3, #0
	str	r3, [fp, #-892]
	b	.L34
.L35:
	ldr	r3, [fp, #-892]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-908]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-892]
	add	r3, r3, #1
	str	r3, [fp, #-892]
.L34:
	ldr	r3, [fp, #-892]
	ldr	r2, [fp, #-916]
	cmp	r2, r3
	bhi	.L35
	mov	r3, #0
	str	r3, [fp, #-888]
	b	.L36
.L37:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L36:
	ldr	r3, [fp, #-888]
	ldr	r2, [fp, #-912]
	cmp	r2, r3
	bhi	.L37
	ldr	r0, [fp, #-908]
	bl	free
	ldr	r0, [fp, #-904]
	bl	free
	mov	r3, #0
.L38:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC16
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	semaphore
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
