#NO_APP
gcc2_compiled.:
___gnu_compiled_c:
.text
	.even
.globl _NewTextFit
_NewTextFit:
	addw #-24,sp
	moveml #0x3f3e,sp@-
	movel a1,a5
	movel a0,d5
	movel d0,d4
	movel a2,a4
	movel d1,sp@(48)
	movel d2,sp@(44)
	movel a5@(52),a0
	clrl d6
	tstl d4
	jeq L3
	clrl d0
	movew a0@(20),d0
	cmpl d3,d0
	jhi L3
	moveq #1,d3
	clrw a4@(4)
	movew a0@(26),d1
	negw d1
	movew d1,a4@(6)
	clrw a4@(8)
	movew a0@(20),d0
	subw a0@(26),d0
	subqw #1,d0
	movew d0,a4@(10)
	clrw a4@
	movew a0@(20),a4@(2)
	tstl a3
	jeq L4
	cmpw a3@(6),d1
	jlt L6
	cmpw a3@(10),d0
	jgt L6
	movew a4@(2),d0
	cmpw a3@(2),d0
	jls L4
L6:
	clrw d3
L4:
	tstw d3
	jeq L3
	movel d4,d0
	subql #1,d4
	tstl d0
	jeq L3
	moveq #52,d7
	addl sp,d7
	clrl d2
	.even
L10:
	movel _GfxBase,a6
	movel a5,a1
	movel d5,a0
	moveq #1,d0
	movel d7,a2
#APP
	jsr a6@(-0x2b2:W)
#NO_APP
	addl sp@(48),d5
	movew a4@,d0
	movew d0,a1
	addw sp@(52),a1
	movew d0,d1
	addw sp@(56),d1
	addw sp@(60),d0
	movew a4@(4),d3
	cmpw d3,d1
	jge L11
	movew d1,d3
L11:
	movew a4@(8),d1
	cmpw d1,d0
	jle L12
	movew d0,d1
L12:
	movew d1,a0
	subw d3,a0
	addql #1,a0
	cmpl sp@(44),a0
	jhi L3
	tstl a3
	jeq L14
	cmpw a3@(4),d3
	jlt L3
	cmpw a3@(8),d1
	jgt L3
	movew a3@,d2
	movew a1,a0
	cmpl d2,a0
	jgt L3
L14:
	movew a1,a4@
	movew d3,a4@(4)
	movew d1,a4@(8)
	addql #1,d6
	movel d4,d0
	subql #1,d4
	tstl d0
	jne L10
L3:
	tstl d6
	jne L19
	clrw a4@
	clrw a4@(2)
	clrw a4@(4)
	clrw a4@(6)
	clrw a4@(8)
	clrw a4@(10)
L19:
	movel d6,d0
	moveml sp@+,#0x7cfc
	addw #24,sp
	rts
