version	U12.1.00
uid	imrutils.u1-1786033006-0
record	ImageRecord,3
	0,width
	1,palette
	2,pixels
impl	error
link	strings.u
link	wopen.u
global	17
	0,000011,ImageRecord,3
	1,000005,imrcath,2
	2,000005,imrcatv,2
	3,000005,imrcopy,1
	4,000005,imrdraw,4
	5,000005,imrflipd,1
	6,000005,imrfliph,1
	7,000005,imrflipv,1
	8,000005,imrnegative,1
	9,000005,imropen,1
	10,000005,imrpshift,2
	11,000005,imrrot180,1
	12,000005,imrrot90cw,1
	13,000005,imrshifth,2
	14,000005,imrshiftv,2
	15,000005,imrtoims,1
	16,000005,imstoimr,1

proc imrcath
	local	0,001000,imr1
	local	1,001000,imr2
	local	2,000020,imr
	local	3,000020,i
	local	4,000020,rows1
	local	5,000020,rows2
	local	6,000000,ImageRecord
	local	7,000000,put
	local	8,000000,move
	con	0,010000,0
	con	1,002000,1,1
	declend
	filen	imrutils.icn
	line	89
	colm	11
	synt	any
	mark	L1
	line	92
	colm	4
	synt	if
	mark0
	pnull
	pnull
	pnull
	pnull
	var	0
	line	92
	colm	12
	synt	any
	field	pixels
	line	92
	colm	7
	synt	any
	size
	pnull
	var	0
	line	92
	colm	26
	synt	any
	field	width
	line	92
	colm	20
	synt	any
	div
	pnull
	pnull
	pnull
	var	1
	line	92
	colm	41
	synt	any
	field	pixels
	line	92
	colm	36
	synt	any
	size
	pnull
	var	1
	line	92
	colm	55
	synt	any
	field	width
	line	92
	colm	49
	synt	any
	div
	line	92
	colm	33
	synt	any
	numne
	unmark
	line	92
	colm	67
	synt	any
	pfail
	line	92
	colm	4
	synt	endif
	unmark
lab L1
	mark	L2
	line	93
	colm	4
	synt	if
	mark0
	pnull
	pnull
	var	0
	line	93
	colm	11
	synt	any
	field	palette
	pnull
	var	1
	line	93
	colm	28
	synt	any
	field	palette
	line	93
	colm	20
	synt	any
	lexne
	unmark
	line	93
	colm	42
	synt	any
	pfail
	line	93
	colm	4
	synt	endif
	unmark
lab L2
	mark	L3
	pnull
	var	2
	var	6
	line	95
	colm	22
	synt	any
	invoke	0
	line	95
	colm	8
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	pnull
	pnull
	var	2
	line	96
	colm	7
	synt	any
	field	width
	pnull
	pnull
	var	0
	line	96
	colm	21
	synt	any
	field	width
	pnull
	var	1
	line	96
	colm	34
	synt	any
	field	width
	line	96
	colm	28
	synt	any
	plus
	line	96
	colm	14
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	pnull
	var	2
	line	97
	colm	7
	synt	any
	field	palette
	pnull
	var	0
	line	97
	colm	23
	synt	any
	field	palette
	line	97
	colm	16
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	var	4
	pnull
	line	99
	colm	13
	synt	any
	llist	0
	line	99
	colm	10
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	var	0
	line	101
	colm	8
	synt	any
	field	pixels
	line	101
	colm	16
	synt	any
	bscan
lab L8
	line	102
	colm	7
	synt	while
	mark0
	var	7
	var	4
	var	8
	pnull
	var	0
	line	102
	colm	33
	synt	any
	field	width
	line	102
	colm	28
	synt	any
	invoke	1
	line	102
	colm	16
	synt	any
	invoke	2
lab L9
	unmark
	goto	L8
lab L10
	line	102
	colm	7
	synt	endwhile
	line	101
	colm	16
	synt	any
	escan
	unmark
lab L7
	mark	L11
	pnull
	var	5
	pnull
	line	105
	colm	13
	synt	any
	llist	0
	line	105
	colm	10
	synt	any
	asgn
	unmark
lab L11
	mark	L12
	pnull
	var	1
	line	107
	colm	8
	synt	any
	field	pixels
	line	107
	colm	16
	synt	any
	bscan
