// ============================================
// output - Part 1 of 2
// ============================================
// KickAssembler syntax
// Generated by Restore 64 v0.2.1 alpha build 298, 2026-04-11 21:36:53
// https://restore64.dev by datucker / Rabenauge
//
// Load address: $0800  End: $0f6c  (1901 bytes)
// Note: PRG was crunched, depacked by emulation
// Packer entry: $080b (via BASIC SYS 2059)
// Entry point:  $0815 (2069)
//
// Code: 397 bytes, Data: 1504 bytes
// Labels: 72, Subroutines: 1
//
// Verification: 6 line(s) auto-corrected to .byte for exact byte matching
//
// Cross-references: all OK
// ============================================


// --- Region $0815-$0819 ---
.pc = $0815 "main_0815"

main_0815:
        jmp loc_0d02

dat_0818:
        .byte $0e,$1e                               // ..

// --- Region $0842-$0847 ---
.pc = $0842 "loc_0842"

loc_0842:
        ror $66
        inc $c6c6,x
        brk

// --- Region $085d-$0862 ---
.pc = $085d "loc_085d"

loc_085d:
        dec.abs $00c6
        bvs loc_0842
        rts

// --- Region $08a2-$08a7 ---
.pc = $08a2 "loc_08a2"

loc_08a2:
        bmi loc_08d4
        bmi loc_08d6
        sec
        rts

// --- Region $08d4-$08e7 ---
.pc = $08d4 "loc_08d4"

loc_08d4:
        .byte $32                                   // jam // ILLEGAL

dat_08d5:
        .byte $66                                   // f

loc_08d6:
        inc $3c00,x
        bmi loc_090b
        bmi loc_090d
        bmi loc_091b
        brk

loc_08e0:
        ldx #$19
        stx $0404
        jmp $02c0

// --- Region $08f0-$0900 ---
.pc = $08f0 "loc_08f0"

loc_08f0:
        ldx #$40

loc_08f2:
        lda $0c01,x
        sta $0300,x
        inx
        cpx #$de
        bne loc_08f2
        jmp loc_0a39

dat_0900:
        .byte $00                                   // .

// --- Region $090b-$0932 ---
.pc = $090b "loc_090b"

loc_090b:
        sec
.label loc_090d = * + 1
        bvs loc_090e

loc_090e:
        sec
        bvs loc_0977
        ror $66
        brk

dat_0914:
        .byte $00,$00,$00,$00,$ff,$e9,$e9           // .......

loc_091b:
        sbc #$e9
        sbc #$e9
.label loc_0920 = * + 1
        eor $ad,x
        ora ($dc,x)
        and #$10
        beq loc_092a
        jmp loc_0a47

loc_092a:
        sei
        jsr $fd15
        jmp loc_0ce0

dat_0931:
        .byte $66,$3c                               // f<

// --- Region $0960-$0968 ---
.pc = $0960 "loc_0960"

loc_0960:
        stx $0aa1
        lda #$63
        jmp loc_0978

dat_0968:
        .byte $00                                   // .

// --- Region $0977-$097e ---
.pc = $0977 "loc_0977"

loc_0977:
        brk

loc_0978:
        sta $0a84
        jmp loc_0a6d

dat_097e:
        .byte $00                                   // .

// --- Region $09d8-$09df ---
.pc = $09d8 "sub_09d8"
// Referenced by: jsr from $0ceb

sub_09d8:
        stx $0ab1
        inx
        jmp loc_0960

dat_09df:
        .byte $00                                   // .

// --- Region $0a39-$0ad1 ---
.pc = $0a39 "loc_0a39"

loc_0a39:
        ldx #$18

loc_0a3b:
        lda $0a20,x
        sta $d400,x
        dex
        bpl loc_0a3b
        jmp loc_0c33

loc_0a47:
        ldx #$17

loc_0a49:
        lda $0341,x
        sta $d808,x
        dex
        bpl loc_0a49
        jmp $ea31

loc_0a55:
        ldx #$40

loc_0a57:
        lda $0301,x
        sta $0300,x
        inx
        cpx #$de
        bne loc_0a57
        sty $03de
        lda #$07
        sta $d016
        jmp loc_0920

loc_0a6d:
        jsr $e544
        ldx #$05
        ldy #$40
        sty $fa
        stx $fb

loc_0a78:
        ldx #$80
        stx $02

loc_0a7c:
.label smc_0a7d = * + 1
        lda $0a00                                   // !SMC: modified by $0acb
        and $02
        beq loc_0a89
        lda #$23
        ldy #$00
        sta ($fa),y

