
*---------------------------------------------------------*
*     Disassembled with The Flaming Bird Disassembler     *
*    (c) Phoenix corp. 1992,93  -  All rights reserved    *
*---------------------------------------------------------*

         REL
	 mx	%00

	 use	ENESEG4.X.S

L080000  PHP
         SEP   #$20
         STZ   L02432E
         LDY   #$0010
         LDA   ($6C),Y
         CLC
         ADC   #$23
         STA   $60
         STZ   $61
         REP   #$20
         LDA   $60
         CLC
         ADC   $68
         STA   $60
         SEP   #$20
         LDA   ($60)
         AND   #$0F
         ASL
         CLC
         ADC   #$03
         STA   $5C
         STA   $60
         STZ   $61
         REP   #$20
         LDA   $60
         CLC
         ADC   $68
         STA   $60
         SEP   #$20
         LDA   ($60)
         STA   $64
         REP   #$20
         INC   $60
         SEP   #$20
         LDA   ($60)
         STA   $65
         LDY   #$0012
         LDA   ($6C),Y
         BIT   #$01
         BEQ   L080058
         STZ   $5C
         LDA   $5C
         SEC
         SBC   $64
         STA   $5C
         STA   $64
L080058  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   $64
         STA   $5C
         CMP   #$76
         BCS   L0800C4
         LDY   #$0004
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   $65
         STA   ($6C),Y
         SEC
         SBC   #$06
         STA   $5C
         CMP   #$8A
         BCS   L0800C4
         LDY   #$0011
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L08008A
         PLP
         RTL

L08008A  LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         STA   $64
         LDX   $68
         STX   $60
         LDA   ($60)
         STA   $5C
         CMP   $64
         BCC   L0800C4
         LDA   $64
         CLC
         ADC   #$23
         STA   $60
         STZ   $61
         REP   #$20
         LDA   $60
         CLC
         ADC   $68
         STA   $60
         SEP   #$20
         LDA   ($60)
         LSR
         LSR
         LSR
         LSR
         INC
         STA   $5C
         LDY   #$0011
         STA   ($6C),Y
         PLP
         RTL

L0800C4  SEP   #$20
         LDA   #$01
         STA   L02432E
         JMPL  L062B38

L0800CF  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0800E2
         DEC
         STA   ($6C),Y
         BEQ   L0800E2
         PLP
         RTL

L0800E2  REP   #$20
         LDA   #L0201F3
         STA   $68
         JSL   L080000
         LDA   L02432E
         BIT   #$0001
         BEQ   L0800F7
         PLP
         RTL

L0800F7  SEP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         JSL   L031582
         PLP
         RTL

L080132  ENT
         PHP
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L080143
         DEC
         STA   ($6C),Y
         BEQ   L080143
         PLP
         RTL

L080143  REP   #$20
         LDA   #L02022C
         STA   $68
         JSL   L080000
         SEP   #$20
         LDA   L02432E
         BIT   #$01
         BEQ   L080159
         PLP
         RTL

L080159  SEP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         STA   $5C
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         JSL   L031582
         PLP
         RTL

L080194  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0801A7
         DEC
         STA   ($6C),Y
         BEQ   L0801A7
         PLP
         RTL

L0801A7  REP   #$20
         LDA   #L020268
         STA   $68
         JSL   L080000
         SEP   #$20
         LDA   L02432E
         BIT   #$01
         BEQ   L0801BD
         PLP
         RTL

L0801BD  SEP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         JSL   L031582
         PLP
         RTL

L0801F8  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L08020B
         DEC
         STA   ($6C),Y
         BEQ   L08020B
         PLP
         RTL

L08020B  REP   #$20
         LDA   #L0202A0
         STA   $68
         JSL   L080000
         SEP   #$20
         LDA   L02432E
         BIT   #$01
         BEQ   L080221
         PLP
         RTL

L080221  SEP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         JSL   L031582
         PLP
         RTL

L08025C  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L08026F
         DEC
         STA   ($6C),Y
         BEQ   L08026F
         PLP
         RTL

L08026F  LDY   #$0004
         LDA   ($6C),Y
         STA   $68
         LDY   #$0010
         LDA   #$00
         XBA
         LDA   ($6C),Y
         ASL
         TAX
         JMP   (L080283,X)

L080283  DA    L08028B
         DA    L0802C8
         DA    L0802AB
         DA    L0802F6
L08028B  LDA   $68
         CLC
         ADC   #$06
         STA   $68
         CMP   #$53
         BCS   L080299
         JMP   L08031E

L080299  LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         LDY   #$0011
         LDA   #$00
         STA   ($6C),Y
         JMP   L08031E

L0802AB  LDA   $68
         SEC
         SBC   #$06
         STA   $68
         CMP   #$23
         BCS   L08031E
         LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         LDY   #$0011
         LDA   #$00
         STA   ($6C),Y
         JMP   L08031E

L0802C8  STZ   $61
         LDY   #$0011
         LDA   ($6C),Y
         STA   $60
         LDX   $60
         LDA   L0202E8,X
         STA   $5C
         CLC
         ADC   $68
         STA   $68
         LDA   $60
         INC
         STA   $60
         LDY   #$0011
         STA   ($6C),Y
         CMP   #$11
         BCC   L08031E
         LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         JMP   L08031E

L0802F6  STZ   $61
         LDY   #$0011
         LDA   ($6C),Y
         STA   $60
         LDA   $68
         SEC
         LDX   $60
         SBC   L0202E8,X
         STA   $68
         LDA   $60
         INC
         STA   $60
         LDY   #$0011
         STA   ($6C),Y
         CMP   #$11
         BCC   L08031E
         LDA   #$00
         LDY   #$0010
         STA   ($6C),Y
L08031E  LDA   $68
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0009
         STA   ($6C),Y
         STA   $5C
         LDY   #$0014
         LDA   ($6C),Y
         STA   $60
         LDY   #$0005
         LDA   ($6C),Y
         STA   $61
         REP   #$20
         LDY   #$0012
         LDA   ($6C),Y
         STA   $68
         CLC
         ADC   $60
         STA   $60
         SEP   #$20
         LDA   $61
         STA   $5C
         CMP   #$94
         BCC   L080361
         JMPL  L062B38

L080361  LDA   $60
         LDY   #$0014
         STA   ($6C),Y
         LDA   $61
         LDY   #$0005
         STA   ($6C),Y
         LDA   $5C
         CLC
         ADC   #$03
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         REP   #$20
         LDA   #$0030
         CLC
         ADC   $68
         STA   $60
         LDY   #$0012
         STA   ($6C),Y
         SEP   #$20
         LDA   $61
         CMP   #$02
         BEQ   L080394
         PLP
         RTL

L080394  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         INC
         INC
         STA   $69
         REP   #$20
         LDA   $68
         PHA
         JSL   L031582
         PLA
         STA   $68
         PHA
         JSL   L031582
         PLA
         STA   $68
         JSL   L031582
         PLP
         RTL

L0803C1  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0803D4
         DEC
         STA   ($6C),Y
         BEQ   L0803D4
         PLP
         RTL

L0803D4  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$03
         STA   $5C
         STA   ($6C),Y
         CMP   #$96
         BCC   L0803E8
         JMPL  L062B38

L0803E8  CLC
         ADC   #$04
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0015
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0803FF
         JMPL  L062FD3

L0803FF  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDA   L024443
         SEC
         LDY   #$0005
         SBC   ($6C),Y
         STA   $5C
         CMP   #$37
         BCC   L080425
         PLP
         RTL

L080425  LDA   L024442
         LDY   #$0004
         SEC
         SBC   ($6C),Y
         STA   $5C
         BCC   L080457
         CMP   #$1E
         BCS   L080438
         PLP
         RTL

L080438  LDY   #$0015
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         LDY   #$0010
         REP   #$20
         LDA   #$0080
         STA   ($6C),Y
         LDY   #$0012
         LDA   #$7F00
         STA   ($6C),Y
         SEP   #$20
         JMP   L080479

L080457  CMP   #$EC
         BCC   L08045D
         PLP
         RTL

L08045D  LDY   #$0015
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         REP   #$20
         LDY   #$0010
         LDA   #$FF80
         STA   ($6C),Y
         LDY   #$0012
         LDA   #$80FF
         STA   ($6C),Y
         SEP   #$20
L080479  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $5C
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   $69
         JSL   L031582
         PLP
         RTL

L080493  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0804A6
         DEC
         STA   ($6C),Y
         BEQ   L0804A6
         PLP
         RTL

L0804A6  LDX   $6C
         STX   $5C
         CPX   #L024F80
         BNE   L0804B2
         JMP   L080557

L0804B2  CPX   #L024E00
         BEQ   L0804BA
         JMP   L0805F7

L0804BA  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         SEC
         SBC   #$02
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         LDY   #$0005
         STA   ($6C),Y
         LDY   #$0010
         CMP   ($6C),Y
         BCC   L0804ED
         PLP
         RTL

L0804ED  LDX   #L024E00
         STX   $60
         LDA   #$00
         STA   $64
         LDX   #$FF02
         STX   $68
         JSL   L080654
         LDX   #L024E60
         STX   $60
         LDX   #$FF01
         STX   $68
         JSL   L080654
         LDX   #L024EC0
         STX   $60
         LDX   #$0101
         STX   $68
         JSL   L080654
         LDX   #L024F20
         STX   $60
         LDX   #$0102
         STX   $68
         LDA   #$02
         STA   $64
         JSL   L080654
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$03
         STA   $69
         JSL   L03159E
         JSL   L03159E
         JSL   L03159E
         JSL   L0F0384
         JSL   L290F5E
         PLP
         RTL

L080557  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         SEC
         SBC   #$02
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         LDY   #$0005
         STA   ($6C),Y
         LDY   #$0010
         CMP   ($6C),Y
         BCC   L08058A
         PLP
         RTL

L08058A  LDX   #L024F80
         STX   $60
         LDX   #$FF02
         STX   $68
         STZ   $64
         JSL   L080654
         LDX   #L024FE0
         STX   $60
         LDX   #$FF01
         STX   $68
         JSL   L080654
         LDX   #L025040
         STX   $60
         LDX   #$0101
         STX   $68
         JSL   L080654
         LDX   #L0250A0
         STX   $60
         LDX   #$0102
         STX   $68
         LDA   #$02
         STA   $64
         JSL   L080654
         REP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
         SEP   #$20
         LDA   $68
         CLC
         ADC   #$05
         STA   $68
         LDA   $69
         CLC
         ADC   #$03
         STA   $69
         JSL   L03159E
         JSL   L03159E
         JSL   L03159E
         JSL   L0F0384
         JSL   L290F5E
         PLP
         RTL

