	.file	"488939.c"
	.intel_syntax noprefix
	.text
	.globl	fp
	.bss
	.align 8
	.type	fp, @object
	.size	fp, 8
fp:
	.zero	8
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"w+"
.LC3:
	.string	"%d "
.LC4:
	.string	"%d\n"
	.align 8
.LC5:
	.string	"Number of Communities finally detected : %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -148[rbp], eax
	mov	eax, DWORD PTR -148[rbp]
	add	eax, 1
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	DWORD PTR -160[rbp], -1
	mov	DWORD PTR -144[rbp], -1
	mov	DWORD PTR -156[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	WORD PTR -80[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
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	WORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -128[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR fp[rip], rax
	jmp	.L2
.L3:
	add	DWORD PTR -160[rbp], 1
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -164[rbp]
	mov	DWORD PTR [rdx], eax
.L2:
	mov	rax, QWORD PTR fp[rip]
	lea	rcx, -164[rbp]
	lea	rdx, -168[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, -1
	jne	.L3
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -64[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR fp[rip], rax
	mov	DWORD PTR -160[rbp], 1
	jmp	.L4
.L10:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], -1
	je	.L13
	add	DWORD PTR -156[rbp], 1
	mov	DWORD PTR -152[rbp], 1
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -140[rbp], eax
	jne	.L8
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	mov	rax, QWORD PTR fp[rip]
	mov	edx, DWORD PTR -152[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L8:
	add	DWORD PTR -152[rbp], 1
.L7:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jle	.L9
	mov	rax, QWORD PTR fp[rip]
	mov	edx, DWORD PTR -144[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L6
.L13:
	nop
.L6:
	add	DWORD PTR -160[rbp], 1
.L4:
	mov	eax, DWORD PTR -160[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jle	.L10
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"488939.c"
	.text
	.comm	fp,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"%d %d\000"
	.align	2
.LC2:
	.ascii	"w+\000"
	.align	2
.LC3:
	.ascii	"%d \000"
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.ascii	"Number of Communities finally detected : %d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-156]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-124]
	mvn	r3, #0
	str	r3, [fp, #-140]
	mvn	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-136]
	mov	r3, #0
	str	r3, [fp, #-112]
	sub	r3, fp, #108
	mov	r2, #46
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-60]
	sub	r3, fp, #56
	mov	r2, #46
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-156]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #112
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r3, [fp, #-156]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #112
	ldr	r1, .L14+4
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L14+8
	str	r3, [r2]
	b	.L2
.L3:
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r2, [fp, #-144]
	str	r2, [r3]
.L2:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	sub	r3, fp, #144
	sub	r2, fp, #148
	ldr	r1, .L14+12
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L14+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	sub	r3, fp, #60
	ldr	r1, .L14+16
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L14+8
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-140]
	b	.L4
.L10:
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmn	r3, #1
	beq	.L13
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
	mov	r3, #1
	str	r3, [fp, #-132]
	b	.L7
.L9:
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L14+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-132]
	ldr	r1, .L14+20
	mov	r0, r3
	bl	fprintf
.L8:
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L7:
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	ble	.L9
	ldr	r3, .L14+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-120]
	ldr	r1, .L14+24
	mov	r0, r3
	bl	fprintf
	b	.L6
.L13:
	nop
.L6:
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L4:
	ldr	r2, [fp, #-140]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	ble	.L10
	ldr	r3, .L14+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r1, [fp, #-136]
	ldr	r0, .L14+28
	bl	printf
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	.LC0
	.word	fp
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
