*
* Dugeon Master
* (c) 1987, FTL
* (s) 2016, Brutal Deluxe Software
*

         mx	%00
	rel
	dsk	SHOW.L
	lst	off

	use	SHOW.X

L0C0000  ENT
         PHD
         TSC
         SEC
         SBC   #$00E1
         TCD
         ADC   #$00D6
         TCS
L0C000B  LDA   $FF
         PHA
         JSL   L02051C
         CLC
         JSL   L021F1A
         PLA
         LDX   #$0000
         STX   $E0
         ASL
         ROL   $E0
         ASL
         ROL   $E0
         LDX   $E0
         PHX
         PHA
         LDX   $FD
         LDA   $FB
         JSL   L021F00
         PLA
         PLX
         STA   $DC
         STX   $DE
         LDY   #$0002
         LDA   [$DC],Y
         TAX
         LDA   [$DC]
         STX   $DA
         STA   $D8
         LDY   #$0119
         LDA   [$D8],Y
         LDY   #$0119
         LDA   [$D8],Y
         BNE   L0C000B
         LDA   #$0001
         LDY   #$0119
         STA   [$D8],Y
         PEA   $0105
         PEI   $DA
         PEI   $D8
         PEA   ^L0208B1
         PEA   L0208B1
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         PEA   $0004
         LDA   $D8
         CLC
         ADC   #$011B
         TAX
         LDA   $DA
         BCC   L0C007A
         INC
L0C007A  PHA
         PHX
         PEI   $E9
         PEI   $E7
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   L030004
         LDY   #$011F
         STA   [$D8],Y
         LDX   $E9
         LDA   $E7
         LDY   #$0107
         PHA
         TXA
         STA   [$D8],Y
         PLA
         LDY   #$0105
         STA   [$D8],Y
         LDX   $ED
         LDA   $EB
         LDY   #$010B
         PHA
         TXA
         STA   [$D8],Y
         PLA
         LDY   #$0109
         STA   [$D8],Y
         LDA   $EF
         LDY   #$010D
         STA   [$D8],Y
         LDA   $F1
         LDY   #$010F
         STA   [$D8],Y
         LDX   $F5
         LDA   $F3
         LDY   #$0113
         PHA
         TXA
         STA   [$D8],Y
         PLA
         LDY   #$0111
         STA   [$D8],Y
         LDX   $F9
         LDA   $F7
         LDY   #$0117
         PHA
         TXA
         STA   [$D8],Y
         PLA
         LDY   #$0115
         STA   [$D8],Y
         SEP   #$30
         LDA   #$5C
         STA   [$E7]
         REP   #$30
         LDY   #$0001
         LDA   $D8
         STA   [$E7],Y
         INY
         INY
         SEP   #$30
         LDA   $DA
         STA   [$E7],Y
         REP   #$30
         TSC
         CLC
         ADC   #$000A
         TCS
         PLD
         RTL

L0C0104  PHD
         TSC
         SEC
         SBC   #$00F7
         TCD
         ADC   #$00EE
         TCS
         STZ   $F0
         BRL   L0C0175
L0C0114  LDA   $F0
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $FF
         PHA
         LDA   #$000E
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L057236
         LDX   #^L057236
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         PHA
         LDA   $FD
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $F0
         ASL
         ASL
         ASL
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L058326
         LDX   #^L058326
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         PLA
         STA   [$F2]
         INC   $F0
L0C0175  LDA   $F0
         SEC
         SBC   #$0006
         BVS   L0C0180
         EOR   #$8000
L0C0180  BPL   L0C0114
         LDA   $FF
         PHA
         LDA   #$000E
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L057236
         LDX   #^L057236
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDY   #$000C
         LDA   [$F2],Y
         PHA
         LDA   $FD
         LDX   #$0000
         PHX
         PHA
         LDA   #L0572FC
         LDX   #^L0572FC
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         PLA
         SEP   #$20
         STA   [$F2]
         REP   #$20
         LDA   $FF
         PHA
         LDA   #$000E
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L057236
         LDX   #^L057236
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDY   #$000D
         LDA   [$F2],Y
         PHA
         LDA   $FD
         LDX   #$0000
         PHX
         PHA
         LDA   #L0572EC
         LDX   #^L0572EC
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         PLA
         SEP   #$20
         STA   [$F2]
         REP   #$20
         TSC
         CLC
         ADC   #$0008
         TCS
         PLD
         RTL

L0C0214  ENT
         PHD
         TSC
         SEC
         SBC   #$00F9
         TCD
         ADC   #$00F2
         TCS
         LDA   L030274
         CMP   $FF
         BEQ   L0C026B
         LDA   $FF
         STA   L030274
         LDA   $FF
         ASL
         CLC
         ADC   #$004B
         STA   $FF
         PEA   $0000
         PEA   $0000
         LDX   L0302A8
         LDA   L0302A6
         PHX
         PHA
         PEI   $FF
         JSL   L0B2447
         PLY
         PLY
         PLY
         PLY
         PLY
         PEA   $0000
         PEA   $0000
         LDX   L0302AC
         LDA   L0302AA
         PHX
         PHA
         LDA   $FF
         CLC
         ADC   #$0001
         PHA
         JSL   L0B2447
         PLY
         PLY
         PLY
         PLY
         PLY
L0C026B  TSC
         CLC
         ADC   #$0006
         TCS
         PLD
         RTL

L0C0273  ENT
         PHD
         TSC
         SEC
         SBC   #$00F9
         TCD
         ADC   #$00EC
         TCS
         LDA   L030276
         CMP   $FF
         BNE   L0C028D
         LDA   L0303A7
         BNE   L0C028D
         BRL   L0C0353
L0C028D  LDA   $FF
         STA   L030276
         LDA   $FF
         PHA
         LDA   #$000D
         SEC
         JSL   L0220A5
         PLA
         CLC
         ADC   #$004D
         STA   $FF
         LDA   #L0302EA
         LDX   #^L0302EA
         STX   $F2
         STA   $F0
         LDA   $FF
         CLC
         ADC   #$000D
         STA   $EE
L0C02B6  LDA   $FF
         SEC
         SBC   $EE
         BVS   L0C02C0
         EOR   #$8000
L0C02C0  BMI   L0C02FB
         PEA   $0000
         PEA   $0000
         LDX   $F2
         LDA   $F0
         PHX
         PHA
         SEC
         SBC   #$0004
         STA   $F0
         LDA   $F2
         SBC   #$0000
         STA   $F2
         PLA
         PLX
         STA   $F4
         STX   $F6
         LDY   #$0002
         LDA   [$F4],Y
         TAX
         LDA   [$F4]
         PHX
         PHA
         LDA   $FF
         INC   $FF
         PHA
         JSL   L0B2447
         PLY
         PLY
         PLY
         PLY
         PLY
         BRA   L0C02B6
L0C02FB  LDAL  L056570
         AND   #$00FF
         PHA
         LDAL  L05656F
         AND   #$00FF
         PHA
         LDX   L0302F0
         LDA   L0302EE
         PHX
         PHA
         LDX   L0302E8
         LDA   L0302E6
         PHX
         PHA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDAL  L0564D0
         AND   #$00FF
         PHA
         LDAL  L0564CF
         AND   #$00FF
         PHA
         LDX   L0302B8
         LDA   L0302B6
         PHX
         PHA
         LDX   L0302BC
         LDA   L0302BA
         PHX
         PHA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C0353  TSC
         CLC
         ADC   #$000C
         TCS
         PLD
         RTL

L0C035B  ENT
         PHD
         TSC
         SEC
         SBC   #$00FB
         TCD
         ADC   #$00CE
         TCS
         LDA   L030278
         BNE   L0C0375
         LDA   L0301D2
         BEQ   L0C0375
         LDA   #$0000
         BRA   L0C0378
L0C0375  LDA   #$0001
L0C0378  STA   $DC
         LDX   L03009A
         LDA   L030098
         STA   $F6
         STX   $F8
         LDY   #$000E
         LDA   [$F6],Y
         AND   #$000F
         STA   $E8
         LDX   L03009A
         LDA   L030098
         STA   $F6
         STX   $F8
         LDY   #$000E
         LDA   [$F6],Y
         LSR
         LSR
         LSR
         LSR
         AND   #$000F
         STA   $EA
         LDA   $DC
         BNE   L0C03BD
         LDA   L030274
         CMP   $E8
         BNE   L0C03BD
         LDA   $EA
         CMP   L030276
         BNE   L0C03BD
         LDA   #$0000
         BRA   L0C03C0
L0C03BD  LDA   #$0001
L0C03C0  STA   $D0
         TAY
         BEQ   L0C03D5
         PEA   $0000
         PEA   $0000
         JSL   L0D0FA2
         PLY
         PLY
         JSL   L0B0A80
L0C03D5  PEA   $0000
         PEA   $0000
         PEA   $047E
         JSL   L0B006E
         PLY
         PLY
         PLY
         STX   $F0
         STA   $EE
         PEA   $008C
         PEI   $F0
         PEI   $EE
         PEA   ^L05823A
         PEA   L05823A
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   #$0046
         STA   $E6
         PEI   $E8
         JSL   L0C0214
         PLY
         PEI   $EA
         JSL   L0C0273
         PLY
         LDA   L0301D2
         BNE   L0C041A
         BRL   L0C061A
L0C041A  PEA   $0000
         PEA   $0000
         PEA   $13F8
         JSL   L0B006E
         PLY
         PLY
         PLY
         STX   L03027C
         STA   L03027A
         LDA   #$0001
         STA   L03012C
         LDAL  L0564D8
         AND   #$00FF
         PHA
         LDAL  L0564D7
         AND   #$00FF
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         LDX   L0302C0
         LDA   L0302BE
         STX   L030308
         STA   L030306
         PHX
         PHA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   $0198
         PEA   $000A
         LDX   L0302F4
         LDA   L0302F2
         PHX
         PHA
         JSL   L080CE0
         PLY
         PLY
         PLY
         PLY
         PEA   $FFFF
         PEA   $0040
         PEA   $0040
         PEA   $0000
         PEA   $000B
         PEA   ^L0564BB
         PEA   L0564BB
         LDX   L0302F4
         LDA   L0302F2
         PHX
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
         LDAL  L0564F0
         AND   #$00FF
         PHA
         LDAL  L0564EF
         AND   #$00FF
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         LDX   L0302C4
         LDA   L0302C2
         STX   L03030C
         STA   L03030A
         PHX
         PHA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   $027F
         PEA   $000A
         LDX   L0302F8
         LDA   L0302F6
         PHX
         PHA
         JSL   L080CE0
         PLY
         PLY
         PLY
         PLY
         PEA   $FFFF
         PEA   $0048
         PEA   $0048
         PEA   $0000
         PEA   $0008
         PEA   ^L0564BF
         PEA   L0564BF
         LDX   L0302F8
         LDA   L0302F6
         PHX
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
         PEA   $0000
         PEA   $13F8
         JSL   L0B0175
         PLY
         PLY
         LDAL  L056508
         AND   #$00FF
         PHA
         LDAL  L056507
         AND   #$00FF
         PHA
         LDX   L0302FC
         LDA   L0302FA
         PHX
         PHA
         LDX   L0302C8
         LDA   L0302C6
         STX   L030310
         STA   L03030E
         PHX
         PHA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDAL  L056528
         AND   #$00FF
         PHA
         LDAL  L056527
         AND   #$00FF
         PHA
         LDX   L030304
         LDA   L030302
         PHX
         PHA
         LDX   L0302CC
         LDA   L0302CA
         STX   L030314
         STA   L030312
         PHX
         PHA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDAL  L056528
         AND   #$00FF
         PHA
         LDAL  L056527
         AND   #$00FF
         PHA
         LDX   L030300
         LDA   L0302FE
         PHX
         PHA
         LDX   L0302D0
         LDA   L0302CE
         STX   L030318
         STA   L030316
         PHX
         PHA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   $0046
         PEA   $0070
         LDX   L03031C
         LDA   L03031A
         PHX
         PHA
         LDX   L0302A8
         LDA   L0302A6
         STX   L030324
         STA   L030322
         PHX
         PHA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   $001D
         PEA   $0070
         LDX   L030320
         LDA   L03031E
         PHX
         PHA
         LDX   L0302AC
         LDA   L0302AA
         STX   L030328
         STA   L030326
         PHX
         PHA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C061A  LDX   L03009A
         LDA   L030098
         STA   $F6
         STX   $F8
         LDY   #$000C
         LDA   [$F6],Y
         LSR
         LSR
         LSR
         LSR
         AND   #$000F
         TAY
         BEQ   L0C0638
         LDA   L0301D2
         BEQ   L0C06A1
L0C0638  LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   #$0028
         STA   [$F6]
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   #$001A
         STA   [$F6]
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   #$001B
         STA   [$F6]
L0C06A1  LDA   #L030282
         LDX   #^L030282
         STX   $E4
         STA   $E2
         LDX   L03009A
         LDA   L030098
         STA   $F6
         STX   $F8
         LDY   #$000E
         LDA   [$F6],Y
         LSR
         LSR
         LSR
         LSR
         AND   #$000F
         PHA
         LDA   #$0012
         CLC
         JSL   L0220A5
         PLA
         CLC
         ADC   #$005A
         STA   $EA
         LDA   $EA
         CLC
         ADC   #$0012
         STA   $EC
         BRA   L0C0723
L0C06DB  LDA   L0301D2
         BNE   L0C0702
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   $EA
         STA   [$F6]
L0C0702  LDA   $EA
         INC   $EA
         PHA
         LDX   $E4
         LDA   $E2
         PHX
         PHA
         CLC
         ADC   #$0002
         STA   $E2
         LDA   $E4
         BCC   L0C0718
         INC
L0C0718  STA   $E4
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C0723  LDA   $EA
         SEC
         SBC   $EC
         BVS   L0C072D
         EOR   #$8000
L0C072D  BPL   L0C06DB
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   #$021A
         STA   [$F6]
         STZ   $EA
         BRL   L0C0804
L0C0757  LDA   $EA
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056D10
         LDX   #^L056D10
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         PHA
         LDA   #$0168
         PLX
         STX   $FA
         CLC
         ADC   $FA
         STA   $E8
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   $E8
         STA   [$F6]
         LDA   $EA
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056D10
         LDX   #^L056D10
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDY   #$0004
         LDA   [$F6],Y
         AND   #$00FF
         AND   #$0010
         TAY
         BEQ   L0C0802
         LDA   $E8
         CLC
         ADC   #$0001
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C0802  INC   $EA
L0C0804  LDA   $EA
         SEC
         SBC   #$0055
         BVS   L0C080F
         EOR   #$8000
L0C080F  BMI   L0C0814
         BRL   L0C0757
L0C0814  STZ   $EA
         BRL   L0C08F6
L0C0819  LDA   $EA
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056F0E
         LDX   #^L056F0E
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         PHA
         LDA   #$013C
         PLX
         STX   $FA
         CLC
         ADC   $FA
         STA   $E8
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   $E8
         STA   [$F6]
         LDA   $EA
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056F0E
         LDX   #^L056F0E
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDY   #$0004
         LDA   [$F6],Y
         AND   #$0003
         STA   $EC
         CMP   #$0003
         BEQ   L0C08F4
         LDA   $E8
         CLC
         ADC   #$0001
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
         LDA   $EC
         CMP   #$0002
         BEQ   L0C08F4
         LDA   $E8
         CLC
         ADC   #$0002
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C08F4  INC   $EA
L0C08F6  LDA   $EA
         SEC
         SBC   #$000E
         BVS   L0C0901
         EOR   #$8000
L0C0901  BMI   L0C0906
         BRL   L0C0819
L0C0906  LDA   #$015C
         STA   $EA
         BRA   L0C0933
L0C090D  LDA   $EA
         INC   $EA
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C0933  LDA   $EA
         SEC
         SBC   #$0168
         BVS   L0C093E
         EOR   #$8000
L0C093E  BPL   L0C090D
         LDX   L03009A
         LDA   L030098
         STA   $F6
         STX   $F8
         LDY   #$000E
         LDA   [$F6],Y
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         AND   #$000F
         SEP   #$20
         STA   $E0
         REP   #$20
         LDX   L03009A
         LDA   L030098
         STA   $F6
         STX   $F8
         LDY   #$000E
         LDA   [$F6],Y
         XBA
         AND   #$00FF
         LSR
         LSR
         LSR
         LSR
         AND   #$000F
         SEP   #$20
         STA   $E1
         REP   #$20
         STZ   $E8
         BRL   L0C0A27
L0C0985  LDA   $E8
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05759E
         LDX   #^L05759E
         JSL   L021F00
         PLA
         PLX
         STX   $E4
         STA   $E2
         LDA   $E8
         LDX   #$0000
         PHX
         PHA
         LDX   #$0000
         TDC
         CLC
         ADC   #$00E0
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         PHA
         LDA   #$0003
         SEC
         JSL   L0220A5
         LDA   #$006C
         PLX
         STX   $FA
         CLC
         ADC   $FA
         STA   $EA
         LDA   $EA
         CLC
         ADC   #$0003
         STA   $EC
         BRA   L0C0A19
L0C09D9  LDA   L0301D2
         BNE   L0C0A00
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   $EA
         STA   [$F6]
L0C0A00  LDA   $EA
         INC   $EA
         STA   [$E2]
         LDX   $E4
         LDA   $E2
         CLC
         ADC   #$0004
         PHA
         TXA
         ADC   #$0000
         TAX
         PLA
         STX   $E4
         STA   $E2
L0C0A19  LDA   $EA
         SEC
         SBC   $EC
         BVS   L0C0A23
         EOR   #$8000
L0C0A23  BPL   L0C09D9
         INC   $E8
L0C0A27  LDA   $E8
         CMP   #$0001
         BNE   L0C0A31
         BRL   L0C0985
L0C0A31  BCS   L0C0A36
         BRL   L0C0985
L0C0A36  PEA   $0002
         PEA   $FFFF
         PEA   $0003
         PEA   ^L05109B
         PEA   L05109B
         JSL   L020284
         PLY
         PLY
         PLY
         PLY
         PLY
         PEA   $0002
         PEA   $FFFF
         PEA   $0001
         PEA   ^L0510A1
         PEA   L0510A1
         JSL   L020284
         PLY
         PLY
         PLY
         PLY
         PLY
         STZ   $D4
         STZ   $D2
         LDA   #$FFFF
         STA   L030096
         STZ   $E8
         BRL   L0C0CAE
L0C0A75  LDA   $E8
         LDX   #$0000
         PHX
         PHA
         LDA   #L05106A
         LDX   #^L05106A
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         STA   $EC
         ASL
         PHA
         LDA   #$0079
         PLX
         STX   $FA
         CLC
         ADC   $FA
         STA   $EA
         LDA   $E8
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0575AA
         LDX   #^L0575AA
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   $EA
         STA   [$F6]
         STZ   $D6
         BRL   L0C0B0E
L0C0AC2  LDA   $D6
         LDX   #$0000
         PHX
         PHA
         LDA   #L0568F0
         LDX   #^L0568F0
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         CMP   $EC
         BNE   L0C0B0C
         LDA   $D4
         INC   $D4
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05109B
         LDX   #^L05109B
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   $E8
         STA   [$F6]
         LDA   $EC
         CMP   #$0002
         BNE   L0C0B0C
         LDA   $E8
         STA   L030096
L0C0B0C  INC   $D6
L0C0B0E  LDA   $D6
         SEC
         SBC   #$0003
         BVS   L0C0B19
         EOR   #$8000
L0C0B19  BPL   L0C0AC2
         STZ   $D6
         BRA   L0C0B5D
L0C0B1F  LDA   $D6
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0568F3
         LDX   #^L0568F3
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         CMP   $EC
         BNE   L0C0B5B
         LDA   $D2
         INC   $D2
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0510A1
         LDX   #^L0510A1
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   $E8
         STA   [$F6]
L0C0B5B  INC   $D6
L0C0B5D  LDA   $D6
         SEC
         SBC   #$0001
         BVS   L0C0B68
         EOR   #$8000
L0C0B68  BPL   L0C0B1F
         LDA   $EC
         LDX   #$0000
         PHX
         PHA
         LDA   #L0568F5
         LDX   #^L0568F5
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         PHA
         LDA   $E8
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0575AA
         LDX   #^L0575AA
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         LDY   #$0002
         STA   [$F6],Y
         PHA
         LDA   #$004E
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L05699E
         LDX   #^L05699E
         JSL   L021F00
         PLA
         PLX
         STX   $F4
         STA   $F2
         LDA   L0301D2
         BNE   L0C0C16
         LDA   $EA
         INC   $EA
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
         LDA   $EA
         INC   $EA
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C0C16  LDA   $E8
         ASL
         ASL
         PHA
         LDA   #$0004
         PLX
         STX   $FA
         CLC
         ADC   $FA
         STA   $EA
         CLC
         ADC   #$0004
         STA   $EC
         BRL   L0C0CA0
L0C0C2F  LDA   $EA
         ORA   #$8000
         PHA
         JSL   L0B0CF6
         PLY
         LDY   #$0005
         LDA   [$F2],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$F2],Y
         AND   #$00FF
         SEC
         JSL   L0220A5
         LDA   $EA
         INC   $EA
         LDX   #$0000
         TAY
         BPL   L0C0C5B
         DEX
L0C0C5B  STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   L030184
         LDA   L030182
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
         LDA   $EC
         SEC
         SBC   $EA
         CMP   #$0002
         BNE   L0C0C86
         LDA   #$0012
         BRA   L0C0C89
L0C0C86  LDA   #$000C
L0C0C89  LDX   #$0000
         TAY
         BPL   L0C0C90
         DEX
L0C0C90  PHX
         PHA
         LDX   $F4
         LDA   $F2
         JSL   L021F00
         PLA
         PLX
         STX   $F4
         STA   $F2
L0C0CA0  LDA   $EA
         SEC
         SBC   $EC
         BVS   L0C0CAA
         EOR   #$8000
L0C0CAA  BPL   L0C0C2F
         INC   $E8
L0C0CAE  LDX   L03009A
         LDA   L030098
         STA   $F6
         STX   $F8
         LDY   #$000A
         LDA   [$F6],Y
         AND   #$000F
         CMP   $E8
         BCC   L0C0CC7
         BRL   L0C0A75
L0C0CC7  STZ   $E8
         BRL   L0C0D9A
L0C0CCC  LDA   $E8
         LDX   #$0000
         PHX
         PHA
         LDA   #L05107A
         LDX   #^L05107A
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         STA   $EC
         PHA
         LDA   #$0006
         SEC
         JSL   L0220A5
         LDA   #$00F7
         PLX
         STX   $FA
         CLC
         ADC   $FA
         STA   $EA
         LDA   $E8
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0575EA
         LDX   #^L0575EA
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   $EA
         STA   [$F6]
         LDA   $EC
         LDX   #$0000
         PHX
         PHA
         LDA   #L056931
         LDX   #^L056931
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         PHA
         LDA   $E8
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0575EA
         LDX   #^L0575EA
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         LDY   #$0002
         STA   [$F6],Y
         LDA   L0301D2
         BNE   L0C0D98
         LDA   $EA
         CLC
         ADC   #$0006
         STA   $EC
         BRA   L0C0D8C
L0C0D66  LDA   $EA
         INC   $EA
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C0D8C  LDA   $EA
         SEC
         SBC   $EC
         BVS   L0C0D96
         EOR   #$8000
