version	U12.1.00
uid	tieedit.u1-1786291401-0
record	pattrec,1
	0,tile
impl	error
link	interact.u
link	patxform.u
link	vdialog.u
link	vsetup.u
link	dialog.u
link	wopen.u
global	67
	0,000001,cellsize,0
	1,000001,flip_horiz,0
	2,000001,flip_left,0
	3,000001,flip_right,0
	4,000001,flip_vert,0
	5,000001,grid_height,0
	6,000001,grid_pane,0
	7,000001,grid_root,0
	8,000001,grid_rows,0
	9,000001,grid_state,0
	10,000001,grid_window,0
	11,000001,grid_width,0
	12,000001,grid_vidgets,0
	13,000001,hbits,0
	14,000001,hi_horiz,0
	15,000001,hi_ident,0
	16,000001,hi_left,0
	17,000001,hi_right,0
	18,000001,hi_rot_180,0
	19,000001,hi_rot_90,0
	20,000001,hi_rot_m90,0
	21,000001,hi_vert,0
	22,000001,ident,0
	23,000001,maxsize,0
	24,000001,mode,0
	25,000001,old_pat,0
	26,000001,rotate_180,0
	27,000001,rotate_90,0
	28,000001,rotate_m90,0
	29,000001,subservient,0
	30,000001,sym_image_current,0
	31,000001,sym_image_next,0
	32,000001,sym_state,0
	33,000001,symmet_xpos,0
	34,000001,symmet_yoff,0
	35,000001,symmetries,0
	36,000001,tile_touched,0
	37,000001,vbits,0
	38,000001,xform_xpos,0
	39,000001,xform_ypos,0
	40,000011,pattrec,1
	41,000005,copy_tile,0
	42,000005,grid,0
	43,000005,grid_cb,2
	44,000005,grid_file_cb,2
	45,000005,grid_init,0
	46,000005,grid_shortcuts,1
	47,000005,icheck,1
	48,000005,new_tile,0
	49,000005,open_gif,0
	50,000005,paste_tile,0
	51,000005,place,5
	52,000005,read_pattern,1
	53,000005,read_tile,0
	54,000005,return_tile,0
	55,000005,save_image,0
	56,000005,setbit,3
	57,000005,setup,0
	58,000005,symmet_cb,2
	59,000005,tile_cb,2
	60,000005,tile_info,0
	61,000005,undo_xform,0
	62,000005,write_tile,0
	63,000005,xform,2
	64,000005,xform_cb,2
	65,000005,grid_ui_atts,0
	66,000005,grid_ui,2

proc copy_tile
	local	0,000020,output
	local	1,000000,open
	local	2,000000,Notice
	local	3,000000,write
	local	4,000000,rows2pat
	local	5,000000,grid_rows
	local	6,000000,close
	con	0,010000,12,057,164,155,160,057,164,151,145,143,154,151,160
	con	1,010000,1,167
	con	2,010000,17,103,141,156,156,157,164,040,143,157,160,171,040,164,151,154,145,056
	declend
	filen	tieedit.icn
	line	86
	colm	11
	synt	any
	mark	L1
	pnull
	var	0
	mark	L2
	var	1
	str	0
	str	1
	line	89
	colm	18
	synt	any
	invoke	2
	line	89
	colm	40
	synt	any
	esusp
	goto	L3
lab L2
	mark	L4
	var	2
	str	2
	line	90
	colm	13
	synt	any
	invoke	1
	unmark
lab L4
	line	91
	colm	7
	synt	any
	pfail
lab L3
	line	89
	colm	11
	synt	any
	asgn
	unmark
lab L1
	mark	L5
	var	3
	var	0
	var	4
	var	5
	line	94
	colm	26
	synt	any
	invoke	1
	line	94
	colm	9
	synt	any
	invoke	2
	unmark
lab L5
	mark	L6
	var	6
	var	0
	line	96
	colm	9
	synt	any
	invoke	1
	unmark
lab L6
	mark	L7
	mark	L8
	pnull
	line	98
	colm	4
	synt	any
	pret
lab L8
	synt	any
	pfail
	unmark
lab L7
	pnull
	line	100
	colm	1
	synt	any
	pfail
	end
proc grid
	local	0,000020,x
	local	1,000020,y
	local	2,000000,EraseArea
	local	3,000000,grid_pane
	local	4,000000,hbits
	local	5,000000,cellsize
	local	6,000000,DrawLine
	local	7,000000,vbits
	con	0,002000,1,0
	declend
	line	104
	colm	11
	synt	any
	mark	L1
	var	2
	var	3
	line	107
	colm	13
	synt	any
	invoke	1
	unmark
lab L1
	mark	L2
	line	108
	colm	4
	synt	every
	mark0
	pnull
	var	0
	pnull
	int	0
	pnull
	var	4
	var	5
	line	108
	colm	26
	synt	any
	mult
	var	5
	line	108
	colm	17
	synt	any
	toby
	line	108
	colm	12
	synt	any
	asgn
	pop
	mark0
	var	6
	var	3
	var	0
	int	0
	var	0
	pnull
	var	7
	var	5
	line	109
	colm	42
	synt	any
	mult
	line	109
	colm	15
	synt	any
	invoke	5
	unmark
lab L3
	efail
lab L4
	line	108
	colm	4
	synt	endevery
	unmark
lab L2
	mark	L5
	line	110
	colm	4
	synt	every
	mark0
	pnull
	var	1
	pnull
	int	0
	pnull
	var	7
	var	5
	line	110
	colm	26
	synt	any
	mult
	var	5
	line	110
	colm	17
	synt	any
	toby
	line	110
	colm	12
	synt	any
	asgn
	pop
	mark0
	var	6
	var	3
	int	0
	var	1
	pnull
	var	4
	var	5
	line	111
	colm	39
	synt	any
	mult
	var	1
	line	111
	colm	15
	synt	any
	invoke	5
	unmark
lab L6
	efail
lab L7
	line	110
	colm	4
	synt	endevery
	unmark
lab L5
	mark	L8
	mark	L9
	pnull
	line	113
	colm	4
	synt	any
	pret
lab L9
	synt	any
	pfail
	unmark
lab L8
	pnull
	line	115
	colm	1
	synt	any
	pfail
	end
proc grid_cb
	local	0,001000,vidget
	local	1,001000,e
	local	2,000020,x
	local	3,000020,y
	local	4,000020,i
	local	5,000020,j
	local	6,000040,xpos
	local	7,000040,ypos
	local	8,000000,grid_vidgets
	local	9,000000,cellsize
	local	10,000000,hbits
	local	11,000000,vbits
	local	12,000000,setbit
	local	13,000000,tile_touched
	con	0,010000,4,147,162,151,144
	con	1,002000,1,0
	con	2,010000,1,061
	con	3,010000,1,060
	con	4,002000,1,1
	declend
	line	119
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	mark	L4
	pnull
	var	6
	pnull
	pnull
	var	8
	str	0
	line	124
	colm	27
	synt	any
	subsc
	line	124
	colm	35
	synt	any
	field	ax
	line	124
	colm	12
	synt	any
	asgn
	unmark
lab L4
	pnull
	var	7
	pnull
	pnull
	var	8
	str	0
	line	125
	colm	27
	synt	any
	subsc
	line	125
	colm	35
	synt	any
	field	ay
	line	125
	colm	12
	synt	any
	asgn
	unmark
lab L2
	einit	L1
lab L3
	mark	L5
	line	128
	colm	4
	synt	if
	mark0
	pnull
	var	1
	mark	L6
	line	128
	colm	14
	synt	any
	keywd	lpress
	line	128
	colm	22
	synt	any
	esusp
	goto	L7
lab L6
	mark	L8
	line	128
	colm	24
	synt	any
	keywd	rpress
	line	128
	colm	32
	synt	any
	esusp
	goto	L9
lab L8
	mark	L10
	line	128
	colm	34
	synt	any
	keywd	ldrag
	line	128
	colm	41
	synt	any
	esusp
	goto	L11
lab L10
	line	128
	colm	43
	synt	any
	keywd	rdrag
lab L11
lab L9
lab L7
	line	128
	colm	9
	synt	any
	eqv
	unmark
	mark	L12
	pnull
	var	5
	pnull
	pnull
	line	129
	colm	13
	synt	any
	keywd	x
	var	6
	line	129
	colm	16
	synt	any
	minus
	var	9
	line	129
	colm	24
	synt	any
	div
	line	129
	colm	9
	synt	any
	asgn
	unmark
lab L12
	mark	L13
	pnull
	var	4
	pnull
	pnull
	line	130
	colm	13
	synt	any
	keywd	y
	var	7
	line	130
	colm	16
	synt	any
	minus
	var	9
	line	130
	colm	24
	synt	any
	div
	line	130
	colm	9
	synt	any
	asgn
	unmark
lab L13
	mark	L14
	line	131
	colm	7
	synt	if
	mark0
	mark	L15
	pnull
	var	5
	int	1
	line	131
	colm	12
	synt	any
	numlt
	line	131
	colm	16
	synt	any
	esusp
	goto	L16
lab L15
	mark	L17
	pnull
	var	5
	var	10
	line	131
	colm	20
	synt	any
	numge
	line	131
	colm	29
	synt	any
	esusp
	goto	L18
lab L17
	mark	L19
	pnull
	var	4
	int	1
	line	131
	colm	33
	synt	any
	numlt
	line	131
	colm	37
	synt	any
	esusp
	goto	L20
lab L19
	pnull
	var	4
	var	11
	line	131
	colm	41
	synt	any
	numge
lab L20
lab L18
lab L16
	unmark
	mark	L21
	pnull
	line	131
	colm	55
	synt	any
	pret
lab L21
	synt	any
	pfail
	line	131
	colm	7
	synt	endif
	unmark
lab L14
	mark	L22
	line	133
	colm	7
	synt	ifelse
	mark	L23
	pnull
	var	1
	mark	L25
	line	133
	colm	17
	synt	any
	keywd	lpress
	line	133
	colm	25
	synt	any
	esusp
	goto	L26
lab L25
	line	133
	colm	27
	synt	any
	keywd	ldrag
lab L26
	line	133
	colm	12
	synt	any
	eqv
	unmark
	var	12
	var	4
	var	5
	str	2
	line	133
	colm	46
	synt	any
	invoke	3
	goto	L24
lab L23
	var	12
	var	4
	var	5
	str	3
	line	134
	colm	18
	synt	any
	invoke	3
lab L24
	line	133
	colm	7
	synt	endifelse
	unmark
lab L22
	pnull
	var	13
	int	4
	line	136
	colm	20
	synt	any
	asgn
	line	128
	colm	4
	synt	endif
	unmark
lab L5
	mark	L27
	mark	L28
	pnull
	line	139
	colm	4
	synt	any
	pret
lab L28
	synt	any
	pfail
	unmark
lab L27
	pnull
	line	141
	colm	1
	synt	any
	pfail
	end
proc grid_file_cb
	local	0,001000,vidget
	local	1,001000,menu
	local	2,000000,read_tile
	local	3,000000,open_gif
	local	4,000000,write_tile
	local	5,000000,copy_tile
	local	6,000000,paste_tile
	local	7,000000,return_tile
	local	8,000000,save_image
	con	0,002000,1,1
	con	1,010000,8,162,145,141,144,040,040,100,122
	con	2,010000,8,157,160,145,156,040,040,100,117
	con	3,010000,8,167,162,151,164,145,040,100,127
	con	4,010000,8,143,157,160,171,040,040,100,103
	con	5,010000,8,160,141,163,164,145,040,100,120
	con	6,010000,8,161,165,151,164,040,040,100,121
	con	7,010000,8,163,141,166,145,040,040,100,123
	declend
	line	145
	colm	11
	synt	any
	mark	L1
	mark	L2
	line	147
	colm	11
	synt	case
	mark0
	pnull
	var	1
	int	0
	line	147
	colm	20
	synt	any
	subsc
	eret
	mark	L4
	ccase
	str	1
	line	148
	colm	19
	synt	any
	eqv
	unmark
	pop
	var	2
	line	148
	colm	31
	synt	any
	invoke	0
	goto	L3
lab L4
	mark	L5
	ccase
	str	2
	line	149
	colm	19
	synt	any
	eqv
	unmark
	pop
	var	3
	line	149
	colm	30
	synt	any
	invoke	0
	goto	L3
lab L5
	mark	L6
	ccase
	str	3
	line	150
	colm	19
	synt	any
	eqv
	unmark
	pop
	var	4
	line	150
	colm	32
	synt	any
	invoke	0
	goto	L3
lab L6
	mark	L7
	ccase
	str	4
	line	151
	colm	19
	synt	any
	eqv
	unmark
	pop
	var	5
	line	151
	colm	31
	synt	any
	invoke	0
	goto	L3
lab L7
	mark	L8
	ccase
	str	5
	line	152
	colm	19
	synt	any
	eqv
	unmark
	pop
	var	6
	line	152
	colm	32
	synt	any
	invoke	0
	goto	L3
lab L8
	mark	L9
	ccase
	str	6
	line	153
	colm	19
	synt	any
	eqv
	unmark
	pop
	var	7
	line	153
	colm	33
	synt	any
	invoke	0
	goto	L3
lab L9
	mark	L10
	ccase
	str	7
	line	154
	colm	19
	synt	any
	eqv
	unmark
	pop
	var	8
	line	154
	colm	32
	synt	any
	invoke	0
	goto	L3
lab L10
	efail
lab L3
	line	147
	colm	11
	synt	endcase
	line	147
	colm	4
	synt	any
	pret
lab L2
	synt	any
	pfail
	unmark
lab L1
	mark	L11
	mark	L12
	pnull
	line	157
	colm	4
	synt	any
	pret
lab L12
	synt	any
	pfail
	unmark
lab L11
	pnull
	line	159
	colm	1
	synt	any
	pfail
	end