loc_0a89:
        inc $fa
        bne loc_0a8f

dat_0a8d:
        .byte $e6,$fb                               // ..

loc_0a8f:
        clc
        lsr $02
        bne loc_0a7c
        inc smc_0a7d
        lda smc_0a7d
        cmp #$20
        bne loc_0a78
        ldx #$00
        lda #$09

loc_0aa2:
        sta $d800,x
        sta $d900,x
        sta $da00,x
        sta $db00,x
        inx
        bne loc_0aa2
        lda #$0b
        sta $d022
        ldx #$27

loc_0ab8:
        lda txt_0ad1,x
        sta $0400,x
        lda #$01
        sta $d800,x
        sta $dbc0,x
        dex
        bpl loc_0ab8
        lda #$00
        sta smc_0a7d                                // SMC: modifies $0a7d
        jmp loc_0b0d

txt_0ad1:
        .text " "

// --- Region $0af9-$0b49 ---
.pc = $0af9 "loc_0af9"

loc_0af9:
        inc $9e
        bne loc_0aff
        inc $9f

loc_0aff:
        lda $0bbb
        sta $d016
        ldy $0340
        jmp loc_0a55

dat_0b0b:
        .byte $00,$00                               // ..

loc_0b0d:
        sei
        ldx #$00
        stx $dc0e
        stx $d020
        inx
        stx $d01a
        ldx #$0b
        ldy #$b2
        sty $0314
        stx $0315
        lda #$33
        sta $01
        ldy $d0d8
        lda #$37
        sta $01
        ldx #$21
        cpy #$42
        bne loc_0b37
        ldx #$20

loc_0b37:
        stx $0b7b
        stx $0ba4
        ldx #$0d
        ldy #$20
        sty $9e
        stx $9f
        cli

loc_0b46:
        jmp loc_0b46

dat_0b49:
        .byte $a9                                   // .

// --- Region $0c33-$0c41 ---
.pc = $0c33 "loc_0c33"

loc_0c33:
        ldx #$33

loc_0c35:
        lda $0c00,x
        sta $02c0,x
        dex
        bpl loc_0c35
        jmp loc_0a6d

txt_0c41:
        .text "A"

// --- Region $0ce0-$0d0f ---
.pc = $0ce0 "loc_0ce0"

loc_0ce0:
        jsr $fd15
        jsr $fda3
        jsr $ff5b
        ldx #$60
        jsr sub_09d8
        nop
        lda #$13
        sta $0401
        ldx #$0f
        stx $0402
        dex
        stx $0403
        jmp loc_08e0

dat_0d00:
        .byte $00,$00                               // ..

loc_0d02:
        ldx #$0f

loc_0d04:
        lda dat_0d10,x
        sta $0808,x
        dex
        bpl loc_0d04
        jmp loc_08f0

// ============================================
// Data blocks
// ============================================

// --- Region $0801-$0814 ---
.pc = $0801 "dat_0801"

dat_0801:
        // === BASIC loader stub ===
        .byte $13,$08                                                     // [corrected] was: .byte $0b,$08                               // next line pointer ($080b)
        .byte $59,$00                                                     // [corrected] was: .byte $00,$00                               // line number 0
        .byte $00                                                         // [corrected] was: .byte $9e                                   // SYS token
        .byte $00,$00,$00,$00
        .byte $20                                                         // [corrected] was: .byte $00                                   // end of line
        .byte $5b,$54                                                     // [corrected] was: .byte $00,$00                               // end of BASIC program
        .text "RIAD"
        .byte $5d,$00,$00,$00

// --- Region $081a-$0841 ---
.pc = $081a "Program $081a"
        .byte $32,$60,$c0,$c2,$fe,$00,$e0,$f0,$d8,$cc,$c6,$ce,$fc,$00,$0e,$1e // 2`..............
        .byte $30,$60,$fc,$c0,$fe,$00,$0e,$1e,$30,$60,$fc,$c0,$c0,$00,$0e,$1e // 0`......0`......
        .byte $32,$60,$ce,$c2,$fe,$00,$26,$66       // 2`....&f

// --- Region $0848-$085c ---
.pc = $0848 "dat_0848"

dat_0848:
        .byte $1c,$78,$18,$18,$18,$18,$1c,$30,$0e,$1c,$0c,$0c,$4c,$cc,$fe,$00 // .x.....0....L...
        .byte $26,$66,$6c,$78,$fc                   // &flx.

// --- Region $0863-$08a1 ---
.pc = $0863 "dat_0863"