L0C0D96  BPL   L0C0D66
L0C0D98  INC   $E8
L0C0D9A  LDX   L03009A
         LDA   L030098
         STA   $F6
         STX   $F8
         LDY   #$000A
         LDA   [$F6],Y
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         AND   #$000F
         CMP   $E8
         BEQ   L0C0DBD
         BCC   L0C0DBD
         BRL   L0C0CCC
L0C0DBD  STZ   $E8
         BRL   L0C0F0B
L0C0DC2  LDA   $E8
         LDX   #$0000
         PHX
         PHA
         LDA   #L05108A
         LDX   #^L05108A
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         STA   $EC
         PHA
         LDA   #$012F
         PLX
         STX   $FA
         CLC
         ADC   $FA
         STA   $EA
         LDA   $E8
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05762A
         LDX   #^L05762A
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   $EA
         STA   [$F6]
         LDA   L0301D2
         BNE   L0C0E30
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   $EA
         STA   [$F6]
L0C0E30  LDA   $EC
         LDX   #$0000
         PHX
         PHA
         LDA   #L05693A
         LDX   #^L05693A
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         PHA
         LDA   $E8
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05762A
         LDX   #^L05762A
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         LDY   #$0002
         STA   [$F6],Y
         PHA
         LDA   #$0012
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056CB0
         LDX   #^L056CB0
         JSL   L021F00
         PLA
         PLX
         STX   $F4
         STA   $F2
         LDA   $E8
         ASL
         PHA
         LDA   #$0044
         PLX
         STX   $FA
         CLC
         ADC   $FA
         STA   $EA
         CLC
         ADC   #$0002
         STA   $EC
         BRA   L0C0EFD
L0C0EA2  LDA   $EA
         ORA   #$8000
         PHA
         JSL   L0B0CF6
         PLY
         LDY   #$0005
         LDA   [$F2],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$F2],Y
         AND   #$00FF
         SEC
         JSL   L0220A5
         LDA   $EA
         INC   $EA
         LDX   #$0000
         TAY
         BPL   L0C0ECE
         DEX
L0C0ECE  STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   L030184
         LDA   L030182
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
         LDX   $F4
         LDA   $F2
         CLC
         ADC   #$0006
         PHA
         TXA
         ADC   #$0000
         TAX
         PLA
         STX   $F4
         STA   $F2
L0C0EFD  LDA   $EA
         SEC
         SBC   $EC
         BVS   L0C0F07
         EOR   #$8000
L0C0F07  BPL   L0C0EA2
         INC   $E8
L0C0F0B  LDX   L03009A
         LDA   L030098
         STA   $F6
         STX   $F8
         LDY   #$000C
         LDA   [$F6],Y
         AND   #$000F
         CMP   $E8
         BEQ   L0C0F26
         BCC   L0C0F26
         BRL   L0C0DC2
L0C0F26  LDA   #$0066
         STA   $EC
         LDA   #$0000
         STA   $EA
         BRL   L0C1034
L0C0F33  LDA   $EA
         CLC
         ADC   #$013B
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
         LDA   $EA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056946
         LDX   #^L056946
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         PHA
         LDA   #$0018
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056CF8
         LDX   #^L056CF8
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDX   $F8
         LDA   #$0006
         CLC
         ADC   $F6
         BCC   L0C0FA1
         INX
L0C0FA1  STX   $F4
         STA   $F2
         LDY   #$0005
         LDA   [$F2],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$F2],Y
         AND   #$00FF
         SEC
         JSL   L0220A5
         LDA   $EC
         INC   $EC
         LDX   #$0000
         TAY
         BPL   L0C0FC6
         DEX
L0C0FC6  STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   L030184
         LDA   L030182
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
         LDX   $F4
         LDA   $F2
         CLC
         ADC   #$0006
         PHA
         TXA
         ADC   #$0000
         TAX
         PLA
         STX   $F4
         STA   $F2
         LDY   #$0005
         LDA   [$F2],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$F2],Y
         AND   #$00FF
         SEC
         JSL   L0220A5
         LDA   $EC
         INC   $EC
         LDX   #$0000
         TAY
         BPL   L0C1016
         DEX
L0C1016  STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   L030184
         LDA   L030182
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
         INC   $EA
L0C1034  LDA   $EA
         SEC
         SBC   #$0001
         BVS   L0C103F
         EOR   #$8000
L0C103F  BMI   L0C1044
         BRL   L0C0F33
L0C1044  PEA   $0008
         PEA   $0009
         JSL   L0C0104
         PLY
         PLY
         PEA   $000C
         PEA   $000A
         JSL   L0C0104
         PLY
         PLY
         STZ   $DE
         BRL   L0C1216
L0C1061  LDA   $DE
         LDX   #$0000
         TAY
         BPL   L0C106A
         DEX
L0C106A  PHX
         PHA
         LDX   L030092
         LDA   L030090
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   [$F6]
         AND   #$00FF
         STA   $EC
         PHA
         LDA   #$000C
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L0570F2
         LDX   #^L0570F2
         JSL   L021F00
         PLA
         PLX
         STX   $F4
         STA   $F2
         LDY   #$000B
         LDA   [$F2],Y
         AND   #$00FF
         AND   #$000F
         STA   $E8
         TAY
         BEQ   L0C10C2
         LDA   $E8
         SEC
         SBC   #$0001
         PHA
         PEA   $0009
         JSL   L0C0104
         PLY
         PLY
L0C10C2  LDA   #$0004
         PHA
         LDY   #$000B
         LDA   [$F2],Y
         AND   #$00FF
         SEC
         JSL   L0222DF
         PLA
         AND   #$000F
         STA   $E8
         TAY
         BEQ   L0C10EC
         LDA   $E8
         SEC
         SBC   #$0001
         PHA
         PEA   $000A
         JSL   L0C0104
         PLY
         PLY
L0C10EC  LDA   L0301D2
         BEQ   L0C10F4
         BRL   L0C1214
L0C10F4  LDA   [$F2]
         PHA
         LDA   #$01BE
         PLX
         STX   $FA
         CLC
         ADC   $FA
         STA   $EA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDA   $EA
         STA   [$F6]
         LDA   $EC
         PHA
         LDA   #$001A
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L050B05
         LDX   #^L050B05
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         LDY   #$0004
         LDA   [$F6],Y
         STA   $E8
         LDA   $E8
         AND   #$0008
         TAY
         BEQ   L0C117A
         INC   $EA
         LDA   $EA
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C117A  LDA   $E8
         AND   #$0010
         TAY
         BEQ   L0C11A8
         INC   $EA
         LDA   $EA
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C11A8  LDA   $E8
         AND   #$0020
         TAY
         BEQ   L0C11D6
         INC   $EA
         LDA   $EA
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C11D6  LDA   $E8
         AND   #$0003
         STA   $D8
         TAY
         BEQ   L0C1214
L0C11E0  LDA   $E8
         AND   #$0004
         TAY
         BNE   L0C120E
         INC   $EA
         LDA   $EA
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C120E  DEC   $D8
         LDA   $D8
         BNE   L0C11E0
L0C1214  INC   $DE
L0C1216  LDX   L03009A
         LDA   L030098
         STA   $F6
         STX   $F8
         LDY   #$000C
         LDA   [$F6],Y
         LSR
         LSR
         LSR
         LSR
         AND   #$000F
         CMP   $DE
         BEQ   L0C1235
         BCC   L0C1235
         BRL   L0C1061
L0C1235  LDA   $DC
         BNE   L0C123C
         BRL   L0C1389
L0C123C  LDA   L0301D2
         BNE   L0C1244
         BRL   L0C137C
L0C1244  LDA   #$005A
         STA   $E8
         BRA   L0C1271
L0C124B  LDA   $E8
         INC   $E8
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C1271  LDA   $E8
         CMP   #$006C
         BCC   L0C124B
         LDA   #$006C
         STA   $E8
         BRA   L0C12A5
L0C127F  LDA   $E8
         INC   $E8
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C12A5  LDA   $E8
         CMP   #$0078
         BCC   L0C127F
         LDA   #$0079
         STA   $E8
         BRA   L0C12D9
L0C12B3  LDA   $E8
         INC   $E8
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C12D9  LDA   $E8
         CMP   #$00F7
         BCC   L0C12B3
         LDA   #$00F7
         STA   $E8
         BRA   L0C130D
L0C12E7  LDA   $E8
         INC   $E8
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C130D  LDA   $E8
         CMP   #$012D
         BCC   L0C12E7
         LDA   #$012F
         STA   $E8
         BRA   L0C1341
L0C131B  LDA   $E8
         INC   $E8
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C1341  LDA   $E8
         CMP   #$013C
         BCC   L0C131B
         LDA   #$01BE
         STA   $E8
         BRA   L0C1375
L0C134F  LDA   $E8
         INC   $E8
         PHA
         LDA   $E6
         INC   $E6
         LDX   #$0000
         STX   $FA
         ASL
         ROL   $FA
         LDX   $FA
         PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F6
         STX   $F8
         PLA
         STA   [$F6]
L0C1375  LDA   $E8
         CMP   #$0215
         BCC   L0C134F
L0C137C  PEI   $E6
         PEI   $F0
         PEI   $EE
         JSL   L0B14FC
         PLY
         PLY
         PLY
L0C1389  LDA   $D0
         BEQ   L0C1391
         JSL   L0B0AC6
L0C1391  PEA   $0000
         PEA   $047E
         JSL   L0B0175
         PLY
         PLY
         LDA   #$0001
         STA   L03001A
         LDA   #$0001
         STA   L03007E
         STZ   L030278
         TSC
         CLC
         ADC   #$002C
         TCS
         PLD
         RTL

L0C13B4  ENT
         PHD
         TSC
         SEC
         SBC   #$00FB
         TCD
         ADC   #$00F4
         TCS
         PEA   $1030
         LDX   L0302B0
         LDA   L0302AE
         PHX
         PHA
         JSL   L020232
         PLY
         PLY
         PLY
         PEA   $0CB0
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         LDX   L0302AC
         LDA   L0302AA
         PHX
         PHA
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         PEA   $1EA0
         LDX   L0302B4
         LDA   L0302B2
         PHX
         PHA
         LDX   L0302A8
         LDA   L0302A6
         PHX
         PHA
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         STZ   L03001A
         TSC
         CLC
         ADC   #$0006
         TCS
         PLD
         RTL

L0C1414  PHD
         TSC
         SEC
         SBC   #$00EF
         TCD
         ADC   #$00E8
         TCS
         LDA   $FF
         PHA
         LDA   $FD
         CLC
         JSL   L0220A5
         PEI   $FB
         PEI   $F9
         PEI   $F7
         PEI   $F5
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $F9
         JSL   L080C01
         PLY
         PLY
         PLY
         PLY
         TSC
         CLC
         ADC   #$0006
         TCS
         PLD
         RTL

L0C1452  PHD
         TSC
         SEC
         SBC   #$00F3
         TCD
         ADC   #$00EC
         TCS
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         BEQ   L0C14A4
         PEA   $000A
         PEA   $0070
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0007
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0006
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         PEI   $FF
         PEI   $FD
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $FB
         PEI   $F9
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C14A4  TSC
         CLC
         ADC   #$0006
         TCS
         PLD
         RTL

L0C14AC  PHD
         TSC
         SEC
         SBC   #$00F3
         TCD
         ADC   #$00EC
         TCS
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         BEQ   L0C14FE
         PEA   $FFFF
         PEA   $0070
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0007
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0006
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         PEI   $FF
         PEI   $FD
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $FB
         PEI   $F9
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C14FE  TSC
         CLC
         ADC   #$0006
         TCS
         PLD
         RTL

L0C1506  PHD
         TSC
         SEC
         SBC   #$00F7
         TCD
         ADC   #$00F0
         TCS
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         BEQ   L0C155C
         PEA   $000A
         PEA   $0070
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0007
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0006
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         PEI   $FF
         PEI   $FD
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C155C  TSC
         CLC
         ADC   #$0006
         TCS
         PLD
         RTL

L0C1564  PHD
         TSC
         SEC
         SBC   #$00F3
         TCD
         ADC   #$00EC
         TCS
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         BEQ   L0C15D4
         LDY   #$0005
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         PEI   $FB
         PEI   $F9
         JSL   L080C01
         PLY
         PLY
         PLY
         PLY
         PEA   $000A
         PEA   $0070
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0007
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0006
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         PEI   $FF
         PEI   $FD
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $FB
         PEI   $F9
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C15D4  TSC
         CLC
         ADC   #$0006
         TCS
         PLD
         RTL

L0C15DC  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00EE
         TCS
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         BEQ   L0C1633
         PEA   $000A
         PEA   $0070
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0007
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0006
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         PEI   $FF
         PEI   $FD
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $FB
         JSL   L0B225C
         PLY
         PHX
         PHA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C1633  TSC
         CLC
         ADC   #$0006
         TCS
         PLD
         RTL

L0C163B  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00EE
         TCS
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         BNE   L0C1653
         BRL   L0C16C3
L0C1653  LDY   #$0005
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $FB
         JSL   L0B225C
         PLY
         PHX
         PHA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   $000A
         PEA   $0070
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0007
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0006
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         PEI   $FF
         PEI   $FD
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C16C3  TSC
         CLC
         ADC   #$0006
         TCS
         PLD
         RTL

L0C16CB  PHD
         TSC
         SEC
         SBC   #$00F7
         TCD
         ADC   #$0088
         TCS
         LDA   $FD
         BNE   L0C16DD
         BRL   L0C1D78
L0C16DD  DEC   $FD
         LDA   $FD
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0575AA
         LDX   #^L0575AA
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         STA   $E4
         LDA   $FF
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   $FD
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0575AA
         LDX   #^L0575AA
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDY   #$0002
         LDA   [$F2],Y
         STA   $E2
         PHA
         LDA   #$004E
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L05699E
         LDX   #^L05699E
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STX   $F0
         STA   $EE
         PEI   $FD
         JSL   L060670
         PLY
         STA   $DA
         LDA   $FD
         CMP   L030094
         BEQ   L0C1767
         LDA   #$0000
         BRA   L0C176A
L0C1767  LDA   #$0001
L0C176A  STA   $DC
         TAY
         BEQ   L0C1787
         PEA   $0000
         LDA   L0300D0
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$008A
         PHA
         JSL   L0619C4
         PLY
         PLY
         PLY
         PLY
L0C1787  LDA   $FF
         SEC
         SBC   #$000A
         BVS   L0C1792
         EOR   #$8000
L0C1792  BMI   L0C1797
         BRL   L0C19B5
L0C1797  LDA   $FF
         CMP   #$000C
         BEQ   L0C17A1
         BRL   L0C196A
L0C17A1  LDA   $DC
         BNE   L0C17A8
         BRL   L0C18FF
L0C17A8  PEA   $FFFF
         PEA   $0070
         LDAL  L056507
         AND   #$00FF
         PHA
         PEA   $001C
         PEA   $005E
         PEA   ^L056987
         PEA   L056987
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         LDX   L0302C8
         LDA   L0302C6
         PHX
         PHA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
         LDX   #$0000
         TDC
         CLC
         ADC   #$008A
         STX   $F0
         STA   $EE
         PEA   $0078
         JSL   L0B225C
         PLY
         STX   $E8
         STA   $E6
         STZ   $D8
L0C17F8  STZ   $FD
         LDX   $F0
         LDA   $EE
         STX   $EC
         STA   $EA
L0C1802  LDX   $EC
         LDA   $EA
         INC   $EA
         BNE   L0C180C
         INC   $EC
L0C180C  STA   $F2
         STX   $F4
         LDA   [$F2]
         AND   #$00FF
         SEC
         SBC   #$0080
         BVS   L0C181E
         EOR   #$8000
L0C181E  BMI   L0C1824
         INC   $FD
         BRA   L0C1802
L0C1824  LDA   $FD
         ASL
         ASL
         PHA
         LDA   #$0070
         PLX
         STX   $F6
         SEC
         SBC   $F6
         SEP   #$20
         STA   $D0
         REP   #$20
         AND   #$00FF
         CLC
         ADC   #$0007
         SEP   #$20
         STA   $D1
         REP   #$20
         LDA   $D8
         INC   $D8
         LDX   #$0000
         PHX
         PHA
         LDA   #L05698B
         LDX   #^L05698B
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         SEP   #$20
         STA   $D3
         REP   #$20
         AND   #$00FF
         SEC
         SBC   #$0007
         SEP   #$20
         STA   $D2
         REP   #$20
L0C1873  LDA   $FD
         DEC   $FD
         TAY
         BEQ   L0C18DE
         PEA   $000A
         PEA   $0070
         PEA   $0090
         PEA   $0000
         LDX   $F0
         LDA   $EE
         INC   $EE
         BNE   L0C1890
         INC   $F0
L0C1890  STA   $F2
         STX   $F4
         LDA   [$F2]
         AND   #$00FF
         ASL
         ASL
         ASL
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00D0
         PHA
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $E8
         PEI   $E6
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
         LDA   $D0
         AND   #$00FF
         CLC
         ADC   #$0008
         SEP   #$20
         STA   $D0
         REP   #$20
         LDA   $D1
         AND   #$00FF
         CLC
         ADC   #$0008
         SEP   #$20
         STA   $D1
         REP   #$20
         BRA   L0C1873
L0C18DE  LDX   $F0
         LDA   $EE
         INC   $EE
         BNE   L0C18E8
         INC   $F0
L0C18E8  STA   $F2
         STX   $F4
         LDA   [$F2]
         AND   #$00FF
         CMP   #$0081
         BEQ   L0C18F9
         BRL   L0C17F8
L0C18F9  BRL   L0C1D74
         BRL   L0C196A
L0C18FF  INC   $E4
         PEA   $0004
         PEA   ^L0510FB
         PEA   L0510FB
         PEI   $F0
         PEI   $EE
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $DA
         STA   L0300C8
         LDA   $FD
         CMP   L030096
         BEQ   L0C1928
         LDA   #$0000
         BRA   L0C192B
L0C1928  LDA   #$0001
L0C192B  STA   L0300CA
         STZ   L0300CC
         STZ   $E2
         BRA   L0C195D
L0C1935  LDA   $E2
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0510A1
         LDX   #^L0510A1
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         CMP   $FD
         BNE   L0C195B
         LDA   #$0001
         STA   L0300CC
         BRA   L0C196A
L0C195B  INC   $E2
L0C195D  LDA   $E2
         SEC
         SBC   #$0001
         BVS   L0C1968
         EOR   #$8000
L0C1968  BPL   L0C1935
L0C196A  PEI   $E4
         JSL   L0B225C
         PLY
         STX   $EC
         STA   $EA
         LDA   $FF
         CMP   #$000B
         BNE   L0C19B0
         LDY   #$0005
         LDA   [$EE],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$EE],Y
         AND   #$00FF
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $EC
         PEI   $EA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDX   L03027C
         LDA   L03027A
         STX   $EC
         STA   $EA
L0C19B0  STZ   $E2
         BRL   L0C1C05
L0C19B5  STZ   $E0
         LDA   $FF
         CMP   #$0006
         BEQ   L0C19CA
         LDA   $FF
         CMP   #$0001
         BEQ   L0C19CA
         LDA   #$0000
         BRA   L0C19CD
L0C19CA  LDA   #$0001
L0C19CD  STA   $DE
         TAY
         BEQ   L0C1A05
         LDA   $E2
         PHA
         LDA   #$004E
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L05699E
         LDX   #^L05699E
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDX   $F4
         LDA   #$0042
         CLC
         ADC   $F2
         BCC   L0C19FE
         INX
L0C19FE  STX   $EC
         STA   $EA
         BRL   L0C1A91
L0C1A05  LDA   $FF
         CMP   #$0005
         BEQ   L0C1A13
         LDA   $FF
         CMP   #$0000
         BNE   L0C1A45
L0C1A13  LDA   $E2
         PHA
         LDA   #$004E
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L05699E
         LDX   #^L05699E
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDX   $F4
         LDA   #$003C
         CLC
         ADC   $F2
         BCC   L0C1A3F
         INX
L0C1A3F  STX   $EC
         STA   $EA
         BRA   L0C1A91
L0C1A45  INC   $E4
         LDA   $E2
         PHA
         LDA   #$004E
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L05699E
         LDX   #^L05699E
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDX   $F4
         LDA   #$0048
         CLC
         ADC   $F2
         BCC   L0C1A73
         INX
L0C1A73  STX   $EC
         STA   $EA
         LDA   $FF
         CMP   #$0007
         BNE   L0C1A85
         LDA   #$0006
         STA   $E0
         BRA   L0C1A91
L0C1A85  LDA   $FF
         CMP   #$0009
         BNE   L0C1A91
         LDA   #$FFFA
         STA   $E0
L0C1A91  LDA   $E0
         LDX   #$0000
         TAY
         BPL   L0C1A9A
         DEX
L0C1A9A  PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         AND   #$00FF
         PHA
         LDA   $E0
         LDX   #$0000
         TAY
         BPL   L0C1AB9
         DEX
L0C1AB9  PHX
         PHA
         LDX   $F0
         LDA   $EE
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDY   #$0001
         LDA   [$F2],Y
         AND   #$00FF
         PLX
         STX   $F6
         SEC
         SBC   $F6
         STA   $E2
         LDA   $FF
         LDX   #$0000
         PHX
         PHA
         LDA   #L0568DB
         LDX   #^L0568DB
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         AND   #$00FF
         PHA
         LDA   $FD
         ASL
         ASL
         PHA
         LDA   #$0004
         PLX
         STX   $F6
         CLC
         ADC   $F6
         PLX
         STX   $F6
         CLC
         ADC   $F6
         STA   $FD
         PHA
         JSL   L0B24B1
         PLY
         TAY
         BEQ   L0C1B18
         BRL   L0C1B85
L0C1B18  PEI   $E4
         JSL   L0B225C
         PLY
         STX   $E8
         STA   $E6
         LDA   $FF
         SEC
         SBC   #$0004
         BEQ   L0C1B32
         BVS   L0C1B30
         EOR   #$8000
L0C1B30  BMI   L0C1B3A
L0C1B32  LDA   #L056947
         LDX   #^L056947
         BRA   L0C1B40
L0C1B3A  LDA   #L056957
         LDX   #^L056957
L0C1B40  PHX
         PHA
         LDY   #$0005
         LDA   [$EE],Y
         AND   #$00FF
         PHA
         LDA   $E2
         CLC
         ADC   #$0001
         PHA
         LDY   #$0005
         LDA   [$EA],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$EA],Y
         AND   #$00FF
         ASL
         PHA
         PEI   $FD
         JSL   L0B25FC
         PLY
         PHX
         PHA
         PEI   $E8
         PEI   $E6
         JSL   L080421
         TAY
         TSC
         CLC
         ADC   #$0014
         TCS
         TYA
         PEI   $FD
         JSL   L0B2667
         PLY
L0C1B85  PEI   $FD
         JSL   L0B25FC
         PLY
         STX   $EC
         STA   $EA
         LDA   $DE
         BEQ   L0C1BDB
         LDY   #$0005
         LDA   [$EE],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$EE],Y
         AND   #$00FF
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $EC
         PEI   $EA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDX   L03027C
         LDA   L03027A
         STX   $EC
         STA   $EA
         LDA   $E2
         AND   #$000F
         PHA
         LDA   #$000F
         PLX
         STX   $F6
         SEC
         SBC   $F6
         STA   $E2
         BRA   L0C1C05
L0C1BDB  LDA   $FF
         CMP   #$0007
         BNE   L0C1C03
         LDA   [$EE]
         AND   #$00FF
         PHA
         LDY   #$0001
         LDA   [$EE],Y
         AND   #$00FF
         PLX
         STX   $F6
         SEC
         SBC   $F6
         PHA
         LDA   $E2
         PLX
         STX   $F6
         SEC
         SBC   $F6
         STA   $E2
         BRA   L0C1C05
