	.file	"556011.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Chyba!\n"
	.align 8
.LC1:
	.string	"Zle zadane parametre! Pre napovedu pouzite prepinac --help\n"
.LC2:
	.string	"Nepodarilo sa alokovat pamat"
.LC3:
	.string	"Program sa ukonci!\n"
	.text
	.globl	showError
	.type	showError, @function
showError:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	cmp	DWORD PTR -4[rbp], 0
	je	.L2
	cmp	DWORD PTR -4[rbp], 1
	je	.L3
	jmp	.L4
.L2:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 59
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	jmp	.L4
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	nop
.L4:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	showError, .-showError
	.section	.rodata
	.align 8
.LC4:
	.ascii	"Argumenty programu:\n\t--help vypise napovedu\n\t--test skon"
	.ascii	"troluje ci zadany subor obsahuje validnu bitovu mapu\n\t--hl"
	.ascii	"ine v danem obrazku nalezne a vytiskne pocatecni a\n\t\tkonc"
	.ascii	"ovou souradnic"
	.string	"i prvni nejdelsi horizontalni usecky.\n\t--vline v danem obrazku nalezne a vytiskne pocatecni a\n\t\tkoncovou souradnici prvni nejdelsi vertikalni usecky.\n\t--square v danem obrazku nalezne a vytiskne pocatecni a\n\t\tkoncovou souradnici prvniho nejvetsiho ctverce."
	.text
	.globl	showHelp
	.type	showHelp, @function