proc grid_init
	local	0,000020,e
	local	1,000020,i
	local	2,000020,j
	local	3,000020,x
	local	4,000020,y
	local	5,000020,v
	local	6,000020,h
	local	7,000020,input
	local	8,000020,window_save
	local	9,000020,atts
	local	10,000020,shift_up
	local	11,000020,shift_left
	local	12,000020,shift_right
	local	13,000020,shift_down
	local	14,000020,pixmap
	local	15,000020,clear
	local	16,000020,invert
	local	17,000020,scramble
	local	18,000020,trim
	local	19,000020,enlarge
	local	20,000020,resize
	local	21,000020,crop
	local	22,000000,symmetries
	local	23,000000,sym_state
	local	24,000000,tile_touched
	local	25,000000,grid_ui_atts
	local	26,000000,put
	local	27,000000,WOpen
	local	28,000000,stop
	local	29,000000,grid_vidgets
	local	30,000000,grid_ui
	local	31,000000,grid_window
	local	32,000000,grid_root
	local	33,000000,xform_xpos
	local	34,000000,xform_ypos
	local	35,000000,grid_width
	local	36,000000,grid_height
	local	37,000000,maxsize
	local	38,000000,grid_pane
	local	39,000000,Clone
	local	40,000000,Clip
	local	41,000000,symmet_xpos
	local	42,000000,symmet_yoff
	local	43,000000,flip_left
	local	44,000000,flip_right
	local	45,000000,flip_vert
	local	46,000000,flip_horiz
	local	47,000000,rotate_90
	local	48,000000,rotate_m90
	local	49,000000,rotate_180
	local	50,000000,ident
	local	51,000000,hi_ident
	local	52,000000,hi_rot_90
	local	53,000000,hi_rot_m90
	local	54,000000,hi_rot_180
	local	55,000000,hi_right
	local	56,000000,hi_left
	local	57,000000,hi_vert
	local	58,000000,hi_horiz
	local	59,000000,sym_image_next
	local	60,000000,sym_image_current
	local	61,000000,place
	con	0,002000,1,0
	con	1,002000,1,1
	con	2,010000,13,143,141,156,166,141,163,075,150,151,144,144,145,156
	con	3,010000,35,052,052,052,040,143,141,156,047,164,040,157,160,145,156,040,164,151,145,055,165,160,040,145,144,151,164,157,162,040,167,151,156,144,157,167
	con	4,010000,4,162,157,157,164
	con	5,010000,5,170,146,157,162,155
	con	6,010000,4,147,162,151,144
	con	7,002000,1,3
	con	8,010000,8,142,147,075,167,150,151,164,145
	con	9,010000,3,144,170,075
	con	10,010000,3,144,171,075
	con	11,010000,9,163,171,155,162,145,147,151,157,156
	con	12,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,070,061,064,061,143,061,064,063,145,061,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	13,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,060,061,064,060,060,061,064,060,060,061,064,060,061,061,064,060,061,071,065,146,146,144,064,060,061,071,064,060,061,061,064,060,060,061,064,060,060,061,064,060,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	14,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,060,061,064,060,060,061,064,060,060,061,064,064,060,061,064,143,060,061,065,146,146,144,064,143,060,061,064,064,060,061,064,060,060,061,064,060,060,061,064,060,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	15,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,064,063,145,061,064,061,143,061,064,060,070,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	16,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,060,061,064,060,067,071,064,060,063,071,064,060,063,071,064,060,064,071,064,060,070,061,064,071,060,061,064,145,060,061,064,145,060,061,064,146,060,061,064,060,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	17,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,060,061,064,146,060,061,064,145,060,061,064,145,060,061,064,071,060,061,064,060,070,061,064,060,064,071,064,060,063,071,064,060,063,071,064,060,067,071,064,060,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	18,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,070,061,064,061,143,061,064,063,145,061,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,064,060,070,061,064,063,145,061,064,061,143,061,064,060,070,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	19,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,060,061,064,060,060,061,064,060,060,061,064,064,061,061,064,143,061,071,065,146,146,144,064,143,061,071,064,064,061,061,064,060,060,061,064,060,060,061,064,060,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	20,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,060,061,064,060,146,061,064,061,060,061,064,062,060,061,064,062,060,061,064,062,060,061,064,146,070,061,064,067,060,061,064,062,060,061,064,060,060,061,064,060,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	21,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,060,061,064,067,070,061,064,060,064,061,064,060,062,061,064,060,062,061,064,060,062,061,064,060,146,071,064,060,067,061,064,060,062,061,064,060,060,061,064,060,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	22,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,060,061,064,061,143,061,064,060,062,061,064,060,061,061,064,060,061,061,064,060,061,061,064,061,061,061,064,063,062,061,064,067,143,061,064,063,060,061,064,061,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	23,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,060,061,064,060,060,061,064,060,060,061,064,060,060,061,064,060,060,061,064,060,060,061,064,060,060,061,064,060,060,061,064,060,060,061,064,060,060,061,064,060,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	24,010000,68,061,066,054,043,063,146,146,145,066,060,146,146,064,060,146,146,064,060,146,146,064,060,146,146,064,060,146,146,064,060,146,146,067,146,146,146,067,146,070,061,067,146,070,061,067,146,070,061,067,146,070,061,067,146,070,061,067,146,070,063,063,146,146,145,060,060,060,060
	con	25,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,143,060,061,064,143,060,144,064,061,070,144,064,061,070,061,064,060,060,061,064,060,063,061,065,071,142,061,065,071,070,061,064,060,061,071,064,143,061,071,064,143,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	26,010000,68,061,066,054,043,063,146,146,145,066,060,061,063,064,060,061,061,064,060,067,144,064,060,063,071,064,060,061,061,064,060,060,061,064,060,146,144,064,070,070,065,064,143,070,065,067,145,070,065,064,143,070,065,064,070,146,144,066,060,060,063,063,146,146,145,060,060,060,060
	con	27,010000,68,061,066,054,043,063,146,146,145,066,060,070,063,064,061,070,061,064,063,146,144,064,061,070,061,064,070,070,061,065,143,060,061,067,145,146,144,064,070,070,065,064,070,070,065,064,070,070,065,064,070,070,065,064,070,146,144,066,060,060,063,063,146,146,145,060,060,060,060
	con	28,010000,68,061,066,054,043,063,146,146,145,066,060,071,063,064,061,071,071,064,063,146,144,064,061,071,071,064,070,071,061,065,143,060,061,067,145,146,144,064,070,070,065,064,070,070,065,067,145,070,065,065,143,070,065,064,070,146,144,066,060,060,063,063,146,146,145,060,060,060,060
	con	29,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,061,061,064,060,061,061,064,067,146,144,064,064,061,061,064,064,061,061,064,064,061,061,064,064,061,061,064,064,061,061,065,146,146,061,064,064,060,061,064,064,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	30,010000,68,061,066,054,043,063,146,146,145,066,060,060,063,064,060,060,061,064,060,060,061,064,060,060,061,064,060,060,061,064,061,143,061,064,061,143,061,064,061,143,061,064,060,060,061,064,060,060,061,064,060,060,061,064,060,060,061,066,060,060,063,063,146,146,145,060,060,060,060
	con	31,010000,68,061,066,054,043,060,060,060,060,061,146,146,143,063,146,146,145,063,146,146,145,063,146,146,145,063,146,146,145,063,145,063,145,063,145,063,145,063,145,063,145,063,146,146,145,063,146,146,145,063,146,146,145,063,146,146,145,061,146,146,143,060,060,060,060,060,060,060,060
	con	32,010000,68,061,066,054,043,060,060,060,060,061,146,146,143,063,146,146,145,063,146,060,145,063,145,146,145,063,144,146,145,063,144,146,145,063,144,146,145,063,060,067,145,063,070,146,145,063,144,146,145,063,146,146,145,063,146,146,145,061,146,146,143,060,060,060,060,060,060,060,060
	con	33,010000,68,061,066,054,043,060,060,060,060,061,146,146,143,063,146,146,145,063,070,067,145,063,146,142,145,063,146,144,145,063,146,144,145,063,146,144,145,063,146,060,066,063,146,070,145,063,146,144,145,063,146,146,145,063,146,146,145,061,146,146,143,060,060,060,060,060,060,060,060
	con	34,010000,68,061,066,054,043,060,060,060,060,061,146,146,143,063,146,146,145,063,145,063,145,063,146,144,145,063,146,145,145,063,146,145,145,063,146,145,145,063,145,145,145,063,143,144,145,063,070,063,145,063,143,146,145,063,145,146,145,061,146,146,143,060,060,060,060,060,060,060,060
	con	35,010000,68,061,066,054,043,060,060,060,060,061,146,146,143,063,146,146,145,063,060,146,145,063,061,146,145,063,061,146,145,063,066,146,145,063,146,067,145,063,146,142,066,063,146,143,066,063,146,143,066,063,146,070,066,063,146,146,145,061,146,146,143,060,060,060,060,060,060,060,060
	con	36,010000,68,061,066,054,043,060,060,060,060,061,146,146,143,063,146,146,145,063,146,070,066,063,146,143,066,063,146,143,066,063,146,142,066,063,146,067,145,063,066,146,145,063,061,146,145,063,061,146,145,063,060,146,145,063,146,146,145,061,146,146,143,060,060,060,060,060,060,060,060
	con	37,010000,68,061,066,054,043,060,060,060,060,061,146,146,143,063,146,067,145,063,145,063,145,063,143,061,145,063,146,067,145,063,146,067,145,063,146,067,145,063,146,067,145,063,146,067,145,063,143,061,145,063,145,063,145,063,146,067,145,061,146,146,143,060,060,060,060,060,060,060,060
	con	38,010000,68,061,066,054,043,060,060,060,060,061,146,146,143,063,146,146,145,063,146,146,145,063,146,146,145,063,142,145,145,063,063,145,066,062,060,060,062,063,063,145,066,063,142,145,145,063,146,146,145,063,146,146,145,063,146,146,145,061,146,146,143,060,060,060,060,060,060,060,060
	con	39,002000,1,2
	con	40,002000,1,4
	con	41,002000,1,5
	con	42,002000,1,7
	con	43,002000,1,8
	con	44,002000,2,10
	con	45,002000,2,12
	con	46,002000,2,14
	declend
	line	161
	colm	11
	synt	any
	mark	L1
	pnull
	var	22
	int	0
	line	166
	colm	15
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	23
	pnull
	pnull
	int	1
	pnull
	int	1
	line	169
	colm	11
	synt	any
	neg
	pnull
	int	1
	line	169
	colm	15
	synt	any
	neg
	pnull
	int	1
	line	169
	colm	19
	synt	any
	neg
	line	169
	colm	7
	synt	any
	llist	4
	pnull
	pnull
	int	1
	line	170
	colm	8
	synt	any
	neg
	pnull
	int	1
	line	170
	colm	12
	synt	any
	neg
	pnull
	int	1
	line	170
	colm	16
	synt	any
	neg
	pnull
	int	1
	line	170
	colm	20
	synt	any
	neg
	line	170
	colm	7
	synt	any
	llist	4
	line	168
	colm	17
	synt	any
	llist	2
	line	168
	colm	14
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	var	24
	line	173
	colm	20
	synt	any
	keywd	null
	line	173
	colm	17
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	pnull
	var	8
	line	177
	colm	19
	synt	any
	keywd	window
	line	177
	colm	16
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	line	178
	colm	4
	synt	any
	keywd	window
	line	178
	colm	15
	synt	any
	keywd	null
	line	178
	colm	12
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	var	9
	var	25
	line	179
	colm	24
	synt	any
	invoke	0
	line	179
	colm	9
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	var	26
	var	9
	str	2
	line	180
	colm	7
	synt	any
	invoke	2
	unmark
lab L7
	mark	L8
	mark	L9
	var	27
	var	9
	invoke	-1
	line	181
	colm	19
	synt	any
	esusp
	goto	L10
lab L9
	var	28
	str	3
	line	181
	colm	25
	synt	any
	invoke	1
lab L10
	unmark
lab L8
	mark	L11
	pnull
	var	29
	var	30
	line	182
	colm	27
	synt	any
	invoke	0
	line	182
	colm	17
	synt	any
	asgn
	unmark
lab L11
	mark	L12
	pnull
	var	31
	line	183
	colm	19
	synt	any
	keywd	window
	line	183
	colm	16
	synt	any
	asgn
	unmark
lab L12
	mark	L13
	pnull
	line	184
	colm	4
	synt	any
	keywd	window
	var	8
	line	184
	colm	12
	synt	any
	asgn
	unmark
lab L13
	mark	L14
	pnull
	var	32
	pnull
	var	29
	str	4
	line	186
	colm	29
	synt	any
	subsc
	line	186
	colm	14
	synt	any
	asgn
	unmark
lab L14
	mark	L15
	pnull
	var	33
	pnull
	pnull
	var	29
	str	5
	line	188
	colm	30
	synt	any
	subsc
	line	188
	colm	39
	synt	any
	field	ux
	line	188
	colm	15
	synt	any
	asgn
	unmark
lab L15
	mark	L16
	pnull
	var	34
	pnull
	pnull
	var	29
	str	5
	line	189
	colm	30
	synt	any
	subsc
	line	189
	colm	39
	synt	any
	field	uy
	line	189
	colm	15
	synt	any
	asgn
	unmark
lab L16
	mark	L17
	pnull
	var	35
	pnull
	pnull
	var	29
	str	6
	line	190
	colm	30
	synt	any
	subsc
	line	190
	colm	38
	synt	any
	field	uw
	line	190
	colm	15
	synt	any
	asgn
	unmark
lab L17
	mark	L18
	pnull
	var	36
	pnull
	pnull
	var	29
	str	6
	line	191
	colm	31
	synt	any
	subsc
	line	191
	colm	39
	synt	any
	field	uh
	line	191
	colm	16
	synt	any
	asgn
	unmark
lab L18
	mark	L19
	pnull
	var	37
	pnull
	var	35
	int	7
	line	192
	colm	26
	synt	any
	div
	line	192
	colm	12
	synt	any
	asgn
	unmark