L0C1C03  STZ   $E2
L0C1C05  LDA   $DC
         BNE   L0C1C0C
         BRL   L0C1CDE
L0C1C0C  LDX   $F0
         LDA   $EE
         STX   $E8
         STA   $E6
         LDX   #$0000
         TDC
         CLC
         ADC   #$008A
         STX   $F0
         STA   $EE
         STZ   $E4
L0C1C22  LDA   [$EE]
         AND   #$00FF
         SEC
         SBC   #$0080
         BVS   L0C1C30
         EOR   #$8000
L0C1C30  BMI   L0C1C3A
         INC   $EE
         BNE   L0C1C38
         INC   $F0
L0C1C38  BRA   L0C1C22
L0C1C3A  INC   $E4
         LDX   $F0
         LDA   $EE
         INC   $EE
         BNE   L0C1C46
         INC   $F0
L0C1C46  STA   $F2
         STX   $F4
         LDA   [$F2]
         AND   #$00FF
         CMP   #$0081
         BNE   L0C1C22
         LDX   $E8
         LDA   $E6
         STX   $F0
         STA   $EE
         LDA   $E4
         SEC
         SBC   #$0004
         BVS   L0C1C67
         EOR   #$8000
L0C1C67  BPL   L0C1C6C
         BRL   L0C1CDE
L0C1C6C  PEA   $0008
         PEA   $0000
         TDC
         CLC
         ADC   #$00D0
         PHA
         PEI   $F0
         PEI   $EE
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         LDX   #$0000
         TDC
         CLC
         ADC   #$00D0
         STX   $F0
         STA   $EE
         LDA   $FF
         LDX   #$0000
         PHX
         PHA
         LDA   #L0568DB
         LDX   #^L0568DB
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         AND   #$00FF
         PHA
         LDA   #$0003
         SEC
         JSL   L0220A5
         PLA
         CLC
         ADC   $E4
         SEC
         SBC   #$0001
         LDX   #$0000
         PHX
         PHA
         LDA   #L05698F
         LDX   #^L05698F
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         SEP   #$20
         LDY   #$0003
         STA   [$EE],Y
         REP   #$20
L0C1CDE  PEA   $000A
         PEA   $0070
         LDY   #$0004
         LDA   [$EE],Y
         AND   #$00FF
         PHA
         PEA   $0000
         PEI   $E2
         PEI   $F0
         PEI   $EE
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $EC
         PEI   $EA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
         LDA   $FF
         CMP   #$000C
         BEQ   L0C1D18
         BRL   L0C1D74
L0C1D18  LDA   L0300CE
         PHA
         DEC
         STA   L0300CE
         PLA
         TAY
         BNE   L0C1D27
         BRL   L0C1D74
L0C1D27  PEA   $0001
         PEA   $0070
         PEA   $0080
         LDA   #$0003
         PHA
         LDA   L0300CE
         SEC
         JSL   L0222DF
         LDA   #$001D
         SEC
         JSL   L0220A5
         LDA   L0300CE
         AND   #$0007
         ASL
         ASL
         ASL
         ASL
         ASL
         PHA
         PEA   ^L05631F
         PEA   L05631F
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEA   $001A
         JSL   L0B225C
         PLY
         PHX
         PHA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C1D74  LDA   $DA
         BRA   L0C1D7B
L0C1D78  LDA   #$0000
L0C1D7B  TAY
         TSC
         CLC
         ADC   #$006E
         TCS
         TYA
         PLD
         RTL

L0C1D85  PHD
         TSC
         SEC
         SBC   #$00F7
         TCD
         ADC   #$00E4
         TCS
         LDA   $FD
         BNE   L0C1D97
         BRL   L0C1EFA
L0C1D97  LDA   $FD
         AND   #$8000
         STA   $E6
         TAY
         BEQ   L0C1DAE
         LDA   $FD
         AND   #$7FFF
         STA   $FD
         TAY
         BNE   L0C1DAE
         BRL   L0C1EEB
L0C1DAE  LDA   $FF
         LDX   #$0000
         PHX
         PHA
         LDA   #L0568E7
         LDX   #^L0568E7
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         AND   #$00FF
         PHA
         DEC   $FD
         LDA   $FD
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0575EA
         LDX   #^L0575EA
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         PLX
         STX   $F6
         CLC
         ADC   $F6
         STA   $E8
         LDA   $FF
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   $FD
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0575EA
         LDX   #^L0575EA
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDY   #$0002
         LDA   [$F2],Y
         PHA
         LDA   #$0036
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056C0E
         LDX   #^L056C0E
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STX   $EC
         STA   $EA
         LDA   $FF
         CMP   #$0008
         BEQ   L0C1E7A
         LDA   $FF
         CMP   #$0005
         BEQ   L0C1E7A
         LDA   $FF
         CMP   #$0002
         BEQ   L0C1E7A
         LDA   $FD
         CMP   #$000F
         BNE   L0C1EAF
         LDA   L03027E
         BEQ   L0C1EAF
         LDA   $FF
         CMP   #$0007
         BEQ   L0C1E7A
         LDA   $FF
         CMP   #$0004
         BEQ   L0C1E7A
         LDA   $FF
         CMP   #$0001
         BNE   L0C1EAF
L0C1E7A  LDY   #$0005
         LDA   [$EA],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$EA],Y
         AND   #$00FF
         PHA
         LDX   L03027C
         LDA   L03027A
         STX   $F0
         STA   $EE
         PHX
         PHA
         PEI   $E8
         JSL   L0B225C
         PLY
         PHX
         PHA
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRA   L0C1EBA
L0C1EAF  PEI   $E8
         JSL   L0B225C
         PLY
         STX   $F0
         STA   $EE
L0C1EBA  PEA   $000A
         PEA   $0070
         LDY   #$0004
         LDA   [$EA],Y
         AND   #$00FF
         PHA
         PEA   $0000
         PEA   $0000
         PEI   $EC
         PEI   $EA
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $F0
         PEI   $EE
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C1EEB  LDA   $E6
         BEQ   L0C1EFA
         PEI   $FF
         PEA   $0010
         JSL   L0C1D85
         PLY
         PLY
L0C1EFA  TSC
         CLC
         ADC   #$0012
         TCS
         PLD
         RTL

L0C1F02  PHD
         TSC
         SEC
         SBC   #$00F7
         TCD
         ADC   #$00E0
         TCS
         LDA   $FD
         BNE   L0C1F14
         BRL   L0C20B6
L0C1F14  DEC   $FD
         LDA   $FD
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05762A
         LDX   #^L05762A
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         STA   $E8
         LDA   $FF
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   $FD
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05762A
         LDX   #^L05762A
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDY   #$0002
         LDA   [$F2],Y
         STA   $E6
         PHA
         LDA   #$0012
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056CB0
         LDX   #^L056CB0
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STX   $F0
         STA   $EE
         LDA   $FF
         CMP   #$0002
         BNE   L0C1FA3
         PEI   $E8
         JSL   L0B225C
         PLY
         STX   $EC
         STA   $EA
         LDA   #$0030
         STA   $FF
         BRL   L0C2086
L0C1FA3  LDA   $FD
         ASL
         PHA
         LDA   #$0044
         PLX
         STX   $F6
         CLC
         ADC   $F6
         CLC
         ADC   $FF
         STA   $FD
         PHA
         JSL   L0B24B1
         PLY
         TAY
         BEQ   L0C1FC1
         BRL   L0C2068
L0C1FC1  LDA   $E6
         PHA
         LDA   #$0012
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056CB0
         LDX   #^L056CB0
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDX   $F4
         LDA   #$000C
         CLC
         ADC   $F2
         BCC   L0C1FED
         INX
L0C1FED  STX   $EC
         STA   $EA
         PEI   $E8
         JSL   L0B225C
         PLY
         STX   $E4
         STA   $E2
         LDA   $FF
         CMP   #$0000
         BNE   L0C200B
         LDA   #L056967
         LDX   #^L056967
         BRA   L0C2011
L0C200B  LDA   #L056977
         LDX   #^L056977
L0C2011  PHX
         PHA
         LDY   #$0005
         LDA   [$EE],Y
         AND   #$00FF
         PHA
         LDA   [$EE]
         AND   #$00FF
         PHA
         LDY   #$0001
         LDA   [$EE],Y
         AND   #$00FF
         PLX
         STX   $F6
         SEC
         SBC   $F6
         CLC
         ADC   #$0001
         PHA
         LDY   #$0005
         LDA   [$EA],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$EA],Y
         AND   #$00FF
         ASL
         PHA
         PEI   $FD
         JSL   L0B25FC
         PLY
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L080421
         TAY
         TSC
         CLC
         ADC   #$0014
         TCS
         TYA
         PEI   $FD
         JSL   L0B2667
         PLY
L0C2068  PEI   $FD
         JSL   L0B25FC
         PLY
         STX   $EC
         STA   $EA
         LDA   $FF
         CMP   #$0000
         BNE   L0C2081
         LDA   #$0018
         STA   $FF
         BRA   L0C2086
L0C2081  LDA   #$0020
         STA   $FF
L0C2086  PEA   $0009
         PEI   $FF
         LDY   #$0004
         LDA   [$EE],Y
         AND   #$00FF
         PHA
         PEA   $0000
         PEA   $0000
         PEI   $F0
         PEI   $EE
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $EC
         PEI   $EA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C20B6  TSC
         CLC
         ADC   #$0016
         TCS
         PLD
         RTL

L0C20BE  PHD
         TSC
         SEC
         SBC   #$00F7
         TCD
         ADC   #$00E0
         TCS
         LDA   $FD
         BNE   L0C20D0
         BRL   L0C226D
L0C20D0  DEC   $FD
         LDA   $FD
         CLC
         ADC   #$013B
         STA   $E8
         LDA   $FF
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   $FD
         LDX   #$0000
         PHX
         PHA
         LDA   #L056946
         LDX   #^L056946
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDA   [$F2]
         AND   #$00FF
         STA   $E6
         PHA
         LDA   #$0018
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056CF8
         LDX   #^L056CF8
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STX   $F0
         STA   $EE
         LDA   $FF
         CMP   #$0003
         BNE   L0C2159
         PEI   $E8
         JSL   L0B225C
         PLY
         STX   $EC
         STA   $EA
         PEA   $0004
         PEA   ^L0510FB
         PEA   L0510FB
         PEI   $F0
         PEI   $EE
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         BRL   L0C223C
L0C2159  LDA   $FF
         BNE   L0C2162
         LDA   #$0000
         BRA   L0C2168
L0C2162  LDA   $FF
         SEC
         SBC   #$0001
L0C2168  PHA
         LDA   $FD
         ASL
         PHA
         LDA   #$0066
         PLX
         STX   $F6
         CLC
         ADC   $F6
         PLX
         STX   $F6
         CLC
         ADC   $F6
         STA   $FD
         PHA
         JSL   L0B24B1
         PLY
         TAY
         BEQ   L0C218A
         BRL   L0C2231
L0C218A  LDA   $E6
         PHA
         LDA   #$0018
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056CF8
         LDX   #^L056CF8
         JSL   L021F00
         PLA
         PLX
         STA   $F2
         STX   $F4
         LDX   $F4
         LDA   #$0012
         CLC
         ADC   $F2
         BCC   L0C21B6
         INX
L0C21B6  STX   $EC
         STA   $EA
         PEI   $E8
         JSL   L0B225C
         PLY
         STX   $E4
         STA   $E2
         LDA   $FF
         CMP   #$0002
         BNE   L0C21D4
         LDA   #L056957
         LDX   #^L056957
         BRA   L0C21DA
L0C21D4  LDA   #L056947
         LDX   #^L056947
L0C21DA  PHX
         PHA
         LDY   #$0005
         LDA   [$EE],Y
         AND   #$00FF
         PHA
         LDA   [$EE]
         AND   #$00FF
         PHA
         LDY   #$0001
         LDA   [$EE],Y
         AND   #$00FF
         PLX
         STX   $F6
         SEC
         SBC   $F6
         CLC
         ADC   #$0001
         PHA
         LDY   #$0005
         LDA   [$EA],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$EA],Y
         AND   #$00FF
         ASL
         PHA
         PEI   $FD
         JSL   L0B25FC
         PLY
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L080421
         TAY
         TSC
         CLC
         ADC   #$0014
         TCS
         TYA
         PEI   $FD
         JSL   L0B2667
         PLY
L0C2231  PEI   $FD
         JSL   L0B25FC
         PLY
         STX   $EC
         STA   $EA
L0C223C  PEA   $000A
         PEA   $0070
         LDY   #$0004
         LDA   [$EE],Y
         AND   #$00FF
         PHA
         PEA   $0000
         PEA   $0000
         PEI   $F0
         PEI   $EE
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $EC
         PEI   $EA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C226D  TSC
         CLC
         ADC   #$0016
         TCS
         PLD
         RTL

L0C2275  PHD
         TSC
         SEC
         SBC   #$00EB
         TCD
         ADC   #$00DE
         TCS
         LDA   $F3
         CMP   #$0000
         BNE   L0C228A
         BRL   L0C2441
L0C228A  LDX   #$0000
         LDA   #$0002
         PHX
         PHA
         LDA   $F1
         LDX   #$0000
         SEC
         JSL   L0222B8
         LDAL  L0510A9
         TAX
         LDAL  L0510A7
         JSL   L021F00
         PLA
         PLX
         STX   $E4
         STA   $E2
         PEI   $F9
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         LDY   #$0002
         LDA   [$E2],Y
         AND   #$0001
         STA   $E0
         LDX   #$0000
         STX   $EA
         ASL
         ROL   $EA
         LDX   $EA
         PHX
         PHA
         LDX   $F7
         LDA   $F5
         JSL   L021F00
         PLA
         PLX
         STA   $E6
         STX   $E8
         LDA   [$E6]
         PHA
         JSL   L0B225C
         PLY
         PHX
         PHA
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         PEI   $FB
         LDY   #$0002
         LDA   [$E2],Y
         LSR
         AND   #$000F
         PHA
         JSL   L0C1F02
         PLY
         PLY
         LDA   $E0
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0510A3
         LDX   #^L0510A3
         JSL   L021F00
         PLA
         PLX
         STA   $E6
         STX   $E8
         LDA   [$E6]
         AND   #$00FF
         AND   #$0004
         TAY
         BEQ   L0C2377
         JSL   L020564
         TAY
         BEQ   L0C234E
         LDY   #$0005
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         JSL   L080C01
         PLY
         PLY
         PLY
         PLY
L0C234E  JSL   L020564
         TAY
         BEQ   L0C2377
         LDY   #$0005
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$FD],Y
         AND   #$00FF
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         JSL   L080C71
         PLY
         PLY
         PLY
         PLY
L0C2377  LDA   #L0567DB
         LDX   #^L0567DB
         PHX
         PHA
         LDX   $FF
         LDA   $FD
         JSL   L022171
         BNE   L0C239E
         LDAL  L056152
         AND   #$00FF
         BEQ   L0C239E
         PEA   $0002
         PEA   $0011
         JSL   L0C1F02
         PLY
         PLY
L0C239E  LDA   $F3
         CMP   #$0004
         BNE   L0C23B2
         PEI   $FF
         PEI   $FD
         JSL   L0C1506
         PLY
         PLY
         BRL   L0C2441
L0C23B2  LDA   $F3
         CMP   #$0005
         BNE   L0C23D0
         PEI   $FB
         PEA   $0010
         JSL   L0C1F02
         PLY
         PLY
         PEI   $FF
         PEI   $FD
         JSL   L0C1506
         PLY
         PLY
         BRA   L0C2441
L0C23D0  DEC   $F3
         LDY   #$0002
         LDA   [$E2],Y
         LSR
         LSR
         LSR
         LSR
         LSR
         AND   #$0001
         TAY
         BEQ   L0C2403
         LDA   $F3
         ASL
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $FD
         CLC
         ADC   #$0008
         LDX   $FF
         BCC   L0C23F7
         INX
L0C23F7  JSL   L021F00
         JSL   L0C1506
         PLY
         PLY
         BRA   L0C2441
L0C2403  LDA   $F3
         ASL
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $FD
         CLC
         ADC   #$0020
         LDX   $FF
         BCC   L0C2418
         INX
L0C2418  JSL   L021F00
         JSL   L0C1506
         PLY
         PLY
         LDA   $F3
         ASL
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $FD
         CLC
         ADC   #$0038
         LDX   $FF
         BCC   L0C2437
         INX
L0C2437  JSL   L021F00
         JSL   L0C1506
         PLY
         PLY
L0C2441  TSC
         CLC
         ADC   #$000C
         TCS
         PLD
         RTL

L0C2449  PHD
         TSC
         SEC
         SBC   #$00EF
         TCD
         ADC   #$00E6
         TCS
         PEA   $0000
         TDC
         CLC
         ADC   #$00FD
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00FB
         PHA
         PEA   $FFFF
         LDA   L03008A
         PHA
         JSL   L060A6A
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         STA   $E8
         SEC
         SBC   #$0000
         BVS   L0C2484
         EOR   #$8000
L0C2484  BMI   L0C2489
         BRL   L0C2530
L0C2489  LDA   #$0005
         PHA
         LDA   $FD
         LDX   #$0000
         TAY
         BPL   L0C2496
         DEX
L0C2496  PHX
         PHA
         LDA   $FB
         LDX   #$0000
         TAY
         BPL   L0C24A1
         DEX
L0C24A1  STX   $EE
         ASL
         ROL   $EE
         ASL
         ROL   $EE
         LDX   $EE
         PHX
         PHA
         LDA   $E8
         LDX   #$0000
         TAY
         BPL   L0C24B6
         DEX
L0C24B6  STX   $EE
         ASL
         ROL   $EE
         ASL
         ROL   $EE
         LDX   $EE
         PHX
         PHA
         LDX   L0300B6
         LDA   L0300B4
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDY   #$0002
         LDA   [$EA],Y
         TAX
         LDA   [$EA]
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDY   #$0002
         LDA   [$EA],Y
         TAX
         LDA   [$EA]
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         AND   #$00FF
         STA   $E8
         SEC
         JSL   L0222DF
         PLA
         CMP   #$0002
         BNE   L0C2530
         LDA   $E8
         AND   #$0008
         TAY
         BEQ   L0C2530
         LDA   $FF
         BEQ   L0C2523
         PEI   $F9
         PEI   $F7
         PEI   $F5
         JSL   L0C163B
         PLY
         PLY
         PLY
         BRA   L0C2530
L0C2523  PEI   $F9
         PEI   $F7
         PEI   $F5
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C2530  TSC
         CLC
         ADC   #$0008
         TCS
         PLD
         RTL

L0C2538  PHD
         TSC
         SEC
         SBC   #$00F3
         TCD
         ADC   #$00E4
         TCS
         LDY   #$0003
         LDA   [$F9],Y
         AND   #$00FF
         CMP   #$00FF
         BNE   L0C2556
         STZ   $EA
         STZ   $EC
         BRA   L0C25CA
L0C2556  LDY   #$0005
         LDA   [$F9],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$F9],Y
         AND   #$00FF
         SEC
         JSL   L0220A5
         LDX   L03027C
         LDA   L03027A
         STX   $EC
         STA   $EA
         PHX
         PHA
         LDY   #$0003
         LDA   [$F9],Y
         AND   #$00FF
         AND   #$007F
         PHA
         LDA   #$0045
         PLX
         STX   $F2
         CLC
         ADC   $F2
         PHA
         JSL   L0B225C
         PLY
         PHX
         PHA
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         LDY   #$0003
         LDA   [$F9],Y
         AND   #$00FF
         AND   #$0080
         TAY
         BEQ   L0C25CA
         LDY   #$0005
         LDA   [$F9],Y
         AND   #$00FF
         PHA
         LDY   #$0004
         LDA   [$F9],Y
         AND   #$00FF
         PHA
         PEI   $EC
         PEI   $EA
         JSL   L080C01
         PLY
         PLY
         PLY
         PLY
L0C25CA  PEA   $0000
         JSL   L0B24B1
         PLY
         LDA   [$F9]
         AND   #$00FF
         PHA
         LDA   #$0049
         PLX
         STX   $F2
         CLC
         ADC   $F2
         PHA
         JSL   L0B225C
         PLY
         STX   $E8
         STA   $E6
         PEA   $0000
         LDY   #$0006
         LDA   [$F9],Y
         AND   #$00FF
         PHA
         LDY   #$0002
         LDA   [$F9],Y
         AND   #$00FF
         PHA
         PEA   $0070
         JSL   L02051C
         AND   #$001F
         PHA
         LDY   #$0001
         LDA   [$F9],Y
         AND   #$00FF
         PHA
         JSL   L020564
         PLX
         STX   $F2
         CLC
         ADC   $F2
         PHA
         PEI   $FF
         PEI   $FD
         PEA   $0000
         JSL   L0B25FC
         PLY
         PHX
         PHA
         PEI   $EC
         PEI   $EA
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $E8
         PEI   $E6
         JSL   L0810CF
         TAY
         TSC
         CLC
         ADC   #$0020
         TCS
         TYA
         PEA   $0000
         JSL   L0B2667
         PLY
         PEA   $8000
         JSL   L0B0CF6
         PLY
         TSC
         CLC
         ADC   #$000E
         TCS
         PLD
         RTL

L0C2661  PHD
         TSC
         SEC
         SBC   #$00EF
         TCD
         ADC   #$00D6
         TCS
         LDA   $F5
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L056F62
         LDX   #^L056F62
         JSL   L021F00
         PLA
         PLX
         STX   $E4
         STA   $E2
         LDA   $F7
         CMP   #$0020
         BEQ   L0C2692
         BCC   L0C2692
         LDA   #$0020
         STA   $F7
L0C2692  LDA   $F7
         LSR
         PHA
         LDA   $F7
         PHA
         LDA   [$E2]
         AND   #$00FF
         CLC
         JSL   L0220A5
         PLA
         PLX
         STX   $EE
         CLC
         ADC   $EE
         LSR
         LSR
         LSR
         LSR
         LSR
         STA   $E0
         LDA   $F7
         LSR
         PHA
         LDA   $F7
         PHA
         LDY   #$0001
         LDA   [$E2],Y
         AND   #$00FF
         CLC
         JSL   L0220A5
         PLA
         PLX
         STX   $EE
         CLC
         ADC   $EE
         LSR
         LSR
         LSR
         LSR
         LSR
         STA   $DE
         LDA   $F7
         CMP   #$0020
         BNE   L0C26F4
         LDA   $F5
         CMP   #$0003
         BEQ   L0C26F4
         LDA   $F5
         CLC
         ADC   #$015C
         PHA
         JSL   L0B225C
         PLY
         STX   $E8
         STA   $E6
         BRL   L0C2791
L0C26F4  LDA   $F7
         LSR
         PHA
         LDA   $F5
         PHA
         LDA   #$000E
         CLC
         JSL   L0220A5
         PLA
         PLX
         STX   $EE
         CLC
         ADC   $EE
         CLC
         ADC   #$01B4
         STA   $DC
         PHA
         JSL   L0B24B1
         PLY
         TAY
         BEQ   L0C2727
         PEI   $DC
         JSL   L0B25FC
         PLY
         STX   $E8
         STA   $E6
         BRL   L0C2791
L0C2727  PEA   $0002
         PEI   $F5
         JSL   L020493
         PLY
         PLY
         CLC
         ADC   #$015C
         PHA
         JSL   L0B225C
         PLY
         STX   $DA
         STA   $D8
         LDA   $F5
         CMP   #$0003
         BNE   L0C274F
         LDA   #L056F6A
         LDX   #^L056F6A
         BRA   L0C2755