L0805F7  LDX   $5C
         CPX   #L024F80
         BCS   L08064C
         LDX   #L024E00
         STX   $60
L080603  JSL   L180C51
         AND   #$01
         LDY   #$0004
         CLC
         ADC   ($60),Y
         STA   ($6C),Y
         CLC
         ADC   #$08
         LDY   #$0008
         STA   ($6C),Y
         SEC
         SBC   #$06
         LDY   #$0009
         STA   ($6C),Y
         JSL   L180C51
         AND   #$01
         LDY   #$0005
         CLC
         ADC   ($60),Y
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$000A
         STA   ($6C),Y
         LDA   ($60)
         AND   #$7F
         CMP   #$0F
         BCC   L080641
         PLP
         RTL

L080641  LDA   ($6C)
         AND   #$80
         CLC
         ADC   #$0E
         STA   ($6C)
         PLP
         RTL

L08064C  LDX   #L024F80
         STX   $60
         JMP   L080603

L080654  PHP
         SEP   #$20
         LDA   ($60)
         AND   #$80
         ORA   #$1A
         STA   ($60)
         LDY   #$000C
         LDA   $64
         STA   ($60),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   ($60),Y
         LDY   #$0005
         LDA   ($6C),Y
         STA   ($60),Y
         LDY   #$0010
         LDA   $68
         STA   ($60),Y
         LDY   #$0013
         LDA   $69
         STA   ($60),Y
         LDY   #$0014
         LDA   #$01
         STA   ($60),Y
         REP   #$20
         LDY   #$0011
         LDA   #$0003
         STA   ($60),Y
         PLP
         RTL

L080695  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         BEQ   L0806A6
         DEC
         STA   ($6C),Y
         BEQ   L0806A6
         PLP
         RTL

L0806A6  LDX   $6C
         CPX   #L024F80
         BNE   L0806B0
         JMP   L080755

L0806B0  CPX   #L024E00
         BEQ   L0806B8
         JMP   L0807F4

L0806B8  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0010
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L0806EB
         PLP
         RTL

L0806EB  LDX   #L024E00
         STX   $60
         LDX   #$FF02
         STX   $68
         STZ   $64
         JSL   L080873
         LDX   #L024E60
         STX   $60
         LDX   #$FF01
         STX   $68
         JSL   L080873
         LDX   #L024EC0
         STX   $60
         LDX   #$0101
         STX   $68
         JSL   L080873
         LDX   #L024F20
         STX   $60
         LDX   #$0102
         STX   $68
         LDA   #$02
         STA   $64
         JSL   L080873
         REP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
         SEP   #$20
         CLC
         ADC   #$05
         STA   $68
         XBA
         CLC
         ADC   #$03
         STA   $69
         JSL   L03159E
         JSL   L03159E
         JSL   L03159E
         JSL   L0F0384
         JSL   L290F5E
         PLP
         RTL

L080755  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0010
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L080788
         PLP
         RTL

L080788  SEP   #$20
         LDX   #L024F80
         STX   $60
         LDX   #$FF02
         STX   $68
         STZ   $64
         JSL   L080873
         LDX   #L024FE0
         STX   $60
         LDX   #$FF01
         STX   $68
         JSL   L080873
         LDX   #L025040
         STX   $60
         LDX   #$0101
         STX   $68
         JSL   L080873
         LDX   #L0250A0
         STX   $60
         LDX   #$0102
         STX   $68
         LDA   #$02
         STA   $64
         JSL   L080873
         LDY   #$0004
         REP   #$20
         LDA   ($6C),Y
         STA   $68
         SEP   #$20
         CLC
         ADC   #$05
         STA   $68
         XBA
         CLC
         ADC   #$03
         STA   $69
         JSL   L03159E
         JSL   L03159E
         JSL   L03159E
         JSL   L0F0384
         JSL   L290F5E
         PLP
         RTL

L0807F4  LDX   $6C
         CPX   #L024F80
         BCS   L080863
         REP   #$20
         LDA   #L024E00
         CLC
         ADC   #$0004
         STA   $60
L080806  SEP   #$20
         JSL   L180C51
         AND   #$01
         CLC
         ADC   ($60)
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$08
         LDY   #$0008
         STA   ($6C),Y
         SEC
         SBC   #$06
         LDY   #$0009
         STA   ($6C),Y
         REP   #$20
         INC   $60
         SEP   #$20
         JSL   L180C51
         AND   #$01
         CLC
         ADC   ($60)
         LDY   #$0005
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$000A
         STA   ($6C),Y
         REP   #$20
         LDA   $60
         SEC
         SBC   #$0005
         STA   $60
         SEP   #$20
         LDA   ($60)
         AND   #$7F
         CMP   #$0F
         BCC   L080858
         PLP
         RTL

L080858  LDA   ($6C)
         AND   #$80
         CLC
         ADC   #$0E
         STA   ($6C)
         PLP
         RTL

L080863  REP   #$20
         LDA   #L024F80
         CLC
         ADC   #$0004
         STA   $60
         SEP   #$20
         JMP   L080806

L080873  PHP
         SEP   #$20
         LDA   ($60)
         AND   #$80
         ORA   #$1A
         STA   ($60)
         LDY   #$000C
         LDA   $64
         STA   ($60),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   ($60),Y
         LDY   #$0005
         LDA   ($6C),Y
         STA   ($60),Y
         LDY   #$0010
         LDA   #$03
         STA   ($60),Y
         LDY   #$0011
         LDA   $68
         STA   ($60),Y
         LDY   #$0012
         LDA   #$00
         STA   ($60),Y
         LDY   #$0004
         LDA   L024442
         SEC
         SBC   ($6C),Y
         SEC
         SBC   #$05
         LDY   #$0013
         STA   ($60),Y
         LDY   #$0014
         LDA   $69
         STA   ($60),Y
         PLP
         RTL

L0808C2  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0808D5
         DEC
         STA   ($6C),Y
         BEQ   L0808D5
         PLP
         RTL

L0808D5  LDX   #L026ED3
         STX   $68
         JSL   L080000
         LDA   L02432E
         BIT   #$01
         BEQ   L0808E7
         PLP
         RTL

L0808E7  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         JSL   L031582
         PLP
         RTL

L08091E  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L080931
         DEC
         STA   ($6C),Y
         BEQ   L080931
         PLP
         RTL

L080931  REP   #$20
         LDA   #L026F27
         STA   $68
         JSL   L080000
         SEP   #$20
         LDA   L02432E
         BIT   #$01
         BEQ   L080947
         PLP
         RTL

L080947  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         JSL   L031582
         PLP
         RTL

L08097E  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L080991
         DEC
         STA   ($6C),Y
         BEQ   L080991
         PLP
         RTL

L080991  REP   #$20
         LDA   #L026F50
         STA   $68
         JSL   L080000
         SEP   #$20
         LDA   L02432E
         BIT   #$01
         BEQ   L0809A7
         PLP
         RTL

L0809A7  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         JSL   L031582
         PLP
         RTL

L0809DE  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0809F1
         DEC
         STA   ($6C),Y
         BEQ   L0809F1
         PLP
         RTL

L0809F1  REP   #$20
         LDA   #L026F88
         STA   $68
         JSL   L080000
         SEP   #$20
         LDA   L02432E
         BIT   #$01
         BEQ   L080A07
         PLP
         RTL

L080A07  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $5C
         JSL   L031582
         PLP
         RTL

L080A3E  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L080A51
         DEC
         STA   ($6C),Y
         BEQ   L080A51
         PLP
         RTL

L080A51  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         CMP   #$90
         BCC   L080A63
         JMPL  L062B38

L080A63  LDY   #$0005
         LDA   $5C
         STA   ($6C),Y
         LDY   #$0010
         LDA   ($6C),Y
         DEC
         STA   $5C
         BNE   L080A77
         JMP   L080B06

L080A77  BMI   L080A7C
         JMP   L080B13

L080A7C  REP   #$20
         LDA   L024442
         STA   $60
         SEP   #$20
         LDY   #$0005
         LDA   $61
         SEC
         SBC   ($6C),Y
         SEC
         SBC   #$0F
         STA   $61
         LDA   $60
         SEC
         SBC   #$05
         LDY   #$0004
         SEC
         SBC   ($6C),Y
         STA   $5C
         LDA   #$02
         STA   $64
         BCS   L080AAE
         LDA   $5C
         EOR   #$FF
         INC
         STA   $5C
         DEC   $64
L080AAE  LDA   $5C
         CMP   $61
         BCC   L080AD6
         LDY   #$0010
         LDA   $64
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         INC
         INC
         STA   $69
         JSL   L03159E
         JSL   L03159E
L080AD6  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L080AF2
         JMPL  L062B38

L080AF2  LDA   $5C
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L080B06  LDY   #$0004
         LDA   ($6C),Y
         SEC
         SBC   #$06
         STA   ($6C),Y
         JMP   L080AD6

L080B13  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$06
         STA   ($6C),Y
         JMP   L080AD6

L080B20  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L080B33
         DEC
         STA   ($6C),Y
         BEQ   L080B33
         PLP
         RTL

L080B33  LDX   #L026FC8
         STX   $68
         JSL   L080000
         LDA   L02432E
         BIT   #$01
         BEQ   L080B45
         PLP
         RTL

L080B45  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         REP   #$20
         LDA   $68
         PHA
         JSL   L031582
         PLA
         STA   $68
         JSL   L031582
         PLP
         RTL

L080B88  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L080B9B
         DEC
         STA   ($6C),Y
         BEQ   L080B9B
         PLP
         RTL

L080B9B  REP   #$20
         LDA   #L026FF6
         STA   $68
         JSL   L080000
         SEP   #$20
         LDA   L02432E
         BIT   #$01
         BEQ   L080BB1
         PLP
         RTL

L080BB1  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         REP   #$20
         LDA   $68
         PHA
         JSL   L031582
         PLA
         STA   $68
         JSL   L031582
         PLP
         RTL

L080BF4  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L080C07
         DEC
         STA   ($6C),Y
         BEQ   L080C07
         PLP
         RTL