lab L19
	mark	L20
	pnull
	var	38
	var	39
	var	31
	str	8
	pnull
	str	9
	pnull
	pnull
	var	29
	str	6
	line	194
	colm	69
	synt	any
	subsc
	line	194
	colm	77
	synt	any
	field	ax
	line	194
	colm	54
	synt	any
	cat
	pnull
	str	10
	pnull
	pnull
	var	29
	str	6
	line	195
	colm	28
	synt	any
	subsc
	line	195
	colm	36
	synt	any
	field	ay
	line	195
	colm	13
	synt	any
	cat
	line	194
	colm	22
	synt	any
	invoke	4
	line	194
	colm	14
	synt	any
	asgn
	unmark
lab L20
	mark	L21
	var	40
	var	38
	int	0
	int	0
	var	35
	var	36
	line	197
	colm	8
	synt	any
	invoke	5
	unmark
lab L21
	mark	L22
	pnull
	var	41
	pnull
	pnull
	var	29
	str	11
	line	199
	colm	31
	synt	any
	subsc
	line	199
	colm	44
	synt	any
	field	ux
	line	199
	colm	16
	synt	any
	asgn
	unmark
lab L22
	mark	L23
	pnull
	var	42
	pnull
	pnull
	var	29
	str	11
	line	200
	colm	31
	synt	any
	subsc
	line	200
	colm	44
	synt	any
	field	uy
	line	200
	colm	16
	synt	any
	asgn
	unmark
lab L23
	mark	L24
	pnull
	var	10
	str	12
	line	202
	colm	13
	synt	any
	asgn
	unmark
lab L24
	mark	L25
	pnull
	var	11
	str	13
	line	204
	colm	15
	synt	any
	asgn
	unmark
lab L25
	mark	L26
	pnull
	var	12
	str	14
	line	206
	colm	16
	synt	any
	asgn
	unmark
lab L26
	mark	L27
	pnull
	var	13
	str	15
	line	208
	colm	15
	synt	any
	asgn
	unmark
lab L27
	mark	L28
	pnull
	var	43
	str	16
	line	210
	colm	14
	synt	any
	asgn
	unmark
lab L28
	mark	L29
	pnull
	var	44
	str	17
	line	212
	colm	15
	synt	any
	asgn
	unmark
lab L29
	mark	L30
	pnull
	var	45
	str	18
	line	214
	colm	14
	synt	any
	asgn
	unmark
lab L30
	mark	L31
	pnull
	var	46
	str	19
	line	216
	colm	15
	synt	any
	asgn
	unmark
lab L31
	mark	L32
	pnull
	var	47
	str	20
	line	218
	colm	14
	synt	any
	asgn
	unmark
lab L32
	mark	L33
	pnull
	var	48
	str	21
	line	220
	colm	15
	synt	any
	asgn
	unmark
lab L33
	mark	L34
	pnull
	var	49
	str	22
	line	222
	colm	15
	synt	any
	asgn
	unmark
lab L34
	mark	L35
	pnull
	var	15
	str	23
	line	224
	colm	10
	synt	any
	asgn
	unmark
lab L35
	mark	L36
	pnull
	var	16
	str	24
	line	226
	colm	11
	synt	any
	asgn
	unmark
lab L36
	mark	L37
	pnull
	var	17
	str	25
	line	228
	colm	13
	synt	any
	asgn
	unmark
lab L37
	mark	L38
	pnull
	var	18
	str	26
	line	230
	colm	9
	synt	any
	asgn
	unmark
lab L38
	mark	L39
	pnull
	var	19
	str	27
	line	232
	colm	12
	synt	any
	asgn
	unmark
lab L39
	mark	L40
	pnull
	var	20
	str	28
	line	234
	colm	11
	synt	any
	asgn
	unmark
lab L40
	mark	L41
	pnull
	var	21
	str	29
	line	236
	colm	9
	synt	any
	asgn
	unmark
lab L41
	mark	L42
	pnull
	var	50
	str	30
	line	239
	colm	10
	synt	any
	asgn
	unmark
lab L42
	mark	L43
	pnull
	var	51
	str	31
	line	242
	colm	13
	synt	any
	asgn
	unmark
lab L43
	mark	L44
	pnull
	var	52
	str	32
	line	244
	colm	14
	synt	any
	asgn
	unmark
lab L44
	mark	L45
	pnull
	var	53
	str	33
	line	246
	colm	15
	synt	any
	asgn
	unmark
lab L45
	mark	L46
	pnull
	var	54
	str	34
	line	248
	colm	15
	synt	any
	asgn
	unmark
lab L46
	mark	L47
	pnull
	var	55
	str	35
	line	250
	colm	13
	synt	any
	asgn
	unmark
lab L47
	mark	L48
	pnull
	var	56
	str	36
	line	252
	colm	12
	synt	any
	asgn
	unmark
lab L48
	mark	L49
	pnull
	var	57
	str	37
	line	254
	colm	12
	synt	any
	asgn
	unmark
lab L49
	mark	L50
	pnull
	var	58
	str	38
	line	256
	colm	13
	synt	any
	asgn
	unmark
lab L50
	mark	L51
	pnull
	var	59
	pnull
	pnull
	var	50
	var	52
	var	53
	var	54
	line	260
	colm	7
	synt	any
	llist	4
	pnull
	var	55
	var	56
	var	57
	var	58
	line	261
	colm	7
	synt	any
	llist	4
	line	259
	colm	22
	synt	any
	llist	2
	line	259
	colm	19
	synt	any
	asgn
	unmark
lab L51
	mark	L52
	pnull
	var	60
	pnull
	pnull
	var	51
	var	47
	var	48
	var	49
	line	264
	colm	7
	synt	any
	llist	4
	pnull
	var	44
	var	43
	var	45
	var	46
	line	265
	colm	7
	synt	any
	llist	4
	line	263
	colm	25
	synt	any
	llist	2
	line	263
	colm	22
	synt	any
	asgn
	unmark
lab L52
	mark	L53
	var	61
	var	33
	var	34
	int	1
	int	0
	var	10
	line	270
	colm	9
	synt	any
	invoke	5
	unmark
lab L53
	mark	L54
	var	61
	var	33
	var	34
	int	0
	int	1
	var	11
	line	271
	colm	9
	synt	any
	invoke	5
	unmark
lab L54
	mark	L55
	var	61
	var	33
	var	34
	int	39
	int	1
	var	12
	line	272
	colm	9
	synt	any
	invoke	5
	unmark
lab L55
	mark	L56
	var	61
	var	33
	var	34
	int	1
	int	39
	var	13
	line	273
	colm	9
	synt	any
	invoke	5
	unmark
lab L56
	mark	L57
	var	61
	var	33
	var	34
	int	0
	int	40
	var	44
	line	274
	colm	9
	synt	any
	invoke	5
	unmark
lab L57
	mark	L58
	var	61
	var	33
	var	34
	int	0
	int	41
	var	43
	line	275
	colm	9
	synt	any
	invoke	5
	unmark
lab L58
	mark	L59
	var	61
	var	33
	var	34
	int	1
	int	40
	var	45
	line	276
	colm	9
	synt	any
	invoke	5
	unmark
lab L59
	mark	L60
	var	61
	var	33
	var	34
	int	1
	int	41
	var	46
	line	277
	colm	9
	synt	any
	invoke	5
	unmark
lab L60
	mark	L61
	var	61
	var	33
	var	34
	int	0
	int	42
	var	47
	line	278
	colm	9
	synt	any
	invoke	5
	unmark
lab L61
	mark	L62
	var	61
	var	33
	var	34
	int	0
	int	43
	var	48
	line	279
	colm	9
	synt	any
	invoke	5
	unmark
lab L62
	mark	L63
	var	61
	var	33
	var	34
	int	1
	int	42
	var	49
	line	280
	colm	9
	synt	any
	invoke	5
	unmark
lab L63
	mark	L64
	var	61
	var	33
	var	34
	int	0
	int	44
	var	15
	line	281
	colm	9
	synt	any
	invoke	5
	unmark
lab L64
	mark	L65
	var	61
	var	33
	var	34
	int	1
	int	44
	var	16
	line	282
	colm	9
	synt	any
	invoke	5
	unmark
lab L65
	mark	L66
	var	61
	var	33
	var	34
	int	39
	int	44
	var	17
	line	283
	colm	9
	synt	any
	invoke	5
	unmark
lab L66
	mark	L67
	var	61
	var	33
	var	34
	int	0
	int	45
	var	18
	line	284
	colm	9
	synt	any
	invoke	5
	unmark
lab L67
	mark	L68
	var	61
	var	33
	var	34
	int	1
	int	45
	var	19
	line	285
	colm	9
	synt	any
	invoke	5
	unmark
lab L68
	mark	L69
	var	61
	var	33
	var	34
	int	39
	int	45
	var	20
	line	286
	colm	9
	synt	any
	invoke	5
	unmark
lab L69
	mark	L70
	var	61
	var	33
	var	34
	int	0
	int	46
	var	21
	line	287
	colm	9
	synt	any
	invoke	5
	unmark
lab L70
	mark	L71
	var	61
	var	41
	var	42
	int	0
	int	0
	var	51
	line	289
	colm	9
	synt	any
	invoke	5
	unmark
lab L71
	mark	L72
	var	61
	var	41
	var	42
	int	1
	int	0
	var	47
	line	290
	colm	9
	synt	any
	invoke	5
	unmark
lab L72
	mark	L73
	var	61
	var	41
	var	42
	int	39
	int	0
	var	48
	line	291
	colm	9
	synt	any
	invoke	5
	unmark
lab L73
	mark	L74
	var	61
	var	41
	var	42
	int	7
	int	0
	var	49
	line	292
	colm	9
	synt	any
	invoke	5
	unmark
lab L74
	mark	L75
	var	61
	var	41
	var	42
	int	0
	int	1
	var	44
	line	293
	colm	9
	synt	any
	invoke	5
	unmark
lab L75
	mark	L76
	var	61
	var	41
	var	42
	int	1
	int	1
	var	43
	line	294
	colm	9
	synt	any
	invoke	5
	unmark
lab L76
	mark	L77
	var	61
	var	41
	var	42
	int	39
	int	1
	var	45
	line	295
	colm	9
	synt	any
	invoke	5
	unmark
lab L77
	mark	L78
	var	61
	var	41
	var	42
	int	7
	int	1
	var	46
	line	296
	colm	9
	synt	any
	invoke	5
	unmark
lab L78
	mark	L79
	mark	L80
	pnull
	line	298
	colm	4
	synt	any
	pret
lab L80
	synt	any
	pfail
	unmark
lab L79
	pnull
	line	300
	colm	1
	synt	any
	pfail
	end
proc grid_shortcuts
	local	0,001000,e
	local	1,000000,subservient
	local	2,000000,return_tile
	local	3,000000,map
	local	4,000000,copy_tile
	local	5,000000,tile_info
	local	6,000000,new_tile
	local	7,000000,open_gif
	local	8,000000,paste_tile
	local	9,000000,read_tile
	local	10,000000,save_image
	local	11,000000,undo_xform
	local	12,000000,write_tile
	con	0,010000,1,015
	con	1,010000,1,143
	con	2,010000,1,151
	con	3,010000,1,156
	con	4,010000,1,157
	con	5,010000,1,160
	con	6,010000,1,161
	con	7,010000,1,162
	con	8,010000,1,163
	con	9,010000,1,172
	con	10,010000,1,167
	declend
	line	304
	colm	11
	synt	any
	mark	L1
	line	306
	colm	4
	synt	if
	mark0
	pnull
	var	0
	str	0
	line	306
	colm	10
	synt	any
	eqv
	pop
	pnull
	var	1
	line	306
	colm	22
	synt	any
	nonnull
	unmark
	var	2
	line	306
	colm	51
	synt	any
	invoke	0
	line	306
	colm	4
	synt	endif
	unmark
lab L1
	mark	L2
	line	308
	colm	4
	synt	if
	mark0
	line	308
	colm	7
	synt	any
	keywd	meta
	unmark
	line	308
	colm	18
	synt	case
	mark0
	var	3
	var	0
	line	308
	colm	26
	synt	any
	invoke	1
	eret
	mark	L4
	ccase
	str	1
	line	309
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	4
	line	309
	colm	24
	synt	any
	invoke	0
	goto	L3
lab L4
	mark	L5
	ccase
	str	2
	line	310
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	5
	line	310
	colm	24
	synt	any
	invoke	0
	goto	L3
lab L5
	mark	L6
	ccase
	str	3
	line	311
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	6
	line	311
	colm	23
	synt	any
	invoke	0
	goto	L3
lab L6
	mark	L7
	ccase
	str	4
	line	312
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	7
	line	312
	colm	23
	synt	any
	invoke	0
	goto	L3
lab L7
	mark	L8
	ccase
	str	5
	line	313
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	8
	line	313
	colm	25
	synt	any
	invoke	0
	goto	L3
lab L8
	mark	L9
	ccase
	str	6
	line	314
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	2
	line	314
	colm	26
	synt	any
	invoke	0
	goto	L3
lab L9
	mark	L10
	ccase
	str	7
	line	315
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	9
	line	315
	colm	24
	synt	any
	invoke	0
	goto	L3
lab L10
	mark	L11
	ccase
	str	8
	line	316
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	10
	line	316
	colm	25
	synt	any
	invoke	0
	goto	L3
lab L11
	mark	L12
	ccase
	str	9
	line	317
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	11
	line	317
	colm	25
	synt	any
	invoke	0
	goto	L3
lab L12
	mark	L13
	ccase
	str	10
	line	318
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	12
	line	318
	colm	25
	synt	any
	invoke	0
	goto	L3
lab L13
	efail
lab L3
	line	308
	colm	18
	synt	endcase
	line	308
	colm	4
	synt	endif
	unmark
lab L2
	mark	L14
	mark	L15
	pnull
	line	321
	colm	4
	synt	any
	pret
lab L15
	synt	any
	pfail
	unmark
lab L14
	pnull
	line	323
	colm	1
	synt	any
	pfail
	end