L0C274F  LDA   #L05822A
         LDX   #^L05822A
L0C2755  PHX
         PHA
         PEI   $DE
         LDA   $E0
         ASL
         PHA
         LDY   #$0001
         LDA   [$E2],Y
         AND   #$00FF
         PHA
         LDA   [$E2]
         AND   #$00FF
         ASL
         PHA
         PEI   $DC
         JSL   L0B25FC
         PLY
         STX   $E8
         STA   $E6
         PHX
         PHA
         PEI   $DA
         PEI   $D8
         JSL   L080421
         TAY
         TSC
         CLC
         ADC   #$0014
         TCS
         TYA
         PEI   $DC
         JSL   L0B2667
         PLY
L0C2791  LDA   $E0
         STA   [$F9]
         LDA   $DE
         STA   [$FD]
         LDX   $E8
         LDA   $E6
         TAY
         TSC
         CLC
         ADC   #$0018
         TCS
         TYA
         PLD
         RTL

L0C27A7  PHD
         TSC
         SEC
         SBC   #$00EF
         TCD
         ADC   #$0032
         TCS
         LDA   $F5
         CMP   #$FFFE
         BNE   L0C27BC
         BRL   L0C4530
L0C27BC  STZ   $A4
         STZ   $A6
         LDA   #$FFFF
         STA   $A8
         LDA   #$0000
         STA   $40
         STA   $58
         STA   $72
         STZ   $AE
         LDA   $F5
         STA   $B2
         LDA   $FF
         AND   #$0008
         TAY
         BEQ   L0C27F1
         LDA   $FF
         AND   #$0001
         CLC
         ADC   #$0001
         STA   $70
         LDA   $FF
         LSR
         LSR
         LSR
         LSR
         STA   $FF
         BRA   L0C27F3
L0C27F1  STZ   $70
L0C27F3  LDA   $FF
         LDX   #$0000
         STX   $DC
         STA   $DA
         STX   $EA
         ORA   $EA
         BEQ   L0C2807
         LDA   #$0000
         BRA   L0C280A
L0C2807  LDA   #$0001
L0C280A  STA   $CA
         LDA   $FD
         STA   $B0
         LDA   #$0003
         PHA
         LDA   $FD
         CLC
         ADC   #$0003
         SEC
         JSL   L021F1A
         PLA
         STA   $C4
L0C2822  LDA   $CA
         BEQ   L0C283D
         LDA   #$0004
         STA   $E8
         LDA   $F7
         CLC
         ADC   #$0002
         AND   #$0003
         STA   $C2
         LDA   #$0002
         STA   $AC
         BRA   L0C287B
L0C283D  LDX   $DC
         LDA   $DA
         AND   #$000F
         SEC
         SBC   #$0001
         STA   $E8
         LDA   $E8
         STA   $56
         LDX   #$0000
         LDA   #$0004
         PHX
         PHA
         LDX   $DC
         LDA   $DA
         CLC
         JSL   L022303
         PLA
         PLX
         STX   $DC
         STA   $DA
         INC   $AE
         LDA   $E8
         CLC
         ADC   $F7
         AND   #$0003
         STA   $C2
         LDA   $B2
         STA   $F5
         LDA   $B0
         STA   $FD
         STZ   $AC
L0C287B  LDA   $C2
         AND   #$0001
         ASL
         ASL
         ASL
         PHA
         LDA   $AC
         PLX
         STX   $EE
         CLC
         ADC   $EE
         STA   $AC
         STZ   $5A
L0C2890  LDA   #$000A
         PHA
         LDA   $F5
         AND   #$3C00
         CLC
         JSL   L0222DF
         PLA
         STA   $E6
         CMP   #$0004
         BNE   L0C28AD
         LDA   $F5
         STA   $A8
         BRL   L0C2F25
L0C28AD  LDA   $E6
         CMP   #$000E
         BNE   L0C28BC
         LDA   #$0001
         STA   $58
         BRL   L0C2F25
L0C28BC  LDA   $E6
         CMP   #$000F
         BNE   L0C28CB
         LDA   #$0001
         STA   $40
         BRL   L0C2F25
L0C28CB  LDA   $FD
         SEC
         SBC   #$0000
         BVS   L0C28D6
         EOR   #$8000
L0C28D6  BMI   L0C28DB
         BRL   L0C2F25
L0C28DB  LDA   $FD
         SEC
         SBC   #$0009
         BEQ   L0C28ED
         BVS   L0C28E8
         EOR   #$8000
L0C28E8  BPL   L0C28ED
         BRL   L0C2F25
L0C28ED  LDA   #$000E
         PHA
         LDA   $F5
         CLC
         JSL   L0222DF
         LDA   $C2
         PLX
         STX   $EA
         CMP   $EA
         BEQ   L0C2904
         BRL   L0C2F25
L0C2904  PEI   $F5
         JSL   L060280
         PLY
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L05048C
         LDX   #^L05048C
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDY   #$0002
         LDA   [$EA],Y
         AND   #$00FF
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056D10
         LDX   #^L056D10
         JSL   L021F00
         PLA
         PLX
         STX   $E0
         STA   $DE
         LDA   [$DE]
         AND   #$00FF
         PHA
         LDA   #$0168
         PLX
         STX   $EE
         CLC
         ADC   $EE
         STA   $E6
         LDA   $CA
         BEQ   L0C2978
         LDY   #$0004
         LDA   [$DE],Y
         AND   #$00FF
         AND   #$0010
         TAY
         BEQ   L0C2978
         LDA   $C4
         BEQ   L0C297D
L0C2978  LDA   #$0000
         BRA   L0C2980
L0C297D  LDA   #$0001
L0C2980  STA   $BC
         TAY
         BEQ   L0C2987
         INC   $E6
L0C2987  LDA   $E8
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $FD
         PHA
         LDA   #$000A
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDY   #$0005
         LDA   [$DE],Y
         AND   #$00FF
         PHA
         LDA   #$0064
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056FC6
         LDX   #^L056FC6
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STX   $D0
         STA   $CE
         LDY   #$0001
         LDA   [$CE],Y
         AND   #$00FF
         BNE   L0C29E0
         BRL   L0C2F25
L0C29E0  LDY   #$0004
         LDA   [$DE],Y
         AND   #$00FF
         AND   #$0001
         TAY
         BEQ   L0C2A0B
         LDA   $BC
         BNE   L0C2A0B
         LDA   $C4
         CMP   #$0002
         BEQ   L0C2A10
         LDA   $C4
         BNE   L0C2A0B
         LDA   $E8
         CMP   #$0001
         BEQ   L0C2A10
         LDA   $E8
         CMP   #$0002
         BEQ   L0C2A10
L0C2A0B  LDA   #$0000
         BRA   L0C2A13
L0C2A10  LDA   #$0001
L0C2A13  STA   $BA
         STZ   $C0
         LDA   $FD
         CMP   #$0009
         BEQ   L0C2A3E
         LDA   $FD
         SEC
         SBC   #$0006
         BVS   L0C2A29
         EOR   #$8000
L0C2A29  BMI   L0C2A2E
         BRL   L0C2A9E
L0C2A2E  LDA   $E8
         SEC
         SBC   #$0002
         BVS   L0C2A39
         EOR   #$8000
L0C2A39  BMI   L0C2A3E
         BRL   L0C2A9E
L0C2A3E  LDA   $C4
         BNE   L0C2A46
         LDA   $5A
         BEQ   L0C2A4B
L0C2A46  LDA   #$0000
         BRA   L0C2A4E
L0C2A4B  LDA   #$0001
L0C2A4E  STA   $B8
         STZ   $AA
         PEI   $E6
         JSL   L0B225C
         PLY
         STX   $E4
         STA   $E2
         LDY   #$0002
         LDA   [$DE],Y
         AND   #$00FF
         STA   $C8
         LDY   #$0003
         LDA   [$DE],Y
         AND   #$00FF
         STA   $C6
         LDA   $BA
         BEQ   L0C2A9B
         PEI   $C6
         PEI   $C8
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDX   L03027C
         LDA   L03027A
         STX   $E4
         STA   $E2
L0C2A9B  BRL   L0C2C28
L0C2A9E  STZ   $B8
         LDY   #$0001
         LDA   [$DE],Y
         AND   #$00FF
         PHA
         LDA   #$0068
         PLX
         STX   $EE
         CLC
         ADC   $EE
         STA   $CC
         LDA   $FD
         SEC
         SBC   #$0006
         BVS   L0C2ABF
         EOR   #$8000
L0C2ABF  BMI   L0C2ADB
         LDA   $FD
         SEC
         SBC   #$0003
         BVS   L0C2ACC
         EOR   #$8000
L0C2ACC  BPL   L0C2B32
         LDA   $E8
         SEC
         SBC   #$0002
         BVS   L0C2AD9
         EOR   #$8000
L0C2AD9  BPL   L0C2B32
L0C2ADB  INC   $CC
         LDA   #$0001
         STA   $AA
         LDA   #$0005
         PHA
         LDY   #$0002
         LDA   [$DE],Y
         AND   #$00FF
         PHA
         LDA   #$0014
         SEC
         JSL   L0220A5
         PLA
         CLC
         ADC   #$000A
         SEC
         JSL   L0222DF
         PLA
         STA   $C8
         LDA   #$0005
         PHA
         LDY   #$0003
         LDA   [$DE],Y
         AND   #$00FF
         PHA
         LDA   #$0014
         SEC
         JSL   L0220A5
         PLA
         CLC
         ADC   #$000A
         SEC
         JSL   L0222DF
         PLA
         STA   $C6
         LDA   #L056F8A
         LDX   #^L056F8A
         STX   $D8
         STA   $D6
         BRA   L0C2B79
L0C2B32  LDA   #$0002
         STA   $AA
         LDA   #$0005
         PHA
         LDY   #$0002
         LDA   [$DE],Y
         AND   #$00FF
         ASL
         ASL
         ASL
         ASL
         CLC
         ADC   #$0008
         SEC
         JSL   L0222DF
         PLA
         STA   $C8
         LDA   #$0005
         PHA
         LDY   #$0003
         LDA   [$DE],Y
         AND   #$00FF
         ASL
         ASL
         ASL
         ASL
         CLC
         ADC   #$0008
         SEC
         JSL   L0222DF
         PLA
         STA   $C6
         LDA   #L056F7A
         LDX   #^L056F7A
         STX   $D8
         STA   $D6
L0C2B79  LDA   $BA
         BEQ   L0C2B9D
         LDA   $CC
         CLC
         ADC   #$0002
         STA   $CC
         LDA   $C8
         SEC
         SBC   #$0001
         AND   #$0007
         PHA
         LDA   #$0007
         PLX
         STX   $EE
         SEC
         SBC   $EE
         ASL
         STA   $C0
         BRA   L0C2BA9
L0C2B9D  LDA   $BC
         BEQ   L0C2BA9
         LDA   $CC
         CLC
         ADC   #$0004
         STA   $CC
L0C2BA9  PEI   $CC
         JSL   L0B24B1
         PLY
         TAY
         BEQ   L0C2BC0
         PEI   $CC
         JSL   L0B25FC
         PLY
         STX   $E4
         STA   $E2
         BRA   L0C2C28
L0C2BC0  PEI   $E6
         JSL   L0B225C
         PLY
         STX   $D4
         STA   $D2
         PEI   $D8
         PEI   $D6
         PEI   $C6
         LDA   $C8
         ASL
         PHA
         LDY   #$0003
         LDA   [$DE],Y
         AND   #$00FF
         PHA
         LDY   #$0002
         LDA   [$DE],Y
         AND   #$00FF
         ASL
         PHA
         PEI   $CC
         JSL   L0B25FC
         PLY
         STX   $E4
         STA   $E2
         PHX
         PHA
         PEI   $D4
         PEI   $D2
         JSL   L080421
         TAY
         TSC
         CLC
         ADC   #$0014
         TCS
         TYA
         LDA   $BA
         BEQ   L0C2C21
         PEI   $C6
         LDA   $C8
         CLC
         ADC   #$0007
         AND   #$FFF8
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L080C01
         PLY
         PLY
         PLY
         PLY
L0C2C21  PEI   $CC
         JSL   L0B2667
         PLY
L0C2C28  LDA   [$CE]
         AND   #$00FF
         STA   $E6
         LDY   #$0001
         LDA   [$CE],Y
         SEP   #$20
         STA   $B7
         REP   #$20
         LDA   $5A
         BEQ   L0C2C41
         BRL   L0C2D08
L0C2C41  LDA   $AC
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L056FA6
         LDX   #^L056FA6
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         AND   #$00FF
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $AA
         ASL
         ASL
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05730C
         LDX   #^L05730C
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         PHA
         LDA   $E6
         PLX
         STX   $EE
         CLC
         ADC   $EE
         STA   $E6
         LDA   $AC
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L056FA6
         LDX   #^L056FA6
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDY   #$0001
         LDA   [$EA],Y
         AND   #$00FF
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $AA
         ASL
         ASL
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05730C
         LDX   #^L05730C
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         PHA
         LDA   $B7
         AND   #$00FF
         PLX
         STX   $EE
         CLC
         ADC   $EE
         SEP   #$20
         STA   $B7
         REP   #$20
         INC   $AC
         LDA   $CA
         BEQ   L0C2D01
         LDA   $AC
         CMP   #$000E
         BCC   L0C2CFF
         LDA   #$0002
         STA   $AC
L0C2CFF  BRA   L0C2D08
L0C2D01  LDA   $AC
         AND   #$000F
         STA   $AC
L0C2D08  LDA   $C6
         SEC
         SBC   #$0001
         PHA
         LDA   $B7
         AND   #$00FF
         PLX
         STX   $EE
         SEC
         SBC   $EE
         SEP   #$20
         STA   $B6
         REP   #$20
         LDA   $B7
         AND   #$00FF
         SEC
         SBC   #$0087
         BEQ   L0C2D3B
         BVS   L0C2D30
         EOR   #$8000
L0C2D30  BPL   L0C2D3B
         LDA   #$0087
         SEP   #$20
         STA   $B7
         REP   #$20
L0C2D3B  LDA   $E6
         CLC
         ADC   $C8
         PHA
         PEA   $00DF
         JSL   L020493
         PLY
         PLY
         SEP   #$20
         STA   $B5
         REP   #$20
         LDA   $E6
         SEC
         SBC   $C8
         CLC
         ADC   #$0001
         PHA
         PEA   $0000
         JSL   L0204BA
         PLY
         PLY
         SEP   #$20
         STA   $B4
         REP   #$20
         AND   #$00FF
         BEQ   L0C2D7C
         LDA   $BA
         BEQ   L0C2D78
         LDA   $C0
         STA   $E6
         BRA   L0C2D7A
L0C2D78  STZ   $E6
L0C2D7A  BRA   L0C2D87
L0C2D7C  LDA   $C8
         SEC
         SBC   $E6
         SEC
         SBC   #$0001
         STA   $E6
L0C2D87  LDA   $B8
         BNE   L0C2D8E
         BRL   L0C2EE8
L0C2D8E  LDX   $E4
         LDA   $E2
         STX   $D4
         STA   $D2
         LDA   $E8
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0510E7
         LDX   #^L0510E7
         JSL   L021F00
         PLA
         PLX
         STX   $E4
         STA   $E2
         LDA   [$E2]
         AND   #$00FF
         CMP   #$00FF
         BEQ   L0C2DBC
         BRL   L0C2E52
L0C2DBC  PEA   $0004
         PEI   $E4
         PEI   $E2
         PEA   $0000
         TDC
         CLC
         ADC   #$00B4
         PHA
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         LDY   #$0002
         LDA   [$E2],Y
         AND   #$00FF
         PHA
         LDY   #$0003
         LDA   [$E2],Y
         AND   #$00FF
         PLX
         STX   $EE
         SEC
         SBC   $EE
         STA   $BE
         SEC
         SBC   #$000E
         BVS   L0C2DF7
         EOR   #$8000
L0C2DF7  BMI   L0C2E50
         LDA   #$0001
         PHA
         LDA   $BE
         SEC
         JSL   L0222DF
         PLA
         STA   $BE
         LDA   $BE
         SEC
         SBC   #$0007
         PHA
         LDY   #$0002
         LDA   [$E2],Y
         AND   #$00FF
         PLX
         STX   $EE
         CLC
         ADC   $EE
         SEP   #$20
         LDY   #$0002
         STA   [$E2],Y
         REP   #$20
         LDA   $BE
         SEC
         SBC   #$0004
         BVS   L0C2E30
         EOR   #$8000
L0C2E30  BMI   L0C2E50
         LDA   $BE
         SEC
         SBC   #$0003
         PHA
         LDY   #$0003
         LDA   [$E2],Y
         AND   #$00FF
         PLX
         STX   $EE
         SEC
         SBC   $EE
         SEP   #$20
         LDY   #$0003
         STA   [$E2],Y
         REP   #$20
L0C2E50  BRA   L0C2EC4
L0C2E52  LDA   $B4
         AND   #$00FF
         PHA
         LDA   [$E2]
         AND   #$00FF
         PHA
         JSL   L020493
         PLY
         PLY
         SEP   #$20
         STA   [$E2]
         REP   #$20
         LDA   $B5
         AND   #$00FF
         PHA
         LDY   #$0001
         LDA   [$E2],Y
         AND   #$00FF
         PHA
         JSL   L0204BA
         PLY
         PLY
         SEP   #$20
         LDY   #$0001
         STA   [$E2],Y
         REP   #$20
         LDA   $B6
         AND   #$00FF
         PHA
         LDY   #$0002
         LDA   [$E2],Y
         AND   #$00FF
         PHA
         JSL   L020493
         PLY
         PLY
         SEP   #$20
         LDY   #$0002
         STA   [$E2],Y
         REP   #$20
         LDA   $B7
         AND   #$00FF
         PHA
         LDY   #$0003
         LDA   [$E2],Y
         AND   #$00FF
         PHA
         JSL   L0204BA
         PLY
         PLY
         SEP   #$20
         LDY   #$0003
         STA   [$E2],Y
         REP   #$20
L0C2EC4  LDX   $D4
         LDA   $D2
         STX   $E4
         STA   $E2
         LDA   $E8
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0510FF
         LDX   #^L0510FF
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   $F5
         STA   [$EA]
L0C2EE8  PEA   $000A
         PEA   $0070
         LDA   $C8
         CLC
         ADC   #$0007
         AND   #$FFF8
         PHA
         PEA   $0000
         PEI   $E6
         PEA   $0000
         TDC
         CLC
         ADC   #$00B4
         PHA
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
         LDA   $5A
         BEQ   L0C2F25
         BRL   L0C3E66
L0C2F25  PEI   $F5
         JSL   L060D39
         PLY
         STA   $F5
         CMP   #$FFFE
         BEQ   L0C2F36
         BRL   L0C2890
L0C2F36  LDA   $E8
         CMP   #$0004
         BNE   L0C2F40
         BRL   L0C3E84
L0C2F40  LDA   $FD
         SEC
         SBC   #$0000
         BVS   L0C2F4B
         EOR   #$8000
L0C2F4B  BMI   L0C2F50
         BRL   L0C3E84
L0C2F50  LDA   $E8
         SEC
         SBC   #$0001
         BEQ   L0C2F66
         BVS   L0C2F5D
         EOR   #$8000
L0C2F5D  BPL   L0C2F66
         LDA   $AE
         CMP   #$0001
         BNE   L0C2F8E
L0C2F66  LDX   $DC
         LDA   $DA
         STX   $EA
         ORA   $EA
         BEQ   L0C2F93
         LDX   #$0000
         LDA   #$0003
         PHX
         PHA
         LDX   $DC
         LDA   $DA
         AND   #$000F
         PHA
         TXA
         AND   #$0000
         TAX
         PLA
         JSL   L022171
         BEQ   L0C2F93
         BCC   L0C2F93
L0C2F8E  LDA   #$0000
         BRA   L0C2F96
L0C2F93  LDA   #$0001
L0C2F96  STA   $7E
         LDA   $A8
         CMP   #$FFFF
         BEQ   L0C2FA3
         LDA   $72
         BEQ   L0C2FA6
L0C2FA3  BRL   L0C3881
L0C2FA6  LDA   $A4
         CMP   #$0000
         BEQ   L0C2FB0
         BRL   L0C304E
L0C2FB0  LDA   $A6
         CMP   #$0000
         BEQ   L0C2FBA
         BRL   L0C304E
L0C2FBA  PEI   $A8
         JSL   L060C4E
         PLY
         STX   $A6
         STA   $A4
         LDY   #$0005
         LDA   [$A4],Y
         AND   #$00FF
         LDX   #$0000
         STX   $EE
         ASL
         ROL   $EE
         ASL
         ROL   $EE
         ASL
         ROL   $EE
         ASL
         ROL   $EE
         LDX   $EE
         PHX
         PHA
         LDX   L030108
         LDA   L030106
         JSL   L021F00
         PLA
         PLX
         STX   $A2
         STA   $A0
         LDY   #$0004
         LDA   [$A4],Y
         AND   #$00FF
         PHA
         LDA   #$001A
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L050B05
         LDX   #^L050B05
         JSL   L021F00
         PLA
         PLX
         STX   $9E
         STA   $9C
         LDA   [$9C]
         AND   #$00FF
         PHA
         LDA   #$000C
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L0570F2
         LDX   #^L0570F2
         JSL   L021F00
         PLA
         PLX
         STX   $9A
         STA   $98
         LDY   #$0002
         LDA   [$9C],Y
         AND   #$0003
         STA   $96
         LDY   #$0004
         LDA   [$9C],Y
         STA   $92
L0C304E  LDX   $9A
         LDA   $98
         STX   $E0
         STA   $DE
         PEI   $C2
         PEI   $A6
         PEI   $A4
         JSL   L062655
         PLY
         PLY
         PLY
         STA   $F5
         TAY
         BEQ   L0C3070
         DEC   $F5
         LDA   $F5
         STA   $8C
         BRA   L0C3083
L0C3070  LDA   $96
         CMP   #$0001
         BNE   L0C3080
         STZ   $F5
         LDA   #$FFFF
         STA   $8C
         BRA   L0C3083
L0C3080  BRL   L0C3881
L0C3083  LDA   $F5
         ASL
         PHA
         LDY   #$0002
         LDA   [$A0],Y
         AND   #$00FF
         CLC
         JSL   L0222DF
         PLA
         AND   #$0003
         PHA
         LDA   $F7
         PLX
         STX   $EE
         SEC
         SBC   $EE
         AND   #$0003
         STA   $94
         STZ   $80
         LDY   #$0003
         LDA   [$A0],Y
         AND   #$00FF
         STA   $E6
         CMP   #$00FF
         BNE   L0C30EE
         LDX   $DC
         LDA   $DA
         STX   $EA
         ORA   $EA
         BNE   L0C30C8
         LDA   $70
         CMP   #$0001
         BNE   L0C30CB
L0C30C8  BRL   L0C3881
L0C30CB  LDA   #$0001
         STA   $72
         LDA   $96
         CMP   #$0001
         BNE   L0C30E6
         LDA   $94
         AND   #$0001
         TAY
         BEQ   L0C30E6
         LDA   #$0003
         STA   $E8
         BRA   L0C30EB
L0C30E6  LDA   #$0004
         STA   $E8
L0C30EB  BRL   L0C31DA
L0C30EE  LDA   $96
         CMP   #$0001
         BEQ   L0C30F8
         BRL   L0C31D0