dat_0863:
        .byte $60,$62,$66,$fe,$00,$46,$ee,$fe,$d6,$c6,$c6,$c6,$00,$42,$c6,$e6 // `bf..F.......B..
        .byte $f6,$de,$ce,$c6,$00,$1c,$3e,$66,$c6,$c6,$cc,$78,$00,$0e,$1e,$36 // ......>f...x...6
        .byte $66,$fc,$c0,$c0,$00,$1c,$3e,$66,$c6,$d6,$dc,$77,$00,$0e,$1e,$36 // f.....>f...w...6
        .byte $66,$f8,$cc,$c6,$00,$0e,$1e,$32,$60,$fe,$06,$fe,$00,$7e,$fc // f......2`....~.

// --- Region $08a8-$08d3 ---
.pc = $08a8 "dat_08a8"

dat_08a8:
        .byte $26,$66,$66,$66,$e6,$c6,$fe,$00,$26,$66,$66,$66,$e6,$6c,$38,$00 // &fff....&fff.l8.
        .byte $62,$c6,$c6,$d6,$fe,$ee,$c4,$00,$26,$66,$ec,$38,$7c,$ee,$c6,$00 // b.......&f.8|...
        .byte $26,$66,$ec,$38,$18,$18,$1c,$30,$3e,$66,$cc,$18 // &f.8...0>f..

// --- Region $08e8-$08ef ---
.pc = $08e8 "dat_08e8"

dat_08e8:
        .byte $3c,$0c,$0c,$0c,$0c,$0c,$3c,$00       // <.....<.

// --- Region $0901-$090a ---
.pc = $0901 "Program $0901"
        .byte $00,$00,$00,$00,$00,$00,$00,$1c,$38,$38 // ........88

// --- Region $0933-$095f ---
.pc = $0933 "Program $0933"
        .byte $38,$67,$66,$3f,$00,$06,$0c,$18,$00,$00,$00,$00,$00,$0c,$18,$30 // 8gf?...........0
        .byte $30,$30,$18,$0c,$00,$30,$18,$0c,$0c,$0c,$18,$30,$00,$00,$66,$3c // 00...0.....0..f<
        .byte $ff,$3c,$66,$00,$00,$00,$18,$18,$7e,$18,$18,$00,$00 // .<f.....~....

// --- Region $0969-$0976 ---
.pc = $0969 "Program $0969"
        .byte $00,$00,$7e,$00,$00,$00,$00,$00,$00,$00,$00,$00,$18,$18 // ..~...........

// --- Region $097f-$09d7 ---
.pc = $097f "Program $097f"
        .byte $00,$3c,$66,$ce,$d6,$e6,$cc,$78,$00,$18,$38,$18,$18,$18,$18,$1c // .<f....x..8.....
        .byte $30,$0e,$1e,$36,$06,$fc,$c0,$fe,$00,$0e,$1e,$36,$06,$3c,$86,$fe // 0..6.......6.<..
        .byte $00,$0e,$1e,$36,$66,$fe,$06,$06,$00,$1e,$3e,$70,$e0,$fc,$0e,$fe // ...6f.....>p....
        .byte $00,$0e,$1e,$30,$60,$de,$f2,$fe,$00,$7e,$c6,$0c,$18,$18,$18,$1c // ...0`....~......
        .byte $30,$1e,$3e,$66,$66,$fc,$c6,$fe,$00,$3c,$66,$ce,$fe,$06,$0c,$38 // 0.>ff....<f....8
        .byte $00,$00,$18,$18,$00,$00,$18,$18,$00   // .........

// --- Region $09e0-$0a38 ---
.pc = $09e0 "Program $09e0"
        .byte $0e,$18,$30,$60,$30,$18,$0e,$00,$00,$00,$7e,$00,$7e,$00,$00,$00 // ..0`0.....~.~...
        .byte $70,$18,$0c,$06,$0c,$18,$70,$00,$1e,$3e,$66,$06,$18,$00,$18,$18 // p.....p..>f.....
        .byte $ff,$7e,$60,$40,$fe,$18,$01,$60,$e0,$01,$18,$61,$61,$b0,$c1,$18 // .~`@...`...aa...
        .byte $7c,$63,$18,$c1,$18,$66,$66,$0c,$c1,$18,$61,$6f,$fe,$fe,$00,$00 // |c...ff...ao....
        .byte $00,$04,$ff,$ff,$15,$1f,$ff,$10,$04,$ff,$04,$15,$1f,$ff,$08,$04 // ................
        .byte $00,$0f,$41,$1f,$ff,$df,$01,$ff,$2f   // ..A...../