proc icheck
	local	0,001000,values
	local	1,000020,i
	local	2,000000,integer
	local	3,000000,Notice
	con	0,002000,1,0
	con	1,010000,13,111,156,166,141,154,151,144,040,166,141,154,165,145
	declend
	line	327
	colm	11
	synt	any
	mark	L1
	line	330
	colm	4
	synt	every
	mark0
	pnull
	var	1
	pnull
	var	0
	line	330
	colm	15
	synt	any
	bang
	line	330
	colm	12
	synt	any
	asgn
	pop
	mark0
	line	331
	colm	7
	synt	if
	mark0
	mark	L4
	mark	L6
	var	2
	var	1
	line	331
	colm	21
	synt	any
	invoke	1
	unmark
	efail
lab L6
	pnull
	line	331
	colm	26
	synt	any
	esusp
	goto	L5
lab L4
	pnull
	var	1
	int	0
	line	331
	colm	31
	synt	any
	numlt
lab L5
	unmark
	mark	L7
	var	3
	str	1
	line	332
	colm	16
	synt	any
	invoke	1
	unmark
lab L7
	line	333
	colm	10
	synt	any
	pfail
	line	331
	colm	7
	synt	endif
	unmark
lab L2
	efail
lab L3
	line	330
	colm	4
	synt	endevery
	unmark
lab L1
	mark	L8
	mark	L9
	pnull
	line	336
	colm	4
	synt	any
	pret
lab L9
	synt	any
	pfail
	unmark
lab L8
	pnull
	line	338
	colm	1
	synt	any
	pfail
	end
proc new_tile
	local	0,000000,Dialog
	local	1,000000,grid_rows
	local	2,000000,icheck
	local	3,000000,dialog_value
	local	4,000000,list
	local	5,000000,repl
	local	6,000000,tile_touched
	local	7,000000,setup
	con	0,010000,4,116,145,167,072
	con	1,010000,6,150,145,151,147,150,164
	con	2,010000,5,167,151,144,164,150
	con	3,002000,1,1
	con	4,002000,1,3
	con	5,010000,4,117,153,141,171
	con	6,010000,6,103,141,156,143,145,154
	con	7,010000,1,060
	con	8,002000,1,2
	declend
	line	340
	colm	11
	synt	any
	mark	L1
	line	342
	colm	4
	synt	case
	mark0
	var	0
	str	0
	pnull
	str	1
	str	2
	line	342
	colm	24
	synt	any
	llist	2
	pnull
	pnull
	var	1
	line	342
	colm	46
	synt	any
	size
	pnull
	pnull
	var	1
	int	3
	line	342
	colm	68
	synt	any
	subsc
	line	342
	colm	58
	synt	any
	size
	line	342
	colm	45
	synt	any
	llist	2
	int	4
	pnull
	str	5
	str	6
	line	343
	colm	7
	synt	any
	llist	2
	line	342
	colm	15
	synt	any
	invoke	5
	eret
	mark	L3
	ccase
	str	6
	line	344
	colm	20
	synt	any
	eqv
	unmark
	pop
	line	344
	colm	23
	synt	any
	pfail
	goto	L2
lab L3
	mark	L4
	ccase
	str	5
	line	345
	colm	20
	synt	any
	eqv
	unmark
	pop
	mark	L5
	mark	L6
	var	2
	var	3
	line	346
	colm	19
	synt	any
	invoke	1
	line	346
	colm	34
	synt	any
	esusp
	goto	L7
lab L6
	line	346
	colm	36
	synt	any
	pfail
lab L7
	unmark
lab L5
	mark	L8
	pnull
	var	1
	var	4
	pnull
	var	3
	int	3
	line	347
	colm	43
	synt	any
	subsc
	var	5
	str	7
	pnull
	var	3
	int	8
	line	347
	colm	70
	synt	any
	subsc
	line	347
	colm	52
	synt	any
	invoke	2
	line	347
	colm	30
	synt	any
	invoke	2
	line	347
	colm	23
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	pnull
	var	6
	int	3
	line	348
	colm	26
	synt	any
	asgn
	unmark
lab L9
	mark	L10
	var	7
	line	349
	colm	25
	synt	any
	invoke	0
	line	349
	colm	13
	synt	any
	pret
lab L10
	synt	any
	pfail
	goto	L2
lab L4
	efail
lab L2
	line	342
	colm	4
	synt	endcase
	unmark
lab L1
	mark	L11
	mark	L12
	pnull
	line	353
	colm	4
	synt	any
	pret
lab L12
	synt	any
	pfail
	unmark
lab L11
	pnull
	line	355
	colm	1
	synt	any
	pfail
	end
proc open_gif
	local	0,000020,win
	local	1,000020,ims
	local	2,000020,width
	local	3,000000,OpenDialog
	local	4,000000,WOpen
	local	5,000000,dialog_value
	local	6,000000,Notice
	local	7,000000,Capture
	local	8,000000,grid_rows
	local	9,000000,WAttrib
	local	10,000000,tab
	local	11,000000,upto
	local	12,000000,put
	local	13,000000,map
	local	14,000000,move
	local	15,000000,WClose
	local	16,000000,setup
	con	0,010000,11,117,160,145,156,040,151,155,141,147,145,072
	con	1,010000,6,103,141,156,143,145,154
	con	2,010000,13,143,141,156,166,141,163,075,150,151,144,144,145,156
	con	3,010000,6,151,155,141,147,145,075
	con	4,010000,18,103,141,156,156,157,164,040,157,160,145,156,040,151,155,141,147,145,056
	con	5,010000,2,147,062
	con	6,010000,5,167,151,144,164,150
	con	7,020000,1,054
	con	8,002000,1,1
	con	9,010000,2,060,061
	con	10,010000,2,061,060
	declend
	line	357
	colm	11
	synt	any
	mark	L1
lab L2
	line	360
	colm	4
	synt	repeat
	mark	L2
	mark	L5
	line	361
	colm	7
	synt	if
	mark0
	pnull
	var	3
	str	0
	line	361
	colm	20
	synt	any
	invoke	1
	str	1
	line	361
	colm	36
	synt	any
	lexeq
	unmark
	line	361
	colm	53
	synt	any
	pfail
	line	361
	colm	7
	synt	endif
	unmark
lab L5
	mark	L6
	pnull
	var	0
	mark	L7
	var	4
	str	2
	pnull
	str	3
	var	5
	line	362
	colm	46
	synt	any
	cat
	line	362
	colm	19
	synt	any
	invoke	2
	line	362
	colm	63
	synt	any
	esusp
	goto	L8
lab L7
	mark	L9
	var	6
	str	4
	line	363
	colm	16
	synt	any
	invoke	1
	unmark
lab L9
	unmark
	goto	L3
lab L8
	line	362
	colm	11
	synt	any
	asgn
	unmark
lab L6
	mark	L10
	pnull
	var	1
	var	7
	var	0
	str	5
	line	366
	colm	21
	synt	any
	invoke	2
	line	366
	colm	11
	synt	any
	asgn
	unmark
lab L10
	mark	L11
	pnull
	var	8
	pnull
	line	367
	colm	20
	synt	any
	llist	0
	line	367
	colm	17
	synt	any
	asgn
	unmark
lab L11
	mark	L12
	pnull
	var	2
	var	9
	var	0
	str	6
	line	368
	colm	23
	synt	any
	invoke	2
	line	368
	colm	13
	synt	any
	asgn
	unmark
lab L12
	mark	L13
	var	1
	line	369
	colm	11
	synt	any
	bscan
	mark	L14
lab L15
	line	370
	colm	10
	synt	while
	mark0
	var	10
	pnull
	var	11
	cset	7
	line	370
	colm	24
	synt	any
	invoke	1
	int	8
	line	370
	colm	30
	synt	any
	plus
	line	370
	colm	19
	synt	any
	invoke	1
lab L16
	unmark
	goto	L15
lab L17
	line	370
	colm	10
	synt	endwhile
	unmark
lab L14
lab L18
	line	371
	colm	10
	synt	while
	mark0
	var	12
	var	8
	var	13
	var	14
	var	2
	line	371
	colm	39
	synt	any
	invoke	1
	str	9
	str	10
	line	371
	colm	34
	synt	any
	invoke	3
	line	371
	colm	19
	synt	any
	invoke	2
lab L19
	unmark
	goto	L18
lab L20
	line	371
	colm	10
	synt	endwhile
	line	369
	colm	11
	synt	any
	escan
	unmark
lab L13
	mark	L21
	var	15
	var	0
	line	373
	colm	13
	synt	any
	invoke	1
	unmark
lab L21
	mark	L22
	var	16
	line	374
	colm	12
	synt	any
	invoke	0
	unmark
lab L22
	mark	L23
	pnull
	line	375
	colm	7
	synt	any
	pret
lab L23
	synt	any
	pfail
lab L3
	unmark
	goto	L2
lab L4
	line	360
	colm	4
	synt	endrepeat
	unmark
lab L1
	pnull
	line	378
	colm	1
	synt	any
	pfail
	end
proc paste_tile
	local	0,000020,input
	local	1,000020,tile
	local	2,000000,open
	local	3,000000,Notice
	local	4,000000,read_pattern
	local	5,000000,close
	local	6,000000,grid_rows
	local	7,000000,pat2rows
	local	8,000000,setup
	con	0,010000,12,057,164,155,160,057,164,151,145,143,154,151,160
	con	1,010000,25,103,141,156,156,157,164,040,160,141,163,164,145,040,164,151,145,055,165,160,040,146,151,154,145,056
	con	2,010000,22,103,141,156,156,157,164,040,160,162,157,143,145,163,163,040,155,141,164,162,151,170,056
	declend
	line	380
	colm	11
	synt	any
	mark	L1
	pnull
	var	0
	mark	L2
	var	2
	str	0
	line	383
	colm	17
	synt	any
	invoke	1
	line	383
	colm	34
	synt	any
	esusp
	goto	L3
lab L2
	mark	L4
	var	3
	str	1
	line	384
	colm	16
	synt	any
	invoke	1
	unmark
lab L4
	line	385
	colm	10
	synt	any
	pfail
lab L3
	line	383
	colm	10
	synt	any
	asgn
	unmark
lab L1
	mark	L5
	pnull
	var	1
	mark	L6
	var	4
	var	0
	line	388
	colm	24
	synt	any
	invoke	1
	line	388
	colm	32
	synt	any
	esusp
	goto	L7
lab L6
	mark	L8
	var	3
	str	2
	line	389
	colm	13
	synt	any
	invoke	1
	unmark
lab L8
	mark	L9
	var	5
	var	0
	line	390
	colm	12
	synt	any
	invoke	1
	unmark
lab L9
	line	391
	colm	7
	synt	any
	pfail
lab L7
	line	388
	colm	9
	synt	any
	asgn
	unmark
lab L5
	mark	L10
	var	5
	var	0
	line	394
	colm	9
	synt	any
	invoke	1
	unmark
lab L10
	mark	L11
	pnull
	var	6
	var	7
	pnull
	var	1
	line	396
	colm	30
	synt	any
	field	tile
	line	396
	colm	25
	synt	any
	invoke	1
	line	396
	colm	14
	synt	any
	asgn
	unmark
lab L11
	mark	L12
	mark	L13
	var	8
	line	398
	colm	16
	synt	any
	invoke	0
	line	398
	colm	4
	synt	any
	pret
lab L13
	synt	any
	pfail
	unmark
lab L12
	pnull
	line	400
	colm	1
	synt	any
	pfail
	end
proc place
	local	0,001000,xoff
	local	1,001000,yoff
	local	2,001000,col
	local	3,001000,row
	local	4,001000,pattern
	local	5,000000,DrawImage
	local	6,000000,grid_window
	con	0,002000,2,16
	declend
	line	404
	colm	11
	synt	any
	mark	L1
	var	5
	var	6
	pnull
	var	0
	pnull
	var	2
	int	0
	line	406
	colm	38
	synt	any
	mult
	line	406
	colm	32
	synt	any
	plus
	pnull
	var	1
	pnull
	var	3
	int	0
	line	407
	colm	17
	synt	any
	mult
	line	407
	colm	11
	synt	any
	plus
	var	4
	line	406
	colm	13
	synt	any
	invoke	4
	unmark
lab L1
	mark	L2
	mark	L3
	pnull
	line	409
	colm	4
	synt	any
	pret
lab L3
	synt	any
	pfail
	unmark
lab L2
	pnull
	line	411
	colm	1
	synt	any
	pfail
	end
proc read_pattern
	local	0,001000,file
	local	1,000020,line
	local	2,000000,readpattline
	local	3,000000,pattrec
	local	4,000000,legaltile
	local	5,000000,getpatt
	local	6,000000,getpattnote
	declend
	line	415
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	mark	L2
	var	2
	var	0
	line	418
	colm	24
	synt	any
	invoke	1
	line	418
	colm	31
	synt	any
	esusp
	goto	L3
lab L2
	line	418
	colm	33
	synt	any
	pfail
lab L3
	line	418
	colm	9
	synt	any
	asgn
	unmark
lab L1
	mark	L4
	mark	L5
	var	3
	var	4
	var	5
	var	1
	line	420
	colm	36
	synt	any
	invoke	1
	line	420
	colm	28
	synt	any
	invoke	1
	var	6
	var	1
	line	420
	colm	56
	synt	any
	invoke	1
	line	420
	colm	18
	synt	any
	invoke	2
	line	420
	colm	4
	synt	any
	pret
lab L5
	synt	any
	pfail
	unmark
lab L4
	pnull
	line	422
	colm	1
	synt	any
	pfail
	end
proc read_tile
	local	0,000020,input
	local	1,000020,tile
	local	2,000040,file
	local	3,000040,line
	local	4,000000,TextDialog
	local	5,000000,open
	local	6,000000,dialog_value
	local	7,000000,Notice
	local	8,000000,integer
	local	9,000000,read
	local	10,000000,close
	local	11,000000,read_pattern
	local	12,000000,grid_rows
	local	13,000000,pat2rows
	local	14,000000,setup
	con	0,010000,1,061
	con	1,010000,10,122,145,141,144,040,164,151,154,145,072
	con	2,010000,4,146,151,154,145
	con	3,010000,4,154,151,156,145
	con	4,002000,2,60
	con	5,002000,1,4
	con	6,010000,6,103,141,156,143,145,154
	con	7,002000,1,1
	con	8,010000,17,103,141,156,156,157,164,040,157,160,145,156,040,146,151,154,145,056
	con	9,002000,1,0
	con	10,002000,1,2
	con	11,010000,28,116,157,164,040,164,150,141,164,040,155,141,156,171,040,154,151,156,145,163,040,151,156,040,146,151,154,145,056
	con	12,010000,22,103,141,156,156,157,164,040,160,162,157,143,145,163,163,040,155,141,164,162,151,170,056
	declend
	line	426
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	pnull
	var	3
	str	0
	line	430
	colm	17
	synt	any
	asgn
	unmark