L080C07  REP   #$20
         LDA   #L027024
         STA   $68
         JSL   L080000
         SEP   #$20
         LDA   L02432E
         BIT   #$01
         BEQ   L080C1D
         PLP
         RTL

L080C1D  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         REP   #$20
         LDA   $68
         PHA
         JSL   L031582
         PLA
         STA   $68
         JSL   L031582
         PLP
         RTL

L080C60  ENT
         SEP   #$20
         LDA   ($6C)
         AND   #$80
         CLC
         ADC   #$0E
         STA   ($6C)
         PLP
         RTL

L080C6D  PHP
         SEP   #$20
         LDA   #$00
         XBA
         LDA   $68
         LSR
         LSR
         LSR
         STA   $68
         AND   #$07
         TAX
         STX   $60
         LDA   L0257D7,X
         STA   $64
         LSR   $68
         LSR   $68
         LSR   $68
         LDA   $69
         SEC
         SBC   #$10
         BMI   L080CA4
         ASL
         CLC
         ADC   $68
         STA   $60
         STZ   $61
         LDX   $60
         LDA   L02537F,X
         AND   $64
         STA   $5C
         PLP
         RTL

L080CA4  STZ   $5C
         PLP
         RTL

L080CA8  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L080CBB
         DEC
         STA   ($6C),Y
         BEQ   L080CBB
         PLP
         RTL

L080CBB  LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         CMP   #$90
         BCC   L080CCB
         JMPL  L062B38

L080CCB  CLC
         ADC   #$02
         STA   $69
         CLC
         ADC   #$02
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$00
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         CLC
         ADC   #$00
         STA   $5C
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0010
         LDA   ($6C),Y
         STA   $65
L080CFB  LDX   $64
         PHX
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PLX
         STX   $64
         DEC   $65
         BNE   L080CFB
         PLP
         RTL

L080D11  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L080D24
         DEC
         STA   ($6C),Y
         BEQ   L080D24
         PLP
         RTL

L080D24  LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         STA   $5C
         CMP   #$90
         BCC   L080D36
         JMPL  L062B38

L080D36  CLC
         ADC   #$02
         STA   $5C
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
         LDA   $5C
         CMP   #$12
         BCC   L080DC3
         LDY   #$0010
         LDA   ($6C),Y
         BIT   #$01
         BNE   L080D87
L080D53  LDA   $68
         LDY   #$0011
         SEC
         SBC   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L080D65
         JMPL  L062B38

L080D65  LDA   $5C
         STA   $68
         LDX   $68
         PHX
         JSL   L080C6D
         PLX
         STX   $68
         LDA   $5C
         BEQ   L080DC3
         LDY   #$0010
         LDA   ($6C),Y
         ORA   #$01
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
L080D87  LDA   $68
         LDY   #$0011
         CLC
         ADC   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L080D99
         JMPL  L062B38

L080D99  LDA   $5C
         STA   $68
         LDX   $68
         PHX
         CLC
         ADC   #$07
         STA   $68
         JSL   L080C6D
         PLX
         STX   $68
         LDA   $5C
         BEQ   L080DC3
         LDY   #$0010
         LDA   ($6C),Y
         AND   #$FE
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
         JMP   L080D53

L080DC3  LDA   $68
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$03
         STA   $68
         CLC
         ADC   #$03
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$02
         STA   $69
         CLC
         ADC   #$02
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0013
         LDA   ($6C),Y
         BIT   #$01
         BNE   L080DFC
         PLP
         RTL

L080DFC  LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         JSL   L031582
         PLP
         RTL

L080E1C  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L080E2F
         DEC
         STA   ($6C),Y
         BEQ   L080E2F
         PLP
         RTL

L080E2F  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         CMP   #$8C
         BCC   L080E54
         JMPL  L062B38

L080E54  INC
         INC
         LDY   #$000A
         STA   ($6C),Y
         PLP
         RTL

L080E5D  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L080E70
         DEC
         STA   ($6C),Y
         BEQ   L080E70
         PLP
         RTL

L080E70  LDY   #$0007
         LDA   ($6C),Y
         STA   $5C
         BNE   L080E7C
         JMP   L081020

L080E7C  JSL   L080FE8
         LDY   #$0010
         LDA   ($6C),Y
         BIT   #$01
         BEQ   L080E8C
         JMP   L080F3E

L080E8C  LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
L080E94  LDY   #$0005
         LDA   ($6C),Y
         STA   $5C
         CMP   #$05
         BCS   L080EA3
         JMPL  L062B38

L080EA3  LDA   $5C
         CMP   #$90
         BCC   L080EAD
         JMPL  L062B38

L080EAD  LDA   $5C
         CLC
         ADC   #$04
         STA   $69
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
         SEC
         SBC   #$07
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$0E
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0014
         LDA   ($6C),Y
         BIT   #$01
         BEQ   L080EDE
         PLP
         RTL

L080EDE  LDA   $68
         SEC
         SBC   #$06
         STA   $68
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         LDA   $68
         CLC
         ADC   #$0C
         STA   $68
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         JSL   L031582
         PLP
         RTL

L080F3E  LDY   #$0010
         LDA   ($6C),Y
         BIT   #$80
         BNE   L080F65
         LDY   #$0005
         LDA   ($6C),Y
         STA   $5C
         CMP   #$6C
         BCS   L080F55
         JMP   L080E8C

L080F55  LDA   #$FF
         LDY   #$0014
         STA   ($6C),Y
         LDY   #$0010
         LDA   ($6C),Y
         ORA   #$80
         STA   ($6C),Y
L080F65  LDY   #$0005
         LDA   ($6C),Y
         STA   $61
         LDY   #$0011
         LDA   ($6C),Y
         STA   $60
         REP   #$20
         LDY   #$0012
         LDA   ($6C),Y
         STA   $68
         LDA   $60
         CLC
         ADC   $68
         STA   $60
         SEP   #$20
         LDA   $60
         LDY   #$0011
         STA   ($6C),Y
         LDA   $61
         LDY   #$0005
         STA   ($6C),Y
         LDX   #$FFF6
         STX   $60
         REP   #$20
         LDA   $60
         CLC
         ADC   $68
         STA   $60
         LDY   #$0012
         STA   ($6C),Y
         SEP   #$20
         LDY   #$0010
         LDA   ($6C),Y
         BIT   #$02
         BNE   L080FC6
L080FB1  LDY   #$0004
         LDA   ($6C),Y
         DEC
         STA   $5C
         CMP   #$30
         BCS   L080FDE
         LDY   #$0010
         LDA   ($6C),Y
         ORA   #$02
         STA   ($6C),Y
L080FC6  LDY   #$0004
         LDA   ($6C),Y
         INC
         STA   $5C
         CMP   #$50
         BCC   L080FDE
         LDY   #$0010
         LDA   ($6C),Y
         AND   #$FD
         STA   ($6C),Y
         JMP   L080FB1

L080FDE  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         JMP   L080E94

L080FE8  PHP
         SEP   #$20
         LDA   L024348
         STA   $64
         LDY   #$0007
         LDA   ($6C),Y
         STA   $5C
         CMP   $64
         BCS   L081013
         LDA   L024428
         AND   #$07
         STA   $5C
         STZ   $61
         LDA   $5C
         STA   $60
         LDA   #$02
         STA   $5C
         LDY   $60
         LDA   L027071,Y
         BEQ   L081017
L081013  LDA   #$03
         STA   $5C
L081017  LDA   $5C
         LDY   #$000B
         STA   ($6C),Y
         PLP
         RTL

L081020  SEP   #$20
         LDA   #$03
         LDY   #$000B
         STA   ($6C),Y
         LDA   L024350
         DEC
         STA   $5C
         BEQ   L08106C
         LDA   $5C
         STA   L024350
         DEC
         ASL
         STA   $5C
         STZ   $61
         STA   $60
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         LDY   $60
         ADC   L027051,Y
         STA   $5C
         REP   #$20
         INC   $60
         SEP   #$20
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         LDY   $60
         ADC   L027051,Y
         STA   $5C
         STA   $69
         JSL   L0F0384
         JSL   L290F5E
         PLP
         RTL

L08106C  REP   #$20
         LDAL  L030188
         STA   $04
         SEP   #$20
         JSL   L18071A
         JMPL  L062B38

L08107E  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081096
         LDY   #$000C
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L081096
         PLP
         RTL

L081096  LDY   #$0004
         LDA   ($6C),Y
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$10
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         STA   $5C
         CMP   #$90
         BCC   L0810BA
         JMPL  L062B38

L0810BA  LDA   $5C
         CLC
         ADC   #$02
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         PLP
         RTL

L0810C8  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0810DB
         DEC
         STA   ($6C),Y
         BEQ   L0810DB
         PLP
         RTL

L0810DB  LDY   #$0015
         LDA   ($6C),Y
         BIT   #$01
         BNE   L0810E7
         JMP   L0811E5

L0810E7  LDY   #$0004
         LDA   ($6C),Y
         LDY   #$0010
         CLC
         ADC   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L0810FC
         JMPL  L062B38

L0810FC  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0011
         LDA   ($6C),Y
         STA   $60
         LDY   #$0005
         LDA   ($6C),Y
         STA   $61
         LDY   #$0012
         REP   #$20
         LDA   ($6C),Y
         STA   $68
         CLC
         ADC   $60
         STA   $60
         SEP   #$20
         LDA   $60
         LDY   #$0011
         STA   ($6C),Y
         LDA   $61
         LDY   #$0005
         STA   ($6C),Y
         STA   $5C
         CMP   #$94
         BCC   L081149
         JMPL  L062B38

L081149  LDA   $5C
         CLC
         ADC   #$03
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0014
         LDA   ($6C),Y
         BIT   #$01
         BNE   L0811BC
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $64
         LDA   L024442
         SEC
         SBC   $64
         STA   $5C
         BCS   L081179
         LDA   $5C
         EOR   #$FF
         INC
         STA   $5C
L081179  LDA   $5C
         CMP   #$1E
         BCC   L081181
         PLP
         RTL

L081181  LDY   #$0014
         LDA   ($6C),Y
         ORA   #$01
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   $69
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         JSL   L031582
         PLP
         RTL

L0811BC  REP   #$20
         LDA   #$00C0
         CLC
         ADC   $68
         STA   $60
         LDY   #$0012
         STA   ($6C),Y
         SEP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   $69
         JSL   L031582
         PLP
         RTL

L0811E5  LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         STA   $5C
         CMP   #$90
         BCC   L0811F7
         JMPL  L062B38

