	.code
	.bank 40
	.org $9ca2
l9ca2_01: STZ     <$12
          STZ     <$25
          LDA     <$26
          STA     <$28
          LDA     <$27
          STA     <$29
l9cae_01: LDA     <$05
          AND     <$24
          BEQ     l9cb7_01
          JMP     l9cae_01
l9cb7_01: JSR     l9a2c_01
          LSR     <$4a
          BCC     l9cc0_01
          STZ     <$24
l9cc0_01: LDY     <$25
          LDA     <$28
          AND     #$1f
          CMP     #$1e
          BCS     l9cd6_01
l9cca_01: LDA     [$2a], Y
          BNE     l9cd1_01
          JMP     l9db4_01
l9cd1_01: INY     
          CMP     #$fc
          BNE     l9ce8_01
l9cd6_01: LDA     <$26
          CLC     
          ADC     #$40
          STA     <$26
          STA     <$28
          CLA     
          ADC     <$27
          STA     <$27
          STA     <$29
          BRA     l9cca_01
l9ce8_01: CMP     #$fb
          BNE     l9cf4_01
          LDA     <$12
          EOR     #$ff
          STA     <$12
          BRA     l9cca_01
l9cf4_01: LDX     <$12
          BEQ     l9d66_01
          STY     <$25
          STA     <$0f
          JSR     l9db5_01
          LDA     <$0f
          JSR     l9dd9_01
          JSR     l990c_01
          LDA     <$10
          STA     $0002
          LDA     <$11
          STA     $0003
          INC     <$10
          BNE     l9d17_01
          INC     <$11
l9d17_01: LDA     <$10
          STA     $0002
          LDA     <$11
          STA     $0003
          LDA     #$00
          STA     <$02
          ST0     #$00
          LDA     <$28
          STA     $0002
          LDA     <$29
          STA     $0003
          LDA     #$02
          STA     <$02
          ST0     #$02
          LDA     #$0f
          CLC     
          ADC     <$10
          STA     <$10
          LDA     <$11
          ADC     #$00
          STA     <$11
          LDA     <$10
          STA     $0002
          LDA     <$11
          STA     $0003
          INC     <$10
          BNE     l9d54_01
          INC     <$11
l9d54_01: LDA     <$10
          STA     $0002
          LDA     <$11
          STA     $0003
          INC     <$28
          BNE     l9d64_01
          INC     <$29
l9d64_01: BRA     l9dab_01
l9d66_01: PHA     
          LDA     #$00
          STA     <$02
          ST0     #$00
          LDA     <$28
          STA     $0002
          LDA     <$29
          STA     $0003
          LDA     #$02
          STA     <$02
          ST0     #$02
          PLA     
          JSR     l9dff_01
          JSR     l990c_01
          LDA     <$10
          STA     $0002
          LDA     <$11
          STA     $0003
          LDA     [$2a], Y
          CMP     #$de
          BEQ     l9d98_01
          CMP     #$df
          BNE     l9da9_01
l9d98_01: INY     
          PHA     
          BSR     l9db5_01
          PLA     
          BSR     l9dff_01
          LDA     <$10
          STA     $0002
          LDA     <$11
          STA     $0003
l9da9_01: STY     <$25
l9dab_01: INC     <$28
          BNE     l9db1_01
          INC     <$29
l9db1_01: JMP     l9cae_01
l9db4_01: RTS     
l9db5_01: LDA     <$28
          SEC     
          SBC     #$20
          STA     <$06
          LDA     <$29
          SBC     #$00
          STA     <$07
          LDA     #$00
          STA     <$02
          ST0     #$00
          LDA     <$06
          STA     $0002
          LDA     <$07
          STA     $0003
          LDA     #$02
          STA     <$02
          ST0     #$02
          RTS     
l9dd9_01: PHA     
          AND     #$07
          ASL     A
          PLX     
          PHA     
          TXA     
          AND     #$f8
          STA     <$10
          STZ     <$11
          ASL     <$10
          ROL     <$11
          ASL     <$10
          ROL     <$11
          PLA     
          CLC     
          ADC     <$10
          STA     <$10
          LDA     <$11
          ADC     #$00
          STA     <$11
          BSR     l9e03_01
          INC     <$11
          RTS     
l9dff_01: STA     <$10
          STZ     <$11
l9e03_01: LDA     <$10
          CLC     
          ADC     #$90
          STA     <$10
          LDA     <$11
          ADC     #$00
          STA     <$11
          RTS     
l9e11_01: LDA     <$26
          STA     <$28
          LDA     <$27
          STA     <$29
          JSR     l990c_01
          CLY     
l9e1d_01: LDA     <$28
          AND     #$1f
          CMP     #$1f
          BCC     l9e35_01
          LDA     <$26
          CLC     
          ADC     #$40
          STA     <$26
          STA     <$28
          CLA     
          ADC     <$27
          STA     <$27
          STA     <$29