lab L2
	einit	L1
lab L3
	mark	L4
lab L5
	line	432
	colm	4
	synt	repeat
	mark	L5
	mark	L8
	line	433
	colm	7
	synt	if
	mark0
	pnull
	var	4
	str	1
	pnull
	str	2
	str	3
	line	433
	colm	35
	synt	any
	llist	2
	pnull
	var	2
	var	3
	line	433
	colm	53
	synt	any
	llist	2
	pnull
	int	4
	int	5
	line	433
	colm	67
	synt	any
	llist	2
	line	433
	colm	20
	synt	any
	invoke	4
	str	6
	line	433
	colm	76
	synt	any
	lexeq
	unmark
	line	434
	colm	24
	synt	any
	pfail
	line	433
	colm	7
	synt	endif
	unmark
lab L8
	mark	L9
	pnull
	var	0
	mark	L10
	var	5
	pnull
	var	6
	int	7
	line	435
	colm	33
	synt	any
	subsc
	line	435
	colm	20
	synt	any
	invoke	1
	line	435
	colm	38
	synt	any
	esusp
	goto	L11
lab L10
	mark	L12
	var	7
	str	8
	line	436
	colm	16
	synt	any
	invoke	1
	unmark
lab L12
	unmark
	goto	L6
lab L11
	line	435
	colm	13
	synt	any
	asgn
	unmark
lab L9
	mark	L13
	pnull
	var	2
	pnull
	var	6
	int	7
	line	439
	colm	27
	synt	any
	subsc
	line	439
	colm	12
	synt	any
	asgn
	unmark
lab L13
	mark	L14
	pnull
	var	3
	pnull
	int	9
	var	8
	pnull
	var	6
	int	10
	line	440
	colm	40
	synt	any
	subsc
	line	440
	colm	27
	synt	any
	invoke	1
	line	440
	colm	18
	synt	any
	numlt
	line	440
	colm	12
	synt	any
	asgn
	unmark
lab L14
	mark	L15
	line	441
	colm	7
	synt	every
	mark0
	pnull
	int	7
	pnull
	var	3
	int	7
	line	441
	colm	23
	synt	any
	minus
	push1
	line	441
	colm	15
	synt	any
	toby
	pop
	mark0
	mark	L18
	var	9
	var	0
	line	442
	colm	14
	synt	any
	invoke	1
	line	442
	colm	22
	synt	any
	esusp
	goto	L19
lab L18
	mark	L20
	var	7
	str	11
	line	443
	colm	19
	synt	any
	invoke	1
	unmark
lab L20
	mark	L21
	var	10
	var	0
	line	444
	colm	18
	synt	any
	invoke	1
	unmark
lab L21
	unmark
	goto	L16
lab L19
	unmark
lab L16
	efail
lab L17
	line	441
	colm	7
	synt	endevery
	unmark
lab L15
	mark	L22
	pnull
	var	1
	mark	L23
	var	11
	var	0
	line	447
	colm	27
	synt	any
	invoke	1
	line	447
	colm	35
	synt	any
	esusp
	goto	L24
lab L23
	mark	L25
	var	7
	str	12
	line	448
	colm	16
	synt	any
	invoke	1
	unmark
lab L25
	mark	L26
	var	10
	var	0
	line	449
	colm	15
	synt	any
	invoke	1
	unmark
lab L26
	unmark
	goto	L6
lab L24
	line	447
	colm	12
	synt	any
	asgn
	unmark
lab L22
	mark	L27
	var	10
	var	0
	line	452
	colm	12
	synt	any
	invoke	1
	unmark
lab L27
	mark	L28
	pnull
	var	12
	var	13
	pnull
	var	1
	line	453
	colm	33
	synt	any
	field	tile
	line	453
	colm	28
	synt	any
	invoke	1
	line	453
	colm	17
	synt	any
	asgn
	unmark
lab L28
	mark	L29
	var	14
	line	454
	colm	19
	synt	any
	invoke	0
	line	454
	colm	7
	synt	any
	pret
lab L29
	synt	any
	pfail
lab L6
	unmark
	goto	L5
lab L7
	line	432
	colm	4
	synt	endrepeat
	unmark
lab L4
	pnull
	line	457
	colm	1
	synt	any
	pfail
	end
proc return_tile
	local	0,000000,grid_state
	con	0,010000,4,104,157,156,145
	declend
	line	459
	colm	11
	synt	any
	mark	L1
	pnull
	var	0
	str	0
	line	461
	colm	15
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	mark	L3
	pnull
	line	463
	colm	4
	synt	any
	pret
lab L3
	synt	any
	pfail
	unmark
lab L2
	pnull
	line	465
	colm	1
	synt	any
	pfail
	end
proc save_image
	local	0,000000,snapshot
	local	1,000000,grid_pane
	declend
	line	467
	colm	11
	synt	any
	mark	L1
	var	0
	var	1
	line	469
	colm	12
	synt	any
	invoke	1
	unmark
lab L1
	mark	L2
	mark	L3
	pnull
	line	471
	colm	4
	synt	any
	pret
lab L3
	synt	any
	pfail
	unmark
lab L2
	pnull
	line	473
	colm	1
	synt	any
	pfail
	end
proc setbit
	local	0,001000,i
	local	1,001000,j
	local	2,001000,c
	local	3,000020,x
	local	4,000020,y
	local	5,000020,xu
	local	6,000020,yu
	local	7,000020,xv
	local	8,000020,yv
	local	9,000020,xt
	local	10,000020,yt
	local	11,000020,action
	local	12,000040,xpos
	local	13,000040,ypos
	local	14,000000,grid_vidgets
	local	15,000000,symmetries
	local	16,000000,grid_rows
	local	17,000000,cellsize
	local	18,000000,hbits
	local	19,000000,vbits
	local	20,000000,FillRectangle
	local	21,000000,EraseArea
	local	22,000000,sym_state
	local	23,000000,grid_pane
	con	0,010000,4,147,162,151,144
	con	1,002000,1,0
	con	2,002000,1,1
	con	3,002000,1,2
	con	4,002000,1,3
	con	5,002000,1,4
	declend
	line	477
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	mark	L4
	pnull
	var	12
	pnull
	pnull
	var	14
	str	0
	line	482
	colm	27
	synt	any
	subsc
	line	482
	colm	35
	synt	any
	field	ax
	line	482
	colm	12
	synt	any
	asgn
	unmark
lab L4
	pnull
	var	13
	pnull
	pnull
	var	14
	str	0
	line	483
	colm	27
	synt	any
	subsc
	line	483
	colm	35
	synt	any
	field	ay
	line	483
	colm	12
	synt	any
	asgn
	unmark
lab L2
	einit	L1
lab L3
	mark	L5
	line	486
	colm	4
	synt	if
	mark0
	pnull
	var	15
	int	1
	line	486
	colm	19
	synt	any
	numeq
	pop
	pnull
	pnull
	pnull
	var	16
	pnull
	var	0
	int	2
	line	486
	colm	39
	synt	any
	plus
	line	486
	colm	36
	synt	any
	subsc
	pnull
	var	1
	int	2
	line	486
	colm	46
	synt	any
	plus
	line	486
	colm	36
	synt	any
	subsc
	var	2
	line	486
	colm	51
	synt	any
	lexeq
	unmark
	mark	L6
	pnull
	line	486
	colm	62
	synt	any
	pret
lab L6
	synt	any
	pfail
	line	486
	colm	4
	synt	endif
	unmark
lab L5
	mark	L7
	pnull
	var	3
	pnull
	pnull
	var	1
	var	17
	line	488
	colm	11
	synt	any
	mult
	int	2
	line	488
	colm	22
	synt	any
	plus
	line	488
	colm	6
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	pnull
	var	4
	pnull
	pnull
	var	0
	var	17
	line	489
	colm	11
	synt	any
	mult
	int	2
	line	489
	colm	22
	synt	any
	plus
	line	489
	colm	6
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	pnull
	var	9
	pnull
	pnull
	var	0
	var	17
	line	490
	colm	12
	synt	any
	mult
	int	2
	line	490
	colm	23
	synt	any
	plus
	line	490
	colm	7
	synt	any
	asgn
	unmark
lab L9
	mark	L10
	pnull
	var	10
	pnull
	pnull
	var	1
	var	17
	line	491
	colm	12
	synt	any
	mult
	int	2
	line	491
	colm	23
	synt	any
	plus
	line	491
	colm	7
	synt	any
	asgn
	unmark
lab L10
	mark	L11
	pnull
	var	0
	dup
	int	2
	line	493
	colm	6
	synt	any
	plus
	asgn
	unmark
lab L11
	mark	L12
	pnull
	var	1
	dup
	int	2
	line	494
	colm	6
	synt	any
	plus
	asgn
	unmark
lab L12
	mark	L13
	pnull
	var	5
	pnull
	pnull
	pnull
	var	18
	var	1
	line	496
	colm	17
	synt	any
	minus
	var	17
	line	496
	colm	22
	synt	any
	mult
	int	2
	line	496
	colm	33
	synt	any
	plus
	line	496
	colm	7
	synt	any
	asgn
	unmark
lab L13
	mark	L14
	pnull
	var	6
	pnull
	pnull
	pnull
	var	19
	var	0
	line	497
	colm	17
	synt	any
	minus
	var	17
	line	497
	colm	22
	synt	any
	mult
	int	2
	line	497
	colm	33
	synt	any
	plus
	line	497
	colm	7
	synt	any
	asgn
	unmark
lab L14
	mark	L15
	pnull
	var	7
	pnull
	pnull
	pnull
	var	18
	var	0
	line	498
	colm	17
	synt	any
	minus
	var	17
	line	498
	colm	22
	synt	any
	mult
	int	2
	line	498
	colm	33
	synt	any
	plus
	line	498
	colm	7
	synt	any
	asgn
	unmark
lab L15
	mark	L16
	pnull
	var	8
	pnull
	pnull
	pnull
	var	19
	var	1
	line	499
	colm	17
	synt	any
	minus
	var	17
	line	499
	colm	22
	synt	any
	mult
	int	2
	line	499
	colm	33
	synt	any
	plus
	line	499
	colm	7
	synt	any
	asgn
	unmark
lab L16
	mark	L17
	pnull
	var	11
	line	501
	colm	14
	synt	ifelse
	mark	L18
	pnull
	var	2
	int	2
	line	501
	colm	19
	synt	any
	numeq
	unmark
	var	20
	goto	L19
lab L18
	var	21
lab L19
	line	501
	colm	14
	synt	endifelse
	line	501
	colm	11
	synt	any
	asgn
	unmark
lab L17
	mark	L20
	line	503
	colm	4
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	22
	int	2
	line	503
	colm	16
	synt	any
	subsc
	int	2
	synt	any
	subsc
	int	2
	line	503
	colm	23
	synt	any
	numeq
	unmark
	mark	L21
	pnull
	pnull
	pnull
	var	16
	var	0
	line	504
	colm	16
	synt	any
	subsc
	var	1
	synt	any
	subsc
	var	2
	line	504
	colm	23
	synt	any
	asgn
	unmark
lab L21
	var	11
	var	23
	var	3
	var	4
	pnull
	var	17
	int	2
	line	505
	colm	40
	synt	any
	minus
	pnull
	var	17
	int	2
	line	505
	colm	54
	synt	any
	minus
	line	505
	colm	13
	synt	any
	invoke	5
	line	503
	colm	4
	synt	endif
	unmark
lab L20
	mark	L22
	line	507
	colm	4
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	22
	int	2
	line	507
	colm	16
	synt	any
	subsc
	int	3
	synt	any
	subsc
	int	2
	line	507
	colm	23
	synt	any
	numeq
	unmark
	line	508
	colm	7
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	16
	var	1
	line	508
	colm	19
	synt	any
	subsc
	pnull
	var	0
	line	508
	colm	23
	synt	any
	neg
	line	508
	colm	19
	synt	any
	subsc
	var	2
	line	508
	colm	27
	synt	any
	asgn
	unmark
	var	11
	var	23
	var	7
	var	10
	pnull
	var	17
	int	2
	line	509
	colm	45
	synt	any
	minus
	pnull
	var	17
	int	2
	line	509
	colm	59
	synt	any
	minus
	line	509
	colm	16
	synt	any
	invoke	5
	line	508
	colm	7
	synt	endif
	line	507
	colm	4
	synt	endif
	unmark
lab L22
	mark	L23
	line	511
	colm	4
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	22
	int	2
	line	511
	colm	16
	synt	any
	subsc
	int	4
	synt	any
	subsc
	int	2
	line	511
	colm	23
	synt	any
	numeq
	unmark
	line	512
	colm	7
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	16
	pnull
	var	1
	line	512
	colm	20
	synt	any
	neg
	line	512
	colm	19
	synt	any
	subsc
	var	0
	synt	any
	subsc
	var	2
	line	512
	colm	27
	synt	any
	asgn
	unmark
	var	11
	var	23
	var	9
	var	8
	pnull
	var	17
	int	2
	line	513
	colm	45
	synt	any
	minus
	pnull
	var	17
	int	2
	line	513
	colm	59
	synt	any
	minus
	line	513
	colm	16
	synt	any
	invoke	5
	line	512
	colm	7
	synt	endif
	line	511
	colm	4
	synt	endif
	unmark
lab L23
	mark	L24
	line	515
	colm	4
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	22
	int	2
	line	515
	colm	16
	synt	any
	subsc
	int	5
	synt	any
	subsc
	int	2
	line	515
	colm	23
	synt	any
	numeq
	unmark
	mark	L25
	pnull
	pnull
	pnull
	var	16
	pnull
	var	0
	line	516
	colm	17
	synt	any
	neg
	line	516
	colm	16
	synt	any
	subsc
	pnull
	var	1
	line	516
	colm	21
	synt	any
	neg
	line	516
	colm	16
	synt	any
	subsc
	var	2
	line	516
	colm	25
	synt	any
	asgn
	unmark