// --- Region $0ad2-$0af8 ---
.pc = $0ad2 "Program $0ad2"
        .text "       "

txt_0ad9:
        .encoding "screencode_mixed"
        .text "dealer quality software"
        .encoding "petscii_upper"

txt_0af0:
        .text "         "

// --- Region $0b4a-$0c32 ---
.pc = $0b4a "Program $0b4a"
        .byte $d8,$8d,$16,$d0,$a9,$13,$8d,$18,$d0,$ea,$ea,$ea,$ea,$ea,$ea,$ea // ................
        .fill 15, $ea
        .byte $a2,$00,$a0,$0c,$bd,$48,$03,$ea,$ea,$24,$ea,$8d,$23,$d0,$bd,$40 // .....H...$..#..@
        .byte $03,$8d,$20,$d0,$8d,$21,$d0,$e8,$bd,$4b,$03,$c0,$02,$f0,$15,$ea // .. ..!...K......
        .byte $48,$ad,$12,$d0,$29,$07,$a8,$24,$ea,$ea,$ea,$ea,$68,$e0,$a0,$d0 // H...)..$....h...
        .byte $d7,$4c,$ba,$0b,$8d,$23,$d0,$bd,$40,$03,$8d,$20,$d0,$8d,$21,$d0 // .L...#..@.. ..!.
        .byte $e8,$bd,$4b,$03,$24,$ea,$4c,$89,$0b,$a9,$01,$8d,$19,$d0,$4c,$49 // ..K.$.L.......LI
        .byte $0b,$a9,$07,$8d,$16,$d0,$a9,$1b,$8d,$11,$d0,$a9,$40,$8d,$12,$d0 // ............@...
        .byte $ce,$bb,$0b,$ce,$bb,$0b,$10,$2c,$a9,$07,$8d,$bb,$0b,$a2,$00,$bd // .......,........
        .byte $c1,$07,$9d,$c0,$07,$e8,$e0,$28,$d0,$f5,$a0,$00,$b1,$9e,$f0,$06 // .......(........
        .byte $8d,$e7,$07,$4c,$fa,$0b,$a2,$0d,$a0,$20,$84,$9e,$86,$9f,$4c,$e3 // ...L..... ....L.
        .byte $0b,$4c,$f9,$0a,$4c,$ff,$0a,$a9,$15,$8d,$18,$d0,$a9,$c8,$8d,$16 // .L..L...........
        .byte $d0,$78                               // .x

dat_0c0b:
        // === Fill data (37 bytes, $0c0b-$0c2f) ===
        .fill 37, $ea
        .byte $4c,$e2,$fc                           // L..

// --- Region $0c42-$0cdf ---
.pc = $0c42 "Program $0c42"
        .text "AAAAAAABBBBBBBBC"
        .text "CCCCCCCDDDDDDDDE"
        .text "EEEEEEEFFFFFFFFG"
        .text "GGGGGGGHHHHHHHHI"
        .text "IIIIIIIMMMMMMMMA"
        .text "AAAAAAABBBBBBBBC"
        .text "CCCCCCCDDDDDDDDE"
        .text "EEEEEEEFFFFFFFFG"
        .text "GGGGGGGHHHHHHHHI"
        .text "IIIIIIIJJJJJJJ"

// --- Region $0d10-$0f6c ---
.pc = $0d10 "dat_0d10"

dat_0d10:
        .byte $0e,$1e,$36,$66,$fe,$c6,$c6,$00,$0e,$1e,$26,$66,$fc,$c6,$fe,$00 // ..6f......&f....

txt_0d20:
        .encoding "screencode_mixed"
        .text "..censor  why do ya fear budget games? to hard to crack? celluloid was easy to see through and we saw the great truth of life through the haze of random bytes littering u9-u"
        .encoding "petscii_upper"

txt_0dcd:
        .text "13  "
        .byte $15,$32,$31,$2d,$15                   // .21-.

txt_0dd6:
        .text "24. "

txt_0dda:
        .encoding "screencode_mixed"
        .text "psycho  wild one and the rest of the pack  step aside for sony and bismarck. no way you can beat this ultra giga crack. for the rest of the world: we hope you understand that we kid around and wish to god that we had a fast supplier. we do want the chance to slam the feed trap of those big mouthed suckers who think they can crack. you know which ones we mean.  hey! fairlight where are you"
        .encoding "petscii_upper"

txt_0f61:
        .text "?..       "
        .byte $00                                   // string terminator
        .byte $ff                                   // .
