	.file	"82949551.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Wrong parameters\nmain.exe <file-name>\n"
.LC1:
	.string	"r"
.LC2:
	.string	"Error opening file"
.LC3:
	.string	"%d"
.LC4:
	.string	"Error closing file"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 464
	mov	DWORD PTR -452[rbp], edi
	mov	QWORD PTR -464[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -444[rbp], 0
	cmp	DWORD PTR -452[rbp], 2
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L7
.L2:
	mov	rax, QWORD PTR -464[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -432[rbp], rax
	cmp	QWORD PTR -432[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, -2
	jmp	.L7
.L4:
	lea	rdx, -444[rbp]
	lea	rcx, -416[rbp]
	mov	rax, QWORD PTR -432[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	read_array@PLT
	mov	DWORD PTR -436[rbp], eax
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	lea	rax, -416[rbp]
	add	rax, rdx
	mov	QWORD PTR -424[rbp], rax
	cmp	DWORD PTR -436[rbp], 0
	jne	.L5
	lea	rdx, -440[rbp]
	mov	rcx, QWORD PTR -424[rbp]
	lea	rax, -416[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	count@PLT
	mov	eax, DWORD PTR -440[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	rax, QWORD PTR -432[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L6
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, -2
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -436[rbp]
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"82949551.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Wrong parameters\012main.exe <file-name>\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Error opening file\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Error closing file\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #432
	str	r0, [fp, #-432]
	str	r1, [fp, #-436]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-428]
	ldr	r3, [fp, #-432]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L9+8
	bl	fwrite
	mvn	r3, #0
	b	.L7
.L2:
	ldr	r3, [fp, #-436]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L9+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-420]
	ldr	r3, [fp, #-420]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L9+16
	bl	perror
	mvn	r3, #1
	b	.L7
.L4:
	sub	r2, fp, #428
	sub	r3, fp, #408
	mov	r1, r3
	ldr	r0, [fp, #-420]
	bl	read_array
	str	r0, [fp, #-416]
	ldr	r3, [fp, #-428]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	sub	r2, fp, #408
	add	r3, r2, r3
	str	r3, [fp, #-412]
	ldr	r3, [fp, #-416]
	cmp	r3, #0
	bne	.L5
	sub	r2, fp, #424
	sub	r3, fp, #408
	ldr	r1, [fp, #-412]
	mov	r0, r3
	bl	count
	ldr	r3, [fp, #-424]
	mov	r1, r3
	ldr	r0, .L9+20
	bl	printf
.L5:
	ldr	r0, [fp, #-420]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L9+24
	bl	perror
	mvn	r3, #1
	b	.L7
.L6:
	ldr	r3, [fp, #-416]
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC5
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