L0C30F8  LDA   $7E
         BNE   L0C3116
         LDX   $DC
         LDA   $DA
         STX   $EA
         ORA   $EA
         BEQ   L0C3116
         LDA   $8C
         SEC
         SBC   #$0000
         BVS   L0C3111
         EOR   #$8000
L0C3111  BPL   L0C3116
         BRL   L0C31D0
L0C3116  LDA   $7E
         BEQ   L0C3143
         LDA   $70
         CMP   #$0002
         BEQ   L0C3143
         LDA   $8C
         SEC
         SBC   #$0000
         BVS   L0C312C
         EOR   #$8000
L0C312C  BPL   L0C313D
         LDA   $94
         AND   #$0001
         TAY
         BEQ   L0C313D
         LDA   #$0002
         STA   $E8
         BRA   L0C3140
L0C313D  BRL   L0C3881
L0C3140  BRL   L0C31CE
L0C3143  LDA   $70
         CMP   #$0001
         BNE   L0C314D
         BRL   L0C31CB
L0C314D  LDX   $DC
         LDA   $DA
         STX   $EA
         ORA   $EA
         BEQ   L0C315A
         BRL   L0C31CB
L0C315A  LDA   $94
         AND   #$0001
         TAY
         BEQ   L0C317B
         LDA   $8C
         SEC
         SBC   #$0000
         BVS   L0C316D
         EOR   #$8000
L0C316D  BPL   L0C3176
         LDA   #$0004
         STA   $E8
         BRA   L0C3179
L0C3176  BRL   L0C3881
L0C3179  BRA   L0C31C9
L0C317B  LDA   #$0001
         STA   $72
         LDA   $8C
         SEC
         SBC   #$0000
         BVS   L0C318B
         EOR   #$8000
L0C318B  BMI   L0C318F
         STZ   $8C
L0C318F  LDY   #$000E
         LDA   [$A4],Y
         LSR
         LSR
         LSR
         LSR
         LSR
         AND   #$0003
         STA   $80
         LDA   $F5
         ASL
         PHA
         LDA   $E6
         CLC
         JSL   L0222DF
         PLA
         AND   #$0003
         STA   $E6
         CMP   $F7
         BEQ   L0C31C0
         LDA   $F7
         SEC
         SBC   #$0001
         AND   #$0003
         CMP   $E6
         BNE   L0C31C4
L0C31C0  STZ   $E8
         BRA   L0C31C9
L0C31C4  LDA   #$0001
         STA   $E8
L0C31C9  BRA   L0C31CE
L0C31CB  BRL   L0C3881
L0C31CE  BRA   L0C31DA
L0C31D0  LDA   $96
         CMP   #$0000
         BEQ   L0C31DA
         BRL   L0C3881
L0C31DA  LDA   $8C
         LDX   #$0000
         PHX
         PHA
         LDA   $A0
         CLC
         ADC   #$000C
         LDX   $A2
         BCC   L0C31EC
         INX
L0C31EC  JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         AND   #$00FF
         STA   $90
         LDA   $FD
         SEC
         SBC   #$0009
         BEQ   L0C320E
         BVS   L0C320A
         EOR   #$8000
L0C320A  BPL   L0C320E
         DEC   $FD
L0C320E  LDA   $E8
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $FD
         PHA
         LDA   #$000A
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #$0004
         PHA
         LDY   #$000A
         LDA   [$DE],Y
         AND   #$00FF
         SEC
         JSL   L0222DF
         PLA
         AND   #$000F
         PHA
         LDA   #$006E
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L05733C
         LDX   #^L05733C
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STX   $D0
         STA   $CE
         LDY   #$0001
         LDA   [$CE],Y
         AND   #$00FF
         BNE   L0C3274
         BRL   L0C383B
L0C3274  LDA   $92
         STA   $F5
         LDA   [$DE]
         PHA
         LDA   #$01BE
         PLX
         STX   $EE
         CLC
         ADC   $EE
         STA   $E6
         LDY   #$0002
         LDA   [$DE],Y
         STA   $CC
         LDA   $F5
         AND   #$0008
         TAY
         BEQ   L0C329D
         LDA   $94
         AND   #$0001
         TAY
         BNE   L0C32A2
L0C329D  LDA   #$0000
         BRA   L0C32A5
L0C32A2  LDA   #$0001
L0C32A5  STA   $7C
         TAY
         BEQ   L0C32D8
         LDA   #$0000
         STA   $7A
         STA   $74
         STA   $76
         INC   $E6
         LDA   $CC
         CLC
         ADC   #$0002
         STA   $CC
         LDY   #$0006
         LDA   [$DE],Y
         AND   #$00FF
         STA   $C8
         STA   $88
         LDY   #$0007
         LDA   [$DE],Y
         AND   #$00FF
         STA   $C6
         STA   $86
         BRL   L0C33F6
L0C32D8  LDA   $F5
         AND   #$0010
         TAY
         BEQ   L0C32E7
         LDA   $94
         CMP   #$0000
         BEQ   L0C32EC
L0C32E7  LDA   #$0000
         BRA   L0C32EF
L0C32EC  LDA   #$0001
L0C32EF  STA   $7A
         LDA   $7A
         BNE   L0C3305
         LDA   $90
         AND   #$0080
         TAY
         BEQ   L0C3305
         LDA   $F5
         AND   #$0020
         TAY
         BNE   L0C330A
L0C3305  LDA   #$0000
         BRA   L0C330D
L0C330A  LDA   #$0001
L0C330D  STA   $76
         TAY
         BEQ   L0C335D
         STZ   $74
         LDY   #$0008
         LDA   [$DE],Y
         AND   #$00FF
         STA   $C8
         STA   $88
         LDY   #$0009
         LDA   [$DE],Y
         AND   #$00FF
         STA   $C6
         STA   $86
         INC   $E6
         LDA   $CC
         CLC
         ADC   #$0002
         STA   $CC
         LDA   $F5
         AND   #$0008
         TAY
         BEQ   L0C3348
         INC   $E6
         LDA   $CC
         CLC
         ADC   #$0002
         STA   $CC
L0C3348  LDA   $F5
         AND   #$0010
         TAY
         BEQ   L0C335A
         INC   $E6
         LDA   $CC
         CLC
         ADC   #$0002
         STA   $CC
L0C335A  BRL   L0C33F6
L0C335D  LDY   #$0004
         LDA   [$DE],Y
         AND   #$00FF
         STA   $C8
         STA   $88
         LDY   #$0005
         LDA   [$DE],Y
         AND   #$00FF
         STA   $C6
         STA   $86
         LDA   $7A
         BEQ   L0C33A1
         STZ   $74
         LDA   $F5
         AND   #$0008
         TAY
         BEQ   L0C3395
         LDA   $E6
         CLC
         ADC   #$0002
         STA   $E6
         LDA   $CC
         CLC
         ADC   #$0004
         STA   $CC
         BRA   L0C339F
L0C3395  INC   $E6
         LDA   $CC
         CLC
         ADC   #$0002
         STA   $CC
L0C339F  BRA   L0C33F6
L0C33A1  LDA   $F5
         AND   #$0004
         TAY
         BEQ   L0C33B1
         LDA   $90
         AND   #$0040
         TAY
         BNE   L0C33B6
L0C33B1  LDA   #$0000
         BRA   L0C33B9
L0C33B6  LDA   #$0001
L0C33B9  STA   $74
         TAY
         BEQ   L0C33F6
         LDA   $CC
         CLC
         ADC   #$0002
         STA   $CC
         LDA   $F5
         AND   #$0008
         TAY
         BEQ   L0C33D6
         LDA   $CC
         CLC
         ADC   #$0002
         STA   $CC
L0C33D6  LDA   $F5
         AND   #$0010
         TAY
         BEQ   L0C33E6
         LDA   $CC
         CLC
         ADC   #$0002
         STA   $CC
L0C33E6  LDA   $F5
         AND   #$0020
         TAY
         BEQ   L0C33F6
         LDA   $CC
         CLC
         ADC   #$0002
         STA   $CC
L0C33F6  LDA   $FD
         SEC
         SBC   #$0006
         BVS   L0C3401
         EOR   #$8000
L0C3401  BMI   L0C3406
         BRL   L0C34F3
L0C3406  STZ   $84
         STZ   $AA
         LDY   #$000A
         LDA   [$DE],Y
         AND   #$00FF
         AND   #$000F
         STA   $8A
         LDA   $7C
         BEQ   L0C3456
         PEI   $E6
         JSL   L0B225C
         PLY
         STX   $E4
         STA   $E2
         LDA   $94
         CMP   #$0001
         BNE   L0C3453
         PEI   $C6
         PEI   $C8
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDX   L03027C
         LDA   L03027A
         STX   $E4
         STA   $E2
L0C3453  BRL   L0C34F0
L0C3456  LDA   $7A
         BNE   L0C345E
         LDA   $74
         BNE   L0C349E
L0C345E  PEI   $E6
         JSL   L0B225C
         PLY
         STX   $E4
         STA   $E2
         LDA   $76
         BEQ   L0C349B
         LDA   $90
         AND   #$0040
         TAY
         BEQ   L0C349B
         PEI   $C6
         PEI   $C8
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDX   L03027C
         LDA   L03027A
         STX   $E4
         STA   $E2
L0C349B  BRL   L0C34F0
L0C349E  PEI   $CC
         JSL   L0B24B1
         PLY
         TAY
         BEQ   L0C34B5
         PEI   $CC
         JSL   L0B25FC
         PLY
         STX   $E4
         STA   $E2
         BRA   L0C34F0
L0C34B5  PEI   $E6
         JSL   L0B225C
         PLY
         STX   $D4
         STA   $D2
         LDA   $F5
         AND   #$0004
         TAY
         BEQ   L0C34E9
         PEI   $C6
         PEI   $C8
         PEI   $CC
         JSL   L0B25FC
         PLY
         STX   $E4
         STA   $E2
         PHX
         PHA
         PEI   $D4
         PEI   $D2
         JSL   L0C1414
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C34E9  PEI   $CC
         JSL   L0B2667
         PLY
L0C34F0  BRL   L0C36C2
L0C34F3  LDA   $74
         BEQ   L0C34F9
         INC   $CC
L0C34F9  LDA   $FD
         SEC
         SBC   #$0003
         BVS   L0C3504
         EOR   #$8000
L0C3504  BPL   L0C353C
         INC   $CC
         LDA   #$0001
         STA   $AA
         LDA   $F5
         AND   #$0080
         TAY
         BEQ   L0C3521
         LDA   $7C
         BNE   L0C3521
         LDA   $7A
         BNE   L0C3521
         LDA   $76
         BEQ   L0C3526
L0C3521  LDA   #$0000
         BRA   L0C3529
L0C3526  LDA   #$0001
L0C3529  STA   $78
         LDA   #L0572FC
         LDX   #^L0572FC
         STX   $D8
         STA   $D6
         LDA   #$0014
         STA   $6E
         BRA   L0C3552
L0C353C  LDA   #$0002
         STA   $AA
         STZ   $78
         LDA   #L0572EC
         LDX   #^L0572EC
         STX   $D8
         STA   $D6
         LDA   #$0010
         STA   $6E
L0C3552  LDA   #$0005
         PHA
         LDA   #$0001
         PHA
         LDA   $6E
         SEC
         JSL   L0222DF
         LDA   $6E
         PHA
         LDA   $88
         SEC
         JSL   L0220A5
         PLA
         PLX
         STX   $EE
         CLC
         ADC   $EE
         SEC
         JSL   L0222DF
         PLA
         STA   $C8
         LDA   #$0005
         PHA
         LDA   #$0001
         PHA
         LDA   $6E
         SEC
         JSL   L0222DF
         LDA   $6E
         PHA
         LDA   $86
         SEC
         JSL   L0220A5
         PLA
         PLX
         STX   $EE
         CLC
         ADC   $EE
         SEC
         JSL   L0222DF
         PLA
         STA   $C6
         LDY   #$000A
         LDA   [$DE],Y
         AND   #$00FF
         AND   #$000F
         LDX   #$0000
         TAY
         BPL   L0C35B4
         DEX
L0C35B4  PHX
         PHA
         LDX   $D8
         LDA   $D6
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         AND   #$00FF
         STA   $8A
         PEI   $CC
         JSL   L0B24B1
         PLY
         STA   $6C
         TAY
         BEQ   L0C35E4
         PEI   $CC
         JSL   L0B25FC
         PLY
         STX   $E4
         STA   $E2
         BRA   L0C3623
L0C35E4  PEI   $E6
         JSL   L0B225C
         PLY
         STX   $D4
         STA   $D2
         PEI   $D8
         PEI   $D6
         PEI   $C6
         LDA   $C8
         ASL
         PHA
         PEI   $86
         LDA   $88
         ASL
         PHA
         PEI   $CC
         JSL   L0B25FC
         PLY
         STX   $E4
         STA   $E2
         PHX
         PHA
         PEI   $D4
         PEI   $D2
         JSL   L080421
         TAY
         TSC
         CLC
         ADC   #$0014
         TCS
         TYA
         PEI   $CC
         JSL   L0B2667
         PLY
L0C3623  LDA   $7C
         BEQ   L0C362E
         LDA   $94
         CMP   #$0001
         BEQ   L0C3658
L0C362E  LDA   $76
         BEQ   L0C363A
         LDA   $90
         AND   #$0040
         TAY
         BNE   L0C3658
L0C363A  LDA   $78
         BEQ   L0C3646
         LDA   $F5
         AND   #$0100
         TAY
         BNE   L0C3658
L0C3646  LDA   $74
         BNE   L0C364D
         BRL   L0C36C0
L0C364D  LDA   $F5
         AND   #$0004
         TAY
         BNE   L0C3658
         BRL   L0C36C0
L0C3658  LDA   $74
         BEQ   L0C3660
         LDA   $6C
         BNE   L0C36A8
L0C3660  LDA   $C8
         CLC
         ADC   #$0007
         AND   #$FFF8
         STA   $E6
         LDA   $74
         BNE   L0C3698
         LDA   $C6
         PHA
         LDA   $E6
         SEC
         JSL   L0220A5
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         LDX   L03027C
         LDA   L03027A
         STX   $E4
         STA   $E2
L0C3698  PEI   $C6
         PEI   $E6
         PEI   $E4
         PEI   $E2
         JSL   L080C01
         PLY
         PLY
         PLY
         PLY
L0C36A8  LDA   $C8
         SEC
         SBC   #$0001
         AND   #$0007
         PHA
         LDA   #$0007
         PLX
         STX   $EE
         SEC
         SBC   $EE
         ASL
         STA   $84
         BRA   L0C36C2
L0C36C0  STZ   $84
L0C36C2  LDY   #$0001
         LDA   [$CE],Y
         AND   #$00FF
         STA   $E6
         LDA   #$0003
         PHA
         LDA   $90
         SEC
         JSL   L0222DF
         PLA
         AND   #$0007
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $AA
         ASL
         ASL
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05730C
         LDX   #^L05730C
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         PHA
         LDA   $E6
         PLX
         STX   $EE
         CLC
         ADC   $EE
         STA   $E6
         PEA   $0087
         PEI   $E6
         JSL   L020493
         PLY
         PLY
         SEP   #$20
         STA   $B7
         REP   #$20
         LDA   $C6
         SEC
         SBC   #$0001
         PHA
         LDA   $E6
         PLX
         STX   $EE
         SEC
         SBC   $EE
         PHA
         PEA   $0000
         JSL   L0204BA
         PLY
         PLY
         SEP   #$20
         STA   $B6
         REP   #$20
         LDA   [$CE]
         AND   #$00FF
         STA   $E6
         LDA   $90
         AND   #$0007
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $AA
         ASL
         ASL
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05730C
         LDX   #^L05730C
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         PHA
         LDA   $E6
         PLX
         STX   $EE
         CLC
         ADC   $EE
         STA   $E6
         LDA   $C4
         CMP   #$0001
         BNE   L0C3790
         LDA   $E6
         SEC
         SBC   #$0064
         STA   $E6
         BRA   L0C379C
L0C3790  LDA   $C4
         BEQ   L0C379C
         LDA   $E6
         CLC
         ADC   #$0064
         STA   $E6
L0C379C  PEA   $00DF
         LDA   $E6
         CLC
         ADC   $C8
         PHA
         PEA   $0000
         JSL   L0204E3
         PLY
         PLY
         PLY
         SEP   #$20
         STA   $B5
         REP   #$20
         AND   #$00FF
         BNE   L0C37BC
         BRA   L0C383B
L0C37BC  PEA   $00DF
         LDA   $E6
         SEC
         SBC   $C8
         CLC
         ADC   #$0001
         PHA
         PEA   $0000
         JSL   L0204E3
         PLY
         PLY
         PLY
         SEP   #$20
         STA   $B4
         REP   #$20
         AND   #$00FF
         BEQ   L0C37F2
         LDA   $B4
         AND   #$00FF
         CMP   #$00DF
         BNE   L0C37EC
         BRA   L0C383B
         BRA   L0C37F0
L0C37EC  LDA   $84
         STA   $F5
L0C37F0  BRA   L0C3806
L0C37F2  LDA   $C8
         SEC
         SBC   $E6
         SEC
         SBC   #$0001
         PHA
         LDA   $84
         PLX
         STX   $EE
         CLC
         ADC   $EE
         STA   $F5
L0C3806  PEI   $8A
         PEA   $0070
         LDA   $C8
         CLC
         ADC   #$0007
         AND   #$FFF8
         PHA
         PEA   $0000
         PEI   $F5
         PEA   $0000
         TDC
         CLC
         ADC   #$00B4
         PHA
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C383B  LDA   $80
         BEQ   L0C3881
         STZ   $80
         LDA   $8C
         BEQ   L0C384A
         LDA   #$0000
         BRA   L0C384D
L0C384A  LDA   #$0001
L0C384D  LDX   #$0000
         PHX
         PHA
         LDA   $A0
         CLC
         ADC   #$000C
         LDX   $A2
         BCC   L0C385D
         INX
L0C385D  JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         AND   #$00FF
         STA   $90
         LDA   $E8
         CMP   #$0001
         BNE   L0C3879
         STZ   $E8
         BRA   L0C387E
L0C3879  LDA   #$0001
         STA   $E8
L0C387E  BRL   L0C320E
L0C3881  LDA   $58
         BEQ   L0C38D1
         LDA   $B0
         STA   $FD
         SEC
         SBC   #$0009
         BEQ   L0C3896
         BVS   L0C3894
         EOR   #$8000
L0C3894  BMI   L0C38D1
L0C3896  LDA   $56
         STA   $E8
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $FD
         PHA
         LDA   #$000A
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056FC6
         LDX   #^L056FC6
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         AND   #$00FF
         STA   $64
         TAY
         BNE   L0C38D4
L0C38D1  BRL   L0C3E77
L0C38D4  LDA   $B2
         STA   $F5
L0C38D8  LDA   #$000A
         PHA
         LDA   $F5
         AND   #$3C00
         CLC
         JSL   L0222DF
         PLA
         CMP   #$000E
         BEQ   L0C38EF
         BRL   L0C3E66
L0C38EF  LDA   #$000E
         PHA
         LDA   $F5
         CLC
         JSL   L0222DF
         LDA   $C2
         PLX
         STX   $EA
         CMP   $EA
         BEQ   L0C3906
         BRL   L0C3E66
L0C3906  PEI   $F5
         JSL   L060C4E
         PLY
         STX   $6A
         STA   $68
         LDY   #$0002
         LDA   [$68],Y
         PHA
         JSL   L060352
         PLY
         STA   $E6
         SEC
         SBC   #$0000
         BVS   L0C3927
         EOR   #$8000
L0C3927  BPL   L0C392C
         BRL   L0C3E13
L0C392C  LDA   $E6
         EOR   #$FFFF
         INC
         SEC
         SBC   #$0001
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056F0E
         LDX   #^L056F0E
         JSL   L021F00
         PLA
         PLX
         STX   $E0
         STA   $DE
         LDA   [$DE]
         AND   #$00FF
         CLC
         ADC   #$013C
         STA   $E6
         LDY   #$0004
         LDA   [$DE],Y
         AND   #$0003
         STA   $60
         LDY   #$0004
         LDA   [$DE],Y
         AND   #$0100
         TAY
         BEQ   L0C397A
         LDA   #$0000
         BRA   L0C397D
L0C397A  LDA   #$0001
L0C397D  STA   $5C
         TAY
         BNE   L0C398F
         LDY   #$0004
         LDA   [$68],Y
         AND   #$00FF
         CMP   #$00FF
         BNE   L0C39AF
L0C398F  LDA   $FD
         CMP   #$0009
         BNE   L0C39AF
         STZ   $6E
         LDY   #$0002
         LDA   [$DE],Y
         AND   #$00FF
         STA   $C8
         LDY   #$0003
         LDA   [$DE],Y
         AND   #$00FF
         STA   $C6
         BRL   L0C3A78
L0C39AF  LDA   #$0001
         PHA
         LDA   $E8
         SEC
         JSL   L0222DF
         LDA   #$0003
         PHA
         LDA   $FD
         SEC
         JSL   L021F1A
         PLY
         ASL
         PLX
         STX   $EE
         CLC
         ADC   $EE
         STA   $AA
         LDA   $AA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056F9A
         LDX   #^L056F9A
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         AND   #$00FF
         STA   $6E
         LDA   $5C
         BNE   L0C3A1C
         LDA   #$0008
         PHA
         LDY   #$0004
         LDA   [$68],Y
         AND   #$00FF
         CLC
         ADC   #$0001
         PHA
         PEA   $0060
         JSL   L0204BA
         PLY
         PLY
         PHA
         LDA   $6E
         SEC
         JSL   L0220A5
         PLA
         SEC
         JSL   L0222DF
         PLA
         STA   $6E
L0C3A1C  LDA   #$0005
         PHA
         LDA   #$0001
         PHA
         LDA   $6E
         SEC
         JSL   L0222DF
         LDA   $6E
         PHA
         LDY   #$0002
         LDA   [$DE],Y
         AND   #$00FF
         SEC
         JSL   L0220A5
         PLA
         PLX
         STX   $EE
         CLC
         ADC   $EE
         SEC
         JSL   L0222DF
         PLA
         STA   $C8
         LDA   #$0005
         PHA
         LDA   #$0001
         PHA
         LDA   $6E
         SEC
         JSL   L0222DF
         LDA   $6E
         PHA
         LDY   #$0003
         LDA   [$DE],Y
         AND   #$00FF
         SEC
         JSL   L0220A5
         PLA
         PLX
         STX   $EE
         CLC
         ADC   $EE
         SEC
         JSL   L0222DF
         PLA
         STA   $C6
L0C3A78  LDA   $60
         CMP   #$0000
         BEQ   L0C3A84
         LDA   #$0000
         BRA   L0C3A87
L0C3A84  LDA   #$0001
L0C3A87  STA   $52
         TAY
         BEQ   L0C3A96
         LDA   $F9
         CLC
         ADC   $FB
         AND   #$0001
         STA   $54
L0C3A96  LDA   $60
         CMP   #$0003
         BNE   L0C3AA9
         STZ   $5E
         LDA   #$0000
         STA   $BA
         STA   $50
         BRL   L0C3BC6