showHelp:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC4[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	showHelp, .-showHelp
	.globl	getcolor
	.type	getcolor, @function
getcolor:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	imul	eax, DWORD PTR -16[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, ecx
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getcolor, .-getcolor
	.globl	find_vline
	.type	find_vline, @function
find_vline:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 72
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	BYTE PTR -25[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L9
.L17:
	mov	DWORD PTR -16[rbp], 0
	mov	BYTE PTR -25[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L16:
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getcolor
	cmp	al, 48
	jne	.L11
	mov	DWORD PTR -16[rbp], 0
	mov	BYTE PTR -25[rbp], 0
	jmp	.L12
.L11:
	movzx	eax, BYTE PTR -25[rbp]
	xor	eax, 1
	test	al, al
	je	.L13
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	BYTE PTR -25[rbp], 1
.L13:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jle	.L14
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
.L14:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jne	.L15
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -24[rbp], eax
	jge	.L15
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
.L15:
	add	DWORD PTR -16[rbp], 1
.L12:
	add	DWORD PTR -4[rbp], 1
.L10:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L16
	add	DWORD PTR -8[rbp], 1
.L9:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L17
	cmp	DWORD PTR -12[rbp], 0
	jle	.L18
	mov	eax, 1
	jmp	.L19
.L18:
	mov	eax, 0
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	find_vline, .-find_vline
	.globl	find_hline
	.type	find_hline, @function
find_hline:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 72
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	BYTE PTR -25[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L21
.L28:
	mov	DWORD PTR -16[rbp], 0
	mov	BYTE PTR -25[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L22
.L27:
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getcolor
	cmp	al, 48
	jne	.L23
	mov	DWORD PTR -16[rbp], 0
	mov	BYTE PTR -25[rbp], 0
	jmp	.L24
.L23:
	movzx	eax, BYTE PTR -25[rbp]
	xor	eax, 1
	test	al, al
	je	.L25
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	BYTE PTR -25[rbp], 1
.L25:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jle	.L26
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
.L26:
	add	DWORD PTR -16[rbp], 1
.L24:
	add	DWORD PTR -4[rbp], 1
.L22:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L27
	add	DWORD PTR -8[rbp], 1
.L21:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L28
	cmp	DWORD PTR -12[rbp], 0
	jle	.L29
	mov	eax, 1
	jmp	.L30
.L29:
	mov	eax, 1
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	find_hline, .-find_hline
	.globl	find_square
	.type	find_square, @function
find_square:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 72
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	DWORD PTR -12[rbp], 1
	mov	BYTE PTR -25[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L32
.L61:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L64
	mov	DWORD PTR -4[rbp], 0
	jmp	.L35
.L60:
	mov	BYTE PTR -26[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L65
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getcolor
	cmp	al, 49
	jne	.L38
	mov	BYTE PTR -27[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	jmp	.L39
.L59:
	mov	BYTE PTR -25[rbp], 1
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	lea	ecx, -1[rax]
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getcolor
	cmp	al, 48
	jne	.L40
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	add	DWORD PTR -4[rbp], eax
	mov	BYTE PTR -26[rbp], 1
	mov	BYTE PTR -25[rbp], 0
	jmp	.L38
.L40:
	cmp	BYTE PTR -25[rbp], 0
	je	.L41
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	lea	edx, -1[rax]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getcolor
	cmp	al, 48
	jne	.L41
	mov	BYTE PTR -26[rbp], 1
	mov	BYTE PTR -25[rbp], 0
	jmp	.L38
.L41:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
	jmp	.L42
.L45:
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getcolor
	cmp	al, 48
	jne	.L43
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	add	DWORD PTR -4[rbp], eax
	mov	BYTE PTR -25[rbp], 0
	mov	BYTE PTR -26[rbp], 1
	jmp	.L44
.L43:
	add	DWORD PTR -24[rbp], 1
.L42:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	sub	eax, 1
	cmp	DWORD PTR -24[rbp], eax
	jge	.L44
	cmp	BYTE PTR -27[rbp], 0
	je	.L44
	cmp	BYTE PTR -25[rbp], 0
	jne	.L45
.L44:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	jmp	.L46
.L49:
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getcolor
	cmp	al, 48
	jne	.L47
	mov	BYTE PTR -25[rbp], 0
	mov	BYTE PTR -26[rbp], 1
	jmp	.L48
.L47:
	add	DWORD PTR -20[rbp], 1
.L46:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jge	.L48
	cmp	BYTE PTR -27[rbp], 0
	je	.L48
	cmp	BYTE PTR -25[rbp], 0
	jne	.L49
.L48:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
	jmp	.L50
.L53:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	lea	edx, -1[rax]
	mov	ecx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getcolor
	cmp	al, 48
	jne	.L51
	mov	BYTE PTR -25[rbp], 0
	jmp	.L52
.L51:
	add	DWORD PTR -24[rbp], 1
.L50:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cmp	DWORD PTR -24[rbp], eax
	jge	.L52
	cmp	BYTE PTR -25[rbp], 0
	jne	.L53
.L52:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	jmp	.L54
.L57:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	lea	ecx, -1[rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getcolor
	cmp	al, 48
	jne	.L55
	mov	BYTE PTR -25[rbp], 0
	jmp	.L56
.L55:
	add	DWORD PTR -20[rbp], 1
.L54:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jge	.L56
	cmp	BYTE PTR -25[rbp], 0
	jne	.L57
.L56:
	cmp	BYTE PTR -25[rbp], 0
	je	.L58
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jle	.L58
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
.L58:
	mov	BYTE PTR -27[rbp], 0
	add	DWORD PTR -16[rbp], 1
.L39:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jg	.L38
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jg	.L38
	movzx	eax, BYTE PTR -26[rbp]
	xor	eax, 1
	test	al, al
	jne	.L59
.L38:
	add	DWORD PTR -4[rbp], 1
.L35:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L60
	jmp	.L37
.L65:
	nop
.L37:
	add	DWORD PTR -8[rbp], 1
.L32:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L61
	jmp	.L34
.L64:
	nop
.L34:
	cmp	DWORD PTR -12[rbp], 1
	jle	.L62
	mov	eax, 1
	jmp	.L63
.L62:
	mov	eax, 0
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	find_square, .-find_square
	.globl	initialize_bitmap
	.type	initialize_bitmap, @function
initialize_bitmap:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -16[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	initialize_bitmap, .-initialize_bitmap
	.section	.rodata
.LC5:
	.string	"%d"
	.text
	.globl	load_bitmap
	.type	load_bitmap, @function
load_bitmap:
.LFB13:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L69
.L74:
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	jg	.L70
	mov	eax, 0
	jmp	.L76
.L70:
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	js	.L72
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 1
	jle	.L73
.L72:
	mov	eax, 0
	jmp	.L76
.L73:
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, 48[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -12[rbp], 1
.L69:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	cmp	DWORD PTR -12[rbp], eax
	jl	.L74
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	jne	.L75
	mov	eax, 0
	jmp	.L76
.L75:
	mov	eax, 1
.L76:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L77
	call	__stack_chk_fail@PLT
.L77:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	load_bitmap, .-load_bitmap
	.globl	free_bitmap
	.type	free_bitmap, @function
free_bitmap:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	free_bitmap, .-free_bitmap
	.section	.rodata
.LC6:
	.string	"--help"
.LC7:
	.string	"--hline"
.LC8:
	.string	"--vline"
.LC9:
	.string	"--square"
.LC10:
	.string	"--test"
	.text
	.globl	processArgs
	.type	processArgs, @function
processArgs:
.LFB15:
	.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, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 1
	jle	.L80
	cmp	DWORD PTR -36[rbp], 4
	jle	.L81
.L80:
	mov	DWORD PTR -32[rbp], 5
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	jmp	.L90
.L81:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L83
	mov	DWORD PTR -32[rbp], 0
	jmp	.L84
.L83:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L85
	mov	DWORD PTR -32[rbp], 1
	jmp	.L84
.L85:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L86
	mov	DWORD PTR -32[rbp], 2
	jmp	.L84
.L86:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L87
	mov	DWORD PTR -32[rbp], 3
	jmp	.L84
.L87:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L88
	mov	DWORD PTR -32[rbp], 4
	jmp	.L84
.L88:
	mov	DWORD PTR -32[rbp], 5
.L84:
	cmp	DWORD PTR -36[rbp], 3
	jne	.L89
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L89:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
.L90:
	mov	rcx, rax
	mov	rbx, rdx
	mov	eax, ecx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	processArgs, .-processArgs
	.section	.rodata
.LC11:
	.string	"r"
.LC12:
	.string	"Error"
.LC13:
	.string	"%d %d"
.LC14:
	.string	"Invalid"
.LC15:
	.string	"Valid"
.LC16:
	.string	"%d %d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	processArgs
	mov	ecx, eax
	mov	rax, rdx
	mov	DWORD PTR -48[rbp], ecx
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 5
	jne	.L92
	mov	edi, 0
	call	showError
	mov	eax, 1
	jmp	.L104
.L92:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	jne	.L94
	mov	eax, 0
	call	showHelp
	mov	eax, 0
	jmp	.L104
.L94:
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L95
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L104
.L95:
	lea	rcx, -60[rbp]
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	jg	.L96
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L104
.L96:
	mov	edx, DWORD PTR -60[rbp]
	mov	ecx, DWORD PTR -64[rbp]
	lea	rax, -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	initialize_bitmap
	test	rax, rax
	jne	.L97
	mov	edi, 1
	call	showError
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	free_bitmap
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L104
.L97:
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	load_bitmap
	mov	BYTE PTR -81[rbp], al
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 4
	jne	.L98
	cmp	BYTE PTR -81[rbp], 0
	je	.L99
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L100
.L99:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L100
.L98:
	movzx	eax, BYTE PTR -81[rbp]
	xor	eax, 1
	test	al, al
	je	.L100
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	free_bitmap
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L104
.L100:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 2
	jne	.L101
	lea	rdi, -68[rbp]
	lea	rcx, -76[rbp]
	lea	rdx, -72[rbp]
	lea	rsi, -80[rbp]
	lea	rax, -32[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	find_vline
	mov	esi, DWORD PTR -68[rbp]
	mov	ecx, DWORD PTR -76[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L102
.L101:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 1
	jne	.L103
	lea	rdi, -68[rbp]
	lea	rcx, -76[rbp]
	lea	rdx, -72[rbp]
	lea	rsi, -80[rbp]
	lea	rax, -32[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	find_hline
	mov	esi, DWORD PTR -68[rbp]
	mov	ecx, DWORD PTR -76[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L102
.L103:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 3
	jne	.L102
	lea	rdi, -68[rbp]
	lea	rcx, -76[rbp]
	lea	rdx, -72[rbp]
	lea	rsi, -80[rbp]
	lea	rax, -32[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	find_square
	mov	esi, DWORD PTR -68[rbp]
	mov	ecx, DWORD PTR -76[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L102:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	free_bitmap
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L104:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L105
	call	__stack_chk_fail@PLT
.L105:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.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	"556011.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Chyba!\012\000"
	.align	2
.LC1:
	.ascii	"Zle zadane parametre! Pre napovedu pouzite prepinac"
	.ascii	" --help\012\000"
	.align	2
.LC2:
	.ascii	"Nepodarilo sa alokovat pamat\000"
	.align	2
.LC3:
	.ascii	"Program sa ukonci!\012\000"
	.text
	.align	2
	.global	showError
	.syntax unified
	.arm
	.fpu softvfp
	.type	showError, %function
showError:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L5+4
	bl	fwrite
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L3
	b	.L4
.L2:
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #59
	mov	r1, #1
	ldr	r0, .L5+8
	bl	fwrite
	b	.L4
.L3:
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L5+12
	bl	fwrite
	nop
.L4:
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L5+16
	bl	fwrite
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	showError, .-showError
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Argumenty programu:\012\011--help vypise napovedu\012"
	.ascii	"\011--test skontroluje ci zadany subor obsahuje val"
	.ascii	"idnu bitovu mapu\012\011--hline v danem obrazku nal"
	.ascii	"ezne a vytiskne pocatecni a\012\011\011koncovou sou"
	.ascii	"radnici prvni nejdelsi horizontalni usecky.\012\011"
	.ascii	"--vline v danem obrazku nalezne a vytiskne pocatecn"
	.ascii	"i a\012\011\011koncovou souradnici prvni nejdelsi v"
	.ascii	"ertikalni usecky.\012\011--square v danem obrazku n"
	.ascii	"alezne a vytiskne pocatecni a\012\011\011koncovou s"
	.ascii	"ouradnici prvniho nejvetsiho ctverce.\000"
	.text
	.align	2
	.global	showHelp
	.syntax unified
	.arm
	.fpu softvfp
	.type	showHelp, %function
showHelp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L8
	bl	puts
	nop
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC4
	.size	showHelp, .-showHelp
	.align	2
	.global	getcolor
	.syntax unified
	.arm
	.fpu softvfp
	.type	getcolor, %function
getcolor:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #4]
	ldr	r1, [fp, #-16]
	mul	r1, r2, r1
	ldr	r2, [fp, #-12]
	add	r2, r1, r2
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getcolor, .-getcolor
	.align	2
	.global	find_vline
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_vline, %function
find_vline:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r3, #0
	strb	r3, [fp, #-29]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L13
.L21:
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-29]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L14
.L20:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	getcolor
	mov	r3, r0
	cmp	r3, #48
	bne	.L15
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-29]
	b	.L16
.L15:
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-24]
	mov	r3, #1
	strb	r3, [fp, #-29]
.L17:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L18
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
.L18:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L19
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bge	.L19
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
.L19:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L16:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L14:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L22
	mov	r3, #1
	b	.L23
.L22:
	mov	r3, #0
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	find_vline, .-find_vline
	.align	2
	.global	find_hline
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_hline, %function
find_hline:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r3, #0
	strb	r3, [fp, #-29]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L25
.L32:
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-29]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L26
.L31:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-40]
	bl	getcolor
	mov	r3, r0
	cmp	r3, #48
	bne	.L27
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-29]
	b	.L28
.L27:
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
	mov	r3, #1
	strb	r3, [fp, #-29]
.L29:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L30
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L30:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L28:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L26:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L31
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L33
	mov	r3, #1
	b	.L34
.L33:
	mov	r3, #1
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	find_hline, .-find_hline
	.align	2
	.global	find_square
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_square, %function
find_square:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-29]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L36
.L65:
	ldr	r3, [fp, #-40]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L68
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L39
.L64:
	mov	r3, #0
	strb	r3, [fp, #-30]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L69
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-40]
	bl	getcolor
	mov	r3, r0
	cmp	r3, #49
	bne	.L42
	mov	r3, #1
	strb	r3, [fp, #-31]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L43
.L63:
	mov	r3, #1
	strb	r3, [fp, #-29]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	getcolor
	mov	r3, r0
	cmp	r3, #48
	bne	.L44
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r3, #1
	strb	r3, [fp, #-30]
	mov	r3, #0
	strb	r3, [fp, #-29]
	b	.L42
.L44:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L45
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-40]
	bl	getcolor
	mov	r3, r0
	cmp	r3, #48
	bne	.L45
	mov	r3, #1
	strb	r3, [fp, #-30]
	mov	r3, #0
	strb	r3, [fp, #-29]
	b	.L42
.L45:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L46
.L49:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-40]
	bl	getcolor
	mov	r3, r0
	cmp	r3, #48
	bne	.L47
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-29]
	mov	r3, #1
	strb	r3, [fp, #-30]
	b	.L48
.L47:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L46:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bge	.L48
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L48
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L49
.L48:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L50
.L53:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-40]
	bl	getcolor
	mov	r3, r0
	cmp	r3, #48
	bne	.L51
	mov	r3, #0
	strb	r3, [fp, #-29]
	mov	r3, #1
	strb	r3, [fp, #-30]
	b	.L52
.L51:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L50:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L52
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L52
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L53
.L52:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L54
.L57:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-40]
	bl	getcolor
	mov	r3, r0
	cmp	r3, #48
	bne	.L55
	mov	r3, #0
	strb	r3, [fp, #-29]
	b	.L56
.L55:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L54:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bge	.L56
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L57
.L56:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L58
.L61:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	getcolor
	mov	r3, r0
	cmp	r3, #48
	bne	.L59
	mov	r3, #0
	strb	r3, [fp, #-29]
	b	.L60
.L59:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L58:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L60
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L61
.L60:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L62
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L62
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
.L62:
	mov	r3, #0
	strb	r3, [fp, #-31]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L43:
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bgt	.L42
	ldr	r3, [fp, #-40]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bgt	.L42
	ldrb	r3, [fp, #-30]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L63
.L42:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L39:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L64
	b	.L41
.L69:
	nop
.L41:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L36:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L65
	b	.L38
.L68:
	nop
.L38:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L66
	mov	r3, #1
	b	.L67
.L66:
	mov	r3, #0
.L67:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	find_square, .-find_square
	.align	2
	.global	initialize_bitmap
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize_bitmap, %function
initialize_bitmap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	initialize_bitmap, .-initialize_bitmap
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	load_bitmap
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_bitmap, %function
load_bitmap:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L73
.L78:
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L82+4
	ldr	r0, [fp, #-28]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L74
	mov	r3, #0
	b	.L80
.L74:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L76
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L77
.L76:
	mov	r3, #0
	b	.L80
.L77:
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L73:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L78
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L82+4
	ldr	r0, [fp, #-28]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L79
	mov	r3, #0
	b	.L80
.L79:
	mov	r3, #1
.L80:
	ldr	r2, .L82
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L81
	bl	__stack_chk_fail
.L81:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC6
	.word	.LC5
	.size	load_bitmap, .-load_bitmap
	.align	2
	.global	free_bitmap
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_bitmap, %function
free_bitmap:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_bitmap, .-free_bitmap
	.section	.rodata
	.align	2
.LC7:
	.ascii	"--help\000"
	.align	2
.LC8:
	.ascii	"--hline\000"
	.align	2
.LC9:
	.ascii	"--vline\000"
	.align	2
.LC10:
	.ascii	"--square\000"
	.align	2
.LC11:
	.ascii	"--test\000"
	.text
	.align	2
	.global	processArgs
	.syntax unified
	.arm
	.fpu softvfp
	.type	processArgs, %function
processArgs:
	@ 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]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	ble	.L86
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	ble	.L87
.L86:
	mov	r3, #5
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	b	.L85
.L87:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L97
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L89
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L90
.L89:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L97+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L90
.L91:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L97+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L92
	mov	r3, #2
	str	r3, [fp, #-12]
	b	.L90
.L92:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L97+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L93
	mov	r3, #3
	str	r3, [fp, #-12]
	b	.L90
.L93:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L97+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L94
	mov	r3, #4
	str	r3, [fp, #-12]
	b	.L90
.L94:
	mov	r3, #5
	str	r3, [fp, #-12]
.L90:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bne	.L95
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
.L95:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
.L85:
	ldr	r0, [fp, #-16]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L98:
	.align	2
.L97:
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	processArgs, .-processArgs
	.section	.rodata
	.align	2
.LC12:
	.ascii	"r\000"
	.align	2
.LC13:
	.ascii	"Error\000"
	.align	2
.LC14:
	.ascii	"%d %d\000"
	.align	2
.LC15:
	.ascii	"Invalid\000"
	.align	2
.LC16:
	.ascii	"Valid\000"
	.align	2
.LC17:
	.ascii	"%d %d %d %d\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L114
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	processArgs
	ldr	r3, [fp, #-28]
	cmp	r3, #5
	bne	.L100
	mov	r0, #0
	bl	showError
	mov	r3, #1
	b	.L112
.L100:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L102
	bl	showHelp
	mov	r3, #0
	b	.L112
.L102:
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-24]
	ldr	r1, .L114+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L103
	ldr	r0, .L114+8
	bl	perror
	mov	r3, #1
	b	.L112
.L103:
	sub	r3, fp, #36
	sub	r2, fp, #40
	ldr	r1, .L114+12
	ldr	r0, [fp, #-32]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	bgt	.L104
	ldr	r0, .L114+16
	bl	puts
	ldr	r0, [fp, #-32]
	bl	fclose
	mov	r3, #1
	b	.L112
.L104:
	ldr	r1, [fp, #-40]
	ldr	r2, [fp, #-36]
	sub	r3, fp, #20
	mov	r0, r3
	bl	initialize_bitmap
	mov	r3, r0
	cmp	r3, #0
	bne	.L105
	mov	r0, #1
	bl	showError
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
	sub	r3, fp, #20
	mov	r0, r3
	bl	free_bitmap
	ldr	r0, [fp, #-32]
	bl	fclose
	mov	r3, #1
	b	.L112
.L105:
	sub	r3, fp, #20
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	load_bitmap
	mov	r3, r0
	strb	r3, [fp, #-57]
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	bne	.L106
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L107
	ldr	r0, .L114+20
	bl	puts
	b	.L108
.L107:
	ldr	r0, .L114+16
	bl	puts
	b	.L108
.L106:
	ldrb	r3, [fp, #-57]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L108
	ldr	r0, .L114+16
	bl	puts
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
	sub	r3, fp, #20
	mov	r0, r3
	bl	free_bitmap
	ldr	r0, [fp, #-32]
	bl	fclose
	mov	r3, #1
	b	.L112
.L108:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	bne	.L109
	sub	ip, fp, #52
	sub	r2, fp, #48
	sub	r1, fp, #56
	sub	r0, fp, #20
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r3, ip
	bl	find_vline
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-48]
	ldr	r0, [fp, #-52]
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L114+24
	bl	printf
	b	.L110
.L109:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L111
	sub	ip, fp, #52
	sub	r2, fp, #48
	sub	r1, fp, #56
	sub	r0, fp, #20
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r3, ip
	bl	find_hline
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-48]
	ldr	r0, [fp, #-52]
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L114+24
	bl	printf
	b	.L110
.L111:
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bne	.L110
	sub	ip, fp, #52
	sub	r2, fp, #48
	sub	r1, fp, #56
	sub	r0, fp, #20
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r3, ip
	bl	find_square
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-48]
	ldr	r0, [fp, #-52]
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L114+24
	bl	printf
.L110:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
	sub	r3, fp, #20
	mov	r0, r3
	bl	free_bitmap
	ldr	r0, [fp, #-32]
	bl	fclose
	mov	r3, #0
.L112:
	ldr	r2, .L114
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L113
	bl	__stack_chk_fail
.L113:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L115:
	.align	2
.L114:
	.word	.LC18
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
