	far code
	far data
;#NO_APP
	cseg
	even
	xdef	_myTextFit
_myTextFit:
	lea	(-24,sp),sp
	movem.l	d2-d7/a2-a6,-(sp)
	move.l	a1,a5
	move.l	a0,d5
	move.l	a2,a4
	move.l	a6,d6
	move.w	d0,d4
	move.w	d2,(50,sp)
	move.l	(52,a1),a0
	clr.l	d2
	tst.w	d0
	beq	L2
	cmp.w	(20,a0),d3
	bcs	L2
	moveq	#1,d7
	clr.w	(4,a2)
	move.w	(26,a0),d3
	neg.w	d3
	move.w	d3,(6,a2)
	clr.w	(8,a2)
	move.w	(20,a0),d0
	sub.w	(26,a0),d0
	subq.w	#1,d0
	move.w	d0,(10,a2)
	clr.w	(a2)
	move.w	(20,a0),(2,a2)
	tst.l	a3
	beq	L3
	cmp.w	(6,a3),d3
	blt	L5
	cmp.w	(10,a3),d0
	bgt	L5
	move.w	(2,a2),d0
	cmp.w	(2,a3),d0
	bls	L3
	even
L5:
	clr.w	d7
L3:
	tst.w	d7
	beq	L2
	subq.w	#1,d4
	cmp.w	#-1,d4
	beq	L2
	move.w	d1,a0
	move.l	a0,(46,sp)
	move.l	d6,a6
	lea	(52,sp),a2
	clr.l	d6
	clr.l	d7
L17:
	move.l	a5,a1
	move.l	d5,a0
	moveq	#1,d0
;#APP
;ERROR: parse error
parse error, can't convert -> 	jsr a6@(-0x2b2:W) <-
;#NO_APP
	add.l	(46,sp),d5
	move.w	(a4),d0
	move.w	d0,a1
	add.w	(52,sp),a1
	move.w	d0,d1
	add.w	(56,sp),d1
	add.w	(60,sp),d0
	move.w	(4,a4),d3
	cmp.w	d3,d1
	bge	L10
	move.w	d1,d3
L10:
	move.w	(8,a4),d1
	cmp.w	d1,d0
	ble	L11
	move.w	d0,d1
L11:
	move.w	d1,a0
	sub.w	d3,a0
	addq.l	#1,a0
	move.w	(50,sp),d6
	cmp.l	a0,d6
	blt	L2
	tst.l	a3
	beq	L13
	cmp.w	(4,a3),d3
	blt	L2
	cmp.w	(8,a3),d1
	bgt	L2
	move.w	(a3),d7
	move.w	a1,a0
	cmp.l	d7,a0
	bgt	L2
L13:
	move.w	a1,(a4)
	move.w	d3,(4,a4)
	move.w	d1,(8,a4)
	addq.l	#1,d2
	dbra	d4,L17
	even
L2:
	tst.l	d2
	bne	L18
	clr.w	(a4)
	clr.w	(2,a4)
	clr.w	(4,a4)
	clr.w	(6,a4)
	clr.w	(8,a4)
	clr.w	(10,a4)
L18:
	move.l	d2,d0
	movem.l	(sp)+,d2-d7/a2-a6
	lea	(24,sp),sp
	rts

;Global:
	xref W
;Local	L10 L11 L13 L17 L18 L2 
;Local	L3 L5 _myTextFit 
;ERRORS: 1