lab L13
	line	108
	colm	7
	synt	while
	mark0
	var	7
	var	5
	var	8
	pnull
	var	1
	line	108
	colm	33
	synt	any
	field	width
	line	108
	colm	28
	synt	any
	invoke	1
	line	108
	colm	16
	synt	any
	invoke	2
lab L14
	unmark
	goto	L13
lab L15
	line	108
	colm	7
	synt	endwhile
	line	107
	colm	16
	synt	any
	escan
	unmark
lab L12
	mark	L16
	pnull
	pnull
	var	2
	line	111
	colm	7
	synt	any
	field	pixels
	str	0
	line	111
	colm	15
	synt	any
	asgn
	unmark
lab L16
	mark	L17
	line	113
	colm	4
	synt	every
	mark0
	pnull
	var	3
	pnull
	int	1
	pnull
	var	4
	line	113
	colm	20
	synt	any
	size
	push1
	line	113
	colm	17
	synt	any
	toby
	line	113
	colm	12
	synt	any
	asgn
	pop
	mark0
	pnull
	pnull
	var	2
	line	114
	colm	10
	synt	any
	field	pixels
	dup
	pnull
	pnull
	var	4
	var	3
	line	114
	colm	28
	synt	any
	subsc
	pnull
	var	5
	var	3
	line	114
	colm	40
	synt	any
	subsc
	line	114
	colm	32
	synt	any
	cat
	line	114
	colm	18
	synt	any
	cat
	asgn
	unmark
lab L18
	efail
lab L19
	line	113
	colm	4
	synt	endevery
	unmark
lab L17
	mark	L20
	mark	L21
	var	2
	line	116
	colm	4
	synt	any
	pret
lab L21
	synt	any
	pfail
	unmark
lab L20
	pnull
	line	118
	colm	1
	synt	any
	pfail
	end
proc imrcatv
	local	0,001000,imr1
	local	1,001000,imr2
	local	2,000020,imr
	local	3,000000,ImageRecord
	declend
	line	120
	colm	11
	synt	any
	mark	L1
	line	123
	colm	4
	synt	if
	mark0
	pnull
	pnull
	var	0
	line	123
	colm	11
	synt	any
	field	width
	pnull
	var	1
	line	123
	colm	25
	synt	any
	field	width
	line	123
	colm	18
	synt	any
	numne
	unmark
	line	123
	colm	37
	synt	any
	pfail
	line	123
	colm	4
	synt	endif
	unmark
lab L1
	mark	L2
	line	124
	colm	4
	synt	if
	mark0
	pnull
	pnull
	var	0
	line	124
	colm	11
	synt	any
	field	palette
	pnull
	var	1
	line	124
	colm	28
	synt	any
	field	palette
	line	124
	colm	20
	synt	any
	lexne
	unmark
	line	124
	colm	42
	synt	any
	pfail
	line	124
	colm	4
	synt	endif
	unmark
lab L2
	mark	L3
	pnull
	var	2
	var	3
	line	126
	colm	22
	synt	any
	invoke	0
	line	126
	colm	8
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	pnull
	pnull
	var	2
	line	127
	colm	7
	synt	any
	field	width
	pnull
	var	0
	line	127
	colm	21
	synt	any
	field	width
	line	127
	colm	14
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	pnull
	var	2
	line	128
	colm	7
	synt	any
	field	palette
	pnull
	var	0
	line	128
	colm	23
	synt	any
	field	palette
	line	128
	colm	16
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	pnull
	var	2
	line	129
	colm	7
	synt	any
	field	pixels
	pnull
	pnull
	var	0
	line	129
	colm	22
	synt	any
	field	pixels
	pnull
	var	1
	line	129
	colm	37
	synt	any
	field	pixels
	line	129
	colm	30
	synt	any
	cat
	line	129
	colm	15
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	mark	L8
	var	2
	line	131
	colm	4
	synt	any
	pret
lab L8
	synt	any
	pfail
	unmark
lab L7
	pnull
	line	133
	colm	1
	synt	any
	pfail
	end
