	.file	"583441.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%[^\n]%*c"
.LC1:
	.string	" %d"
.LC2:
	.string	" %d %d %d"
	.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, 1040
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1020[rbp], 0
	lea	rax, -1008[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1016[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -1016[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	test	al, al
	jne	.L3
	add	DWORD PTR -1020[rbp], 1
.L3:
	add	DWORD PTR -1016[rbp], 1
.L2:
	cmp	DWORD PTR -1016[rbp], 999
	jle	.L4
	lea	rax, -1036[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L5
.L10:
	lea	rcx, -1024[rbp]
	lea	rdx, -1028[rbp]
	lea	rax, -1032[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -1032[rbp]
	sub	eax, 1
	mov	DWORD PTR -1032[rbp], eax
	mov	eax, DWORD PTR -1028[rbp]
	sub	eax, 1
	mov	DWORD PTR -1028[rbp], eax
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	mov	BYTE PTR -1038[rbp], al
	mov	eax, DWORD PTR -1032[rbp]
	add	eax, 1
	mov	DWORD PTR -1012[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -1012[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	mov	BYTE PTR -1037[rbp], al
	mov	eax, DWORD PTR -1012[rbp]
	cdqe
	movzx	edx, BYTE PTR -1038[rbp]
	mov	BYTE PTR -1008[rbp+rax], dl
	movzx	eax, BYTE PTR -1037[rbp]
	mov	BYTE PTR -1038[rbp], al
	add	DWORD PTR -1012[rbp], 1
.L7:
	mov	eax, DWORD PTR -1028[rbp]
	cmp	DWORD PTR -1012[rbp], eax
	jle	.L8
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	movzx	edx, BYTE PTR -1038[rbp]
	mov	BYTE PTR -1008[rbp+rax], dl
.L6:
	mov	eax, DWORD PTR -1024[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -1024[rbp], edx
	test	eax, eax
	jne	.L9
.L5:
	mov	eax, DWORD PTR -1036[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -1036[rbp], edx
	test	eax, eax
	jne	.L10
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	puts@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
.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	"583441.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%[^\012]%*c\000"
	.align	2
.LC1:
	.ascii	" %d\000"
	.align	2
.LC2:
	.ascii	" %d %d %d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1020]
	sub	r3, fp, #1008
	mov	r1, r3
	ldr	r0, .L13+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-1016]
	b	.L2
.L4:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1016]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-1020]
	add	r3, r3, #1
	str	r3, [fp, #-1020]
.L3:
	ldr	r3, [fp, #-1016]
	add	r3, r3, #1
	str	r3, [fp, #-1016]
.L2:
	ldr	r3, [fp, #-1016]
	cmp	r3, #1000
	blt	.L4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	b	.L5
.L10:
	sub	r3, fp, #1024
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	ldr	r0, .L13+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1032]
	sub	r3, r3, #1
	str	r3, [fp, #-1032]
	ldr	r3, [fp, #-1028]
	sub	r3, r3, #1
	str	r3, [fp, #-1028]
	b	.L6
.L9:
	ldr	r3, [fp, #-1032]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-1004]
	strb	r3, [fp, #-1038]
	ldr	r3, [fp, #-1032]
	add	r3, r3, #1
	str	r3, [fp, #-1012]
	b	.L7
.L8:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1012]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-1037]
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1012]
	add	r3, r2, r3
	ldrb	r2, [fp, #-1038]
	strb	r2, [r3]
	ldrb	r3, [fp, #-1037]
	strb	r3, [fp, #-1038]
	ldr	r3, [fp, #-1012]
	add	r3, r3, #1
	str	r3, [fp, #-1012]
.L7:
	ldr	r3, [fp, #-1028]
	ldr	r2, [fp, #-1012]
	cmp	r2, r3
	ble	.L8
	ldr	r3, [fp, #-1032]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [fp, #-1038]
	strb	r2, [r3, #-1004]
.L6:
	ldr	r3, [fp, #-1024]
	sub	r2, r3, #1
	str	r2, [fp, #-1024]
	cmp	r3, #0
	bne	.L9
.L5:
	ldr	r3, [fp, #-1036]
	sub	r2, r3, #1
	str	r2, [fp, #-1036]
	cmp	r3, #0
	bne	.L10
	sub	r3, fp, #1008
	mov	r0, r3
	bl	puts
	mov	r3, #0
	ldr	r2, .L13
	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}
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