L0811F7  LDA   $5C
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDA   L024443
         SEC
         LDY   #$0005
         SBC   ($6C),Y
         STA   $5C
         CMP   #$46
         BCC   L081227
         PLP
         RTL

L081227  LDA   #$FF
         LDY   #$0015
         STA   ($6C),Y
         PLP
         RTL

L081230  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081248
         LDY   #$000C
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L081248
         PLP
         RTL

L081248  LDY   #$0014
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081254
         JMP   L081309

L081254  LDY   #$0004
         LDA   ($6C),Y
         LDY   #$0010
         CLC
         ADC   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L081269
         JMPL  L062B38

L081269  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         REP   #$20
         LDY   #$0011
         LDA   ($6C),Y
         STA   $68
         SEP   #$20
         LDY   #$0013
         LDA   ($6C),Y
         STA   $60
         LDY   #$0005
         LDA   ($6C),Y
         STA   $61
         REP   #$20
         LDA   $60
         CLC
         ADC   $68
         STA   $60
         SEP   #$20
         LDA   $60
         LDY   #$0013
         STA   ($6C),Y
         LDA   $61
         LDY   #$0005
         STA   ($6C),Y
         STA   $5C
         CMP   #$90
         BCC   L0812BC
         JMPL  L062B38

L0812BC  LDA   $5C
         LDY   #$0005
         STA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$000A
         STA   ($6C),Y
         STA   $5C
         REP   #$20
         LDA   #$0064
         CLC
         ADC   $68
         STA   $60
         LDY   #$0011
         STA   ($6C),Y
         SEP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         INC
         INC
         STA   $69
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         JSL   L031582
         PLP
         RTL

L081309  LDY   #$0014
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         STA   $5C
         CMP   #$90
         BCC   L081323
         JMPL  L062B38

L081323  LDA   $5C
         CLC
         ADC   #$03
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L081346  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081359
         DEC
         STA   ($6C),Y
         BEQ   L081359
         PLP
         RTL

L081359  LDY   #$0014
         LDA   ($6C),Y
         STA   $5C
         BNE   L081309
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         CMP   #$90
         BCC   L081374
         JMPL  L062B38

L081374  LDA   $5C
         LDY   #$0005
         STA   ($6C),Y
         CLC
         ADC   #$03
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         REP   #$20
         LDY   #$0011
         LDA   ($6C),Y
         STA   $68
         SEP   #$20
         LDY   #$0013
         LDA   ($6C),Y
         STA   $60
         LDY   #$0004
         LDA   ($6C),Y
         STA   $61
         LDY   #$0010
         LDA   ($6C),Y
         BIT   #$01
         BNE   L0813B5
         REP   #$20
         LDA   $60
         CLC
         ADC   $68
         STA   $60
         SEP   #$20
         JMP   L0813BE

L0813B5  REP   #$20
         LDA   $60
         SEC
         SBC   $68
         STA   $60
L0813BE  SEP   #$20
         LDA   $60
         LDY   #$0013
         STA   ($6C),Y
         LDA   $61
         LDY   #$0004
         STA   ($6C),Y
         LDA   $61
         STA   $5C
         CMP   #$76
         BCC   L0813DA
         JMPL  L062B38

L0813DA  LDA   $5C
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         REP   #$20
         LDA   #$0050
         CLC
         ADC   $68
         STA   $60
         LDY   #$0011
         STA   ($6C),Y
         SEP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         INC
         INC
         STA   $69
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         JSL   L031582
         PLP
         RTL

L081428  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L08143B
         DEC
         STA   ($6C),Y
         BEQ   L08143B
         PLP
         RTL

L08143B  LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         STA   $5C
         CMP   #$90
         BCC   L08144D
         JMPL  L062B38
L08144D  JMP   L081512

L081450  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081463
         DEC
         STA   ($6C),Y
         BEQ   L081463
         PLP
         RTL

L081463  LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         STA   $5C
         CMP   #$90
         BCC   L081475
         JMPL  L062B38

L081475  LDA   $5C
         CLC
         ADC   #$02
         STA   $5C
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
         LDA   $5C
         CMP   #$12
         BCC   L081506
         LDY   #$0010
         LDA   ($6C),Y
         BIT   #$01
         BNE   L0814C8
L081494  LDA   $68
         LDY   #$0011
         SEC
         SBC   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L0814A6
         JMPL  L062B38

L0814A6  LDA   $5C
         STA   $68
         LDX   $68
         PHX
         JSL   L080C6D
         PLX
         STX   $68
         LDA   $5C
         BEQ   L081506
         LDY   #$0010
         LDA   ($6C),Y
         ORA   #$01
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
L0814C8  LDA   $68
         LDY   #$0011
         CLC
         ADC   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L0814DA
         JMPL  L062B38

L0814DA  LDA   $5C
         STA   $68
         LDX   $68
         PHX
         CLC
         ADC   #$07
         STA   $5C
         STA   $68
         JSL   L080C6D
         PLX
         STX   $68
         LDA   $5C
         BEQ   L081506
         LDY   #$0010
         LDA   ($6C),Y
         AND   #$FE
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
         JMP   L081494

L081506  LDA   $68
         STA   $5C
         LDY   #$0004
         STA   ($6C),Y
         JMP   L081512

L081512  SEP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$03
         STA   $68
         CLC
         ADC   #$03
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         STA   $69
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$10
         STA   $5C
         BPL   L081546
         PLP
         RTL

L081546  LDY   #$0012
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L081552
         PLP
         RTL

L081552  JSL   L180C51
         AND   #$07
         CLC
         ADC   #$0D
         LDY   #$0012
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         STA   $69
         LDA   #$02
         STA   $5C
         JSL   L180A3A
         PLP
         RTL

L081574  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081587
         DEC
         STA   ($6C),Y
         BEQ   L081587
         PLP
         RTL

L081587  LDY   #$0010
         LDA   ($6C),Y
         BIT   #$01
         BNE   L0815F6
         LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         STA   $5C
         CMP   #$90
         BCC   L0815A2
         JMPL  L062B38

L0815A2  LDA   $5C
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         LDA   L024443
         LDY   #$0005
         SEC
         SBC   ($6C),Y
         STA   $5C
         CMP   #$46
         BCC   L0815D2
         PLP
         RTL

L0815D2  LDY   #$0010
         LDA   ($6C),Y
         ORA   #$01
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         JSL   L0F0384
         JSL   L290F5E
         PLP
         RTL

L0815F6  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$02
         STA   ($6C),Y
         CMP   #$90
         BCC   L081608
         JMPL  L062B38

L081608  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $64
         LDA   L024442
         CMP   $64
         PHP
         LDA   #$02
         STA   $64
         PLP
         BCS   L081623
         LDA   #$FE
         STA   $64
L081623  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   $64
         STA   $5C
         STA   ($6C),Y
         CMP   #$76
         BCC   L081637
         JMPL  L062B38

L081637  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$02
         STA   $68
         CLC
         ADC   #$02
         STA   $5C
         LDY   #$0009
         STA   ($6C),Y
         LDX   $68
         PHX
         LDA   $68
         SEC
         SBC   #$03
         STA   $68
         JSL   L080C6D
         PLX
         STX   $68
         LDA   $5C
         BNE   L081688
         LDA   $68
         CLC
         ADC   #$03
         STA   $68
         JSL   L080C6D
         LDA   $5C
         BNE   L081688
         PLP
         RTL
L081688  JMP   L080C60

L08168B  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L08169E
         DEC
         STA   ($6C),Y
         BEQ   L08169E
         PLP
         RTL

L08169E  LDY   #$0006
         LDA   ($6C),Y
         STA   $5C
         BNE   L0816D9
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         REP   #$20
         LDA   $6C
         SEC
         SBC   #$0180
         STA   $60
         SEP   #$20
         LDA   ($6C)
         AND   #$7F
         DEC
         STA   $64
         LDA   ($60)
         AND   #$7F
         STA   $5C
         CMP   $64
         BNE   L0816D5
         PLP
         RTL
L0816D5  JMPL  L062B38

L0816D9  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   ($6C),Y
         STA   $5C
         CMP   #$91
         BCC   L0816ED
         JMPL  L062B38

L0816ED  LDA   $5C
         CLC
         ADC   #$05
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         REP   #$20
         LDY   #$0010
         LDA   ($6C),Y
         STA   $68
         SEP   #$20
         LDY   #$0012
         LDA   ($6C),Y
         STA   $5C
         STZ   $60
         LDA   #$05
         STA   $65
L081711  LDA   $5C
         SEC
         SBC   $68
         STA   $5C
         BCS   L081723
         LDA   $5C
         CLC
         ADC   $69
         STA   $5C
         INC   $60
L081723  DEC   $65
         BNE   L081711
         LDA   $5C
         LDY   #$0012
         STA   ($6C),Y
         LDY   #$0013
         LDA   ($6C),Y
         BIT   #$01
         BEQ   L08173E
         LDA   #$00
         SEC
         SBC   $60
         STA   $60
L08173E  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   $60
         STA   $5C
         STA   ($6C),Y
         CMP   #$76
         BCC   L081752
         JMPL  L062B38

L081752  LDA   $5C
         CLC
         ADC   #$05
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L081766  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081779
         DEC
         STA   ($6C),Y
         BEQ   L081779
         PLP
         RTL

L081779  LDY   #$0016
         LDA   ($6C),Y
         STA   $60
         LDY   #$0004
         LDA   ($6C),Y
         STA   $61
         REP   #$20
         LDY   #$0010
         LDA   ($6C),Y
         STA   $68
         CLC
         ADC   $60
         STA   $60
         SEP   #$20
         LDA   $61
         STA   $5C
         CMP   #$76
         BCC   L0817A3
         JMPL  L062B38

L0817A3  LDA   $60
         LDY   #$0016
         STA   ($6C),Y
         LDA   $61
         LDY   #$0004
         STA   ($6C),Y
         INC   $61
         INC   $61
         LDA   $61
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         STA   $61
         STA   $5C
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0017
         LDA   ($6C),Y
         STA   $60
         LDY   #$0005
         LDA   ($6C),Y
         STA   $61
         REP   #$20
         LDY   #$0012
         LDA   ($6C),Y
         STA   $64
         CLC
         ADC   $60
         STA   $60
         SEP   #$20
         LDA   $61
         STA   $5C
         CMP   #$08
         BCS   L0817F2
         JMPL  L062B38