proc imrcopy
	local	0,001000,imr
	local	1,000000,copy
	declend
	line	135
	colm	11
	synt	any
	mark	L1
	mark	L2
	var	1
	var	0
	line	137
	colm	15
	synt	any
	invoke	1
	line	137
	colm	4
	synt	any
	pret
lab L2
	synt	any
	pfail
	unmark
lab L1
	pnull
	line	139
	colm	1
	synt	any
	pfail
	end
proc imrdraw
	local	0,001000,win
	local	1,001000,x
	local	2,001000,y
	local	3,001000,imr
	local	4,000000,type
	local	5,000000,runerr
	local	6,000000,DrawImage
	local	7,000000,imrtoims
	con	0,010000,6,167,151,156,144,157,167
	con	1,002000,3,140
	con	2,002000,1,0
	declend
	line	141
	colm	11
	synt	any
	mark	L1
	line	143
	colm	4
	synt	if
	mark0
	pnull
	var	4
	var	0
	line	143
	colm	11
	synt	any
	invoke	1
	str	0
	line	143
	colm	17
	synt	any
	lexne
	unmark
	mark	L2
	pnull
	var	0
	pnull
	var	1
	pnull
	var	2
	var	3
	line	144
	colm	23
	synt	any
	swap
	line	144
	colm	17
	synt	any
	swap
	line	144
	colm	11
	synt	any
	swap
	unmark
lab L2
	pnull
	var	0
	mark	L3
	pnull
	line	145
	colm	15
	synt	any
	keywd	window
	line	145
	colm	14
	synt	any
	nonnull
	line	145
	colm	23
	synt	any
	esusp
	goto	L4
lab L3
	var	5
	int	1
	line	145
	colm	37
	synt	any
	keywd	window
	line	145
	colm	31
	synt	any
	invoke	2
lab L4
	line	145
	colm	11
	synt	any
	asgn
	line	143
	colm	4
	synt	endif
	unmark
lab L1
	mark	L5
	pnull
	pnull
	var	1
	line	148
	colm	4
	synt	any
	null
	int	2
	line	148
	colm	7
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	pnull
	var	2
	line	149
	colm	4
	synt	any
	null
	int	2
	line	149
	colm	7
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	mark	L8
	var	6
	var	0
	var	1
	var	2
	var	7
	var	3
	line	151
	colm	40
	synt	any
	invoke	1
	line	151
	colm	20
	synt	any
	invoke	4
	line	151
	colm	4
	synt	any
	pret
lab L8
	synt	any
	pfail
	unmark
lab L7
	pnull
	line	153
	colm	1
	synt	any
	pfail
	end
proc imrflipd
	local	0,001000,imr
	local	1,000020,height
	local	2,000020,columns
	local	3,000020,i
	local	4,000020,row
	local	5,000000,list
	local	6,000000,move
	con	0,010000,0
	con	1,002000,1,1
	declend
	line	155
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	pnull
	pnull
	pnull
	var	0
	line	158
	colm	18
	synt	any
	field	pixels
	line	158
	colm	14
	synt	any
	size
	pnull
	var	0
	line	158
	colm	31
	synt	any
	field	width
	line	158
	colm	26
	synt	any
	div
	line	158
	colm	11
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	2
	var	5
	var	1
	str	0
	line	159
	colm	19
	synt	any
	invoke	2
	line	159
	colm	12
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	var	0
	line	161
	colm	7
	synt	any
	field	pixels
	line	161
	colm	15
	synt	any
	bscan
lab L4
	line	162
	colm	7
	synt	while
	mark0
	pnull
	var	4
	var	6
	pnull
	var	0
	line	162
	colm	28
	synt	any
	field	width
	line	162
	colm	24
	synt	any
	invoke	1
	line	162
	colm	17
	synt	any
	asgn
	unmark
	mark	L4
	line	163
	colm	10
	synt	every
	mark0
	pnull
	var	3
	pnull
	int	1
	pnull
	var	0
	line	163
	colm	29
	synt	any
	field	width
	push1
	line	163
	colm	23
	synt	any
	toby
	line	163
	colm	18
	synt	any
	asgn
	pop
	mark0
	pnull
	pnull
	var	2
	var	3
	line	164
	colm	20
	synt	any
	subsc
	dup
	pnull
	var	4
	var	3
	line	164
	colm	32
	synt	any
	subsc
	line	164
	colm	24
	synt	any
	cat
	asgn
	unmark
