	.file	"270164.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"wb"
.LC2:
	.string	"output.txt"
	.align 8
.LC3:
	.string	"Unable to create output.txt file"
	.align 8
.LC4:
	.string	"Concating the content of 3 files ..."
.LC5:
	.string	"The result is:"
.LC6:
	.string	"rb"
	.align 8
.LC7:
	.string	"The result was written into output.txt"
	.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	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 152
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rax, -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	mov	ecx, DWORD PTR -184[rbp]
	movsx	rax, ecx
	sub	rax, 1
	mov	QWORD PTR -168[rbp], rax
	movsx	rax, ecx
	mov	r14, rax
	mov	r15d, 0
	imul	rdx, r15, 400
	imul	rax, r14, 0
	lea	rsi, [rdx+rax]
	mov	eax, 400
	mul	r14
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	movsx	rax, ecx
	mov	r12, rax
	mov	r13d, 0
	imul	rdx, r13, 400
	imul	rax, r12, 0
	lea	rsi, [rdx+rax]
	mov	eax, 400
	mul	r12
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	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 -160[rbp], rax
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	jne	.L5
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	DWORD PTR -176[rbp], 0
	jmp	.L6
.L7:
	mov	rdx, QWORD PTR stdin[rip]
	mov	eax, DWORD PTR -176[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	add	rax, rax
	mov	rcx, QWORD PTR -160[rbp]
	add	rax, rcx
	mov	esi, 50
	mov	rdi, rax
	call	fgets@PLT
	mov	eax, DWORD PTR -176[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	mov	rdx, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	lea	rsi, -1[rax]
	mov	rcx, QWORD PTR -160[rbp]
	mov	eax, DWORD PTR -176[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	add	rax, rsi
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -176[rbp], 1
.L6:
	mov	eax, DWORD PTR -184[rbp]
	cmp	DWORD PTR -176[rbp], eax
	jl	.L7
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -180[rbp], 0
	jmp	.L8
.L9:
	mov	WORD PTR -130[rbp], 10
	mov	eax, DWORD PTR -180[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	mov	rdx, QWORD PTR -160[rbp]
	add	rax, rdx
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -172[rbp], eax
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -172[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -144[rbp]
	lea	rax, -128[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	mov	BYTE PTR -128[rbp+rax], 0
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, DWORD PTR -172[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -152[rbp]
	lea	rax, -128[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR -152[rbp]
	lea	rax, -130[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -180[rbp], 1
.L8:
	mov	eax, DWORD PTR -184[rbp]
	cmp	DWORD PTR -180[rbp], eax
	jl	.L9
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	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	"270164.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"wb\000"
	.align	2
.LC2:
	.ascii	"output.txt\000"
	.align	2
.LC3:
	.ascii	"Unable to create output.txt file\000"
	.align	2
.LC4:
	.ascii	"Concating the content of 3 files ...\000"
	.align	2
.LC5:
	.ascii	"The result is:\000"
	.align	2
.LC6:
	.ascii	"rb\000"
	.align	2
.LC7:
	.ascii	"The result was written into output.txt\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #108
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	sub	r3, fp, #132
	mov	r1, r3
	ldr	r0, .L9+4
	bl	__isoc99_scanf
	bl	getchar
	ldr	ip, [fp, #-132]
	sub	r3, ip, #1
	str	r3, [fp, #-120]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r4, r2, r2
	adc	r5, r3, r3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #3
	orr	r5, r5, r2, lsr #29
	lsl	r4, r2, #3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #4
	orr	r1, r1, r2, lsr #28
	lsl	r0, r2, #4
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r6, r2, r2
	adc	r7, r3, r3
	mov	r2, r6
	mov	r3, r7
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #3
	orr	r5, r5, r2, lsr #29
	lsl	r4, r2, #3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #4
	orr	r1, r1, r2, lsr #28
	lsl	r0, r2, #4
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-116]
	ldr	r1, .L9+8
	ldr	r0, .L9+12
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L9+16
	bl	printf
.L2:
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L3
.L4:
	ldr	r2, [fp, #-124]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r2, .L9+20
	ldr	r2, [r2]
	mov	r1, #50
	mov	r0, r3
	bl	fgets
	ldr	r2, [fp, #-124]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r1, r3, #1
	ldr	r0, [fp, #-116]
	ldr	r2, [fp, #-124]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L3:
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	blt	.L4
	ldr	r0, .L9+24
	bl	puts
	ldr	r0, .L9+28
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L5
.L6:
	mov	r3, #10
	strh	r3, [fp, #-100]	@ movhi
	ldr	r2, [fp, #-128]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r1, .L9+32
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-108]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-108]
	bl	fseek
	ldr	r0, [fp, #-108]
	bl	ftell
	str	r0, [fp, #-104]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-108]
	bl	fseek
	ldr	r2, [fp, #-104]
	sub	r0, fp, #96
	ldr	r3, [fp, #-108]
	mov	r1, #1
	bl	fread
	sub	r2, fp, #96
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #96
	mov	r0, r3
	bl	puts
	ldr	r2, [fp, #-104]
	sub	r0, fp, #96
	ldr	r3, [fp, #-112]
	mov	r1, #1
	bl	fwrite
	ldr	r0, [fp, #-108]
	bl	fclose
	sub	r0, fp, #100
	ldr	r3, [fp, #-112]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L5:
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	blt	.L6
	ldr	r0, .L9+36
	bl	puts
	mov	r3, #0
	mov	sp, r8
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stdin
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
