version	U12.1.00
uid	bitstrm.u1-1786032977-0
impl	error
global	2
	0,000005,BitStreamWrite,4
	1,000005,BitStreamRead,3

proc BitStreamWrite
	local	0,001000,outfile
	local	1,001000,bits
	local	2,001000,value
	local	3,001000,outproc
	local	4,000020,outvalue
	local	5,000040,buffer
	local	6,000040,bufferbits
	local	7,000000,writes
	local	8,000000,char
	local	9,000000,ishift
	local	10,000000,ior
	local	11,000000,ixor
	con	0,002000,1,0
	con	1,002000,1,8
	declend
	filen	bitstrm.icn
	line	55
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	pnull
	var	5
	pnull
	var	6
	int	0
	line	62
	colm	31
	synt	any
	asgn
	line	62
	colm	17
	synt	any
	asgn
	unmark
lab L2
	einit	L1
lab L3
	mark	L4
	pnull
	pnull
	var	3
	line	64
	colm	5
	synt	any
	null
	var	7
	line	64
	colm	14
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	line	68
	colm	5
	synt	if
	mark0
	pnull
	var	2
	line	68
	colm	8
	synt	any
	null
	unmark
	mark	L6
	pnull
	var	4
	line	69
	colm	22
	synt	any
	keywd	null
	line	69
	colm	19
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	line	70
	colm	10
	synt	if
	mark0
	pnull
	var	6
	int	0
	line	70
	colm	24
	synt	any
	numgt
	unmark
	var	3
	var	0
	var	8
	pnull
	var	4
	var	9
	var	5
	pnull
	int	1
	var	6
	line	71
	colm	68
	synt	any
	minus
	line	71
	colm	58
	synt	any
	invoke	2
	line	71
	colm	49
	synt	any
	asgn
	line	71
	colm	39
	synt	any
	invoke	1
	line	71
	colm	26
	synt	any
	invoke	2
	line	70
	colm	10
	synt	endif
	unmark
lab L7
	mark	L8
	pnull
	var	5
	pnull
	var	6
	int	0
	line	72
	colm	31
	synt	any
	asgn
	line	72
	colm	17
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	var	4
	line	73
	colm	10
	synt	any
	pret
lab L9
	synt	any
	pfail
	line	68
	colm	5
	synt	endif
	unmark
lab L5
	mark	L10
	pnull
	var	5
	var	10
	var	9
	var	5
	var	1
	line	78
	colm	25
	synt	any
	invoke	2
	var	2
	line	78
	colm	18
	synt	any
	invoke	2
	line	78
	colm	12
	synt	any
	asgn
	unmark
lab L10
	mark	L11
	pnull
	var	6
	dup
	var	1
	line	79
	colm	16
	synt	any
	plus
	asgn
	unmark
lab L11
	mark	L12
lab L13
	line	83
	colm	5
	synt	while
	mark0
	pnull
	var	6
	int	1
	line	83
	colm	22
	synt	any
	numge
	unmark
	mark	L13
	mark	L16
	var	3
	var	0
	var	8
	pnull
	var	4
	var	9
	var	5
	pnull
	int	1
	var	6
	line	84
	colm	59
	synt	any
	minus
	line	84
	colm	49
	synt	any
	invoke	2
	line	84
	colm	40
	synt	any
	asgn
	line	84
	colm	30
	synt	any
	invoke	1
	line	84
	colm	17
	synt	any
	invoke	2
	unmark
lab L16
	mark	L17
	pnull
	var	5
	var	11
	var	5
	var	9
	var	4
	pnull
	var	6
	int	1
	line	85
	colm	59
	synt	any
	minus
	line	85
	colm	38
	synt	any
	invoke	2
	line	85
	colm	24
	synt	any
	invoke	2
	line	85
	colm	17
	synt	any
	asgn
	unmark
lab L17
	pnull
	var	6
	dup
	int	1
	line	86
	colm	21
	synt	any
	minus
	asgn