lab L7
	efail
lab L8
	line	163
	colm	10
	synt	endevery
lab L5
	unmark
	goto	L4
lab L6
	line	162
	colm	7
	synt	endwhile
	line	161
	colm	15
	synt	any
	escan
	unmark
lab L3
	mark	L9
	pnull
	pnull
	var	0
	line	167
	colm	7
	synt	any
	field	pixels
	str	0
	line	167
	colm	15
	synt	any
	asgn
	unmark
lab L9
	mark	L10
	line	169
	colm	4
	synt	every
	mark0
	pnull
	pnull
	var	0
	line	169
	colm	13
	synt	any
	field	pixels
	dup
	pnull
	var	2
	line	169
	colm	26
	synt	any
	bang
	line	169
	colm	21
	synt	any
	cat
	asgn
	pop
lab L11
	efail
lab L12
	line	169
	colm	4
	synt	endevery
	unmark
lab L10
	mark	L13
	pnull
	pnull
	var	0
	line	171
	colm	7
	synt	any
	field	width
	var	1
	line	171
	colm	14
	synt	any
	asgn
	unmark
lab L13
	mark	L14
	mark	L15
	var	0
	line	173
	colm	4
	synt	any
	pret
lab L15
	synt	any
	pfail
	unmark
lab L14
	pnull
	line	175
	colm	1
	synt	any
	pfail
	end
proc imrfliph
	local	0,001000,imr
	local	1,000020,pixels
	local	2,000000,reverse
	local	3,000000,move
	con	0,010000,0
	declend
	line	177
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	str	0
	line	180
	colm	11
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	0
	line	182
	colm	7
	synt	any
	field	pixels
	line	182
	colm	15
	synt	any
	bscan
lab L3
	line	183
	colm	7
	synt	while
	mark0
	pnull
	var	1
	dup
	var	2
	var	3
	pnull
	var	0
	line	183
	colm	41
	synt	any
	field	width
	line	183
	colm	37
	synt	any
	invoke	1
	line	183
	colm	32
	synt	any
	invoke	1
	line	183
	colm	20
	synt	any
	cat
	asgn
lab L4
	unmark
	goto	L3
lab L5
	line	183
	colm	7
	synt	endwhile
	line	182
	colm	15
	synt	any
	escan
	unmark
lab L2
	mark	L6
	pnull
	pnull
	var	0
	line	186
	colm	7
	synt	any
	field	pixels
	var	1
	line	186
	colm	15
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	mark	L8
	var	0
	line	188
	colm	4
	synt	any
	pret
lab L8
	synt	any
	pfail
	unmark
lab L7
	pnull
	line	190
	colm	1
	synt	any
	pfail
	end
proc imrflipv
	local	0,001000,imr
	local	1,000020,pixels
	local	2,000000,move
	con	0,010000,0
	declend
	line	192
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	str	0
	line	195
	colm	11
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	0
	line	197
	colm	7
	synt	any
	field	pixels
	line	197
	colm	15
	synt	any
	bscan
lab L3
	line	198
	colm	7
	synt	while
	mark0
	pnull
	var	1
	pnull
	var	2
	pnull
	var	0
	line	198
	colm	31
	synt	any
	field	width
	line	198
	colm	27
	synt	any
	invoke	1
	var	1
	line	198
	colm	39
	synt	any
	cat
	line	198
	colm	20
	synt	any
	asgn
lab L4
	unmark
	goto	L3
lab L5
	line	198
	colm	7
	synt	endwhile
	line	197
	colm	15
	synt	any
	escan
	unmark
lab L2
	mark	L6
	pnull
	pnull
	var	0
	line	201
	colm	7
	synt	any
	field	pixels
	var	1
	line	201
	colm	15
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	mark	L8
	var	0
	line	203
	colm	4
	synt	any
	pret
lab L8
	synt	any
	pfail
	unmark
lab L7
	pnull
	line	205
	colm	1
	synt	any
	pfail
	end
