	.file	"741706.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"-1"
	.align 8
.LC1:
	.string	"\npls input info you insert(size<%d):"
	.align 8
.LC2:
	.string	"\npls input info you insert local( < filesize %d ):"
.LC3:
	.string	"%d"
	.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
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 80
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r14, rax
	mov	DWORD PTR -76[rbp], 0
	call	getpagesize@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 384
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -68[rbp]
	cdq
	idiv	DWORD PTR -76[rbp]
	mov	eax, ecx
	sub	eax, edx
	sub	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, 1
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -68[rbp]
	cdq
	idiv	DWORD PTR -76[rbp]
	add	eax, 2
	cdqe
	mov	edx, DWORD PTR -72[rbp]
	mov	r9d, 0
	mov	r8d, edx
	mov	ecx, 1
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -56[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -112[rbp], rdx
	mov	QWORD PTR -104[rbp], 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR stdin[rip]
	mov	ecx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -80[rbp], 0
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, edx
	movsx	rbx, eax
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	lea	r12, [rdx+rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	r13, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 0[r13+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, rbx
	mov	rsi, r12
	mov	rdi, rax
	call	memmove@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -68[rbp]
	cdq
	idiv	DWORD PTR -76[rbp]
	add	eax, 2
	movsx	rcx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 6
	mov	rsi, rcx
	mov	rdi, rax
	call	msync@PLT
	mov	eax, DWORD PTR -68[rbp]
	cdq
	idiv	DWORD PTR -76[rbp]
	add	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	eax, DWORD PTR -68[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	mov	rdx, rax
	mov	eax, DWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ftruncate@PLT
	mov	eax, 0
	mov	rsp, r14
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.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	"741706.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-1\000"
	.global	__aeabi_idiv
	.align	2
.LC1:
	.ascii	"\012pls input info you insert(size<%d):\000"
	.align	2
.LC2:
	.ascii	"\012pls input info you insert local( < filesize %d "
	.ascii	"):\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	mov	r3, #0
	str	r3, [fp, #-40]
	bl	getpagesize
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #384
	mov	r1, #66
	mov	r0, r3
	bl	open
	str	r0, [fp, #-36]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-36]
	bl	lseek
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-40]
	lsl	r4, r3, #1
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	sub	r3, r4, r3
	sub	r3, r3, #1
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	lseek
	mov	r2, #1
	ldr	r1, .L4+4
	ldr	r0, [fp, #-36]
	bl	write
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	__aeabi_idiv
	mov	r3, r0
	add	r3, r3, #2
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-36]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-28]
	ldr	r1, [fp, #-40]
	ldr	r0, .L4+8
	bl	printf
	ldr	ip, [fp, #-40]
	sub	r3, ip, #1
	str	r3, [fp, #-24]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L4+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-20]
	bl	fgets
	ldr	r1, [fp, #-32]
	ldr	r0, .L4+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-44]
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L4+20
	bl	__isoc99_scanf
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	ldr	r2, [fp, #-44]
	add	r3, r3, r2
	ldr	r2, [fp, #-28]
	add	r0, r2, r3
	ldr	r3, [fp, #-44]
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r1, r3, r2
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	mov	r2, r3
	bl	memmove
	ldr	r3, [fp, #-44]
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r4, r3, r2
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-20]
	mov	r0, r4
	bl	memcpy
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	__aeabi_idiv
	mov	r3, r0
	add	r3, r3, #2
	mov	r2, #6
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	msync
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	__aeabi_idiv
	mov	r3, r0
	add	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	munmap
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	ftruncate
	mov	r3, #0
	mov	sp, r5
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	stdin
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