lab L14
	unmark
	goto	L13
lab L15
	line	83
	colm	5
	synt	endwhile
	unmark
lab L12
	mark	L18
	mark	L19
	var	4
	line	88
	colm	5
	synt	any
	pret
lab L19
	synt	any
	pfail
	unmark
lab L18
	pnull
	line	89
	colm	1
	synt	any
	pfail
	end
proc BitStreamRead
	local	0,001000,infile
	local	1,001000,bits
	local	2,001000,inproc
	local	3,000020,value
	local	4,000040,buffer
	local	5,000040,bufferbits
	local	6,000000,reads
	local	7,000000,ior
	local	8,000000,ishift
	local	9,000000,ord
	local	10,000000,ixor
	con	0,002000,1,0
	con	1,002000,1,8
	declend
	line	92
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	pnull
	var	4
	pnull
	var	5
	int	0
	line	99
	colm	31
	synt	any
	asgn
	line	99
	colm	17
	synt	any
	asgn
	unmark
lab L2
	einit	L1
lab L3
	mark	L4
	line	104
	colm	5
	synt	if
	mark0
	pnull
	var	0
	line	104
	colm	8
	synt	any
	null
	unmark
	mark	L5
	pnull
	var	4
	pnull
	var	5
	int	0
	line	105
	colm	31
	synt	any
	asgn
	line	105
	colm	17
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	line	106
	colm	10
	synt	any
	pret
lab L6
	synt	any
	pfail
	line	104
	colm	5
	synt	endif
	unmark
lab L4
	mark	L7
	pnull
	pnull
	var	2
	line	111
	colm	5
	synt	any
	null
	var	6
	line	111
	colm	13
	synt	any
	asgn
	unmark
lab L7
	mark	L8
lab L9
	line	112
	colm	5
	synt	while
	mark0
	pnull
	var	5
	var	1
	line	112
	colm	22
	synt	any
	numlt
	unmark
	mark	L9
	mark	L12
	pnull
	var	4
	mark	L13
	var	7
	var	8
	var	4
	int	1
	line	113
	colm	30
	synt	any
	invoke	2
	var	9
	var	2
	var	0
	line	113
	colm	51
	synt	any
	invoke	1
	line	113
	colm	44
	synt	any
	invoke	1
	line	113
	colm	23
	synt	any
	invoke	2
	line	113
	colm	62
	synt	any
	esusp
	goto	L14
lab L13
	line	113
	colm	64
	synt	any
	pfail
lab L14
	line	113
	colm	17
	synt	any
	asgn
	unmark
lab L12
	pnull
	var	5
	dup
	int	1
	line	114
	colm	21
	synt	any
	plus
	asgn
lab L10
	unmark
	goto	L9
lab L11
	line	112
	colm	5
	synt	endwhile
	unmark
lab L8
	mark	L15
	pnull
	var	3
	var	8
	var	4
	pnull
	var	1
	var	5
	line	119
	colm	33
	synt	any
	minus
	line	119
	colm	20
	synt	any
	invoke	2
	line	119
	colm	11
	synt	any
	asgn
	unmark
lab L15
	mark	L16
	pnull
	var	4
	var	10
	var	4
	var	8
	var	3
	pnull
	var	5
	var	1
	line	120
	colm	51
	synt	any
	minus
	line	120
	colm	33
	synt	any
	invoke	2
	line	120
	colm	19
	synt	any
	invoke	2
	line	120
	colm	12
	synt	any
	asgn
	unmark
lab L16
	mark	L17
	pnull
	var	5
	dup
	var	1
	line	121
	colm	16
	synt	any
	minus
	asgn
	unmark
lab L17
	mark	L18
	mark	L19
	var	3
	line	122
	colm	5
	synt	any
	pret
lab L19
	synt	any
	pfail
	unmark
lab L18
	pnull
	line	123
	colm	1
	synt	any
	pfail
	end
