CODE SEG "init!"
DATA SEG "s!"
s!:
	DATA 41 3A 5C 44 4D 47 41 4D 45 2E 44 41 54 00 
CODE SEG "init!"
	LEA	s!(A4),A0
	MOVE.L	A0,G519_pc_D0(A4)
BSS SEG "bss"
G519_pc_D0:/* global */
	.WORD	#4
CODE SEG "init!"
DATA SEG "s!"
	DATA 41 3A 5C 44 4D 47 41 4D 45 2E 42 41 4B 00 
CODE SEG "init!"
	LEA	s!+14(A4),A0
	MOVE.L	A0,G520_pc_D0(A4)
BSS SEG "bss"
G520_pc_D0:/* global */
	.WORD	#4
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
CODE SEG "start"
F415_xxxx_:/* global */
	LINK	A6,L$0
	MOVE.L	D7,-(A7)
	MOVE	12(A6),D0
	AND.L	#65535,D0
	MOVE.L	D0,D7
	CMPI.L	#0,D0
	BNE.S	L2
	MOVE	#1,D0
	BRA.S	L1
L2:
	MOVE.L	8(A6),-(A7)
	MOVE.L	D7,D0
	MOVE.L	D0,-(A7)
	MOVE	G521_i_Gam(A4),-(A7)
	MOVE	#63,-(A7)
	JSR	R057_rzzz_(PC)
	ADDA	#12,A7
	MOVE.L	D7,D1
	CMP.L	D1,D0
	SEQ	D0
	AND	#1,D0
L1:
	MOVE.L	(A7)+,D7
	UNLK	A6
	RTS
L$0:	.EQU	#0
F416_xxxx_:/* global */
	LINK	A6,L$3
	MOVE.L	D7,-(A7)
	MOVE	12(A6),D0
	AND.L	#65535,D0
	MOVE.L	D0,D7
	CMPI.L	#0,D0
	BNE.S	L5
	MOVE	#1,D0
	BRA.S	L4
L5:
	MOVE.L	8(A6),-(A7)
	MOVE.L	D7,D0
	MOVE.L	D0,-(A7)
	MOVE	G521_i_Gam(A4),-(A7)
	MOVE	#64,-(A7)
	JSR	R057_rzzz_(PC)
	ADDA	#12,A7
	MOVE.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