l9e35_01: LDA     [$2a], Y
          BEQ     l9e87_01
          INY     
          PHA     
          LDA     #$00
          STA     <$02
          ST0     #$00
          LDA     <$28
          STA     $0002
          LDA     <$29
          STA     $0003
          LDA     #$02
          STA     <$02
          ST0     #$02
          PLA     
          JSR     l9dff_01
          LDA     <$10
          STA     $0002
          LDA     <$11
          STA     $0003
          LDA     [$2a], Y
          CMP     #$de
          BEQ     l9e69_01
          CMP     #$df
          BNE     l9e6c_01
l9e69_01: INY     
          BRA     l9e6e_01
l9e6c_01: LDA     #$20
l9e6e_01: PHA     
          JSR     l9db5_01
          PLA     
          BSR     l9dff_01
          LDA     <$10
          STA     $0002
          LDA     <$11
          STA     $0003
          INC     <$28
          BNE     l9e85_01
          INC     <$29
l9e85_01: BRA     l9e1d_01
l9e87_01: RTS     
          PHX     
          PHY     
          DEC     A
          LDX     #$03
          JSR     l9a94_01
          LDA     #$a9
          CLC     
          ADC     <$2e
          STA     <$2e
          LDA     #$32
          ADC     <$2f
          STA     <$2f
          PLX     
          PLA     
          BIT     #$20
          BNE     l9ecb_01
          BIT     #$10
          BNE     l9ec1_01
          TAY     
          TXA     
          CPY     #$02
          BCS     l9ebb_01
          CMP     [$2e], Y
          BNE     l9eb6_01
l9eb1_01: TAX     
          LDA     [$2e], Y
          SEC     
          RTS     
l9eb6_01: TAX     
          LDA     [$2e], Y
          CLC     
          RTS     
l9ebb_01: AND     [$2e], Y
          BEQ     l9eb6_01
          BRA     l9eb1_01
l9ec1_01: AND     #$0f
          TAY     
          TXA     
          AND     [$2e], Y
          BNE     l9eb6_01
          BRA     l9eb1_01
l9ecb_01: AND     #$0f
          TAY     
          CPY     #$02
          BCS     l9ed5_01
          TXA     
          BRA     l9edd_01
l9ed5_01: CLA     
          SEC     
l9ed7_01: ROL     A
          DEX     
          BPL     l9ed7_01
          ORA     [$2e], Y
l9edd_01: STA     [$2e], Y
          RTS     
          LDA     $33df
          ASL     A
          STA     <$0e
          TAX     
          LDA     $b4c9, X
          INX     
          STA     <$06
          LDA     $b4c9, X
          INX     
          STA     <$07
          CLY     
l9ef4_01: LDA     [$06], Y
          STA     $32a9, Y
          INY     
          BNE     l9ef4_01
          LDX     <$0e
          LDA     $b9ce, X
          INX     
          STA     <$06
          LDA     $b9ce, X
          INX     
          STA     <$07
          CLY     
          CLX     
l9f0c_01: INY     
          INY     
          INY     
          LDA     [$06], Y
          STA     $33a8, X
          INY     
          INX     
          CPX     #$32
          BCC     l9f0c_01
          RTS     
          ASL     A
          TAY     
          LDA     $beb4, Y
          STA     <$06
          LDA     $beb5, Y
          STA     <$07
          TXA     
          ASL     A
          ASL     A
          TAY     
          LDA     [$06], Y
          STA     $33da
          INY     
          INY     
          LDA     [$06], Y
          STA     $33db
          INY     
          LDA     [$06], Y
          STA     $33dc
          RTS     
          LDA     #$61
          STA     <$1c
          LDA     #$02
          STA     <$1d
          LDX     #$1e
          LDY     #$08
          JSR     l98c1_01
          RTS     
          LDA     #$0e
          STA     <$2a
          LDA     #$20
          STA     <$2b
          LDA     #$5d
          STA     <$26
          LDA     #$03
          STA     <$27
l9f5e_01: LDA     #$61
          BSR     l9f7b_01
          BCS     l9f6a_01
          LDA     #$20
          BSR     l9f7b_01
          BCC     l9f5e_01
l9f6a_01: LDA     #$20
          STA     <$0e
          STZ     <$0f
          JSR     l9e11_01
l9f73_01: JSR     l9a2c_01
          LSR     <$40
          BCS     l9f73_01
          RTS     
l9f7b_01: STA     <$0e
          STZ     <$0f
          JSR     l9e11_01
          LDX     #$0f
l9f84_01: PHX     
          JSR     l990c_01
          JSR     l9a2c_01
          PLX     
          LSR     <$40
          BCS     l9f94_01
          DEX     
          BNE     l9f84_01
          CLC     
l9f94_01: RTS     
          CLY     
          CLX     
          LDA     #$05
          STA     <$0e
          LDA     <$30
          STA     <$34
          LDA     <$31
          STA     <$35
