	.file	"330392.c"
	.intel_syntax noprefix
	.text
	.globl	Max_rows
	.bss
	.align 4
	.type	Max_rows, @object
	.size	Max_rows, 4
Max_rows:
	.zero	4
	.globl	Max_cols
	.align 4
	.type	Max_cols, @object
	.size	Max_cols, 4
Max_cols:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Error.  Invalid number of inputs."
	.align 8
.LC1:
	.string	"Error. You must only use integers for input values."
	.align 8
.LC2:
	.string	"Error.  Number of boxes must be greater than 0."
	.align 8
.LC3:
	.string	"Error.  Width must be between 2 and 20."
	.align 8
.LC4:
	.string	"Error.  Height must be between 2 and 10."
.LC5:
	.string	"\033[2J"
.LC6:
	.string	"\033[34;1m"
.LC7:
	.string	"Error.  Not enough memory."
.LC8:
	.string	"\033[0m"
.LC9:
	.string	"\033[%i;%iH"
	.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	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	cmp	DWORD PTR -100[rbp], 4
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	DWORD PTR -84[rbp], 1
	jmp	.L3
.L7:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L4
.L6:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	add	DWORD PTR -80[rbp], 1
.L4:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rbx, eax
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L6
	add	DWORD PTR -84[rbp], 1
.L3:
	cmp	DWORD PTR -84[rbp], 3
	jle	.L7
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jg	.L8
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L8:
	cmp	QWORD PTR -48[rbp], 1
	jle	.L9
	cmp	QWORD PTR -48[rbp], 20
	jle	.L10
.L9:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L10:
	cmp	QWORD PTR -40[rbp], 1
	jle	.L11
	cmp	QWORD PTR -40[rbp], 10
	jle	.L12
.L11:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -56[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	lea	rax, -32[rbp]
	mov	rdx, rax
	mov	esi, 21523
	mov	edi, 0
	mov	eax, 0
	call	ioctl@PLT
	movzx	eax, WORD PTR -32[rbp]
	movzx	eax, ax
	sub	eax, 1
	mov	DWORD PTR Max_rows[rip], eax
	movzx	eax, WORD PTR -30[rbp]
	movzx	eax, ax
	mov	DWORD PTR Max_cols[rip], eax
	cmp	QWORD PTR -72[rbp], 0
	je	.L13
	cmp	QWORD PTR -64[rbp], 0
	je	.L13
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	get_coord
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -76[rbp], 0
	jmp	.L14
.L13:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	edi, eax
	call	display
	add	DWORD PTR -76[rbp], 1
.L14:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	cmp	QWORD PTR -56[rbp], rax
	jg	.L15
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR Max_rows[rip]
	add	eax, 1
	mov	edx, 0
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -72[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -64[rbp], 0
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	get_coord
	.type	get_coord, @function
get_coord:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srandom@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L19
.L20:
	call	random@PLT
	mov	edx, DWORD PTR Max_rows[rip]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	add	edx, 1
	mov	DWORD PTR [rax], edx
	call	random@PLT
	mov	edx, DWORD PTR Max_cols[rip]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	add	edx, 1
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -4[rbp], 1
.L19:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -40[rbp], rax
	jg	.L20
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_coord, .-get_coord
	.section	.rodata
.LC10:
	.string	"\033[%ld;%iH"
	.text
	.globl	display
	.type	display, @function
display:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	QWORD PTR -56[rbp], rcx
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 43
	call	putchar@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L22
.L24:
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	eax, DWORD PTR Max_cols[rip]
	cmp	edx, eax
	jnb	.L23
	mov	edi, 45
	call	putchar@PLT
.L23:
	add	DWORD PTR -24[rbp], 1
.L22:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	rdx, QWORD PTR -48[rbp]
	sub	rdx, 2
	cmp	rax, rdx
	jl	.L24
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR Max_cols[rip]
	cdqe
	cmp	rdx, rax
	jg	.L25
	mov	edi, 43
	call	putchar@PLT
.L25:
	mov	DWORD PTR -20[rbp], 1
	jmp	.L26
.L31:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	edx, eax
	mov	eax, DWORD PTR Max_rows[rip]
	cmp	edx, eax
	ja	.L27
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 124
	call	putchar@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L28
.L30:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	eax, DWORD PTR Max_cols[rip]
	cmp	edx, eax
	jnb	.L29
	mov	edi, 32
	call	putchar@PLT
.L29:
	add	DWORD PTR -16[rbp], 1
.L28:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	rdx, QWORD PTR -48[rbp]
	sub	rdx, 2
	cmp	rax, rdx
	jl	.L30
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR Max_cols[rip]
	cdqe
	cmp	rdx, rax
	jg	.L27
	mov	edi, 124
	call	putchar@PLT
.L27:
	add	DWORD PTR -20[rbp], 1
.L26:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdx, QWORD PTR -56[rbp]
	sub	rdx, 1
	cmp	rax, rdx
	jl	.L31
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	lea	rdx, -1[rax]
	mov	eax, DWORD PTR Max_rows[rip]
	cdqe
	cmp	rdx, rax
	jg	.L32
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	lea	rcx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 43
	call	putchar@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L33
.L35:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	eax, DWORD PTR Max_cols[rip]
	cmp	edx, eax
	jnb	.L34
	mov	edi, 45
	call	putchar@PLT
.L34:
	add	DWORD PTR -12[rbp], 1
.L33:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rdx, QWORD PTR -48[rbp]
	sub	rdx, 2
	cmp	rax, rdx
	jl	.L35
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR Max_cols[rip]
	cdqe
	cmp	rdx, rax
	jg	.L32
	mov	edi, 43
	call	putchar@PLT
.L32:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	sleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display, .-display
	.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	"330392.c"
	.text
	.global	Max_rows
	.bss
	.align	2
	.type	Max_rows, %object
	.size	Max_rows, 4
Max_rows:
	.space	4
	.global	Max_cols
	.align	2
	.type	Max_cols, %object
	.size	Max_cols, 4
Max_cols:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error.  Invalid number of inputs.\000"
	.align	2
.LC1:
	.ascii	"Error. You must only use integers for input values."
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Error.  Number of boxes must be greater than 0.\000"
	.align	2
.LC3:
	.ascii	"Error.  Width must be between 2 and 20.\000"
	.align	2
.LC4:
	.ascii	"Error.  Height must be between 2 and 10.\000"
	.align	2
.LC5:
	.ascii	"\033[2J\000"
	.align	2
.LC6:
	.ascii	"\033[34;1m\000"
	.align	2
.LC7:
	.ascii	"Error.  Not enough memory.\000"
	.align	2
.LC8:
	.ascii	"\033[0m\000"
	.align	2
.LC9:
	.ascii	"\033[%i;%iH\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-56]
	cmp	r3, #4
	beq	.L2
	ldr	r0, .L18+4
	bl	puts
	mvn	r0, #0
	bl	exit
.L2:
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L3
.L7:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L4
.L6:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-60]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L18+8
	bl	puts
	mvn	r0, #0
	bl	exit
.L5:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L4:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bhi	.L6
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L3:
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	ble	.L7
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-60]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L8
	ldr	r0, .L18+12
	bl	puts
	mvn	r0, #0
	bl	exit
