	.file	"175143567.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"*************************"
.LC1:
	.string	"******* Welcome to ******"
.LC2:
	.string	"*** Number Riddle Game***"
.LC3:
	.string	"******* Ver. 2.0 ********"
.LC4:
	.string	"****** Programmer *******"
.LC5:
	.string	"***** Antonio Roye ******\n"
.LC6:
	.string	"Enter number of rows (3-8): "
.LC7:
	.string	"%d"
.LC8:
	.string	"Enter number of cols (3-8): "
	.align 8
.LC10:
	.string	"\n(#Move %d), Enter a number to move (0 to exit):"
	.align 8
.LC11:
	.string	"\nIf you would like to return to the game press 1, otherwise press 0"
	.align 8
.LC12:
	.string	"\nThis number is not on the game board!"
.LC13:
	.string	"\nThis cell can't move!"
.LC14:
	.string	"\n\nYou won!"
	.align 8
.LC15:
	.string	"\nIf you want to play a new game enter 1, if not enter 0:"
.LC16:
	.string	"\nGoodbye!"
	.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, 120
	.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
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L2:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -132[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, 2
	jle	.L2
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, 8
	jg	.L2
.L3:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 2
	jle	.L3
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 8
	jg	.L3
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, edx
	mov	rdx, rsp
	mov	rbx, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L4:
	cmp	rsp, rdx
	je	.L5
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L4
.L5:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L6
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L6:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -108[rbp], 0
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -108[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -108[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -108[rbp], 1
.L7:
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, edx
	cmp	DWORD PTR -108[rbp], eax
	jl	.L8
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -112[rbp], 0
	jmp	.L9
.L10:
	call	rand@PLT
	mov	ecx, DWORD PTR -132[rbp]
	mov	edx, DWORD PTR -128[rbp]
	imul	ecx, edx
	cdq
	idiv	ecx
	mov	DWORD PTR -80[rbp], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -112[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -112[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -76[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -112[rbp], 1
.L9:
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, edx
	cmp	DWORD PTR -112[rbp], eax
	jl	.L10
	mov	ecx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	printBoard
	mov	DWORD PTR -104[rbp], 0
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -104[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR -104[rbp]
	mov	DWORD PTR -116[rbp], eax
.L12:
	add	DWORD PTR -104[rbp], 1
.L11:
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, edx
	cmp	DWORD PTR -104[rbp], eax
	jl	.L13
	mov	DWORD PTR -100[rbp], 0
.L26:
	mov	eax, DWORD PTR -128[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	QWORD PTR -152[rbp], xmm2
	mov	eax, DWORD PTR -116[rbp]
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	eax, DWORD PTR -128[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	divss	xmm0, xmm1
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rax, xmm3
	movq	xmm0, rax
	call	ceil@PLT
	mulsd	xmm0, QWORD PTR -152[rbp]
	movsd	xmm1, QWORD PTR .LC9[rip]
	subsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -128[rbp]
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, eax
	movsd	QWORD PTR -152[rbp], xmm4
	mov	eax, DWORD PTR -116[rbp]
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	eax, DWORD PTR -128[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	divss	xmm0, xmm1
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, xmm0
	movq	rax, xmm5
	movq	xmm0, rax
	call	ceil@PLT
	mulsd	xmm0, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR -128[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	subsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -120[rbp]
	test	eax, eax
	jne	.L14
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rax, -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L15
.L14:
	mov	eax, DWORD PTR -116[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -120[rbp]
	cmp	edx, eax
	jne	.L16
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -88[rbp]
	je	.L16
	mov	eax, DWORD PTR -116[rbp]
	lea	esi, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, esi
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	ecx, DWORD PTR -120[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -116[rbp], 1
	add	DWORD PTR -100[rbp], 1
	mov	ecx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	printBoard
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -116[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -120[rbp]
	cmp	edx, eax
	jne	.L18
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	je	.L18
	mov	eax, DWORD PTR -116[rbp]
	lea	esi, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, esi
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	ecx, DWORD PTR -120[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	sub	DWORD PTR -116[rbp], 1
	add	DWORD PTR -100[rbp], 1
	mov	ecx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	printBoard
	jmp	.L17
.L18:
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -116[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -120[rbp]
	cmp	edx, eax
	jne	.L19
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -116[rbp]
	lea	ecx, [rdx+rax]
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, edx
	cmp	ecx, eax
	jg	.L19
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -116[rbp]
	lea	esi, [rdx+rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, esi
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	ecx, DWORD PTR -120[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	eax, DWORD PTR -128[rbp]
	add	DWORD PTR -116[rbp], eax
	add	DWORD PTR -100[rbp], 1
	mov	ecx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	printBoard
	jmp	.L17
.L19:
	mov	ecx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -116[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -120[rbp]
	cmp	edx, eax
	jne	.L20
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -116[rbp]
	sub	eax, edx
	test	eax, eax
	js	.L20
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -116[rbp]
	sub	eax, edx
	mov	esi, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, esi
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	ecx, DWORD PTR -120[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	eax, DWORD PTR -128[rbp]
	sub	DWORD PTR -116[rbp], eax
	add	DWORD PTR -100[rbp], 1
	mov	ecx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	printBoard
	jmp	.L17
.L20:
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -128[rbp]
	imul	edx, eax
	mov	eax, DWORD PTR -120[rbp]
	cmp	edx, eax
	jg	.L21
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L17
.L21:
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L17:
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	jmp	.L22
.L24:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -92[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	sub	eax, 1
	cmp	ecx, eax
	jne	.L23
	add	DWORD PTR -96[rbp], 1
.L23:
	add	DWORD PTR -92[rbp], 1
.L22:
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, edx
	sub	eax, 1
	cmp	DWORD PTR -92[rbp], eax
	jl	.L24
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, edx
	sub	eax, 2
	cmp	DWORD PTR -96[rbp], eax
	jne	.L15
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L25
.L15:
	mov	eax, DWORD PTR -120[rbp]
	test	eax, eax
	jne	.L26
.L25:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rax, -124[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rsp, rbx
	mov	eax, DWORD PTR -124[rbp]
	test	eax, eax
	jne	.L2
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	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
	.section	.rodata
.LC17:
	.string	" | "
.LC18:
	.string	" |   "
.LC19:
	.string	"%2d"
	.text
	.globl	printBoard
	.type	printBoard, @function
printBoard:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L30
.L34:
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -24[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L31
	cmp	DWORD PTR -4[rbp], 0
	jle	.L31
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
.L31:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L32
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L33
.L32:
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
.L33:
	add	DWORD PTR -4[rbp], 1
.L30:
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L34
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printBoard, .-printBoard
	.section	.rodata
	.align 8
.LC9:
	.long	0
	.long	1072693248
	.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	"175143567.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"*************************\000"
	.align	2
.LC1:
	.ascii	"******* Welcome to ******\000"
	.align	2
.LC2:
	.ascii	"*** Number Riddle Game***\000"
	.align	2
.LC3:
	.ascii	"******* Ver. 2.0 ********\000"
	.align	2
.LC4:
	.ascii	"****** Programmer *******\000"
	.align	2
.LC5:
	.ascii	"***** Antonio Roye ******\012\000"
	.align	2
.LC6:
	.ascii	"Enter number of rows (3-8): \000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"Enter number of cols (3-8): \000"
	.global	__aeabi_idivmod
	.global	__aeabi_i2d
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_d2iz
	.align	2
.LC9:
	.ascii	"\012(#Move %d), Enter a number to move (0 to exit):"
	.ascii	"\000"
	.align	2
.LC10:
	.ascii	"\012If you would like to return to the game press 1"
	.ascii	", otherwise press 0\000"
	.align	2
.LC11:
	.ascii	"\012This number is not on the game board!\000"
	.align	2
.LC12:
	.ascii	"\012This cell can't move!\000"
	.align	2
.LC13:
	.ascii	"\012\012You won!\000"
	.align	2
.LC14:
	.ascii	"\012If you want to play a new game enter 1, if not "
	.ascii	"enter 0:\000"
	.align	2
.LC15:
	.ascii	"\012Goodbye!\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #72
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L26+4
	bl	puts
	ldr	r0, .L26+8
	bl	puts
	ldr	r0, .L26+12
	bl	puts
	ldr	r0, .L26+16
	bl	puts
	ldr	r0, .L26+20
	bl	puts
	ldr	r0, .L26+24
	bl	puts
.L2:
	ldr	r0, .L26+28
	bl	puts
	sub	r3, fp, #92
	mov	r1, r3
	ldr	r0, .L26+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-92]
	cmp	r3, #2
	ble	.L2
	ldr	r3, [fp, #-92]
	cmp	r3, #8
	bgt	.L2
.L3:
	ldr	r0, .L26+36
	bl	puts
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L26+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-88]
	cmp	r3, #2
	ble	.L3
	ldr	r3, [fp, #-88]
	cmp	r3, #8
	bgt	.L3
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	mul	ip, r2, r3
	mov	r3, sp
	mov	r7, r3
	sub	r3, ip, #1
	str	r3, [fp, #-48]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L4
.L5:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-68]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L4:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	mul	r3, r2, r3
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	blt	.L5
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L6
.L7:
	bl	rand
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	mul	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-72]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-72]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L6:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	mul	r3, r2, r3
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-92]
	ldr	r1, [fp, #-88]
	ldr	r2, [fp, #-44]
	mov	r0, r3
	bl	printBoard
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L8
.L10:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-64]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-76]
.L9:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L8:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	mul	r3, r2, r3
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L10
	mov	r3, #0
	str	r3, [fp, #-60]
.L23:
	ldr	r3, [fp, #-88]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r6, r0
	ldr	r3, [fp, #-88]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r6
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L26+40
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-88]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r6, r0
	ldr	r3, [fp, #-88]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r6
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-88]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-60]
	ldr	r0, .L26+44
	bl	printf
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L26+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L26+48
	bl	puts
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L26+32
	bl	__isoc99_scanf
	b	.L12
.L11:
	ldr	r3, [fp, #-76]
	add	r2, r3, #1
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	bne	.L13
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	beq	.L13
	ldr	r3, [fp, #-76]
	add	r2, r3, #1
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-76]
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	ldr	r1, [fp, #-80]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-92]
	ldr	r1, [fp, #-88]
	ldr	r2, [fp, #-44]
	mov	r0, r3
	bl	printBoard
	b	.L14
.L13:
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	bne	.L15
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	beq	.L15
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-76]
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	ldr	r1, [fp, #-80]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-92]
	ldr	r1, [fp, #-88]
	ldr	r2, [fp, #-44]
	mov	r0, r3
	bl	printBoard
	b	.L14
.L15:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-76]
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	bne	.L16
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-76]
	add	r2, r2, r3
	ldr	r3, [fp, #-92]
	ldr	r1, [fp, #-88]
	mul	r3, r1, r3
	cmp	r2, r3
	bgt	.L16
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-76]
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-76]
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	ldr	r1, [fp, #-80]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-92]
	ldr	r1, [fp, #-88]
	ldr	r2, [fp, #-44]
	mov	r0, r3
	bl	printBoard
	b	.L14
.L16:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-76]
	sub	r2, r2, r3
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	bne	.L17
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-76]
	sub	r3, r2, r3
	cmp	r3, #0
	blt	.L17
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-76]
	sub	r2, r2, r3
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-76]
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	ldr	r1, [fp, #-80]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-76]
	sub	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-92]
	ldr	r1, [fp, #-88]
	ldr	r2, [fp, #-44]
	mov	r0, r3
	bl	printBoard
	b	.L14
.L17:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	mul	r2, r3, r2
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	bgt	.L18
	ldr	r0, .L26+52
	bl	puts
	b	.L14
.L18:
	ldr	r0, .L26+56
	bl	puts
.L14:
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L19
.L21:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-52]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-52]
	add	r1, r3, #1
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, r1, lsl #2]
	sub	r3, r3, #1
	cmp	r2, r3
	bne	.L20
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L20:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L19:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	mul	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	mul	r3, r2, r3
	sub	r3, r3, #2
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bne	.L12
	ldr	r0, .L26+60
	bl	puts
	b	.L22
.L12:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L23
.L22:
	ldr	r0, .L26+64
	bl	puts
	sub	r3, fp, #84
	mov	r1, r3
	ldr	r0, .L26+32
	bl	__isoc99_scanf
	mov	sp, r7
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L26+68
	bl	puts
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC16
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	1072693248
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.section	.rodata
	.align	2
.LC17:
	.ascii	" | \000"
	.align	2
.LC18:
	.ascii	" |   \000"
	.align	2
.LC19:
	.ascii	"%2d\000"
	.text
	.align	2
	.global	printBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	printBoard, %function
printBoard:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	b	.L29
.L33:
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L30
	ldr	r0, .L35
	bl	printf
	mov	r0, #10
	bl	putchar
.L30:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L31
	ldr	r0, .L35+4
	bl	printf
	b	.L32
.L31:
	ldr	r0, .L35
	bl	printf
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L35+8
	bl	printf
.L32:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L33
	ldr	r0, .L35
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	printBoard, .-printBoard
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