L0817F2  LDA   $5C
         CMP   #$90
         BCC   L0817FC
         JMPL  L062B38

L0817FC  LDA   $60
         LDY   #$0017
         STA   ($6C),Y
         LDA   $61
         LDY   #$0005
         STA   ($6C),Y
         LDA   $61
         CLC
         ADC   #$04
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0014
         LDA   ($6C),Y
         BIT   #$01
         BNE   L081846
         LDY   #$0015
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L08182B
         PLP
         RTL

L08182B  JSL   L180C51
         AND   #$03
         CLC
         ADC   #$02
         STA   $5C
         LDY   #$0015
         STA   ($6C),Y
         LDY   #$0014
         LDA   ($6C),Y
         ORA   #$01
         STA   ($6C),Y
         PLP
         RTL

L081846  LDY   #$0011
         LDA   ($6C),Y
         BIT   #$80
         BEQ   L081857
         LDX   #$FF80
         STX   $60
         JMP   L08185C

L081857  LDX   #$0080
         STX   $60
L08185C  REP   #$20
         LDA   $60
         CLC
         ADC   $68
         LDY   #$0010
         STA   ($6C),Y
         LDA   #$FF40
         CLC
         ADC   $64
         STA   $60
         LDY   #$0012
         STA   ($6C),Y
         SEP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$04
         STA   $5C
         CMP   #$22
         BCS   L081887
         PLP
         RTL

L081887  LDA   $5C
         CMP   #$5D
         BCC   L08188F
         PLP
         RTL

L08188F  LDY   #$0005
         LDA   ($6C),Y
         STA   $5C
         CMP   #$10
         BCS   L08189C
         PLP
         RTL

L08189C  LDY   #$0015
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L0818A8
         PLP
         RTL

L0818A8  JSL   L180C51
         AND   #$03
         CLC
         ADC   #$02
         LDY   #$0015
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$03
         STA   $69
         LDA   #$02
         STA   $5C
         JSL   L180A3A
         PLP
         RTL

L0818D4  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0818E7
         DEC
         STA   ($6C),Y
         BEQ   L0818E7
         PLP
         RTL

L0818E7  LDY   #$0010
         LDA   ($6C),Y
         DEC
         STA   $5C
         BEQ   L08192B
         BPL   L081938
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   ($6C),Y
         CLC
         ADC   #$05
         STA   $64
         LDA   L024443
         STA   $5C
         CMP   $64
         BCS   L081942
         LDY   #$0004
         LDA   ($6C),Y
         STA   $5C
         CMP   #$40
         BCS   L081921
         LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         JMP   L081942

L081921  LDY   #$0010
         LDA   #$02
         STA   ($6C),Y
         JMP   L081942

L08192B  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   ($6C),Y
         JMP   L081942

L081938  LDY   #$0004
         LDA   ($6C),Y
         SEC
         SBC   #$05
         STA   ($6C),Y
L081942  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L08195E
         JMPL  L062B38

L08195E  LDA   $5C
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$05
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L081972  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081985
         DEC
         STA   ($6C),Y
         BEQ   L081985
         PLP
         RTL

L081985  LDY   #$0006
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0005
         CLC
         ADC   ($6C),Y
         STA   ($6C),Y
         CMP   #$92
         BCC   L08199D
         JMPL  L062B38

L08199D  CLC
         ADC   #$06
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
         LDY   #$0010
         LDA   ($6C),Y
         ASL
         STA   $60
         STZ   $61
         LDX   $60
         JMP   (L0819BB,X)

L0819BB  DA    L0819C3
         DA    L081A00
         DA    L0819E3
         DA    L081A36
L0819C3  LDA   $68
         CLC
         ADC   #$06
         STA   $68
         CMP   #$58
         BCS   L0819D1
         JMP   L081A63

L0819D1  LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         LDA   #$00
         LDY   #$0011
         STA   ($6C),Y
         JMP   L081A63

L0819E3  LDA   $68
         SEC
         SBC   #$06
         STA   $68
         CMP   #$1E
         BCS   L081A63
         LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         LDA   #$00
         LDY   #$0011
         STA   ($6C),Y
         JMP   L081A63

L081A00  STZ   $65
         LDY   #$0011
         LDA   ($6C),Y
         STA   $64
         REP   #$20
         LDA   #L027079
         CLC
         ADC   $64
         STA   $60
         SEP   #$20
         LDA   ($60)
         STA   $5C
         CLC
         ADC   $68
         STA   $68
         INC   $64
         LDA   $64
         LDY   #$0011
         STA   ($6C),Y
         CMP   #$11
         BCC   L081A63
         LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         JMP   L081A63

L081A36  STZ   $65
         LDY   #$0011
         LDA   ($6C),Y
         STA   $64
         REP   #$20
         LDA   #L027079
         CLC
         ADC   $64
         STA   $60
         SEP   #$20
         LDA   $68
         SEC
         SBC   ($60)
         STA   $68
         INC   $64
         LDA   $64
         STA   ($6C),Y
         CMP   #$11
         BCC   L081A63
         LDA   #$00
         LDY   #$0010
         STA   ($6C),Y
L081A63  LDA   $68
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0006
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081A85
         PLP
         RTL

L081A85  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$07
         STA   $68
         LDA   L024442
         SEC
         SBC   $68
         STA   $5C
         STZ   $64
         BCS   L081AA4
         INC   $64
         LDA   $5C
         EOR   #$FF
         INC
         STA   $5C
L081AA4  LDA   $5C
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         STA   $69
         LDA   L024443
         SEC
         SBC   $69
         STA   $5C
         BCS   L081ABE
         PLP
         RTL

L081ABE  LDA   $5C
         CMP   #$35
         BCC   L081AC6
         PLP
         RTL

L081AC6  LDA   $5C
         STA   $69
         CMP   $68
         BCS   L081AD0
         PLP
         RTL

L081AD0  LDA   #$FC
         LDY   #$0006
         STA   ($6C),Y
         REP   #$20
         LDA   $6C
         CLC
         ADC   #$0180
         STA   $60
         LDY   #$0004
         LDA   ($6C),Y
         STA   $5C
         STA   ($60),Y
         LDA   #$0001
         SEP   #$20
         LDY   #$0006
         STA   ($60),Y
         LDA   $68
         LDY   #$0010
         STA   ($60),Y
         LDA   $69
         LDY   #$0011
         STA   ($60),Y
         LDA   #$00
         LDY   #$0012
         STA   ($60),Y
         LDA   $64
         LDY   #$0013
         STA   ($60),Y
         REP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
         SEP   #$20
         LDA   $68
         CLC
         ADC   #$04
         STA   $68
         INC   $69
         LDX   $68
         PHX
         JSL   L03159E
         PLX
         STX   $68
         PHX
         JSL   L03159E
         PLX
         STX   $68
         INC   $68
         INC   $68
         INC   $69
         JSL   L0F0384
         JSL   L290F5E
         PLP
         RTL

L081B46  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081B59
         DEC
         STA   ($6C),Y
         BEQ   L081B59
         PLP
         RTL

L081B59  REP   #$20
         LDY   #$0010
         LDA   ($6C),Y
         STA   $68
         SEP   #$20
         LDA   $68
         STA   $5C
         CMP   $69
         BCS   L081BB9
         STZ   $64
         LDY   #$0012
         LDA   ($6C),Y
         STA   $5C
         JSL   L081C4A
         LDA   $5C
         LDY   #$0012
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $5C
         LDY   #$0013
         LDA   ($6C),Y
         BIT   #$80
         BMI   L081B9A
         LDA   $5C
         CLC
         ADC   $64
         CLC
         ADC   $64
         STA   $5C
L081B9A  LDA   $5C
         SEC
         SBC   $64
         LDY   #$0004
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         LDY   #$0014
         CLC
         ADC   ($6C),Y
         STA   $5C
         LDY   #$0005
         STA   ($6C),Y
         JMP   L081C0B

L081BB9  LDA   $69
         STA   $68
         LDA   $5C
         STA   $69
         STZ   $64
         LDY   #$0012
         LDA   ($6C),Y
         STA   $5C
         JSL   L081C4A
         LDA   $5C
         LDY   #$0012
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         STA   $5C
         LDY   #$0014
         LDA   ($6C),Y
         BIT   #$80
         BMI   L081BEF
         LDA   $5C
         CLC
         ADC   $64
         CLC
         ADC   $64
         STA   $5C
L081BEF  LDA   $5C
         SEC
         SBC   $64
         LDY   #$0005
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         LDY   #$0013
         CLC
         ADC   ($6C),Y
         STA   $5C
         LDY   #$0004
         STA   ($6C),Y
L081C0B  LDY   #$0005
         LDA   ($6C),Y
         SEC
         SBC   #$08
         STA   $5C
         CMP   #$8C
         BCC   L081C1D
         JMPL  L062B38

L081C1D  LDA   $5C
         CLC
         ADC   #$0D
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L081C36
         JMPL  L062B38

L081C36  LDA   $5C
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L081C4A  LDA   $5C
         SEC
         SBC   $68
         STA   $5C
         BCS   L081C5C
         INC   $64
         LDA   $5C
         CLC
         ADC   $69
         STA   $5C
L081C5C  LDA   $5C
         SEC
         SBC   $68
         STA   $5C
         BCC   L081C66
         RTL

L081C66  INC   $64
         LDA   $5C
         CLC
         ADC   $69
         STA   $5C
         RTL

L081C70  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081C83
         DEC
         STA   ($6C),Y
         BEQ   L081C83
         PLP
         RTL

L081C83  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         STA   ($6C),Y
         CMP   #$94
         BCC   L081C97
         JMPL  L062B38

L081C97  LDA   $5C
         CLC
         ADC   #$03
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L081CB8  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081CCB
         DEC
         STA   ($6C),Y
         BEQ   L081CCB
         PLP
         RTL

L081CCB  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         STA   $5C
         STA   ($6C),Y
         CMP   #$94
         BCC   L081CDF
         JMPL  L062B38

L081CDF  LDA   $5C
         CLC
         ADC   #$03
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L081D00  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081D13
         DEC
         STA   ($6C),Y
         BEQ   L081D13
         PLP
         RTL

L081D13  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         STA   $5C
         STA   ($6C),Y
         CMP   #$94
         BCC   L081D27
         JMPL  L062B38

L081D27  LDA   $5C
         CLC
         ADC   #$03
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         STA   $5C
         CMP   #$76
         BCC   L081D43
         JMPL  L062B38