proc imrnegative
	local	0,001000,imr
	local	1,000020,chars
	local	2,000000,PaletteChars
	local	3,000000,map
	local	4,000000,reverse
	declend
	line	207
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	var	2
	pnull
	var	0
	line	210
	colm	29
	synt	any
	field	palette
	line	210
	colm	25
	synt	any
	invoke	1
	line	210
	colm	10
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	pnull
	var	0
	line	212
	colm	7
	synt	any
	field	pixels
	var	3
	pnull
	var	0
	line	212
	colm	25
	synt	any
	field	pixels
	var	1
	var	4
	var	1
	line	212
	colm	48
	synt	any
	invoke	1
	line	212
	colm	21
	synt	any
	invoke	3
	line	212
	colm	15
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	mark	L4
	var	0
	line	214
	colm	4
	synt	any
	pret
lab L4
	synt	any
	pfail
	unmark
lab L3
	pnull
	line	216
	colm	1
	synt	any
	pfail
	end
proc imropen
	local	0,001000,imr
	local	1,000020,win
	local	2,000000,WOpen
	local	3,000000,imrdraw
	local	4,000000,WClose
	con	0,010000,13,143,141,156,166,141,163,075,150,151,144,144,145,156
	con	1,010000,5,163,151,172,145,075
	con	2,010000,1,054
	con	3,002000,1,0
	declend
	line	218
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	var	2
	str	0
	pnull
	pnull
	pnull
	str	1
	pnull
	var	0
	line	221
	colm	47
	synt	any
	field	width
	line	221
	colm	41
	synt	any
	cat
	str	2
	line	221
	colm	54
	synt	any
	cat
	pnull
	pnull
	pnull
	var	0
	line	222
	colm	11
	synt	any
	field	pixels
	line	222
	colm	7
	synt	any
	size
	pnull
	var	0
	line	222
	colm	24
	synt	any
	field	width
	line	222
	colm	19
	synt	any
	div
	line	221
	colm	61
	synt	any
	cat
	line	221
	colm	16
	synt	any
	invoke	2
	line	221
	colm	8
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	mark	L3
	var	3
	var	1
	int	3
	int	3
	var	0
	line	224
	colm	11
	synt	any
	invoke	4
	line	224
	colm	28
	synt	any
	esusp
	goto	L4
lab L3
	mark	L5
	var	4
	var	1
	line	225
	colm	13
	synt	any
	invoke	1
	unmark
lab L5
	line	226
	colm	7
	synt	any
	pfail
lab L4
	unmark
lab L2
	mark	L6
	mark	L7
	var	1
	line	229
	colm	4
	synt	any
	pret
lab L7
	synt	any
	pfail
	unmark
lab L6
	pnull
	line	231
	colm	1
	synt	any
	pfail
	end
proc imrpshift
	local	0,001000,imr
	local	1,001000,i
	local	2,000020,chars
	local	3,000000,PaletteChars
	local	4,000000,map
	local	5,000000,rotate
	declend
	line	233
	colm	11
	synt	any
	mark	L1
	pnull
	var	2
	var	3
	pnull
	var	0
	line	236
	colm	29
	synt	any
	field	palette
	line	236
	colm	25
	synt	any
	invoke	1
	line	236
	colm	10
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	pnull
	var	0
	line	238
	colm	7
	synt	any
	field	pixels
	var	4
	pnull
	var	0
	line	238
	colm	25
	synt	any
	field	pixels
	var	2
	var	5
	var	2
	var	1
	line	238
	colm	47
	synt	any
	invoke	2
	line	238
	colm	21
	synt	any
	invoke	3
	line	238
	colm	15
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	mark	L4
	var	0
	line	240
	colm	4
	synt	any
	pret
lab L4
	synt	any
	pfail
	unmark
lab L3
	pnull
	line	242
	colm	1
	synt	any
	pfail
	end
proc imrrot180
	local	0,001000,imr
	local	1,000000,reverse
	declend
	line	244
	colm	11
	synt	any
	mark	L1
	pnull
	pnull
	var	0
	line	246
	colm	7
	synt	any
	field	pixels
	var	1
	pnull
	var	0
	line	246
	colm	29
	synt	any
	field	pixels
	line	246
	colm	25
	synt	any
	invoke	1
	line	246
	colm	15
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	mark	L3
	var	0
	line	248
	colm	4
	synt	any
	pret
