	far code
	far data
;#NO_APP
	cseg
	even
	xdef	_newReadPixelLine8
_newReadPixelLine8:
	add.w	#-56,sp
	movem.l	d2-d4/a2/a6,-(sp)
	move.l	a0,d4
	move.w	d0,d3
	tst.l	a0
	beq	L2
	tst.w	d2
	beq	L2
	move.l	#_FillRoutine,(38,sp)
	lea	(30,sp),a0
	move.l	a0,(46,sp)
	move.l	a2,(54,sp)
	clr.w	(58,sp)
	clr.w	(60,sp)
	move.w	d0,(62,sp)
	move.w	d1,(64,sp)
	move.w	d2,(66,sp)
	move.w	#1,(68,sp)
	clr.w	(70,sp)
	move.l	a1,(50,sp)
	move.w	d0,(22,sp)
	add.w	d2,d3
	subq.w	#1,d3
	move.w	d3,(26,sp)
	move.w	d1,(24,sp)
	move.w	d1,(28,sp)
	move.l	_LayersBase,a6
	move.l	d4,a1
	lea	(22,sp),a2
;#APP
;ERROR: parse error
parse error, can't convert -> 	jsr a6@(-0xd8:W) <-
;#NO_APP
	move.w	(70,sp),a0
	bra	L1
	even
L2:
	lea	(0).w,a0
L1:
	move.l	a0,d0
	movem.l	(sp)+,d2-d4/a2/a6
	add.w	#56,sp
	rts
	even
_FillRoutine:
	add.w	#-20,sp
	movem.l	d2-d6/a2-a3,-(sp)
	move.l	a2,a3
	move.l	(16,a0),a2
	move.w	(28,a2),a0
	move.w	(30,a2),d6
	move.w	(36,a2),d5
	add.w	#15,d5
	and.w	#-16,d5
	tst.l	(a1)
	beq	L4
	move.w	(14,a1),d0
	sub.w	(32,a2),d0
	add.w	d0,a0
	move.w	(18,a1),d0
	sub.w	(34,a2),d0
	add.w	d0,d6
L4:
	move.w	(4,a1),d3
	move.w	(6,a1),d4
	move.w	(8,a1),d2
	sub.w	d3,d2
	addq.w	#1,d2
	move.w	(10,a1),d1
	sub.w	d4,d1
	addq.w	#1,d1
	move.w	d2,d0
	muls.w	d1,d0
	add.w	d0,(40,a2)
	move.l	(4,a3),(28,sp)
	move.w	d3,(32,sp)
	move.w	d4,(34,sp)
	move.w	d2,(36,sp)
	move.w	d1,(38,sp)
	move.w	d6,d0
	muls.w	d5,d0
	move.l	d0,a1
	lea	(a1,a0.w),a0
	add.l	(24,a2),a0
	move.l	a0,(40,sp)
	lea	(28,sp),a0
	jsr	_PlanarToChunkyAsm
	movem.l	(sp)+,d2-d6/a2-a3
	add.w	#20,sp
	rts

;Global:
	xref W
	xref _LayersBase
	xref _PlanarToChunkyAsm
;Local	L1 L2 L4 _FillRoutine _newReadPixelLine8 
;ERRORS: 1