lab L25
	var	11
	var	23
	var	5
	var	6
	pnull
	var	17
	int	2
	line	517
	colm	42
	synt	any
	minus
	pnull
	var	17
	int	2
	line	517
	colm	56
	synt	any
	minus
	line	517
	colm	13
	synt	any
	invoke	5
	line	515
	colm	4
	synt	endif
	unmark
lab L24
	mark	L26
	line	519
	colm	4
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	22
	int	3
	line	519
	colm	16
	synt	any
	subsc
	int	2
	synt	any
	subsc
	int	2
	line	519
	colm	23
	synt	any
	numeq
	unmark
	line	520
	colm	7
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	16
	var	1
	line	520
	colm	19
	synt	any
	subsc
	var	0
	synt	any
	subsc
	var	2
	line	520
	colm	26
	synt	any
	asgn
	unmark
	var	11
	var	23
	var	9
	var	10
	pnull
	var	17
	int	2
	line	521
	colm	42
	synt	any
	minus
	pnull
	var	17
	int	2
	line	521
	colm	56
	synt	any
	minus
	line	521
	colm	13
	synt	any
	invoke	5
	line	520
	colm	7
	synt	endif
	line	519
	colm	4
	synt	endif
	unmark
lab L26
	mark	L27
	line	523
	colm	4
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	22
	int	3
	line	523
	colm	16
	synt	any
	subsc
	int	3
	synt	any
	subsc
	int	2
	line	523
	colm	23
	synt	any
	numeq
	unmark
	line	524
	colm	7
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	16
	pnull
	var	1
	line	524
	colm	20
	synt	any
	neg
	line	524
	colm	19
	synt	any
	subsc
	pnull
	var	0
	line	524
	colm	24
	synt	any
	neg
	line	524
	colm	19
	synt	any
	subsc
	var	2
	line	524
	colm	28
	synt	any
	asgn
	unmark
	var	11
	var	23
	var	7
	var	8
	pnull
	var	17
	int	2
	line	525
	colm	42
	synt	any
	minus
	pnull
	var	17
	int	2
	line	525
	colm	56
	synt	any
	minus
	line	525
	colm	13
	synt	any
	invoke	5
	line	524
	colm	7
	synt	endif
	line	523
	colm	4
	synt	endif
	unmark
lab L27
	mark	L28
	line	527
	colm	4
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	22
	int	3
	line	527
	colm	16
	synt	any
	subsc
	int	4
	synt	any
	subsc
	int	2
	line	527
	colm	23
	synt	any
	numeq
	unmark
	mark	L29
	pnull
	pnull
	pnull
	var	16
	pnull
	var	0
	line	528
	colm	17
	synt	any
	neg
	line	528
	colm	16
	synt	any
	subsc
	var	1
	synt	any
	subsc
	var	2
	line	528
	colm	24
	synt	any
	asgn
	unmark
lab L29
	var	11
	var	23
	var	3
	var	6
	pnull
	var	17
	int	2
	line	529
	colm	41
	synt	any
	minus
	pnull
	var	17
	int	2
	line	529
	colm	55
	synt	any
	minus
	line	529
	colm	13
	synt	any
	invoke	5
	line	527
	colm	4
	synt	endif
	unmark
lab L28
	mark	L30
	line	531
	colm	4
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	22
	int	3
	line	531
	colm	16
	synt	any
	subsc
	int	5
	synt	any
	subsc
	int	2
	line	531
	colm	23
	synt	any
	numeq
	unmark
	mark	L31
	pnull
	pnull
	pnull
	var	16
	var	0
	line	532
	colm	16
	synt	any
	subsc
	pnull
	var	1
	line	532
	colm	20
	synt	any
	neg
	line	532
	colm	16
	synt	any
	subsc
	var	2
	line	532
	colm	24
	synt	any
	asgn
	unmark
lab L31
	var	11
	var	23
	var	5
	var	4
	pnull
	var	17
	int	2
	line	533
	colm	41
	synt	any
	minus
	pnull
	var	17
	int	2
	line	533
	colm	55
	synt	any
	minus
	line	533
	colm	13
	synt	any
	invoke	5
	line	531
	colm	4
	synt	endif
	unmark
lab L30
	mark	L32
	mark	L33
	pnull
	line	536
	colm	4
	synt	any
	pret
lab L33
	synt	any
	pfail
	unmark
lab L32
	pnull
	line	538
	colm	1
	synt	any
	pfail
	end
proc setup
	local	0,000020,i
	local	1,000020,j
	local	2,000000,hbits
	local	3,000000,grid_rows
	local	4,000000,vbits
	local	5,000000,maxsize
	local	6,000000,Notice
	local	7,000000,mode
	local	8,000000,cellsize
	local	9,000000,grid_width
	local	10,000000,grid_height
	local	11,000000,grid
	local	12,000000,FillRectangle
	local	13,000000,grid_pane
	con	0,002000,1,1
	con	1,010000,21,104,151,155,145,156,163,151,157,156,163,040,164,157,157,040,154,141,162,147,145,056
	con	2,002000,2,32
	con	3,002000,2,24
	con	4,002000,1,4
	con	5,010000,1,061
	declend
	line	542
	colm	11
	synt	any
	mark	L1
	pnull
	var	2
	pnull
	pnull
	var	3
	int	0
	line	545
	colm	23
	synt	any
	subsc
	line	545
	colm	13
	synt	any
	size
	line	545
	colm	10
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	4
	pnull
	var	3
	line	546
	colm	13
	synt	any
	size
	line	546
	colm	10
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	line	548
	colm	4
	synt	if
	mark0
	pnull
	mark	L4
	var	2
	line	548
	colm	14
	synt	any
	esusp
	goto	L5
lab L4
	var	4
lab L5
	var	5
	line	548
	colm	23
	synt	any
	numgt
	unmark
	mark	L6
	var	6
	str	1
	line	549
	colm	13
	synt	any
	invoke	1
	unmark
lab L6
	line	550
	colm	7
	synt	any
	pfail
	line	548
	colm	4
	synt	endif
	unmark
lab L3
	mark	L7
	line	553
	colm	4
	synt	if
	mark0
	pnull
	var	2
	int	2
	line	553
	colm	13
	synt	any
	numgt
	unmark
	pnull
	var	7
	line	553
	colm	31
	synt	any
	keywd	null
	line	553
	colm	28
	synt	any
	asgn
	line	553
	colm	4
	synt	endif
	unmark
lab L7
	mark	L8
	pnull
	var	8
	int	3
	line	555
	colm	13
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	pnull
	var	8
	dup
	pnull
	var	9
	pnull
	var	4
	int	4
	line	556
	colm	37
	synt	any
	plus
	line	556
	colm	28
	synt	any
	div
	line	556
	colm	13
	synt	any
	numgt
	asgn
	unmark
lab L9
	mark	L10
	pnull
	var	8
	dup
	pnull
	var	10
	pnull
	var	2
	int	4
	line	557
	colm	38
	synt	any
	plus
	line	557
	colm	29
	synt	any
	div
	line	557
	colm	13
	synt	any
	numgt
	asgn
	unmark
lab L10
	mark	L11
	var	11
	line	559
	colm	8
	synt	any
	invoke	0
	unmark
lab L11
	mark	L12
	line	561
	colm	4
	synt	every
	mark0
	pnull
	var	0
	pnull
	int	0
	var	2
	push1
	line	561
	colm	17
	synt	any
	toby
	line	561
	colm	12
	synt	any
	asgn
	pop
	mark0
	line	562
	colm	7
	synt	every
	mark0
	pnull
	var	1
	pnull
	int	0
	var	4
	push1
	line	562
	colm	20
	synt	any
	toby
	line	562
	colm	15
	synt	any
	asgn
	pop
	mark0
	line	563
	colm	10
	synt	if
	mark0
	pnull
	pnull
	pnull
	var	3
	var	1
	line	563
	colm	22
	synt	any
	subsc
	var	0
	synt	any
	subsc
	str	5
	line	563
	colm	29
	synt	any
	lexeq
	unmark
	var	12
	var	13
	pnull
	pnull
	var	0
	int	0
	line	564
	colm	41
	synt	any
	minus
	var	8
	line	564
	colm	46
	synt	any
	mult
	pnull
	pnull
	var	1
	int	0
	line	565
	colm	19
	synt	any
	minus
	var	8
	line	565
	colm	24
	synt	any
	mult
	var	8
	var	8
	line	564
	colm	26
	synt	any
	invoke	5
	line	563
	colm	10
	synt	endif
	unmark
lab L15
	efail
lab L16
	line	562
	colm	7
	synt	endevery
	unmark
lab L13
	efail
lab L14
	line	561
	colm	4
	synt	endevery
	unmark
lab L12
	mark	L17
	mark	L18
	pnull
	line	567
	colm	4
	synt	any
	pret
lab L18
	synt	any
	pfail
	unmark
lab L17
	pnull
	line	569
	colm	1
	synt	any
	pfail
	end
proc symmet_cb
	local	0,001000,vidget
	local	1,001000,e
	local	2,000020,col
	local	3,000020,row
	local	4,000020,symcount
	local	5,000000,symmet_xpos
	local	6,000000,symmet_yoff
	local	7,000000,sym_state
	local	8,000000,sym_image_current
	local	9,000000,sym_image_next
	local	10,000000,place
	local	11,000000,Notice
	local	12,000000,symmetries
	con	0,002000,2,16
	con	1,002000,1,1
	con	2,002000,1,0
	con	3,002000,1,8
	con	4,010000,49,116,157,040,144,162,141,167,151,156,147,040,155,157,144,145,040,145,156,141,142,154,145,144,073,040,160,141,164,164,145,162,156,040,143,141,156,156,157,164,040,142,145,040,145,144,151,164,145,144
	con	5,002000,1,6
	declend
	line	573
	colm	11
	synt	any
	mark	L1
	line	576
	colm	4
	synt	if
	mark0
	pnull
	var	1
	mark	L2
	line	576
	colm	14
	synt	any
	keywd	lpress
	line	576
	colm	22
	synt	any
	esusp
	goto	L3
lab L2
	mark	L4
	line	576
	colm	24
	synt	any
	keywd	rpress
	line	576
	colm	32
	synt	any
	esusp
	goto	L5
lab L4
	line	576
	colm	34
	synt	any
	keywd	mpress
lab L5
lab L3
	line	576
	colm	9
	synt	any
	eqv
	unmark
	mark	L6
	pnull
	var	2
	pnull
	pnull
	pnull
	line	577
	colm	15
	synt	any
	keywd	x
	var	5
	line	577
	colm	18
	synt	any
	minus
	int	0
	line	577
	colm	33
	synt	any
	div
	int	1
	line	577
	colm	38
	synt	any
	plus
	line	577
	colm	11
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	var	3
	pnull
	pnull
	pnull
	line	578
	colm	15
	synt	any
	keywd	y
	var	6
	line	578
	colm	18
	synt	any
	minus
	int	0
	line	578
	colm	33
	synt	any
	div
	int	1
	line	578
	colm	38
	synt	any
	plus
	line	578
	colm	11
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	pnull
	pnull
	pnull
	var	7
	var	3
	line	579
	colm	16
	synt	any
	subsc
	var	2
	synt	any
	subsc
	dup
	pnull
	int	1
	line	579
	colm	31
	synt	any
	neg
	line	579
	colm	27
	synt	any
	mult
	asgn
	unmark
lab L8
	mark	L9
	pnull
	pnull
	pnull
	var	8
	var	3
	line	580
	colm	24
	synt	any
	subsc
	var	2
	synt	any
	subsc
	pnull
	pnull
	var	9
	var	3
	line	580
	colm	53
	synt	any
	subsc
	var	2
	synt	any
	subsc
	line	580
	colm	35
	synt	any
	swap
	unmark
lab L9
	mark	L10
	var	10
	var	5
	var	6
	pnull
	var	2
	int	1
	line	581
	colm	43
	synt	any
	minus
	pnull
	var	3
	int	1
	line	581
	colm	52
	synt	any
	minus
	pnull
	pnull
	var	8
	var	3
	line	582
	colm	27
	synt	any
	subsc
	var	2
	synt	any
	subsc
	line	581
	colm	12
	synt	any
	invoke	5
	unmark
lab L10
	mark	L11
	pnull
	var	4
	int	2
	line	583
	colm	16
	synt	any
	asgn
	unmark
lab L11
	mark	L12
	line	584
	colm	7
	synt	every
	mark0
	pnull
	var	4
	dup
	pnull
	pnull
	var	7
	line	584
	colm	27
	synt	any
	bang
	line	584
	colm	26
	synt	any
	bang
	line	584
	colm	22
	synt	any
	plus
	asgn
	pop
lab L13
	efail
lab L14
	line	584
	colm	7
	synt	endevery
	unmark
lab L12
	mark	L15
	line	585
	colm	7
	synt	ifelse
	mark	L16
	pnull
	var	4
	pnull
	int	3
	line	585
	colm	21
	synt	any
	neg
	line	585
	colm	19
	synt	any
	numeq
	unmark
	var	11
	str	4
	line	586
	colm	16
	synt	any
	invoke	1
	goto	L17
lab L16
	line	587
	colm	12
	synt	ifelse
	mark	L18
	pnull
	pnull
	pnull
	var	7
	int	1
	line	587
	colm	25
	synt	any
	subsc
	int	1
	synt	any
	subsc
	int	1
	line	587
	colm	32
	synt	any
	numeq
	pop
	pnull
	var	4
	pnull
	int	5
	line	587
	colm	51
	synt	any
	neg
	line	587
	colm	49
	synt	any
	numeq
	unmark
	pnull
	var	12
	int	2
	line	587
	colm	71
	synt	any
	asgn
	goto	L19
lab L18
	pnull
	var	12
	int	1
	line	588
	colm	23
	synt	any
	asgn