L081D43  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L081D5C  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081D6F
         DEC
         STA   ($6C),Y
         BEQ   L081D6F
         PLP
         RTL

L081D6F  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         STA   $5C
         STA   ($6C),Y
         CMP   #$94
         BCC   L081D83
         JMPL  L062B38

L081D83  LDA   $5C
         CLC
         ADC   #$03
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         SEC
         SBC   #$02
         STA   $5C
         CMP   #$76
         BCC   L081D9F
         JMPL  L062B38

L081D9F  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L081DB8  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081DCB
         DEC
         STA   ($6C),Y
         BEQ   L081DCB
         PLP
         RTL

L081DCB  LDY   #$0011
         LDA   ($6C),Y
         BIT   #$02
         BEQ   L081DD7
         JMP   L081E75

L081DD7  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         STA   ($6C),Y
         CMP   #$94
         BCC   L081DEB
         JMPL  L062B38

L081DEB  LDA   $5C
         LDY   #$0013
         CMP   ($6C),Y
         BCC   L081DFD
         LDY   #$0011
         LDA   ($6C),Y
         ORA   #$02
         STA   ($6C),Y
L081DFD  LDA   $5C
         CLC
         ADC   #$04
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         JSL   L081F0B
         LDY   #$0004
         LDA   ($6C),Y
         STA   $5C
         LDY   #$0011
         LDA   ($6C),Y
         BIT   #$01
         BNE   L081E27
         LDA   $5C
         SEC
         SBC   $64
         SEC
         SBC   $64
         STA   $5C
L081E27  LDA   $5C
         CLC
         ADC   $64
         STA   $5C
         CMP   #$76
         BCC   L081E36
         JMPL  L062B38

L081E36  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0013
         LDA   ($6C),Y
         LDY   #$0005
         SEC
         SBC   ($6C),Y
         STA   $5C
         CMP   #$12
         BCC   L081E60
         PLP
         RTL

L081E60  LDY   #$0006
         LDA   ($6C),Y
         STA   $5C
         BNE   L081E6B
         PLP
         RTL

L081E6B  LDY   #$0006
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         PLP
         RTL

L081E75  LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         STA   $5C
         CMP   #$94
         BCC   L081E87
         JMPL  L062B38

L081E87  LDA   $5C
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0006
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081EA2
         LDY   #$0006
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
L081EA2  LDY   #$0004
         LDA   ($6C),Y
         STA   $5C
         LDY   #$0011
         LDA   ($6C),Y
         BIT   #$01
         BNE   L081EB9
         LDA   $5C
         SEC
         SBC   #$06
         STA   $5C
L081EB9  LDA   $5C
         CLC
         ADC   #$03
         STA   $5C
         CMP   #$76
         BCC   L081EC8
         JMPL  L062B38

L081EC8  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $5C
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   $69
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         JSL   L031582
         PLP
         RTL

L081F0B  LDY   #$0010
         LDA   ($6C),Y
         STA   $68
         LDY   #$0012
         LDA   ($6C),Y
         STA   $69
         STZ   $64
         LDY   #$0014
         LDA   ($6C),Y
         STA   $5C
         JSL   L081F42
         JSL   L081F42
         JSL   L081F42
         JSL   L081F42
         JSL   L081F42
         JSL   L081F42
         LDA   $5C
         LDY   #$0014
         STA   ($6C),Y
         RTL

L081F42  LDA   $5C
         SEC
         SBC   $68
         STA   $5C
         BCC   L081F4C
         RTL

L081F4C  INC   $64
         LDA   $5C
         CLC
         ADC   $69
         STA   $5C
         BCC   L081F4C
         RTL

L081F58  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081F6B
         DEC
         STA   ($6C),Y
         BEQ   L081F6B
         PLP
         RTL

L081F6B  LDX   #L02708A
         STX   $68
         JSL   L080000
         LDA   L02432E
         CMP   #$01
         BNE   L081F7D
         PLP
         RTL

L081F7D  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         JSL   L180C51
         AND   #$03
         STA   $5C
         BEQ   L081FBA
         PLP
         RTL

L081FBA  JSL   L031582
         PLP
         RTL

L081FC0  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L081FD3
         DEC
         STA   ($6C),Y
         BEQ   L081FD3
         PLP
         RTL

L081FD3  LDY   #$0010
         LDA   ($6C),Y
         STA   $5C
         CMP   #$01
         BNE   L081FE1
         JMP   L0820B0

L081FE1  LDA   $5C
         CMP   #$02
         BNE   L081FEA
         JMP   L08210D

L081FEA  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$03
         STA   $5C
         LDY   #$0005
         STA   ($6C),Y
         CMP   #$90
         BCC   L082001
         JMPL  L062B38

L082001  LDA   $5C
         STA   $64
         LDA   L024443
         SEC
         SBC   #$0A
         SEC
         SBC   $64
         STA   $5C
         BCS   L082017
         EOR   #$FF
         INC
         STA   $5C
L082017  LDA   $5C
         CMP   #$05
         BCS   L082046
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $64
         LDA   L024442
         SEC
         SBC   $64
         STA   $5C
         BCS   L082036
         EOR   #$FF
         INC
         STA   $5C
L082036  LDA   $5C
         CMP   #$05
         BCS   L082046
         LDA   #$01
         LDY   #$0010
         STA   ($6C),Y
         JMP   L0820B0

L082046  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $64
         LDA   L024442
         STA   $5C
         CMP   $64
         PHP
         LDA   #$02
         STA   $64
         PLP
         BCS   L082063
         LDA   #$FE
         STA   $64
L082063  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   $64
         STA   $5C
         STA   ($6C),Y
         CMP   #$76
         BCC   L082077
         JMPL  L062B38

L082077  LDX   #L020748
         STX   $60
         LDA   $60
         LDY   #$0006
         STA   ($6C),Y
         LDA   $61
         LDY   #$001A
         STA   ($6C),Y
L08208A  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$000A
         STA   ($6C),Y
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L0820B0  LDY   #$0011
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L08210D
         LDA   L024442
         SEC
         SBC   #$05
         LDY   #$0004
         STA   ($6C),Y
         LDA   L024443
         SEC
         SBC   #$0F
         LDY   #$0005
         STA   ($6C),Y
         LDX   #L020888
         STX   $60
         LDA   $60
         LDY   #$0006
         STA   ($6C),Y
         LDA   $61
         LDY   #$001A
         STA   ($6C),Y
         LDA   #$19
         LDY   #$0007
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$000A
         STA   ($6C),Y
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$0A
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L08210D  LDA   #$02
         LDY   #$0010
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         SEC
         SBC   #$06
         STA   $5C
         STA   ($6C),Y
         LDX   #L020748
         STX   $60
         LDA   $60
         LDY   #$0006
         STA   ($6C),Y
         LDA   $61
         LDY   #$001A
         STA   ($6C),Y
         LDA   $5C
         CMP   #$0A
         BCS   L08213D
         JMPL  L062B38
L08213D  JMP   L08208A

L082140  ENT
         PHP
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L082151
         DEC
         STA   ($6C),Y
         BEQ   L082151
         PLP
         RTL

L082151  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$02
         STA   $5C
         STA   ($6C),Y
         CMP   #$91
         BCC   L082165
         JMPL  L062B38

L082165  LDA   $5C
         CLC
         ADC   #$04
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $68
         LDY   #$0010
         LDA   ($6C),Y
         ASL
         STA   $60
         STZ   $61
         LDX   $60
         JMP   (L082187,X)

L082187  DA    L08218B
         DA    L0821CB
L08218B  LDA   $68
         CLC
         ADC   #$06
         STA   $68
         CMP   #$76
         BCC   L082205
         LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         LDA   $68
         SEC
         SBC   #$0C
         STA   $68
         LDX   $68
         PHX
         LDA   $68
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   $69
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         JSL   L031582
         PLX
         STX   $68
         JMP   L082205

L0821CB  LDA   $68
         SEC
         SBC   #$06
         STA   $68
         BCS   L082205
         LDA   #$00
         LDY   #$0010
         STA   ($6C),Y
         LDA   $68
         CLC
         ADC   #$0C
         STA   $68
         LDX   $68
         PHX
         LDA   $68
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         INC
         STA   $69
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         JSL   L031582
         PLX
         STX   $68
L082205  LDA   $68
         STA   $5C
         LDY   #$0004
         STA   ($6C),Y
         INC
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$08
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0006
         LDA   ($6C),Y
         STA   $5C
         BEQ   L082227
         PLP
         RTL

L082227  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDA   L024442
         SEC
         SBC   $68
         STA   $5C
         BCS   L082240
         EOR   #$FF
         INC
         STA   $5C
L082240  LDA   $5C
         CMP   #$07
         BCC   L082248
         PLP
         RTL

L082248  LDA   #$01
         LDY   #$0006
         STA   ($6C),Y
         REP   #$20
         LDA   $6C
         CLC
         ADC   #$0184
         STA   $60
         SEP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         STA   $5C
         STA   ($60)
         REP   #$20
         INC   $60
         SEP   #$20
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $5C
         STA   ($60)
         REP   #$20
         INC   $60
         SEP   #$20
         LDA   #$01
         STA   ($60)
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         STA   $69
         JSL   L0F0384
         JSL   L290F5E
         PLP
         RTL

L08229E  ENT
         PHP
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0822AF
         DEC
         STA   ($6C),Y
         BEQ   L0822AF
         PLP
         RTL

L0822AF  LDY   #$0006
         LDA   ($6C),Y
         STA   $5C
         BNE   L0822E8
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$05
         LDY   #$000A
         STA   ($6C),Y
         REP   #$20
         LDA   $6C
         SEC
         SBC   #$0180
         STA   $60
         SEP   #$20
         LDA   ($6C)
         AND   #$7F
         DEC
         STA   $64
         LDA   ($60)
         AND   #$7F
         STA   $5C
         CMP   $64
         BNE   L0822E4
         PLP
         RTL
L0822E4  JMPL  L062B38

L0822E8  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         STA   ($6C),Y
         CMP   #$91
         BCC   L0822FC
         JMPL  L062B38

L0822FC  LDA   $5C
         CLC
         ADC   #$06
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0009
         STA   ($6C),Y
         PLP
         RTL

L08231D  ENT
         PHP
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L08232E
         DEC
         STA   ($6C),Y
         BEQ   L08232E
         PLP
         RTL