lab L3
	synt	any
	pfail
	unmark
lab L2
	pnull
	line	250
	colm	1
	synt	any
	pfail
	end
proc imrrot90cw
	local	0,001000,imr
	local	1,000020,height
	local	2,000020,columns
	local	3,000020,i
	local	4,000020,row
	local	5,000000,list
	local	6,000000,move
	con	0,010000,0
	con	1,002000,1,1
	declend
	line	252
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	pnull
	pnull
	pnull
	var	0
	line	255
	colm	18
	synt	any
	field	pixels
	line	255
	colm	14
	synt	any
	size
	pnull
	var	0
	line	255
	colm	31
	synt	any
	field	width
	line	255
	colm	26
	synt	any
	div
	line	255
	colm	11
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	2
	var	5
	pnull
	var	0
	line	256
	colm	23
	synt	any
	field	width
	str	0
	line	256
	colm	19
	synt	any
	invoke	2
	line	256
	colm	12
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	var	0
	line	258
	colm	7
	synt	any
	field	pixels
	line	258
	colm	15
	synt	any
	bscan
lab L4
	line	259
	colm	7
	synt	while
	mark0
	pnull
	var	4
	var	6
	pnull
	var	0
	line	259
	colm	28
	synt	any
	field	width
	line	259
	colm	24
	synt	any
	invoke	1
	line	259
	colm	17
	synt	any
	asgn
	unmark
	mark	L4
	line	260
	colm	10
	synt	every
	mark0
	pnull
	var	3
	pnull
	int	1
	pnull
	var	0
	line	260
	colm	29
	synt	any
	field	width
	push1
	line	260
	colm	23
	synt	any
	toby
	line	260
	colm	18
	synt	any
	asgn
	pop
	mark0
	pnull
	pnull
	var	2
	var	3
	line	261
	colm	20
	synt	any
	subsc
	pnull
	pnull
	var	4
	var	3
	line	261
	colm	30
	synt	any
	subsc
	pnull
	var	2
	var	3
	line	261
	colm	44
	synt	any
	subsc
	line	261
	colm	34
	synt	any
	cat
	line	261
	colm	24
	synt	any
	asgn
	unmark
lab L7
	efail
lab L8
	line	260
	colm	10
	synt	endevery
lab L5
	unmark
	goto	L4
lab L6
	line	259
	colm	7
	synt	endwhile
	line	258
	colm	15
	synt	any
	escan
	unmark
lab L3
	mark	L9
	pnull
	pnull
	var	0
	line	264
	colm	7
	synt	any
	field	pixels
	str	0
	line	264
	colm	15
	synt	any
	asgn
	unmark
lab L9
	mark	L10
	line	266
	colm	4
	synt	every
	mark0
	pnull
	pnull
	var	0
	line	266
	colm	13
	synt	any
	field	pixels
	dup
	pnull
	var	2
	line	266
	colm	26
	synt	any
	bang
	line	266
	colm	21
	synt	any
	cat
	asgn
	pop
lab L11
	efail
lab L12
	line	266
	colm	4
	synt	endevery
	unmark
lab L10
	mark	L13
	pnull
	pnull
	var	0
	line	268
	colm	7
	synt	any
	field	width
	var	1
	line	268
	colm	14
	synt	any
	asgn
	unmark
lab L13
	mark	L14
	mark	L15
	var	0
	line	270
	colm	4
	synt	any
	pret
lab L15
	synt	any
	pfail
	unmark
lab L14
	pnull
	line	272
	colm	1
	synt	any
	pfail
	end
proc imrshifth
	local	0,001000,imr
	local	1,001000,i
	local	2,000000,rotate
	declend
	line	278
	colm	11
	synt	any
	mark	L1
	pnull
	pnull
	var	0
	line	280
	colm	7
	synt	any
	field	pixels
	var	2
	pnull
	var	0
	line	280
	colm	28
	synt	any
	field	pixels
	var	1
	line	280
	colm	24
	synt	any
	invoke	2
	line	280
	colm	15
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	mark	L3
	var	0
	line	282
	colm	4
	synt	any
	pret
lab L3
	synt	any
	pfail
	unmark
lab L2
	pnull
	line	284
	colm	1
	synt	any
	pfail
	end