L0C3AA9  LDY   #$0006
         LDA   [$68],Y
         LDX   #$0000
         STX   $EE
         ASL
         ROL   $EE
         ASL
         ROL   $EE
         ASL
         ROL   $EE
         ASL
         ROL   $EE
         LDX   $EE
         PHX
         PHA
         LDX   L0303E3
         LDA   L0303E1
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDY   #$0008
         LDA   [$EA],Y
         XBA
         AND   #$00FF
         LSR
         LSR
         AND   #$0003
         STA   $62
         AND   #$0001
         PHA
         LDA   $F7
         AND   #$0001
         PLX
         STX   $EA
         CMP   $EA
         BEQ   L0C3B52
         LDA   $60
         CMP   #$0002
         BNE   L0C3B01
         LDA   #$0001
         STA   $5E
         BRA   L0C3B06
L0C3B01  LDA   #$0002
         STA   $5E
L0C3B06  LDA   $52
         BEQ   L0C3B36
         LDA   $E8
         BEQ   L0C3B1A
         LDA   $E8
         CMP   #$0003
         BEQ   L0C3B1A
         LDA   #$0000
         BRA   L0C3B1D
L0C3B1A  LDA   #$0001
L0C3B1D  STA   $BA
         LDA   $54
         STA   $50
         TAY
         BNE   L0C3B34
         LDA   $BA
         BEQ   L0C3B2F
         LDA   #$0000
         BRA   L0C3B32
L0C3B2F  LDA   #$0001
L0C3B32  STA   $BA
L0C3B34  BRA   L0C3B4F
L0C3B36  STZ   $50
         LDA   $F7
         CLC
         ADC   #$0001
         AND   #$0003
         CMP   $62
         BEQ   L0C3B4A
         LDA   #$0000
         BRA   L0C3B4D
L0C3B4A  LDA   #$0001
L0C3B4D  STA   $BA
L0C3B4F  BRL   L0C3BC6
L0C3B52  LDA   $60
         SEC
         SBC   #$0002
         BVS   L0C3B5D
         EOR   #$8000
L0C3B5D  BMI   L0C3B74
         LDA   $60
         CMP   #$0001
         BNE   L0C3B6C
         LDA   $62
         CMP   $F7
         BNE   L0C3B74
L0C3B6C  LDA   $52
         BEQ   L0C3B78
         LDA   $54
         BEQ   L0C3B78
L0C3B74  STZ   $5E
         BRA   L0C3B7D
L0C3B78  LDA   #$0001
         STA   $5E
L0C3B7D  LDA   $52
         BEQ   L0C3B8E
         LDA   $E8
         SEC
         SBC   #$0002
         BVS   L0C3B8C
         EOR   #$8000
L0C3B8C  BPL   L0C3B93
L0C3B8E  LDA   #$0000
         BRA   L0C3B96
L0C3B93  LDA   #$0001
L0C3B96  STA   $50
         LDY   #$0004
         LDA   [$DE],Y
         AND   #$0010
         TAY
         BEQ   L0C3BBC
         LDA   $C4
         CMP   #$0002
         BEQ   L0C3BBC
         LDA   $C4
         BNE   L0C3BC1
         LDA   $E8
         CMP   #$0001
         BEQ   L0C3BBC
         LDA   $E8
         CMP   #$0002
         BNE   L0C3BC1
L0C3BBC  LDA   #$0000
         BRA   L0C3BC4
L0C3BC1  LDA   #$0001
L0C3BC4  STA   $BA
L0C3BC6  LDA   $E6
         CLC
         ADC   $5E
         STA   $E6
         STZ   $C0
         LDA   $6E
         BNE   L0C3BE1
         PEI   $E6
         JSL   L0B225C
         PLY
         STX   $E4
         STA   $E2
         BRL   L0C3CC0
L0C3BE1  LDA   $BA
         BEQ   L0C3BFB
         LDA   $C8
         SEC
         SBC   #$0001
         AND   #$0007
         PHA
         LDA   #$0007
         PLX
         STX   $EE
         SEC
         SBC   $EE
         ASL
         STA   $C0
L0C3BFB  LDA   $5C
         BEQ   L0C3C3E
         LDA   $5E
         PHA
         LDA   #$0006
         SEC
         JSL   L0220A5
         LDY   #$0001
         LDA   [$DE],Y
         AND   #$00FF
         PHA
         LDA   #$011A
         PLX
         STX   $EE
         CLC
         ADC   $EE
         PLX
         STX   $EE
         CLC
         ADC   $EE
         CLC
         ADC   $AA
         STA   $CC
         PHA
         JSL   L0B24B1
         PLY
         TAY
         BEQ   L0C3C3E
         PEI   $CC
         JSL   L0B25FC
         PLY
         STX   $E4
         STA   $E2
         BRL   L0C3CC0
L0C3C3E  PEI   $E6
         JSL   L0B225C
         PLY
         STX   $D4
         STA   $D2
         LDA   $5C
         BEQ   L0C3C5A
         PEI   $CC
         JSL   L0B25FC
         PLY
         STX   $E4
         STA   $E2
         BRA   L0C3C64
L0C3C5A  LDX   L03027C
         LDA   L03027A
         STX   $E4
         STA   $E2
L0C3C64  LDA   $AA
         LSR
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05758E
         LDX   #^L05758E
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDY   #$0002
         LDA   [$EA],Y
         TAX
         LDA   [$EA]
         PHX
         PHA
         PEI   $C6
         LDA   $C8
         ASL
         PHA
         LDY   #$0003
         LDA   [$DE],Y
         AND   #$00FF
         PHA
         LDY   #$0002
         LDA   [$DE],Y
         AND   #$00FF
         ASL
         PHA
         PEI   $E4
         PEI   $E2
         PEI   $D4
         PEI   $D2
         JSL   L080421
         TAY
         TSC
         CLC
         ADC   #$0014
         TCS
         TYA
         LDA   $5C
         BEQ   L0C3CC0
         PEI   $CC
         JSL   L0B2667
         PLY
L0C3CC0  LDA   $BA
         BNE   L0C3CCB
         LDA   $50
         BNE   L0C3CCB
         BRL   L0C3D3F
L0C3CCB  LDA   $C8
         CLC
         ADC   #$0007
         AND   #$FFF8
         STA   $E6
         SEC
         LDA   $E2
         SBC   L03027A
         BNE   L0C3CE5
         LDA   $E4
         SBC   L03027C
         BRA   L0C3CEC
L0C3CE5  LDA   $E4
         SBC   L03027C
         REP   #$02
L0C3CEC  BEQ   L0C3D17
         LDA   $C6
         PHA
         LDA   $E6
         SEC
         JSL   L0220A5
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         LDX   L03027C
         LDA   L03027A
         STX   $E4
         STA   $E2
L0C3D17  LDA   $50
         BEQ   L0C3D2B
         PEI   $C6
         PEI   $E6
         PEI   $E4
         PEI   $E2
         JSL   L080C71
         PLY
         PLY
         PLY
         PLY
L0C3D2B  LDA   $BA
         BEQ   L0C3D3F
         PEI   $C6
         PEI   $E6
         PEI   $E4
         PEI   $E2
         JSL   L080C01
         PLY
         PLY
         PLY
         PLY
L0C3D3F  LDA   #$0001
         PHA
         LDA   $C6
         SEC
         JSL   L0222DF
         PLA
         CLC
         ADC   #$002F
         SEP   #$20
         STA   $B7
         REP   #$20
         LDA   $C6
         AND   #$0001
         TAY
         BEQ   L0C3D62
         LDA   #$0000
         BRA   L0C3D65
L0C3D62  LDA   #$0001
L0C3D65  PHA
         LDA   #$0001
         PHA
         LDA   $C6
         SEC
         JSL   L0222DF
         LDA   #$002F
         PLX
         STX   $EE
         SEC
         SBC   $EE
         PLX
         STX   $EE
         CLC
         ADC   $EE
         SEP   #$20
         STA   $B6
         REP   #$20
         LDA   $64
         CLC
         ADC   $C8
         PHA
         PEA   $00DF
         JSL   L020493
         PLY
         PLY
         SEP   #$20
         STA   $B5
         REP   #$20
         LDA   $64
         SEC
         SBC   $C8
         CLC
         ADC   #$0001
         PHA
         PEA   $0000
         JSL   L0204BA
         PLY
         PLY
         SEP   #$20
         STA   $B4
         REP   #$20
         AND   #$00FF
         BEQ   L0C3DC7
         LDA   $BA
         BEQ   L0C3DC3
         LDA   $C0
         STA   $E6
         BRA   L0C3DC5
L0C3DC3  STZ   $E6
L0C3DC5  BRA   L0C3DDB
L0C3DC7  LDA   $C8
         SEC
         SBC   $64
         SEC
         SBC   #$0001
         PHA
         PEI   $C0
         JSL   L0204BA
         PLY
         PLY
         STA   $E6
L0C3DDB  PEA   $000A
         PEA   $0070
         LDA   $C8
         CLC
         ADC   #$0007
         AND   #$FFF8
         PHA
         PEA   $0000
         PEI   $E6
         PEA   $0000
         TDC
         CLC
         ADC   #$00B4
         PHA
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
         BRA   L0C3E66
L0C3E13  STZ   $BC
         LDA   $64
         SEP   #$20
         STA   $66
         REP   #$20
         LDA   #$002F
         SEP   #$20
         STA   $67
         REP   #$20
         LDX   #$0000
         TDC
         CLC
         ADC   #$0066
         STX   $D0
         STA   $CE
         LDA   $E6
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056D10
         LDX   #^L056D10
         JSL   L021F00
         PLA
         PLX
         STX   $E0
         STA   $DE
         LDA   [$DE]
         AND   #$00FF
         CLC
         ADC   #$0168
         STA   $E6
         LDA   #$0001
         STA   $5A
         BRL   L0C29E0
L0C3E66  PEI   $F5
         JSL   L060D39
         PLY
         STA   $F5
         CMP   #$FFFE
         BEQ   L0C3E77
         BRL   L0C38D8
L0C3E77  LDX   $DC
         LDA   $DA
         STX   $EA
         ORA   $EA
         BEQ   L0C3E84
         BRL   L0C2822
L0C3E84  LDA   $40
         BNE   L0C3E8B
         BRL   L0C4530
L0C3E8B  STZ   $48
         STZ   $4A
         LDA   $B0
         CLC
         ADC   #$0003
         STA   $FD
         LDA   #$0003
         PHA
         LDA   $FD
         SEC
         JSL   L021F1A
         PLY
         STA   $B0
         LDA   $B2
         STA   $F5
L0C3EA9  LDA   #$000A
         PHA
         LDA   $F5
         AND   #$3C00
         CLC
         JSL   L0222DF
         PLA
         CMP   #$000F
         BEQ   L0C3EC0
         BRL   L0C4497
L0C3EC0  LDA   #$000E
         PHA
         LDA   $F5
         CLC
         JSL   L0222DF
         PLA
         STA   $E8
         PEI   $F5
         JSL   L060C4E
         PLY
         STX   $4E
         STA   $4C
         LDY   #$0002
         LDA   [$4C],Y
         AND   #$007F
         STA   $E6
         CMP   #$0064
         BCS   L0C3EED
         LDA   #$0000
         BRA   L0C3EF0
L0C3EED  LDA   #$0001
L0C3EF0  STA   $3E
         TAY
         BEQ   L0C3F1A
         LDA   $FD
         SEC
         SBC   #$0003
         BVS   L0C3F00
         EOR   #$8000
L0C3F00  BPL   L0C3F17
         LDA   $FD
         SEC
         SBC   #$0009
         BEQ   L0C3F11
         BVS   L0C3F0F
         EOR   #$8000
L0C3F0F  BMI   L0C3F17
L0C3F11  LDA   $E8
         CMP   $C2
         BEQ   L0C3F1A
L0C3F17  BRL   L0C4497
L0C3F1A  STZ   $3C
         LDA   $E6
         CMP   #$0000
         BEQ   L0C3F31
         LDA   $E6
         CMP   #$0002
         BEQ   L0C3F31
         LDA   $E6
         CMP   #$0065
         BNE   L0C3F36
L0C3F31  STZ   $E6
         BRL   L0C40AC
L0C3F36  LDA   $E6
         CMP   #$0006
         BEQ   L0C3F44
         LDA   $E6
         CMP   #$0007
         BNE   L0C3F4C
L0C3F44  LDA   #$0002
         STA   $E6
         BRL   L0C40AC
L0C3F4C  LDA   $E6
         CMP   #$0028
         BNE   L0C3F60
         LDA   #$0001
         STA   $3C
         LDA   #$0003
         STA   $E6
         BRL   L0C40AC
L0C3F60  LDA   $E6
         CMP   #$0064
         BEQ   L0C3F6A
         BRL   L0C4086
L0C3F6A  PEA   $FF82
         JSL   L060352
         PLY
         EOR   #$FFFF
         INC
         SEC
         SBC   #$0001
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L056F0E
         LDX   #^L056F0E
         JSL   L021F00
         PLA
         PLX
         STX   $E0
         STA   $DE
         LDA   [$DE]
         AND   #$00FF
         CLC
         ADC   #$013D
         PHA
         JSL   L0B225C
         PLY
         STX   $E4
         STA   $E2
         LDA   $FD
         SEC
         SBC   #$0003
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L057564
         LDX   #^L057564
         JSL   L021F00
         PLA
         PLX
         STX   $46
         STA   $44
         LDA   #$0005
         PHA
         LDA   #$0001
         PHA
         LDY   #$0004
         LDA   [$44],Y
         SEC
         JSL   L0222DF
         LDY   #$0004
         LDA   [$44],Y
         PHA
         LDY   #$0002
         LDA   [$DE],Y
         AND   #$00FF
         SEC
         JSL   L0220A5
         PLA
         PLX
         STX   $EE
         CLC
         ADC   $EE
         SEC
         JSL   L0222DF
         PLA
         STA   $C8
         LDA   #$0005
         PHA
         LDA   #$0001
         PHA
         LDY   #$0004
         LDA   [$44],Y
         SEC
         JSL   L0222DF
         LDY   #$0004
         LDA   [$44],Y
         PHA
         LDY   #$0003
         LDA   [$DE],Y
         AND   #$00FF
         SEC
         JSL   L0220A5
         PLA
         PLX
         STX   $EE
         CLC
         ADC   $EE
         SEC
         JSL   L0222DF
         PLA
         STA   $C6
         LDA   $FD
         CMP   #$0009
         BEQ   L0C4081
         PEA   ^L05822A
         PEA   L05822A
         PEI   $C6
         LDA   $C8
         ASL
         PHA
         LDY   #$0003
         LDA   [$DE],Y
         AND   #$00FF
         PHA
         LDY   #$0002
         LDA   [$DE],Y
         AND   #$00FF
         ASL
         PHA
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L080421
         TAY
         TSC
         CLC
         ADC   #$0014
         TCS
         TYA
         LDX   L03027C
         LDA   L03027A
         STX   $E4
         STA   $E2
L0C4081  BRL   L0C42E5
         BRA   L0C40AC
L0C4086  LDA   $E6
         CMP   #$0032
         BNE   L0C40A7
         LDA   $FD
         SEC
         SBC   #$0004
         BVS   L0C4098
         EOR   #$8000
L0C4098  BPL   L0C40A2
         LDX   $4E
         LDA   $4C
         STX   $4A
         STA   $48
L0C40A2  BRL   L0C4497
         BRA   L0C40AC
L0C40A7  LDA   #$0001
         STA   $E6
L0C40AC  LDA   $FD
         CMP   #$000C
         BEQ   L0C40B6
         BRL   L0C41C2
L0C40B6  LDA   $3C
         BEQ   L0C40BC
         DEC   $E6
L0C40BC  LDA   $E6
         PHA
         LDA   #$0003
         SEC
         JSL   L0220A5
         PLA
         STA   $E6
         LDY   #$0002
         LDA   [$4C],Y
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         AND   #$00FF
         LSR
         LSR
         LSR
         LSR
         LSR
         STA   $E8
         TAY
         BEQ   L0C40F7
         INC   $E6
         LDA   $E8
         SEC
         SBC   #$0003
         BEQ   L0C40F7
         BVS   L0C40F3
         EOR   #$8000
L0C40F3  BPL   L0C40F7
         INC   $E6
L0C40F7  PEA   $0000
         JSL   L0B24B1
         PLY
         LDA   $E6
         CLC
         ADC   #$015F
         PHA
         JSL   L0B225C
         PLY
         STX   $E4
         STA   $E2
         LDA   $3C
         BEQ   L0C4147
         PEA   ^L056F6A
         PEA   L056F6A
         PEA   $0020
         PEA   $0030
         PEA   $0020
         PEA   $0030
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L080421
         TAY
         TSC
         CLC
         ADC   #$0014
         TCS
         TYA
         LDX   L03027C
         LDA   L03027A
         STX   $E4
         STA   $E2
L0C4147  PEA   $0000
         PEA   $0000
         PEA   $008A
         PEA   $0070
         JSL   L02051C
         AND   #$003F
         PHA
         JSL   L020599
         CLC
         ADC   #$0057
         PHA
         PEA   ^L05630F
         PEA   L05630F
         PEA   $0000
         JSL   L0B25FC
         PLY
         PHX
         PHA
         PEA   $0000
         PEA   $0000
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0810CF
         TAY
         TSC
         CLC
         ADC   #$0020
         TCS
         TYA
         PEA   $0000
         JSL   L0B2667
         PLY
         PEA   $8000
         JSL   L0B0CF6
         PLY
         LDA   L0303D5
         CMP   #$0088
         BEQ   L0C41BF
         PEA   ^L050036
         PEA   L050036
         JSL   L042578
         PLY
         PLY
         TAY
         BNE   L0C41BF
         LDA   #$0088
         STA   L030272
L0C41BF  BRL   L0C4497
L0C41C2  LDA   $3E
         BEQ   L0C41F5
         LDA   $FD
         SEC
         SBC   #$0003
         PHA
         LDA   #$0006
         CLC
         JSL   L0220A5
         PLA
         LDX   #$0000
         PHX
         PHA
         LDA   #L05753A
         LDX   #^L05753A
         JSL   L021F00
         PLA
         PLX
         STX   $46
         STA   $44
         LDY   #$0004
         LDA   [$44],Y
         STA   $42
         BRL   L0C42BF
L0C41F5  LDY   #$0002
         LDA   [$4C],Y
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         AND   #$0001
         TAY
         BEQ   L0C4222
         LDA   $FD
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L057486
         LDX   #^L057486
         JSL   L021F00
         PLA
         PLX
         STX   $46
         STA   $44
         BRA   L0C4267
L0C4222  LDA   $E8
         CMP   $F7
         BEQ   L0C4235
         LDA   $F7
         SEC
         SBC   #$0001
         AND   #$0003
         CMP   $E8
         BNE   L0C4239
L0C4235  STZ   $E8
         BRA   L0C423E
L0C4239  LDA   #$0001
         STA   $E8
L0C423E  LDA   $E8
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   $FD
         ASL
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0574C2
         LDX   #^L0574C2
         JSL   L021F00
         PLA
         PLX
         JSL   L021F00
         PLA
         PLX
         STX   $46
         STA   $44
L0C4267  LDA   #$0008
         PHA
         LDA   $B0
         LDX   #$0000
         PHX
         PHA
         LDA   #L056FA1
         LDX   #^L056FA1
         JSL   L021F00
         PLA
         PLX
         STA   $EA
         STX   $EC
         LDA   [$EA]
         AND   #$00FF
         PHA
         LDY   #$0002
         LDA   [$4C],Y
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         AND   #$00FF
         CLC
         ADC   #$0001
         PHA
         PEA   $0030
         JSL   L0204BA
         PLY
         PLY
         SEC
         JSL   L0220A5
         PLA
         SEC
         JSL   L0222DF
         PEA   $0004
         JSL   L0204BA
         PLY
         PLY
         AND   #$FFFE
         STA   $42
L0C42BF  PEA   $0000
         TDC
         CLC
         ADC   #$00C6
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00C8
         PHA
         PEI   $42
         PEI   $E6
         JSL   L0C2661
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         STX   $E4
         STA   $E2
L0C42E5  JSL   L020564
         STA   $50
         STZ   $C0
         JSL   L020564
         STA   $BA
         TAY
         BEQ   L0C430C
         LDA   $C8
         SEC
         SBC   #$0001
         AND   #$0007
         PHA
         LDA   #$0007
         PLX
         STX   $EE
         SEC
         SBC   $EE
         ASL
         STA   $C0
L0C430C  LDA   #$0001
         PHA
         LDA   $C6
         SEC
         JSL   L0222DF
         LDY   #$0002
         LDA   [$44],Y
         PLX
         STX   $EE
         CLC
         ADC   $EE
         PHA
         PEA   $0087
         JSL   L020493
         PLY
         PLY
         SEP   #$20
         STA   $B7
         REP   #$20
         LDA   $C6
         AND   #$0001
         TAY
         BEQ   L0C433F
         LDA   #$0000
         BRA   L0C4342
L0C433F  LDA   #$0001
L0C4342  PHA
         LDA   #$0001
         PHA
         LDA   $C6
         SEC
         JSL   L0222DF
         LDY   #$0002
         LDA   [$44],Y
         PLX
         STX   $EE
         SEC
         SBC   $EE
         PLX
         STX   $EE
         CLC
         ADC   $EE
         PHA
         PEA   $0000
         JSL   L0204BA
         PLY
         PLY
         STA   $E6
         LDA   $E6
         SEC
         SBC   #$0088
         BVS   L0C4376
         EOR   #$8000
L0C4376  BPL   L0C437B
         BRL   L0C4497
L0C437B  LDA   $E6
         SEP   #$20
         STA   $B6
         REP   #$20
         LDA   [$44]
         CLC
         ADC   $C8
         PHA
         PEA   $00DF
         JSL   L020493
         PLY
         PLY
         STA   $E6
         SEC
         SBC   #$0000
         BVS   L0C439D
         EOR   #$8000
L0C439D  BMI   L0C43A2
         BRL   L0C4497
L0C43A2  LDA   $E6
         SEP   #$20
         STA   $B5
         REP   #$20
         LDA   [$44]
         STA   $E6
         PEA   $00DF
         LDA   $E6
         SEC
         SBC   $C8
         CLC
         ADC   #$0001
         PHA
         PEA   $0000
         JSL   L0204E3
         PLY
         PLY
         PLY
         SEP   #$20
         STA   $B4
         REP   #$20
         AND   #$00FF
         BEQ   L0C43D6
         LDA   $C0
         STA   $E6
         BRA   L0C43EA
L0C43D6  LDA   $C8
         SEC
         SBC   $E6
         SEC
         SBC   #$0001
         PHA
         PEI   $C0
         JSL   L0204BA
         PLY
         PLY
         STA   $E6
L0C43EA  LDA   $B5
         AND   #$00FF
         PHA
         LDA   $B4
         AND   #$00FF
         PLX
         STX   $EA
         SEC
         SBC   $EA
         BVS   L0C4400
         EOR   #$8000
L0C4400  BPL   L0C4405
         BRL   L0C4497
L0C4405  LDA   $C8
         CLC
         ADC   #$0007
         AND   #$FFF8
         STA   $C8
         LDA   $BA
         BNE   L0C4418
         LDA   $50
         BEQ   L0C4441
L0C4418  LDA   $C6
         PHA
         LDA   $C8
         SEC
         JSL   L0220A5
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         LDX   L03027C
         LDA   L03027A
         STX   $E4
         STA   $E2
L0C4441  LDA   $BA
         BEQ   L0C4455
         PEI   $C6
         PEI   $C8
         PEI   $E4
         PEI   $E2
         JSL   L080C01
         PLY
         PLY
         PLY
         PLY
L0C4455  LDA   $50
         BEQ   L0C4469
         PEI   $C6
         PEI   $C8
         PEI   $E4
         PEI   $E2
         JSL   L080C71
         PLY
         PLY
         PLY
         PLY