lab L19
	line	587
	colm	12
	synt	endifelse
lab L17
	line	585
	colm	7
	synt	endifelse
	unmark
lab L15
	mark	L20
	pnull
	line	590
	colm	7
	synt	any
	pret
lab L20
	synt	any
	pfail
	line	576
	colm	4
	synt	endif
	unmark
lab L1
	mark	L21
	line	593
	colm	4
	synt	any
	pfail
	unmark
lab L21
	pnull
	line	595
	colm	1
	synt	any
	pfail
	end
proc tile_cb
	local	0,001000,vidget
	local	1,001000,value
	local	2,000020,result
	local	3,000000,new_tile
	local	4,000000,tile_info
	con	0,002000,1,1
	con	1,010000,7,156,145,167,040,040,100,116
	con	2,010000,7,151,156,146,157,040,100,111
	declend
	line	599
	colm	11
	synt	any
	mark	L1
	line	602
	colm	4
	synt	case
	mark0
	pnull
	var	1
	int	0
	line	602
	colm	14
	synt	any
	subsc
	eret
	mark	L3
	ccase
	str	1
	line	603
	colm	18
	synt	any
	eqv
	unmark
	pop
	var	3
	line	603
	colm	29
	synt	any
	invoke	0
	goto	L2
lab L3
	mark	L4
	ccase
	str	2
	line	604
	colm	18
	synt	any
	eqv
	unmark
	pop
	var	4
	line	604
	colm	29
	synt	any
	invoke	0
	goto	L2
lab L4
	efail
lab L2
	line	602
	colm	4
	synt	endcase
	unmark
lab L1
	mark	L5
	mark	L6
	pnull
	line	607
	colm	4
	synt	any
	pret
lab L6
	synt	any
	pfail
	unmark
lab L5
	pnull
	line	609
	colm	1
	synt	any
	pfail
	end
proc tile_info
	local	0,000020,line1
	local	1,000020,line2
	local	2,000020,pattern
	local	3,000020,bits
	local	4,000020,density
	local	5,000000,rows2pat
	local	6,000000,grid_rows
	local	7,000000,tilebits
	local	8,000000,left
	local	9,000000,real
	local	10,000000,Notice
	con	0,002000,1,1
	con	1,002000,1,6
	con	2,010000,1,170
	con	3,010000,3,040,142,075
	con	4,010000,3,040,144,075
	con	5,002000,2,40
	con	6,002000,1,3
	con	7,010000,3,056,056,056
	declend
	line	613
	colm	11
	synt	any
	mark	L1
	pnull
	var	2
	var	5
	var	6
	line	616
	colm	23
	synt	any
	invoke	1
	line	616
	colm	12
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	3
	var	7
	var	6
	line	617
	colm	20
	synt	any
	invoke	1
	line	617
	colm	9
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	var	4
	var	8
	pnull
	var	3
	var	9
	pnull
	pnull
	pnull
	var	6
	int	0
	line	618
	colm	42
	synt	any
	subsc
	line	618
	colm	32
	synt	any
	size
	pnull
	var	6
	line	618
	colm	48
	synt	any
	size
	line	618
	colm	46
	synt	any
	mult
	line	618
	colm	31
	synt	any
	invoke	1
	line	618
	colm	25
	synt	any
	div
	int	1
	line	618
	colm	19
	synt	any
	invoke	2
	line	618
	colm	12
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	pnull
	var	0
	var	8
	pnull
	pnull
	pnull
	pnull
	pnull
	pnull
	pnull
	pnull
	var	6
	int	0
	line	620
	colm	28
	synt	any
	subsc
	line	620
	colm	18
	synt	any
	size
	str	2
	line	620
	colm	32
	synt	any
	cat
	pnull
	var	6
	line	620
	colm	42
	synt	any
	size
	line	620
	colm	39
	synt	any
	cat
	str	3
	line	620
	colm	53
	synt	any
	cat
	var	3
	line	620
	colm	62
	synt	any
	cat
	str	4
	line	620
	colm	70
	synt	any
	cat
	var	4
	line	620
	colm	79
	synt	any
	cat
	int	5
	line	620
	colm	17
	synt	any
	invoke	2
	line	620
	colm	10
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	var	1
	line	622
	colm	13
	synt	ifelse
	mark	L6
	pnull
	pnull
	var	2
	line	622
	colm	16
	synt	any
	size
	int	5
	line	622
	colm	25
	synt	any
	numgt
	unmark
	pnull
	pnull
	var	2
	int	0
	dup
	pnull
	int	5
	int	6
	line	622
	colm	50
	synt	any
	minus
	line	622
	colm	44
	synt	any
	plus
	synt	any
	sect
	str	7
	line	622
	colm	56
	synt	any
	cat
	goto	L7
lab L6
	var	8
	var	2
	int	5
	line	623
	colm	22
	synt	any
	invoke	2
lab L7
	line	622
	colm	13
	synt	endifelse
	line	622
	colm	10
	synt	any
	asgn
	unmark
lab L5
	mark	L8
	var	10
	var	0
	var	1
	line	625
	colm	10
	synt	any
	invoke	2
	unmark
lab L8
	mark	L9
	mark	L10
	pnull
	line	627
	colm	4
	synt	any
	pret
lab L10
	synt	any
	pfail
	unmark
lab L9
	pnull
	line	629
	colm	1
	synt	any
	pfail
	end
proc undo_xform
	local	0,000000,grid_rows
	local	1,000000,pat2rows
	local	2,000000,old_pat
	local	3,000000,setup
	declend
	line	633
	colm	11
	synt	any
	mark	L1
	pnull
	var	0
	var	1
	var	2
	line	635
	colm	25
	synt	any
	invoke	1
	line	635
	colm	14
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	mark	L3
	var	3
	line	637
	colm	16
	synt	any
	invoke	0
	line	637
	colm	4
	synt	any
	pret
lab L3
	synt	any
	pfail
	unmark
lab L2
	pnull
	line	639
	colm	1
	synt	any
	pfail
	end
proc write_tile
	local	0,000020,output
	local	1,000000,SaveDialog
	local	2,000000,open
	local	3,000000,dialog_value
	local	4,000000,Notice
	local	5,000000,write
	local	6,000000,rows2pat
	local	7,000000,grid_rows
	local	8,000000,close
	con	0,010000,12,127,162,151,164,145,040,164,151,145,055,165,160
	con	1,010000,6,103,141,156,143,145,154
	con	2,010000,1,167
	con	3,010000,29,103,141,156,156,157,164,040,157,160,145,156,040,146,151,154,145,040,146,157,162,040,167,162,151,164,151,156,147,056
	declend
	line	643
	colm	11
	synt	any
	mark	L1
lab L2
	line	646
	colm	4
	synt	repeat
	mark	L2
	mark	L5
	line	647
	colm	7
	synt	if
	mark0
	pnull
	var	1
	str	0
	line	647
	colm	20
	synt	any
	invoke	1
	str	1
	line	647
	colm	37
	synt	any
	lexeq
	unmark
	line	647
	colm	54
	synt	any
	pfail
	line	647
	colm	7
	synt	endif
	unmark
lab L5
	mark	L6
	pnull
	var	0
	mark	L7
	var	2
	var	3
	str	2
	line	648
	colm	21
	synt	any
	invoke	2
	line	648
	colm	41
	synt	any
	esusp
	goto	L8
lab L7
	mark	L9
	var	4
	str	3
	line	649
	colm	16
	synt	any
	invoke	1
	unmark
lab L9
	unmark
	goto	L3
lab L8
	line	648
	colm	14
	synt	any
	asgn
	unmark
lab L6
	mark	L10
	var	5
	var	0
	var	6
	var	7
	line	652
	colm	29
	synt	any
	invoke	1
	line	652
	colm	12
	synt	any
	invoke	2
	unmark
lab L10
	mark	L11
	var	8
	var	0
	line	653
	colm	12
	synt	any
	invoke	1
	unmark
lab L11
	mark	L12
	pnull
	line	654
	colm	7
	synt	any
	pret
lab L12
	synt	any
	pfail
lab L3
	unmark
	goto	L2
lab L4
	line	646
	colm	4
	synt	endrepeat
	unmark
lab L1
	pnull
	line	657
	colm	1
	synt	any
	pfail
	end
proc xform
	local	0,001000,col
	local	1,001000,row
	local	2,000020,result
	local	3,000040,params
	local	4,000000,tile_touched
	local	5,000000,pshift
	local	6,000000,grid_rows
	local	7,000000,pflip
	local	8,000000,protate
	local	9,000000,list
	local	10,000000,vbits
	local	11,000000,repl
	local	12,000000,hbits
	local	13,000000,ptrim
	local	14,000000,Dialog
	local	15,000000,icheck
	local	16,000000,dialog_value
	local	17,000000,copy
	local	18,000000,push
	local	19,000000,pcrop
	local	20,000000,pinvert
	local	21,000000,pborder
	local	22,000000,pscramble
	local	23,000000,pcenter
	con	0,002000,1,1
	con	1,002000,1,0
	con	2,010000,1,150
	con	3,002000,1,4
	con	4,010000,1,162
	con	5,002000,1,5
	con	6,010000,1,154
	con	7,002000,1,7
	con	8,002000,2,90
	con	9,002000,1,8
	con	10,002000,2,10
	con	11,010000,1,060
	con	12,002000,2,12
	con	13,002000,2,14
	con	14,010000,5,103,162,157,160,072
	con	15,010000,4,154,145,146,164
	con	16,010000,5,162,151,147,150,164
	con	17,010000,3,164,157,160
	con	18,010000,6,142,157,164,164,157,155
	con	19,002000,1,3
	con	20,010000,4,117,153,141,171
	con	21,010000,6,103,141,156,143,145,154
	con	22,010000,1,166
	con	23,002000,1,2
	con	24,002000,3,180
	con	25,010000,8,105,156,154,141,162,147,145,072
	con	26,010000,1,142
	con	27,010000,7,103,145,156,164,145,162,072
	con	28,010000,5,167,151,144,164,150
	con	29,010000,6,150,145,151,147,150,164
	declend
	line	661
	colm	11
	synt	any
	mark	L1
	pnull
	var	4
	int	0
	line	665
	colm	17
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	mark	L3
	line	667
	colm	11
	synt	case
	mark0
	var	0
	eret
	mark	L5
	ccase
	int	1
	line	668
	colm	8
	synt	any
	eqv
	unmark
	pop
	line	668
	colm	12
	synt	case
	mark0
	var	1
	eret
	mark	L7
	ccase
	int	0
	line	669
	colm	11
	synt	any
	eqv
	unmark
	pop
	var	5
	var	6
	pnull
	int	0
	line	669
	colm	33
	synt	any
	neg
	str	2
	line	669
	colm	21
	synt	any
	invoke	3
	goto	L6
lab L7
	mark	L8
	ccase
	int	3
	line	670
	colm	11
	synt	any
	eqv
	unmark
	pop
	var	7
	var	6
	str	4
	line	670
	colm	20
	synt	any
	invoke	2
	goto	L6
lab L8
	mark	L9
	ccase
	int	5
	line	671
	colm	11
	synt	any
	eqv
	unmark
	pop
	var	7
	var	6
	str	6
	line	671
	colm	20
	synt	any
	invoke	2
	goto	L6
lab L9
	mark	L10
	ccase
	int	7
	line	672
	colm	11
	synt	any
	eqv
	unmark
	pop
	var	8
	var	6
	int	8
	line	672
	colm	22
	synt	any
	invoke	2
	goto	L6
lab L10
	mark	L11
	ccase
	int	9
	line	673
	colm	11
	synt	any
	eqv
	unmark
	pop
	var	8
	var	6
	pnull
	int	8
	line	673
	colm	34
	synt	any
	neg
	line	673
	colm	22
	synt	any
	invoke	2
	goto	L6
lab L11
	mark	L12
	ccase
	int	10
	line	674
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	9
	var	10
	var	11
	str	11
	var	12
	line	674
	colm	31
	synt	any
	invoke	2
	line	674
	colm	19
	synt	any
	invoke	2
	goto	L6
lab L12
	mark	L13
	ccase
	int	12
	line	675
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	13
	var	6
	line	675
	colm	20
	synt	any
	invoke	1
	goto	L6
lab L13
	mark	L14
	ccase
	int	13
	line	676
	colm	12
	synt	any
	eqv
	unmark
	pop
	line	677
	colm	12
	synt	case
	mark0
	var	14
	str	14
	pnull
	str	15
	str	16
	str	17
	str	18
	line	677
	colm	33
	synt	any
	llist	4
	int	1
	int	19
	pnull
	str	20
	str	21
	line	678
	colm	21
	synt	any
	llist	2
	line	677
	colm	23
	synt	any
	invoke	5
	eret
	mark	L16
	ccase
	str	21
	line	679
	colm	26
	synt	any
	eqv
	unmark
	pop
	line	679
	colm	30
	synt	any
	pfail
	goto	L15
lab L16
	mark	L17
	ccase
	str	20
	line	680
	colm	25
	synt	any
	eqv
	unmark
	pop
	mark	L18
	mark	L19
	var	15
	var	16
	line	681
	colm	28
	synt	any
	invoke	1
	line	681
	colm	43
	synt	any
	esusp
	goto	L20
lab L19
	line	681
	colm	45
	synt	any
	pfail
lab L20
	unmark
lab L18
	mark	L21
	pnull
	var	2
	var	17
	pnull
	var	3
	var	16
	line	682
	colm	44
	synt	any
	asgn
	line	682
	colm	36
	synt	any
	invoke	1
	line	682
	colm	29
	synt	any
	asgn
	unmark
lab L21
	mark	L22
	var	18
	var	2
	var	6
	line	683
	colm	26
	synt	any
	invoke	2
	unmark
lab L22
	var	19
	var	2
	invoke	-1
	goto	L15
lab L17
	efail
lab L15
	line	677
	colm	12
	synt	endcase
	goto	L6
lab L14
	pop
	line	688
	colm	21
	synt	any
	pfail
lab L6
	line	668
	colm	12
	synt	endcase
	goto	L4