L08232E  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$03
         STA   ($6C),Y
         CMP   #$96
         BCC   L082340
         JMPL  L062B38

L082340  CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   $61
         LDY   #$0010
         LDA   ($6C),Y
         STA   $60
         REP   #$20
         LDY   #$0011
         LDA   ($6C),Y
         STA   $68
         CLC
         ADC   $60
         STA   $60
         SEP   #$20
         LDY   #$0004
         LDA   $61
         STA   ($6C),Y
         LDA   $60
         LDY   #$0010
         STA   ($6C),Y
         LDA   $61
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         LDY   #$0009
         STA   ($6C),Y
         LDA   $61
         CMP   #$76
         BCC   L082392
         JMPL  L062B38

L082392  LDY   #$0013
         LDA   ($6C),Y
         DEC
         STA   $5C
         BNE   L08239F
         JMP   L082422

L08239F  BMI   L0823A4
         JMP   L08245F

L0823A4  REP   #$20
         LDY   #$0011
         LDA   ($6C),Y
         STA   $60
         SEP   #$20
         LDA   $61
         BIT   #$80
         BNE   L0823EC
         LDY   #$0006
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BPL   L0823C2
         INC
         STA   ($6C),Y
L0823C2  REP   #$20
         LDA   #$FF10
         STA   $68
         CLC
         ADC   $60
         STA   $60
         LDY   #$0011
         STA   ($6C),Y
         SEP   #$20
         BCS   L0823D9
         PLP
         RTL

L0823D9  LDA   #$01
         LDY   #$0013
         STA   ($6C),Y
         REP   #$20
         LDA   #$0000
         LDY   #$0011
         STA   ($6C),Y
         PLP
         RTL

L0823EC  LDY   #$0006
         LDA   ($6C),Y
         BIT   #$D008
         ORA   $1A,S
         STA   ($6C),Y
         REP   #$20
         LDA   #$00F0
         STA   $68
         CLC
         ADC   $60
         STA   $60
         LDY   #$0011
         STA   ($6C),Y
         SEP   #$20
         BCC   L08240F
         PLP
         RTL

L08240F  LDA   #$01
         LDY   #$0013
         STA   ($6C),Y
         REP   #$20
         LDA   #$0000
         LDY   #$0011
         STA   ($6C),Y
         PLP
         RTL

L082422  LDA   L024443
         LDY   #$0005
         SEC
         SBC   ($6C),Y
         STA   $5C
         BCC   L082437
         LDA   $5C
         CMP   #$9028
         COP   $28
         RTL

L082437  LDA   #$A002
         ORA   ($00,S),Y
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$8505
         PLA
         LDA   L024442
         STA   $5C
         CMP   $68
         BCC   L082453
         PLP
         RTL

L082453  REP   #$20
         LDA   #$FFFF
         LDY   #$0011
         STA   ($6C),Y
         PLP
         RTL

L08245F  REP   #$20
         LDY   #$0011
         LDA   ($6C),Y
         STA   $60
         SEP   #$20
         LDA   $61
         BIT   #$80
         BNE   L08248E
         LDY   #$0006
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         REP   #$20
         LDA   #$00F0
         STA   $68
         CLC
         ADC   $60
         STA   $60
         LDY   #$0011
         STA   ($6C),Y
         SEP   #$20
         JMP   L0824A7

L08248E  LDY   #$0006
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         REP   #$20
         LDA   #$FF10
         STA   $68
         CLC
         ADC   $60
         STA   $60
         LDY   #$0011
         STA   ($6C),Y
L0824A7  SEP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         INC
         INC
         STA   $69
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         JSL   L031582
         PLP
         RTL

L0824CC  ENT
         PHP
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0824DD
         DEC
         STA   ($6C),Y
         BEQ   L0824DD
         PLP
         RTL

L0824DD  LDX   #L0270B1
         STX   $68
         JSL   L080000
         LDA   #$01
         CMP   L02432E
         BNE   L0824EF
         PLP
         RTL

L0824EF  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $5C
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         JSL   L180C51
         AND   #$03
         STA   $5C
         BEQ   L08252E
         PLP
         RTL

L08252E  JSL   L031582
         PLP
         RTL

L082534  ENT
         PHP
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L082545
         DEC
         STA   ($6C),Y
         BEQ   L082545
         PLP
         RTL

L082545  LDX   #L0270FA
         STX   $68
         JSL   L080000
         LDA   #$01
         CMP   L02432E
         BNE   L082557
         PLP
         RTL

L082557  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$000A
         STA   ($6C),Y
         SEC
         SBC   #$02
         STA   $5C
         STA   $69
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         JSL   L180C51
         LDA   $5C
         AND   #$03
         STA   $5C
         BEQ   L082598
         PLP
         RTL

L082598  JSL   L031582
         PLP
         RTL

L08259E  ENT
         PHP
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0825AF
         DEC
         STA   ($6C),Y
         BEQ   L0825AF
         PLP
         RTL

L0825AF  REP   #$20
         LDY   #$0004
         LDA   ($6C),Y
         STA   $60
         SEP   #$20
         LDY   #$0010
         LDA   ($6C),Y
         ASL
         STA   $5C
         STZ   $5D
         LDX   $5C
         STX   $70
         JMP   (L0825CB,X)

L0825CB  DA    L0825D5
         DA    L0825E6
         DA    L0825F7
         DA    L082608
         DA    L08267E
L0825D5  LDA   $60
         SEC
         SBC   #$03
         STA   $60
         LDA   $61
         CLC
         ADC   #$03
         STA   $61
         JMP   L082616

L0825E6  LDA   $60
         CLC
         ADC   #$03
         STA   $60
         LDA   $61
         CLC
         ADC   #$03
         STA   $61
         JMP   L082616

L0825F7  LDA   $60
         SEC
         SBC   #$03
         STA   $60
         LDA   $61
         SEC
         SBC   #$03
         STA   $61
         JMP   L082616

L082608  LDA   $60
         CLC
         ADC   #$03
         STA   $60
         LDA   $61
         SEC
         SBC   #$03
         STA   $61
L082616  LDA   $61
         SEC
         SBC   #$08
         STA   $5C
         CMP   #$90
         BCC   L082625
         JMPL  L062B38

L082625  REP   #$20
         LDA   $60
         LDY   #$0004
         STA   ($6C),Y
         SEP   #$20
         LDA   $61
         CLC
         ADC   #$02
         LDY   #$000A
         STA   ($6C),Y
         LDA   $60
         STA   $5C
         CMP   #$76
         BCC   L082646
         JMPL  L062B38

L082646  LDA   $5C
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0011
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L082666
         PLP
         RTL

L082666  LDY   #$0010
         LDA   ($6C),Y
         STA   $5C
         LDY   #$0013
         STA   ($6C),Y
         REP   #$20
         LDA   #$0604
         LDY   #$0010
         STA   ($6C),Y
         PLP
         RTL

L08267E  LDX   $60
         LDY   $68
         STY   $60
         STX   $68
         LDA   $68
         CLC
         ADC   #$8505
         PLA
         JSL   L031582
         LDY   #$0011
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L08269D
         PLP
         RTL

L08269D  LDY   #$0013
         LDA   ($6C),Y
         LDY   #$0010
         STA   ($6C),Y
         LDY   #$0012
         LDA   ($6C),Y
         STA   $5C
         CMP   #$9008
         COP   $28
         RTL

         LDY   #$0012
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         LDA   L024442
         STA   $5C
         LDY   #$0004
         CMP   ($6C),Y
         BCC   L0826F3
         LDA   L024443
         SEC
         SBC   #$8505
         JMPL  $0005A0

         CMP   ($6C),Y
         BCC   L0826E5
         REP   #$20
         LDA   #$0801
         LDY   #$0010
         STA   ($6C),Y
         SEP   #$20
         PLP
         RTL

L0826E5  REP   #$20
         LDA   #$0803
         LDY   #$0010
         STA   ($6C),Y
         SEP   #$20
         PLP
         RTL

L0826F3  LDA   L024443
         SEC
         SBC   #$05
         STA   $5C
         LDY   #$0005
         CMP   ($6C),Y
         BCC   L082710
         REP   #$20
         LDA   #$0800
         LDY   #$0010
         STA   ($6C),Y
         SEP   #$20
         PLP
         RTL

L082710  REP   #$20
         LDA   #$0802
         LDY   #$0010
         STA   ($6C),Y
         SEP   #$20
         PLP
         RTL

L08271E  ENT
         PHP
         SEP   #$20
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L082731
         DEC
         STA   ($6C),Y
         BEQ   L082731
         PLP
         RTL

L082731  LDY   #$0010
         LDA   ($6C),Y
         ASL
         STA   $60
         STZ   $61
         LDX   $60
         JMP   (L082740,X)

L082740  DA    L08274A
         DA    L0827A3
         DA    L082826
         DA    L0828CA
         DA    L08294A
L08274A  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         STA   ($6C),Y
         CMP   #$92
         BCC   L08275E
         JMPL  L062B38

L08275E  LDA   $5C
         STA   $64
         LDA   L024443
         SEC
         SBC   #$14
         STA   $5C
         CMP   $64
         BCC   L082771
         JMP   L08296A

L082771  LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         LDY   #$0012
         LDA   #$00
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $64
         LDA   #$FC
         STA   $5C
         LDA   L024442
         CMP   $64
         BCC   L082799
         LDA   #$04
         STA   $5C
L082799  LDA   $5C
         LDY   #$0011
         STA   ($6C),Y
         JMP   L08296A

L0827A3  LDY   #$0012
         LDA   ($6C),Y
         LDY   #$0006
         STA   ($6C),Y
         ASL
         STA   $5C
         STZ   $69
         STA   $68
         REP   #$20
         LDA   #L027156
         CLC
         ADC   $68
         STA   $60
         SEP   #$20
         LDA   ($60)
         STA   $5C
         LDY   #$0011
         LDA   ($6C),Y
         BIT   #$80
         BEQ   L0827D4
         LDA   $5C
         EOR   #$FF
         INC
         STA   $5C
L0827D4  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   $5C
         STA   $5C
         CMP   #$76
         BCC   L0827E6
         JMPL  L062B38

L0827E6  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         REP   #$20
         INC   $60
         SEP   #$20
         LDA   ($60)
         LDY   #$0005
         CLC
         ADC   ($6C),Y
         STA   $5C
         CMP   #$92
         BCC   L082805
         JMPL  L062B38

