	.file	"1006475.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"*"
.LC1:
	.string	"%7d "
.LC2:
	.string	"%6d "
.LC3:
	.string	"%4d\n"
	.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
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 64
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	r14d, 0
	mov	DWORD PTR -84[rbp], 1
	mov	ebx, 0
	jmp	.L2
.L8:
	test	ebx, ebx
	je	.L3
	cmp	r13d, 10
	jne	.L3
	lea	rax, -80[rbp]
	lea	rdx, 20[rax]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	sameline
	test	eax, eax
	je	.L3
	cmp	DWORD PTR -84[rbp], 0
	je	.L11
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -84[rbp], 0
	jmp	.L11
.L3:
	mov	DWORD PTR -84[rbp], 1
	mov	esi, ebx
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	r12d, 0
	jmp	.L6
.L7:
	movsx	rcx, r12d
	movsx	rdx, r14d
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	movzx	eax, WORD PTR -80[rbp+rax*2]
	cwde
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	r12d, 1
.L6:
	cmp	r12d, r13d
	jl	.L7
	mov	edi, 10
	call	putchar@PLT
	jmp	.L5
.L11:
	nop
.L5:
	add	ebx, r13d
	mov	eax, 1
	sub	eax, r14d
	mov	r14d, eax
.L2:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rsi, -80[rbp]
	movsx	rcx, r14d
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	add	rax, rsi
	mov	rcx, rdx
	mov	edx, 10
	mov	esi, 2
	mov	rdi, rax
	call	fread@PLT
	mov	r13d, eax
	test	r13d, r13d
	jg	.L8
	mov	esi, ebx
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	add	rsp, 64
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	sameline
	.type	sameline, @function
sameline:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	rax, rdi
	mov	rdx, rsi
	mov	ebx, 10
	jmp	.L13
.L15:
	mov	rcx, rax
	lea	rax, 2[rcx]
	movzx	esi, WORD PTR [rcx]
	mov	rcx, rdx
	lea	rdx, 2[rcx]
	movzx	ecx, WORD PTR [rcx]
	cmp	si, cx
	je	.L13
	mov	eax, 0
	jmp	.L14
.L13:
	sub	ebx, 1
	test	ebx, ebx
	jns	.L15
	mov	eax, 1
.L14:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sameline, .-sameline
	.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	"1006475.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"*\000"
	.align	2
.LC1:
	.ascii	"%7d \000"
	.align	2
.LC2:
	.ascii	"%6d \000"
	.align	2
.LC3:
	.ascii	"%4d\012\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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #48
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r5, #0
	mov	r3, #1
	str	r3, [fp, #-68]
	mov	r4, #0
	b	.L2
.L8:
	cmp	r4, #0
	beq	.L3
	cmp	r7, #10
	bne	.L3
	sub	r3, fp, #64
	add	r2, r3, #20
	sub	r3, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	sameline
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L12+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L11
.L3:
	mov	r3, #1
	str	r3, [fp, #-68]
	mov	r1, r4
	ldr	r0, .L12+8
	bl	printf
	mov	r6, #0
	b	.L6
.L7:
	mov	r3, r5
	lsl	r3, r3, #2
	add	r3, r3, r5
	lsl	r3, r3, #1
	add	r3, r3, r6
	lsl	r3, r3, #1
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #44
	ldrsh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+12
	bl	printf
	add	r6, r6, #1
.L6:
	cmp	r6, r7
	blt	.L7
	mov	r0, #10
	bl	putchar
	b	.L5
.L11:
	nop
.L5:
	add	r4, r4, r7
	rsb	r5, r5, #1
.L2:
	sub	r2, fp, #64
	mov	r3, r5
	lsl	r3, r3, #2
	add	r3, r3, r5
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, .L12+16
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #2
	bl	fread
	mov	r3, r0
	mov	r7, r3
	cmp	r7, #0
	bgt	.L8
	mov	r1, r4
	ldr	r0, .L12+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdin
	.word	.LC3
	.size	main, .-main
	.align	2
	.global	sameline
	.syntax unified
	.arm
	.fpu softvfp
	.type	sameline, %function
sameline:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, fp}
	add	fp, sp, #4
	mov	r4, #10
	b	.L15
.L17:
	mov	r3, r0
	add	r0, r3, #2
	ldrsh	r2, [r3]
	mov	r3, r1
	add	r1, r3, #2
	ldrsh	r3, [r3]
	cmp	r2, r3
	beq	.L15
	mov	r3, #0
	b	.L16
.L15:
	sub	r4, r4, #1
	cmp	r4, #0
	bge	.L17
	mov	r3, #1
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{r4, fp}
	bx	lr
	.size	sameline, .-sameline
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