L0C4469  PEA   $000A
         PEA   $0070
         PEI   $C8
         PEA   $0000
         PEI   $E6
         PEA   $0000
         TDC
         CLC
         ADC   #$00B4
         PHA
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C4497  PEI   $F5
         JSL   L060D39
         PLY
         STA   $F5
         CMP   #$FFFE
         BEQ   L0C44A8
         BRL   L0C3EA9
L0C44A8  SEC
         LDA   $48
         SBC   #$0000
         BNE   L0C44B7
         LDA   $4A
         SBC   #$0000
         BRA   L0C44BE
L0C44B7  LDA   $4A
         SBC   #$0000
         REP   #$02
L0C44BE  BNE   L0C44C3
         BRL   L0C4530
L0C44C3  LDA   $70
         CMP   #$0001
         BNE   L0C44CD
         BRL   L0C4530
L0C44CD  LDA   L030280
         BNE   L0C4530
         LDA   $FD
         SEC
         SBC   #$0003
         STA   $FD
         PEA   $0008
         PEA   $0000
         TDC
         CLC
         ADC   #$0034
         PHA
         LDA   $FD
         ASL
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L05687B
         LDX   #^L05687B
         JSL   L021F00
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $34
         SEP   #$20
         INC   $34
         REP   #$20
         LDA   $FD
         ASL
         ASL
         ASL
         LDX   #$0000
         PHX
         PHA
         LDA   #L0564D3
         LDX   #^L0564D3
         JSL   L021F00
         PEA   $0000
         TDC
         CLC
         ADC   #$0034
         PHA
         JSL   L0C2538
         PLY
         PLY
         PLY
         PLY
L0C4530  TAY
         TSC
         CLC
         ADC   #$00BC
         TCS
         TYA
         PLD
         RTL

L0C453A  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E2
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         BRL   L0C4670
L0C4562  LDA   $EA
         BEQ   L0C4579
         PEA   ^L056323
         PEA   L056323
         LDA   L030282
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
         BRA   L0C458A
L0C4579  PEA   ^L05637B
         PEA   L05637B
         LDA   L030290
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C458A  BRL   L0C4645
L0C458D  PEA   ^L0564DB
         PEA   L0564DB
         LDX   L0302C0
         LDA   L0302BE
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   $0000
         PEI   $EA
         JSL   L0C16CB
         PLY
         PLY
         PEA   $0002
         PEI   $EC
         JSL   L0C16CB
         PLY
         PLY
         TAY
         BEQ   L0C45C1
         STZ   $E4
         BRL   L0C4655
L0C45C1  BRL   L0C46C6
L0C45C4  LDA   #$0321
         STA   $E4
         BRL   L0C464A
L0C45CC  PEA   $0000
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0218
         PEA   $0001
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   ^L056533
         PEA   L056533
         LDX   L0302DC
         LDA   L0302DA
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   ^L0565AB
         PEA   L0565AB
         PEA   $0000
         PEA   $03D8
         PEA   ^L05759E
         PEA   L05759E
         PEI   $EA
         PEI   $EC
         JSL   L0C2275
         TAY
         TSC
         CLC
         ADC   #$0010
         TCS
         TYA
         LDA   #$0349
         STA   $E4
         BRL   L0C4655
L0C4631  LDA   $EA
         BNE   L0C4645
         PEA   ^L056413
         PEA   L056413
         PEA   $0031
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C4645  LDA   #$3421
         STA   $E4
L0C464A  PEA   $0000
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
L0C4655  PEI   $E4
         PEA   $0001
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRA   L0C46A7
L0C4670  CMP   #$0000
         BNE   L0C4678
         BRL   L0C458D
L0C4678  CMP   #$0001
         BEQ   L0C4645
         CMP   #$0002
         BEQ   L0C4631
         CMP   #$0005
         BEQ   L0C4645
         CMP   #$0010
         BNE   L0C468F
         BRL   L0C45C4
L0C468F  CMP   #$0011
         BNE   L0C4697
         BRL   L0C45CC
L0C4697  CMP   #$0012
         BNE   L0C469F
         BRL   L0C45C4
L0C469F  CMP   #$0013
         BNE   L0C46A7
         BRL   L0C4562
L0C46A7  LDA   $E6
         CMP   #$0005
         BNE   L0C46C6
         LDA   $EA
         BEQ   L0C46C6
         PEA   ^L0564DB
         PEA   L0564DB
         PEA   ^L056883
         PEA   L056883
         JSL   L0C2538
         PLY
         PLY
         PLY
         PLY
L0C46C6  TAY
         TSC
         CLC
         ADC   #$0012
         TCS
         TYA
         PLD
         RTL

L0C46D0  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E2
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         BRL   L0C4867
L0C46F8  LDA   $EA
         BEQ   L0C470F
         PEA   ^L056333
         PEA   L056333
         LDA   L030282
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
         BRA   L0C4720
L0C470F  PEA   ^L05638B
         PEA   L05638B
         LDA   L030290
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
L0C4720  BRL   L0C483C
L0C4723  PEA   ^L0564E3
         PEA   L0564E3
         LDX   L0302C0
         LDA   L0302BE
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   $0001
         PEI   $EE
         JSL   L0C16CB
         PLY
         PLY
         PEA   $0004
         PEI   $EC
         JSL   L0C16CB
         PLY
         PLY
         TAY
         BEQ   L0C4757
         STZ   $E4
         BRL   L0C484C
L0C4757  BRL   L0C48BD
L0C475A  LDA   #$0412
         STA   $E4
         BRL   L0C4841
L0C4762  PEA   $0002
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0128
         PEA   $0002
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   $02C0
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         LDX   L0302DC
         LDA   L0302DA
         PHX
         PHA
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         PEA   ^L05653B
         PEA   L05653B
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         JSL   L0C1564
         PLY
         PLY
         PLY
         PLY
         LDA   $EC
         LDX   #$0000
         TAY
         BPL   L0C47C2
         DEX
L0C47C2  STX   $F4
         ASL
         ROL   $F4
         ASL
         ROL   $F4
         LDX   $F4
         PHX
         PHA
         LDAL  L0510A9
         TAX
         LDAL  L0510A7
         JSL   L021F00
         PLA
         PLX
         STA   $F0
         STX   $F2
         LDY   #$0002
         LDA   [$F0],Y
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         AND   #$0001
         TAY
         BEQ   L0C47FE
         PEA   $0000
         PEA   $0001
         JSL   L0C20BE
         PLY
         PLY
L0C47FE  PEA   ^L05664B
         PEA   L05664B
         PEA   $0000
         PEA   $03D8
         PEA   ^L05759E
         PEA   L05759E
         PEI   $EA
         PEI   $EC
         JSL   L0C2275
         TAY
         TSC
         CLC
         ADC   #$0010
         TCS
         TYA
         LDA   #$0439
         STA   $E4
         BRL   L0C484C
L0C4828  LDA   $EA
         BNE   L0C483C
         PEA   ^L056423
         PEA   L056423
         PEA   $0031
         JSL   L0C163B
         PLY
         PLY
         PLY
L0C483C  LDA   #$4312
         STA   $E4
L0C4841  PEA   $0002
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
L0C484C  PEI   $E4
         PEA   $0002
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRA   L0C489E
L0C4867  CMP   #$0000
         BNE   L0C486F
         BRL   L0C4723
L0C486F  CMP   #$0001
         BEQ   L0C483C
         CMP   #$0002
         BEQ   L0C4828
         CMP   #$0005
         BEQ   L0C483C
         CMP   #$0010
         BNE   L0C4886
         BRL   L0C475A
L0C4886  CMP   #$0011
         BNE   L0C488E
         BRL   L0C4762
L0C488E  CMP   #$0012
         BNE   L0C4896
         BRL   L0C475A
L0C4896  CMP   #$0013
         BNE   L0C489E
         BRL   L0C46F8
L0C489E  LDA   $E6
         CMP   #$0005
         BNE   L0C48BD
         LDA   $EA
         BEQ   L0C48BD
         PEA   ^L0564E3
         PEA   L0564E3
         PEA   ^L05688B
         PEA   L05688B
         JSL   L0C2538
         PLY
         PLY
         PLY
         PLY
L0C48BD  TAY
         TSC
         CLC
         ADC   #$0012
         TCS
         TYA
         PLD
         RTL

L0C48C7  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E2
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         BRL   L0C4A61
L0C48EF  LDA   $EA
         BEQ   L0C4906
         PEA   ^L05632B
         PEA   L05632B
         LDA   L030284
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
         BRA   L0C4917
L0C4906  PEA   ^L056383
         PEA   L056383
         LDA   L030292
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C4917  BRL   L0C4A36
L0C491A  PEA   ^L0564D3
         PEA   L0564D3
         LDX   L0302C0
         LDA   L0302BE
         PHX
         PHA
         JSL   L0C14AC
         PLY
         PLY
         PLY
         PLY
         PEA   $0003
         PEI   $EC
         JSL   L0C16CB
         PLY
         PLY
         TAY
         BEQ   L0C4943
         STZ   $E4
         BRL   L0C4A46
L0C4943  BRL   L0C4AA7
L0C4946  PEA   $0001
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0218
         PEA   $0000
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   ^L056543
         PEA   L056543
         LDX   L0302E0
         LDA   L0302DE
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   $02C0
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         LDX   L0302E0
         LDA   L0302DE
         PHX
         PHA
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         PEA   ^L05654B
         PEA   L05654B
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         JSL   L0C1564
         PLY
         PLY
         PLY
         PLY
         LDA   $EC
         LDX   #$0000
         TAY
         BPL   L0C49BC
         DEX
L0C49BC  STX   $F4
         ASL
         ROL   $F4
         ASL
         ROL   $F4
         LDX   $F4
         PHX
         PHA
         LDAL  L0510A9
         TAX
         LDAL  L0510A7
         JSL   L021F00
         PLA
         PLX
         STA   $F0
         STX   $F2
         LDY   #$0002
         LDA   [$F0],Y
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         AND   #$0001
         TAY
         BEQ   L0C49F8
         PEA   $0001
         PEA   $0001
         JSL   L0C20BE
         PLY
         PLY
L0C49F8  PEA   ^L0565FB
         PEA   L0565FB
         PEA   $0000
         PEA   $03D8
         PEA   ^L05759E
         PEA   L05759E
         PEI   $EA
         PEI   $EC
         JSL   L0C2275
         TAY
         TSC
         CLC
         ADC   #$0010
         TCS
         TYA
         LDA   #$0349
         STA   $E4
         BRL   L0C4A46
L0C4A22  LDA   $EA
         BNE   L0C4A36
         PEA   ^L05641B
         PEA   L05641B
         PEA   $0032
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C4A36  LDA   #$3421
         STA   $E4
         PEA   $0001
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
L0C4A46  PEI   $E4
         PEA   $0000
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRA   L0C4A88
L0C4A61  CMP   #$0000
         BNE   L0C4A69
         BRL   L0C491A
L0C4A69  CMP   #$0001
         BEQ   L0C4A36
         CMP   #$0002
         BEQ   L0C4A22
         CMP   #$0005
         BEQ   L0C4A36
         CMP   #$0011
         BNE   L0C4A80
         BRL   L0C4946
L0C4A80  CMP   #$0013
         BNE   L0C4A88
         BRL   L0C48EF
L0C4A88  LDA   $E6
         CMP   #$0005
         BNE   L0C4AA7
         LDA   $EA
         BEQ   L0C4AA7
         PEA   ^L0564D3
         PEA   L0564D3
         PEA   ^L05687B
         PEA   L05687B
         JSL   L0C2538
         PLY
         PLY
         PLY
         PLY
L0C4AA7  TAY
         TSC
         CLC
         ADC   #$0012
         TCS
         TYA
         PLD
         RTL

L0C4AB1  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E2
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         BRL   L0C4C1A
L0C4AD9  LDA   $EA
         BEQ   L0C4AF0
         PEA   ^L05633B
         PEA   L05633B
         LDA   L030286
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
         BRA   L0C4B01
L0C4AF0  PEA   ^L056393
         PEA   L056393
         LDA   L030294
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C4B01  BRL   L0C4BD3
L0C4B04  PEA   ^L0564F3
         PEA   L0564F3
         LDX   L0302C4
         LDA   L0302C2
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   $0005
         PEI   $EA
         JSL   L0C16CB
         PLY
         PLY
         PEA   $0007
         PEI   $EC
         JSL   L0C16CB
         PLY
         PLY
         TAY
         BEQ   L0C4B38
         STZ   $E4
         BRL   L0C4BE3
L0C4B38  BRL   L0C4C70
L0C4B3B  PEA   ^L0563D3
         PEA   L0563D3
         LDA   L03029E
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C4B4C  LDA   #$0342
         STA   $E4
         BRL   L0C4BD8
L0C4B54  PEA   $0003
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0218
         PEA   $0004
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   ^L05657B
         PEA   L05657B
         LDX   L0302D4
         LDA   L0302D2
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   ^L05669B
         PEA   L05669B
         PEA   $0001
         PEA   $07A0
         PEA   ^L0575A2
         PEA   L0575A2
         PEI   $EA
         PEI   $EC
         JSL   L0C2275
         TAY
         TSC
         CLC
         ADC   #$0010
         TCS
         TYA
         LDA   #$0349
         STA   $E4
         BRL   L0C4BE3
L0C4BB9  PEA   ^L05642B
         PEA   L05642B
         LDA   $EA
         BEQ   L0C4BC8
         LDA   #$0039
         BRA   L0C4BCB
L0C4BC8  LDA   #$0033
L0C4BCB  PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C4BD3  LDA   #$3421
         STA   $E4
L0C4BD8  PEA   $0003
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
L0C4BE3  PEA   $0000
         PEI   $FF
         PEI   $FD
         PEA   ^L056473
         PEA   L056473
         PEA   $003F
         JSL   L0C2449
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEI   $E4
         PEA   $0004
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRA   L0C4C51
L0C4C1A  CMP   #$0000
         BNE   L0C4C22
         BRL   L0C4B04
L0C4C22  CMP   #$0001
         BEQ   L0C4BD3
         CMP   #$0002
         BEQ   L0C4BB9
         CMP   #$0005
         BEQ   L0C4BD3
         CMP   #$0010
         BNE   L0C4C39
         BRL   L0C4B4C
L0C4C39  CMP   #$0011
         BNE   L0C4C41
         BRL   L0C4B54
L0C4C41  CMP   #$0012
         BNE   L0C4C49
         BRL   L0C4B3B
L0C4C49  CMP   #$0013
         BNE   L0C4C51
         BRL   L0C4AD9
L0C4C51  LDA   $E6
         CMP   #$0005
         BNE   L0C4C70
         LDA   $EA
         BEQ   L0C4C70
         PEA   ^L0564F3
         PEA   L0564F3
         PEA   ^L05689B
         PEA   L05689B
         JSL   L0C2538
         PLY
         PLY
         PLY
         PLY
L0C4C70  TAY
         TSC
         CLC
         ADC   #$0012
         TCS
         TYA
         PLD
         RTL

L0C4C7A  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E2
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         BRL   L0C4DE3
L0C4CA2  LDA   $EA
         BEQ   L0C4CB9
         PEA   ^L05634B
         PEA   L05634B
         LDA   L030286
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
         BRA   L0C4CCA
L0C4CB9  PEA   ^L0563A3
         PEA   L0563A3
         LDA   L030294
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
L0C4CCA  BRL   L0C4D9C
L0C4CCD  PEA   ^L0564FB
         PEA   L0564FB
         LDX   L0302C4
         LDA   L0302C2
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   $0006
         PEI   $EE
         JSL   L0C16CB
         PLY
         PLY
         PEA   $0009
         PEI   $EC
         JSL   L0C16CB
         PLY
         PLY
         TAY
         BEQ   L0C4D01
         STZ   $E4
         BRL   L0C4DC8
L0C4D01  BRL   L0C4E39
L0C4D04  PEA   ^L0563DB
         PEA   L0563DB
         LDA   L03029E
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
L0C4D15  LDA   #$0431
         STA   $E4
         BRL   L0C4DA1
L0C4D1D  PEA   $0005
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0128
         PEA   $0005
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   ^L05658B
         PEA   L05658B
         LDX   L0302D4
         LDA   L0302D2
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   ^L05673B
         PEA   L05673B
         PEA   $0001
         PEA   $07A0
         PEA   ^L0575A2
         PEA   L0575A2
         PEI   $EA
         PEI   $EC
         JSL   L0C2275
         TAY
         TSC
         CLC
         ADC   #$0010
         TCS
         TYA
         LDA   #$0439
         STA   $E4
         BRL   L0C4DC8
L0C4D82  PEA   ^L05643B
         PEA   L05643B
         LDA   $EA
         BEQ   L0C4D91
         LDA   #$0039
         BRA   L0C4D94
L0C4D91  LDA   #$0033
L0C4D94  PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
L0C4D9C  LDA   #$4312
         STA   $E4
L0C4DA1  PEA   $0005
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0001
         PEI   $FF
         PEI   $FD
         PEA   ^L056483
         PEA   L056483
         PEA   $003F
         JSL   L0C2449
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C4DC8  PEI   $E4
         PEA   $0005
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRA   L0C4E1A
L0C4DE3  CMP   #$0000
         BNE   L0C4DEB
         BRL   L0C4CCD
L0C4DEB  CMP   #$0001
         BEQ   L0C4D9C
         CMP   #$0002
         BEQ   L0C4D82
         CMP   #$0005
         BEQ   L0C4D9C
         CMP   #$0010
         BNE   L0C4E02
         BRL   L0C4D15
L0C4E02  CMP   #$0011
         BNE   L0C4E0A
         BRL   L0C4D1D
L0C4E0A  CMP   #$0012
         BNE   L0C4E12
         BRL   L0C4D04
L0C4E12  CMP   #$0013
         BNE   L0C4E1A
         BRL   L0C4CA2
L0C4E1A  LDA   $E6
         CMP   #$0005
         BNE   L0C4E39
         LDA   $EA
         BEQ   L0C4E39
         PEA   ^L0564FB
         PEA   L0564FB
         PEA   ^L0568A3
         PEA   L0568A3
         JSL   L0C2538
         PLY
         PLY
         PLY
         PLY
L0C4E39  TAY
         TSC
         CLC
         ADC   #$0012
         TCS
         TYA
         PLD
         RTL

L0C4E43  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E2
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         BRL   L0C5015
L0C4E6B  LDA   $EA
         BEQ   L0C4E82
         PEA   ^L056343
         PEA   L056343
         LDA   L030288
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
         BRA   L0C4E93
L0C4E82  PEA   ^L05639B
         PEA   L05639B
         LDA   L030296
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C4E93  BRL   L0C4FCE
L0C4E96  PEA   ^L0564EB
         PEA   L0564EB
         LDX   L0302C4
         LDA   L0302C2
         PHX
         PHA
         JSL   L0C14AC
         PLY
         PLY
         PLY
         PLY
         PEA   $0008
         PEI   $EC
         JSL   L0C16CB
         PLY
         PLY
         TAY
         BEQ   L0C4EBF
         STZ   $E4
         BRL   L0C4FFA
L0C4EBF  BRL   L0C5068
L0C4EC2  PEA   $0004
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0218
         PEA   $0003
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   ^L056583
         PEA   L056583
         LDX   L0302D4
         LDA   L0302D2
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   ^L056553
         PEA   L056553
         LDX   L0302E4
         LDA   L0302E2
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   $0618
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         LDX   L0302E4
         LDA   L0302E2
         PHX
         PHA
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         PEA   ^L05655B
         PEA   L05655B
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         JSL   L0C1564
         PLY
         PLY
         PLY
         PLY
         LDA   $EC
         LDX   #$0000
         TAY
         BPL   L0C4F4E
         DEX
L0C4F4E  STX   $F4
         ASL
         ROL   $F4
         ASL
         ROL   $F4
         LDX   $F4
         PHX
         PHA
         LDAL  L0510A9
         TAX
         LDAL  L0510A7
         JSL   L021F00
         PLA
         PLX
         STA   $F0
         STX   $F2
         LDY   #$0002
         LDA   [$F0],Y
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         AND   #$0001
         TAY
         BEQ   L0C4F8A
         PEA   $0002
         PEA   $0001
         JSL   L0C20BE
         PLY
         PLY
L0C4F8A  PEA   ^L0566EB
         PEA   L0566EB
         PEA   $0001
         PEA   $07A0
         PEA   ^L0575A2
         PEA   L0575A2
         PEI   $EA
         PEI   $EC
         JSL   L0C2275
         TAY
         TSC
         CLC
         ADC   #$0010
         TCS
         TYA
         LDA   #$0349
         STA   $E4
         BRL   L0C4FFA
L0C4FB4  PEA   ^L056433
         PEA   L056433
         LDA   $EA
         BEQ   L0C4FC3
         LDA   #$003A
         BRA   L0C4FC6
L0C4FC3  LDA   #$0034
L0C4FC6  PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C4FCE  LDA   #$3421
         STA   $E4
         PEA   $0004
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0000
         PEI   $FF
         PEI   $FD
         PEA   ^L05647B
         PEA   L05647B
         PEA   $0040
         JSL   L0C2449
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C4FFA  PEI   $E4
         PEA   $0003
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRA   L0C503C
L0C5015  CMP   #$0000
         BNE   L0C501D
         BRL   L0C4E96
L0C501D  CMP   #$0001
         BEQ   L0C4FCE
         CMP   #$0002
         BEQ   L0C4FB4
         CMP   #$0005
         BEQ   L0C4FCE
         CMP   #$0011
         BNE   L0C5034
         BRL   L0C4EC2
L0C5034  CMP   #$0013
         BNE   L0C503C
         BRL   L0C4E6B
L0C503C  LDA   $E6
         CMP   #$0005
         BNE   L0C5068
         LDA   $EA
         BEQ   L0C5068
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         PEA   ^L0564EB
         PEA   L0564EB
         PEA   ^L056893
         PEA   L056893
         JSL   L0C2538
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C5068  TAY
         TSC
         CLC
         ADC   #$0012
         TCS
         TYA
         PLD
         RTL

L0C5072  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E2
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         BRL   L0C51DF
L0C509A  LDA   $EA
         BEQ   L0C50B1
         PEA   ^L056353
         PEA   L056353
         LDA   L03028A
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
         BRA   L0C50C2
L0C50B1  PEA   ^L0563AB
         PEA   L0563AB
         LDA   L030298
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C50C2  BRL   L0C5198
L0C50C5  PEA   ^L05650B
         PEA   L05650B
         LDX   L0302C8
         LDA   L0302C6
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   $000A
         PEI   $EA
         JSL   L0C16CB
         PLY
         PLY
         BRL   L0C5242
L0C50E9  LDA   $EA
         BEQ   L0C5100
         PEA   ^L0563E3
         PEA   L0563E3
         LDA   L0302A0
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
         BRA   L0C5111
L0C5100  PEA   ^L0563F3
         PEA   L0563F3
         LDA   L0302A2
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C5111  LDA   #$0032
         STA   $E4
         BRL   L0C519D
L0C5119  PEA   $0006
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0028
         PEA   $0007
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   ^L056593
         PEA   L056593
         LDX   L0302D8
         LDA   L0302D6
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   ^L05678B
         PEA   L05678B
         PEA   $0002
         PEA   $1080
         PEA   ^L0575A6
         PEA   L0575A6
         PEI   $EA
         PEI   $EC
         JSL   L0C2275
         TAY
         TSC
         CLC
         ADC   #$0010
         TCS
         TYA
         LDA   #$0039
         STA   $E4
         BRL   L0C51C4
