BSS SEG "bss"
G521_i_Gam:/* global */
	.WORD	#2
G522_l_Unr:/* global */
	.WORD	#4
G523_B_Res:/* global */
	.WORD	#2
G524_B_Res:/* global */
	.WORD	#2
G525_l_Gam:/* global */
	.WORD	#4
G526_ui_Du:/* global */
	.WORD	#2
G527_i_Pla:/* global */
	.WORD	#2
G528_i_For:/* global */
	.WORD	#2
G529_i_Use:/* global */
	.WORD	#2
G530_B_Loa:/* global */
	.WORD	#2
G531_puc_D:/* global */
	.WORD	#4
G532_l_Dec:/* global */
	.WORD	#4
G533_ac_Co:/* global */
	.WORD	#68
G534_ac_Sa:/* global */
	.WORD	#132
CODE SEG "start"
F414_xxxx_:/* global */
	LINK	A6,L$0
	MOVE.L	8(A6),A0
	CLR.B	(A0)
	MOVE	#126,-(A7)
	MOVE.L	12(A6),-(A7)
	JSR	index(PC)
	ADDQ.L	#6,A7
	MOVE.L	D0,-4(A6)
	CMPI.L	#0,D0
	BEQ.S	L2
	MOVE.L	-4(A6),D0
	SUB.L	12(A6),D0
	MOVE	D0,-6(A6)
	MOVE	D0,-(A7)
	MOVE.L	12(A6),-(A7)
	MOVE.L	8(A6),-(A7)
	JSR	strncpy(PC)
	ADDA	#10,A7
	MOVE	-6(A6),D0
	MOVE.L	8(A6),A0
	ADDA	D0,A0
	CLR.B	(A0)
	MOVE	G567_B_Sin(A4),D0
	BNE.S	L4
	CMPI	#1,16(A6)
	BNE.S	L3
L4:
	MOVE.L	G571_pc_D1(A4),-(A7)
	MOVE.L	8(A6),-(A7)
	JSR	strcat(PC)
	ADDQ.L	#8,A7
	BRA.S	L5
L3:
	MOVE.L	G572_pc_D1(A4),-(A7)
	MOVE.L	8(A6),-(A7)
	JSR	strcat(PC)
	ADDQ.L	#8,A7
L5:
	MOVE.L	-4(A6),D0
	ADDQ.L	#1,D0
	MOVE.L	D0,-(A7)
	MOVE.L	8(A6),-(A7)
	JSR	strcat(PC)
	ADDQ.L	#8,A7
L2:
L1:
	UNLK	A6
	RTS
L$0:	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