	.file	"182953281.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"too many rows\n"
.LC1:
	.string	"too many columns\n"
.LC2:
	.string	"cannot parse a number"
.LC3:
	.string	"%d\n"
	.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
	lea	r11, -40960[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 848
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -41776[rbp], 1
	mov	QWORD PTR -41768[rbp], 1
	mov	DWORD PTR -41796[rbp], 0
	mov	QWORD PTR -41792[rbp], 0
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -41792[rbp]
	mov	DWORD PTR -41760[rbp+rax*4], 10
	add	QWORD PTR -41792[rbp], 1
.L2:
	cmp	QWORD PTR -41792[rbp], 10403
	jbe	.L3
	mov	QWORD PTR -41792[rbp], 1
	jmp	.L4
.L11:
	cmp	QWORD PTR -41776[rbp], 101
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	QWORD PTR -41784[rbp], 1
	mov	QWORD PTR -41768[rbp], 1
	jmp	.L6
.L10:
	cmp	QWORD PTR -41768[rbp], 101
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -41784[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR -144[rbp+rax]
	cmp	al, 47
	jle	.L8
	mov	rax, QWORD PTR -41784[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR -144[rbp+rax]
	cmp	al, 57
	jle	.L9
.L8:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -41784[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR -144[rbp+rax]
	movsx	edx, al
	mov	rax, QWORD PTR -41792[rbp]
	imul	rcx, rax, 102
	mov	rax, QWORD PTR -41784[rbp]
	add	rax, rcx
	sub	edx, 48
	mov	DWORD PTR -41760[rbp+rax*4], edx
	add	QWORD PTR -41784[rbp], 1
	add	QWORD PTR -41768[rbp], 1
.L6:
	mov	rax, QWORD PTR -41784[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR -144[rbp+rax]
	cmp	al, 10
	jne	.L10
	add	QWORD PTR -41792[rbp], 1
	add	QWORD PTR -41776[rbp], 1
.L4:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -144[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L11
	add	QWORD PTR -41776[rbp], 1
	add	QWORD PTR -41768[rbp], 1
	mov	QWORD PTR -41792[rbp], 1
	jmp	.L12
.L16:
	mov	QWORD PTR -41784[rbp], 1
	jmp	.L13
.L15:
	mov	rax, QWORD PTR -41792[rbp]
	imul	rdx, rax, 102
	mov	rax, QWORD PTR -41784[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -41760[rbp+rax*4]
	mov	rax, QWORD PTR -41792[rbp]
	imul	rcx, rax, 102
	mov	rax, QWORD PTR -41784[rbp]
	add	rax, rcx
	sub	rax, 102
	mov	eax, DWORD PTR -41760[rbp+rax*4]
	cmp	edx, eax
	jge	.L14
	mov	rax, QWORD PTR -41792[rbp]
	imul	rdx, rax, 102
	mov	rax, QWORD PTR -41784[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -41760[rbp+rax*4]
	mov	rax, QWORD PTR -41792[rbp]
	add	rax, 1
	imul	rcx, rax, 102
	mov	rax, QWORD PTR -41784[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR -41760[rbp+rax*4]
	cmp	edx, eax
	jge	.L14
	mov	rax, QWORD PTR -41792[rbp]
	imul	rdx, rax, 102
	mov	rax, QWORD PTR -41784[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -41760[rbp+rax*4]
	mov	rax, QWORD PTR -41792[rbp]
	imul	rcx, rax, 102
	mov	rax, QWORD PTR -41784[rbp]
	add	rax, rcx
	sub	rax, 1
	mov	eax, DWORD PTR -41760[rbp+rax*4]
	cmp	edx, eax
	jge	.L14
	mov	rax, QWORD PTR -41792[rbp]
	imul	rdx, rax, 102
	mov	rax, QWORD PTR -41784[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -41760[rbp+rax*4]
	mov	rax, QWORD PTR -41792[rbp]
	imul	rcx, rax, 102
	mov	rax, QWORD PTR -41784[rbp]
	add	rax, rcx
	add	rax, 1
	mov	eax, DWORD PTR -41760[rbp+rax*4]
	cmp	edx, eax
	jge	.L14
	mov	rax, QWORD PTR -41792[rbp]
	imul	rdx, rax, 102
	mov	rax, QWORD PTR -41784[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR -41760[rbp+rax*4]
	add	eax, 1
	add	DWORD PTR -41796[rbp], eax
.L14:
	add	QWORD PTR -41784[rbp], 1
.L13:
	mov	rax, QWORD PTR -41768[rbp]
	sub	rax, 1
	cmp	QWORD PTR -41784[rbp], rax
	jb	.L15
	add	QWORD PTR -41792[rbp], 1
.L12:
	mov	rax, QWORD PTR -41776[rbp]
	sub	rax, 1
	cmp	QWORD PTR -41792[rbp], rax
	jb	.L16
	mov	eax, DWORD PTR -41796[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.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	"182953281.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"too many rows\012\000"
	.align	2
.LC1:
	.ascii	"too many columns\012\000"
	.align	2
.LC2:
	.ascii	"cannot parse a number\000"
	.align	2
.LC3:
	.ascii	"%d\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 = 41768
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #41728
	sub	sp, sp, #40
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-800]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-796]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-792]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-808]
	b	.L2
.L3:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-808]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #10
	str	r2, [r3, #-788]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-808]
	add	r3, r3, #1
	str	r3, [r2, #-808]
.L2:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-808]
	ldr	r2, .L19+4
	cmp	r3, r2
	bls	.L3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-808]
	b	.L4
.L11:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-800]
	cmp	r3, #101
	bne	.L5
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L19+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-804]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-796]
	b	.L6
.L10:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-796]
	cmp	r3, #101
	bne	.L7
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L19+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-132]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L8
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-132]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L9
.L8:
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L19+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L9:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-132]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r3, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r2, r3
	sub	r2, r1, #48
	sub	r1, fp, #40960
	sub	r1, r1, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-788]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r3, #1
	str	r3, [r2, #-804]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-796]
	add	r3, r3, #1
	str	r3, [r2, #-796]
.L6:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-132]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L10
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-808]
	add	r3, r3, #1
	str	r3, [r2, #-808]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-800]
	add	r3, r3, #1
	str	r3, [r2, #-800]
.L4:
	ldr	r3, .L19+24
	ldr	r2, [r3]
	sub	r3, fp, #136
	mov	r1, #128
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-800]
	add	r3, r3, #1
	str	r3, [r2, #-800]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-796]
	add	r3, r3, #1
	str	r3, [r2, #-796]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-808]
	b	.L12
.L16:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-804]
	b	.L13
.L15:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r3, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r2, r3
	sub	r2, fp, #40960
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-788]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r3, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r2, r3
	sub	r3, r3, #102
	sub	r2, fp, #40960
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	cmp	r1, r3
	bge	.L14
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r3, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r2, r3
	sub	r2, fp, #40960
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-788]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-808]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r2, r3
	sub	r2, fp, #40960
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	cmp	r1, r3
	bge	.L14
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r3, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r2, r3
	sub	r2, fp, #40960
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-788]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r3, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #40960
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	cmp	r1, r3
	bge	.L14
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r3, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r2, r3
	sub	r2, fp, #40960
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-788]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r3, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r2, r3
	add	r3, r3, #1
	sub	r2, fp, #40960
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	cmp	r1, r3
	bge	.L14
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r3, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r2, r3
	sub	r2, fp, #40960
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	add	r3, r3, #1
	sub	r2, fp, #40960
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #40960
	sub	r2, r2, #4
	ldr	r2, [r2, #-792]
	add	r3, r2, r3
	str	r3, [r1, #-792]
.L14:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-804]
	add	r3, r3, #1
	str	r3, [r2, #-804]
.L13:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-796]
	sub	r3, r3, #1
	sub	r2, fp, #40960
	sub	r2, r2, #4
	ldr	r2, [r2, #-804]
	cmp	r2, r3
	bcc	.L15
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-808]
	add	r3, r3, #1
	str	r3, [r2, #-808]
.L12:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-800]
	sub	r3, r3, #1
	sub	r2, fp, #40960
	sub	r2, r2, #4
	ldr	r2, [r2, #-808]
	cmp	r2, r3
	bcc	.L16
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r1, [r3, #-792]
	ldr	r0, .L19+28
	bl	printf
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	10403
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdin
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