L0C517E  PEA   ^L056443
         PEA   L056443
         LDA   $EA
         BEQ   L0C518D
         LDA   #$003B
         BRA   L0C5190
L0C518D  LDA   #$0035
L0C5190  PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C5198  LDA   #$0032
         STA   $E4
L0C519D  PEA   $0006
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0000
         PEI   $FF
         PEI   $FD
         PEA   ^L05648B
         PEA   L05648B
         PEA   $0041
         JSL   L0C2449
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C51C4  PEI   $E4
         PEA   $0007
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRA   L0C5216
L0C51DF  CMP   #$0000
         BNE   L0C51E7
         BRL   L0C50C5
L0C51E7  CMP   #$0001
         BEQ   L0C5198
         CMP   #$0002
         BEQ   L0C517E
         CMP   #$0005
         BEQ   L0C5198
         CMP   #$0010
         BNE   L0C51FE
         BRL   L0C5111
L0C51FE  CMP   #$0011
         BNE   L0C5206
         BRL   L0C5119
L0C5206  CMP   #$0012
         BNE   L0C520E
         BRL   L0C50E9
L0C520E  CMP   #$0013
         BNE   L0C5216
         BRL   L0C509A
L0C5216  LDA   $E6
         CMP   #$0005
         BNE   L0C5242
         LDA   $EA
         BEQ   L0C5242
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         PEA   ^L05650B
         PEA   L05650B
         PEA   ^L0568B3
         PEA   L0568B3
         JSL   L0C2538
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C5242  TAY
         TSC
         CLC
         ADC   #$0012
         TCS
         TYA
         PLD
         RTL

L0C524C  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E2
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         BRL   L0C53B9
L0C5274  LDA   $EA
         BEQ   L0C528B
         PEA   ^L056363
         PEA   L056363
         LDA   L03028A
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
         BRA   L0C529C
L0C528B  PEA   ^L0563BB
         PEA   L0563BB
         LDA   L030298
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
L0C529C  BRL   L0C5372
L0C529F  PEA   ^L056513
         PEA   L056513
         LDX   L0302C8
         LDA   L0302C6
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   $000B
         PEI   $EE
         JSL   L0C16CB
         PLY
         PLY
         BRL   L0C541C
L0C52C3  LDA   $EA
         BEQ   L0C52DA
         PEA   ^L0563EB
         PEA   L0563EB
         LDA   L0302A0
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
         BRA   L0C52EB
L0C52DA  PEA   ^L0563FB
         PEA   L0563FB
         LDA   L0302A2
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
L0C52EB  LDA   #$0041
         STA   $E4
         BRL   L0C5377
L0C52F3  PEA   $0008
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0018
         PEA   $0008
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   ^L0565A3
         PEA   L0565A3
         LDX   L0302D8
         LDA   L0302D6
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   ^L05682B
         PEA   L05682B
         PEA   $0002
         PEA   $1080
         PEA   ^L0575A6
         PEA   L0575A6
         PEI   $EA
         PEI   $EC
         JSL   L0C2275
         TAY
         TSC
         CLC
         ADC   #$0010
         TCS
         TYA
         LDA   #$0049
         STA   $E4
         BRL   L0C539E
L0C5358  PEA   ^L056453
         PEA   L056453
         LDA   $EA
         BEQ   L0C5367
         LDA   #$003B
         BRA   L0C536A
L0C5367  LDA   #$0035
L0C536A  PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
L0C5372  LDA   #$0041
         STA   $E4
L0C5377  PEA   $0008
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0001
         PEI   $FF
         PEI   $FD
         PEA   ^L05649B
         PEA   L05649B
         PEA   $0041
         JSL   L0C2449
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C539E  PEI   $E4
         PEA   $0008
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRA   L0C53F0
L0C53B9  CMP   #$0000
         BNE   L0C53C1
         BRL   L0C529F
L0C53C1  CMP   #$0001
         BEQ   L0C5372
         CMP   #$0002
         BEQ   L0C5358
         CMP   #$0005
         BEQ   L0C5372
         CMP   #$0010
         BNE   L0C53D8
         BRL   L0C52EB
L0C53D8  CMP   #$0011
         BNE   L0C53E0
         BRL   L0C52F3
L0C53E0  CMP   #$0012
         BNE   L0C53E8
         BRL   L0C52C3
L0C53E8  CMP   #$0013
         BNE   L0C53F0
         BRL   L0C5274
L0C53F0  LDA   $E6
         CMP   #$0005
         BNE   L0C541C
         LDA   $EA
         BEQ   L0C541C
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         PEA   ^L056513
         PEA   L056513
         PEA   ^L0568BB
         PEA   L0568BB
         JSL   L0C2538
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C541C  TAY
         TSC
         CLC
         ADC   #$0012
         TCS
         TYA
         PLD
         RTL

L0C5426  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00DE
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         STA   L0300C6
         BRL   L0C56D5
L0C5451  LDA   $EA
         BEQ   L0C5468
         PEA   ^L05635B
         PEA   L05635B
         LDA   L03028C
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
         BRA   L0C5479
L0C5468  PEA   ^L0563B3
         PEA   L0563B3
         LDA   L03029A
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C5479  BRL   L0C568E
L0C547C  STZ   L0300C8
         STZ   L0300CA
         STZ   L0300CC
         LDAL  L056152
         AND   #$00FF
         BNE   L0C5491
         BRL   L0C5511
L0C5491  PEA   $0001
         JSL   L0B24B1
         PLY
         PEA   $FFFF
         PEA   $0030
         PEA   $0070
         LDAL  L056315
         AND   #$00FF
         PHA
         LDAL  L056313
         AND   #$00FF
         PHA
         PEA   ^L056317
         PEA   L056317
         PEA   $0001
         JSL   L0B25FC
         PLY
         PHX
         PHA
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
         PEA   $0029
         JSL   L0B225C
         PLY
         STX   $E4
         STA   $E2
         PEA   $000A
         PEA   $0030
         PEA   $0030
         PEA   $0000
         PEA   $0000
         PEA   ^L056317
         PEA   L056317
         PEA   $0001
         JSL   L0B25FC
         PLY
         PHX
         PHA
         PEI   $E4
         PEI   $E2
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
L0C5511  PEA   ^L056503
         PEA   L056503
         LDX   L0302C8
         LDA   L0302C6
         PHX
         PHA
         JSL   L0C14AC
         PLY
         PLY
         PLY
         PLY
         PEA   $000C
         PEI   $EC
         JSL   L0C16CB
         PLY
         PLY
         TAY
         BEQ   L0C554F
         PEA   $0000
         PEA   $0006
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C554F  LDAL  L056152
         AND   #$00FF
         BEQ   L0C559B
         PEA   $0009
         PEA   $0070
         PEA   $0030
         PEA   $0000
         PEA   $0000
         PEA   ^L056313
         PEA   L056313
         LDX   L03002E
         LDA   L03002C
         PHX
         PHA
         PEA   $0001
         JSL   L0B25FC
         PLY
         PHX
         PHA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
         PEA   $0001
         JSL   L0B2667
         PLY
         PEA   $8001
         JSL   L0B0CF6
         PLY
L0C559B  BRL   L0C5728
L0C559E  PEA   $0007
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0218
         PEA   $0006
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   ^L05659B
         PEA   L05659B
         LDX   L0302D8
         LDA   L0302D6
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   ^L056563
         PEA   L056563
         LDX   L0302E8
         LDA   L0302E6
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         PEA   ^L05656B
         PEA   L05656B
         LDX   L0302F0
         LDA   L0302EE
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         LDA   $EC
         LDX   #$0000
         TAY
         BPL   L0C560E
         DEX
L0C560E  STX   $F4
         ASL
         ROL   $F4
         ASL
         ROL   $F4
         LDX   $F4
         PHX
         PHA
         LDAL  L0510A9
         TAX
         LDAL  L0510A7
         JSL   L021F00
         PLA
         PLX
         STA   $F0
         STX   $F2
         LDY   #$0002
         LDA   [$F0],Y
         LSR
         LSR
         LSR
         LSR
         LSR
         LSR
         AND   #$0001
         TAY
         BEQ   L0C564A
         PEA   $0003
         PEA   $0001
         JSL   L0C20BE
         PLY
         PLY
L0C564A  PEA   ^L0567DB
         PEA   L0567DB
         PEA   $0002
         PEA   $1080
         PEA   ^L0575A6
         PEA   L0575A6
         PEI   $EA
         PEI   $EC
         JSL   L0C2275
         TAY
         TSC
         CLC
         ADC   #$0010
         TCS
         TYA
         LDA   #$0349
         STA   $E0
         BRL   L0C56BA
L0C5674  PEA   ^L05644B
         PEA   L05644B
         LDA   $EA
         BEQ   L0C5683
         LDA   #$003C
         BRA   L0C5686
L0C5683  LDA   #$0036
L0C5686  PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C568E  LDA   #$3421
         STA   $E0
         PEA   $0007
         PEI   $EE
         JSL   L0C1D85
         PLY
         PLY
         PEA   $0000
         PEI   $FF
         PEI   $FD
         PEA   ^L056493
         PEA   L056493
         PEA   $0042
         JSL   L0C2449
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C56BA  PEI   $E0
         PEA   $0006
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRA   L0C56FC
L0C56D5  CMP   #$0000
         BNE   L0C56DD
         BRL   L0C547C
L0C56DD  CMP   #$0001
         BEQ   L0C568E
         CMP   #$0002
         BEQ   L0C5674
         CMP   #$0005
         BEQ   L0C568E
         CMP   #$0011
         BNE   L0C56F4
         BRL   L0C559E
L0C56F4  CMP   #$0013
         BNE   L0C56FC
         BRL   L0C5451
L0C56FC  LDA   $E6
         CMP   #$0005
         BNE   L0C5728
         LDA   $EA
         BEQ   L0C5728
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         PEA   ^L056503
         PEA   L056503
         PEA   ^L0568AB
         PEA   L0568AB
         JSL   L0C2538
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
L0C5728  TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
         PLD
         RTL

L0C5732  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E4
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         BRL   L0C57C0
L0C575A  PEA   ^L056403
         PEA   L056403
         LDA   L0302A4
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
         BRL   L0C581C
L0C576E  PEA   ^L05645B
         PEA   L05645B
         LDA   $EA
         BEQ   L0C577D
         LDA   #$003D
         BRA   L0C5780
L0C577D  LDA   #$0037
L0C5780  PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
L0C5788  PEA   $0002
         PEA   $000A
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRL   L0C57E1
L0C57A5  PEA   ^L056523
         PEA   L056523
         LDX   L0302CC
         LDA   L0302CA
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         BRL   L0C581C
         BRA   L0C57E1
L0C57C0  CMP   #$0000
         BEQ   L0C57A5
         CMP   #$0001
         BEQ   L0C5788
         CMP   #$0002
         BEQ   L0C576E
         CMP   #$0005
         BEQ   L0C5788
         CMP   #$0010
         BEQ   L0C5788
         CMP   #$0012
         BNE   L0C57E1
         BRL   L0C575A
L0C57E1  PEA   $0000
         PEI   $FF
         PEI   $FD
         PEA   ^L0564A3
         PEA   L0564A3
         PEA   $0043
         JSL   L0C2449
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDA   $E6
         CMP   #$0005
         BNE   L0C581C
         LDA   $EA
         BEQ   L0C581C
         PEA   ^L056523
         PEA   L056523
         PEA   ^L0568CB
         PEA   L0568CB
         JSL   L0C2538
         PLY
         PLY
         PLY
         PLY
L0C581C  TAY
         TSC
         CLC
         ADC   #$0010
         TCS
         TYA
         PLD
         RTL

L0C5826  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E4
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         BRL   L0C58D0
L0C584E  PEA   ^L05640B
         PEA   L05640B
         LDA   L0302A4
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
         BRL   L0C5910
L0C5862  PEA   ^L05646B
         PEA   L05646B
         LDA   $EA
         BEQ   L0C5871
         LDA   #$003D
         BRA   L0C5874
L0C5871  LDA   #$0037
L0C5874  PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
L0C587C  PEA   $0001
         PEI   $FF
         PEI   $FD
         PEA   ^L0564B3
         PEA   L0564B3
         PEA   $0043
         JSL   L0C2449
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   $0001
         PEA   $000B
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         BRL   L0C58F1
L0C58B5  PEA   ^L05652B
         PEA   L05652B
         LDX   L0302D0
         LDA   L0302CE
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         BRL   L0C5910
         BRA   L0C58F1
L0C58D0  CMP   #$0000
         BEQ   L0C58B5
         CMP   #$0001
         BEQ   L0C587C
         CMP   #$0002
         BEQ   L0C5862
         CMP   #$0005
         BEQ   L0C587C
         CMP   #$0010
         BEQ   L0C587C
         CMP   #$0012
         BNE   L0C58F1
         BRL   L0C584E
L0C58F1  LDA   $E6
         CMP   #$0005
         BNE   L0C5910
         LDA   $EA
         BEQ   L0C5910
         PEA   ^L05652B
         PEA   L05652B
         PEA   ^L0568D3
         PEA   L0568D3
         JSL   L0C2538
         PLY
         PLY
         PLY
         PLY
L0C5910  TAY
         TSC
         CLC
         ADC   #$0010
         TCS
         TYA
         PLD
         RTL

L0C591A  PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E4
         TCS
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEA   $0000
         TDC
         CLC
         ADC   #$00E6
         PHA
         JSL   L061E70
         PLY
         PLY
         PLY
         PLY
         PLY
         LDA   $E6
         BRL   L0C5A4A
L0C5942  LDAL  L056152
         AND   #$00FF
         BNE   L0C594E
         BRL   L0C59C8
L0C594E  PEA   $07B0
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         LDX   L0302EC
         LDA   L0302EA
         PHX
         PHA
         JSL   L0202AB
         PLY
         PLY
         PLY
         PLY
         PLY
         PEA   $0009
         PEA   $0010
         PEA   $0030
         PEA   $0000
         LDAL  L056313
         AND   #$00FF
         PHA
         LDAL  L056573
         AND   #$00FF
         PLX
         STX   $F4
         SEC
         SBC   $F4
         PHA
         PEA   ^L05631B
         PEA   L05631B
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         PEA   $0029
         JSL   L0B225C
         PLY
         PHX
         PHA
         JSL   L0807BE
         TAY
         TSC
         CLC
         ADC   #$0016
         TCS
         TYA
         PEA   ^L056573
         PEA   L056573
         LDX   L03027C
         LDA   L03027A
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
         BRA   L0C59DE
L0C59C8  PEA   ^L056573
         PEA   L056573
         LDX   L0302EC
         LDA   L0302EA
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
L0C59DE  BRL   L0C5A5C
L0C59E1  LDA   $EA
         BEQ   L0C5A09
         PEA   ^L05636B
         PEA   L05636B
         LDA   L03028E
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
         PEA   ^L056373
         PEA   L056373
         LDA   L03028E
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
         BRA   L0C5A2B
L0C5A09  PEA   ^L0563C3
         PEA   L0563C3
         LDA   L03029C
         PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
         PEA   ^L0563CB
         PEA   L0563CB
         LDA   L03029C
         PHA
         JSL   L0C163B
         PLY
         PLY
         PLY
L0C5A2B  BRL   L0C5A5C
L0C5A2E  PEA   ^L056463
         PEA   L056463
         LDA   $EA
         BEQ   L0C5A3D
         LDA   #$003E
         BRA   L0C5A40
L0C5A3D  LDA   #$0038
L0C5A40  PHA
         JSL   L0C15DC
         PLY
         PLY
         PLY
         BRA   L0C5A5C
L0C5A4A  CMP   #$0002
         BEQ   L0C5A2E
         CMP   #$0010
         BNE   L0C5A57
         BRL   L0C5942
L0C5A57  CMP   #$0013
         BEQ   L0C59E1
L0C5A5C  PEA   $0000
         PEI   $FF
         PEI   $FD
         PEA   ^L0564AB
         PEA   L0564AB
         PEA   $0044
         JSL   L0C2449
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         PEA   $0021
         PEA   $0009
         PEI   $FF
         PEI   $FD
         PEI   $FB
         PEI   $E8
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDA   $E6
         CMP   #$0005
         BNE   L0C5AB1
         LDA   $EA
         BEQ   L0C5AB1
         PEA   ^L05651B
         PEA   L05651B
         PEA   ^L0568C3
         PEA   L0568C3
         JSL   L0C2538
         PLY
         PLY
         PLY
         PLY
L0C5AB1  TSC
         CLC
         ADC   #$0010
         TCS
         PLD
         RTL

L0C5AB9  ENT
         PHD
         TSC
         SEC
         SBC   #$00F5
         TCD
         ADC   #$00E8
         TCS
         STZ   $EE
         LDA   #$0001
         STA   L03012C
         PEA   $0018
         PEA   ^L0510E7
         PEA   L0510E7
         JSL   L020232
         PLY
         PLY
         PLY
         PEA   $0004
         PEA   $00FF
         PEA   $0006
         PEA   ^L0510E7
         PEA   L0510E7
         JSL   L020259
         PLY
         PLY
         PLY
         PLY
         PLY
         PEA   $0000
         PEA   $0000
         PEA   $22B0
         JSL   L0B006E
         PLY
         PLY
         PLY
         STX   L03027C
         STA   L03027A
         LDA   $FD
         CLC
         ADC   $FF
         CLC
         ADC   $FB
         AND   #$0001
         STA   L03027E
         TAY
         BNE   L0C5B1E
         BRL   L0C5B7D
L0C5B1E  LDA   L0301D2
         STA   $EE
         TAY
         BNE   L0C5B29
         BRL   L0C5B7D
L0C5B29  LDX   L03031C
         LDA   L03031A
         STX   L0302A8
         STA   L0302A6
         LDX   L030320
         LDA   L03031E
         STX   L0302AC
         STA   L0302AA
         LDX   L0302F4
         LDA   L0302F2
         STX   L0302C0
         STA   L0302BE
         LDX   L0302F8
         LDA   L0302F6
         STX   L0302C4
         STA   L0302C2
         LDX   L0302FC
         LDA   L0302FA
         STX   L0302C8
         STA   L0302C6
         LDX   L030300
         LDA   L0302FE
         STX   L0302CC
         STA   L0302CA
         LDX   L030304
         LDA   L030302
         STX   L0302D0
         STA   L0302CE
L0C5B7D  JSL   L0C13B4
         PEI   $FF
         PEI   $FD
         PEA   $FFFE
         PEA   $0003
         PEI   $FB
         JSL   L060A35
         PLY
         PLY
         PLY
         PLY
         PLY
         CMP   #$0000
         BNE   L0C5BB1
         PEA   ^L0564C3
         PEA   L0564C3
         LDX   L0302BC
         LDA   L0302BA
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
L0C5BB1  PEI   $FF
         PEI   $FD
         PEA   $0002
         PEA   $0003
         PEI   $FB
         JSL   L060A35
         PLY
         PLY
         PLY
         PLY
         PLY
         CMP   #$0000
         BNE   L0C5BE1
         PEA   ^L0564CB
         PEA   L0564CB
         LDX   L0302B8
         LDA   L0302B6
         PHX
         PHA
         JSL   L0C1452
         PLY
         PLY
         PLY
         PLY
L0C5BE1  LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $FFFF
         PEA   $0004
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEA   $0001
         PEA   $FFFE
         PEI   $EA
         PEI   $EC
         PEI   $FB
         PEI   $EA
         PEI   $EC
         JSL   L060E9E
         PLY
         PLY
         PHA
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $0001
         PEA   $0004
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEA   $0001
         PEA   $FFFF
         PEI   $EA
         PEI   $EC
         PEI   $FB
         PEI   $EA
         PEI   $EC
         JSL   L060E9E
         PLY
         PLY
         PHA
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $0000
         PEA   $0004
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEA   $0001
         PEA   $FFFD
         PEI   $EA
         PEI   $EC
         PEI   $FB
         PEI   $EA
         PEI   $EC
         JSL   L060E9E
         PLY
         PLY
         PHA
         JSL   L0C27A7
         TAY
         TSC
         CLC
         ADC   #$000C
         TCS
         TYA
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $FFFF
         PEA   $0003
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEI   $EA
         PEI   $EC
         PEI   $FB
         JSL   L0C453A
         PLY
         PLY
         PLY
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $0001
         PEA   $0003
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEI   $EA
         PEI   $EC
         PEI   $FB
         JSL   L0C46D0
         PLY
         PLY
         PLY
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $0000
         PEA   $0003
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEI   $EA
         PEI   $EC
         PEI   $FB
         JSL   L0C48C7
         PLY
         PLY
         PLY
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $FFFF
         PEA   $0002
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEI   $EA
         PEI   $EC
         PEI   $FB
         JSL   L0C4AB1
         PLY
         PLY
         PLY
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $0001
         PEA   $0002
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEI   $EA
         PEI   $EC
         PEI   $FB
         JSL   L0C4C7A
         PLY
         PLY
         PLY
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $0000
         PEA   $0002
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEI   $EA
         PEI   $EC
         PEI   $FB
         JSL   L0C4E43
         PLY
         PLY
         PLY
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $FFFF
         PEA   $0001
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEI   $EA
         PEI   $EC
         PEI   $FB
         JSL   L0C5072
         PLY
         PLY
         PLY
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $0001
         PEA   $0001
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEI   $EA
         PEI   $EC
         PEI   $FB
         JSL   L0C524C
         PLY
         PLY
         PLY
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $0000
         PEA   $0001
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEI   $EA
         PEI   $EC
         PEI   $FB
         JSL   L0C5426
         PLY
         PLY
         PLY
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $FFFF
         PEA   $0000
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEI   $EA
         PEI   $EC
         PEI   $FB
         JSL   L0C5732
         PLY
         PLY
         PLY
         LDA   $FD
         STA   $EC
         LDA   $FF
         STA   $EA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EA
         PHA
         PEA   $0000
         TDC
         CLC
         ADC   #$00EC
         PHA
         PEA   $0001
         PEA   $0000
         PEI   $FB
         JSL   L0606CB
         TAY
         TSC
         CLC
         ADC   #$000E
         TCS
         TYA
         PEI   $EA
         PEI   $EC
         PEI   $FB
         JSL   L0C5826
         PLY
         PLY
         PLY
         PEI   $FF
         PEI   $FD
         PEI   $FB
         JSL   L0C591A
         PLY
         PLY
         PLY
         LDA   $EE
         BNE   L0C5F71
         BRL   L0C5FC5
L0C5F71  LDX   L030324
         LDA   L030322
         STX   L0302A8
         STA   L0302A6
         LDX   L030328
         LDA   L030326
         STX   L0302AC
         STA   L0302AA
         LDX   L030308
         LDA   L030306
         STX   L0302C0
         STA   L0302BE
         LDX   L03030C
         LDA   L03030A
         STX   L0302C4
         STA   L0302C2
         LDX   L030310
         LDA   L03030E
         STX   L0302C8
         STA   L0302C6
         LDX   L030314
         LDA   L030312
         STX   L0302CC
         STA   L0302CA
         LDX   L030318
         LDA   L030316
         STX   L0302D0
         STA   L0302CE
L0C5FC5  PEA   $0000
         PEA   $22B0
         JSL   L0B0175
         PLY
         PLY
         LDA   L030046
         CMP   #$00FF
         BNE   L0C5FDE
         LDA   #$0000
         BRA   L0C5FE1
L0C5FDE  LDA   #$0001
L0C5FE1  PHA
         JSL   L090262
         PLY
         TSC
         CLC
         ADC   #$000C
         TCS
         PLD
         RTL