.L8:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L9
	ldr	r3, [fp, #-24]
	cmp	r3, #20
	ble	.L10
.L9:
	ldr	r0, .L18+16
	bl	puts
	mvn	r0, #0
	bl	exit
.L10:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	ble	.L11
	ldr	r3, [fp, #-20]
	cmp	r3, #10
	ble	.L12
.L11:
	ldr	r0, .L18+20
	bl	puts
	mvn	r0, #0
	bl	exit
.L12:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L18+24
	mov	r0, #0
	bl	ioctl
	ldrh	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L18+28
	str	r3, [r2]
	ldrh	r3, [fp, #-14]
	mov	r2, r3
	ldr	r3, .L18+32
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L13
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	get_coord
	ldr	r0, .L18+36
	bl	printf
	ldr	r0, .L18+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L14
.L13:
	ldr	r0, .L18+44
	bl	puts
	mvn	r0, #0
	bl	exit
.L15:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	bl	display
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L14:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L15
	ldr	r0, .L18+48
	bl	printf
	ldr	r3, .L18+28
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r2, #0
	mov	r1, r3
	ldr	r0, .L18+52
	bl	printf
	ldr	r0, [fp, #-36]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	21523
	.word	Max_rows
	.word	Max_cols
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.global	__aeabi_idivmod
	.align	2
	.global	get_coord
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_coord, %function
get_coord:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srandom
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L22:
	bl	random
	mov	r2, r0
	ldr	r3, .L23
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r1, r3, #1
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	bl	random
	mov	r2, r0
	ldr	r3, .L23+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r1, r3, #1
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L22
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	Max_rows
	.word	Max_cols
	.size	get_coord, .-get_coord
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\033[%ld;%iH\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L40
	bl	printf
	mov	r0, #43
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L26
.L28:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L40+4
	ldr	r2, [r2]
	cmp	r3, r2
	bcs	.L27
	mov	r0, #45
	bl	putchar
.L27:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L26:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #2
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L28
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L40+4
	ldr	r2, [r2]
	cmp	r3, r2
	bcs	.L29
	mov	r0, #43
	bl	putchar
.L29:
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L30
.L35:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L40+8
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L31
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L40
	bl	printf
	mov	r0, #124
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L32
.L34:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L40+4
	ldr	r2, [r2]
	cmp	r3, r2
	bcs	.L33
	mov	r0, #32
	bl	putchar
.L33:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L32:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #2
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L34
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L40+4
	ldr	r2, [r2]
	cmp	r3, r2
	bcs	.L31
	mov	r0, #124
	bl	putchar
.L31:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L30:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L35
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L40+8
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L36
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L40+12
	bl	printf
	mov	r0, #43
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L37
.L39:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L40+4
	ldr	r2, [r2]
	cmp	r3, r2
	bcs	.L38
	mov	r0, #45
	bl	putchar
.L38:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L37:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #2
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L39
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L40+4
	ldr	r2, [r2]
	cmp	r3, r2
	bcs	.L36
	mov	r0, #43
	bl	putchar
.L36:
	ldr	r3, .L40+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	sleep
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC9
	.word	Max_cols
	.word	Max_rows
	.word	.LC11
	.word	stdout
	.size	display, .-display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
