	.file	"225142397.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"cannot open file %s\n"
.LC2:
	.string	"%lx %lx %s %d"
.LC3:
	.string	"%lx\n"
.LC4:
	.string	"the_stack_data/225142397.c"
.LC5:
	.string	"size > 0"
	.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	atoi@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L12
.L2:
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	jmp	.L4
.L11:
	lea	rdi, -132[rbp]
	lea	rsi, -80[rbp]
	lea	rcx, -112[rbp]
	lea	rdx, -120[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	sub	rax, rdx
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -96[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	QWORD PTR -96[rbp], 0
	jg	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 35
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L7:
	mov	DWORD PTR -128[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	QWORD PTR -88[rbp], rax
	cmp	DWORD PTR -124[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -88[rbp]
	mov	BYTE PTR [rax], 0
.L9:
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	getpagesize@PLT
	add	DWORD PTR -128[rbp], eax
.L8:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	cmp	QWORD PTR -96[rbp], rax
	jg	.L10
.L4:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L11
	jmp	.L6
.L14:
	nop
.L6:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"225142397.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"cannot open file %s\012\000"
	.align	2
.LC2:
	.ascii	"%lx %lx %s %d\000"
	.align	2
.LC3:
	.ascii	"%lx\012\000"
	.align	2
.LC4:
	.ascii	"the_stack_data/225142397.c\000"
	.align	2
.LC5:
	.ascii	"size > 0\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 = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L15+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-116]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+12
	bl	fprintf
	mov	r3, #0
	b	.L12
.L2:
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L4
.L11:
	sub	r1, fp, #100
	sub	r2, fp, #104
	sub	r3, fp, #96
	str	r3, [sp, #4]
	sub	r3, fp, #72
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L15+16
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	ldr	r0, [fp, #-88]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-104]
	sub	r3, r2, r3
	str	r3, [fp, #-80]
	ldr	r3, .L15+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L15+24
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bgt	.L7
	ldr	r3, .L15+28
	mov	r2, #35
	ldr	r1, .L15+32
	ldr	r0, .L15+36
	bl	__assert_fail
.L7:
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L8
.L10:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-76]
	mov	r2, #0
	strb	r2, [r3]
.L9:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L15+24
	bl	fprintf
	bl	getpagesize
	mov	r2, r0
	ldr	r3, [fp, #-92]
	add	r3, r3, r2
	str	r3, [fp, #-92]
.L8:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L10
.L4:
	ldr	r0, [fp, #-88]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	b	.L6
.L14:
	nop
.L6:
	ldr	r0, [fp, #-88]
	bl	fclose
	mov	r3, #0
.L12:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC6
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	stdout
	.word	.LC3
	.word	__PRETTY_FUNCTION__.5236
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5236, %object
	.size	__PRETTY_FUNCTION__.5236, 5
__PRETTY_FUNCTION__.5236:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