proc imrshiftv
	local	0,001000,imr
	local	1,001000,i
	local	2,000000,rotate
	con	0,002000,1,1
	declend
	line	288
	colm	11
	synt	any
	mark	L1
	pnull
	pnull
	var	1
	line	290
	colm	4
	synt	any
	null
	int	0
	line	290
	colm	7
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	pnull
	var	0
	line	292
	colm	7
	synt	any
	field	pixels
	var	2
	pnull
	var	0
	line	292
	colm	28
	synt	any
	field	pixels
	pnull
	var	1
	pnull
	var	0
	line	292
	colm	44
	synt	any
	field	width
	line	292
	colm	39
	synt	any
	mult
	line	292
	colm	24
	synt	any
	invoke	2
	line	292
	colm	15
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	mark	L4
	var	0
	line	294
	colm	4
	synt	any
	pret
lab L4
	synt	any
	pfail
	unmark
lab L3
	pnull
	line	296
	colm	1
	synt	any
	pfail
	end
proc imrtoims
	local	0,001000,imr
	con	0,010000,1,054
	declend
	line	298
	colm	11
	synt	any
	mark	L1
	mark	L2
	pnull
	pnull
	pnull
	pnull
	pnull
	var	0
	line	300
	colm	14
	synt	any
	field	width
	str	0
	line	300
	colm	21
	synt	any
	cat
	pnull
	var	0
	line	300
	colm	34
	synt	any
	field	palette
	line	300
	colm	28
	synt	any
	cat
	str	0
	line	300
	colm	43
	synt	any
	cat
	pnull
	var	0
	line	300
	colm	56
	synt	any
	field	pixels
	line	300
	colm	50
	synt	any
	cat
	line	300
	colm	4
	synt	any
	pret
lab L2
	synt	any
	pfail
	unmark
lab L1
	pnull
	line	302
	colm	1
	synt	any
	pfail
	end
proc imstoimr
	local	0,001000,s
	local	1,000020,imr
	local	2,000000,ImageRecord
	local	3,000000,tab
	local	4,000000,upto
	local	5,000000,move
	con	0,020000,1,054
	con	1,002000,1,1
	con	2,002000,1,0
	declend
	line	304
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	var	2
	line	307
	colm	22
	synt	any
	invoke	0
	line	307
	colm	8
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	var	0
	line	309
	colm	6
	synt	any
	bscan
	mark	L3
	pnull
	pnull
	var	1
	line	310
	colm	10
	synt	any
	field	width
	mark	L4
	var	3
	var	4
	cset	0
	line	310
	colm	28
	synt	any
	invoke	1
	line	310
	colm	23
	synt	any
	invoke	1
	line	310
	colm	35
	synt	any
	esusp
	goto	L5
lab L4
	line	310
	colm	37
	synt	any
	pfail
lab L5
	line	310
	colm	17
	synt	any
	asgn
	unmark
lab L3
	mark	L6
	var	5
	int	1
	line	311
	colm	11
	synt	any
	invoke	1
	unmark
lab L6
	mark	L7
	pnull
	pnull
	var	1
	line	312
	colm	10
	synt	any
	field	palette
	mark	L8
	var	3
	var	4
	cset	0
	line	312
	colm	30
	synt	any
	invoke	1
	line	312
	colm	25
	synt	any
	invoke	1
	line	312
	colm	37
	synt	any
	esusp
	goto	L9
lab L8
	line	312
	colm	39
	synt	any
	pfail
lab L9
	line	312
	colm	19
	synt	any
	asgn
	unmark
lab L7
	mark	L10
	var	5
	int	1
	line	313
	colm	11
	synt	any
	invoke	1
	unmark
lab L10
	pnull
	pnull
	var	1
	line	314
	colm	10
	synt	any
	field	pixels
	var	3
	int	2
	line	314
	colm	24
	synt	any
	invoke	1
	line	314
	colm	18
	synt	any
	asgn
	line	309
	colm	6
	synt	any
	escan
	unmark
lab L2
	mark	L11
	mark	L12
	var	1
	line	317
	colm	4
	synt	any
	pret
lab L12
	synt	any
	pfail
	unmark
lab L11
	pnull
	line	319
	colm	1
	synt	any
	pfail
	end