lab L5
	mark	L23
	ccase
	int	0
	line	690
	colm	8
	synt	any
	eqv
	unmark
	pop
	line	690
	colm	10
	synt	case
	mark0
	var	1
	eret
	mark	L25
	ccase
	int	1
	line	691
	colm	11
	synt	any
	eqv
	unmark
	pop
	var	5
	var	6
	pnull
	int	0
	line	691
	colm	33
	synt	any
	neg
	str	22
	line	691
	colm	21
	synt	any
	invoke	3
	goto	L24
lab L25
	mark	L26
	ccase
	int	23
	line	692
	colm	11
	synt	any
	eqv
	unmark
	pop
	var	5
	var	6
	int	0
	str	22
	line	692
	colm	21
	synt	any
	invoke	3
	goto	L24
lab L26
	mark	L27
	ccase
	int	3
	line	693
	colm	11
	synt	any
	eqv
	unmark
	pop
	var	7
	var	6
	str	22
	line	693
	colm	20
	synt	any
	invoke	2
	goto	L24
lab L27
	mark	L28
	ccase
	int	5
	line	694
	colm	11
	synt	any
	eqv
	unmark
	pop
	var	7
	var	6
	str	2
	line	694
	colm	20
	synt	any
	invoke	2
	goto	L24
lab L28
	mark	L29
	ccase
	int	7
	line	695
	colm	11
	synt	any
	eqv
	unmark
	pop
	var	8
	var	6
	int	24
	line	695
	colm	22
	synt	any
	invoke	2
	goto	L24
lab L29
	mark	L30
	ccase
	int	10
	line	696
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	20
	var	6
	line	696
	colm	22
	synt	any
	invoke	1
	goto	L24
lab L30
	mark	L31
	ccase
	int	12
	line	697
	colm	12
	synt	any
	eqv
	unmark
	pop
	line	698
	colm	16
	synt	case
	mark0
	var	14
	str	25
	pnull
	str	15
	str	16
	str	17
	str	18
	line	698
	colm	40
	synt	any
	llist	4
	int	1
	int	19
	pnull
	str	20
	str	21
	line	699
	colm	25
	synt	any
	llist	2
	line	698
	colm	27
	synt	any
	invoke	5
	eret
	mark	L33
	ccase
	str	21
	line	700
	colm	30
	synt	any
	eqv
	unmark
	pop
	line	700
	colm	33
	synt	any
	pfail
	goto	L32
lab L33
	mark	L34
	ccase
	str	20
	line	701
	colm	28
	synt	any
	eqv
	unmark
	pop
	mark	L35
	mark	L36
	var	15
	var	16
	line	702
	colm	31
	synt	any
	invoke	1
	line	702
	colm	46
	synt	any
	esusp
	goto	L37
lab L36
	line	702
	colm	48
	synt	any
	pfail
lab L37
	unmark
lab L35
	mark	L38
	pnull
	var	2
	var	17
	pnull
	var	3
	var	16
	line	703
	colm	47
	synt	any
	asgn
	line	703
	colm	39
	synt	any
	invoke	1
	line	703
	colm	32
	synt	any
	asgn
	unmark
lab L38
	mark	L39
	var	18
	var	2
	var	6
	line	704
	colm	29
	synt	any
	invoke	2
	unmark
lab L39
	var	21
	var	2
	invoke	-1
	goto	L32
lab L34
	efail
lab L32
	line	698
	colm	16
	synt	endcase
	goto	L24
lab L31
	pop
	line	709
	colm	21
	synt	any
	pfail
lab L24
	line	690
	colm	10
	synt	endcase
	goto	L4
lab L23
	mark	L40
	ccase
	int	23
	line	711
	colm	8
	synt	any
	eqv
	unmark
	pop
	line	711
	colm	10
	synt	case
	mark0
	var	1
	eret
	mark	L42
	ccase
	int	0
	line	712
	colm	11
	synt	any
	eqv
	unmark
	pop
	var	5
	var	6
	int	0
	str	2
	line	712
	colm	21
	synt	any
	invoke	3
	goto	L41
lab L42
	mark	L43
	ccase
	int	10
	line	713
	colm	12
	synt	any
	eqv
	unmark
	pop
	var	22
	var	6
	str	26
	line	713
	colm	24
	synt	any
	invoke	2
	goto	L41
lab L43
	mark	L44
	ccase
	int	12
	line	714
	colm	12
	synt	any
	eqv
	unmark
	pop
	line	715
	colm	13
	synt	case
	mark0
	var	14
	str	27
	pnull
	str	28
	str	29
	line	715
	colm	36
	synt	any
	llist	2
	pnull
	pnull
	pnull
	var	6
	int	0
	line	715
	colm	68
	synt	any
	subsc
	line	715
	colm	58
	synt	any
	size
	pnull
	var	6
	line	715
	colm	73
	synt	any
	size
	line	715
	colm	57
	synt	any
	llist	2
	int	19
	pnull
	str	20
	str	21
	line	716
	colm	19
	synt	any
	llist	2
	line	715
	colm	24
	synt	any
	invoke	5
	eret
	mark	L46
	ccase
	str	21
	line	717
	colm	24
	synt	any
	eqv
	unmark
	pop
	line	717
	colm	27
	synt	any
	pfail
	goto	L45
lab L46
	mark	L47
	ccase
	str	20
	line	718
	colm	22
	synt	any
	eqv
	unmark
	pop
	mark	L48
	mark	L49
	var	15
	var	16
	line	719
	colm	25
	synt	any
	invoke	1
	line	719
	colm	40
	synt	any
	esusp
	goto	L50
lab L49
	line	719
	colm	42
	synt	any
	pfail
lab L50
	unmark
lab L48
	mark	L51
	pnull
	var	2
	var	17
	pnull
	var	3
	var	16
	line	720
	colm	41
	synt	any
	asgn
	line	720
	colm	33
	synt	any
	invoke	1
	line	720
	colm	26
	synt	any
	asgn
	unmark
lab L51
	mark	L52
	var	18
	var	2
	var	6
	line	721
	colm	23
	synt	any
	invoke	2
	unmark
lab L52
	var	23
	var	2
	invoke	-1
	goto	L45
lab L47
	efail
lab L45
	line	715
	colm	13
	synt	endcase
	goto	L41
lab L44
	pop
	line	726
	colm	21
	synt	any
	pfail
lab L41
	line	711
	colm	10
	synt	endcase
	goto	L4
lab L40
	pop
	line	728
	colm	18
	synt	any
	pfail
lab L4
	line	667
	colm	11
	synt	endcase
	line	667
	colm	4
	synt	any
	pret
lab L3
	synt	any
	pfail
	unmark
lab L2
	pnull
	line	731
	colm	1
	synt	any
	pfail
	end
proc xform_cb
	local	0,001000,vidget
	local	1,001000,e
	local	2,000020,col
	local	3,000020,row
	local	4,000000,old_pat
	local	5,000000,rows2pat
	local	6,000000,grid_rows
	local	7,000000,xform_xpos
	local	8,000000,xform_ypos
	local	9,000000,xform
	local	10,000000,setup
	con	0,002000,2,16
	declend
	line	735
	colm	11
	synt	any
	mark	L1
	line	738
	colm	4
	synt	if
	mark0
	pnull
	var	1
	mark	L2
	line	738
	colm	14
	synt	any
	keywd	lpress
	line	738
	colm	22
	synt	any
	esusp
	goto	L3
lab L2
	mark	L4
	line	738
	colm	24
	synt	any
	keywd	rpress
	line	738
	colm	32
	synt	any
	esusp
	goto	L5
lab L4
	line	738
	colm	34
	synt	any
	keywd	mpress
lab L5
lab L3
	line	738
	colm	9
	synt	any
	eqv
	unmark
	mark	L6
	pnull
	var	4
	var	5
	var	6
	line	739
	colm	26
	synt	any
	invoke	1
	line	739
	colm	15
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	var	2
	pnull
	pnull
	line	740
	colm	15
	synt	any
	keywd	x
	var	7
	line	740
	colm	18
	synt	any
	minus
	int	0
	line	740
	colm	32
	synt	any
	div
	line	740
	colm	11
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	pnull
	var	3
	pnull
	pnull
	line	741
	colm	15
	synt	any
	keywd	y
	var	8
	line	741
	colm	18
	synt	any
	minus
	int	0
	line	741
	colm	32
	synt	any
	div
	line	741
	colm	11
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	pnull
	var	6
	mark	L10
	var	9
	var	2
	var	3
	line	742
	colm	25
	synt	any
	invoke	2
	line	742
	colm	36
	synt	any
	esusp
	goto	L11
lab L10
	line	742
	colm	38
	synt	any
	pfail
lab L11
	line	742
	colm	17
	synt	any
	asgn
	unmark
lab L9
	mark	L12
	var	10
	line	743
	colm	19
	synt	any
	invoke	0
	line	743
	colm	7
	synt	any
	pret
lab L12
	synt	any
	pfail
	line	738
	colm	4
	synt	endif
	unmark
lab L1
	pnull
	line	746
	colm	1
	synt	any
	pfail
	end
proc grid_ui_atts
	con	0,010000,12,163,151,172,145,075,066,063,065,054,065,066,070
	con	1,010000,12,142,147,075,160,141,154,145,040,147,162,141,171
	con	2,010000,19,154,141,142,145,154,075,124,151,145,055,125,160,040,105,144,151,164,157,162
	declend
	line	749
	colm	11
	synt	any
	mark	L1
	mark	L2
	pnull
	str	0
	str	1
	str	2
	line	750
	colm	11
	synt	any
	llist	3
	line	750
	colm	4
	synt	any
	pret
lab L2
	synt	any
	pfail
	unmark
lab L1
	pnull
	line	751
	colm	1
	synt	any
	pfail
	end
proc grid_ui
	local	0,001000,win
	local	1,001000,cbk
	local	2,000000,vsetup
	local	3,000000,grid_file_cb
	local	4,000000,tile_cb
	local	5,000000,symmet_cb
	local	6,000000,xform_cb
	local	7,000000,grid_cb
	con	0,010000,41,147,162,151,144,137,165,151,072,123,151,172,145,162,072,072,072,060,054,060,054,066,063,065,054,065,066,070,072,124,151,145,055,125,160,040,105,144,151,164,157,162
	con	1,010000,30,146,151,154,145,072,115,145,156,165,072,160,165,154,154,072,072,060,054,060,054,063,066,054,062,061,072,146,151,154,145
	con	2,010000,8,162,145,141,144,040,040,100,122
	con	3,010000,8,157,160,145,156,040,040,100,117
	con	4,010000,8,167,162,151,164,145,040,100,127
	con	5,010000,8,143,157,160,171,040,040,100,103
	con	6,010000,8,160,141,163,164,145,040,100,120
	con	7,010000,9,161,165,151,164,040,040,100,121,040
	con	8,010000,8,163,141,166,145,040,040,100,123
	con	9,010000,25,154,151,156,145,061,072,114,151,156,145,072,072,072,060,054,062,062,054,066,066,060,054,062,062,072
	con	10,010000,42,163,171,155,155,145,164,162,151,145,163,072,114,141,142,145,154,072,072,072,062,062,054,063,061,066,054,067,060,054,061,063,072,163,171,155,155,145,164,162,151,145,163
	con	11,010000,31,164,151,154,145,072,115,145,156,165,072,160,165,154,154,072,072,063,070,054,060,054,063,066,054,062,061,072,164,151,154,145
	con	12,010000,7,156,145,167,040,040,100,116
	con	13,010000,7,151,156,146,157,040,100,111
	con	14,010000,51,164,162,141,156,163,146,157,162,155,141,164,151,157,156,163,072,114,141,142,145,154,072,072,072,065,054,063,063,054,061,060,065,054,061,063,072,164,162,141,156,163,146,157,162,155,141,164,151,157,156,163
	con	15,010000,37,163,171,155,162,145,147,151,157,156,072,122,145,143,164,072,147,162,157,157,166,145,144,072,072,062,064,054,063,063,070,054,066,070,054,063,066,072
	con	16,010000,35,151,156,146,157,072,122,145,143,164,072,151,156,166,151,163,151,142,154,145,072,072,061,062,063,054,063,062,054,062,065,061,054,061,071,072
	con	17,010000,33,170,146,157,162,155,072,122,145,143,164,072,147,162,157,157,166,145,144,072,072,063,062,054,065,070,054,065,062,054,062,064,064,072
	con	18,010000,33,147,162,151,144,072,122,145,143,164,072,163,165,156,153,145,156,072,072,061,062,063,054,065,070,054,065,060,060,054,065,060,060,072
	declend
	line	753
	colm	11
	synt	any
	mark	L1
	mark	L2
	var	2
	var	0
	var	1
	pnull
	str	0
	pnull
	line	755
	colm	4
	synt	any
	llist	2
	pnull
	str	1
	var	3
	pnull
	str	2
	str	3
	str	4
	str	5
	str	6
	str	7
	str	8
	line	757
	colm	7
	synt	any
	llist	7
	line	756
	colm	4
	synt	any
	llist	3
	pnull
	str	9
	pnull
	line	759
	colm	4
	synt	any
	llist	2
	pnull
	str	10
	pnull
	line	760
	colm	4
	synt	any
	llist	2
	pnull
	str	11
	var	4
	pnull
	str	12
	str	13
	line	762
	colm	7
	synt	any
	llist	2
	line	761
	colm	4
	synt	any
	llist	3
	pnull
	str	14
	pnull
	line	763
	colm	4
	synt	any
	llist	2
	pnull
	str	15
	var	5
	line	764
	colm	4
	synt	any
	llist	2
	pnull
	str	16
	pnull
	line	765
	colm	4
	synt	any
	llist	2
	pnull
	str	17
	var	6
	line	766
	colm	4
	synt	any
	llist	2
	pnull
	str	18
	var	7
	line	767
	colm	4
	synt	any
	llist	2
	pnull
	line	754
	colm	14
	synt	any
	invoke	13
	line	754
	colm	1
	synt	any
	pret
lab L2
	synt	any
	pfail
	unmark
lab L1
	pnull
	line	769
	colm	1
	synt	any
	pfail
	end