L082805  LDA   $5C
         LDY   #$0005
         STA   ($6C),Y
         LDY   #$0012
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         BIT   #$08
         BNE   L08281B
         JMP   L08296A

L08281B  LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         JMP   L08296A

L082826  LDA   #$08
         LDY   #$0006
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         LDY   #$0011
         CLC
         ADC   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L082842
         JMPL  L062B38

L082842  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         SEC
         SBC   #$04
         STA   ($6C),Y
         STA   $5C
         CMP   #$92
         BCC   L082862
         JMPL  L062B38

L082862  LDA   $5C
         CLC
         ADC   #$02
         STA   $5C
         STA   $69
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         LDA   L024443
         SEC
         SBC   #$17
         STA   $5C
         CMP   $69
         BCS   L082894
         JMP   L08296A

L082894  LDA   L024442
         STA   $5C
         LDY   #$0011
         LDA   ($6C),Y
         BIT   #$80
         BNE   L0828B6
         LDA   $5C
         CMP   $68
         BCC   L0828AB
         JMP   L08296A

L0828AB  LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         JMP   L08296A

L0828B6  LDA   $5C
         CMP   $68
         BCS   L0828BF
         JMP   L08296A

L0828BF  LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         JMP   L08296A

L0828CA  LDY   #$0012
         LDA   ($6C),Y
         STA   $68
         LDY   #$0006
         STA   ($6C),Y
         ASL
         STA   $68
         STZ   $69
         REP   #$20
         LDA   #L027156
         CLC
         ADC   $68
         STA   $60
         SEP   #$20
         LDA   ($60)
         STA   $5C
         LDY   #$0011
         LDA   ($6C),Y
         BIT   #$80
         BEQ   L0828FB
         LDA   $5C
         EOR   #$FF
         INC
         STA   $5C
L0828FB  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   $5C
         STA   $5C
         CMP   #$76
         BCC   L08290D
         JMPL  L062B38

L08290D  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         REP   #$20
         INC   $60
         SEP   #$20
         LDA   ($60)
         LDY   #$0005
         CLC
         ADC   ($6C),Y
         STA   $5C
         CMP   #$92
         BCC   L08292C
         JMPL  L062B38

L08292C  LDA   $5C
         LDY   #$0005
         STA   ($6C),Y
         LDY   #$0012
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         BIT   #$10
         BEQ   L08296A
         LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         JMP   L08296A

L08294A  LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         STA   $5C
         CMP   #$92
         BCC   L08295C
         JMPL  L062B38

L08295C  LDA   $5C
         LDY   #$0005
         STA   ($6C),Y
         LDA   #$00
         LDY   #$0006
         STA   ($6C),Y
L08296A  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         PLP
         RTL

L082990  ENT
         PHP
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L0829A1
         DEC
         STA   ($6C),Y
         BEQ   L0829A1
         PLP
         RTL

L0829A1  LDY   #$0010
         LDA   ($6C),Y
         ASL
         STA   $60
         STZ   $61
         LDX   $60
         JMP   (L0829B0,X)

L0829B0  DA    L0829B6
         DA    L082A0B
         DA    L082A8B
L0829B6  LDY   #$0005
         LDA   ($6C),Y
         SEC
         SBC   #$06
         STA   ($6C),Y
         CMP   #$92
         BCC   L0829C8
         JMPL  L062B38

L0829C8  STA   $64
         LDA   L024443
         SEC
         SBC   #$3C
         STA   $5C
         CMP   $64
         BCS   L0829D9
         JMP   L082AE9

L0829D9  LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         LDA   #$00
         LDY   #$0012
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $64
         LDA   #$FC
         STA   $5C
         LDA   L024442
         CMP   $64
         BCC   L082A01
         LDA   #$04
         STA   $5C
L082A01  LDA   $5C
         LDY   #$0011
         STA   ($6C),Y
         JMP   L082AE9

L082A0B  LDY   #$0012
         LDA   ($6C),Y
         CLC
         ADC   #$08
         LDY   #$0006
         STA   ($6C),Y
         SEC
         SBC   #$08
         ASL
         STA   $5C
         STZ   $5D
         REP   #$20
         LDA   #L027156
         CLC
         ADC   $5C
         STA   $60
         SEP   #$20
         LDA   ($60)
         STA   $5C
         LDY   #$0011
         LDA   ($6C),Y
         BIT   #$80
         BEQ   L082A3E
         LDA   $5C
         EOR   #$FF
         INC
L082A3E  LDY   #$0004
         CLC
         ADC   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L082A4E
         JMPL  L062B38

L082A4E  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         REP   #$20
         INC   $60
         SEP   #$20
         LDY   #$0005
         LDA   ($6C),Y
         SEC
         SBC   ($60)
         STA   $5C
         CMP   #$92
         BCC   L082A6D
         JMPL  L062B38

L082A6D  LDA   $5C
         LDY   #$0005
         STA   ($6C),Y
         LDY   #$0012
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         BIT   #$08
         BEQ   L082AE9
         LDY   #$0010
         LDA   ($6C),Y
         INC
         STA   ($6C),Y
         JMP   L082AE9

L082A8B  LDA   #$00
         LDY   #$0006
         STA   ($6C),Y
         LDY   #$0004
         LDA   ($6C),Y
         LDY   #$0011
         CLC
         ADC   ($6C),Y
         STA   $5C
         CMP   #$76
         BCC   L082AA7
         JMPL  L062B38

L082AA7  LDA   $5C
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         STA   $5C
         CMP   #$92
         BCC   L082AC5
         JMPL  L062B38

L082AC5  LDA   $5C
         LDY   #$0005
         STA   ($6C),Y
         CLC
         ADC   #$02
         STA   $5C
         STA   $69
         LDX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         PHX
         JSL   L031582
         PLX
         STX   $68
         JSL   L031582
L082AE9  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$03
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$04
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$04
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         PLP
         RTL

L082B0F  ENT
         PHP
         LDY   #$000C
         LDA   ($6C),Y
         STA   $5C
         BEQ   L082B20
         DEC
         STA   ($6C),Y
         BEQ   L082B20
         PLP
         RTL

L082B20  LDX   $6C
         STX   $60
         CPX   #L024F80
         BNE   L082B2C
         JMP   L082BD4

L082B2C  CPX   #L024E00
         BEQ   L082B34
         JMP   L082CC3

L082B34  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0005
         STA   ($6C),Y
         CLC
         ADC   #$02
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0010
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L082B6C
         PLP
         RTL

L082B6C  LDX   #L024E00
         STX   $60
         STZ   $64
         LDX   #$FF02
         STX   $68
         JSL   L082C74
         LDX   #L024E60
         STX   $60
         LDX   #$FF01
         STA   $68
         JSL   L082C74
         LDX   #L024EC0
         STX   $60
         LDX   #$0101
         STX   $68
         JSL   L082C74
         LDX   #L024F20
         STX   $60
         LDA   #$02
         STA   $64
         LDX   #$0102
         STX   $68
         JSL   L082C74
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$03
         STA   $69
         JSL   L03159E
         JSL   L03159E
         JSL   L03159E
         JSL   L0F0384
         JSL   L290F5E
         PLP
         RTL

L082BD4  LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$0008
         STA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0009
         STA   ($6C),Y
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$06
         LDY   #$0005
         STA   ($6C),Y
         CLC
         ADC   #$02
         STA   $5C
         LDY   #$000A
         STA   ($6C),Y
         LDY   #$0010
         LDA   ($6C),Y
         DEC
         STA   ($6C),Y
         BEQ   L082C0C
         PLP
         RTL

L082C0C  LDX   #L024F80
         STX   $60
         STZ   $64
         LDX   #$FF02
         STX   $68
         JSL   L082C74
         LDX   #L024FE0
         STX   $60
         LDX   #$FF01
         STX   $68
         JSL   L082C74
         LDX   #L025040
         STX   $60
         LDX   #$0101
         STX   $68
         JSL   L082C74
         LDX   #L0250A0
         STX   $60
         LDA   #$02
         STA   $64
         LDX   #$0102
         STX   $68
         JSL   L082C74
         LDY   #$0004
         LDA   ($6C),Y
         CLC
         ADC   #$05
         STA   $68
         LDY   #$0005
         LDA   ($6C),Y
         CLC
         ADC   #$03
         STA   $69
         JSL   L03159E
         JSL   L03159E
         JSL   L03159E
         JSL   L0F0384
         JSL   L290F5E
         PLP
         RTL

L082C74  LDA   ($60)
         AND   #$80
         ORA   #$1A
         STA   ($60)
         LDA   $64
         LDY   #$000C
         STA   ($60),Y
         LDY   #$0004
         LDA   ($6C),Y
         STA   ($60),Y
         LDY   #$0005
         LDA   ($6C),Y
         STA   $5C
         STA   ($60),Y
         LDA   #$03
         LDY   #$0010
         STA   ($60),Y
         LDA   $68
         LDY   #$0011
         STA   ($60),Y
         LDA   #$00
         LDY   #$0012
         STA   ($60),Y
         LDA   L024442
         LDY   #$0004
         SEC
         SBC   ($6C),Y
         SEC
         SBC   #$05
         STA   $5C
         LDY   #$0013
         STA   ($60),Y
         LDA   $69
         LDY   #$0014
         STA   ($60),Y
         RTL

L082CC3  LDX   $60
         CPX   #L024F80
         BCS   L082D1F
         LDX   #L024E00
         STX   $60
L082CCF  JSL   L180C51
         AND   #$01
         LDY   #$0004
         CLC
         ADC   ($60),Y
         LDY   #$0004
         STA   ($6C),Y
         CLC
         ADC   #$08
         LDY   #$0008
         STA   ($6C),Y
         SEC
         SBC   #$06
         LDY   #$0009
         STA   ($6C),Y
         JSL   L180C51
         AND   #$01
         LDY   #$0005
         CLC
         ADC   ($60),Y
         STA   ($6C),Y
         CLC
         ADC   #$02
         LDY   #$000A
         STA   ($6C),Y
         LDA   ($60)
         AND   #$7F
         STA   $5C
         CMP   #$0F
         BCC   L082D12
         PLP
         RTL

L082D12  LDA   ($6C)
         AND   #$80
         CLC
         ADC   #$0E
         STA   $5C
         STA   ($6C)
         PLP
         RTL

L082D1F  LDX   #L024F80
         STX   $60
         JMP   L082CCF

