Resolved forward reference frame_cnt to (byte) frame_cnt
Resolved forward reference frame_cnt to (byte) frame_cnt
Resolved forward reference irq to interrupt(HARDWARE_CLOBBER)(void()) irq()
Fixing pointer increment (signed word*) sin16s_gen::sintab ← ++ (signed word*) sin16s_gen::sintab
Fixing pointer increment (signed word*) sin16s_gen2::sintab ← ++ (signed word*) sin16s_gen2::sintab
Fixing pointer array-indexing *((signed word[$200]) SINUS + (word) main::idx_x)
Fixing pointer array-indexing *((signed word[$200]) SINUS + (word) main::idx_y)
Warning! Adding boolean cast to non-boolean condition *((byte*) strcpy::src)
Warning! Adding boolean cast to non-boolean condition (number~) abs_u16::$1
Warning! Adding boolean cast to non-boolean condition (number~) sgn_u16::$1
Warning! Adding boolean cast to non-boolean sub-expression (byte) frame_cnt
Identified constant variable (byte*) BITMAP
Identified constant variable (byte*) SCREEN
Inlined call (byte~) vicSelectGfxBank::$0 ← call toDd00 (byte*) vicSelectGfxBank::gfx 
Inlined call (byte~) main::$6 ← call toD018 (byte*) SCREEN (byte*) BITMAP 
Culled Empty Block (label) @1
Culled Empty Block (label) @2
Culled Empty Block (label) @3
Culled Empty Block (label) @4
Culled Empty Block (label) @5
Culled Empty Block (label) divr16u::@7
Culled Empty Block (label) @7
Culled Empty Block (label) @8
Culled Empty Block (label) div32u16u::@1
Culled Empty Block (label) @9
Culled Empty Block (label) @10
Culled Empty Block (label) @11
Culled Empty Block (label) @12
Culled Empty Block (label) @13
Culled Empty Block (label) @14
Culled Empty Block (label) @15
Culled Empty Block (label) mul16u::@5
Culled Empty Block (label) mul16u::@6
Culled Empty Block (label) mul16u::@8
Culled Empty Block (label) mul16u::@9
Culled Empty Block (label) @16
Culled Empty Block (label) mul16s::@5
Culled Empty Block (label) @18
Culled Empty Block (label) sin16s_gen2::@4
Culled Empty Block (label) sin16s_gen2::@3
Culled Empty Block (label) sin16s_gen2::@5
Culled Empty Block (label) sin16s_gen2::@6
Culled Empty Block (label) @19
Culled Empty Block (label) @20
Culled Empty Block (label) sin16s::@7
Culled Empty Block (label) @21
Culled Empty Block (label) @22
Culled Empty Block (label) mulu16_sel::@1
Culled Empty Block (label) @23
Culled Empty Block (label) @24
Culled Empty Block (label) @25
Culled Empty Block (label) @26
Culled Empty Block (label) memset::@7
Culled Empty Block (label) memset::@6
Culled Empty Block (label) memset::@8
Culled Empty Block (label) memset::@9
Culled Empty Block (label) memset::@3
Culled Empty Block (label) @27
Culled Empty Block (label) bitmap_init::@8
Culled Empty Block (label) @29
Culled Empty Block (label) @30
Culled Empty Block (label) @31
Culled Empty Block (label) @32
Culled Empty Block (label) @33
Culled Empty Block (label) main::toD0181_@1
Culled Empty Block (label) main::@9
Culled Empty Block (label) main::@3
Culled Empty Block (label) main::@10
Culled Empty Block (label) main::@7
Culled Empty Block (label) main::@14
Culled Empty Block (label) main::@8
Culled Empty Block (label) main::@15
Culled Empty Block (label) main::@16
Culled Empty Block (label) main::@20
Culled Empty Block (label) main::@19
Culled Empty Block (label) main::@21
Culled Empty Block (label) main::@22
Culled Empty Block (label) @36

CONTROL FLOW GRAPH SSA
@begin: scope:[]  from
  (byte*) PROCPORT_DDR#0 ← ((byte*)) (number) 0
  (byte) PROCPORT_DDR_MEMORY_MASK#0 ← (number) 7
  (byte*) PROCPORT#0 ← ((byte*)) (number) 1
  (byte) PROCPORT_RAM_IO#0 ← (number) 5
  (byte*) RASTER#0 ← ((byte*)) (number) $d012
  (byte*) BORDERCOL#0 ← ((byte*)) (number) $d020
  (byte*) BGCOL#0 ← ((byte*)) (number) $d021
  (byte*) VIC_CONTROL#0 ← ((byte*)) (number) $d011
  (byte*) D011#0 ← ((byte*)) (number) $d011
  (byte) VIC_BMM#0 ← (number) $20
  (byte) VIC_DEN#0 ← (number) $10
  (byte) VIC_RSEL#0 ← (number) 8
  (byte*) D018#0 ← ((byte*)) (number) $d018
  (byte*) IRQ_STATUS#0 ← ((byte*)) (number) $d019
  (byte*) IRQ_ENABLE#0 ← ((byte*)) (number) $d01a
  (byte) IRQ_RASTER#0 ← (number) 1
  (byte*) CIA1_INTERRUPT#0 ← ((byte*)) (number) $dc0d
  (byte) CIA_INTERRUPT_CLEAR#0 ← (number) $7f
  (void()**) HARDWARE_IRQ#0 ← ((void()**)) (number) $fffe
  (byte) BLACK#0 ← (number) 0
  (byte) WHITE#0 ← (number) 1
  to:@6
@6: scope:[]  from @begin
  (word) rem16u#0 ← (number) 0
  to:@17
divr16u: scope:[divr16u]  from div32u16u div32u16u::@2
  (word) divr16u::divisor#6 ← phi( div32u16u/(word) divr16u::divisor#0 div32u16u::@2/(word) divr16u::divisor#1 )
  (word) divr16u::dividend#5 ← phi( div32u16u/(word) divr16u::dividend#1 div32u16u::@2/(word) divr16u::dividend#2 )
  (word) divr16u::rem#10 ← phi( div32u16u/(word) divr16u::rem#3 div32u16u::@2/(word) divr16u::rem#4 )
  (word) divr16u::quotient#0 ← (number) 0
  (byte) divr16u::i#0 ← (byte) 0
  to:divr16u::@1
divr16u::@1: scope:[divr16u]  from divr16u divr16u::@3
  (byte) divr16u::i#5 ← phi( divr16u/(byte) divr16u::i#0 divr16u::@3/(byte) divr16u::i#1 )
  (word) divr16u::divisor#4 ← phi( divr16u/(word) divr16u::divisor#6 divr16u::@3/(word) divr16u::divisor#7 )
  (word) divr16u::quotient#6 ← phi( divr16u/(word) divr16u::quotient#0 divr16u::@3/(word) divr16u::quotient#8 )
  (word) divr16u::dividend#3 ← phi( divr16u/(word) divr16u::dividend#5 divr16u::@3/(word) divr16u::dividend#6 )
  (word) divr16u::rem#5 ← phi( divr16u/(word) divr16u::rem#10 divr16u::@3/(word) divr16u::rem#11 )
  (word~) divr16u::$0 ← (word) divr16u::rem#5 << (number) 1
  (word) divr16u::rem#0 ← (word~) divr16u::$0
  (byte~) divr16u::$1 ← > (word) divr16u::dividend#3
  (number~) divr16u::$2 ← (byte~) divr16u::$1 & (number) $80
  (bool~) divr16u::$3 ← (number~) divr16u::$2 != (number) 0
  (bool~) divr16u::$4 ← ! (bool~) divr16u::$3
  if((bool~) divr16u::$4) goto divr16u::@2
  to:divr16u::@4
divr16u::@2: scope:[divr16u]  from divr16u::@1 divr16u::@4
  (byte) divr16u::i#3 ← phi( divr16u::@1/(byte) divr16u::i#5 divr16u::@4/(byte) divr16u::i#6 )
  (word) divr16u::divisor#2 ← phi( divr16u::@1/(word) divr16u::divisor#4 divr16u::@4/(word) divr16u::divisor#5 )
  (word) divr16u::rem#6 ← phi( divr16u::@1/(word) divr16u::rem#0 divr16u::@4/(word) divr16u::rem#1 )
  (word) divr16u::quotient#3 ← phi( divr16u::@1/(word) divr16u::quotient#6 divr16u::@4/(word) divr16u::quotient#7 )
  (word) divr16u::dividend#4 ← phi( divr16u::@1/(word) divr16u::dividend#3 divr16u::@4/(word) divr16u::dividend#7 )
  (word~) divr16u::$6 ← (word) divr16u::dividend#4 << (number) 1
  (word) divr16u::dividend#0 ← (word~) divr16u::$6
  (word~) divr16u::$7 ← (word) divr16u::quotient#3 << (number) 1
  (word) divr16u::quotient#1 ← (word~) divr16u::$7
  (bool~) divr16u::$8 ← (word) divr16u::rem#6 >= (word) divr16u::divisor#2
  (bool~) divr16u::$9 ← ! (bool~) divr16u::$8
  if((bool~) divr16u::$9) goto divr16u::@3
  to:divr16u::@5
divr16u::@4: scope:[divr16u]  from divr16u::@1
  (byte) divr16u::i#6 ← phi( divr16u::@1/(byte) divr16u::i#5 )
  (word) divr16u::divisor#5 ← phi( divr16u::@1/(word) divr16u::divisor#4 )
  (word) divr16u::quotient#7 ← phi( divr16u::@1/(word) divr16u::quotient#6 )
  (word) divr16u::dividend#7 ← phi( divr16u::@1/(word) divr16u::dividend#3 )
  (word) divr16u::rem#7 ← phi( divr16u::@1/(word) divr16u::rem#0 )
  (number~) divr16u::$5 ← (word) divr16u::rem#7 | (number) 1
  (word) divr16u::rem#1 ← (number~) divr16u::$5
  to:divr16u::@2
divr16u::@3: scope:[divr16u]  from divr16u::@2 divr16u::@5
  (word) divr16u::divisor#7 ← phi( divr16u::@2/(word) divr16u::divisor#2 divr16u::@5/(word) divr16u::divisor#3 )
  (word) divr16u::quotient#8 ← phi( divr16u::@2/(word) divr16u::quotient#1 divr16u::@5/(word) divr16u::quotient#2 )
  (word) divr16u::dividend#6 ← phi( divr16u::@2/(word) divr16u::dividend#0 divr16u::@5/(word) divr16u::dividend#8 )
  (word) divr16u::rem#11 ← phi( divr16u::@2/(word) divr16u::rem#6 divr16u::@5/(word) divr16u::rem#2 )
  (byte) divr16u::i#2 ← phi( divr16u::@2/(byte) divr16u::i#3 divr16u::@5/(byte) divr16u::i#4 )
  (byte) divr16u::i#1 ← (byte) divr16u::i#2 + rangenext(0,$f)
  (bool~) divr16u::$11 ← (byte) divr16u::i#1 != rangelast(0,$f)
  if((bool~) divr16u::$11) goto divr16u::@1
  to:divr16u::@6
divr16u::@5: scope:[divr16u]  from divr16u::@2
  (word) divr16u::dividend#8 ← phi( divr16u::@2/(word) divr16u::dividend#0 )
  (byte) divr16u::i#4 ← phi( divr16u::@2/(byte) divr16u::i#3 )
  (word) divr16u::divisor#3 ← phi( divr16u::@2/(word) divr16u::divisor#2 )
  (word) divr16u::rem#8 ← phi( divr16u::@2/(word) divr16u::rem#6 )
  (word) divr16u::quotient#4 ← phi( divr16u::@2/(word) divr16u::quotient#1 )
  (word) divr16u::quotient#2 ← ++ (word) divr16u::quotient#4
  (word~) divr16u::$10 ← (word) divr16u::rem#8 - (word) divr16u::divisor#3
  (word) divr16u::rem#2 ← (word~) divr16u::$10
  to:divr16u::@3
divr16u::@6: scope:[divr16u]  from divr16u::@3
  (word) divr16u::quotient#5 ← phi( divr16u::@3/(word) divr16u::quotient#8 )
  (word) divr16u::rem#9 ← phi( divr16u::@3/(word) divr16u::rem#11 )
  (word) rem16u#1 ← (word) divr16u::rem#9
  (word) divr16u::return#0 ← (word) divr16u::quotient#5
  to:divr16u::@return
divr16u::@return: scope:[divr16u]  from divr16u::@6
  (word) rem16u#11 ← phi( divr16u::@6/(word) rem16u#1 )
  (word) divr16u::return#4 ← phi( divr16u::@6/(word) divr16u::return#0 )
  (word) divr16u::return#1 ← (word) divr16u::return#4
  (word) rem16u#2 ← (word) rem16u#11
  return 
  to:@return
div32u16u: scope:[div32u16u]  from sin16s_gen2
  (word) rem16u#20 ← phi( sin16s_gen2/(word) rem16u#21 )
  (word) div32u16u::divisor#1 ← phi( sin16s_gen2/(word) div32u16u::divisor#0 )
  (dword) div32u16u::dividend#1 ← phi( sin16s_gen2/(dword) div32u16u::dividend#0 )
  (word~) div32u16u::$0 ← > (dword) div32u16u::dividend#1
  (word) divr16u::dividend#1 ← (word~) div32u16u::$0
  (word) divr16u::divisor#0 ← (word) div32u16u::divisor#1
  (word) divr16u::rem#3 ← (number) 0
  call divr16u 
  (word) divr16u::return#2 ← (word) divr16u::return#1
  to:div32u16u::@2
div32u16u::@2: scope:[div32u16u]  from div32u16u
  (word) div32u16u::divisor#2 ← phi( div32u16u/(word) div32u16u::divisor#1 )
  (dword) div32u16u::dividend#2 ← phi( div32u16u/(dword) div32u16u::dividend#1 )
  (word) rem16u#12 ← phi( div32u16u/(word) rem16u#2 )
  (word) divr16u::return#5 ← phi( div32u16u/(word) divr16u::return#2 )
  (word~) div32u16u::$1 ← (word) divr16u::return#5
  (word) rem16u#3 ← (word) rem16u#12
  (word) div32u16u::quotient_hi#0 ← (word~) div32u16u::$1
  (word~) div32u16u::$2 ← < (dword) div32u16u::dividend#2
  (word) divr16u::dividend#2 ← (word~) div32u16u::$2
  (word) divr16u::divisor#1 ← (word) div32u16u::divisor#2
  (word) divr16u::rem#4 ← (word) rem16u#3
  call divr16u 
  (word) divr16u::return#3 ← (word) divr16u::return#1
  to:div32u16u::@3
div32u16u::@3: scope:[div32u16u]  from div32u16u::@2
  (word) div32u16u::quotient_hi#1 ← phi( div32u16u::@2/(word) div32u16u::quotient_hi#0 )
  (word) rem16u#13 ← phi( div32u16u::@2/(word) rem16u#2 )
  (word) divr16u::return#6 ← phi( div32u16u::@2/(word) divr16u::return#3 )
  (word~) div32u16u::$3 ← (word) divr16u::return#6
  (word) rem16u#4 ← (word) rem16u#13
  (word) div32u16u::quotient_lo#0 ← (word~) div32u16u::$3
  (dword) div32u16u::quotient#0 ← ((dword)) { (word) div32u16u::quotient_hi#1, (word) div32u16u::quotient_lo#0 }
  (dword) div32u16u::return#0 ← (dword) div32u16u::quotient#0
  to:div32u16u::@return
div32u16u::@return: scope:[div32u16u]  from div32u16u::@3
  (word) rem16u#14 ← phi( div32u16u::@3/(word) rem16u#4 )
  (dword) div32u16u::return#3 ← phi( div32u16u::@3/(dword) div32u16u::return#0 )
  (dword) div32u16u::return#1 ← (dword) div32u16u::return#3
  (word) rem16u#5 ← (word) rem16u#14
  return 
  to:@return
mul16u: scope:[mul16u]  from mul16s mulu16_sel
  (word) mul16u::a#6 ← phi( mul16s/(word) mul16u::a#1 mulu16_sel/(word) mul16u::a#2 )
  (word) mul16u::b#2 ← phi( mul16s/(word) mul16u::b#0 mulu16_sel/(word) mul16u::b#1 )
  (dword) mul16u::res#0 ← (number) 0
  (dword) mul16u::mb#0 ← (word) mul16u::b#2
  to:mul16u::@1
mul16u::@1: scope:[mul16u]  from mul16u mul16u::@4
  (dword) mul16u::mb#5 ← phi( mul16u/(dword) mul16u::mb#0 mul16u::@4/(dword) mul16u::mb#1 )
  (dword) mul16u::res#4 ← phi( mul16u/(dword) mul16u::res#0 mul16u::@4/(dword) mul16u::res#6 )
  (word) mul16u::a#3 ← phi( mul16u/(word) mul16u::a#6 mul16u::@4/(word) mul16u::a#0 )
  (bool~) mul16u::$0 ← (word) mul16u::a#3 != (number) 0
  if((bool~) mul16u::$0) goto mul16u::@2
  to:mul16u::@3
mul16u::@2: scope:[mul16u]  from mul16u::@1
  (dword) mul16u::res#5 ← phi( mul16u::@1/(dword) mul16u::res#4 )
  (dword) mul16u::mb#4 ← phi( mul16u::@1/(dword) mul16u::mb#5 )
  (word) mul16u::a#4 ← phi( mul16u::@1/(word) mul16u::a#3 )
  (number~) mul16u::$1 ← (word) mul16u::a#4 & (number) 1
  (bool~) mul16u::$2 ← (number~) mul16u::$1 != (number) 0
  (bool~) mul16u::$3 ← ! (bool~) mul16u::$2
  if((bool~) mul16u::$3) goto mul16u::@4
  to:mul16u::@7
mul16u::@3: scope:[mul16u]  from mul16u::@1
  (dword) mul16u::res#2 ← phi( mul16u::@1/(dword) mul16u::res#4 )
  (dword) mul16u::return#0 ← (dword) mul16u::res#2
  to:mul16u::@return
mul16u::@4: scope:[mul16u]  from mul16u::@2 mul16u::@7
  (dword) mul16u::res#6 ← phi( mul16u::@2/(dword) mul16u::res#5 mul16u::@7/(dword) mul16u::res#1 )
  (dword) mul16u::mb#2 ← phi( mul16u::@2/(dword) mul16u::mb#4 mul16u::@7/(dword) mul16u::mb#3 )
  (word) mul16u::a#5 ← phi( mul16u::@2/(word) mul16u::a#4 mul16u::@7/(word) mul16u::a#7 )
  (word~) mul16u::$5 ← (word) mul16u::a#5 >> (number) 1
  (word) mul16u::a#0 ← (word~) mul16u::$5
  (dword~) mul16u::$6 ← (dword) mul16u::mb#2 << (number) 1
  (dword) mul16u::mb#1 ← (dword~) mul16u::$6
  to:mul16u::@1
mul16u::@7: scope:[mul16u]  from mul16u::@2
  (word) mul16u::a#7 ← phi( mul16u::@2/(word) mul16u::a#4 )
  (dword) mul16u::mb#3 ← phi( mul16u::@2/(dword) mul16u::mb#4 )
  (dword) mul16u::res#3 ← phi( mul16u::@2/(dword) mul16u::res#5 )
  (dword~) mul16u::$4 ← (dword) mul16u::res#3 + (dword) mul16u::mb#3
  (dword) mul16u::res#1 ← (dword~) mul16u::$4
  to:mul16u::@4
mul16u::@return: scope:[mul16u]  from mul16u::@3
  (dword) mul16u::return#4 ← phi( mul16u::@3/(dword) mul16u::return#0 )
  (dword) mul16u::return#1 ← (dword) mul16u::return#4
  return 
  to:@return
mul16s: scope:[mul16s]  from main::@2 main::@28 sin16s_gen2::@8
  (signed word) mul16s::b#3 ← phi( main::@2/(signed word) mul16s::b#1 main::@28/(signed word) mul16s::b#2 sin16s_gen2::@8/(signed word) mul16s::b#0 )
  (signed word) mul16s::a#3 ← phi( main::@2/(signed word) mul16s::a#1 main::@28/(signed word) mul16s::a#2 sin16s_gen2::@8/(signed word) mul16s::a#0 )
  (word~) mul16s::$0 ← ((word)) (signed word) mul16s::a#3
  (word~) mul16s::$1 ← ((word)) (signed word) mul16s::b#3
  (word) mul16u::a#1 ← (word~) mul16s::$0
  (word) mul16u::b#0 ← (word~) mul16s::$1
  call mul16u 
  (dword) mul16u::return#2 ← (dword) mul16u::return#1
  to:mul16s::@6
mul16s::@6: scope:[mul16s]  from mul16s
  (signed word) mul16s::b#6 ← phi( mul16s/(signed word) mul16s::b#3 )
  (signed word) mul16s::a#4 ← phi( mul16s/(signed word) mul16s::a#3 )
  (dword) mul16u::return#5 ← phi( mul16s/(dword) mul16u::return#2 )
  (dword~) mul16s::$2 ← (dword) mul16u::return#5
  (dword) mul16s::m#0 ← (dword~) mul16s::$2
  (bool~) mul16s::$3 ← (signed word) mul16s::a#4 < (number) 0
  (bool~) mul16s::$4 ← ! (bool~) mul16s::$3
  if((bool~) mul16s::$4) goto mul16s::@1
  to:mul16s::@3
mul16s::@1: scope:[mul16s]  from mul16s::@3 mul16s::@6
  (signed word) mul16s::a#6 ← phi( mul16s::@3/(signed word) mul16s::a#7 mul16s::@6/(signed word) mul16s::a#4 )
  (dword) mul16s::m#6 ← phi( mul16s::@3/(dword) mul16s::m#1 mul16s::@6/(dword) mul16s::m#0 )
  (signed word) mul16s::b#4 ← phi( mul16s::@3/(signed word) mul16s::b#5 mul16s::@6/(signed word) mul16s::b#6 )
  (bool~) mul16s::$5 ← (signed word) mul16s::b#4 < (number) 0
  (bool~) mul16s::$6 ← ! (bool~) mul16s::$5
  if((bool~) mul16s::$6) goto mul16s::@2
  to:mul16s::@4
mul16s::@3: scope:[mul16s]  from mul16s::@6
  (signed word) mul16s::a#7 ← phi( mul16s::@6/(signed word) mul16s::a#4 )
  (signed word) mul16s::b#5 ← phi( mul16s::@6/(signed word) mul16s::b#6 )
  (dword) mul16s::m#3 ← phi( mul16s::@6/(dword) mul16s::m#0 )
  (word~) mul16s::$9 ← > (dword) mul16s::m#3
  (word~) mul16s::$10 ← ((word)) (signed word) mul16s::b#5
  (word~) mul16s::$11 ← (word~) mul16s::$9 - (word~) mul16s::$10
  (word~) mul16s::$16 ← (word~) mul16s::$11
  (dword) mul16s::m#1 ← (dword) mul16s::m#3 hi= (word~) mul16s::$16
  to:mul16s::@1
mul16s::@2: scope:[mul16s]  from mul16s::@1 mul16s::@4
  (dword) mul16s::m#4 ← phi( mul16s::@1/(dword) mul16s::m#6 mul16s::@4/(dword) mul16s::m#2 )
  (signed dword~) mul16s::$7 ← ((signed dword)) (dword) mul16s::m#4
  (signed dword) mul16s::return#0 ← (signed dword~) mul16s::$7
  to:mul16s::@return
mul16s::@4: scope:[mul16s]  from mul16s::@1
  (signed word) mul16s::a#5 ← phi( mul16s::@1/(signed word) mul16s::a#6 )
  (dword) mul16s::m#5 ← phi( mul16s::@1/(dword) mul16s::m#6 )
  (word~) mul16s::$13 ← > (dword) mul16s::m#5
  (word~) mul16s::$14 ← ((word)) (signed word) mul16s::a#5
  (word~) mul16s::$15 ← (word~) mul16s::$13 - (word~) mul16s::$14
  (word~) mul16s::$17 ← (word~) mul16s::$15
  (dword) mul16s::m#2 ← (dword) mul16s::m#5 hi= (word~) mul16s::$17
  to:mul16s::@2
mul16s::@return: scope:[mul16s]  from mul16s::@2
  (signed dword) mul16s::return#5 ← phi( mul16s::@2/(signed dword) mul16s::return#0 )
  (signed dword) mul16s::return#1 ← (signed dword) mul16s::return#5
  return 
  to:@return
@17: scope:[]  from @6
  (word) rem16u#41 ← phi( @6/(word) rem16u#0 )
  (dword) PI2_u4f28#0 ← (number) $6487ed51
  (dword) PI_u4f28#0 ← (number) $3243f6a9
  (dword) PI_HALF_u4f28#0 ← (number) $1921fb54
  to:@28
sin16s_gen2: scope:[sin16s_gen2]  from main
  (signed word*) sin16s_gen2::sintab#7 ← phi( main/(signed word*) sin16s_gen2::sintab#1 )
  (word) rem16u#21 ← phi( main/(word) rem16u#23 )
  (word) sin16s_gen2::wavelength#1 ← phi( main/(word) sin16s_gen2::wavelength#0 )
  (signed word) sin16s_gen2::min#1 ← phi( main/(signed word) sin16s_gen2::min#0 )
  (signed word) sin16s_gen2::max#1 ← phi( main/(signed word) sin16s_gen2::max#0 )
  (signed word~) sin16s_gen2::$0 ← (signed word) sin16s_gen2::max#1 - (signed word) sin16s_gen2::min#1
  (signed word) sin16s_gen2::ampl#0 ← (signed word~) sin16s_gen2::$0
  (signed word~) sin16s_gen2::$1 ← (signed word) sin16s_gen2::ampl#0 >> (number) 1
  (signed word~) sin16s_gen2::$2 ← (signed word) sin16s_gen2::min#1 + (signed word~) sin16s_gen2::$1
  (signed word) sin16s_gen2::offs#0 ← (signed word~) sin16s_gen2::$2
  (dword) div32u16u::dividend#0 ← (dword) PI2_u4f28#0
  (word) div32u16u::divisor#0 ← (word) sin16s_gen2::wavelength#1
  call div32u16u 
  (dword) div32u16u::return#2 ← (dword) div32u16u::return#1
  to:sin16s_gen2::@7
sin16s_gen2::@7: scope:[sin16s_gen2]  from sin16s_gen2
  (signed word*) sin16s_gen2::sintab#6 ← phi( sin16s_gen2/(signed word*) sin16s_gen2::sintab#7 )
  (signed word) sin16s_gen2::offs#5 ← phi( sin16s_gen2/(signed word) sin16s_gen2::offs#0 )
  (signed word) sin16s_gen2::ampl#4 ← phi( sin16s_gen2/(signed word) sin16s_gen2::ampl#0 )
  (word) sin16s_gen2::wavelength#3 ← phi( sin16s_gen2/(word) sin16s_gen2::wavelength#1 )
  (word) rem16u#15 ← phi( sin16s_gen2/(word) rem16u#5 )
  (dword) div32u16u::return#4 ← phi( sin16s_gen2/(dword) div32u16u::return#2 )
  (dword~) sin16s_gen2::$3 ← (dword) div32u16u::return#4
  (word) rem16u#6 ← (word) rem16u#15
  (dword) sin16s_gen2::step#0 ← (dword~) sin16s_gen2::$3
  (dword) sin16s_gen2::x#0 ← (number) 0
  (word) sin16s_gen2::i#0 ← (number) 0
  to:sin16s_gen2::@1
sin16s_gen2::@1: scope:[sin16s_gen2]  from sin16s_gen2::@7 sin16s_gen2::@9
  (dword) sin16s_gen2::step#4 ← phi( sin16s_gen2::@7/(dword) sin16s_gen2::step#0 sin16s_gen2::@9/(dword) sin16s_gen2::step#1 )
  (signed word*) sin16s_gen2::sintab#5 ← phi( sin16s_gen2::@7/(signed word*) sin16s_gen2::sintab#6 sin16s_gen2::@9/(signed word*) sin16s_gen2::sintab#0 )
  (signed word) sin16s_gen2::offs#4 ← phi( sin16s_gen2::@7/(signed word) sin16s_gen2::offs#5 sin16s_gen2::@9/(signed word) sin16s_gen2::offs#1 )
  (signed word) sin16s_gen2::ampl#3 ← phi( sin16s_gen2::@7/(signed word) sin16s_gen2::ampl#4 sin16s_gen2::@9/(signed word) sin16s_gen2::ampl#5 )
  (word) rem16u#22 ← phi( sin16s_gen2::@7/(word) rem16u#6 sin16s_gen2::@9/(word) rem16u#26 )
  (dword) sin16s_gen2::x#4 ← phi( sin16s_gen2::@7/(dword) sin16s_gen2::x#0 sin16s_gen2::@9/(dword) sin16s_gen2::x#1 )
  (word) sin16s_gen2::wavelength#2 ← phi( sin16s_gen2::@7/(word) sin16s_gen2::wavelength#3 sin16s_gen2::@9/(word) sin16s_gen2::wavelength#4 )
  (word) sin16s_gen2::i#2 ← phi( sin16s_gen2::@7/(word) sin16s_gen2::i#0 sin16s_gen2::@9/(word) sin16s_gen2::i#1 )
  (bool~) sin16s_gen2::$4 ← (word) sin16s_gen2::i#2 < (word) sin16s_gen2::wavelength#2
  if((bool~) sin16s_gen2::$4) goto sin16s_gen2::@2
  to:sin16s_gen2::@return
sin16s_gen2::@2: scope:[sin16s_gen2]  from sin16s_gen2::@1
  (word) rem16u#36 ← phi( sin16s_gen2::@1/(word) rem16u#22 )
  (word) sin16s_gen2::wavelength#6 ← phi( sin16s_gen2::@1/(word) sin16s_gen2::wavelength#2 )
  (word) sin16s_gen2::i#5 ← phi( sin16s_gen2::@1/(word) sin16s_gen2::i#2 )
  (dword) sin16s_gen2::step#3 ← phi( sin16s_gen2::@1/(dword) sin16s_gen2::step#4 )
  (signed word*) sin16s_gen2::sintab#4 ← phi( sin16s_gen2::@1/(signed word*) sin16s_gen2::sintab#5 )
  (signed word) sin16s_gen2::offs#3 ← phi( sin16s_gen2::@1/(signed word) sin16s_gen2::offs#4 )
  (signed word) sin16s_gen2::ampl#2 ← phi( sin16s_gen2::@1/(signed word) sin16s_gen2::ampl#3 )
  (dword) sin16s_gen2::x#2 ← phi( sin16s_gen2::@1/(dword) sin16s_gen2::x#4 )
  (dword) sin16s::x#0 ← (dword) sin16s_gen2::x#2
  call sin16s 
  (signed word) sin16s::return#0 ← (signed word) sin16s::return#2
  to:sin16s_gen2::@8
sin16s_gen2::@8: scope:[sin16s_gen2]  from sin16s_gen2::@2
  (word) rem16u#31 ← phi( sin16s_gen2::@2/(word) rem16u#36 )
  (word) sin16s_gen2::wavelength#5 ← phi( sin16s_gen2::@2/(word) sin16s_gen2::wavelength#6 )
  (word) sin16s_gen2::i#4 ← phi( sin16s_gen2::@2/(word) sin16s_gen2::i#5 )
  (dword) sin16s_gen2::step#2 ← phi( sin16s_gen2::@2/(dword) sin16s_gen2::step#3 )
  (dword) sin16s_gen2::x#5 ← phi( sin16s_gen2::@2/(dword) sin16s_gen2::x#2 )
  (signed word*) sin16s_gen2::sintab#3 ← phi( sin16s_gen2::@2/(signed word*) sin16s_gen2::sintab#4 )
  (signed word) sin16s_gen2::offs#2 ← phi( sin16s_gen2::@2/(signed word) sin16s_gen2::offs#3 )
  (signed word) sin16s_gen2::ampl#1 ← phi( sin16s_gen2::@2/(signed word) sin16s_gen2::ampl#2 )
  (signed word) sin16s::return#3 ← phi( sin16s_gen2::@2/(signed word) sin16s::return#0 )
  (signed word~) sin16s_gen2::$5 ← (signed word) sin16s::return#3
  (signed word) mul16s::a#0 ← (signed word~) sin16s_gen2::$5
  (signed word) mul16s::b#0 ← (signed word) sin16s_gen2::ampl#1
  call mul16s 
  (signed dword) mul16s::return#2 ← (signed dword) mul16s::return#1
  to:sin16s_gen2::@9
sin16s_gen2::@9: scope:[sin16s_gen2]  from sin16s_gen2::@8
  (signed word) sin16s_gen2::ampl#5 ← phi( sin16s_gen2::@8/(signed word) sin16s_gen2::ampl#1 )
  (word) rem16u#26 ← phi( sin16s_gen2::@8/(word) rem16u#31 )
  (word) sin16s_gen2::wavelength#4 ← phi( sin16s_gen2::@8/(word) sin16s_gen2::wavelength#5 )
  (word) sin16s_gen2::i#3 ← phi( sin16s_gen2::@8/(word) sin16s_gen2::i#4 )
  (dword) sin16s_gen2::step#1 ← phi( sin16s_gen2::@8/(dword) sin16s_gen2::step#2 )
  (dword) sin16s_gen2::x#3 ← phi( sin16s_gen2::@8/(dword) sin16s_gen2::x#5 )
  (signed word*) sin16s_gen2::sintab#2 ← phi( sin16s_gen2::@8/(signed word*) sin16s_gen2::sintab#3 )
  (signed word) sin16s_gen2::offs#1 ← phi( sin16s_gen2::@8/(signed word) sin16s_gen2::offs#2 )
  (signed dword) mul16s::return#6 ← phi( sin16s_gen2::@8/(signed dword) mul16s::return#2 )
  (signed dword~) sin16s_gen2::$6 ← (signed dword) mul16s::return#6
  (word~) sin16s_gen2::$7 ← > (signed dword~) sin16s_gen2::$6
  (signed word~) sin16s_gen2::$8 ← ((signed word)) (word~) sin16s_gen2::$7
  (signed word~) sin16s_gen2::$9 ← (signed word) sin16s_gen2::offs#1 + (signed word~) sin16s_gen2::$8
  *((signed word*) sin16s_gen2::sintab#2) ← (signed word~) sin16s_gen2::$9
  (signed word*) sin16s_gen2::sintab#0 ← (signed word*) sin16s_gen2::sintab#2 + (const byte) SIZEOF_SIGNED_WORD
  (dword~) sin16s_gen2::$10 ← (dword) sin16s_gen2::x#3 + (dword) sin16s_gen2::step#1
  (dword) sin16s_gen2::x#1 ← (dword~) sin16s_gen2::$10
  (word) sin16s_gen2::i#1 ← ++ (word) sin16s_gen2::i#3
  to:sin16s_gen2::@1
sin16s_gen2::@return: scope:[sin16s_gen2]  from sin16s_gen2::@1
  (word) rem16u#16 ← phi( sin16s_gen2::@1/(word) rem16u#22 )
  (word) rem16u#7 ← (word) rem16u#16
  return 
  to:@return
sin16s: scope:[sin16s]  from sin16s_gen2::@2
  (dword) sin16s::x#3 ← phi( sin16s_gen2::@2/(dword) sin16s::x#0 )
  (byte) sin16s::isUpper#0 ← (number) 0
  (bool~) sin16s::$0 ← (dword) sin16s::x#3 >= (dword) PI_u4f28#0
  (bool~) sin16s::$1 ← ! (bool~) sin16s::$0
  if((bool~) sin16s::$1) goto sin16s::@1
  to:sin16s::@4
sin16s::@1: scope:[sin16s]  from sin16s sin16s::@4
  (byte) sin16s::isUpper#8 ← phi( sin16s/(byte) sin16s::isUpper#0 sin16s::@4/(byte) sin16s::isUpper#1 )
  (dword) sin16s::x#4 ← phi( sin16s/(dword) sin16s::x#3 sin16s::@4/(dword) sin16s::x#1 )
  (bool~) sin16s::$2 ← (dword) sin16s::x#4 >= (dword) PI_HALF_u4f28#0
  (bool~) sin16s::$3 ← ! (bool~) sin16s::$2
  if((bool~) sin16s::$3) goto sin16s::@2
  to:sin16s::@5
sin16s::@4: scope:[sin16s]  from sin16s
  (dword) sin16s::x#5 ← phi( sin16s/(dword) sin16s::x#3 )
  (dword~) sin16s::$17 ← (dword) sin16s::x#5 - (dword) PI_u4f28#0
  (dword) sin16s::x#1 ← (dword~) sin16s::$17
  (byte) sin16s::isUpper#1 ← (number) 1
  to:sin16s::@1
sin16s::@2: scope:[sin16s]  from sin16s::@1 sin16s::@5
  (byte) sin16s::isUpper#7 ← phi( sin16s::@1/(byte) sin16s::isUpper#8 sin16s::@5/(byte) sin16s::isUpper#9 )
  (dword) sin16s::x#6 ← phi( sin16s::@1/(dword) sin16s::x#4 sin16s::@5/(dword) sin16s::x#2 )
  (dword~) sin16s::$4 ← (dword) sin16s::x#6 << (number) 3
  (word~) sin16s::$5 ← > (dword~) sin16s::$4
  (word) sin16s::x1#0 ← (word~) sin16s::$5
  (word) mulu16_sel::v1#0 ← (word) sin16s::x1#0
  (word) mulu16_sel::v2#0 ← (word) sin16s::x1#0
  (byte) mulu16_sel::select#0 ← (number) 0
  call mulu16_sel 
  (word) mulu16_sel::return#0 ← (word) mulu16_sel::return#6
  to:sin16s::@8
sin16s::@8: scope:[sin16s]  from sin16s::@2
  (byte) sin16s::isUpper#6 ← phi( sin16s::@2/(byte) sin16s::isUpper#7 )
  (word) sin16s::x1#1 ← phi( sin16s::@2/(word) sin16s::x1#0 )
  (word) mulu16_sel::return#7 ← phi( sin16s::@2/(word) mulu16_sel::return#0 )
  (word~) sin16s::$6 ← (word) mulu16_sel::return#7
  (word) sin16s::x2#0 ← (word~) sin16s::$6
  (word) mulu16_sel::v1#1 ← (word) sin16s::x2#0
  (word) mulu16_sel::v2#1 ← (word) sin16s::x1#1
  (byte) mulu16_sel::select#1 ← (number) 1
  call mulu16_sel 
  (word) mulu16_sel::return#1 ← (word) mulu16_sel::return#6
  to:sin16s::@9
sin16s::@9: scope:[sin16s]  from sin16s::@8
  (byte) sin16s::isUpper#5 ← phi( sin16s::@8/(byte) sin16s::isUpper#6 )
  (word) sin16s::x1#4 ← phi( sin16s::@8/(word) sin16s::x1#1 )
  (word) mulu16_sel::return#8 ← phi( sin16s::@8/(word) mulu16_sel::return#1 )
  (word~) sin16s::$7 ← (word) mulu16_sel::return#8
  (word) sin16s::x3#0 ← (word~) sin16s::$7
  (word) mulu16_sel::v1#2 ← (word) sin16s::x3#0
  (word) mulu16_sel::v2#2 ← (number) $10000/(number) 6
  (byte) mulu16_sel::select#2 ← (number) 1
  call mulu16_sel 
  (word) mulu16_sel::return#2 ← (word) mulu16_sel::return#6
  to:sin16s::@10
sin16s::@10: scope:[sin16s]  from sin16s::@9
  (byte) sin16s::isUpper#4 ← phi( sin16s::@9/(byte) sin16s::isUpper#5 )
  (word) sin16s::x3#1 ← phi( sin16s::@9/(word) sin16s::x3#0 )
  (word) sin16s::x1#2 ← phi( sin16s::@9/(word) sin16s::x1#4 )
  (word) mulu16_sel::return#9 ← phi( sin16s::@9/(word) mulu16_sel::return#2 )
  (word~) sin16s::$8 ← (word) mulu16_sel::return#9
  (word) sin16s::x3_6#0 ← (word~) sin16s::$8
  (word~) sin16s::$9 ← (word) sin16s::x1#2 - (word) sin16s::x3_6#0
  (word) sin16s::usinx#0 ← (word~) sin16s::$9
  (word) mulu16_sel::v1#3 ← (word) sin16s::x3#1
  (word) mulu16_sel::v2#3 ← (word) sin16s::x1#2
  (byte) mulu16_sel::select#3 ← (number) 0
  call mulu16_sel 
  (word) mulu16_sel::return#3 ← (word) mulu16_sel::return#6
  to:sin16s::@11
sin16s::@11: scope:[sin16s]  from sin16s::@10
  (byte) sin16s::isUpper#3 ← phi( sin16s::@10/(byte) sin16s::isUpper#4 )
  (word) sin16s::usinx#4 ← phi( sin16s::@10/(word) sin16s::usinx#0 )
  (word) sin16s::x1#3 ← phi( sin16s::@10/(word) sin16s::x1#2 )
  (word) mulu16_sel::return#10 ← phi( sin16s::@10/(word) mulu16_sel::return#3 )
  (word~) sin16s::$10 ← (word) mulu16_sel::return#10
  (word) sin16s::x4#0 ← (word~) sin16s::$10
  (word) mulu16_sel::v1#4 ← (word) sin16s::x4#0
  (word) mulu16_sel::v2#4 ← (word) sin16s::x1#3
  (byte) mulu16_sel::select#4 ← (number) 0
  call mulu16_sel 
  (word) mulu16_sel::return#4 ← (word) mulu16_sel::return#6
  to:sin16s::@12
sin16s::@12: scope:[sin16s]  from sin16s::@11
  (byte) sin16s::isUpper#2 ← phi( sin16s::@11/(byte) sin16s::isUpper#3 )
  (word) sin16s::usinx#2 ← phi( sin16s::@11/(word) sin16s::usinx#4 )
  (word) mulu16_sel::return#11 ← phi( sin16s::@11/(word) mulu16_sel::return#4 )
  (word~) sin16s::$11 ← (word) mulu16_sel::return#11
  (word) sin16s::x5#0 ← (word~) sin16s::$11
  (word~) sin16s::$12 ← (word) sin16s::x5#0 >> (number) 4
  (word) sin16s::x5_128#0 ← (word~) sin16s::$12
  (word~) sin16s::$13 ← (word) sin16s::usinx#2 + (word) sin16s::x5_128#0
  (word) sin16s::usinx#1 ← (word~) sin16s::$13
  (signed word~) sin16s::$14 ← ((signed word)) (word) sin16s::usinx#1
  (signed word) sin16s::sinx#0 ← (signed word~) sin16s::$14
  (bool~) sin16s::$15 ← (byte) sin16s::isUpper#2 != (number) 0
  (bool~) sin16s::$16 ← ! (bool~) sin16s::$15
  if((bool~) sin16s::$16) goto sin16s::@3
  to:sin16s::@6
sin16s::@5: scope:[sin16s]  from sin16s::@1
  (byte) sin16s::isUpper#9 ← phi( sin16s::@1/(byte) sin16s::isUpper#8 )
  (dword) sin16s::x#7 ← phi( sin16s::@1/(dword) sin16s::x#4 )
  (dword~) sin16s::$18 ← (dword) PI_u4f28#0 - (dword) sin16s::x#7
  (dword) sin16s::x#2 ← (dword~) sin16s::$18
  to:sin16s::@2
sin16s::@3: scope:[sin16s]  from sin16s::@12 sin16s::@6
  (signed word) sin16s::sinx#2 ← phi( sin16s::@12/(signed word) sin16s::sinx#0 sin16s::@6/(signed word) sin16s::sinx#1 )
  (signed word) sin16s::return#1 ← (signed word) sin16s::sinx#2
  to:sin16s::@return
sin16s::@6: scope:[sin16s]  from sin16s::@12
  (word) sin16s::usinx#3 ← phi( sin16s::@12/(word) sin16s::usinx#1 )
  (signed word~) sin16s::$19 ← ((signed word)) (word) sin16s::usinx#3
  (signed word~) sin16s::$20 ← - (signed word~) sin16s::$19
  (signed word) sin16s::sinx#1 ← (signed word~) sin16s::$20
  to:sin16s::@3
sin16s::@return: scope:[sin16s]  from sin16s::@3
  (signed word) sin16s::return#4 ← phi( sin16s::@3/(signed word) sin16s::return#1 )
  (signed word) sin16s::return#2 ← (signed word) sin16s::return#4
  return 
  to:@return
mulu16_sel: scope:[mulu16_sel]  from sin16s::@10 sin16s::@11 sin16s::@2 sin16s::@8 sin16s::@9
  (byte) mulu16_sel::select#6 ← phi( sin16s::@10/(byte) mulu16_sel::select#3 sin16s::@11/(byte) mulu16_sel::select#4 sin16s::@2/(byte) mulu16_sel::select#0 sin16s::@8/(byte) mulu16_sel::select#1 sin16s::@9/(byte) mulu16_sel::select#2 )
  (word) mulu16_sel::v2#5 ← phi( sin16s::@10/(word) mulu16_sel::v2#3 sin16s::@11/(word) mulu16_sel::v2#4 sin16s::@2/(word) mulu16_sel::v2#0 sin16s::@8/(word) mulu16_sel::v2#1 sin16s::@9/(word) mulu16_sel::v2#2 )
  (word) mulu16_sel::v1#5 ← phi( sin16s::@10/(word) mulu16_sel::v1#3 sin16s::@11/(word) mulu16_sel::v1#4 sin16s::@2/(word) mulu16_sel::v1#0 sin16s::@8/(word) mulu16_sel::v1#1 sin16s::@9/(word) mulu16_sel::v1#2 )
  (word) mul16u::a#2 ← (word) mulu16_sel::v1#5
  (word) mul16u::b#1 ← (word) mulu16_sel::v2#5
  call mul16u 
  (dword) mul16u::return#3 ← (dword) mul16u::return#1
  to:mulu16_sel::@2
mulu16_sel::@2: scope:[mulu16_sel]  from mulu16_sel
  (byte) mulu16_sel::select#5 ← phi( mulu16_sel/(byte) mulu16_sel::select#6 )
  (dword) mul16u::return#6 ← phi( mulu16_sel/(dword) mul16u::return#3 )
  (dword~) mulu16_sel::$0 ← (dword) mul16u::return#6
  (dword~) mulu16_sel::$1 ← (dword~) mulu16_sel::$0 << (byte) mulu16_sel::select#5
  (word~) mulu16_sel::$2 ← > (dword~) mulu16_sel::$1
  (word) mulu16_sel::return#5 ← (word~) mulu16_sel::$2
  to:mulu16_sel::@return
mulu16_sel::@return: scope:[mulu16_sel]  from mulu16_sel::@2
  (word) mulu16_sel::return#12 ← phi( mulu16_sel::@2/(word) mulu16_sel::return#5 )
  (word) mulu16_sel::return#6 ← (word) mulu16_sel::return#12
  return 
  to:@return
memset: scope:[memset]  from bitmap_clear bitmap_clear::@1
  (byte) memset::c#5 ← phi( bitmap_clear/(byte) memset::c#0 bitmap_clear::@1/(byte) memset::c#1 )
  (void*) memset::str#4 ← phi( bitmap_clear/(void*) memset::str#0 bitmap_clear::@1/(void*) memset::str#1 )
  (word) memset::num#2 ← phi( bitmap_clear/(word) memset::num#0 bitmap_clear::@1/(word) memset::num#1 )
  (bool~) memset::$0 ← (word) memset::num#2 > (number) 0
  (bool~) memset::$1 ← ! (bool~) memset::$0
  if((bool~) memset::$1) goto memset::@1
  to:memset::@2
memset::@1: scope:[memset]  from memset memset::@4
  (void*) memset::str#2 ← phi( memset/(void*) memset::str#4 memset::@4/(void*) memset::str#5 )
  (void*) memset::return#0 ← (void*) memset::str#2
  to:memset::@return
memset::@2: scope:[memset]  from memset
  (byte) memset::c#4 ← phi( memset/(byte) memset::c#5 )
  (word) memset::num#3 ← phi( memset/(word) memset::num#2 )
  (void*) memset::str#3 ← phi( memset/(void*) memset::str#4 )
  (byte*~) memset::$2 ← ((byte*)) (void*) memset::str#3
  (byte*~) memset::$3 ← (byte*~) memset::$2 + (word) memset::num#3
  (byte*) memset::end#0 ← (byte*~) memset::$3
  (byte*) memset::dst#0 ← ((byte*)) (void*) memset::str#3
  to:memset::@4
memset::@4: scope:[memset]  from memset::@2 memset::@5
  (byte) memset::c#3 ← phi( memset::@2/(byte) memset::c#4 memset::@5/(byte) memset::c#2 )
  (void*) memset::str#5 ← phi( memset::@2/(void*) memset::str#3 memset::@5/(void*) memset::str#6 )
  (byte*) memset::end#1 ← phi( memset::@2/(byte*) memset::end#0 memset::@5/(byte*) memset::end#2 )
  (byte*) memset::dst#2 ← phi( memset::@2/(byte*) memset::dst#0 memset::@5/(byte*) memset::dst#1 )
  (bool~) memset::$4 ← (byte*) memset::dst#2 != (byte*) memset::end#1
  if((bool~) memset::$4) goto memset::@5
  to:memset::@1
memset::@5: scope:[memset]  from memset::@4
  (void*) memset::str#6 ← phi( memset::@4/(void*) memset::str#5 )
  (byte*) memset::end#2 ← phi( memset::@4/(byte*) memset::end#1 )
  (byte*) memset::dst#3 ← phi( memset::@4/(byte*) memset::dst#2 )
  (byte) memset::c#2 ← phi( memset::@4/(byte) memset::c#3 )
  *((byte*) memset::dst#3) ← (byte) memset::c#2
  (byte*) memset::dst#1 ← ++ (byte*) memset::dst#3
  to:memset::@4
memset::@return: scope:[memset]  from memset::@1
  (void*) memset::return#4 ← phi( memset::@1/(void*) memset::return#0 )
  (void*) memset::return#1 ← (void*) memset::return#4
  return 
  to:@return
@28: scope:[]  from @17
  (word) rem16u#37 ← phi( @17/(word) rem16u#41 )
  (byte*) bitmap_screen#0 ← (byte*) 0
  (byte*) bitmap_gfx#0 ← (byte*) 0
  (byte[$100]) bitmap_plot_ylo#0 ← { fill( $100, 0) }
  (byte[$100]) bitmap_plot_yhi#0 ← { fill( $100, 0) }
  (byte[$100]) bitmap_plot_bit#0 ← { fill( $100, 0) }
  to:@34
bitmap_init: scope:[bitmap_init]  from main::@24
  (byte*) bitmap_init::screen#1 ← phi( main::@24/(byte*) bitmap_init::screen#0 )
  (byte*) bitmap_init::gfx#1 ← phi( main::@24/(byte*) bitmap_init::gfx#0 )
  (byte*) bitmap_gfx#1 ← (byte*) bitmap_init::gfx#1
  (byte*) bitmap_screen#1 ← (byte*) bitmap_init::screen#1
  (byte) bitmap_init::bits#0 ← (number) $80
  (byte) bitmap_init::x#0 ← (byte) 0
  to:bitmap_init::@1
bitmap_init::@1: scope:[bitmap_init]  from bitmap_init bitmap_init::@2
  (byte*) bitmap_screen#31 ← phi( bitmap_init/(byte*) bitmap_screen#1 bitmap_init::@2/(byte*) bitmap_screen#27 )
  (byte*) bitmap_gfx#32 ← phi( bitmap_init/(byte*) bitmap_gfx#1 bitmap_init::@2/(byte*) bitmap_gfx#28 )
  (byte*) bitmap_init::gfx#4 ← phi( bitmap_init/(byte*) bitmap_init::gfx#1 bitmap_init::@2/(byte*) bitmap_init::gfx#3 )
  (byte) bitmap_init::x#2 ← phi( bitmap_init/(byte) bitmap_init::x#0 bitmap_init::@2/(byte) bitmap_init::x#1 )
  (byte) bitmap_init::bits#3 ← phi( bitmap_init/(byte) bitmap_init::bits#0 bitmap_init::@2/(byte) bitmap_init::bits#4 )
  *((byte[$100]) bitmap_plot_bit#0 + (byte) bitmap_init::x#2) ← (byte) bitmap_init::bits#3
  (byte) bitmap_init::bits#1 ← (byte) bitmap_init::bits#3 >> (number) 1
  (bool~) bitmap_init::$0 ← (byte) bitmap_init::bits#1 == (number) 0
  (bool~) bitmap_init::$1 ← ! (bool~) bitmap_init::$0
  if((bool~) bitmap_init::$1) goto bitmap_init::@2
  to:bitmap_init::@3
bitmap_init::@2: scope:[bitmap_init]  from bitmap_init::@1 bitmap_init::@3
  (byte*) bitmap_screen#27 ← phi( bitmap_init::@1/(byte*) bitmap_screen#31 bitmap_init::@3/(byte*) bitmap_screen#32 )
  (byte*) bitmap_gfx#28 ← phi( bitmap_init::@1/(byte*) bitmap_gfx#32 bitmap_init::@3/(byte*) bitmap_gfx#33 )
  (byte*) bitmap_init::gfx#3 ← phi( bitmap_init::@1/(byte*) bitmap_init::gfx#4 bitmap_init::@3/(byte*) bitmap_init::gfx#5 )
  (byte) bitmap_init::bits#4 ← phi( bitmap_init::@1/(byte) bitmap_init::bits#1 bitmap_init::@3/(byte) bitmap_init::bits#2 )
  (byte) bitmap_init::x#3 ← phi( bitmap_init::@1/(byte) bitmap_init::x#2 bitmap_init::@3/(byte) bitmap_init::x#4 )
  (byte) bitmap_init::x#1 ← (byte) bitmap_init::x#3 + rangenext(0,$ff)
  (bool~) bitmap_init::$2 ← (byte) bitmap_init::x#1 != rangelast(0,$ff)
  if((bool~) bitmap_init::$2) goto bitmap_init::@1
  to:bitmap_init::@4
bitmap_init::@3: scope:[bitmap_init]  from bitmap_init::@1
  (byte*) bitmap_screen#32 ← phi( bitmap_init::@1/(byte*) bitmap_screen#31 )
  (byte*) bitmap_gfx#33 ← phi( bitmap_init::@1/(byte*) bitmap_gfx#32 )
  (byte*) bitmap_init::gfx#5 ← phi( bitmap_init::@1/(byte*) bitmap_init::gfx#4 )
  (byte) bitmap_init::x#4 ← phi( bitmap_init::@1/(byte) bitmap_init::x#2 )
  (byte) bitmap_init::bits#2 ← (number) $80
  to:bitmap_init::@2
bitmap_init::@4: scope:[bitmap_init]  from bitmap_init::@2
  (byte*) bitmap_screen#22 ← phi( bitmap_init::@2/(byte*) bitmap_screen#27 )
  (byte*) bitmap_gfx#23 ← phi( bitmap_init::@2/(byte*) bitmap_gfx#28 )
  (byte*) bitmap_init::gfx#2 ← phi( bitmap_init::@2/(byte*) bitmap_init::gfx#3 )
  (byte*) bitmap_init::yoffs#0 ← (byte*) bitmap_init::gfx#2
  (byte) bitmap_init::y#0 ← (byte) 0
  to:bitmap_init::@5
bitmap_init::@5: scope:[bitmap_init]  from bitmap_init::@4 bitmap_init::@6
  (byte*) bitmap_screen#15 ← phi( bitmap_init::@4/(byte*) bitmap_screen#22 bitmap_init::@6/(byte*) bitmap_screen#11 )
  (byte*) bitmap_gfx#16 ← phi( bitmap_init::@4/(byte*) bitmap_gfx#23 bitmap_init::@6/(byte*) bitmap_gfx#11 )
  (byte*) bitmap_init::yoffs#2 ← phi( bitmap_init::@4/(byte*) bitmap_init::yoffs#0 bitmap_init::@6/(byte*) bitmap_init::yoffs#4 )
  (byte) bitmap_init::y#2 ← phi( bitmap_init::@4/(byte) bitmap_init::y#0 bitmap_init::@6/(byte) bitmap_init::y#1 )
  (number~) bitmap_init::$3 ← (byte) bitmap_init::y#2 & (number) 7
  (byte~) bitmap_init::$4 ← < (byte*) bitmap_init::yoffs#2
  (number~) bitmap_init::$5 ← (number~) bitmap_init::$3 | (byte~) bitmap_init::$4
  *((byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_init::y#2) ← (number~) bitmap_init::$5
  (byte~) bitmap_init::$6 ← > (byte*) bitmap_init::yoffs#2
  *((byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_init::y#2) ← (byte~) bitmap_init::$6
  (number~) bitmap_init::$7 ← (byte) bitmap_init::y#2 & (number) 7
  (bool~) bitmap_init::$8 ← (number~) bitmap_init::$7 == (number) 7
  (bool~) bitmap_init::$9 ← ! (bool~) bitmap_init::$8
  if((bool~) bitmap_init::$9) goto bitmap_init::@6
  to:bitmap_init::@7
bitmap_init::@6: scope:[bitmap_init]  from bitmap_init::@5 bitmap_init::@7
  (byte*) bitmap_screen#11 ← phi( bitmap_init::@5/(byte*) bitmap_screen#15 bitmap_init::@7/(byte*) bitmap_screen#16 )
  (byte*) bitmap_gfx#11 ← phi( bitmap_init::@5/(byte*) bitmap_gfx#16 bitmap_init::@7/(byte*) bitmap_gfx#17 )
  (byte*) bitmap_init::yoffs#4 ← phi( bitmap_init::@5/(byte*) bitmap_init::yoffs#2 bitmap_init::@7/(byte*) bitmap_init::yoffs#1 )
  (byte) bitmap_init::y#3 ← phi( bitmap_init::@5/(byte) bitmap_init::y#2 bitmap_init::@7/(byte) bitmap_init::y#4 )
  (byte) bitmap_init::y#1 ← (byte) bitmap_init::y#3 + rangenext(0,$ff)
  (bool~) bitmap_init::$11 ← (byte) bitmap_init::y#1 != rangelast(0,$ff)
  if((bool~) bitmap_init::$11) goto bitmap_init::@5
  to:bitmap_init::@return
bitmap_init::@7: scope:[bitmap_init]  from bitmap_init::@5
  (byte*) bitmap_screen#16 ← phi( bitmap_init::@5/(byte*) bitmap_screen#15 )
  (byte*) bitmap_gfx#17 ← phi( bitmap_init::@5/(byte*) bitmap_gfx#16 )
  (byte) bitmap_init::y#4 ← phi( bitmap_init::@5/(byte) bitmap_init::y#2 )
  (byte*) bitmap_init::yoffs#3 ← phi( bitmap_init::@5/(byte*) bitmap_init::yoffs#2 )
  (byte*~) bitmap_init::$10 ← (byte*) bitmap_init::yoffs#3 + (number) $28*(number) 8
  (byte*) bitmap_init::yoffs#1 ← (byte*~) bitmap_init::$10
  to:bitmap_init::@6
bitmap_init::@return: scope:[bitmap_init]  from bitmap_init::@6
  (byte*) bitmap_screen#6 ← phi( bitmap_init::@6/(byte*) bitmap_screen#11 )
  (byte*) bitmap_gfx#6 ← phi( bitmap_init::@6/(byte*) bitmap_gfx#11 )
  (byte*) bitmap_gfx#2 ← (byte*) bitmap_gfx#6
  (byte*) bitmap_screen#2 ← (byte*) bitmap_screen#6
  return 
  to:@return
bitmap_clear: scope:[bitmap_clear]  from main::@25
  (byte*) bitmap_gfx#12 ← phi( main::@25/(byte*) bitmap_gfx#3 )
  (byte*) bitmap_screen#7 ← phi( main::@25/(byte*) bitmap_screen#3 )
  (byte) bitmap_clear::bgcol#1 ← phi( main::@25/(byte) bitmap_clear::bgcol#0 )
  (byte) bitmap_clear::fgcol#1 ← phi( main::@25/(byte) bitmap_clear::fgcol#0 )
  (number~) bitmap_clear::$0 ← (byte) bitmap_clear::fgcol#1 * (number) $10
  (number~) bitmap_clear::$1 ← (number~) bitmap_clear::$0 + (byte) bitmap_clear::bgcol#1
  (byte) bitmap_clear::col#0 ← (number~) bitmap_clear::$1
  (void*) memset::str#0 ← (void*)(byte*) bitmap_screen#7
  (byte) memset::c#0 ← (byte) bitmap_clear::col#0
  (word) memset::num#0 ← (word) $3e8
  call memset 
  (void*) memset::return#2 ← (void*) memset::return#1
  to:bitmap_clear::@1
bitmap_clear::@1: scope:[bitmap_clear]  from bitmap_clear
  (byte*) bitmap_gfx#7 ← phi( bitmap_clear/(byte*) bitmap_gfx#12 )
  (void*) memset::str#1 ← (void*)(byte*) bitmap_gfx#7
  (byte) memset::c#1 ← (number) 0
  (word) memset::num#1 ← (word) $1f40
  call memset 
  (void*) memset::return#3 ← (void*) memset::return#1
  to:bitmap_clear::@2
bitmap_clear::@2: scope:[bitmap_clear]  from bitmap_clear::@1
  to:bitmap_clear::@return
bitmap_clear::@return: scope:[bitmap_clear]  from bitmap_clear::@2
  return 
  to:@return
bitmap_plot: scope:[bitmap_plot]  from main::@29
  (word) bitmap_plot::x#1 ← phi( main::@29/(word) bitmap_plot::x#0 )
  (byte) bitmap_plot::y#1 ← phi( main::@29/(byte) bitmap_plot::y#0 )
  (byte*~) bitmap_plot::$0 ← ((byte*)) { *((byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_plot::y#1), *((byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_plot::y#1) }
  (byte*) bitmap_plot::plotter#0 ← (byte*~) bitmap_plot::$0
  (number~) bitmap_plot::$1 ← (word) bitmap_plot::x#1 & (number) $fff8
  (byte*) bitmap_plot::plotter#1 ← (byte*) bitmap_plot::plotter#0 + (number~) bitmap_plot::$1
  (byte~) bitmap_plot::$2 ← < (word) bitmap_plot::x#1
  *((byte*) bitmap_plot::plotter#1) ← *((byte*) bitmap_plot::plotter#1) | *((byte[$100]) bitmap_plot_bit#0 + (byte~) bitmap_plot::$2)
  to:bitmap_plot::@return
bitmap_plot::@return: scope:[bitmap_plot]  from bitmap_plot
  return 
  to:@return
@34: scope:[]  from @28
  (byte*) bitmap_screen#26 ← phi( @28/(byte*) bitmap_screen#0 )
  (byte*) bitmap_gfx#27 ← phi( @28/(byte*) bitmap_gfx#0 )
  (word) rem16u#35 ← phi( @28/(word) rem16u#37 )
  (byte*) BITMAP#0 ← ((byte*)) (number) $2000
  (byte*) SCREEN#0 ← ((byte*)) (number) $400
  (byte[$100]) plots_per_frame#0 ← { fill( $100, 0) }
  (signed word[$200]) SINUS#0 ← { fill( $200, 0) }
  to:@35
main: scope:[main]  from @37
  (byte) frame_cnt#26 ← phi( @37/(byte) frame_cnt#8 )
  (byte*) bitmap_screen#17 ← phi( @37/(byte*) bitmap_screen#14 )
  (byte*) bitmap_gfx#18 ← phi( @37/(byte*) bitmap_gfx#15 )
  (word) rem16u#23 ← phi( @37/(word) rem16u#25 )
  (signed word*) sin16s_gen2::sintab#1 ← (signed word[$200]) SINUS#0
  (word) sin16s_gen2::wavelength#0 ← (number) $200
  (signed word) sin16s_gen2::min#0 ← (number) -$1001
  (signed word) sin16s_gen2::max#0 ← (number) $1001
  call sin16s_gen2 
  to:main::@24
main::@24: scope:[main]  from main
  (byte) frame_cnt#25 ← phi( main/(byte) frame_cnt#26 )
  (byte*) bitmap_screen#12 ← phi( main/(byte*) bitmap_screen#17 )
  (byte*) bitmap_gfx#13 ← phi( main/(byte*) bitmap_gfx#18 )
  (word) rem16u#17 ← phi( main/(word) rem16u#7 )
  (word) rem16u#8 ← (word) rem16u#17
  (byte*) bitmap_init::gfx#0 ← (byte*) BITMAP#0
  (byte*) bitmap_init::screen#0 ← (byte*) SCREEN#0
  call bitmap_init 
  to:main::@25
main::@25: scope:[main]  from main::@24
  (byte) frame_cnt#24 ← phi( main::@24/(byte) frame_cnt#25 )
  (word) rem16u#49 ← phi( main::@24/(word) rem16u#8 )
  (byte*) bitmap_screen#8 ← phi( main::@24/(byte*) bitmap_screen#2 )
  (byte*) bitmap_gfx#8 ← phi( main::@24/(byte*) bitmap_gfx#2 )
  (byte*) bitmap_gfx#3 ← (byte*) bitmap_gfx#8
  (byte*) bitmap_screen#3 ← (byte*) bitmap_screen#8
  (byte) bitmap_clear::bgcol#0 ← (byte) BLACK#0
  (byte) bitmap_clear::fgcol#0 ← (byte) WHITE#0
  call bitmap_clear 
  to:main::@26
main::@26: scope:[main]  from main::@25
  (byte) frame_cnt#23 ← phi( main::@25/(byte) frame_cnt#24 )
  (byte*) bitmap_screen#38 ← phi( main::@25/(byte*) bitmap_screen#3 )
  (byte*) bitmap_gfx#39 ← phi( main::@25/(byte*) bitmap_gfx#3 )
  (word) rem16u#47 ← phi( main::@25/(word) rem16u#49 )
  (byte~) main::$3 ← (byte) VIC_BMM#0 | (byte) VIC_DEN#0
  (byte~) main::$4 ← (byte~) main::$3 | (byte) VIC_RSEL#0
  (number~) main::$5 ← (byte~) main::$4 | (number) 3
  *((byte*) D011#0) ← (number~) main::$5
  (byte*) main::toD0181_screen#0 ← (byte*) SCREEN#0
  (byte*) main::toD0181_gfx#0 ← (byte*) BITMAP#0
  to:main::toD0181
main::toD0181: scope:[main]  from main::@26
  (byte) frame_cnt#21 ← phi( main::@26/(byte) frame_cnt#23 )
  (byte*) bitmap_screen#36 ← phi( main::@26/(byte*) bitmap_screen#38 )
  (byte*) bitmap_gfx#37 ← phi( main::@26/(byte*) bitmap_gfx#39 )
  (word) rem16u#45 ← phi( main::@26/(word) rem16u#47 )
  (byte*) main::toD0181_gfx#1 ← phi( main::@26/(byte*) main::toD0181_gfx#0 )
  (byte*) main::toD0181_screen#1 ← phi( main::@26/(byte*) main::toD0181_screen#0 )
  (word~) main::toD0181_$0#0 ← ((word)) (byte*) main::toD0181_screen#1
  (number~) main::toD0181_$1#0 ← (word~) main::toD0181_$0#0 & (number) $3fff
  (number~) main::toD0181_$2#0 ← (number~) main::toD0181_$1#0 * (number) 4
  (number~) main::toD0181_$3#0 ← > (number~) main::toD0181_$2#0
  (word~) main::toD0181_$4#0 ← ((word)) (byte*) main::toD0181_gfx#1
  (byte~) main::toD0181_$5#0 ← > (word~) main::toD0181_$4#0
  (number~) main::toD0181_$6#0 ← (byte~) main::toD0181_$5#0 / (number) 4
  (number~) main::toD0181_$7#0 ← (number~) main::toD0181_$6#0 & (number) $f
  (number~) main::toD0181_$8#0 ← (number~) main::toD0181_$3#0 | (number~) main::toD0181_$7#0
  (byte) main::toD0181_return#0 ← (number~) main::toD0181_$8#0
  to:main::toD0181_@return
main::toD0181_@return: scope:[main]  from main::toD0181
  (byte) frame_cnt#18 ← phi( main::toD0181/(byte) frame_cnt#21 )
  (byte*) bitmap_screen#33 ← phi( main::toD0181/(byte*) bitmap_screen#36 )
  (byte*) bitmap_gfx#34 ← phi( main::toD0181/(byte*) bitmap_gfx#37 )
  (word) rem16u#42 ← phi( main::toD0181/(word) rem16u#45 )
  (byte) main::toD0181_return#2 ← phi( main::toD0181/(byte) main::toD0181_return#0 )
  (byte) main::toD0181_return#1 ← (byte) main::toD0181_return#2
  to:main::@23
main::@23: scope:[main]  from main::toD0181_@return
  (byte) frame_cnt#15 ← phi( main::toD0181_@return/(byte) frame_cnt#18 )
  (byte*) bitmap_screen#28 ← phi( main::toD0181_@return/(byte*) bitmap_screen#33 )
  (byte*) bitmap_gfx#29 ← phi( main::toD0181_@return/(byte*) bitmap_gfx#34 )
  (word) rem16u#38 ← phi( main::toD0181_@return/(word) rem16u#42 )
  (byte) main::toD0181_return#3 ← phi( main::toD0181_@return/(byte) main::toD0181_return#1 )
  (byte~) main::$6 ← (byte) main::toD0181_return#3
  *((byte*) D018#0) ← (byte~) main::$6
  call init_irq 
  to:main::@27
main::@27: scope:[main]  from main::@23
  (byte) frame_cnt#13 ← phi( main::@23/(byte) frame_cnt#15 )
  (byte*) bitmap_screen#23 ← phi( main::@23/(byte*) bitmap_screen#28 )
  (byte*) bitmap_gfx#24 ← phi( main::@23/(byte*) bitmap_gfx#29 )
  (word) rem16u#32 ← phi( main::@23/(word) rem16u#38 )
  (word) main::idx_x#0 ← (number) 0
  (word) main::idx_y#0 ← (number) $80
  (signed word) main::r#0 ← (number) 0
  (byte) main::r_add#0 ← (number) $20
  to:main::@1
main::@1: scope:[main]  from main::@27 main::@6
  (byte) main::r_add#11 ← phi( main::@27/(byte) main::r_add#0 main::@6/(byte) main::r_add#12 )
  (byte) frame_cnt#12 ← phi( main::@27/(byte) frame_cnt#13 main::@6/(byte) frame_cnt#14 )
  (byte*) bitmap_screen#18 ← phi( main::@27/(byte*) bitmap_screen#23 main::@6/(byte*) bitmap_screen#20 )
  (byte*) bitmap_gfx#19 ← phi( main::@27/(byte*) bitmap_gfx#24 main::@6/(byte*) bitmap_gfx#21 )
  (word) rem16u#27 ← phi( main::@27/(word) rem16u#32 main::@6/(word) rem16u#29 )
  (word) main::idx_y#8 ← phi( main::@27/(word) main::idx_y#0 main::@6/(word) main::idx_y#10 )
  (signed word) main::r#6 ← phi( main::@27/(signed word) main::r#0 main::@6/(signed word) main::r#5 )
  (word) main::idx_x#6 ← phi( main::@27/(word) main::idx_x#0 main::@6/(word) main::idx_x#10 )
  if(true) goto main::@2
  to:main::@17
main::@2: scope:[main]  from main::@1
  (byte*) bitmap_screen#40 ← phi( main::@1/(byte*) bitmap_screen#18 )
  (byte*) bitmap_gfx#41 ← phi( main::@1/(byte*) bitmap_gfx#19 )
  (word) rem16u#50 ← phi( main::@1/(word) rem16u#27 )
  (byte) main::r_add#10 ← phi( main::@1/(byte) main::r_add#11 )
  (byte) frame_cnt#11 ← phi( main::@1/(byte) frame_cnt#12 )
  (word) main::idx_y#5 ← phi( main::@1/(word) main::idx_y#8 )
  (signed word) main::r#2 ← phi( main::@1/(signed word) main::r#6 )
  (word) main::idx_x#3 ← phi( main::@1/(word) main::idx_x#6 )
  (word~) main::$32 ← (word) main::idx_x#3 * (const byte) SIZEOF_SIGNED_WORD
  (signed word) main::cos_x#0 ← *((signed word[$200]) SINUS#0 + (word~) main::$32)
  (signed word) mul16s::a#1 ← (signed word) main::r#2
  (signed word) mul16s::b#1 ← (signed word) main::cos_x#0
  call mul16s 
  (signed dword) mul16s::return#3 ← (signed dword) mul16s::return#1
  to:main::@28
main::@28: scope:[main]  from main::@2
  (byte*) bitmap_screen#39 ← phi( main::@2/(byte*) bitmap_screen#40 )
  (byte*) bitmap_gfx#40 ← phi( main::@2/(byte*) bitmap_gfx#41 )
  (word) rem16u#48 ← phi( main::@2/(word) rem16u#50 )
  (byte) main::r_add#9 ← phi( main::@2/(byte) main::r_add#10 )
  (word) main::idx_x#11 ← phi( main::@2/(word) main::idx_x#3 )
  (byte) frame_cnt#10 ← phi( main::@2/(byte) frame_cnt#11 )
  (signed word) main::r#3 ← phi( main::@2/(signed word) main::r#2 )
  (word) main::idx_y#3 ← phi( main::@2/(word) main::idx_y#5 )
  (signed dword) mul16s::return#7 ← phi( main::@2/(signed dword) mul16s::return#3 )
  (signed dword~) main::$8 ← (signed dword) mul16s::return#7
  (signed dword) main::xpos#0 ← (signed dword~) main::$8
  (word~) main::$9 ← > (signed dword) main::xpos#0
  (signed word~) main::$10 ← ((signed word)) (word~) main::$9
  (signed word~) main::$11 ← (signed word~) main::$10 >> (number) 2
  (number~) main::$12 ← (number) $a0 + (signed word~) main::$11
  (word~) main::$13 ← ((word)) (number~) main::$12
  (word) main::x#0 ← (word~) main::$13
  (word~) main::$33 ← (word) main::idx_y#3 * (const byte) SIZEOF_SIGNED_WORD
  (signed word) main::sin_y#0 ← *((signed word[$200]) SINUS#0 + (word~) main::$33)
  (signed word) mul16s::a#2 ← (signed word) main::r#3
  (signed word) mul16s::b#2 ← (signed word) main::sin_y#0
  call mul16s 
  (signed dword) mul16s::return#4 ← (signed dword) mul16s::return#1
  to:main::@29
main::@29: scope:[main]  from main::@28
  (byte*) bitmap_screen#37 ← phi( main::@28/(byte*) bitmap_screen#39 )
  (byte*) bitmap_gfx#38 ← phi( main::@28/(byte*) bitmap_gfx#40 )
  (word) rem16u#46 ← phi( main::@28/(word) rem16u#48 )
  (signed word) main::r#12 ← phi( main::@28/(signed word) main::r#3 )
  (word) main::idx_y#9 ← phi( main::@28/(word) main::idx_y#3 )
  (byte) main::r_add#6 ← phi( main::@28/(byte) main::r_add#9 )
  (word) main::idx_x#7 ← phi( main::@28/(word) main::idx_x#11 )
  (byte) frame_cnt#7 ← phi( main::@28/(byte) frame_cnt#10 )
  (word) main::x#1 ← phi( main::@28/(word) main::x#0 )
  (signed dword) mul16s::return#8 ← phi( main::@28/(signed dword) mul16s::return#4 )
  (signed dword~) main::$14 ← (signed dword) mul16s::return#8
  (signed dword) main::ypos#0 ← (signed dword~) main::$14
  (word~) main::$15 ← > (signed dword) main::ypos#0
  (signed word~) main::$16 ← ((signed word)) (word~) main::$15
  (signed word~) main::$17 ← (signed word~) main::$16 >> (number) 2
  (number~) main::$18 ← (number) $64 + (signed word~) main::$17
  (word~) main::$19 ← ((word)) (number~) main::$18
  (word) main::y#0 ← (word~) main::$19
  (byte~) main::$20 ← ((byte)) (word) main::y#0
  (word) bitmap_plot::x#0 ← (word) main::x#1
  (byte) bitmap_plot::y#0 ← (byte~) main::$20
  call bitmap_plot 
  to:main::@30
main::@30: scope:[main]  from main::@29
  (byte*) bitmap_screen#35 ← phi( main::@29/(byte*) bitmap_screen#37 )
  (byte*) bitmap_gfx#36 ← phi( main::@29/(byte*) bitmap_gfx#38 )
  (word) rem16u#44 ← phi( main::@29/(word) rem16u#46 )
  (signed word) main::r#11 ← phi( main::@29/(signed word) main::r#12 )
  (word) main::idx_y#7 ← phi( main::@29/(word) main::idx_y#9 )
  (byte) main::r_add#2 ← phi( main::@29/(byte) main::r_add#6 )
  (word) main::idx_x#4 ← phi( main::@29/(word) main::idx_x#7 )
  (byte) frame_cnt#3 ← phi( main::@29/(byte) frame_cnt#7 )
  *((byte[$100]) plots_per_frame#0 + (byte) frame_cnt#3) ← ++ *((byte[$100]) plots_per_frame#0 + (byte) frame_cnt#3)
  (word) main::idx_x#1 ← (word) main::idx_x#4 + (byte) main::r_add#2
  (bool~) main::$22 ← (word) main::idx_x#1 >= (number) $200
  (bool~) main::$23 ← ! (bool~) main::$22
  if((bool~) main::$23) goto main::@4
  to:main::@11
main::@4: scope:[main]  from main::@11 main::@30
  (byte) frame_cnt#20 ← phi( main::@11/(byte) frame_cnt#22 main::@30/(byte) frame_cnt#3 )
  (byte*) bitmap_screen#30 ← phi( main::@11/(byte*) bitmap_screen#34 main::@30/(byte*) bitmap_screen#35 )
  (byte*) bitmap_gfx#31 ← phi( main::@11/(byte*) bitmap_gfx#35 main::@30/(byte*) bitmap_gfx#36 )
  (word) rem16u#40 ← phi( main::@11/(word) rem16u#43 main::@30/(word) rem16u#44 )
  (word) main::idx_x#9 ← phi( main::@11/(word) main::idx_x#2 main::@30/(word) main::idx_x#1 )
  (signed word) main::r#8 ← phi( main::@11/(signed word) main::r#10 main::@30/(signed word) main::r#11 )
  (byte) main::r_add#3 ← phi( main::@11/(byte) main::r_add#7 main::@30/(byte) main::r_add#2 )
  (word) main::idx_y#4 ← phi( main::@11/(word) main::idx_y#6 main::@30/(word) main::idx_y#7 )
  (word) main::idx_y#1 ← (word) main::idx_y#4 + (byte) main::r_add#3
  (bool~) main::$24 ← (word) main::idx_y#1 >= (number) $200
  (bool~) main::$25 ← ! (bool~) main::$24
  if((bool~) main::$25) goto main::@5
  to:main::@12
main::@11: scope:[main]  from main::@30
  (byte) frame_cnt#22 ← phi( main::@30/(byte) frame_cnt#3 )
  (byte*) bitmap_screen#34 ← phi( main::@30/(byte*) bitmap_screen#35 )
  (byte*) bitmap_gfx#35 ← phi( main::@30/(byte*) bitmap_gfx#36 )
  (word) rem16u#43 ← phi( main::@30/(word) rem16u#44 )
  (signed word) main::r#10 ← phi( main::@30/(signed word) main::r#11 )
  (byte) main::r_add#7 ← phi( main::@30/(byte) main::r_add#2 )
  (word) main::idx_y#6 ← phi( main::@30/(word) main::idx_y#7 )
  (word) main::idx_x#2 ← (number) 0
  to:main::@4
main::@5: scope:[main]  from main::@12 main::@4
  (byte) frame_cnt#17 ← phi( main::@12/(byte) frame_cnt#19 main::@4/(byte) frame_cnt#20 )
  (word) main::idx_y#12 ← phi( main::@12/(word) main::idx_y#2 main::@4/(word) main::idx_y#1 )
  (byte*) bitmap_screen#25 ← phi( main::@12/(byte*) bitmap_screen#29 main::@4/(byte*) bitmap_screen#30 )
  (byte*) bitmap_gfx#26 ← phi( main::@12/(byte*) bitmap_gfx#30 main::@4/(byte*) bitmap_gfx#31 )
  (word) rem16u#34 ← phi( main::@12/(word) rem16u#39 main::@4/(word) rem16u#40 )
  (word) main::idx_x#5 ← phi( main::@12/(word) main::idx_x#8 main::@4/(word) main::idx_x#9 )
  (byte) main::r_add#4 ← phi( main::@12/(byte) main::r_add#8 main::@4/(byte) main::r_add#3 )
  (signed word) main::r#4 ← phi( main::@12/(signed word) main::r#7 main::@4/(signed word) main::r#8 )
  (signed word) main::r#1 ← (signed word) main::r#4 + (byte) main::r_add#4
  (bool~) main::$26 ← (word) main::idx_x#5 == (number) 0
  (bool~) main::$27 ← (byte) main::r_add#4 != (number) 1
  (bool~) main::$28 ← (bool~) main::$26 && (bool~) main::$27
  (bool~) main::$29 ← ! (bool~) main::$28
  if((bool~) main::$29) goto main::@6
  to:main::@13
main::@12: scope:[main]  from main::@4
  (byte) frame_cnt#19 ← phi( main::@4/(byte) frame_cnt#20 )
  (byte*) bitmap_screen#29 ← phi( main::@4/(byte*) bitmap_screen#30 )
  (byte*) bitmap_gfx#30 ← phi( main::@4/(byte*) bitmap_gfx#31 )
  (word) rem16u#39 ← phi( main::@4/(word) rem16u#40 )
  (word) main::idx_x#8 ← phi( main::@4/(word) main::idx_x#9 )
  (byte) main::r_add#8 ← phi( main::@4/(byte) main::r_add#3 )
  (signed word) main::r#7 ← phi( main::@4/(signed word) main::r#8 )
  (word) main::idx_y#2 ← (number) 0
  to:main::@5
main::@6: scope:[main]  from main::@13 main::@5
  (byte) main::r_add#12 ← phi( main::@13/(byte) main::r_add#1 main::@5/(byte) main::r_add#4 )
  (byte) frame_cnt#14 ← phi( main::@13/(byte) frame_cnt#16 main::@5/(byte) frame_cnt#17 )
  (word) main::idx_y#10 ← phi( main::@13/(word) main::idx_y#11 main::@5/(word) main::idx_y#12 )
  (byte*) bitmap_screen#20 ← phi( main::@13/(byte*) bitmap_screen#24 main::@5/(byte*) bitmap_screen#25 )
  (byte*) bitmap_gfx#21 ← phi( main::@13/(byte*) bitmap_gfx#25 main::@5/(byte*) bitmap_gfx#26 )
  (word) rem16u#29 ← phi( main::@13/(word) rem16u#33 main::@5/(word) rem16u#34 )
  (word) main::idx_x#10 ← phi( main::@13/(word) main::idx_x#12 main::@5/(word) main::idx_x#5 )
  (signed word) main::r#5 ← phi( main::@13/(signed word) main::r#9 main::@5/(signed word) main::r#1 )
  (bool~) main::$30 ← (signed word) main::r#5 >= (number) $200*(number) $c+(number) $100
  (bool~) main::$31 ← ! (bool~) main::$30
  if((bool~) main::$31) goto main::@1
  to:main::@17
main::@13: scope:[main]  from main::@5
  (byte) frame_cnt#16 ← phi( main::@5/(byte) frame_cnt#17 )
  (word) main::idx_y#11 ← phi( main::@5/(word) main::idx_y#12 )
  (byte*) bitmap_screen#24 ← phi( main::@5/(byte*) bitmap_screen#25 )
  (byte*) bitmap_gfx#25 ← phi( main::@5/(byte*) bitmap_gfx#26 )
  (word) rem16u#33 ← phi( main::@5/(word) rem16u#34 )
  (word) main::idx_x#12 ← phi( main::@5/(word) main::idx_x#5 )
  (signed word) main::r#9 ← phi( main::@5/(signed word) main::r#1 )
  (byte) main::r_add#5 ← phi( main::@5/(byte) main::r_add#4 )
  (byte) main::r_add#1 ← (byte) main::r_add#5 / (number) 2
  to:main::@6
main::@17: scope:[main]  from main::@1 main::@18 main::@6
  (byte*) bitmap_screen#13 ← phi( main::@1/(byte*) bitmap_screen#18 main::@18/(byte*) bitmap_screen#19 main::@6/(byte*) bitmap_screen#20 )
  (byte*) bitmap_gfx#14 ← phi( main::@1/(byte*) bitmap_gfx#19 main::@18/(byte*) bitmap_gfx#20 main::@6/(byte*) bitmap_gfx#21 )
  (word) rem16u#24 ← phi( main::@1/(word) rem16u#27 main::@18/(word) rem16u#28 main::@6/(word) rem16u#29 )
  if(true) goto main::@18
  to:main::@return
main::@18: scope:[main]  from main::@17
  (byte*) bitmap_screen#19 ← phi( main::@17/(byte*) bitmap_screen#13 )
  (byte*) bitmap_gfx#20 ← phi( main::@17/(byte*) bitmap_gfx#14 )
  (word) rem16u#28 ← phi( main::@17/(word) rem16u#24 )
  *((byte*) BORDERCOL#0) ← ++ *((byte*) BORDERCOL#0)
  to:main::@17
main::@return: scope:[main]  from main::@17
  (byte*) bitmap_screen#9 ← phi( main::@17/(byte*) bitmap_screen#13 )
  (byte*) bitmap_gfx#9 ← phi( main::@17/(byte*) bitmap_gfx#14 )
  (word) rem16u#18 ← phi( main::@17/(word) rem16u#24 )
  (word) rem16u#9 ← (word) rem16u#18
  (byte*) bitmap_gfx#4 ← (byte*) bitmap_gfx#9
  (byte*) bitmap_screen#4 ← (byte*) bitmap_screen#9
  return 
  to:@return
@35: scope:[]  from @34
  (byte*) bitmap_screen#21 ← phi( @34/(byte*) bitmap_screen#26 )
  (byte*) bitmap_gfx#22 ← phi( @34/(byte*) bitmap_gfx#27 )
  (word) rem16u#30 ← phi( @34/(word) rem16u#35 )
  (byte) frame_cnt#0 ← (number) 1
  to:@37
init_irq: scope:[init_irq]  from main::@23
  asm { sei  }
  *((byte*) PROCPORT_DDR#0) ← (byte) PROCPORT_DDR_MEMORY_MASK#0
  *((byte*) PROCPORT#0) ← (byte) PROCPORT_RAM_IO#0
  *((byte*) CIA1_INTERRUPT#0) ← (byte) CIA_INTERRUPT_CLEAR#0
  *((byte*) VIC_CONTROL#0) ← *((byte*) VIC_CONTROL#0) | (number) $80
  *((byte*) RASTER#0) ← (number) 0
  *((byte*) IRQ_ENABLE#0) ← (byte) IRQ_RASTER#0
  (void()*~) init_irq::$0 ← & interrupt(HARDWARE_CLOBBER)(void()) irq()
  *((void()**) HARDWARE_IRQ#0) ← (void()*~) init_irq::$0
  asm { cli  }
  to:init_irq::@return
init_irq::@return: scope:[init_irq]  from init_irq
  return 
  to:@return
irq: scope:[irq]  from
  (byte) frame_cnt#4 ← phi( @37/(byte) frame_cnt#8 )
  *((byte*) BGCOL#0) ← (byte) WHITE#0
  (bool~) irq::$1 ← (number) 0 != (byte) frame_cnt#4
  (bool~) irq::$0 ← ! (bool~) irq::$1
  if((bool~) irq::$0) goto irq::@1
  to:irq::@2
irq::@1: scope:[irq]  from irq irq::@2
  (byte) frame_cnt#9 ← phi( irq/(byte) frame_cnt#4 irq::@2/(byte) frame_cnt#1 )
  *((byte*) BGCOL#0) ← (byte) BLACK#0
  *((byte*) IRQ_STATUS#0) ← (byte) IRQ_RASTER#0
  to:irq::@return
irq::@2: scope:[irq]  from irq
  (byte) frame_cnt#5 ← phi( irq/(byte) frame_cnt#4 )
  (byte) frame_cnt#1 ← ++ (byte) frame_cnt#5
  to:irq::@1
irq::@return: scope:[irq]  from irq::@1
  (byte) frame_cnt#6 ← phi( irq::@1/(byte) frame_cnt#9 )
  (byte) frame_cnt#2 ← (byte) frame_cnt#6
  return 
  to:@return
@37: scope:[]  from @35
  (byte*) bitmap_screen#14 ← phi( @35/(byte*) bitmap_screen#21 )
  (byte*) bitmap_gfx#15 ← phi( @35/(byte*) bitmap_gfx#22 )
  (word) rem16u#25 ← phi( @35/(word) rem16u#30 )
  (byte) frame_cnt#8 ← phi( @35/(byte) frame_cnt#0 )
  call main 
  to:@38
@38: scope:[]  from @37
  (byte*) bitmap_screen#10 ← phi( @37/(byte*) bitmap_screen#4 )
  (byte*) bitmap_gfx#10 ← phi( @37/(byte*) bitmap_gfx#4 )
  (word) rem16u#19 ← phi( @37/(word) rem16u#9 )
  (word) rem16u#10 ← (word) rem16u#19
  (byte*) bitmap_gfx#5 ← (byte*) bitmap_gfx#10
  (byte*) bitmap_screen#5 ← (byte*) bitmap_screen#10
  to:@end
@end: scope:[]  from @38

SYMBOL TABLE SSA
(label) @17
(label) @28
(label) @34
(label) @35
(label) @37
(label) @38
(label) @6
(label) @begin
(label) @end
(byte*) BGCOL
(byte*) BGCOL#0
(byte*) BITMAP
(byte*) BITMAP#0
(byte) BLACK
(byte) BLACK#0
(byte*) BORDERCOL
(byte*) BORDERCOL#0
(byte*) CIA1_INTERRUPT
(byte*) CIA1_INTERRUPT#0
(byte) CIA_INTERRUPT_CLEAR
(byte) CIA_INTERRUPT_CLEAR#0
(byte*) D011
(byte*) D011#0
(byte*) D018
(byte*) D018#0
(void()**) HARDWARE_IRQ
(void()**) HARDWARE_IRQ#0
(byte*) IRQ_ENABLE
(byte*) IRQ_ENABLE#0
(byte) IRQ_RASTER
(byte) IRQ_RASTER#0
(byte*) IRQ_STATUS
(byte*) IRQ_STATUS#0
(dword) PI2_u4f28
(dword) PI2_u4f28#0
(dword) PI_HALF_u4f28
(dword) PI_HALF_u4f28#0
(dword) PI_u4f28
(dword) PI_u4f28#0
(byte*) PROCPORT
(byte*) PROCPORT#0
(byte*) PROCPORT_DDR
(byte*) PROCPORT_DDR#0
(byte) PROCPORT_DDR_MEMORY_MASK
(byte) PROCPORT_DDR_MEMORY_MASK#0
(byte) PROCPORT_RAM_IO
(byte) PROCPORT_RAM_IO#0
(byte*) RASTER
(byte*) RASTER#0
(byte*) SCREEN
(byte*) SCREEN#0
(signed word[$200]) SINUS
(signed word[$200]) SINUS#0
(const byte) SIZEOF_SIGNED_WORD = (byte) 2
(byte) VIC_BMM
(byte) VIC_BMM#0
(byte*) VIC_CONTROL
(byte*) VIC_CONTROL#0
(byte) VIC_DEN
(byte) VIC_DEN#0
(byte) VIC_RSEL
(byte) VIC_RSEL#0
(byte) WHITE
(byte) WHITE#0
(void()) bitmap_clear((byte) bitmap_clear::bgcol , (byte) bitmap_clear::fgcol)
(number~) bitmap_clear::$0
(number~) bitmap_clear::$1
(label) bitmap_clear::@1
(label) bitmap_clear::@2
(label) bitmap_clear::@return
(byte) bitmap_clear::bgcol
(byte) bitmap_clear::bgcol#0
(byte) bitmap_clear::bgcol#1
(byte) bitmap_clear::col
(byte) bitmap_clear::col#0
(byte) bitmap_clear::fgcol
(byte) bitmap_clear::fgcol#0
(byte) bitmap_clear::fgcol#1
(byte*) bitmap_gfx
(byte*) bitmap_gfx#0
(byte*) bitmap_gfx#1
(byte*) bitmap_gfx#10
(byte*) bitmap_gfx#11
(byte*) bitmap_gfx#12
(byte*) bitmap_gfx#13
(byte*) bitmap_gfx#14
(byte*) bitmap_gfx#15
(byte*) bitmap_gfx#16
(byte*) bitmap_gfx#17
(byte*) bitmap_gfx#18
(byte*) bitmap_gfx#19
(byte*) bitmap_gfx#2
(byte*) bitmap_gfx#20
(byte*) bitmap_gfx#21
(byte*) bitmap_gfx#22
(byte*) bitmap_gfx#23
(byte*) bitmap_gfx#24
(byte*) bitmap_gfx#25
(byte*) bitmap_gfx#26
(byte*) bitmap_gfx#27
(byte*) bitmap_gfx#28
(byte*) bitmap_gfx#29
(byte*) bitmap_gfx#3
(byte*) bitmap_gfx#30
(byte*) bitmap_gfx#31
(byte*) bitmap_gfx#32
(byte*) bitmap_gfx#33
(byte*) bitmap_gfx#34
(byte*) bitmap_gfx#35
(byte*) bitmap_gfx#36
(byte*) bitmap_gfx#37
(byte*) bitmap_gfx#38
(byte*) bitmap_gfx#39
(byte*) bitmap_gfx#4
(byte*) bitmap_gfx#40
(byte*) bitmap_gfx#41
(byte*) bitmap_gfx#5
(byte*) bitmap_gfx#6
(byte*) bitmap_gfx#7
(byte*) bitmap_gfx#8
(byte*) bitmap_gfx#9
(void()) bitmap_init((byte*) bitmap_init::gfx , (byte*) bitmap_init::screen)
(bool~) bitmap_init::$0
(bool~) bitmap_init::$1
(byte*~) bitmap_init::$10
(bool~) bitmap_init::$11
(bool~) bitmap_init::$2
(number~) bitmap_init::$3
(byte~) bitmap_init::$4
(number~) bitmap_init::$5
(byte~) bitmap_init::$6
(number~) bitmap_init::$7
(bool~) bitmap_init::$8
(bool~) bitmap_init::$9
(label) bitmap_init::@1
(label) bitmap_init::@2
(label) bitmap_init::@3
(label) bitmap_init::@4
(label) bitmap_init::@5
(label) bitmap_init::@6
(label) bitmap_init::@7
(label) bitmap_init::@return
(byte) bitmap_init::bits
(byte) bitmap_init::bits#0
(byte) bitmap_init::bits#1
(byte) bitmap_init::bits#2
(byte) bitmap_init::bits#3
(byte) bitmap_init::bits#4
(byte*) bitmap_init::gfx
(byte*) bitmap_init::gfx#0
(byte*) bitmap_init::gfx#1
(byte*) bitmap_init::gfx#2
(byte*) bitmap_init::gfx#3
(byte*) bitmap_init::gfx#4
(byte*) bitmap_init::gfx#5
(byte*) bitmap_init::screen
(byte*) bitmap_init::screen#0
(byte*) bitmap_init::screen#1
(byte) bitmap_init::x
(byte) bitmap_init::x#0
(byte) bitmap_init::x#1
(byte) bitmap_init::x#2
(byte) bitmap_init::x#3
(byte) bitmap_init::x#4
(byte) bitmap_init::y
(byte) bitmap_init::y#0
(byte) bitmap_init::y#1
(byte) bitmap_init::y#2
(byte) bitmap_init::y#3
(byte) bitmap_init::y#4
(byte*) bitmap_init::yoffs
(byte*) bitmap_init::yoffs#0
(byte*) bitmap_init::yoffs#1
(byte*) bitmap_init::yoffs#2
(byte*) bitmap_init::yoffs#3
(byte*) bitmap_init::yoffs#4
(void()) bitmap_plot((word) bitmap_plot::x , (byte) bitmap_plot::y)
(byte*~) bitmap_plot::$0
(number~) bitmap_plot::$1
(byte~) bitmap_plot::$2
(label) bitmap_plot::@return
(byte*) bitmap_plot::plotter
(byte*) bitmap_plot::plotter#0
(byte*) bitmap_plot::plotter#1
(word) bitmap_plot::x
(word) bitmap_plot::x#0
(word) bitmap_plot::x#1
(byte) bitmap_plot::y
(byte) bitmap_plot::y#0
(byte) bitmap_plot::y#1
(byte[$100]) bitmap_plot_bit
(byte[$100]) bitmap_plot_bit#0
(byte[$100]) bitmap_plot_yhi
(byte[$100]) bitmap_plot_yhi#0
(byte[$100]) bitmap_plot_ylo
(byte[$100]) bitmap_plot_ylo#0
(byte*) bitmap_screen
(byte*) bitmap_screen#0
(byte*) bitmap_screen#1
(byte*) bitmap_screen#10
(byte*) bitmap_screen#11
(byte*) bitmap_screen#12
(byte*) bitmap_screen#13
(byte*) bitmap_screen#14
(byte*) bitmap_screen#15
(byte*) bitmap_screen#16
(byte*) bitmap_screen#17
(byte*) bitmap_screen#18
(byte*) bitmap_screen#19
(byte*) bitmap_screen#2
(byte*) bitmap_screen#20
(byte*) bitmap_screen#21
(byte*) bitmap_screen#22
(byte*) bitmap_screen#23
(byte*) bitmap_screen#24
(byte*) bitmap_screen#25
(byte*) bitmap_screen#26
(byte*) bitmap_screen#27
(byte*) bitmap_screen#28
(byte*) bitmap_screen#29
(byte*) bitmap_screen#3
(byte*) bitmap_screen#30
(byte*) bitmap_screen#31
(byte*) bitmap_screen#32
(byte*) bitmap_screen#33
(byte*) bitmap_screen#34
(byte*) bitmap_screen#35
(byte*) bitmap_screen#36
(byte*) bitmap_screen#37
(byte*) bitmap_screen#38
(byte*) bitmap_screen#39
(byte*) bitmap_screen#4
(byte*) bitmap_screen#40
(byte*) bitmap_screen#5
(byte*) bitmap_screen#6
(byte*) bitmap_screen#7
(byte*) bitmap_screen#8
(byte*) bitmap_screen#9
(dword()) div32u16u((dword) div32u16u::dividend , (word) div32u16u::divisor)
(word~) div32u16u::$0
(word~) div32u16u::$1
(word~) div32u16u::$2
(word~) div32u16u::$3
(label) div32u16u::@2
(label) div32u16u::@3
(label) div32u16u::@return
(dword) div32u16u::dividend
(dword) div32u16u::dividend#0
(dword) div32u16u::dividend#1
(dword) div32u16u::dividend#2
(word) div32u16u::divisor
(word) div32u16u::divisor#0
(word) div32u16u::divisor#1
(word) div32u16u::divisor#2
(dword) div32u16u::quotient
(dword) div32u16u::quotient#0
(word) div32u16u::quotient_hi
(word) div32u16u::quotient_hi#0
(word) div32u16u::quotient_hi#1
(word) div32u16u::quotient_lo
(word) div32u16u::quotient_lo#0
(dword) div32u16u::return
(dword) div32u16u::return#0
(dword) div32u16u::return#1
(dword) div32u16u::return#2
(dword) div32u16u::return#3
(dword) div32u16u::return#4
(word()) divr16u((word) divr16u::dividend , (word) divr16u::divisor , (word) divr16u::rem)
(word~) divr16u::$0
(byte~) divr16u::$1
(word~) divr16u::$10
(bool~) divr16u::$11
(number~) divr16u::$2
(bool~) divr16u::$3
(bool~) divr16u::$4
(number~) divr16u::$5
(word~) divr16u::$6
(word~) divr16u::$7
(bool~) divr16u::$8
(bool~) divr16u::$9
(label) divr16u::@1
(label) divr16u::@2
(label) divr16u::@3
(label) divr16u::@4
(label) divr16u::@5
(label) divr16u::@6
(label) divr16u::@return
(word) divr16u::dividend
(word) divr16u::dividend#0
(word) divr16u::dividend#1
(word) divr16u::dividend#2
(word) divr16u::dividend#3
(word) divr16u::dividend#4
(word) divr16u::dividend#5
(word) divr16u::dividend#6
(word) divr16u::dividend#7
(word) divr16u::dividend#8
(word) divr16u::divisor
(word) divr16u::divisor#0
(word) divr16u::divisor#1
(word) divr16u::divisor#2
(word) divr16u::divisor#3
(word) divr16u::divisor#4
(word) divr16u::divisor#5
(word) divr16u::divisor#6
(word) divr16u::divisor#7
(byte) divr16u::i
(byte) divr16u::i#0
(byte) divr16u::i#1
(byte) divr16u::i#2
(byte) divr16u::i#3
(byte) divr16u::i#4
(byte) divr16u::i#5
(byte) divr16u::i#6
(word) divr16u::quotient
(word) divr16u::quotient#0
(word) divr16u::quotient#1
(word) divr16u::quotient#2
(word) divr16u::quotient#3
(word) divr16u::quotient#4
(word) divr16u::quotient#5
(word) divr16u::quotient#6
(word) divr16u::quotient#7
(word) divr16u::quotient#8
(word) divr16u::rem
(word) divr16u::rem#0
(word) divr16u::rem#1
(word) divr16u::rem#10
(word) divr16u::rem#11
(word) divr16u::rem#2
(word) divr16u::rem#3
(word) divr16u::rem#4
(word) divr16u::rem#5
(word) divr16u::rem#6
(word) divr16u::rem#7
(word) divr16u::rem#8
(word) divr16u::rem#9
(word) divr16u::return
(word) divr16u::return#0
(word) divr16u::return#1
(word) divr16u::return#2
(word) divr16u::return#3
(word) divr16u::return#4
(word) divr16u::return#5
(word) divr16u::return#6
(byte) frame_cnt
(byte) frame_cnt#0
(byte) frame_cnt#1
(byte) frame_cnt#10
(byte) frame_cnt#11
(byte) frame_cnt#12
(byte) frame_cnt#13
(byte) frame_cnt#14
(byte) frame_cnt#15
(byte) frame_cnt#16
(byte) frame_cnt#17
(byte) frame_cnt#18
(byte) frame_cnt#19
(byte) frame_cnt#2
(byte) frame_cnt#20
(byte) frame_cnt#21
(byte) frame_cnt#22
(byte) frame_cnt#23
(byte) frame_cnt#24
(byte) frame_cnt#25
(byte) frame_cnt#26
(byte) frame_cnt#3
(byte) frame_cnt#4
(byte) frame_cnt#5
(byte) frame_cnt#6
(byte) frame_cnt#7
(byte) frame_cnt#8
(byte) frame_cnt#9
(void()) init_irq()
(void()*~) init_irq::$0
(label) init_irq::@return
interrupt(HARDWARE_CLOBBER)(void()) irq()
(bool~) irq::$0
(bool~) irq::$1
(label) irq::@1
(label) irq::@2
(label) irq::@return
(void()) main()
(signed word~) main::$10
(signed word~) main::$11
(number~) main::$12
(word~) main::$13
(signed dword~) main::$14
(word~) main::$15
(signed word~) main::$16
(signed word~) main::$17
(number~) main::$18
(word~) main::$19
(byte~) main::$20
(bool~) main::$22
(bool~) main::$23
(bool~) main::$24
(bool~) main::$25
(bool~) main::$26
(bool~) main::$27
(bool~) main::$28
(bool~) main::$29
(byte~) main::$3
(bool~) main::$30
(bool~) main::$31
(word~) main::$32
(word~) main::$33
(byte~) main::$4
(number~) main::$5
(byte~) main::$6
(signed dword~) main::$8
(word~) main::$9
(label) main::@1
(label) main::@11
(label) main::@12
(label) main::@13
(label) main::@17
(label) main::@18
(label) main::@2
(label) main::@23
(label) main::@24
(label) main::@25
(label) main::@26
(label) main::@27
(label) main::@28
(label) main::@29
(label) main::@30
(label) main::@4
(label) main::@5
(label) main::@6
(label) main::@return
(signed word) main::cos_x
(signed word) main::cos_x#0
(word) main::idx_x
(word) main::idx_x#0
(word) main::idx_x#1
(word) main::idx_x#10
(word) main::idx_x#11
(word) main::idx_x#12
(word) main::idx_x#2
(word) main::idx_x#3
(word) main::idx_x#4
(word) main::idx_x#5
(word) main::idx_x#6
(word) main::idx_x#7
(word) main::idx_x#8
(word) main::idx_x#9
(word) main::idx_y
(word) main::idx_y#0
(word) main::idx_y#1
(word) main::idx_y#10
(word) main::idx_y#11
(word) main::idx_y#12
(word) main::idx_y#2
(word) main::idx_y#3
(word) main::idx_y#4
(word) main::idx_y#5
(word) main::idx_y#6
(word) main::idx_y#7
(word) main::idx_y#8
(word) main::idx_y#9
(signed word) main::r
(signed word) main::r#0
(signed word) main::r#1
(signed word) main::r#10
(signed word) main::r#11
(signed word) main::r#12
(signed word) main::r#2
(signed word) main::r#3
(signed word) main::r#4
(signed word) main::r#5
(signed word) main::r#6
(signed word) main::r#7
(signed word) main::r#8
(signed word) main::r#9
(byte) main::r_add
(byte) main::r_add#0
(byte) main::r_add#1
(byte) main::r_add#10
(byte) main::r_add#11
(byte) main::r_add#12
(byte) main::r_add#2
(byte) main::r_add#3
(byte) main::r_add#4
(byte) main::r_add#5
(byte) main::r_add#6
(byte) main::r_add#7
(byte) main::r_add#8
(byte) main::r_add#9
(signed word) main::sin_y
(signed word) main::sin_y#0
(label) main::toD0181
(word~) main::toD0181_$0
(word~) main::toD0181_$0#0
(number~) main::toD0181_$1
(number~) main::toD0181_$1#0
(number~) main::toD0181_$2
(number~) main::toD0181_$2#0
(number~) main::toD0181_$3
(number~) main::toD0181_$3#0
(word~) main::toD0181_$4
(word~) main::toD0181_$4#0
(byte~) main::toD0181_$5
(byte~) main::toD0181_$5#0
(number~) main::toD0181_$6
(number~) main::toD0181_$6#0
(number~) main::toD0181_$7
(number~) main::toD0181_$7#0
(number~) main::toD0181_$8
(number~) main::toD0181_$8#0
(label) main::toD0181_@return
(byte*) main::toD0181_gfx
(byte*) main::toD0181_gfx#0
(byte*) main::toD0181_gfx#1
(byte) main::toD0181_return
(byte) main::toD0181_return#0
(byte) main::toD0181_return#1
(byte) main::toD0181_return#2
(byte) main::toD0181_return#3
(byte*) main::toD0181_screen
(byte*) main::toD0181_screen#0
(byte*) main::toD0181_screen#1
(word) main::x
(word) main::x#0
(word) main::x#1
(signed dword) main::xpos
(signed dword) main::xpos#0
(word) main::y
(word) main::y#0
(signed dword) main::ypos
(signed dword) main::ypos#0
(void*()) memset((void*) memset::str , (byte) memset::c , (word) memset::num)
(bool~) memset::$0
(bool~) memset::$1
(byte*~) memset::$2
(byte*~) memset::$3
(bool~) memset::$4
(label) memset::@1
(label) memset::@2
(label) memset::@4
(label) memset::@5
(label) memset::@return
(byte) memset::c
(byte) memset::c#0
(byte) memset::c#1
(byte) memset::c#2
(byte) memset::c#3
(byte) memset::c#4
(byte) memset::c#5
(byte*) memset::dst
(byte*) memset::dst#0
(byte*) memset::dst#1
(byte*) memset::dst#2
(byte*) memset::dst#3
(byte*) memset::end
(byte*) memset::end#0
(byte*) memset::end#1
(byte*) memset::end#2
(word) memset::num
(word) memset::num#0
(word) memset::num#1
(word) memset::num#2
(word) memset::num#3
(void*) memset::return
(void*) memset::return#0
(void*) memset::return#1
(void*) memset::return#2
(void*) memset::return#3
(void*) memset::return#4
(void*) memset::str
(void*) memset::str#0
(void*) memset::str#1
(void*) memset::str#2
(void*) memset::str#3
(void*) memset::str#4
(void*) memset::str#5
(void*) memset::str#6
(signed dword()) mul16s((signed word) mul16s::a , (signed word) mul16s::b)
(word~) mul16s::$0
(word~) mul16s::$1
(word~) mul16s::$10
(word~) mul16s::$11
(word~) mul16s::$13
(word~) mul16s::$14
(word~) mul16s::$15
(word~) mul16s::$16
(word~) mul16s::$17
(dword~) mul16s::$2
(bool~) mul16s::$3
(bool~) mul16s::$4
(bool~) mul16s::$5
(bool~) mul16s::$6
(signed dword~) mul16s::$7
(word~) mul16s::$9
(label) mul16s::@1
(label) mul16s::@2
(label) mul16s::@3
(label) mul16s::@4
(label) mul16s::@6
(label) mul16s::@return
(signed word) mul16s::a
(signed word) mul16s::a#0
(signed word) mul16s::a#1
(signed word) mul16s::a#2
(signed word) mul16s::a#3
(signed word) mul16s::a#4
(signed word) mul16s::a#5
(signed word) mul16s::a#6
(signed word) mul16s::a#7
(signed word) mul16s::b
(signed word) mul16s::b#0
(signed word) mul16s::b#1
(signed word) mul16s::b#2
(signed word) mul16s::b#3
(signed word) mul16s::b#4
(signed word) mul16s::b#5
(signed word) mul16s::b#6
(dword) mul16s::m
(dword) mul16s::m#0
(dword) mul16s::m#1
(dword) mul16s::m#2
(dword) mul16s::m#3
(dword) mul16s::m#4
(dword) mul16s::m#5
(dword) mul16s::m#6
(signed dword) mul16s::return
(signed dword) mul16s::return#0
(signed dword) mul16s::return#1
(signed dword) mul16s::return#2
(signed dword) mul16s::return#3
(signed dword) mul16s::return#4
(signed dword) mul16s::return#5
(signed dword) mul16s::return#6
(signed dword) mul16s::return#7
(signed dword) mul16s::return#8
(dword()) mul16u((word) mul16u::a , (word) mul16u::b)
(bool~) mul16u::$0
(number~) mul16u::$1
(bool~) mul16u::$2
(bool~) mul16u::$3
(dword~) mul16u::$4
(word~) mul16u::$5
(dword~) mul16u::$6
(label) mul16u::@1
(label) mul16u::@2
(label) mul16u::@3
(label) mul16u::@4
(label) mul16u::@7
(label) mul16u::@return
(word) mul16u::a
(word) mul16u::a#0
(word) mul16u::a#1
(word) mul16u::a#2
(word) mul16u::a#3
(word) mul16u::a#4
(word) mul16u::a#5
(word) mul16u::a#6
(word) mul16u::a#7
(word) mul16u::b
(word) mul16u::b#0
(word) mul16u::b#1
(word) mul16u::b#2
(dword) mul16u::mb
(dword) mul16u::mb#0
(dword) mul16u::mb#1
(dword) mul16u::mb#2
(dword) mul16u::mb#3
(dword) mul16u::mb#4
(dword) mul16u::mb#5
(dword) mul16u::res
(dword) mul16u::res#0
(dword) mul16u::res#1
(dword) mul16u::res#2
(dword) mul16u::res#3
(dword) mul16u::res#4
(dword) mul16u::res#5
(dword) mul16u::res#6
(dword) mul16u::return
(dword) mul16u::return#0
(dword) mul16u::return#1
(dword) mul16u::return#2
(dword) mul16u::return#3
(dword) mul16u::return#4
(dword) mul16u::return#5
(dword) mul16u::return#6
(word()) mulu16_sel((word) mulu16_sel::v1 , (word) mulu16_sel::v2 , (byte) mulu16_sel::select)
(dword~) mulu16_sel::$0
(dword~) mulu16_sel::$1
(word~) mulu16_sel::$2
(label) mulu16_sel::@2
(label) mulu16_sel::@return
(word) mulu16_sel::return
(word) mulu16_sel::return#0
(word) mulu16_sel::return#1
(word) mulu16_sel::return#10
(word) mulu16_sel::return#11
(word) mulu16_sel::return#12
(word) mulu16_sel::return#2
(word) mulu16_sel::return#3
(word) mulu16_sel::return#4
(word) mulu16_sel::return#5
(word) mulu16_sel::return#6
(word) mulu16_sel::return#7
(word) mulu16_sel::return#8
(word) mulu16_sel::return#9
(byte) mulu16_sel::select
(byte) mulu16_sel::select#0
(byte) mulu16_sel::select#1
(byte) mulu16_sel::select#2
(byte) mulu16_sel::select#3
(byte) mulu16_sel::select#4
(byte) mulu16_sel::select#5
(byte) mulu16_sel::select#6
(word) mulu16_sel::v1
(word) mulu16_sel::v1#0
(word) mulu16_sel::v1#1
(word) mulu16_sel::v1#2
(word) mulu16_sel::v1#3
(word) mulu16_sel::v1#4
(word) mulu16_sel::v1#5
(word) mulu16_sel::v2
(word) mulu16_sel::v2#0
(word) mulu16_sel::v2#1
(word) mulu16_sel::v2#2
(word) mulu16_sel::v2#3
(word) mulu16_sel::v2#4
(word) mulu16_sel::v2#5
(byte[$100]) plots_per_frame
(byte[$100]) plots_per_frame#0
(word) rem16u
(word) rem16u#0
(word) rem16u#1
(word) rem16u#10
(word) rem16u#11
(word) rem16u#12
(word) rem16u#13
(word) rem16u#14
(word) rem16u#15
(word) rem16u#16
(word) rem16u#17
(word) rem16u#18
(word) rem16u#19
(word) rem16u#2
(word) rem16u#20
(word) rem16u#21
(word) rem16u#22
(word) rem16u#23
(word) rem16u#24
(word) rem16u#25
(word) rem16u#26
(word) rem16u#27
(word) rem16u#28
(word) rem16u#29
(word) rem16u#3
(word) rem16u#30
(word) rem16u#31
(word) rem16u#32
(word) rem16u#33
(word) rem16u#34
(word) rem16u#35
(word) rem16u#36
(word) rem16u#37
(word) rem16u#38
(word) rem16u#39
(word) rem16u#4
(word) rem16u#40
(word) rem16u#41
(word) rem16u#42
(word) rem16u#43
(word) rem16u#44
(word) rem16u#45
(word) rem16u#46
(word) rem16u#47
(word) rem16u#48
(word) rem16u#49
(word) rem16u#5
(word) rem16u#50
(word) rem16u#6
(word) rem16u#7
(word) rem16u#8
(word) rem16u#9
(signed word()) sin16s((dword) sin16s::x)
(bool~) sin16s::$0
(bool~) sin16s::$1
(word~) sin16s::$10
(word~) sin16s::$11
(word~) sin16s::$12
(word~) sin16s::$13
(signed word~) sin16s::$14
(bool~) sin16s::$15
(bool~) sin16s::$16
(dword~) sin16s::$17
(dword~) sin16s::$18
(signed word~) sin16s::$19
(bool~) sin16s::$2
(signed word~) sin16s::$20
(bool~) sin16s::$3
(dword~) sin16s::$4
(word~) sin16s::$5
(word~) sin16s::$6
(word~) sin16s::$7
(word~) sin16s::$8
(word~) sin16s::$9
(label) sin16s::@1
(label) sin16s::@10
(label) sin16s::@11
(label) sin16s::@12
(label) sin16s::@2
(label) sin16s::@3
(label) sin16s::@4
(label) sin16s::@5
(label) sin16s::@6
(label) sin16s::@8
(label) sin16s::@9
(label) sin16s::@return
(byte) sin16s::isUpper
(byte) sin16s::isUpper#0
(byte) sin16s::isUpper#1
(byte) sin16s::isUpper#2
(byte) sin16s::isUpper#3
(byte) sin16s::isUpper#4
(byte) sin16s::isUpper#5
(byte) sin16s::isUpper#6
(byte) sin16s::isUpper#7
(byte) sin16s::isUpper#8
(byte) sin16s::isUpper#9
(signed word) sin16s::return
(signed word) sin16s::return#0
(signed word) sin16s::return#1
(signed word) sin16s::return#2
(signed word) sin16s::return#3
(signed word) sin16s::return#4
(signed word) sin16s::sinx
(signed word) sin16s::sinx#0
(signed word) sin16s::sinx#1
(signed word) sin16s::sinx#2
(word) sin16s::usinx
(word) sin16s::usinx#0
(word) sin16s::usinx#1
(word) sin16s::usinx#2
(word) sin16s::usinx#3
(word) sin16s::usinx#4
(dword) sin16s::x
(dword) sin16s::x#0
(dword) sin16s::x#1
(dword) sin16s::x#2
(dword) sin16s::x#3
(dword) sin16s::x#4
(dword) sin16s::x#5
(dword) sin16s::x#6
(dword) sin16s::x#7
(word) sin16s::x1
(word) sin16s::x1#0
(word) sin16s::x1#1
(word) sin16s::x1#2
(word) sin16s::x1#3
(word) sin16s::x1#4
(word) sin16s::x2
(word) sin16s::x2#0
(word) sin16s::x3
(word) sin16s::x3#0
(word) sin16s::x3#1
(word) sin16s::x3_6
(word) sin16s::x3_6#0
(word) sin16s::x4
(word) sin16s::x4#0
(word) sin16s::x5
(word) sin16s::x5#0
(word) sin16s::x5_128
(word) sin16s::x5_128#0
(void()) sin16s_gen2((signed word*) sin16s_gen2::sintab , (word) sin16s_gen2::wavelength , (signed word) sin16s_gen2::min , (signed word) sin16s_gen2::max)
(signed word~) sin16s_gen2::$0
(signed word~) sin16s_gen2::$1
(dword~) sin16s_gen2::$10
(signed word~) sin16s_gen2::$2
(dword~) sin16s_gen2::$3
(bool~) sin16s_gen2::$4
(signed word~) sin16s_gen2::$5
(signed dword~) sin16s_gen2::$6
(word~) sin16s_gen2::$7
(signed word~) sin16s_gen2::$8
(signed word~) sin16s_gen2::$9
(label) sin16s_gen2::@1
(label) sin16s_gen2::@2
(label) sin16s_gen2::@7
(label) sin16s_gen2::@8
(label) sin16s_gen2::@9
(label) sin16s_gen2::@return
(signed word) sin16s_gen2::ampl
(signed word) sin16s_gen2::ampl#0
(signed word) sin16s_gen2::ampl#1
(signed word) sin16s_gen2::ampl#2
(signed word) sin16s_gen2::ampl#3
(signed word) sin16s_gen2::ampl#4
(signed word) sin16s_gen2::ampl#5
(word) sin16s_gen2::i
(word) sin16s_gen2::i#0
(word) sin16s_gen2::i#1
(word) sin16s_gen2::i#2
(word) sin16s_gen2::i#3
(word) sin16s_gen2::i#4
(word) sin16s_gen2::i#5
(signed word) sin16s_gen2::max
(signed word) sin16s_gen2::max#0
(signed word) sin16s_gen2::max#1
(signed word) sin16s_gen2::min
(signed word) sin16s_gen2::min#0
(signed word) sin16s_gen2::min#1
(signed word) sin16s_gen2::offs
(signed word) sin16s_gen2::offs#0
(signed word) sin16s_gen2::offs#1
(signed word) sin16s_gen2::offs#2
(signed word) sin16s_gen2::offs#3
(signed word) sin16s_gen2::offs#4
(signed word) sin16s_gen2::offs#5
(signed word*) sin16s_gen2::sintab
(signed word*) sin16s_gen2::sintab#0
(signed word*) sin16s_gen2::sintab#1
(signed word*) sin16s_gen2::sintab#2
(signed word*) sin16s_gen2::sintab#3
(signed word*) sin16s_gen2::sintab#4
(signed word*) sin16s_gen2::sintab#5
(signed word*) sin16s_gen2::sintab#6
(signed word*) sin16s_gen2::sintab#7
(dword) sin16s_gen2::step
(dword) sin16s_gen2::step#0
(dword) sin16s_gen2::step#1
(dword) sin16s_gen2::step#2
(dword) sin16s_gen2::step#3
(dword) sin16s_gen2::step#4
(word) sin16s_gen2::wavelength
(word) sin16s_gen2::wavelength#0
(word) sin16s_gen2::wavelength#1
(word) sin16s_gen2::wavelength#2
(word) sin16s_gen2::wavelength#3
(word) sin16s_gen2::wavelength#4
(word) sin16s_gen2::wavelength#5
(word) sin16s_gen2::wavelength#6
(dword) sin16s_gen2::x
(dword) sin16s_gen2::x#0
(dword) sin16s_gen2::x#1
(dword) sin16s_gen2::x#2
(dword) sin16s_gen2::x#3
(dword) sin16s_gen2::x#4
(dword) sin16s_gen2::x#5

Fixing inline constructor with div32u16u::$4 ← (word)div32u16u::quotient_hi#1 dw= (word)div32u16u::quotient_lo#0
Fixing inline constructor with bitmap_plot::$3 ← (byte)*(bitmap_plot_yhi#0 + bitmap_plot::y#1) w= (byte)*(bitmap_plot_ylo#0 + bitmap_plot::y#1)
Successful SSA optimization Pass2FixInlineConstructors
Adding number conversion cast (unumber) 7 in (byte) PROCPORT_DDR_MEMORY_MASK#0 ← (number) 7
Adding number conversion cast (unumber) 5 in (byte) PROCPORT_RAM_IO#0 ← (number) 5
Adding number conversion cast (unumber) $20 in (byte) VIC_BMM#0 ← (number) $20
Adding number conversion cast (unumber) $10 in (byte) VIC_DEN#0 ← (number) $10
Adding number conversion cast (unumber) 8 in (byte) VIC_RSEL#0 ← (number) 8
Adding number conversion cast (unumber) 1 in (byte) IRQ_RASTER#0 ← (number) 1
Adding number conversion cast (unumber) $7f in (byte) CIA_INTERRUPT_CLEAR#0 ← (number) $7f
Adding number conversion cast (unumber) 0 in (byte) BLACK#0 ← (number) 0
Adding number conversion cast (unumber) 1 in (byte) WHITE#0 ← (number) 1
Adding number conversion cast (unumber) 0 in (word) rem16u#0 ← (number) 0
Adding number conversion cast (unumber) 0 in (word) divr16u::quotient#0 ← (number) 0
Adding number conversion cast (unumber) 1 in (word~) divr16u::$0 ← (word) divr16u::rem#5 << (number) 1
Adding number conversion cast (unumber) $80 in (number~) divr16u::$2 ← (byte~) divr16u::$1 & (number) $80
Adding number conversion cast (unumber) divr16u::$2 in (number~) divr16u::$2 ← (byte~) divr16u::$1 & (unumber)(number) $80
Adding number conversion cast (unumber) 0 in (bool~) divr16u::$3 ← (unumber~) divr16u::$2 != (number) 0
Adding number conversion cast (unumber) 1 in (word~) divr16u::$6 ← (word) divr16u::dividend#4 << (number) 1
Adding number conversion cast (unumber) 1 in (word~) divr16u::$7 ← (word) divr16u::quotient#3 << (number) 1
Adding number conversion cast (unumber) 1 in (number~) divr16u::$5 ← (word) divr16u::rem#7 | (number) 1
Adding number conversion cast (unumber) divr16u::$5 in (number~) divr16u::$5 ← (word) divr16u::rem#7 | (unumber)(number) 1
Adding number conversion cast (unumber) 0 in (word) divr16u::rem#3 ← (number) 0
Adding number conversion cast (unumber) 0 in (dword) mul16u::res#0 ← (number) 0
Adding number conversion cast (unumber) 0 in (bool~) mul16u::$0 ← (word) mul16u::a#3 != (number) 0
Adding number conversion cast (unumber) 1 in (number~) mul16u::$1 ← (word) mul16u::a#4 & (number) 1
Adding number conversion cast (unumber) mul16u::$1 in (number~) mul16u::$1 ← (word) mul16u::a#4 & (unumber)(number) 1
Adding number conversion cast (unumber) 0 in (bool~) mul16u::$2 ← (unumber~) mul16u::$1 != (number) 0
Adding number conversion cast (unumber) 1 in (word~) mul16u::$5 ← (word) mul16u::a#5 >> (number) 1
Adding number conversion cast (unumber) 1 in (dword~) mul16u::$6 ← (dword) mul16u::mb#2 << (number) 1
Adding number conversion cast (snumber) 0 in (bool~) mul16s::$3 ← (signed word) mul16s::a#4 < (number) 0
Adding number conversion cast (snumber) 0 in (bool~) mul16s::$5 ← (signed word) mul16s::b#4 < (number) 0
Adding number conversion cast (unumber) $6487ed51 in (dword) PI2_u4f28#0 ← (number) $6487ed51
Adding number conversion cast (unumber) $3243f6a9 in (dword) PI_u4f28#0 ← (number) $3243f6a9
Adding number conversion cast (unumber) $1921fb54 in (dword) PI_HALF_u4f28#0 ← (number) $1921fb54
Adding number conversion cast (snumber) 1 in (signed word~) sin16s_gen2::$1 ← (signed word) sin16s_gen2::ampl#0 >> (number) 1
Adding number conversion cast (unumber) 0 in (dword) sin16s_gen2::x#0 ← (number) 0
Adding number conversion cast (unumber) 0 in (word) sin16s_gen2::i#0 ← (number) 0
Adding number conversion cast (unumber) 0 in (byte) sin16s::isUpper#0 ← (number) 0
Adding number conversion cast (unumber) 1 in (byte) sin16s::isUpper#1 ← (number) 1
Adding number conversion cast (unumber) 3 in (dword~) sin16s::$4 ← (dword) sin16s::x#6 << (number) 3
Adding number conversion cast (unumber) 0 in (byte) mulu16_sel::select#0 ← (number) 0
Adding number conversion cast (unumber) 1 in (byte) mulu16_sel::select#1 ← (number) 1
Adding number conversion cast (unumber) $10000/6 in (word) mulu16_sel::v2#2 ← (number) $10000/(number) 6
Adding number conversion cast (unumber) 1 in (byte) mulu16_sel::select#2 ← (number) 1
Adding number conversion cast (unumber) 0 in (byte) mulu16_sel::select#3 ← (number) 0
Adding number conversion cast (unumber) 0 in (byte) mulu16_sel::select#4 ← (number) 0
Adding number conversion cast (unumber) 4 in (word~) sin16s::$12 ← (word) sin16s::x5#0 >> (number) 4
Adding number conversion cast (unumber) 0 in (bool~) sin16s::$15 ← (byte) sin16s::isUpper#2 != (number) 0
Adding number conversion cast (unumber) 0 in (bool~) memset::$0 ← (word) memset::num#2 > (number) 0
Adding number conversion cast (unumber) $80 in (byte) bitmap_init::bits#0 ← (number) $80
Adding number conversion cast (unumber) 1 in (byte) bitmap_init::bits#1 ← (byte) bitmap_init::bits#3 >> (number) 1
Adding number conversion cast (unumber) 0 in (bool~) bitmap_init::$0 ← (byte) bitmap_init::bits#1 == (number) 0
Adding number conversion cast (unumber) $80 in (byte) bitmap_init::bits#2 ← (number) $80
Adding number conversion cast (unumber) 7 in (number~) bitmap_init::$3 ← (byte) bitmap_init::y#2 & (number) 7
Adding number conversion cast (unumber) bitmap_init::$3 in (number~) bitmap_init::$3 ← (byte) bitmap_init::y#2 & (unumber)(number) 7
Adding number conversion cast (unumber) bitmap_init::$5 in (number~) bitmap_init::$5 ← (unumber~) bitmap_init::$3 | (byte~) bitmap_init::$4
Adding number conversion cast (unumber) 7 in (number~) bitmap_init::$7 ← (byte) bitmap_init::y#2 & (number) 7
Adding number conversion cast (unumber) bitmap_init::$7 in (number~) bitmap_init::$7 ← (byte) bitmap_init::y#2 & (unumber)(number) 7
Adding number conversion cast (unumber) 7 in (bool~) bitmap_init::$8 ← (unumber~) bitmap_init::$7 == (number) 7
Adding number conversion cast (unumber) $28*8 in (byte*~) bitmap_init::$10 ← (byte*) bitmap_init::yoffs#3 + (number) $28*(number) 8
Adding number conversion cast (unumber) $10 in (number~) bitmap_clear::$0 ← (byte) bitmap_clear::fgcol#1 * (number) $10
Adding number conversion cast (unumber) bitmap_clear::$0 in (number~) bitmap_clear::$0 ← (byte) bitmap_clear::fgcol#1 * (unumber)(number) $10
Adding number conversion cast (unumber) bitmap_clear::$1 in (number~) bitmap_clear::$1 ← (unumber~) bitmap_clear::$0 + (byte) bitmap_clear::bgcol#1
Adding number conversion cast (unumber) 0 in (byte) memset::c#1 ← (number) 0
Adding number conversion cast (unumber) $fff8 in (number~) bitmap_plot::$1 ← (word) bitmap_plot::x#1 & (number) $fff8
Adding number conversion cast (unumber) bitmap_plot::$1 in (number~) bitmap_plot::$1 ← (word) bitmap_plot::x#1 & (unumber)(number) $fff8
Adding number conversion cast (unumber) $200 in (word) sin16s_gen2::wavelength#0 ← (number) $200
Adding number conversion cast (snumber) -$1001 in (signed word) sin16s_gen2::min#0 ← (number) -$1001
Adding number conversion cast (snumber) $1001 in (signed word) sin16s_gen2::max#0 ← (number) $1001
Adding number conversion cast (unumber) 3 in (number~) main::$5 ← (byte~) main::$4 | (number) 3
Adding number conversion cast (unumber) main::$5 in (number~) main::$5 ← (byte~) main::$4 | (unumber)(number) 3
Adding number conversion cast (unumber) $3fff in (number~) main::toD0181_$1#0 ← (word~) main::toD0181_$0#0 & (number) $3fff
Adding number conversion cast (unumber) main::toD0181_$1#0 in (number~) main::toD0181_$1#0 ← (word~) main::toD0181_$0#0 & (unumber)(number) $3fff
Adding number conversion cast (unumber) 4 in (number~) main::toD0181_$2#0 ← (unumber~) main::toD0181_$1#0 * (number) 4
Adding number conversion cast (unumber) main::toD0181_$2#0 in (number~) main::toD0181_$2#0 ← (unumber~) main::toD0181_$1#0 * (unumber)(number) 4
Adding number conversion cast (unumber) main::toD0181_$3#0 in (number~) main::toD0181_$3#0 ← > (unumber~) main::toD0181_$2#0
Adding number conversion cast (unumber) 4 in (number~) main::toD0181_$6#0 ← (byte~) main::toD0181_$5#0 / (number) 4
Adding number conversion cast (unumber) main::toD0181_$6#0 in (number~) main::toD0181_$6#0 ← (byte~) main::toD0181_$5#0 / (unumber)(number) 4
Adding number conversion cast (unumber) $f in (number~) main::toD0181_$7#0 ← (unumber~) main::toD0181_$6#0 & (number) $f
Adding number conversion cast (unumber) main::toD0181_$7#0 in (number~) main::toD0181_$7#0 ← (unumber~) main::toD0181_$6#0 & (unumber)(number) $f
Adding number conversion cast (unumber) main::toD0181_$8#0 in (number~) main::toD0181_$8#0 ← (unumber~) main::toD0181_$3#0 | (unumber~) main::toD0181_$7#0
Adding number conversion cast (unumber) 0 in (word) main::idx_x#0 ← (number) 0
Adding number conversion cast (unumber) $80 in (word) main::idx_y#0 ← (number) $80
Adding number conversion cast (snumber) 0 in (signed word) main::r#0 ← (number) 0
Adding number conversion cast (unumber) $20 in (byte) main::r_add#0 ← (number) $20
Adding number conversion cast (snumber) 2 in (signed word~) main::$11 ← (signed word~) main::$10 >> (number) 2
Adding number conversion cast (snumber) $a0 in (number~) main::$12 ← (number) $a0 + (signed word~) main::$11
Adding number conversion cast (snumber) main::$12 in (number~) main::$12 ← (snumber)(number) $a0 + (signed word~) main::$11
Adding number conversion cast (snumber) 2 in (signed word~) main::$17 ← (signed word~) main::$16 >> (number) 2
Adding number conversion cast (snumber) $64 in (number~) main::$18 ← (number) $64 + (signed word~) main::$17
Adding number conversion cast (snumber) main::$18 in (number~) main::$18 ← (snumber)(number) $64 + (signed word~) main::$17
Adding number conversion cast (unumber) $200 in (bool~) main::$22 ← (word) main::idx_x#1 >= (number) $200
Adding number conversion cast (unumber) $200 in (bool~) main::$24 ← (word) main::idx_y#1 >= (number) $200
Adding number conversion cast (unumber) 0 in (word) main::idx_x#2 ← (number) 0
Adding number conversion cast (unumber) 0 in (bool~) main::$26 ← (word) main::idx_x#5 == (number) 0
Adding number conversion cast (unumber) 1 in (bool~) main::$27 ← (byte) main::r_add#4 != (number) 1
Adding number conversion cast (unumber) 0 in (word) main::idx_y#2 ← (number) 0
Adding number conversion cast (snumber) $200*$c+$100 in (bool~) main::$30 ← (signed word) main::r#5 >= (number) $200*(number) $c+(number) $100
Adding number conversion cast (unumber) 2 in (byte) main::r_add#1 ← (byte) main::r_add#5 / (number) 2
Adding number conversion cast (unumber) 1 in (byte) frame_cnt#0 ← (number) 1
Adding number conversion cast (unumber) $80 in *((byte*) VIC_CONTROL#0) ← *((byte*) VIC_CONTROL#0) | (number) $80
Adding number conversion cast (unumber) 0 in *((byte*) RASTER#0) ← (number) 0
Adding number conversion cast (unumber) 0 in (bool~) irq::$1 ← (number) 0 != (byte) frame_cnt#4
Successful SSA optimization PassNAddNumberTypeConversions
Inlining cast (byte*) PROCPORT_DDR#0 ← (byte*)(number) 0
Inlining cast (byte) PROCPORT_DDR_MEMORY_MASK#0 ← (unumber)(number) 7
Inlining cast (byte*) PROCPORT#0 ← (byte*)(number) 1
Inlining cast (byte) PROCPORT_RAM_IO#0 ← (unumber)(number) 5
Inlining cast (byte*) RASTER#0 ← (byte*)(number) $d012
Inlining cast (byte*) BORDERCOL#0 ← (byte*)(number) $d020
Inlining cast (byte*) BGCOL#0 ← (byte*)(number) $d021
Inlining cast (byte*) VIC_CONTROL#0 ← (byte*)(number) $d011
Inlining cast (byte*) D011#0 ← (byte*)(number) $d011
Inlining cast (byte) VIC_BMM#0 ← (unumber)(number) $20
Inlining cast (byte) VIC_DEN#0 ← (unumber)(number) $10
Inlining cast (byte) VIC_RSEL#0 ← (unumber)(number) 8
Inlining cast (byte*) D018#0 ← (byte*)(number) $d018
Inlining cast (byte*) IRQ_STATUS#0 ← (byte*)(number) $d019
Inlining cast (byte*) IRQ_ENABLE#0 ← (byte*)(number) $d01a
Inlining cast (byte) IRQ_RASTER#0 ← (unumber)(number) 1
Inlining cast (byte*) CIA1_INTERRUPT#0 ← (byte*)(number) $dc0d
Inlining cast (byte) CIA_INTERRUPT_CLEAR#0 ← (unumber)(number) $7f
Inlining cast (void()**) HARDWARE_IRQ#0 ← (void()**)(number) $fffe
Inlining cast (byte) BLACK#0 ← (unumber)(number) 0
Inlining cast (byte) WHITE#0 ← (unumber)(number) 1
Inlining cast (word) rem16u#0 ← (unumber)(number) 0
Inlining cast (word) divr16u::quotient#0 ← (unumber)(number) 0
Inlining cast (word) divr16u::rem#3 ← (unumber)(number) 0
Inlining cast (dword) mul16u::res#0 ← (unumber)(number) 0
Inlining cast (word~) mul16s::$0 ← (word)(signed word) mul16s::a#3
Inlining cast (word~) mul16s::$1 ← (word)(signed word) mul16s::b#3
Inlining cast (word~) mul16s::$10 ← (word)(signed word) mul16s::b#5
Inlining cast (signed dword~) mul16s::$7 ← (signed dword)(dword) mul16s::m#4
Inlining cast (word~) mul16s::$14 ← (word)(signed word) mul16s::a#5
Inlining cast (dword) PI2_u4f28#0 ← (unumber)(number) $6487ed51
Inlining cast (dword) PI_u4f28#0 ← (unumber)(number) $3243f6a9
Inlining cast (dword) PI_HALF_u4f28#0 ← (unumber)(number) $1921fb54
Inlining cast (dword) sin16s_gen2::x#0 ← (unumber)(number) 0
Inlining cast (word) sin16s_gen2::i#0 ← (unumber)(number) 0
Inlining cast (signed word~) sin16s_gen2::$8 ← (signed word)(word~) sin16s_gen2::$7
Inlining cast (byte) sin16s::isUpper#0 ← (unumber)(number) 0
Inlining cast (byte) sin16s::isUpper#1 ← (unumber)(number) 1
Inlining cast (byte) mulu16_sel::select#0 ← (unumber)(number) 0
Inlining cast (byte) mulu16_sel::select#1 ← (unumber)(number) 1
Inlining cast (word) mulu16_sel::v2#2 ← (unumber)(number) $10000/(number) 6
Inlining cast (byte) mulu16_sel::select#2 ← (unumber)(number) 1
Inlining cast (byte) mulu16_sel::select#3 ← (unumber)(number) 0
Inlining cast (byte) mulu16_sel::select#4 ← (unumber)(number) 0
Inlining cast (signed word~) sin16s::$14 ← (signed word)(word) sin16s::usinx#1
Inlining cast (signed word~) sin16s::$19 ← (signed word)(word) sin16s::usinx#3
Inlining cast (byte*~) memset::$2 ← (byte*)(void*) memset::str#3
Inlining cast (byte*) memset::dst#0 ← (byte*)(void*) memset::str#3
Inlining cast (byte) bitmap_init::bits#0 ← (unumber)(number) $80
Inlining cast (byte) bitmap_init::bits#2 ← (unumber)(number) $80
Inlining cast (byte) memset::c#1 ← (unumber)(number) 0
Inlining cast (byte*) BITMAP#0 ← (byte*)(number) $2000
Inlining cast (byte*) SCREEN#0 ← (byte*)(number) $400
Inlining cast (word) sin16s_gen2::wavelength#0 ← (unumber)(number) $200
Inlining cast (signed word) sin16s_gen2::min#0 ← (snumber)(number) -$1001
Inlining cast (signed word) sin16s_gen2::max#0 ← (snumber)(number) $1001
Inlining cast (word~) main::toD0181_$0#0 ← (word)(byte*) main::toD0181_screen#1
Inlining cast (word~) main::toD0181_$4#0 ← (word)(byte*) main::toD0181_gfx#1
Inlining cast (word) main::idx_x#0 ← (unumber)(number) 0
Inlining cast (word) main::idx_y#0 ← (unumber)(number) $80
Inlining cast (signed word) main::r#0 ← (snumber)(number) 0
Inlining cast (byte) main::r_add#0 ← (unumber)(number) $20
Inlining cast (signed word~) main::$10 ← (signed word)(word~) main::$9
Inlining cast (word~) main::$13 ← (word)(snumber~) main::$12
Inlining cast (signed word~) main::$16 ← (signed word)(word~) main::$15
Inlining cast (word~) main::$19 ← (word)(snumber~) main::$18
Inlining cast (byte~) main::$20 ← (byte)(word) main::y#0
Inlining cast (word) main::idx_x#2 ← (unumber)(number) 0
Inlining cast (word) main::idx_y#2 ← (unumber)(number) 0
Inlining cast (byte) frame_cnt#0 ← (unumber)(number) 1
Inlining cast *((byte*) RASTER#0) ← (unumber)(number) 0
Successful SSA optimization Pass2InlineCast
Simplifying constant pointer cast (byte*) 0
Simplifying constant integer cast 7
Simplifying constant pointer cast (byte*) 1
Simplifying constant integer cast 5
Simplifying constant pointer cast (byte*) 53266
Simplifying constant pointer cast (byte*) 53280
Simplifying constant pointer cast (byte*) 53281
Simplifying constant pointer cast (byte*) 53265
Simplifying constant pointer cast (byte*) 53265
Simplifying constant integer cast $20
Simplifying constant integer cast $10
Simplifying constant integer cast 8
Simplifying constant pointer cast (byte*) 53272
Simplifying constant pointer cast (byte*) 53273
Simplifying constant pointer cast (byte*) 53274
Simplifying constant integer cast 1
Simplifying constant pointer cast (byte*) 56333
Simplifying constant integer cast $7f
Simplifying constant pointer cast (void()**) 65534
Simplifying constant integer cast 0
Simplifying constant integer cast 1
Simplifying constant integer cast 0
Simplifying constant integer cast 0
Simplifying constant integer cast 1
Simplifying constant integer cast $80
Simplifying constant integer cast 0
Simplifying constant integer cast 1
Simplifying constant integer cast 1
Simplifying constant integer cast 1
Simplifying constant integer cast 0
Simplifying constant integer cast (word) div32u16u::quotient_hi#1
Simplifying constant integer cast (word) div32u16u::quotient_lo#0
Simplifying constant integer cast 0
Simplifying constant integer cast 0
Simplifying constant integer cast 1
Simplifying constant integer cast 0
Simplifying constant integer cast 1
Simplifying constant integer cast 1
Simplifying constant integer cast 0
Simplifying constant integer cast 0
Simplifying constant integer cast $6487ed51
Simplifying constant integer cast $3243f6a9
Simplifying constant integer cast $1921fb54
Simplifying constant integer cast 1
Simplifying constant integer cast 0
Simplifying constant integer cast 0
Simplifying constant integer cast 0
Simplifying constant integer cast 1
Simplifying constant integer cast 3
Simplifying constant integer cast 0
Simplifying constant integer cast 1
Simplifying constant integer cast 1
Simplifying constant integer cast 0
Simplifying constant integer cast 0
Simplifying constant integer cast 4
Simplifying constant integer cast 0
Simplifying constant integer cast 0
Simplifying constant integer cast $80
Simplifying constant integer cast 1
Simplifying constant integer cast 0
Simplifying constant integer cast $80
Simplifying constant integer cast 7
Simplifying constant integer cast 7
Simplifying constant integer cast 7
Simplifying constant integer cast $10
Simplifying constant integer cast 0
Simplifying constant integer cast *((byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_plot::y#1)
Simplifying constant integer cast *((byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_plot::y#1)
Simplifying constant integer cast $fff8
Simplifying constant pointer cast (byte*) 8192
Simplifying constant pointer cast (byte*) 1024
Simplifying constant integer cast $200
Simplifying constant integer cast -$1001
Simplifying constant integer cast $1001
Simplifying constant integer cast 3
Simplifying constant integer cast $3fff
Simplifying constant integer cast 4
Simplifying constant integer cast 4
Simplifying constant integer cast $f
Simplifying constant integer cast 0
Simplifying constant integer cast $80
Simplifying constant integer cast 0
Simplifying constant integer cast $20
Simplifying constant integer cast 2
Simplifying constant integer cast $a0
Simplifying constant integer cast 2
Simplifying constant integer cast $64
Simplifying constant integer cast $200
Simplifying constant integer cast $200
Simplifying constant integer cast 0
Simplifying constant integer cast 0
Simplifying constant integer cast 1
Simplifying constant integer cast 0
Simplifying constant integer cast 2
Simplifying constant integer cast 1
Simplifying constant integer cast $80
Simplifying constant integer cast 0
Simplifying constant integer cast 0
Successful SSA optimization PassNCastSimplification
Finalized unsigned number type (byte) 7
Finalized unsigned number type (byte) 5
Finalized unsigned number type (byte) $20
Finalized unsigned number type (byte) $10
Finalized unsigned number type (byte) 8
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) $7f
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) $80
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 1
Finalized signed number type (signed byte) 0
Finalized signed number type (signed byte) 0
Finalized unsigned number type (dword) $6487ed51
Finalized unsigned number type (dword) $3243f6a9
Finalized unsigned number type (dword) $1921fb54
Finalized signed number type (signed byte) 1
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 3
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 4
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) $80
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) $80
Finalized unsigned number type (byte) 7
Finalized unsigned number type (byte) 7
Finalized unsigned number type (byte) 7
Finalized unsigned number type (byte) $10
Finalized unsigned number type (byte) 0
Finalized unsigned number type (word) $fff8
Finalized unsigned number type (word) $200
Finalized signed number type (signed word) -$1001
Finalized signed number type (signed word) $1001
Finalized unsigned number type (byte) 3
Finalized unsigned number type (word) $3fff
Finalized unsigned number type (byte) 4
Finalized unsigned number type (byte) 4
Finalized unsigned number type (byte) $f
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) $80
Finalized signed number type (signed byte) 0
Finalized unsigned number type (byte) $20
Finalized signed number type (signed byte) 2
Finalized signed number type (signed word) $a0
Finalized signed number type (signed byte) 2
Finalized signed number type (signed byte) $64
Finalized unsigned number type (word) $200
Finalized unsigned number type (word) $200
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 2
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) $80
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 0
Successful SSA optimization PassNFinalizeNumberTypeConversions
Inferred type updated to byte in (unumber~) divr16u::$2 ← (byte~) divr16u::$1 & (byte) $80
Inferred type updated to word in (unumber~) divr16u::$5 ← (word) divr16u::rem#7 | (byte) 1
Inferred type updated to byte in (unumber~) mul16u::$1 ← (word) mul16u::a#4 & (byte) 1
Inferred type updated to byte in (unumber~) bitmap_init::$3 ← (byte) bitmap_init::y#2 & (byte) 7
Inferred type updated to byte in (unumber~) bitmap_init::$5 ← (byte~) bitmap_init::$3 | (byte~) bitmap_init::$4
Inferred type updated to byte in (unumber~) bitmap_init::$7 ← (byte) bitmap_init::y#2 & (byte) 7
Inferred type updated to byte in (unumber~) bitmap_clear::$0 ← (byte) bitmap_clear::fgcol#1 * (byte) $10
Inferred type updated to byte in (unumber~) bitmap_clear::$1 ← (byte~) bitmap_clear::$0 + (byte) bitmap_clear::bgcol#1
Inferred type updated to word in (unumber~) bitmap_plot::$1 ← (word) bitmap_plot::x#1 & (word) $fff8
Inferred type updated to byte in (unumber~) main::$5 ← (byte~) main::$4 | (byte) 3
Inferred type updated to word in (unumber~) main::toD0181_$1#0 ← (word~) main::toD0181_$0#0 & (word) $3fff
Inferred type updated to word in (unumber~) main::toD0181_$2#0 ← (word~) main::toD0181_$1#0 * (byte) 4
Inferred type updated to byte in (unumber~) main::toD0181_$3#0 ← > (word~) main::toD0181_$2#0
Inferred type updated to byte in (unumber~) main::toD0181_$6#0 ← (byte~) main::toD0181_$5#0 / (byte) 4
Inferred type updated to byte in (unumber~) main::toD0181_$7#0 ← (byte~) main::toD0181_$6#0 & (byte) $f
Inferred type updated to byte in (unumber~) main::toD0181_$8#0 ← (byte~) main::toD0181_$3#0 | (byte~) main::toD0181_$7#0
Inferred type updated to signed word in (snumber~) main::$12 ← (signed word) $a0 + (signed word~) main::$11
Inferred type updated to signed word in (snumber~) main::$18 ← (signed byte) $64 + (signed word~) main::$17
Adding pointer type conversion cast (byte*) bitmap_plot::$0 in (byte*~) bitmap_plot::$0 ← (word~) bitmap_plot::$3
Successful SSA optimization PassNAddTypeConversionAssignment
Inversing boolean not [31] (bool~) divr16u::$4 ← (byte~) divr16u::$2 == (byte) 0 from [30] (bool~) divr16u::$3 ← (byte~) divr16u::$2 != (byte) 0
Inversing boolean not [39] (bool~) divr16u::$9 ← (word) divr16u::rem#6 < (word) divr16u::divisor#2 from [38] (bool~) divr16u::$8 ← (word) divr16u::rem#6 >= (word) divr16u::divisor#2
Inversing boolean not [96] (bool~) mul16u::$3 ← (byte~) mul16u::$1 == (byte) 0 from [95] (bool~) mul16u::$2 ← (byte~) mul16u::$1 != (byte) 0
Inversing boolean not [122] (bool~) mul16s::$4 ← (signed word) mul16s::a#4 >= (signed byte) 0 from [121] (bool~) mul16s::$3 ← (signed word) mul16s::a#4 < (signed byte) 0
Inversing boolean not [126] (bool~) mul16s::$6 ← (signed word) mul16s::b#4 >= (signed byte) 0 from [125] (bool~) mul16s::$5 ← (signed word) mul16s::b#4 < (signed byte) 0
Inversing boolean not [195] (bool~) sin16s::$1 ← (dword) sin16s::x#3 < (dword) PI_u4f28#0 from [194] (bool~) sin16s::$0 ← (dword) sin16s::x#3 >= (dword) PI_u4f28#0
Inversing boolean not [199] (bool~) sin16s::$3 ← (dword) sin16s::x#4 < (dword) PI_HALF_u4f28#0 from [198] (bool~) sin16s::$2 ← (dword) sin16s::x#4 >= (dword) PI_HALF_u4f28#0
Inversing boolean not [258] (bool~) sin16s::$16 ← (byte) sin16s::isUpper#2 == (byte) 0 from [257] (bool~) sin16s::$15 ← (byte) sin16s::isUpper#2 != (byte) 0
Inversing boolean not [287] (bool~) memset::$1 ← (word) memset::num#2 <= (byte) 0 from [286] (bool~) memset::$0 ← (word) memset::num#2 > (byte) 0
Inversing boolean not [320] (bool~) bitmap_init::$1 ← (byte) bitmap_init::bits#1 != (byte) 0 from [319] (bool~) bitmap_init::$0 ← (byte) bitmap_init::bits#1 == (byte) 0
Inversing boolean not [340] (bool~) bitmap_init::$9 ← (byte~) bitmap_init::$7 != (byte) 7 from [339] (bool~) bitmap_init::$8 ← (byte~) bitmap_init::$7 == (byte) 7
Inversing boolean not [470] (bool~) main::$23 ← (word) main::idx_x#1 < (word) $200 from [469] (bool~) main::$22 ← (word) main::idx_x#1 >= (word) $200
Inversing boolean not [475] (bool~) main::$25 ← (word) main::idx_y#1 < (word) $200 from [474] (bool~) main::$24 ← (word) main::idx_y#1 >= (word) $200
Inversing boolean not [490] (bool~) main::$31 ← (signed word) main::r#5 < (signed word)(number) $200*(number) $c+(number) $100 from [489] (bool~) main::$30 ← (signed word) main::r#5 >= (signed word)(number) $200*(number) $c+(number) $100
Inversing boolean not [519] (bool~) irq::$0 ← (byte) 0 == (byte) frame_cnt#4 from [518] (bool~) irq::$1 ← (byte) 0 != (byte) frame_cnt#4
Successful SSA optimization Pass2UnaryNotSimplification
Alias (word) divr16u::rem#0 = (word~) divr16u::$0 (word) divr16u::rem#7 
Alias (word) divr16u::dividend#0 = (word~) divr16u::$6 (word) divr16u::dividend#8 
Alias (word) divr16u::quotient#1 = (word~) divr16u::$7 (word) divr16u::quotient#4 
Alias (word) divr16u::dividend#3 = (word) divr16u::dividend#7 
Alias (word) divr16u::quotient#6 = (word) divr16u::quotient#7 
Alias (word) divr16u::divisor#4 = (word) divr16u::divisor#5 
Alias (byte) divr16u::i#5 = (byte) divr16u::i#6 
Alias (word) divr16u::rem#1 = (word~) divr16u::$5 
Alias (word) divr16u::rem#6 = (word) divr16u::rem#8 
Alias (word) divr16u::divisor#2 = (word) divr16u::divisor#3 
Alias (byte) divr16u::i#3 = (byte) divr16u::i#4 
Alias (word) divr16u::rem#2 = (word~) divr16u::$10 
Alias (word) divr16u::rem#11 = (word) divr16u::rem#9 
Alias (word) divr16u::return#0 = (word) divr16u::quotient#5 (word) divr16u::quotient#8 (word) divr16u::return#4 (word) divr16u::return#1 
Alias (word) rem16u#1 = (word) rem16u#11 (word) rem16u#2 
Alias (word) divr16u::dividend#1 = (word~) div32u16u::$0 
Alias (word) divr16u::return#2 = (word) divr16u::return#5 
Alias (dword) div32u16u::dividend#1 = (dword) div32u16u::dividend#2 
Alias (word) div32u16u::divisor#1 = (word) div32u16u::divisor#2 
Alias (word) rem16u#12 = (word) rem16u#3 
Alias (word) div32u16u::quotient_hi#0 = (word~) div32u16u::$1 (word) div32u16u::quotient_hi#1 
Alias (word) divr16u::dividend#2 = (word~) div32u16u::$2 
Alias (word) divr16u::return#3 = (word) divr16u::return#6 
Alias (word) rem16u#13 = (word) rem16u#4 (word) rem16u#14 (word) rem16u#5 
Alias (word) div32u16u::quotient_lo#0 = (word~) div32u16u::$3 
Alias (dword) div32u16u::return#0 = (dword) div32u16u::quotient#0 (dword~) div32u16u::$4 (dword) div32u16u::return#3 (dword) div32u16u::return#1 
Alias (dword) mul16u::mb#0 = (word) mul16u::b#2 
Alias (word) mul16u::a#3 = (word) mul16u::a#4 (word) mul16u::a#7 
Alias (dword) mul16u::mb#3 = (dword) mul16u::mb#4 (dword) mul16u::mb#5 
Alias (dword) mul16u::res#2 = (dword) mul16u::res#5 (dword) mul16u::res#4 (dword) mul16u::return#0 (dword) mul16u::res#3 (dword) mul16u::return#4 (dword) mul16u::return#1 
Alias (word) mul16u::a#0 = (word~) mul16u::$5 
Alias (dword) mul16u::mb#1 = (dword~) mul16u::$6 
Alias (dword) mul16u::res#1 = (dword~) mul16u::$4 
Alias (word) mul16u::a#1 = (word~) mul16s::$0 
Alias (word) mul16u::b#0 = (word~) mul16s::$1 
Alias (dword) mul16u::return#2 = (dword) mul16u::return#5 
Alias (signed word) mul16s::a#3 = (signed word) mul16s::a#4 (signed word) mul16s::a#7 
Alias (signed word) mul16s::b#3 = (signed word) mul16s::b#6 (signed word) mul16s::b#5 
Alias (dword) mul16s::m#0 = (dword~) mul16s::$2 (dword) mul16s::m#3 
Alias (word~) mul16s::$16 = (word~) mul16s::$11 
Alias (signed dword) mul16s::return#0 = (signed dword~) mul16s::$7 (signed dword) mul16s::return#5 (signed dword) mul16s::return#1 
Alias (dword) mul16s::m#5 = (dword) mul16s::m#6 
Alias (signed word) mul16s::a#5 = (signed word) mul16s::a#6 
Alias (word~) mul16s::$17 = (word~) mul16s::$15 
Alias (word) rem16u#0 = (word) rem16u#41 (word) rem16u#37 (word) rem16u#35 (word) rem16u#30 (word) rem16u#25 
Alias (signed word) sin16s_gen2::ampl#0 = (signed word~) sin16s_gen2::$0 (signed word) sin16s_gen2::ampl#4 
Alias (signed word) sin16s_gen2::offs#0 = (signed word~) sin16s_gen2::$2 (signed word) sin16s_gen2::offs#5 
Alias (dword) div32u16u::return#2 = (dword) div32u16u::return#4 
Alias (word) sin16s_gen2::wavelength#1 = (word) sin16s_gen2::wavelength#3 
Alias (signed word*) sin16s_gen2::sintab#6 = (signed word*) sin16s_gen2::sintab#7 
Alias (word) rem16u#15 = (word) rem16u#6 
Alias (dword) sin16s_gen2::step#0 = (dword~) sin16s_gen2::$3 
Alias (dword) sin16s_gen2::x#2 = (dword) sin16s_gen2::x#4 (dword) sin16s_gen2::x#5 (dword) sin16s_gen2::x#3 
Alias (signed word) sin16s_gen2::ampl#1 = (signed word) sin16s_gen2::ampl#2 (signed word) sin16s_gen2::ampl#3 (signed word) sin16s_gen2::ampl#5 
Alias (signed word) sin16s_gen2::offs#1 = (signed word) sin16s_gen2::offs#3 (signed word) sin16s_gen2::offs#4 (signed word) sin16s_gen2::offs#2 
Alias (signed word*) sin16s_gen2::sintab#2 = (signed word*) sin16s_gen2::sintab#4 (signed word*) sin16s_gen2::sintab#5 (signed word*) sin16s_gen2::sintab#3 
Alias (dword) sin16s_gen2::step#1 = (dword) sin16s_gen2::step#3 (dword) sin16s_gen2::step#4 (dword) sin16s_gen2::step#2 
Alias (word) sin16s_gen2::i#2 = (word) sin16s_gen2::i#5 (word) sin16s_gen2::i#4 (word) sin16s_gen2::i#3 
Alias (word) sin16s_gen2::wavelength#2 = (word) sin16s_gen2::wavelength#6 (word) sin16s_gen2::wavelength#5 (word) sin16s_gen2::wavelength#4 
Alias (word) rem16u#16 = (word) rem16u#36 (word) rem16u#22 (word) rem16u#31 (word) rem16u#26 (word) rem16u#7 
Alias (signed word) sin16s::return#0 = (signed word) sin16s::return#3 
Alias (signed word) mul16s::a#0 = (signed word~) sin16s_gen2::$5 
Alias (signed dword) mul16s::return#2 = (signed dword) mul16s::return#6 
Alias (dword) sin16s_gen2::x#1 = (dword~) sin16s_gen2::$10 
Alias (dword) sin16s::x#3 = (dword) sin16s::x#5 
Alias (dword) sin16s::x#1 = (dword~) sin16s::$17 
Alias (word) sin16s::x1#0 = (word~) sin16s::$5 (word) sin16s::x1#1 (word) sin16s::x1#4 (word) sin16s::x1#2 (word) sin16s::x1#3 
Alias (word) mulu16_sel::return#0 = (word) mulu16_sel::return#7 
Alias (byte) sin16s::isUpper#2 = (byte) sin16s::isUpper#6 (byte) sin16s::isUpper#7 (byte) sin16s::isUpper#5 (byte) sin16s::isUpper#4 (byte) sin16s::isUpper#3 
Alias (word) sin16s::x2#0 = (word~) sin16s::$6 
Alias (word) mulu16_sel::return#1 = (word) mulu16_sel::return#8 
Alias (word) sin16s::x3#0 = (word~) sin16s::$7 (word) sin16s::x3#1 
Alias (word) mulu16_sel::return#2 = (word) mulu16_sel::return#9 
Alias (word) sin16s::x3_6#0 = (word~) sin16s::$8 
Alias (word) sin16s::usinx#0 = (word~) sin16s::$9 (word) sin16s::usinx#4 (word) sin16s::usinx#2 
Alias (word) mulu16_sel::return#10 = (word) mulu16_sel::return#3 
Alias (word) sin16s::x4#0 = (word~) sin16s::$10 
Alias (word) mulu16_sel::return#11 = (word) mulu16_sel::return#4 
Alias (word) sin16s::x5#0 = (word~) sin16s::$11 
Alias (word) sin16s::x5_128#0 = (word~) sin16s::$12 
Alias (word) sin16s::usinx#1 = (word~) sin16s::$13 (word) sin16s::usinx#3 
Alias (signed word) sin16s::sinx#0 = (signed word~) sin16s::$14 
Alias (dword) sin16s::x#4 = (dword) sin16s::x#7 
Alias (byte) sin16s::isUpper#8 = (byte) sin16s::isUpper#9 
Alias (dword) sin16s::x#2 = (dword~) sin16s::$18 
Alias (signed word) sin16s::return#1 = (signed word) sin16s::sinx#2 (signed word) sin16s::return#4 (signed word) sin16s::return#2 
Alias (signed word) sin16s::sinx#1 = (signed word~) sin16s::$20 
Alias (dword) mul16u::return#3 = (dword) mul16u::return#6 
Alias (byte) mulu16_sel::select#5 = (byte) mulu16_sel::select#6 
Alias (word) mulu16_sel::return#12 = (word) mulu16_sel::return#5 (word~) mulu16_sel::$2 (word) mulu16_sel::return#6 
Alias (void*) memset::return#0 = (void*) memset::str#2 (void*) memset::return#4 (void*) memset::return#1 
Alias (void*) memset::str#3 = (void*) memset::str#4 
Alias (word) memset::num#2 = (word) memset::num#3 
Alias (byte) memset::c#4 = (byte) memset::c#5 
Alias (byte*) memset::end#0 = (byte*~) memset::$3 
Alias (byte) memset::c#2 = (byte) memset::c#3 
Alias (byte*) memset::dst#2 = (byte*) memset::dst#3 
Alias (byte*) memset::end#1 = (byte*) memset::end#2 
Alias (void*) memset::str#5 = (void*) memset::str#6 
Alias (byte) bitmap_init::x#2 = (byte) bitmap_init::x#4 
Alias (byte*) bitmap_init::gfx#4 = (byte*) bitmap_init::gfx#5 
Alias (byte*) bitmap_gfx#32 = (byte*) bitmap_gfx#33 
Alias (byte*) bitmap_screen#31 = (byte*) bitmap_screen#32 
Alias (byte*) bitmap_init::gfx#2 = (byte*) bitmap_init::gfx#3 (byte*) bitmap_init::yoffs#0 
Alias (byte*) bitmap_gfx#23 = (byte*) bitmap_gfx#28 
Alias (byte*) bitmap_screen#22 = (byte*) bitmap_screen#27 
Alias (byte*) bitmap_init::yoffs#2 = (byte*) bitmap_init::yoffs#3 
Alias (byte) bitmap_init::y#2 = (byte) bitmap_init::y#4 
Alias (byte*) bitmap_gfx#16 = (byte*) bitmap_gfx#17 
Alias (byte*) bitmap_screen#15 = (byte*) bitmap_screen#16 
Alias (byte*) bitmap_init::yoffs#1 = (byte*~) bitmap_init::$10 
Alias (byte*) bitmap_gfx#11 = (byte*) bitmap_gfx#6 (byte*) bitmap_gfx#2 
Alias (byte*) bitmap_screen#11 = (byte*) bitmap_screen#6 (byte*) bitmap_screen#2 
Alias (byte) bitmap_clear::col#0 = (byte~) bitmap_clear::$1 
Alias (byte*) bitmap_gfx#12 = (byte*) bitmap_gfx#7 
Alias (byte*) bitmap_plot::plotter#0 = (byte*~) bitmap_plot::$0 
Alias (byte*) bitmap_gfx#0 = (byte*) bitmap_gfx#27 (byte*) bitmap_gfx#22 (byte*) bitmap_gfx#15 
Alias (byte*) bitmap_screen#0 = (byte*) bitmap_screen#26 (byte*) bitmap_screen#21 (byte*) bitmap_screen#14 
Alias (byte*) bitmap_gfx#13 = (byte*) bitmap_gfx#18 
Alias (byte*) bitmap_screen#12 = (byte*) bitmap_screen#17 
Alias (byte) frame_cnt#13 = (byte) frame_cnt#25 (byte) frame_cnt#26 (byte) frame_cnt#24 (byte) frame_cnt#23 (byte) frame_cnt#21 (byte) frame_cnt#18 (byte) frame_cnt#15 
Alias (word) rem16u#17 = (word) rem16u#8 (word) rem16u#49 (word) rem16u#47 (word) rem16u#45 (word) rem16u#42 (word) rem16u#38 (word) rem16u#32 
Alias (byte*) bitmap_gfx#24 = (byte*) bitmap_gfx#3 (byte*) bitmap_gfx#8 (byte*) bitmap_gfx#39 (byte*) bitmap_gfx#37 (byte*) bitmap_gfx#34 (byte*) bitmap_gfx#29 
Alias (byte*) bitmap_screen#23 = (byte*) bitmap_screen#3 (byte*) bitmap_screen#8 (byte*) bitmap_screen#38 (byte*) bitmap_screen#36 (byte*) bitmap_screen#33 (byte*) bitmap_screen#28 
Alias (byte*) main::toD0181_screen#0 = (byte*) main::toD0181_screen#1 
Alias (byte*) main::toD0181_gfx#0 = (byte*) main::toD0181_gfx#1 
Alias (byte) main::toD0181_return#0 = (byte~) main::toD0181_$8#0 (byte) main::toD0181_return#2 (byte) main::toD0181_return#1 (byte) main::toD0181_return#3 (byte~) main::$6 
Alias (word) main::idx_x#11 = (word) main::idx_x#3 (word) main::idx_x#6 (word) main::idx_x#7 (word) main::idx_x#4 
Alias (signed word) main::r#10 = (signed word) main::r#2 (signed word) main::r#6 (signed word) main::r#3 (signed word) main::r#12 (signed word) main::r#11 
Alias (word) main::idx_y#3 = (word) main::idx_y#5 (word) main::idx_y#8 (word) main::idx_y#9 (word) main::idx_y#7 (word) main::idx_y#6 
Alias (byte) frame_cnt#10 = (byte) frame_cnt#11 (byte) frame_cnt#12 (byte) frame_cnt#7 (byte) frame_cnt#3 (byte) frame_cnt#22 
Alias (byte) main::r_add#10 = (byte) main::r_add#11 (byte) main::r_add#9 (byte) main::r_add#6 (byte) main::r_add#2 (byte) main::r_add#7 
Alias (word) rem16u#27 = (word) rem16u#50 (word) rem16u#48 (word) rem16u#46 (word) rem16u#44 (word) rem16u#43 
Alias (byte*) bitmap_gfx#19 = (byte*) bitmap_gfx#41 (byte*) bitmap_gfx#40 (byte*) bitmap_gfx#38 (byte*) bitmap_gfx#36 (byte*) bitmap_gfx#35 
Alias (byte*) bitmap_screen#18 = (byte*) bitmap_screen#40 (byte*) bitmap_screen#39 (byte*) bitmap_screen#37 (byte*) bitmap_screen#35 (byte*) bitmap_screen#34 
Alias (signed dword) mul16s::return#3 = (signed dword) mul16s::return#7 
Alias (signed dword) main::xpos#0 = (signed dword~) main::$8 
Alias (word) main::x#0 = (word~) main::$13 (word) main::x#1 
Alias (signed dword) mul16s::return#4 = (signed dword) mul16s::return#8 
Alias (signed dword) main::ypos#0 = (signed dword~) main::$14 
Alias (word) main::y#0 = (word~) main::$19 
Alias (byte) bitmap_plot::y#0 = (byte~) main::$20 
Alias (signed word) main::r#7 = (signed word) main::r#8 
Alias (byte) main::r_add#3 = (byte) main::r_add#8 
Alias (word) main::idx_x#8 = (word) main::idx_x#9 
Alias (word) rem16u#39 = (word) rem16u#40 
Alias (byte*) bitmap_gfx#30 = (byte*) bitmap_gfx#31 
Alias (byte*) bitmap_screen#29 = (byte*) bitmap_screen#30 
Alias (byte) frame_cnt#19 = (byte) frame_cnt#20 
Alias (byte) main::r_add#4 = (byte) main::r_add#5 
Alias (signed word) main::r#1 = (signed word) main::r#9 
Alias (word) main::idx_x#12 = (word) main::idx_x#5 
Alias (word) rem16u#33 = (word) rem16u#34 
Alias (byte*) bitmap_gfx#25 = (byte*) bitmap_gfx#26 
Alias (byte*) bitmap_screen#24 = (byte*) bitmap_screen#25 
Alias (word) main::idx_y#11 = (word) main::idx_y#12 
Alias (byte) frame_cnt#16 = (byte) frame_cnt#17 
Alias (word) rem16u#18 = (word) rem16u#28 (word) rem16u#24 (word) rem16u#9 
Alias (byte*) bitmap_gfx#14 = (byte*) bitmap_gfx#20 (byte*) bitmap_gfx#9 (byte*) bitmap_gfx#4 
Alias (byte*) bitmap_screen#13 = (byte*) bitmap_screen#19 (byte*) bitmap_screen#9 (byte*) bitmap_screen#4 
Alias (byte) frame_cnt#4 = (byte) frame_cnt#5 
Alias (byte) frame_cnt#2 = (byte) frame_cnt#6 (byte) frame_cnt#9 
Alias (byte) frame_cnt#0 = (byte) frame_cnt#8 
Alias (word) rem16u#10 = (word) rem16u#19 
Alias (byte*) bitmap_gfx#10 = (byte*) bitmap_gfx#5 
Alias (byte*) bitmap_screen#10 = (byte*) bitmap_screen#5 
Successful SSA optimization Pass2AliasElimination
Alias (word) divr16u::dividend#3 = (word) divr16u::dividend#4 
Alias (word) divr16u::quotient#3 = (word) divr16u::quotient#6 
Alias (word) divr16u::divisor#2 = (word) divr16u::divisor#4 (word) divr16u::divisor#7 
Alias (byte) divr16u::i#2 = (byte) divr16u::i#3 (byte) divr16u::i#5 
Alias (word) divr16u::dividend#0 = (word) divr16u::dividend#6 
Alias (word) mul16u::a#3 = (word) mul16u::a#5 
Alias (dword) mul16u::mb#2 = (dword) mul16u::mb#3 
Alias (signed word) mul16s::b#3 = (signed word) mul16s::b#4 
Alias (signed word) mul16s::a#3 = (signed word) mul16s::a#5 
Alias (byte) sin16s::isUpper#2 = (byte) sin16s::isUpper#8 
Alias (byte) bitmap_init::x#2 = (byte) bitmap_init::x#3 
Alias (byte*) bitmap_init::gfx#2 = (byte*) bitmap_init::gfx#4 
Alias (byte*) bitmap_gfx#23 = (byte*) bitmap_gfx#32 
Alias (byte*) bitmap_screen#22 = (byte*) bitmap_screen#31 
Alias (byte) bitmap_init::y#2 = (byte) bitmap_init::y#3 
Alias (byte*) bitmap_gfx#11 = (byte*) bitmap_gfx#16 
Alias (byte*) bitmap_screen#11 = (byte*) bitmap_screen#15 
Alias (word) main::idx_y#3 = (word) main::idx_y#4 
Alias (byte) main::r_add#10 = (byte) main::r_add#3 (byte) main::r_add#4 
Alias (signed word) main::r#10 = (signed word) main::r#7 (signed word) main::r#4 
Alias (word) rem16u#27 = (word) rem16u#39 (word) rem16u#33 (word) rem16u#29 
Alias (byte*) bitmap_gfx#19 = (byte*) bitmap_gfx#30 (byte*) bitmap_gfx#25 (byte*) bitmap_gfx#21 
Alias (byte*) bitmap_screen#18 = (byte*) bitmap_screen#29 (byte*) bitmap_screen#24 (byte*) bitmap_screen#20 
Alias (byte) frame_cnt#10 = (byte) frame_cnt#19 (byte) frame_cnt#16 (byte) frame_cnt#14 
Alias (word) main::idx_x#10 = (word) main::idx_x#12 (word) main::idx_x#8 
Alias (signed word) main::r#1 = (signed word) main::r#5 
Alias (word) main::idx_y#10 = (word) main::idx_y#11 
Successful SSA optimization Pass2AliasElimination
Identical Phi Values (word) divr16u::divisor#2 (word) divr16u::divisor#6
Identical Phi Values (dword) div32u16u::dividend#1 (dword) div32u16u::dividend#0
Identical Phi Values (word) div32u16u::divisor#1 (word) div32u16u::divisor#0
Identical Phi Values (word) rem16u#20 (word) rem16u#21
Identical Phi Values (word) rem16u#12 (word) rem16u#1
Identical Phi Values (word) rem16u#13 (word) rem16u#1
Identical Phi Values (signed word) sin16s_gen2::max#1 (signed word) sin16s_gen2::max#0
Identical Phi Values (signed word) sin16s_gen2::min#1 (signed word) sin16s_gen2::min#0
Identical Phi Values (word) sin16s_gen2::wavelength#1 (word) sin16s_gen2::wavelength#0
Identical Phi Values (word) rem16u#21 (word) rem16u#23
Identical Phi Values (signed word*) sin16s_gen2::sintab#6 (signed word*) sin16s_gen2::sintab#1
Identical Phi Values (word) rem16u#15 (word) rem16u#13
Identical Phi Values (word) sin16s_gen2::wavelength#2 (word) sin16s_gen2::wavelength#1
Identical Phi Values (word) rem16u#16 (word) rem16u#15
Identical Phi Values (signed word) sin16s_gen2::ampl#1 (signed word) sin16s_gen2::ampl#0
Identical Phi Values (signed word) sin16s_gen2::offs#1 (signed word) sin16s_gen2::offs#0
Identical Phi Values (dword) sin16s_gen2::step#1 (dword) sin16s_gen2::step#0
Identical Phi Values (dword) sin16s::x#3 (dword) sin16s::x#0
Identical Phi Values (byte*) memset::end#1 (byte*) memset::end#0
Identical Phi Values (void*) memset::str#5 (void*) memset::str#3
Identical Phi Values (byte) memset::c#2 (byte) memset::c#4
Identical Phi Values (byte*) bitmap_init::gfx#1 (byte*) bitmap_init::gfx#0
Identical Phi Values (byte*) bitmap_init::screen#1 (byte*) bitmap_init::screen#0
Identical Phi Values (byte*) bitmap_init::gfx#2 (byte*) bitmap_init::gfx#1
Identical Phi Values (byte*) bitmap_gfx#23 (byte*) bitmap_gfx#1
Identical Phi Values (byte*) bitmap_screen#22 (byte*) bitmap_screen#1
Identical Phi Values (byte*) bitmap_gfx#11 (byte*) bitmap_gfx#23
Identical Phi Values (byte*) bitmap_screen#11 (byte*) bitmap_screen#22
Identical Phi Values (byte) bitmap_clear::fgcol#1 (byte) bitmap_clear::fgcol#0
Identical Phi Values (byte) bitmap_clear::bgcol#1 (byte) bitmap_clear::bgcol#0
Identical Phi Values (byte*) bitmap_screen#7 (byte*) bitmap_screen#23
Identical Phi Values (byte*) bitmap_gfx#12 (byte*) bitmap_gfx#24
Identical Phi Values (byte) bitmap_plot::y#1 (byte) bitmap_plot::y#0
Identical Phi Values (word) bitmap_plot::x#1 (word) bitmap_plot::x#0
Identical Phi Values (word) rem16u#23 (word) rem16u#0
Identical Phi Values (byte*) bitmap_gfx#13 (byte*) bitmap_gfx#0
Identical Phi Values (byte*) bitmap_screen#12 (byte*) bitmap_screen#0
Identical Phi Values (byte) frame_cnt#13 (byte) frame_cnt#0
Identical Phi Values (word) rem16u#17 (word) rem16u#16
Identical Phi Values (byte*) bitmap_gfx#24 (byte*) bitmap_gfx#11
Identical Phi Values (byte*) bitmap_screen#23 (byte*) bitmap_screen#11
Identical Phi Values (word) rem16u#27 (word) rem16u#17
Identical Phi Values (byte*) bitmap_gfx#19 (byte*) bitmap_gfx#24
Identical Phi Values (byte*) bitmap_screen#18 (byte*) bitmap_screen#23
Identical Phi Values (byte) frame_cnt#10 (byte) frame_cnt#13
Identical Phi Values (word) rem16u#18 (word) rem16u#27
Identical Phi Values (byte*) bitmap_gfx#14 (byte*) bitmap_gfx#19
Identical Phi Values (byte*) bitmap_screen#13 (byte*) bitmap_screen#18
Identical Phi Values (byte) frame_cnt#4 (byte) frame_cnt#0
Identical Phi Values (word) rem16u#10 (word) rem16u#18
Identical Phi Values (byte*) bitmap_gfx#10 (byte*) bitmap_gfx#14
Identical Phi Values (byte*) bitmap_screen#10 (byte*) bitmap_screen#13
Successful SSA optimization Pass2IdenticalPhiElimination
Identical Phi Values (void*) memset::return#0 (void*) memset::str#3
Successful SSA optimization Pass2IdenticalPhiElimination
Identified duplicate assignment right side [338] (byte~) bitmap_init::$7 ← (byte) bitmap_init::y#2 & (byte) 7
Successful SSA optimization Pass2DuplicateRValueIdentification
Simple Condition (bool~) divr16u::$4 [32] if((byte~) divr16u::$2==(byte) 0) goto divr16u::@2
Simple Condition (bool~) divr16u::$9 [40] if((word) divr16u::rem#6<(word) divr16u::divisor#6) goto divr16u::@3
Simple Condition (bool~) divr16u::$11 [47] if((byte) divr16u::i#1!=rangelast(0,$f)) goto divr16u::@1
Simple Condition (bool~) mul16u::$0 [92] if((word) mul16u::a#3!=(byte) 0) goto mul16u::@2
Simple Condition (bool~) mul16u::$3 [97] if((byte~) mul16u::$1==(byte) 0) goto mul16u::@4
Simple Condition (bool~) mul16s::$4 [123] if((signed word) mul16s::a#3>=(signed byte) 0) goto mul16s::@1
Simple Condition (bool~) mul16s::$6 [127] if((signed word) mul16s::b#3>=(signed byte) 0) goto mul16s::@2
Simple Condition (bool~) sin16s_gen2::$4 [168] if((word) sin16s_gen2::i#2<(word) sin16s_gen2::wavelength#0) goto sin16s_gen2::@2
Simple Condition (bool~) sin16s::$1 [196] if((dword) sin16s::x#0<(dword) PI_u4f28#0) goto sin16s::@1
Simple Condition (bool~) sin16s::$3 [200] if((dword) sin16s::x#4<(dword) PI_HALF_u4f28#0) goto sin16s::@2
Simple Condition (bool~) sin16s::$16 [259] if((byte) sin16s::isUpper#2==(byte) 0) goto sin16s::@3
Simple Condition (bool~) memset::$1 [288] if((word) memset::num#2<=(byte) 0) goto memset::@1
Simple Condition (bool~) memset::$4 [298] if((byte*) memset::dst#2!=(byte*) memset::end#0) goto memset::@5
Simple Condition (bool~) bitmap_init::$1 [321] if((byte) bitmap_init::bits#1!=(byte) 0) goto bitmap_init::@2
Simple Condition (bool~) bitmap_init::$2 [325] if((byte) bitmap_init::x#1!=rangelast(0,$ff)) goto bitmap_init::@1
Simple Condition (bool~) bitmap_init::$9 [341] if((byte~) bitmap_init::$7!=(byte) 7) goto bitmap_init::@6
Simple Condition (bool~) bitmap_init::$11 [345] if((byte) bitmap_init::y#1!=rangelast(0,$ff)) goto bitmap_init::@5
Simple Condition (bool~) main::$23 [471] if((word) main::idx_x#1<(word) $200) goto main::@4
Simple Condition (bool~) main::$25 [476] if((word) main::idx_y#1<(word) $200) goto main::@5
Simple Condition (bool~) main::$31 [491] if((signed word) main::r#1<(signed word)(number) $200*(number) $c+(number) $100) goto main::@1
Simple Condition (bool~) irq::$0 [520] if((byte) 0==(byte) frame_cnt#0) goto irq::@1
Successful SSA optimization Pass2ConditionalJumpSimplification
Rewriting ! if()-condition to reversed if() [484] (bool~) main::$29 ← ! (bool~) main::$28
Successful SSA optimization Pass2ConditionalAndOrRewriting
Rewriting && if()-condition to two if()s [483] (bool~) main::$28 ← (bool~) main::$26 && (bool~) main::$27
Successful SSA optimization Pass2ConditionalAndOrRewriting
Negating conditional jump and destination [491] if((signed word) main::r#1>=(signed word)(number) $200*(number) $c+(number) $100) goto main::@17
Constant right-side identified [226] (word) mulu16_sel::v2#2 ← (unumber)(number) $10000/(number) 6
Constant right-side identified [308] (byte[$100]) bitmap_plot_ylo#0 ← { fill( $100, 0) }
Constant right-side identified [309] (byte[$100]) bitmap_plot_yhi#0 ← { fill( $100, 0) }
Constant right-side identified [310] (byte[$100]) bitmap_plot_bit#0 ← { fill( $100, 0) }
Constant right-side identified [381] (byte[$100]) plots_per_frame#0 ← { fill( $100, 0) }
Constant right-side identified [382] (signed word[$200]) SINUS#0 ← { fill( $200, 0) }
Constant right-side identified [512] (void()*~) init_irq::$0 ← & interrupt(HARDWARE_CLOBBER)(void()) irq()
Successful SSA optimization Pass2ConstantRValueConsolidation
Constant (const byte*) PROCPORT_DDR#0 = (byte*) 0
Constant (const byte) PROCPORT_DDR_MEMORY_MASK#0 = 7
Constant (const byte*) PROCPORT#0 = (byte*) 1
Constant (const byte) PROCPORT_RAM_IO#0 = 5
Constant (const byte*) RASTER#0 = (byte*) 53266
Constant (const byte*) BORDERCOL#0 = (byte*) 53280
Constant (const byte*) BGCOL#0 = (byte*) 53281
Constant (const byte*) VIC_CONTROL#0 = (byte*) 53265
Constant (const byte*) D011#0 = (byte*) 53265
Constant (const byte) VIC_BMM#0 = $20
Constant (const byte) VIC_DEN#0 = $10
Constant (const byte) VIC_RSEL#0 = 8
Constant (const byte*) D018#0 = (byte*) 53272
Constant (const byte*) IRQ_STATUS#0 = (byte*) 53273
Constant (const byte*) IRQ_ENABLE#0 = (byte*) 53274
Constant (const byte) IRQ_RASTER#0 = 1
Constant (const byte*) CIA1_INTERRUPT#0 = (byte*) 56333
Constant (const byte) CIA_INTERRUPT_CLEAR#0 = $7f
Constant (const void()**) HARDWARE_IRQ#0 = (void()**) 65534
Constant (const byte) BLACK#0 = 0
Constant (const byte) WHITE#0 = 1
Constant (const word) rem16u#0 = 0
Constant (const word) divr16u::quotient#0 = 0
Constant (const byte) divr16u::i#0 = 0
Constant (const word) divr16u::rem#3 = 0
Constant (const dword) mul16u::res#0 = 0
Constant (const dword) PI2_u4f28#0 = $6487ed51
Constant (const dword) PI_u4f28#0 = $3243f6a9
Constant (const dword) PI_HALF_u4f28#0 = $1921fb54
Constant (const dword) sin16s_gen2::x#0 = 0
Constant (const word) sin16s_gen2::i#0 = 0
Constant (const byte) sin16s::isUpper#0 = 0
Constant (const byte) sin16s::isUpper#1 = 1
Constant (const byte) mulu16_sel::select#0 = 0
Constant (const byte) mulu16_sel::select#1 = 1
Constant (const word) mulu16_sel::v2#2 = (unumber)$10000/6
Constant (const byte) mulu16_sel::select#2 = 1
Constant (const byte) mulu16_sel::select#3 = 0
Constant (const byte) mulu16_sel::select#4 = 0
Constant (const byte*) bitmap_screen#0 = (byte*) 0
Constant (const byte*) bitmap_gfx#0 = (byte*) 0
Constant (const byte[$100]) bitmap_plot_ylo#0 = { fill( $100, 0) }
Constant (const byte[$100]) bitmap_plot_yhi#0 = { fill( $100, 0) }
Constant (const byte[$100]) bitmap_plot_bit#0 = { fill( $100, 0) }
Constant (const byte) bitmap_init::bits#0 = $80
Constant (const byte) bitmap_init::x#0 = 0
Constant (const byte) bitmap_init::bits#2 = $80
Constant (const byte) bitmap_init::y#0 = 0
Constant (const word) memset::num#0 = $3e8
Constant (const byte) memset::c#1 = 0
Constant (const word) memset::num#1 = $1f40
Constant (const byte*) BITMAP#0 = (byte*) 8192
Constant (const byte*) SCREEN#0 = (byte*) 1024
Constant (const byte[$100]) plots_per_frame#0 = { fill( $100, 0) }
Constant (const signed word[$200]) SINUS#0 = { fill( $200, 0) }
Constant (const word) sin16s_gen2::wavelength#0 = $200
Constant (const signed word) sin16s_gen2::min#0 = -$1001
Constant (const signed word) sin16s_gen2::max#0 = $1001
Constant (const word) main::idx_x#0 = 0
Constant (const word) main::idx_y#0 = $80
Constant (const signed word) main::r#0 = 0
Constant (const byte) main::r_add#0 = $20
Constant (const word) main::idx_x#2 = 0
Constant (const word) main::idx_y#2 = 0
Constant (const void()*) init_irq::$0 = &irq
Successful SSA optimization Pass2ConstantIdentification
Constant (const dword) div32u16u::dividend#0 = PI2_u4f28#0
Constant (const word) div32u16u::divisor#0 = sin16s_gen2::wavelength#0
Constant (const signed word*) sin16s_gen2::sintab#1 = SINUS#0
Constant (const byte*) bitmap_init::gfx#0 = BITMAP#0
Constant (const byte*) bitmap_init::screen#0 = SCREEN#0
Constant (const byte) bitmap_clear::bgcol#0 = BLACK#0
Constant (const byte) bitmap_clear::fgcol#0 = WHITE#0
Constant (const byte*) main::toD0181_screen#0 = SCREEN#0
Constant (const byte*) main::toD0181_gfx#0 = BITMAP#0
Successful SSA optimization Pass2ConstantIdentification
Constant (const word) divr16u::divisor#0 = div32u16u::divisor#0
Constant (const word) divr16u::divisor#1 = div32u16u::divisor#0
Constant (const byte*) bitmap_gfx#1 = bitmap_init::gfx#0
Constant (const byte*) bitmap_screen#1 = bitmap_init::screen#0
Successful SSA optimization Pass2ConstantIdentification
Constant value identified (void*)bitmap_screen#1 in [357] (void*) memset::str#0 ← (void*)(const byte*) bitmap_screen#1
Constant value identified (void*)bitmap_gfx#1 in [363] (void*) memset::str#1 ← (void*)(const byte*) bitmap_gfx#1
Constant value identified (word)main::toD0181_screen#0 in [408] (word~) main::toD0181_$0#0 ← (word)(const byte*) main::toD0181_screen#0
Constant value identified (word)main::toD0181_gfx#0 in [412] (word~) main::toD0181_$4#0 ← (word)(const byte*) main::toD0181_gfx#0
Successful SSA optimization Pass2ConstantValues
if() condition always true - replacing block destination [430] if(true) goto main::@2
if() condition always true - replacing block destination [495] if(true) goto main::@18
Successful SSA optimization Pass2ConstantIfs
Resolved ranged next value [45] divr16u::i#1 ← ++ divr16u::i#2 to ++
Resolved ranged comparison value [47] if(divr16u::i#1!=rangelast(0,$f)) goto divr16u::@1 to (number) $10
Resolved ranged next value [323] bitmap_init::x#1 ← ++ bitmap_init::x#2 to ++
Resolved ranged comparison value [325] if(bitmap_init::x#1!=rangelast(0,$ff)) goto bitmap_init::@1 to (number) 0
Resolved ranged next value [343] bitmap_init::y#1 ← ++ bitmap_init::y#2 to ++
Resolved ranged comparison value [345] if(bitmap_init::y#1!=rangelast(0,$ff)) goto bitmap_init::@5 to (number) 0
De-inlining pointer[w] to *(pointer+w)   [433] (signed word) main::cos_x#0 ← *((const signed word[$200]) SINUS#0 + (word~) main::$32)
De-inlining pointer[w] to *(pointer+w)   [448] (signed word) main::sin_y#0 ← *((const signed word[$200]) SINUS#0 + (word~) main::$33)
Successful SSA optimization Pass2DeInlineWordDerefIdx
Simplifying expression containing zero bitmap_clear::$0 in [355] (byte) bitmap_clear::col#0 ← (byte~) bitmap_clear::$0 + (const byte) bitmap_clear::bgcol#0
Successful SSA optimization PassNSimplifyExpressionWithZero
Eliminating unused variable (void*) memset::return#2 and assignment [169] (void*) memset::return#2 ← (void*) memset::str#3
Eliminating unused variable (void*) memset::return#3 and assignment [172] (void*) memset::return#3 ← (void*) memset::str#3
Eliminating unused constant (const byte) bitmap_clear::bgcol#0
Eliminating unused constant (const word) rem16u#0
Eliminating unused constant (const byte*) bitmap_screen#0
Eliminating unused constant (const byte*) bitmap_gfx#0
Successful SSA optimization PassNEliminateUnusedVars
Removing unused block main::@return
Successful SSA optimization Pass2EliminateUnusedBlocks
Successful SSA optimization Pass2LoopHeadConstantIdentification
Adding number conversion cast (unumber) $10 in if((byte) divr16u::i#1!=(number) $10) goto divr16u::@1
Adding number conversion cast (unumber) 0 in if((byte) bitmap_init::x#1!=(number) 0) goto bitmap_init::@1
Adding number conversion cast (unumber) 0 in if((byte) bitmap_init::y#1!=(number) 0) goto bitmap_init::@5
Successful SSA optimization PassNAddNumberTypeConversions
Inlining cast (byte*) bitmap_plot::plotter#0 ← (byte*)(word~) bitmap_plot::$3
Successful SSA optimization Pass2InlineCast
Simplifying constant integer cast $10
Simplifying constant integer cast 0
Simplifying constant integer cast 0
Successful SSA optimization PassNCastSimplification
Finalized unsigned number type (byte) $10
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 0
Successful SSA optimization PassNFinalizeNumberTypeConversions
Alias (word) sin16s_gen2::i#1 = (word) sin16s_gen2::i#2 
Alias (dword) sin16s_gen2::x#1 = (dword) sin16s_gen2::x#2 
Alias (signed word*) sin16s_gen2::sintab#0 = (signed word*) sin16s_gen2::sintab#2 
Alias (word) sin16s_gen2::i#6 = (word) sin16s_gen2::i#7 (word) sin16s_gen2::i#8 
Alias (dword) sin16s_gen2::x#6 = (dword) sin16s_gen2::x#8 (dword) sin16s_gen2::x#7 
Alias (signed word*) sin16s_gen2::sintab#10 = (signed word*) sin16s_gen2::sintab#9 (signed word*) sin16s_gen2::sintab#8 
Alias (byte~) bitmap_init::$7 = (byte~) bitmap_init::$3 
Alias (byte) bitmap_clear::col#0 = (byte~) bitmap_clear::$0 
Successful SSA optimization Pass2AliasElimination
Identical Phi Values (word) sin16s_gen2::i#9 (const word) sin16s_gen2::i#0
Identical Phi Values (dword) sin16s_gen2::x#9 (const dword) sin16s_gen2::x#0
Identical Phi Values (signed word*) sin16s_gen2::sintab#11 (const signed word*) sin16s_gen2::sintab#1
Successful SSA optimization Pass2IdenticalPhiElimination
Simple Condition (bool~) main::$26 [241] if((word) main::idx_x#10==(byte) 0) goto main::@31
Simple Condition (bool~) main::$27 [265] if((byte) main::r_add#10!=(byte) 1) goto main::@13
Successful SSA optimization Pass2ConditionalJumpSimplification
Negating conditional jump and destination [241] if((word) main::idx_x#10!=(byte) 0) goto main::@6
Negating conditional jump and destination [265] if((byte) main::r_add#10==(byte) 1) goto main::@6
Successful SSA optimization Pass2ConditionalJumpSequenceImprovement
Constant right-side identified [18] (word) divr16u::dividend#1 ← > (const dword) div32u16u::dividend#0
Constant right-side identified [22] (word) divr16u::dividend#2 ← < (const dword) div32u16u::dividend#0
Constant right-side identified [59] (signed word) sin16s_gen2::ampl#0 ← (const signed word) sin16s_gen2::max#0 - (const signed word) sin16s_gen2::min#0
Constant right-side identified [168] (byte) bitmap_clear::col#0 ← (const byte) bitmap_clear::fgcol#0 * (byte) $10
Constant right-side identified [186] (byte~) main::$3 ← (const byte) VIC_BMM#0 | (const byte) VIC_DEN#0
Successful SSA optimization Pass2ConstantRValueConsolidation
Constant (const word) divr16u::dividend#1 = >div32u16u::dividend#0
Constant (const word) divr16u::dividend#2 = <div32u16u::dividend#0
Constant (const signed word) sin16s_gen2::ampl#0 = sin16s_gen2::max#0-sin16s_gen2::min#0
Constant (const byte) bitmap_clear::col#0 = bitmap_clear::fgcol#0*$10
Constant (const void*) memset::str#0 = (void*)bitmap_screen#1
Constant (const void*) memset::str#1 = (void*)bitmap_gfx#1
Constant (const byte) main::$3 = VIC_BMM#0|VIC_DEN#0
Constant (const word) main::toD0181_$0#0 = (word)main::toD0181_screen#0
Constant (const word) main::toD0181_$4#0 = (word)main::toD0181_gfx#0
Successful SSA optimization Pass2ConstantIdentification
Constant (const signed word) mul16s::b#0 = sin16s_gen2::ampl#0
Constant (const byte) memset::c#0 = bitmap_clear::col#0
Successful SSA optimization Pass2ConstantIdentification
if() condition always true - replacing block destination [267] if((const word) sin16s_gen2::i#0<(const word) sin16s_gen2::wavelength#0) goto sin16s_gen2::@2
Successful SSA optimization Pass2ConstantIfs
Constant right-side identified [57] (signed word~) sin16s_gen2::$1 ← (const signed word) sin16s_gen2::ampl#0 >> (signed byte) 1
Constant right-side identified [172] (byte~) main::$4 ← (const byte) main::$3 | (const byte) VIC_RSEL#0
Constant right-side identified [175] (word~) main::toD0181_$1#0 ← (const word) main::toD0181_$0#0 & (word) $3fff
Constant right-side identified [178] (byte~) main::toD0181_$5#0 ← > (const word) main::toD0181_$4#0
Successful SSA optimization Pass2ConstantRValueConsolidation
Constant (const signed word) sin16s_gen2::$1 = sin16s_gen2::ampl#0>>1
Constant (const byte) main::$4 = main::$3|VIC_RSEL#0
Constant (const word) main::toD0181_$1#0 = main::toD0181_$0#0&$3fff
Constant (const byte) main::toD0181_$5#0 = >main::toD0181_$4#0
Successful SSA optimization Pass2ConstantIdentification
Constant right-side identified [57] (signed word) sin16s_gen2::offs#0 ← (const signed word) sin16s_gen2::min#0 + (const signed word) sin16s_gen2::$1
Constant right-side identified [171] (byte~) main::$5 ← (const byte) main::$4 | (byte) 3
Constant right-side identified [173] (word~) main::toD0181_$2#0 ← (const word) main::toD0181_$1#0 * (byte) 4
Constant right-side identified [175] (byte~) main::toD0181_$6#0 ← (const byte) main::toD0181_$5#0 / (byte) 4
Successful SSA optimization Pass2ConstantRValueConsolidation
Constant (const signed word) sin16s_gen2::offs#0 = sin16s_gen2::min#0+sin16s_gen2::$1
Constant (const byte) main::$5 = main::$4|3
Constant (const word) main::toD0181_$2#0 = main::toD0181_$1#0*4
Constant (const byte) main::toD0181_$6#0 = main::toD0181_$5#0/4
Successful SSA optimization Pass2ConstantIdentification
Simplifying constant evaluating to zero (const signed word) sin16s_gen2::min#0+(const signed word) sin16s_gen2::$1 in 
Successful SSA optimization PassNSimplifyConstantZero
Simplifying expression containing zero sin16s_gen2::$8 in [72] (signed word~) sin16s_gen2::$9 ← (const signed word) sin16s_gen2::offs#0 + (signed word~) sin16s_gen2::$8
Successful SSA optimization PassNSimplifyExpressionWithZero
Eliminating unused constant (const signed word) sin16s_gen2::$1
Eliminating unused constant (const signed word) sin16s_gen2::offs#0
Successful SSA optimization PassNEliminateUnusedVars
Alias (signed word~) sin16s_gen2::$9 = (signed word~) sin16s_gen2::$8 
Successful SSA optimization Pass2AliasElimination
Constant right-side identified [171] (byte~) main::toD0181_$3#0 ← > (const word) main::toD0181_$2#0
Constant right-side identified [172] (byte~) main::toD0181_$7#0 ← (const byte) main::toD0181_$6#0 & (byte) $f
Successful SSA optimization Pass2ConstantRValueConsolidation
Constant (const byte) main::toD0181_$3#0 = >main::toD0181_$2#0
Constant (const byte) main::toD0181_$7#0 = main::toD0181_$6#0&$f
Successful SSA optimization Pass2ConstantIdentification
Constant right-side identified [170] (byte) main::toD0181_return#0 ← (const byte) main::toD0181_$3#0 | (const byte) main::toD0181_$7#0
Successful SSA optimization Pass2ConstantRValueConsolidation
Constant (const byte) main::toD0181_return#0 = main::toD0181_$3#0|main::toD0181_$7#0
Successful SSA optimization Pass2ConstantIdentification
Inlining Noop Cast [47] (word~) mul16s::$10 ← (word)(signed word) mul16s::b#3 keeping mul16s::b#3
Inlining Noop Cast [53] (word~) mul16s::$14 ← (word)(signed word) mul16s::a#3 keeping mul16s::a#3
Inlining Noop Cast [110] (signed word) sin16s::sinx#0 ← (signed word)(word) sin16s::usinx#1 keeping sin16s::usinx#1
Inlining Noop Cast [114] (signed word~) sin16s::$19 ← (signed word)(word) sin16s::usinx#1 keeping sin16s::usinx#1
Inlining Noop Cast [128] (byte*~) memset::$2 ← (byte*)(void*) memset::str#3 keeping memset::str#3
Inlining Noop Cast [130] (byte*) memset::dst#0 ← (byte*)(void*) memset::str#3 keeping memset::str#3
Successful SSA optimization Pass2NopCastInlining
Inlining Noop Cast [70] (signed word~) sin16s_gen2::$9 ← (signed word)(word~) sin16s_gen2::$7 keeping sin16s_gen2::$9
Inlining Noop Cast [160] (byte*) bitmap_plot::plotter#0 ← (byte*)(word~) bitmap_plot::$3 keeping bitmap_plot::plotter#0
Inlining Noop Cast [182] (signed word~) main::$10 ← (signed word)(word~) main::$9 keeping main::$10
Inlining Noop Cast [185] (word) main::x#0 ← (word)(signed word~) main::$12 keeping main::x#0
Inlining Noop Cast [195] (signed word~) main::$16 ← (signed word)(word~) main::$15 keeping main::$16
Inlining Noop Cast [198] (word) main::y#0 ← (word)(signed word~) main::$18 keeping main::y#0
Successful SSA optimization Pass2NopCastInlining
Rewriting multiplication to use shift [173] (word~) main::$32 ← (word) main::idx_x#11 * (const byte) SIZEOF_SIGNED_WORD
Rewriting multiplication to use shift [186] (word~) main::$33 ← (word) main::idx_y#3 * (const byte) SIZEOF_SIGNED_WORD
Rewriting division to use shift [213] (byte) main::r_add#1 ← (byte) main::r_add#10 / (byte) 2
Successful SSA optimization Pass2MultiplyToShiftRewriting
Inlining constant with var siblings (const word) divr16u::quotient#0
Inlining constant with var siblings (const byte) divr16u::i#0
Inlining constant with var siblings (const word) divr16u::rem#3
Inlining constant with var siblings (const word) divr16u::divisor#0
Inlining constant with var siblings (const word) divr16u::divisor#1
Inlining constant with var siblings (const word) divr16u::dividend#1
Inlining constant with var siblings (const word) divr16u::dividend#2
Inlining constant with var siblings (const dword) mul16u::res#0
Inlining constant with var siblings (const signed word) mul16s::b#0
Inlining constant with var siblings (const dword) sin16s_gen2::x#0
Inlining constant with var siblings (const word) sin16s_gen2::i#0
Inlining constant with var siblings (const signed word*) sin16s_gen2::sintab#1
Inlining constant with var siblings (const byte) sin16s::isUpper#0
Inlining constant with var siblings (const byte) sin16s::isUpper#1
Inlining constant with var siblings (const byte) mulu16_sel::select#0
Inlining constant with var siblings (const byte) mulu16_sel::select#1
Inlining constant with var siblings (const word) mulu16_sel::v2#2
Inlining constant with var siblings (const byte) mulu16_sel::select#2
Inlining constant with var siblings (const byte) mulu16_sel::select#3
Inlining constant with var siblings (const byte) mulu16_sel::select#4
Inlining constant with var siblings (const word) memset::num#0
Inlining constant with var siblings (const byte) memset::c#1
Inlining constant with var siblings (const word) memset::num#1
Inlining constant with var siblings (const void*) memset::str#0
Inlining constant with var siblings (const void*) memset::str#1
Inlining constant with var siblings (const byte) memset::c#0
Inlining constant with var siblings (const byte) bitmap_init::bits#0
Inlining constant with var siblings (const byte) bitmap_init::x#0
Inlining constant with var siblings (const byte) bitmap_init::bits#2
Inlining constant with var siblings (const byte) bitmap_init::y#0
Inlining constant with var siblings (const word) main::idx_x#0
Inlining constant with var siblings (const word) main::idx_y#0
Inlining constant with var siblings (const signed word) main::r#0
Inlining constant with var siblings (const byte) main::r_add#0
Inlining constant with var siblings (const word) main::idx_x#2
Inlining constant with var siblings (const word) main::idx_y#2
Constant inlined bitmap_init::screen#0 = (const byte*) SCREEN#0
Constant inlined divr16u::rem#3 = (byte) 0
Constant inlined bitmap_init::gfx#0 = (const byte*) BITMAP#0
Constant inlined sin16s_gen2::i#0 = (byte) 0
Constant inlined sin16s::isUpper#0 = (byte) 0
Constant inlined memset::num#1 = (word) $1f40
Constant inlined memset::num#0 = (word) $3e8
Constant inlined mulu16_sel::select#4 = (byte) 0
Constant inlined mulu16_sel::select#2 = (byte) 1
Constant inlined mulu16_sel::select#3 = (byte) 0
Constant inlined mulu16_sel::select#0 = (byte) 0
Constant inlined sin16s::isUpper#1 = (byte) 1
Constant inlined mulu16_sel::select#1 = (byte) 1
Constant inlined init_irq::$0 = &interrupt(HARDWARE_CLOBBER)(void()) irq()
Constant inlined main::idx_y#2 = (byte) 0
Constant inlined main::idx_y#0 = (byte) $80
Constant inlined mul16s::b#0 = (const signed word) sin16s_gen2::ampl#0
Constant inlined bitmap_gfx#1 = (const byte*) BITMAP#0
Constant inlined main::toD0181_$1#0 = (word)(const byte*) SCREEN#0&(word) $3fff
Constant inlined main::toD0181_$7#0 = >(word)(const byte*) BITMAP#0/(byte) 4&(byte) $f
Constant inlined main::toD0181_$3#0 = >(word)(const byte*) SCREEN#0&(word) $3fff*(byte) 4
Constant inlined main::toD0181_$5#0 = >(word)(const byte*) BITMAP#0
Constant inlined sin16s_gen2::sintab#1 = (const signed word[$200]) SINUS#0
Constant inlined memset::c#0 = (const byte) bitmap_clear::col#0
Constant inlined bitmap_init::x#0 = (byte) 0
Constant inlined memset::c#1 = (byte) 0
Constant inlined main::toD0181_screen#0 = (const byte*) SCREEN#0
Constant inlined main::toD0181_gfx#0 = (const byte*) BITMAP#0
Constant inlined divr16u::i#0 = (byte) 0
Constant inlined div32u16u::dividend#0 = (const dword) PI2_u4f28#0
Constant inlined bitmap_init::bits#0 = (byte) $80
Constant inlined main::r_add#0 = (byte) $20
Constant inlined bitmap_init::bits#2 = (byte) $80
Constant inlined divr16u::quotient#0 = (byte) 0
Constant inlined sin16s_gen2::x#0 = (byte) 0
Constant inlined mul16u::res#0 = (byte) 0
Constant inlined main::idx_x#2 = (byte) 0
Constant inlined divr16u::divisor#1 = (const word) sin16s_gen2::wavelength#0
Constant inlined divr16u::divisor#0 = (const word) sin16s_gen2::wavelength#0
Constant inlined main::idx_x#0 = (byte) 0
Constant inlined main::r#0 = (signed byte) 0
Constant inlined memset::str#1 = (void*)(const byte*) BITMAP#0
Constant inlined memset::str#0 = (void*)(const byte*) SCREEN#0
Constant inlined main::toD0181_$0#0 = (word)(const byte*) SCREEN#0
Constant inlined bitmap_clear::fgcol#0 = (const byte) WHITE#0
Constant inlined divr16u::dividend#1 = >(const dword) PI2_u4f28#0
Constant inlined divr16u::dividend#2 = <(const dword) PI2_u4f28#0
Constant inlined main::toD0181_$6#0 = >(word)(const byte*) BITMAP#0/(byte) 4
Constant inlined bitmap_screen#1 = (const byte*) SCREEN#0
Constant inlined main::toD0181_$2#0 = (word)(const byte*) SCREEN#0&(word) $3fff*(byte) 4
Constant inlined main::toD0181_$4#0 = (word)(const byte*) BITMAP#0
Constant inlined mulu16_sel::v2#2 = (word)(number) $10000/(number) 6
Constant inlined main::$5 = (const byte) VIC_BMM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte) 3
Constant inlined bitmap_init::y#0 = (byte) 0
Constant inlined main::$3 = (const byte) VIC_BMM#0|(const byte) VIC_DEN#0
Constant inlined div32u16u::divisor#0 = (const word) sin16s_gen2::wavelength#0
Constant inlined main::$4 = (const byte) VIC_BMM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0
Successful SSA optimization Pass2ConstantInlining
Identical Phi Values (word) divr16u::divisor#6 (const word) sin16s_gen2::wavelength#0
Successful SSA optimization Pass2IdenticalPhiElimination
Added new block during phi lifting divr16u::@8(between divr16u::@3 and divr16u::@1)
Added new block during phi lifting divr16u::@9(between divr16u::@1 and divr16u::@2)
Added new block during phi lifting divr16u::@10(between divr16u::@2 and divr16u::@3)
Added new block during phi lifting mul16u::@10(between mul16u::@2 and mul16u::@4)
Added new block during phi lifting mul16s::@7(between mul16s::@6 and mul16s::@1)
Added new block during phi lifting mul16s::@8(between mul16s::@1 and mul16s::@2)
Added new block during phi lifting sin16s_gen2::@10(between sin16s_gen2::@1 and sin16s_gen2::@2)
Added new block during phi lifting sin16s::@13(between sin16s and sin16s::@1)
Fixing phi predecessor for sin16s::isUpper#2 to new block ( sin16s -> sin16s::@13 ) during phi lifting.
Added new block during phi lifting sin16s::@14(between sin16s::@1 and sin16s::@2)
Added new block during phi lifting sin16s::@15(between sin16s::@12 and sin16s::@3)
Added new block during phi lifting bitmap_init::@9(between bitmap_init::@2 and bitmap_init::@1)
Added new block during phi lifting bitmap_init::@10(between bitmap_init::@1 and bitmap_init::@2)
Added new block during phi lifting bitmap_init::@11(between bitmap_init::@6 and bitmap_init::@5)
Added new block during phi lifting bitmap_init::@12(between bitmap_init::@5 and bitmap_init::@6)
Added new block during phi lifting main::@32(between main::@6 and main::@1)
Added new block during phi lifting main::@33(between main::@30 and main::@4)
Added new block during phi lifting main::@34(between main::@4 and main::@5)
Added new block during phi lifting main::@35(between main::@5 and main::@6)
Added new block during phi lifting irq::@3(between irq and irq::@1)
Adding NOP phi() at start of @begin
Adding NOP phi() at start of @6
Adding NOP phi() at start of @17
Adding NOP phi() at start of @28
Adding NOP phi() at start of @34
Adding NOP phi() at start of @37
Adding NOP phi() at start of @38
Adding NOP phi() at start of @end
Adding NOP phi() at start of main
Adding NOP phi() at start of main::@24
Adding NOP phi() at start of main::@25
Adding NOP phi() at start of main::toD0181
Adding NOP phi() at start of main::toD0181_@return
Adding NOP phi() at start of main::@27
Adding NOP phi() at start of main::@11
Adding NOP phi() at start of main::@12
Adding NOP phi() at start of main::@17
Adding NOP phi() at start of mul16u::@3
Adding NOP phi() at start of bitmap_clear
Adding NOP phi() at start of bitmap_clear::@1
Adding NOP phi() at start of bitmap_clear::@2
Adding NOP phi() at start of memset::@1
Adding NOP phi() at start of bitmap_init
Adding NOP phi() at start of bitmap_init::@3
Adding NOP phi() at start of bitmap_init::@4
Adding NOP phi() at start of sin16s_gen2
Adding NOP phi() at start of sin16s_gen2::@1_1
Adding NOP phi() at start of div32u16u
CALL GRAPH
Calls in [] to main:7 
Calls in [main] to sin16s_gen2:11 bitmap_init:13 bitmap_clear:15 init_irq:20 mul16s:30 mul16s:43 bitmap_plot:51 
Calls in [mul16s] to mul16u:88 
Calls in [bitmap_clear] to memset:136 memset:138 
Calls in [sin16s_gen2] to div32u16u:183 sin16s:189 mul16s:193 
Calls in [sin16s] to mulu16_sel:220 mulu16_sel:227 mulu16_sel:232 mulu16_sel:240 mulu16_sel:247 
Calls in [mulu16_sel] to mul16u:265 
Calls in [div32u16u] to divr16u:272 divr16u:277 

Created 47 initial phi equivalence classes
Coalesced [28] mul16s::a#8 ← mul16s::a#1
Coalesced [29] mul16s::b#7 ← mul16s::b#1
Coalesced [41] mul16s::a#9 ← mul16s::a#2
Coalesced [42] mul16s::b#8 ← mul16s::b#2
Coalesced [65] main::r_add#14 ← main::r_add#1
Coalesced [68] main::idx_x#13 ← main::idx_x#10
Coalesced [69] main::r#13 ← main::r#1
Coalesced [70] main::idx_y#13 ← main::idx_y#10
Coalesced [71] main::r_add#13 ← main::r_add#12
Coalesced (already) [74] main::r_add#15 ← main::r_add#10
Coalesced [75] main::idx_y#14 ← main::idx_y#1
Coalesced [76] main::idx_x#14 ← main::idx_x#1
Coalesced [86] mul16u::mb#6 ← mul16u::b#0
Coalesced [87] mul16u::a#8 ← mul16u::a#1
Coalesced [95] mul16s::m#7 ← mul16s::m#1
Coalesced [101] mul16s::m#10 ← mul16s::m#2
Coalesced [105] mul16s::m#9 ← mul16s::m#5
Coalesced [106] mul16s::m#8 ← mul16s::m#0
Coalesced [108] mul16u::a#10 ← mul16u::a#6
Coalesced [109] mul16u::mb#8 ← mul16u::mb#0
Coalesced [117] mul16u::res#9 ← mul16u::res#1
Coalesced [121] mul16u::a#11 ← mul16u::a#0
Coalesced [122] mul16u::res#7 ← mul16u::res#6
Coalesced [123] mul16u::mb#9 ← mul16u::mb#1
Coalesced (already) [124] mul16u::res#8 ← mul16u::res#2
Coalesced [151] memset::dst#5 ← memset::dst#1
Coalesced [171] bitmap_init::yoffs#7 ← bitmap_init::yoffs#1
Coalesced [176] bitmap_init::y#5 ← bitmap_init::y#1
Coalesced [177] bitmap_init::yoffs#5 ← bitmap_init::yoffs#4
Coalesced (already) [178] bitmap_init::yoffs#6 ← bitmap_init::yoffs#2
Coalesced [179] bitmap_init::bits#5 ← bitmap_init::bits#4
Coalesced [180] bitmap_init::x#5 ← bitmap_init::x#1
Coalesced [181] bitmap_init::bits#6 ← bitmap_init::bits#1
Coalesced [192] mul16s::a#10 ← mul16s::a#0
Coalesced [203] sin16s_gen2::i#10 ← sin16s_gen2::i#1
Coalesced [204] sin16s_gen2::x#10 ← sin16s_gen2::x#1
Coalesced [205] sin16s_gen2::sintab#12 ← sin16s_gen2::sintab#0
Coalesced [208] sin16s::x#9 ← sin16s::x#1
Coalesced [212] sin16s::x#11 ← sin16s::x#2
Coalesced [218] mulu16_sel::v1#8 ← mulu16_sel::v1#0
Coalesced [219] mulu16_sel::v2#8 ← mulu16_sel::v2#0
Coalesced [225] mulu16_sel::v1#9 ← mulu16_sel::v1#1
Coalesced [226] mulu16_sel::v2#9 ← mulu16_sel::v2#1
Coalesced [231] mulu16_sel::v1#10 ← mulu16_sel::v1#2
Coalesced [238] mulu16_sel::v1#6 ← mulu16_sel::v1#3
Coalesced [239] mulu16_sel::v2#6 ← mulu16_sel::v2#3
Coalesced [245] mulu16_sel::v1#7 ← mulu16_sel::v1#4
Coalesced [246] mulu16_sel::v2#7 ← mulu16_sel::v2#4
Coalesced [254] sin16s::return#6 ← sin16s::sinx#1
Coalesced [258] sin16s::x#10 ← sin16s::x#4
Coalesced [259] sin16s::x#8 ← sin16s::x#0
Coalesced [263] mul16u::mb#7 ← mul16u::b#1
Coalesced [264] mul16u::a#9 ← mul16u::a#2
Coalesced [276] divr16u::rem#12 ← divr16u::rem#4
Coalesced [283] divr16u::rem#13 ← divr16u::rem#10
Coalesced [284] divr16u::dividend#9 ← divr16u::dividend#5
Coalesced [291] divr16u::rem#16 ← divr16u::rem#1
Coalesced [298] divr16u::rem#18 ← divr16u::rem#2
Coalesced [299] divr16u::return#8 ← divr16u::quotient#2
Coalesced [305] divr16u::rem#14 ← divr16u::rem#11
Coalesced [306] divr16u::dividend#10 ← divr16u::dividend#0
Coalesced [307] divr16u::quotient#9 ← divr16u::return#0
Coalesced [308] divr16u::i#7 ← divr16u::i#1
Coalesced [309] divr16u::rem#17 ← divr16u::rem#6
Coalesced [310] divr16u::return#7 ← divr16u::quotient#1
Coalesced [311] divr16u::rem#15 ← divr16u::rem#0
Coalesced [315] frame_cnt#28 ← frame_cnt#1
Coalesced [320] frame_cnt#27 ← frame_cnt#0
Coalesced down to 32 phi equivalence classes
Culled Empty Block (label) @6
Culled Empty Block (label) @17
Culled Empty Block (label) @28
Culled Empty Block (label) @34
Culled Empty Block (label) @38
Culled Empty Block (label) main::toD0181_@return
Culled Empty Block (label) main::@27
Culled Empty Block (label) main::@11
Culled Empty Block (label) main::@12
Culled Empty Block (label) main::@32
Culled Empty Block (label) main::@17
Culled Empty Block (label) main::@35
Culled Empty Block (label) mul16s::@8
Culled Empty Block (label) mul16s::@7
Culled Empty Block (label) mul16u::@3
Culled Empty Block (label) mul16u::@10
Culled Empty Block (label) bitmap_clear::@2
Culled Empty Block (label) memset::@1
Culled Empty Block (label) bitmap_init::@3
Culled Empty Block (label) bitmap_init::@4
Culled Empty Block (label) bitmap_init::@11
Culled Empty Block (label) bitmap_init::@12
Culled Empty Block (label) bitmap_init::@9
Culled Empty Block (label) sin16s_gen2::@1_1
Culled Empty Block (label) sin16s_gen2::@10
Culled Empty Block (label) sin16s::@14
Culled Empty Block (label) sin16s::@13
Culled Empty Block (label) divr16u::@8
Culled Empty Block (label) divr16u::@10
Culled Empty Block (label) divr16u::@9
Culled Empty Block (label) irq::@3
Renumbering block @35 to @1
Renumbering block @37 to @2
Renumbering block div32u16u::@2 to div32u16u::@1
Renumbering block div32u16u::@3 to div32u16u::@2
Renumbering block mul16u::@4 to mul16u::@3
Renumbering block mul16u::@7 to mul16u::@4
Renumbering block mul16s::@6 to mul16s::@5
Renumbering block sin16s_gen2::@7 to sin16s_gen2::@3
Renumbering block sin16s_gen2::@8 to sin16s_gen2::@4
Renumbering block sin16s_gen2::@9 to sin16s_gen2::@5
Renumbering block sin16s::@8 to sin16s::@7
Renumbering block sin16s::@9 to sin16s::@8
Renumbering block sin16s::@10 to sin16s::@9
Renumbering block sin16s::@11 to sin16s::@10
Renumbering block sin16s::@12 to sin16s::@11
Renumbering block sin16s::@15 to sin16s::@12
Renumbering block mulu16_sel::@2 to mulu16_sel::@1
Renumbering block memset::@2 to memset::@1
Renumbering block memset::@4 to memset::@2
Renumbering block memset::@5 to memset::@3
Renumbering block bitmap_init::@5 to bitmap_init::@3
Renumbering block bitmap_init::@6 to bitmap_init::@4
Renumbering block bitmap_init::@7 to bitmap_init::@5
Renumbering block bitmap_init::@10 to bitmap_init::@6
Renumbering block main::@4 to main::@3
Renumbering block main::@5 to main::@4
Renumbering block main::@6 to main::@5
Renumbering block main::@13 to main::@6
Renumbering block main::@18 to main::@7
Renumbering block main::@23 to main::@8
Renumbering block main::@24 to main::@9
Renumbering block main::@25 to main::@10
Renumbering block main::@26 to main::@11
Renumbering block main::@28 to main::@12
Renumbering block main::@29 to main::@13
Renumbering block main::@30 to main::@14
Renumbering block main::@31 to main::@15
Renumbering block main::@33 to main::@16
Renumbering block main::@34 to main::@17
Adding NOP phi() at start of @begin
Adding NOP phi() at start of @2
Adding NOP phi() at start of @end
Adding NOP phi() at start of main
Adding NOP phi() at start of main::@9
Adding NOP phi() at start of main::@10
Adding NOP phi() at start of main::toD0181
Adding NOP phi() at start of main::@16
Adding NOP phi() at start of main::@17
Adding NOP phi() at start of bitmap_clear
Adding NOP phi() at start of bitmap_clear::@1
Adding NOP phi() at start of bitmap_init
Adding NOP phi() at start of bitmap_init::@6
Adding NOP phi() at start of sin16s_gen2
Adding NOP phi() at start of div32u16u

FINAL CONTROL FLOW GRAPH
@begin: scope:[]  from
  [0] phi()
  to:@1
@1: scope:[]  from @begin
  [1] (byte) frame_cnt#0 ← (byte) 1
  to:@2
@2: scope:[]  from @1
  [2] phi()
  [3] call main 
  to:@end
@end: scope:[]  from @2
  [4] phi()
main: scope:[main]  from @2
  [5] phi()
  [6] call sin16s_gen2 
  to:main::@9
main::@9: scope:[main]  from main
  [7] phi()
  [8] call bitmap_init 
  to:main::@10
main::@10: scope:[main]  from main::@9
  [9] phi()
  [10] call bitmap_clear 
  to:main::@11
main::@11: scope:[main]  from main::@10
  [11] *((const byte*) D011#0) ← (const byte) VIC_BMM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte) 3
  to:main::toD0181
main::toD0181: scope:[main]  from main::@11
  [12] phi()
  to:main::@8
main::@8: scope:[main]  from main::toD0181
  [13] *((const byte*) D018#0) ← (const byte) main::toD0181_return#0
  [14] call init_irq 
  to:main::@1
main::@1: scope:[main]  from main::@5 main::@8
  [15] (byte) main::r_add#10 ← phi( main::@8/(byte) $20 main::@5/(byte) main::r_add#12 )
  [15] (word) main::idx_y#3 ← phi( main::@8/(byte) $80 main::@5/(word) main::idx_y#10 )
  [15] (signed word) main::r#10 ← phi( main::@8/(signed byte) 0 main::@5/(signed word) main::r#1 )
  [15] (word) main::idx_x#11 ← phi( main::@8/(byte) 0 main::@5/(word) main::idx_x#10 )
  to:main::@2
main::@2: scope:[main]  from main::@1
  [16] (word~) main::$32 ← (word) main::idx_x#11 << (byte) 1
  [17] (signed word*~) main::$34 ← (const signed word[$200]) SINUS#0 + (word~) main::$32
  [18] (signed word) main::cos_x#0 ← *((signed word*~) main::$34)
  [19] (signed word) mul16s::a#1 ← (signed word) main::r#10
  [20] (signed word) mul16s::b#1 ← (signed word) main::cos_x#0
  [21] call mul16s 
  [22] (signed dword) mul16s::return#3 ← (signed dword) mul16s::return#0
  to:main::@12
main::@12: scope:[main]  from main::@2
  [23] (signed dword) main::xpos#0 ← (signed dword) mul16s::return#3
  [24] (word~) main::$10 ← > (signed dword) main::xpos#0
  [25] (signed word~) main::$11 ← (signed word)(word~) main::$10 >> (signed byte) 2
  [26] (signed word) main::x#0 ← (signed word) $a0 + (signed word~) main::$11
  [27] (word~) main::$33 ← (word) main::idx_y#3 << (byte) 1
  [28] (signed word*~) main::$35 ← (const signed word[$200]) SINUS#0 + (word~) main::$33
  [29] (signed word) main::sin_y#0 ← *((signed word*~) main::$35)
  [30] (signed word) mul16s::a#2 ← (signed word) main::r#10
  [31] (signed word) mul16s::b#2 ← (signed word) main::sin_y#0
  [32] call mul16s 
  [33] (signed dword) mul16s::return#4 ← (signed dword) mul16s::return#0
  to:main::@13
main::@13: scope:[main]  from main::@12
  [34] (signed dword) main::ypos#0 ← (signed dword) mul16s::return#4
  [35] (word~) main::$16 ← > (signed dword) main::ypos#0
  [36] (signed word~) main::$17 ← (signed word)(word~) main::$16 >> (signed byte) 2
  [37] (signed word) main::y#0 ← (signed byte) $64 + (signed word~) main::$17
  [38] (byte) bitmap_plot::y#0 ← (byte)(word)(signed word) main::y#0
  [39] (word) bitmap_plot::x#0 ← (word)(signed word) main::x#0
  [40] call bitmap_plot 
  to:main::@14
main::@14: scope:[main]  from main::@13
  [41] *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0) ← ++ *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0)
  [42] (word) main::idx_x#1 ← (word) main::idx_x#11 + (byte) main::r_add#10
  [43] if((word) main::idx_x#1<(word) $200) goto main::@16
  to:main::@3
main::@16: scope:[main]  from main::@14
  [44] phi()
  to:main::@3
main::@3: scope:[main]  from main::@14 main::@16
  [45] (word) main::idx_x#10 ← phi( main::@14/(byte) 0 main::@16/(word) main::idx_x#1 )
  [46] (word) main::idx_y#1 ← (word) main::idx_y#3 + (byte) main::r_add#10
  [47] if((word) main::idx_y#1<(word) $200) goto main::@17
  to:main::@4
main::@17: scope:[main]  from main::@3
  [48] phi()
  to:main::@4
main::@4: scope:[main]  from main::@17 main::@3
  [49] (word) main::idx_y#10 ← phi( main::@3/(byte) 0 main::@17/(word) main::idx_y#1 )
  [50] (signed word) main::r#1 ← (signed word) main::r#10 + (byte) main::r_add#10
  [51] if((word) main::idx_x#10!=(byte) 0) goto main::@5
  to:main::@15
main::@15: scope:[main]  from main::@4
  [52] if((byte) main::r_add#10==(byte) 1) goto main::@5
  to:main::@6
main::@6: scope:[main]  from main::@15
  [53] (byte) main::r_add#1 ← (byte) main::r_add#10 >> (byte) 1
  to:main::@5
main::@5: scope:[main]  from main::@15 main::@4 main::@6
  [54] (byte) main::r_add#12 ← phi( main::@6/(byte) main::r_add#1 main::@4/(byte) main::r_add#10 )
  [55] if((signed word) main::r#1>=(signed word)(number) $200*(number) $c+(number) $100) goto main::@7
  to:main::@1
main::@7: scope:[main]  from main::@5 main::@7
  [56] *((const byte*) BORDERCOL#0) ← ++ *((const byte*) BORDERCOL#0)
  to:main::@7
bitmap_plot: scope:[bitmap_plot]  from main::@13
  [57] (word) bitmap_plot::plotter#0 ← *((const byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_plot::y#0) w= *((const byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_plot::y#0)
  [58] (word~) bitmap_plot::$1 ← (word) bitmap_plot::x#0 & (word) $fff8
  [59] (byte*) bitmap_plot::plotter#1 ← (byte*)(word) bitmap_plot::plotter#0 + (word~) bitmap_plot::$1
  [60] (byte~) bitmap_plot::$2 ← < (word) bitmap_plot::x#0
  [61] *((byte*) bitmap_plot::plotter#1) ← *((byte*) bitmap_plot::plotter#1) | *((const byte[$100]) bitmap_plot_bit#0 + (byte~) bitmap_plot::$2)
  to:bitmap_plot::@return
bitmap_plot::@return: scope:[bitmap_plot]  from bitmap_plot
  [62] return 
  to:@return
mul16s: scope:[mul16s]  from main::@12 main::@2 sin16s_gen2::@4
  [63] (signed word) mul16s::b#3 ← phi( main::@2/(signed word) mul16s::b#1 main::@12/(signed word) mul16s::b#2 sin16s_gen2::@4/(const signed word) sin16s_gen2::ampl#0 )
  [63] (signed word) mul16s::a#3 ← phi( main::@2/(signed word) mul16s::a#1 main::@12/(signed word) mul16s::a#2 sin16s_gen2::@4/(signed word) mul16s::a#0 )
  [64] (word) mul16u::a#1 ← (word)(signed word) mul16s::a#3
  [65] (word) mul16u::b#0 ← (word)(signed word) mul16s::b#3
  [66] call mul16u 
  [67] (dword) mul16u::return#2 ← (dword) mul16u::res#2
  to:mul16s::@5
mul16s::@5: scope:[mul16s]  from mul16s
  [68] (dword) mul16s::m#0 ← (dword) mul16u::return#2
  [69] if((signed word) mul16s::a#3>=(signed byte) 0) goto mul16s::@1
  to:mul16s::@3
mul16s::@3: scope:[mul16s]  from mul16s::@5
  [70] (word~) mul16s::$9 ← > (dword) mul16s::m#0
  [71] (word~) mul16s::$16 ← (word~) mul16s::$9 - (word)(signed word) mul16s::b#3
  [72] (dword) mul16s::m#1 ← (dword) mul16s::m#0 hi= (word~) mul16s::$16
  to:mul16s::@1
mul16s::@1: scope:[mul16s]  from mul16s::@3 mul16s::@5
  [73] (dword) mul16s::m#5 ← phi( mul16s::@3/(dword) mul16s::m#1 mul16s::@5/(dword) mul16s::m#0 )
  [74] if((signed word) mul16s::b#3>=(signed byte) 0) goto mul16s::@2
  to:mul16s::@4
mul16s::@4: scope:[mul16s]  from mul16s::@1
  [75] (word~) mul16s::$13 ← > (dword) mul16s::m#5
  [76] (word~) mul16s::$17 ← (word~) mul16s::$13 - (word)(signed word) mul16s::a#3
  [77] (dword) mul16s::m#2 ← (dword) mul16s::m#5 hi= (word~) mul16s::$17
  to:mul16s::@2
mul16s::@2: scope:[mul16s]  from mul16s::@1 mul16s::@4
  [78] (dword) mul16s::m#4 ← phi( mul16s::@1/(dword) mul16s::m#5 mul16s::@4/(dword) mul16s::m#2 )
  [79] (signed dword) mul16s::return#0 ← (signed dword)(dword) mul16s::m#4
  to:mul16s::@return
mul16s::@return: scope:[mul16s]  from mul16s::@2
  [80] return 
  to:@return
mul16u: scope:[mul16u]  from mul16s mulu16_sel
  [81] (word) mul16u::a#6 ← phi( mul16s/(word) mul16u::a#1 mulu16_sel/(word) mul16u::a#2 )
  [81] (dword) mul16u::mb#0 ← phi( mul16s/(word) mul16u::b#0 mulu16_sel/(word) mul16u::b#1 )
  to:mul16u::@1
mul16u::@1: scope:[mul16u]  from mul16u mul16u::@3
  [82] (dword) mul16u::mb#2 ← phi( mul16u/(dword) mul16u::mb#0 mul16u::@3/(dword) mul16u::mb#1 )
  [82] (dword) mul16u::res#2 ← phi( mul16u/(byte) 0 mul16u::@3/(dword) mul16u::res#6 )
  [82] (word) mul16u::a#3 ← phi( mul16u/(word) mul16u::a#6 mul16u::@3/(word) mul16u::a#0 )
  [83] if((word) mul16u::a#3!=(byte) 0) goto mul16u::@2
  to:mul16u::@return
mul16u::@return: scope:[mul16u]  from mul16u::@1
  [84] return 
  to:@return
mul16u::@2: scope:[mul16u]  from mul16u::@1
  [85] (byte~) mul16u::$1 ← (word) mul16u::a#3 & (byte) 1
  [86] if((byte~) mul16u::$1==(byte) 0) goto mul16u::@3
  to:mul16u::@4
mul16u::@4: scope:[mul16u]  from mul16u::@2
  [87] (dword) mul16u::res#1 ← (dword) mul16u::res#2 + (dword) mul16u::mb#2
  to:mul16u::@3
mul16u::@3: scope:[mul16u]  from mul16u::@2 mul16u::@4
  [88] (dword) mul16u::res#6 ← phi( mul16u::@2/(dword) mul16u::res#2 mul16u::@4/(dword) mul16u::res#1 )
  [89] (word) mul16u::a#0 ← (word) mul16u::a#3 >> (byte) 1
  [90] (dword) mul16u::mb#1 ← (dword) mul16u::mb#2 << (byte) 1
  to:mul16u::@1
init_irq: scope:[init_irq]  from main::@8
  asm { sei  }
  [92] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0
  [93] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0
  [94] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0
  [95] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) | (byte) $80
  [96] *((const byte*) RASTER#0) ← (byte) 0
  [97] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0
  [98] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq()
  asm { cli  }
  to:init_irq::@return
init_irq::@return: scope:[init_irq]  from init_irq
  [100] return 
  to:@return
bitmap_clear: scope:[bitmap_clear]  from main::@10
  [101] phi()
  [102] call memset 
  to:bitmap_clear::@1
bitmap_clear::@1: scope:[bitmap_clear]  from bitmap_clear
  [103] phi()
  [104] call memset 
  to:bitmap_clear::@return
bitmap_clear::@return: scope:[bitmap_clear]  from bitmap_clear::@1
  [105] return 
  to:@return
memset: scope:[memset]  from bitmap_clear bitmap_clear::@1
  [106] (byte) memset::c#4 ← phi( bitmap_clear/(const byte) bitmap_clear::col#0 bitmap_clear::@1/(byte) 0 )
  [106] (void*) memset::str#3 ← phi( bitmap_clear/(void*)(const byte*) SCREEN#0 bitmap_clear::@1/(void*)(const byte*) BITMAP#0 )
  [106] (word) memset::num#2 ← phi( bitmap_clear/(word) $3e8 bitmap_clear::@1/(word) $1f40 )
  [107] if((word) memset::num#2<=(byte) 0) goto memset::@return
  to:memset::@1
memset::@1: scope:[memset]  from memset
  [108] (byte*) memset::end#0 ← (byte*)(void*) memset::str#3 + (word) memset::num#2
  [109] (byte*~) memset::dst#4 ← (byte*)(void*) memset::str#3
  to:memset::@2
memset::@2: scope:[memset]  from memset::@1 memset::@3
  [110] (byte*) memset::dst#2 ← phi( memset::@1/(byte*~) memset::dst#4 memset::@3/(byte*) memset::dst#1 )
  [111] if((byte*) memset::dst#2!=(byte*) memset::end#0) goto memset::@3
  to:memset::@return
memset::@return: scope:[memset]  from memset memset::@2
  [112] return 
  to:@return
memset::@3: scope:[memset]  from memset::@2
  [113] *((byte*) memset::dst#2) ← (byte) memset::c#4
  [114] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2
  to:memset::@2
bitmap_init: scope:[bitmap_init]  from main::@9
  [115] phi()
  to:bitmap_init::@1
bitmap_init::@1: scope:[bitmap_init]  from bitmap_init bitmap_init::@2
  [116] (byte) bitmap_init::x#2 ← phi( bitmap_init/(byte) 0 bitmap_init::@2/(byte) bitmap_init::x#1 )
  [116] (byte) bitmap_init::bits#3 ← phi( bitmap_init/(byte) $80 bitmap_init::@2/(byte) bitmap_init::bits#4 )
  [117] *((const byte[$100]) bitmap_plot_bit#0 + (byte) bitmap_init::x#2) ← (byte) bitmap_init::bits#3
  [118] (byte) bitmap_init::bits#1 ← (byte) bitmap_init::bits#3 >> (byte) 1
  [119] if((byte) bitmap_init::bits#1!=(byte) 0) goto bitmap_init::@6
  to:bitmap_init::@2
bitmap_init::@6: scope:[bitmap_init]  from bitmap_init::@1
  [120] phi()
  to:bitmap_init::@2
bitmap_init::@2: scope:[bitmap_init]  from bitmap_init::@1 bitmap_init::@6
  [121] (byte) bitmap_init::bits#4 ← phi( bitmap_init::@6/(byte) bitmap_init::bits#1 bitmap_init::@1/(byte) $80 )
  [122] (byte) bitmap_init::x#1 ← ++ (byte) bitmap_init::x#2
  [123] if((byte) bitmap_init::x#1!=(byte) 0) goto bitmap_init::@1
  to:bitmap_init::@3
bitmap_init::@3: scope:[bitmap_init]  from bitmap_init::@2 bitmap_init::@4
  [124] (byte*) bitmap_init::yoffs#2 ← phi( bitmap_init::@2/(const byte*) BITMAP#0 bitmap_init::@4/(byte*) bitmap_init::yoffs#4 )
  [124] (byte) bitmap_init::y#2 ← phi( bitmap_init::@2/(byte) 0 bitmap_init::@4/(byte) bitmap_init::y#1 )
  [125] (byte~) bitmap_init::$7 ← (byte) bitmap_init::y#2 & (byte) 7
  [126] (byte~) bitmap_init::$4 ← < (byte*) bitmap_init::yoffs#2
  [127] (byte~) bitmap_init::$5 ← (byte~) bitmap_init::$7 | (byte~) bitmap_init::$4
  [128] *((const byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_init::y#2) ← (byte~) bitmap_init::$5
  [129] (byte~) bitmap_init::$6 ← > (byte*) bitmap_init::yoffs#2
  [130] *((const byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_init::y#2) ← (byte~) bitmap_init::$6
  [131] if((byte~) bitmap_init::$7!=(byte) 7) goto bitmap_init::@4
  to:bitmap_init::@5
bitmap_init::@5: scope:[bitmap_init]  from bitmap_init::@3
  [132] (byte*) bitmap_init::yoffs#1 ← (byte*) bitmap_init::yoffs#2 + (word)(number) $28*(number) 8
  to:bitmap_init::@4
bitmap_init::@4: scope:[bitmap_init]  from bitmap_init::@3 bitmap_init::@5
  [133] (byte*) bitmap_init::yoffs#4 ← phi( bitmap_init::@3/(byte*) bitmap_init::yoffs#2 bitmap_init::@5/(byte*) bitmap_init::yoffs#1 )
  [134] (byte) bitmap_init::y#1 ← ++ (byte) bitmap_init::y#2
  [135] if((byte) bitmap_init::y#1!=(byte) 0) goto bitmap_init::@3
  to:bitmap_init::@return
bitmap_init::@return: scope:[bitmap_init]  from bitmap_init::@4
  [136] return 
  to:@return
sin16s_gen2: scope:[sin16s_gen2]  from main
  [137] phi()
  [138] call div32u16u 
  [139] (dword) div32u16u::return#2 ← (dword) div32u16u::return#0
  to:sin16s_gen2::@3
sin16s_gen2::@3: scope:[sin16s_gen2]  from sin16s_gen2
  [140] (dword) sin16s_gen2::step#0 ← (dword) div32u16u::return#2
  to:sin16s_gen2::@2
sin16s_gen2::@2: scope:[sin16s_gen2]  from sin16s_gen2::@1 sin16s_gen2::@3
  [141] (signed word*) sin16s_gen2::sintab#10 ← phi( sin16s_gen2::@1/(signed word*) sin16s_gen2::sintab#0 sin16s_gen2::@3/(const signed word[$200]) SINUS#0 )
  [141] (dword) sin16s_gen2::x#6 ← phi( sin16s_gen2::@1/(dword) sin16s_gen2::x#1 sin16s_gen2::@3/(byte) 0 )
  [141] (word) sin16s_gen2::i#6 ← phi( sin16s_gen2::@1/(word) sin16s_gen2::i#1 sin16s_gen2::@3/(byte) 0 )
  [142] (dword) sin16s::x#0 ← (dword) sin16s_gen2::x#6
  [143] call sin16s 
  [144] (signed word) sin16s::return#0 ← (signed word) sin16s::return#1
  to:sin16s_gen2::@4
sin16s_gen2::@4: scope:[sin16s_gen2]  from sin16s_gen2::@2
  [145] (signed word) mul16s::a#0 ← (signed word) sin16s::return#0
  [146] call mul16s 
  [147] (signed dword) mul16s::return#2 ← (signed dword) mul16s::return#0
  to:sin16s_gen2::@5
sin16s_gen2::@5: scope:[sin16s_gen2]  from sin16s_gen2::@4
  [148] (signed dword~) sin16s_gen2::$6 ← (signed dword) mul16s::return#2
  [149] (word~) sin16s_gen2::$9 ← > (signed dword~) sin16s_gen2::$6
  [150] *((signed word*) sin16s_gen2::sintab#10) ← (signed word)(word~) sin16s_gen2::$9
  [151] (signed word*) sin16s_gen2::sintab#0 ← (signed word*) sin16s_gen2::sintab#10 + (const byte) SIZEOF_SIGNED_WORD
  [152] (dword) sin16s_gen2::x#1 ← (dword) sin16s_gen2::x#6 + (dword) sin16s_gen2::step#0
  [153] (word) sin16s_gen2::i#1 ← ++ (word) sin16s_gen2::i#6
  to:sin16s_gen2::@1
sin16s_gen2::@1: scope:[sin16s_gen2]  from sin16s_gen2::@5
  [154] if((word) sin16s_gen2::i#1<(const word) sin16s_gen2::wavelength#0) goto sin16s_gen2::@2
  to:sin16s_gen2::@return
sin16s_gen2::@return: scope:[sin16s_gen2]  from sin16s_gen2::@1
  [155] return 
  to:@return
sin16s: scope:[sin16s]  from sin16s_gen2::@2
  [156] if((dword) sin16s::x#0<(const dword) PI_u4f28#0) goto sin16s::@1
  to:sin16s::@4
sin16s::@4: scope:[sin16s]  from sin16s
  [157] (dword) sin16s::x#1 ← (dword) sin16s::x#0 - (const dword) PI_u4f28#0
  to:sin16s::@1
sin16s::@1: scope:[sin16s]  from sin16s sin16s::@4
  [158] (byte) sin16s::isUpper#2 ← phi( sin16s/(byte) 0 sin16s::@4/(byte) 1 )
  [158] (dword) sin16s::x#4 ← phi( sin16s/(dword) sin16s::x#0 sin16s::@4/(dword) sin16s::x#1 )
  [159] if((dword) sin16s::x#4<(const dword) PI_HALF_u4f28#0) goto sin16s::@2
  to:sin16s::@5
sin16s::@5: scope:[sin16s]  from sin16s::@1
  [160] (dword) sin16s::x#2 ← (const dword) PI_u4f28#0 - (dword) sin16s::x#4
  to:sin16s::@2
sin16s::@2: scope:[sin16s]  from sin16s::@1 sin16s::@5
  [161] (dword) sin16s::x#6 ← phi( sin16s::@1/(dword) sin16s::x#4 sin16s::@5/(dword) sin16s::x#2 )
  [162] (dword~) sin16s::$4 ← (dword) sin16s::x#6 << (byte) 3
  [163] (word) sin16s::x1#0 ← > (dword~) sin16s::$4
  [164] (word) mulu16_sel::v1#0 ← (word) sin16s::x1#0
  [165] (word) mulu16_sel::v2#0 ← (word) sin16s::x1#0
  [166] call mulu16_sel 
  [167] (word) mulu16_sel::return#0 ← (word) mulu16_sel::return#12
  to:sin16s::@7
sin16s::@7: scope:[sin16s]  from sin16s::@2
  [168] (word) sin16s::x2#0 ← (word) mulu16_sel::return#0
  [169] (word) mulu16_sel::v1#1 ← (word) sin16s::x2#0
  [170] (word) mulu16_sel::v2#1 ← (word) sin16s::x1#0
  [171] call mulu16_sel 
  [172] (word) mulu16_sel::return#1 ← (word) mulu16_sel::return#12
  to:sin16s::@8
sin16s::@8: scope:[sin16s]  from sin16s::@7
  [173] (word) sin16s::x3#0 ← (word) mulu16_sel::return#1
  [174] (word) mulu16_sel::v1#2 ← (word) sin16s::x3#0
  [175] call mulu16_sel 
  [176] (word) mulu16_sel::return#2 ← (word) mulu16_sel::return#12
  to:sin16s::@9
sin16s::@9: scope:[sin16s]  from sin16s::@8
  [177] (word) sin16s::x3_6#0 ← (word) mulu16_sel::return#2
  [178] (word) sin16s::usinx#0 ← (word) sin16s::x1#0 - (word) sin16s::x3_6#0
  [179] (word) mulu16_sel::v1#3 ← (word) sin16s::x3#0
  [180] (word) mulu16_sel::v2#3 ← (word) sin16s::x1#0
  [181] call mulu16_sel 
  [182] (word) mulu16_sel::return#10 ← (word) mulu16_sel::return#12
  to:sin16s::@10
sin16s::@10: scope:[sin16s]  from sin16s::@9
  [183] (word) sin16s::x4#0 ← (word) mulu16_sel::return#10
  [184] (word) mulu16_sel::v1#4 ← (word) sin16s::x4#0
  [185] (word) mulu16_sel::v2#4 ← (word) sin16s::x1#0
  [186] call mulu16_sel 
  [187] (word) mulu16_sel::return#11 ← (word) mulu16_sel::return#12
  to:sin16s::@11
sin16s::@11: scope:[sin16s]  from sin16s::@10
  [188] (word) sin16s::x5#0 ← (word) mulu16_sel::return#11
  [189] (word) sin16s::x5_128#0 ← (word) sin16s::x5#0 >> (byte) 4
  [190] (word) sin16s::usinx#1 ← (word) sin16s::usinx#0 + (word) sin16s::x5_128#0
  [191] if((byte) sin16s::isUpper#2==(byte) 0) goto sin16s::@12
  to:sin16s::@6
sin16s::@6: scope:[sin16s]  from sin16s::@11
  [192] (signed word) sin16s::sinx#1 ← - (signed word)(word) sin16s::usinx#1
  to:sin16s::@3
sin16s::@3: scope:[sin16s]  from sin16s::@12 sin16s::@6
  [193] (signed word) sin16s::return#1 ← phi( sin16s::@12/(signed word~) sin16s::return#5 sin16s::@6/(signed word) sin16s::sinx#1 )
  to:sin16s::@return
sin16s::@return: scope:[sin16s]  from sin16s::@3
  [194] return 
  to:@return
sin16s::@12: scope:[sin16s]  from sin16s::@11
  [195] (signed word~) sin16s::return#5 ← (signed word)(word) sin16s::usinx#1
  to:sin16s::@3
mulu16_sel: scope:[mulu16_sel]  from sin16s::@10 sin16s::@2 sin16s::@7 sin16s::@8 sin16s::@9
  [196] (byte) mulu16_sel::select#5 ← phi( sin16s::@9/(byte) 0 sin16s::@10/(byte) 0 sin16s::@2/(byte) 0 sin16s::@7/(byte) 1 sin16s::@8/(byte) 1 )
  [196] (word) mulu16_sel::v2#5 ← phi( sin16s::@9/(word) mulu16_sel::v2#3 sin16s::@10/(word) mulu16_sel::v2#4 sin16s::@2/(word) mulu16_sel::v2#0 sin16s::@7/(word) mulu16_sel::v2#1 sin16s::@8/(word)(number) $10000/(number) 6 )
  [196] (word) mulu16_sel::v1#5 ← phi( sin16s::@9/(word) mulu16_sel::v1#3 sin16s::@10/(word) mulu16_sel::v1#4 sin16s::@2/(word) mulu16_sel::v1#0 sin16s::@7/(word) mulu16_sel::v1#1 sin16s::@8/(word) mulu16_sel::v1#2 )
  [197] (word) mul16u::a#2 ← (word) mulu16_sel::v1#5
  [198] (word) mul16u::b#1 ← (word) mulu16_sel::v2#5
  [199] call mul16u 
  [200] (dword) mul16u::return#3 ← (dword) mul16u::res#2
  to:mulu16_sel::@1
mulu16_sel::@1: scope:[mulu16_sel]  from mulu16_sel
  [201] (dword~) mulu16_sel::$0 ← (dword) mul16u::return#3
  [202] (dword~) mulu16_sel::$1 ← (dword~) mulu16_sel::$0 << (byte) mulu16_sel::select#5
  [203] (word) mulu16_sel::return#12 ← > (dword~) mulu16_sel::$1
  to:mulu16_sel::@return
mulu16_sel::@return: scope:[mulu16_sel]  from mulu16_sel::@1
  [204] return 
  to:@return
div32u16u: scope:[div32u16u]  from sin16s_gen2
  [205] phi()
  [206] call divr16u 
  [207] (word) divr16u::return#2 ← (word) divr16u::return#0
  to:div32u16u::@1
div32u16u::@1: scope:[div32u16u]  from div32u16u
  [208] (word) div32u16u::quotient_hi#0 ← (word) divr16u::return#2
  [209] (word) divr16u::rem#4 ← (word) rem16u#1
  [210] call divr16u 
  [211] (word) divr16u::return#3 ← (word) divr16u::return#0
  to:div32u16u::@2
div32u16u::@2: scope:[div32u16u]  from div32u16u::@1
  [212] (word) div32u16u::quotient_lo#0 ← (word) divr16u::return#3
  [213] (dword) div32u16u::return#0 ← (word) div32u16u::quotient_hi#0 dw= (word) div32u16u::quotient_lo#0
  to:div32u16u::@return
div32u16u::@return: scope:[div32u16u]  from div32u16u::@2
  [214] return 
  to:@return
divr16u: scope:[divr16u]  from div32u16u div32u16u::@1
  [215] (word) divr16u::dividend#5 ← phi( div32u16u/>(const dword) PI2_u4f28#0 div32u16u::@1/<(const dword) PI2_u4f28#0 )
  [215] (word) divr16u::rem#10 ← phi( div32u16u/(byte) 0 div32u16u::@1/(word) divr16u::rem#4 )
  to:divr16u::@1
divr16u::@1: scope:[divr16u]  from divr16u divr16u::@3
  [216] (byte) divr16u::i#2 ← phi( divr16u/(byte) 0 divr16u::@3/(byte) divr16u::i#1 )
  [216] (word) divr16u::quotient#3 ← phi( divr16u/(byte) 0 divr16u::@3/(word) divr16u::return#0 )
  [216] (word) divr16u::dividend#3 ← phi( divr16u/(word) divr16u::dividend#5 divr16u::@3/(word) divr16u::dividend#0 )
  [216] (word) divr16u::rem#5 ← phi( divr16u/(word) divr16u::rem#10 divr16u::@3/(word) divr16u::rem#11 )
  [217] (word) divr16u::rem#0 ← (word) divr16u::rem#5 << (byte) 1
  [218] (byte~) divr16u::$1 ← > (word) divr16u::dividend#3
  [219] (byte~) divr16u::$2 ← (byte~) divr16u::$1 & (byte) $80
  [220] if((byte~) divr16u::$2==(byte) 0) goto divr16u::@2
  to:divr16u::@4
divr16u::@4: scope:[divr16u]  from divr16u::@1
  [221] (word) divr16u::rem#1 ← (word) divr16u::rem#0 | (byte) 1
  to:divr16u::@2
divr16u::@2: scope:[divr16u]  from divr16u::@1 divr16u::@4
  [222] (word) divr16u::rem#6 ← phi( divr16u::@1/(word) divr16u::rem#0 divr16u::@4/(word) divr16u::rem#1 )
  [223] (word) divr16u::dividend#0 ← (word) divr16u::dividend#3 << (byte) 1
  [224] (word) divr16u::quotient#1 ← (word) divr16u::quotient#3 << (byte) 1
  [225] if((word) divr16u::rem#6<(const word) sin16s_gen2::wavelength#0) goto divr16u::@3
  to:divr16u::@5
divr16u::@5: scope:[divr16u]  from divr16u::@2
  [226] (word) divr16u::quotient#2 ← ++ (word) divr16u::quotient#1
  [227] (word) divr16u::rem#2 ← (word) divr16u::rem#6 - (const word) sin16s_gen2::wavelength#0
  to:divr16u::@3
divr16u::@3: scope:[divr16u]  from divr16u::@2 divr16u::@5
  [228] (word) divr16u::return#0 ← phi( divr16u::@2/(word) divr16u::quotient#1 divr16u::@5/(word) divr16u::quotient#2 )
  [228] (word) divr16u::rem#11 ← phi( divr16u::@2/(word) divr16u::rem#6 divr16u::@5/(word) divr16u::rem#2 )
  [229] (byte) divr16u::i#1 ← ++ (byte) divr16u::i#2
  [230] if((byte) divr16u::i#1!=(byte) $10) goto divr16u::@1
  to:divr16u::@6
divr16u::@6: scope:[divr16u]  from divr16u::@3
  [231] (word) rem16u#1 ← (word) divr16u::rem#11
  to:divr16u::@return
divr16u::@return: scope:[divr16u]  from divr16u::@6
  [232] return 
  to:@return
irq: scope:[irq]  from
  [233] *((const byte*) BGCOL#0) ← (const byte) WHITE#0
  [234] if((byte) 0==(byte) frame_cnt#0) goto irq::@1
  to:irq::@2
irq::@2: scope:[irq]  from irq
  [235] (byte) frame_cnt#1 ← ++ (byte) frame_cnt#0
  to:irq::@1
irq::@1: scope:[irq]  from irq irq::@2
  [236] (byte) frame_cnt#2 ← phi( irq/(byte) frame_cnt#0 irq::@2/(byte) frame_cnt#1 )
  [237] *((const byte*) BGCOL#0) ← (const byte) BLACK#0
  [238] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0
  to:irq::@return
irq::@return: scope:[irq]  from irq::@1
  [239] return 
  to:@return


VARIABLE REGISTER WEIGHTS
(byte*) BGCOL
(byte*) BITMAP
(byte) BLACK
(byte*) BORDERCOL
(byte*) CIA1_INTERRUPT
(byte) CIA_INTERRUPT_CLEAR
(byte*) D011
(byte*) D018
(void()**) HARDWARE_IRQ
(byte*) IRQ_ENABLE
(byte) IRQ_RASTER
(byte*) IRQ_STATUS
(dword) PI2_u4f28
(dword) PI_HALF_u4f28
(dword) PI_u4f28
(byte*) PROCPORT
(byte*) PROCPORT_DDR
(byte) PROCPORT_DDR_MEMORY_MASK
(byte) PROCPORT_RAM_IO
(byte*) RASTER
(byte*) SCREEN
(signed word[$200]) SINUS
(byte) VIC_BMM
(byte*) VIC_CONTROL
(byte) VIC_DEN
(byte) VIC_RSEL
(byte) WHITE
(void()) bitmap_clear((byte) bitmap_clear::bgcol , (byte) bitmap_clear::fgcol)
(byte) bitmap_clear::bgcol
(byte) bitmap_clear::col
(byte) bitmap_clear::fgcol
(byte*) bitmap_gfx
(void()) bitmap_init((byte*) bitmap_init::gfx , (byte*) bitmap_init::screen)
(byte~) bitmap_init::$4 22.0
(byte~) bitmap_init::$5 22.0
(byte~) bitmap_init::$6 22.0
(byte~) bitmap_init::$7 5.5
(byte) bitmap_init::bits
(byte) bitmap_init::bits#1 11.0
(byte) bitmap_init::bits#3 16.5
(byte) bitmap_init::bits#4 7.333333333333333
(byte*) bitmap_init::gfx
(byte*) bitmap_init::screen
(byte) bitmap_init::x
(byte) bitmap_init::x#1 16.5
(byte) bitmap_init::x#2 5.5
(byte) bitmap_init::y
(byte) bitmap_init::y#1 16.5
(byte) bitmap_init::y#2 5.5
(byte*) bitmap_init::yoffs
(byte*) bitmap_init::yoffs#1 22.0
(byte*) bitmap_init::yoffs#2 6.875
(byte*) bitmap_init::yoffs#4 11.0
(void()) bitmap_plot((word) bitmap_plot::x , (byte) bitmap_plot::y)
(word~) bitmap_plot::$1 4.0
(byte~) bitmap_plot::$2 4.0
(byte*) bitmap_plot::plotter
(word) bitmap_plot::plotter#0 1.0
(byte*) bitmap_plot::plotter#1 3.0
(word) bitmap_plot::x
(word) bitmap_plot::x#0 3.75
(byte) bitmap_plot::y
(byte) bitmap_plot::y#0 7.5
(byte[$100]) bitmap_plot_bit
(byte[$100]) bitmap_plot_yhi
(byte[$100]) bitmap_plot_ylo
(byte*) bitmap_screen
(dword()) div32u16u((dword) div32u16u::dividend , (word) div32u16u::divisor)
(dword) div32u16u::dividend
(word) div32u16u::divisor
(dword) div32u16u::quotient
(word) div32u16u::quotient_hi
(word) div32u16u::quotient_hi#0 0.8
(word) div32u16u::quotient_lo
(word) div32u16u::quotient_lo#0 4.0
(dword) div32u16u::return
(dword) div32u16u::return#0 1.3333333333333333
(dword) div32u16u::return#2 4.0
(word()) divr16u((word) divr16u::dividend , (word) divr16u::divisor , (word) divr16u::rem)
(byte~) divr16u::$1 22.0
(byte~) divr16u::$2 22.0
(word) divr16u::dividend
(word) divr16u::dividend#0 2.75
(word) divr16u::dividend#3 5.0
(word) divr16u::dividend#5 2.0
(word) divr16u::divisor
(byte) divr16u::i
(byte) divr16u::i#1 16.5
(byte) divr16u::i#2 1.6923076923076923
(word) divr16u::quotient
(word) divr16u::quotient#1 16.5
(word) divr16u::quotient#2 11.0
(word) divr16u::quotient#3 2.75
(word) divr16u::rem
(word) divr16u::rem#0 8.25
(word) divr16u::rem#1 22.0
(word) divr16u::rem#10 4.0
(word) divr16u::rem#11 11.666666666666666
(word) divr16u::rem#2 22.0
(word) divr16u::rem#4 4.0
(word) divr16u::rem#5 24.0
(word) divr16u::rem#6 11.0
(word) divr16u::return
(word) divr16u::return#0 5.285714285714286
(word) divr16u::return#2 4.0
(word) divr16u::return#3 4.0
(byte) frame_cnt
(byte) frame_cnt#0 0.5454545454545455
(byte) frame_cnt#1 4.0
(byte) frame_cnt#2 40.0
(void()) init_irq()
interrupt(HARDWARE_CLOBBER)(void()) irq()
(void()) main()
(word~) main::$10 11.0
(signed word~) main::$11 22.0
(word~) main::$16 11.0
(signed word~) main::$17 22.0
(word~) main::$32 22.0
(word~) main::$33 22.0
(signed word*~) main::$34 22.0
(signed word*~) main::$35 22.0
(signed word) main::cos_x
(signed word) main::cos_x#0 11.0
(word) main::idx_x
(word) main::idx_x#1 11.0
(word) main::idx_x#10 3.0
(word) main::idx_x#11 1.222222222222222
(word) main::idx_y
(word) main::idx_y#1 11.0
(word) main::idx_y#10 3.142857142857143
(word) main::idx_y#3 1.064516129032258
(signed word) main::r
(signed word) main::r#1 5.5
(signed word) main::r#10 1.2571428571428571
(byte) main::r_add
(byte) main::r_add#1 22.0
(byte) main::r_add#10 2.026315789473684
(byte) main::r_add#12 16.5
(signed word) main::sin_y
(signed word) main::sin_y#0 11.0
(word~) main::toD0181_$0
(number~) main::toD0181_$1
(number~) main::toD0181_$2
(number~) main::toD0181_$3
(word~) main::toD0181_$4
(byte~) main::toD0181_$5
(number~) main::toD0181_$6
(number~) main::toD0181_$7
(number~) main::toD0181_$8
(byte*) main::toD0181_gfx
(byte) main::toD0181_return
(byte*) main::toD0181_screen
(word) main::x
(signed word) main::x#0 0.8461538461538461
(signed dword) main::xpos
(signed dword) main::xpos#0 22.0
(word) main::y
(signed word) main::y#0 11.0
(signed dword) main::ypos
(signed dword) main::ypos#0 22.0
(void*()) memset((void*) memset::str , (byte) memset::c , (word) memset::num)
(byte) memset::c
(byte) memset::c#4 1.375
(byte*) memset::dst
(byte*) memset::dst#1 22.0
(byte*) memset::dst#2 15.333333333333332
(byte*~) memset::dst#4 4.0
(byte*) memset::end
(byte*) memset::end#0 2.1666666666666665
(word) memset::num
(word) memset::num#2 2.0
(void*) memset::return
(void*) memset::str
(void*) memset::str#3
(signed dword()) mul16s((signed word) mul16s::a , (signed word) mul16s::b)
(word~) mul16s::$13 4.0
(word~) mul16s::$16 4.0
(word~) mul16s::$17 4.0
(word~) mul16s::$9 4.0
(signed word) mul16s::a
(signed word) mul16s::a#0 22.0
(signed word) mul16s::a#1 11.0
(signed word) mul16s::a#2 11.0
(signed word) mul16s::a#3 2.692307692307692
(signed word) mul16s::b
(signed word) mul16s::b#1 22.0
(signed word) mul16s::b#2 22.0
(signed word) mul16s::b#3 2.1818181818181817
(dword) mul16s::m
(dword) mul16s::m#0 2.0
(dword) mul16s::m#1 4.0
(dword) mul16s::m#2 4.0
(dword) mul16s::m#4 4.0
(dword) mul16s::m#5 2.5
(signed dword) mul16s::return
(signed dword) mul16s::return#0 7.000000000000001
(signed dword) mul16s::return#2 22.0
(signed dword) mul16s::return#3 22.0
(signed dword) mul16s::return#4 22.0
(dword()) mul16u((word) mul16u::a , (word) mul16u::b)
(byte~) mul16u::$1 202.0
(word) mul16u::a
(word) mul16u::a#0 101.0
(word) mul16u::a#1 2.0
(word) mul16u::a#2 2.0
(word) mul16u::a#3 67.66666666666666
(word) mul16u::a#6 6.0
(word) mul16u::b
(word) mul16u::b#0 4.0
(word) mul16u::b#1 4.0
(dword) mul16u::mb
(dword) mul16u::mb#0 6.0
(dword) mul16u::mb#1 202.0
(dword) mul16u::mb#2 43.57142857142858
(dword) mul16u::res
(dword) mul16u::res#1 202.0
(dword) mul16u::res#2 43.85714285714286
(dword) mul16u::res#6 101.0
(dword) mul16u::return
(dword) mul16u::return#2 4.0
(dword) mul16u::return#3 4.0
(word()) mulu16_sel((word) mulu16_sel::v1 , (word) mulu16_sel::v2 , (byte) mulu16_sel::select)
(dword~) mulu16_sel::$0 4.0
(dword~) mulu16_sel::$1 4.0
(word) mulu16_sel::return
(word) mulu16_sel::return#0 4.0
(word) mulu16_sel::return#1 4.0
(word) mulu16_sel::return#10 4.0
(word) mulu16_sel::return#11 4.0
(word) mulu16_sel::return#12 1.714285714285714
(word) mulu16_sel::return#2 4.0
(byte) mulu16_sel::select
(byte) mulu16_sel::select#5 0.3333333333333333
(word) mulu16_sel::v1
(word) mulu16_sel::v1#0 2.0
(word) mulu16_sel::v1#1 2.0
(word) mulu16_sel::v1#2 4.0
(word) mulu16_sel::v1#3 2.0
(word) mulu16_sel::v1#4 2.0
(word) mulu16_sel::v1#5 12.0
(word) mulu16_sel::v2
(word) mulu16_sel::v2#0 4.0
(word) mulu16_sel::v2#1 4.0
(word) mulu16_sel::v2#3 4.0
(word) mulu16_sel::v2#4 4.0
(word) mulu16_sel::v2#5 5.0
(byte[$100]) plots_per_frame
(word) rem16u
(word) rem16u#1 0.8
(signed word()) sin16s((dword) sin16s::x)
(dword~) sin16s::$4 4.0
(byte) sin16s::isUpper
(byte) sin16s::isUpper#2 0.06060606060606061
(signed word) sin16s::return
(signed word) sin16s::return#0 22.0
(signed word) sin16s::return#1 5.0
(signed word~) sin16s::return#5 4.0
(signed word) sin16s::sinx
(signed word) sin16s::sinx#1 4.0
(word) sin16s::usinx
(word) sin16s::usinx#0 0.3333333333333333
(word) sin16s::usinx#1 1.0
(dword) sin16s::x
(dword) sin16s::x#0 8.5
(dword) sin16s::x#1 4.0
(dword) sin16s::x#2 4.0
(dword) sin16s::x#4 5.0
(dword) sin16s::x#6 6.0
(word) sin16s::x1
(word) sin16s::x1#0 0.6363636363636365
(word) sin16s::x2
(word) sin16s::x2#0 4.0
(word) sin16s::x3
(word) sin16s::x3#0 1.0
(word) sin16s::x3_6
(word) sin16s::x3_6#0 4.0
(word) sin16s::x4
(word) sin16s::x4#0 4.0
(word) sin16s::x5
(word) sin16s::x5#0 4.0
(word) sin16s::x5_128
(word) sin16s::x5_128#0 4.0
(void()) sin16s_gen2((signed word*) sin16s_gen2::sintab , (word) sin16s_gen2::wavelength , (signed word) sin16s_gen2::min , (signed word) sin16s_gen2::max)
(signed dword~) sin16s_gen2::$6 22.0
(word~) sin16s_gen2::$9 11.0
(signed word) sin16s_gen2::ampl
(word) sin16s_gen2::i
(word) sin16s_gen2::i#1 16.5
(word) sin16s_gen2::i#6 1.8333333333333333
(signed word) sin16s_gen2::max
(signed word) sin16s_gen2::min
(signed word) sin16s_gen2::offs
(signed word*) sin16s_gen2::sintab
(signed word*) sin16s_gen2::sintab#0 5.5
(signed word*) sin16s_gen2::sintab#10 3.3000000000000003
(dword) sin16s_gen2::step
(dword) sin16s_gen2::step#0 0.8666666666666666
(word) sin16s_gen2::wavelength
(dword) sin16s_gen2::x
(dword) sin16s_gen2::x#1 7.333333333333333
(dword) sin16s_gen2::x#6 3.0

Not consolidating phi with different size mul16u::mb#0 mul16u::b#0
Not consolidating phi with different size mul16u::mb#0 mul16u::b#1
Initial phi equivalence classes
[ main::idx_x#11 main::idx_x#10 main::idx_x#1 ]
[ main::r#10 main::r#1 ]
[ main::idx_y#3 main::idx_y#10 main::idx_y#1 ]
[ main::r_add#10 main::r_add#12 main::r_add#1 ]
[ mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 ]
[ mul16s::b#3 mul16s::b#1 mul16s::b#2 ]
[ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 ]
[ mul16u::b#0 ]
[ mul16u::b#1 ]
[ mul16u::a#3 mul16u::a#6 mul16u::a#1 mul16u::a#2 mul16u::a#0 ]
[ mul16u::res#2 mul16u::res#6 mul16u::res#1 ]
[ mul16u::mb#2 mul16u::mb#0 mul16u::mb#1 ]
[ memset::num#2 ]
[ memset::str#3 ]
[ memset::c#4 ]
[ memset::dst#2 memset::dst#4 memset::dst#1 ]
[ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ]
[ bitmap_init::x#2 bitmap_init::x#1 ]
[ bitmap_init::y#2 bitmap_init::y#1 ]
[ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ]
[ sin16s_gen2::i#6 sin16s_gen2::i#1 ]
[ sin16s_gen2::x#6 sin16s_gen2::x#1 ]
[ sin16s_gen2::sintab#10 sin16s_gen2::sintab#0 ]
[ sin16s::isUpper#2 ]
[ sin16s::x#6 sin16s::x#4 sin16s::x#0 sin16s::x#1 sin16s::x#2 ]
[ sin16s::return#1 sin16s::return#5 sin16s::sinx#1 ]
[ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 ]
[ mulu16_sel::v2#5 mulu16_sel::v2#3 mulu16_sel::v2#4 mulu16_sel::v2#0 mulu16_sel::v2#1 ]
[ mulu16_sel::select#5 ]
[ divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 ]
[ divr16u::dividend#3 divr16u::dividend#5 divr16u::dividend#0 ]
[ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 ]
[ divr16u::i#2 divr16u::i#1 ]
[ frame_cnt#2 frame_cnt#0 frame_cnt#1 ]
Added variable main::$32 to zero page equivalence class [ main::$32 ]
Added variable main::$34 to zero page equivalence class [ main::$34 ]
Added variable main::cos_x#0 to zero page equivalence class [ main::cos_x#0 ]
Added variable mul16s::return#3 to zero page equivalence class [ mul16s::return#3 ]
Added variable main::xpos#0 to zero page equivalence class [ main::xpos#0 ]
Added variable main::$10 to zero page equivalence class [ main::$10 ]
Added variable main::$11 to zero page equivalence class [ main::$11 ]
Added variable main::x#0 to zero page equivalence class [ main::x#0 ]
Added variable main::$33 to zero page equivalence class [ main::$33 ]
Added variable main::$35 to zero page equivalence class [ main::$35 ]
Added variable main::sin_y#0 to zero page equivalence class [ main::sin_y#0 ]
Added variable mul16s::return#4 to zero page equivalence class [ mul16s::return#4 ]
Added variable main::ypos#0 to zero page equivalence class [ main::ypos#0 ]
Added variable main::$16 to zero page equivalence class [ main::$16 ]
Added variable main::$17 to zero page equivalence class [ main::$17 ]
Added variable main::y#0 to zero page equivalence class [ main::y#0 ]
Added variable bitmap_plot::y#0 to zero page equivalence class [ bitmap_plot::y#0 ]
Added variable bitmap_plot::x#0 to zero page equivalence class [ bitmap_plot::x#0 ]
Added variable bitmap_plot::plotter#0 to zero page equivalence class [ bitmap_plot::plotter#0 ]
Added variable bitmap_plot::$1 to zero page equivalence class [ bitmap_plot::$1 ]
Added variable bitmap_plot::plotter#1 to zero page equivalence class [ bitmap_plot::plotter#1 ]
Added variable bitmap_plot::$2 to zero page equivalence class [ bitmap_plot::$2 ]
Added variable mul16u::return#2 to zero page equivalence class [ mul16u::return#2 ]
Added variable mul16s::$9 to zero page equivalence class [ mul16s::$9 ]
Added variable mul16s::$16 to zero page equivalence class [ mul16s::$16 ]
Added variable mul16s::$13 to zero page equivalence class [ mul16s::$13 ]
Added variable mul16s::$17 to zero page equivalence class [ mul16s::$17 ]
Added variable mul16s::return#0 to zero page equivalence class [ mul16s::return#0 ]
Added variable mul16u::$1 to zero page equivalence class [ mul16u::$1 ]
Added variable memset::end#0 to zero page equivalence class [ memset::end#0 ]
Added variable bitmap_init::$7 to zero page equivalence class [ bitmap_init::$7 ]
Added variable bitmap_init::$4 to zero page equivalence class [ bitmap_init::$4 ]
Added variable bitmap_init::$5 to zero page equivalence class [ bitmap_init::$5 ]
Added variable bitmap_init::$6 to zero page equivalence class [ bitmap_init::$6 ]
Added variable div32u16u::return#2 to zero page equivalence class [ div32u16u::return#2 ]
Added variable sin16s_gen2::step#0 to zero page equivalence class [ sin16s_gen2::step#0 ]
Added variable sin16s::return#0 to zero page equivalence class [ sin16s::return#0 ]
Added variable mul16s::return#2 to zero page equivalence class [ mul16s::return#2 ]
Added variable sin16s_gen2::$6 to zero page equivalence class [ sin16s_gen2::$6 ]
Added variable sin16s_gen2::$9 to zero page equivalence class [ sin16s_gen2::$9 ]
Added variable sin16s::$4 to zero page equivalence class [ sin16s::$4 ]
Added variable sin16s::x1#0 to zero page equivalence class [ sin16s::x1#0 ]
Added variable mulu16_sel::return#0 to zero page equivalence class [ mulu16_sel::return#0 ]
Added variable sin16s::x2#0 to zero page equivalence class [ sin16s::x2#0 ]
Added variable mulu16_sel::return#1 to zero page equivalence class [ mulu16_sel::return#1 ]
Added variable sin16s::x3#0 to zero page equivalence class [ sin16s::x3#0 ]
Added variable mulu16_sel::return#2 to zero page equivalence class [ mulu16_sel::return#2 ]
Added variable sin16s::x3_6#0 to zero page equivalence class [ sin16s::x3_6#0 ]
Added variable sin16s::usinx#0 to zero page equivalence class [ sin16s::usinx#0 ]
Added variable mulu16_sel::return#10 to zero page equivalence class [ mulu16_sel::return#10 ]
Added variable sin16s::x4#0 to zero page equivalence class [ sin16s::x4#0 ]
Added variable mulu16_sel::return#11 to zero page equivalence class [ mulu16_sel::return#11 ]
Added variable sin16s::x5#0 to zero page equivalence class [ sin16s::x5#0 ]
Added variable sin16s::x5_128#0 to zero page equivalence class [ sin16s::x5_128#0 ]
Added variable sin16s::usinx#1 to zero page equivalence class [ sin16s::usinx#1 ]
Added variable mul16u::return#3 to zero page equivalence class [ mul16u::return#3 ]
Added variable mulu16_sel::$0 to zero page equivalence class [ mulu16_sel::$0 ]
Added variable mulu16_sel::$1 to zero page equivalence class [ mulu16_sel::$1 ]
Added variable mulu16_sel::return#12 to zero page equivalence class [ mulu16_sel::return#12 ]
Added variable divr16u::return#2 to zero page equivalence class [ divr16u::return#2 ]
Added variable div32u16u::quotient_hi#0 to zero page equivalence class [ div32u16u::quotient_hi#0 ]
Added variable divr16u::return#3 to zero page equivalence class [ divr16u::return#3 ]
Added variable div32u16u::quotient_lo#0 to zero page equivalence class [ div32u16u::quotient_lo#0 ]
Added variable div32u16u::return#0 to zero page equivalence class [ div32u16u::return#0 ]
Added variable divr16u::$1 to zero page equivalence class [ divr16u::$1 ]
Added variable divr16u::$2 to zero page equivalence class [ divr16u::$2 ]
Added variable rem16u#1 to zero page equivalence class [ rem16u#1 ]
Complete equivalence classes
[ main::idx_x#11 main::idx_x#10 main::idx_x#1 ]
[ main::r#10 main::r#1 ]
[ main::idx_y#3 main::idx_y#10 main::idx_y#1 ]
[ main::r_add#10 main::r_add#12 main::r_add#1 ]
[ mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 ]
[ mul16s::b#3 mul16s::b#1 mul16s::b#2 ]
[ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 ]
[ mul16u::b#0 ]
[ mul16u::b#1 ]
[ mul16u::a#3 mul16u::a#6 mul16u::a#1 mul16u::a#2 mul16u::a#0 ]
[ mul16u::res#2 mul16u::res#6 mul16u::res#1 ]
[ mul16u::mb#2 mul16u::mb#0 mul16u::mb#1 ]
[ memset::num#2 ]
[ memset::str#3 ]
[ memset::c#4 ]
[ memset::dst#2 memset::dst#4 memset::dst#1 ]
[ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ]
[ bitmap_init::x#2 bitmap_init::x#1 ]
[ bitmap_init::y#2 bitmap_init::y#1 ]
[ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ]
[ sin16s_gen2::i#6 sin16s_gen2::i#1 ]
[ sin16s_gen2::x#6 sin16s_gen2::x#1 ]
[ sin16s_gen2::sintab#10 sin16s_gen2::sintab#0 ]
[ sin16s::isUpper#2 ]
[ sin16s::x#6 sin16s::x#4 sin16s::x#0 sin16s::x#1 sin16s::x#2 ]
[ sin16s::return#1 sin16s::return#5 sin16s::sinx#1 ]
[ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 ]
[ mulu16_sel::v2#5 mulu16_sel::v2#3 mulu16_sel::v2#4 mulu16_sel::v2#0 mulu16_sel::v2#1 ]
[ mulu16_sel::select#5 ]
[ divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 ]
[ divr16u::dividend#3 divr16u::dividend#5 divr16u::dividend#0 ]
[ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 ]
[ divr16u::i#2 divr16u::i#1 ]
[ frame_cnt#2 frame_cnt#0 frame_cnt#1 ]
[ main::$32 ]
[ main::$34 ]
[ main::cos_x#0 ]
[ mul16s::return#3 ]
[ main::xpos#0 ]
[ main::$10 ]
[ main::$11 ]
[ main::x#0 ]
[ main::$33 ]
[ main::$35 ]
[ main::sin_y#0 ]
[ mul16s::return#4 ]
[ main::ypos#0 ]
[ main::$16 ]
[ main::$17 ]
[ main::y#0 ]
[ bitmap_plot::y#0 ]
[ bitmap_plot::x#0 ]
[ bitmap_plot::plotter#0 ]
[ bitmap_plot::$1 ]
[ bitmap_plot::plotter#1 ]
[ bitmap_plot::$2 ]
[ mul16u::return#2 ]
[ mul16s::$9 ]
[ mul16s::$16 ]
[ mul16s::$13 ]
[ mul16s::$17 ]
[ mul16s::return#0 ]
[ mul16u::$1 ]
[ memset::end#0 ]
[ bitmap_init::$7 ]
[ bitmap_init::$4 ]
[ bitmap_init::$5 ]
[ bitmap_init::$6 ]
[ div32u16u::return#2 ]
[ sin16s_gen2::step#0 ]
[ sin16s::return#0 ]
[ mul16s::return#2 ]
[ sin16s_gen2::$6 ]
[ sin16s_gen2::$9 ]
[ sin16s::$4 ]
[ sin16s::x1#0 ]
[ mulu16_sel::return#0 ]
[ sin16s::x2#0 ]
[ mulu16_sel::return#1 ]
[ sin16s::x3#0 ]
[ mulu16_sel::return#2 ]
[ sin16s::x3_6#0 ]
[ sin16s::usinx#0 ]
[ mulu16_sel::return#10 ]
[ sin16s::x4#0 ]
[ mulu16_sel::return#11 ]
[ sin16s::x5#0 ]
[ sin16s::x5_128#0 ]
[ sin16s::usinx#1 ]
[ mul16u::return#3 ]
[ mulu16_sel::$0 ]
[ mulu16_sel::$1 ]
[ mulu16_sel::return#12 ]
[ divr16u::return#2 ]
[ div32u16u::quotient_hi#0 ]
[ divr16u::return#3 ]
[ div32u16u::quotient_lo#0 ]
[ div32u16u::return#0 ]
[ divr16u::$1 ]
[ divr16u::$2 ]
[ rem16u#1 ]
Allocated zp ZP_WORD:2 [ main::idx_x#11 main::idx_x#10 main::idx_x#1 ]
Allocated zp ZP_WORD:4 [ main::r#10 main::r#1 ]
Allocated zp ZP_WORD:6 [ main::idx_y#3 main::idx_y#10 main::idx_y#1 ]
Allocated zp ZP_BYTE:8 [ main::r_add#10 main::r_add#12 main::r_add#1 ]
Allocated zp ZP_WORD:9 [ mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 ]
Allocated zp ZP_WORD:11 [ mul16s::b#3 mul16s::b#1 mul16s::b#2 ]
Allocated zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 ]
Allocated zp ZP_WORD:17 [ mul16u::b#0 ]
Allocated zp ZP_WORD:19 [ mul16u::b#1 ]
Allocated zp ZP_WORD:21 [ mul16u::a#3 mul16u::a#6 mul16u::a#1 mul16u::a#2 mul16u::a#0 ]
Allocated zp ZP_DWORD:23 [ mul16u::res#2 mul16u::res#6 mul16u::res#1 ]
Allocated zp ZP_DWORD:27 [ mul16u::mb#2 mul16u::mb#0 mul16u::mb#1 ]
Allocated zp ZP_WORD:31 [ memset::num#2 ]
Allocated zp ZP_WORD:33 [ memset::str#3 ]
Allocated zp ZP_BYTE:35 [ memset::c#4 ]
Allocated zp ZP_WORD:36 [ memset::dst#2 memset::dst#4 memset::dst#1 ]
Allocated zp ZP_BYTE:38 [ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ]
Allocated zp ZP_BYTE:39 [ bitmap_init::x#2 bitmap_init::x#1 ]
Allocated zp ZP_BYTE:40 [ bitmap_init::y#2 bitmap_init::y#1 ]
Allocated zp ZP_WORD:41 [ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ]
Allocated zp ZP_WORD:43 [ sin16s_gen2::i#6 sin16s_gen2::i#1 ]
Allocated zp ZP_DWORD:45 [ sin16s_gen2::x#6 sin16s_gen2::x#1 ]
Allocated zp ZP_WORD:49 [ sin16s_gen2::sintab#10 sin16s_gen2::sintab#0 ]
Allocated zp ZP_BYTE:51 [ sin16s::isUpper#2 ]
Allocated zp ZP_DWORD:52 [ sin16s::x#6 sin16s::x#4 sin16s::x#0 sin16s::x#1 sin16s::x#2 ]
Allocated zp ZP_WORD:56 [ sin16s::return#1 sin16s::return#5 sin16s::sinx#1 ]
Allocated zp ZP_WORD:58 [ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 ]
Allocated zp ZP_WORD:60 [ mulu16_sel::v2#5 mulu16_sel::v2#3 mulu16_sel::v2#4 mulu16_sel::v2#0 mulu16_sel::v2#1 ]
Allocated zp ZP_BYTE:62 [ mulu16_sel::select#5 ]
Allocated zp ZP_WORD:63 [ divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 ]
Allocated zp ZP_WORD:65 [ divr16u::dividend#3 divr16u::dividend#5 divr16u::dividend#0 ]
Allocated zp ZP_WORD:67 [ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 ]
Allocated zp ZP_BYTE:69 [ divr16u::i#2 divr16u::i#1 ]
Allocated zp ZP_BYTE:70 [ frame_cnt#2 frame_cnt#0 frame_cnt#1 ]
Allocated zp ZP_WORD:71 [ main::$32 ]
Allocated zp ZP_WORD:73 [ main::$34 ]
Allocated zp ZP_WORD:75 [ main::cos_x#0 ]
Allocated zp ZP_DWORD:77 [ mul16s::return#3 ]
Allocated zp ZP_DWORD:81 [ main::xpos#0 ]
Allocated zp ZP_WORD:85 [ main::$10 ]
Allocated zp ZP_WORD:87 [ main::$11 ]
Allocated zp ZP_WORD:89 [ main::x#0 ]
Allocated zp ZP_WORD:91 [ main::$33 ]
Allocated zp ZP_WORD:93 [ main::$35 ]
Allocated zp ZP_WORD:95 [ main::sin_y#0 ]
Allocated zp ZP_DWORD:97 [ mul16s::return#4 ]
Allocated zp ZP_DWORD:101 [ main::ypos#0 ]
Allocated zp ZP_WORD:105 [ main::$16 ]
Allocated zp ZP_WORD:107 [ main::$17 ]
Allocated zp ZP_WORD:109 [ main::y#0 ]
Allocated zp ZP_BYTE:111 [ bitmap_plot::y#0 ]
Allocated zp ZP_WORD:112 [ bitmap_plot::x#0 ]
Allocated zp ZP_WORD:114 [ bitmap_plot::plotter#0 ]
Allocated zp ZP_WORD:116 [ bitmap_plot::$1 ]
Allocated zp ZP_WORD:118 [ bitmap_plot::plotter#1 ]
Allocated zp ZP_BYTE:120 [ bitmap_plot::$2 ]
Allocated zp ZP_DWORD:121 [ mul16u::return#2 ]
Allocated zp ZP_WORD:125 [ mul16s::$9 ]
Allocated zp ZP_WORD:127 [ mul16s::$16 ]
Allocated zp ZP_WORD:129 [ mul16s::$13 ]
Allocated zp ZP_WORD:131 [ mul16s::$17 ]
Allocated zp ZP_DWORD:133 [ mul16s::return#0 ]
Allocated zp ZP_BYTE:137 [ mul16u::$1 ]
Allocated zp ZP_WORD:138 [ memset::end#0 ]
Allocated zp ZP_BYTE:140 [ bitmap_init::$7 ]
Allocated zp ZP_BYTE:141 [ bitmap_init::$4 ]
Allocated zp ZP_BYTE:142 [ bitmap_init::$5 ]
Allocated zp ZP_BYTE:143 [ bitmap_init::$6 ]
Allocated zp ZP_DWORD:144 [ div32u16u::return#2 ]
Allocated zp ZP_DWORD:148 [ sin16s_gen2::step#0 ]
Allocated zp ZP_WORD:152 [ sin16s::return#0 ]
Allocated zp ZP_DWORD:154 [ mul16s::return#2 ]
Allocated zp ZP_DWORD:158 [ sin16s_gen2::$6 ]
Allocated zp ZP_WORD:162 [ sin16s_gen2::$9 ]
Allocated zp ZP_DWORD:164 [ sin16s::$4 ]
Allocated zp ZP_WORD:168 [ sin16s::x1#0 ]
Allocated zp ZP_WORD:170 [ mulu16_sel::return#0 ]
Allocated zp ZP_WORD:172 [ sin16s::x2#0 ]
Allocated zp ZP_WORD:174 [ mulu16_sel::return#1 ]
Allocated zp ZP_WORD:176 [ sin16s::x3#0 ]
Allocated zp ZP_WORD:178 [ mulu16_sel::return#2 ]
Allocated zp ZP_WORD:180 [ sin16s::x3_6#0 ]
Allocated zp ZP_WORD:182 [ sin16s::usinx#0 ]
Allocated zp ZP_WORD:184 [ mulu16_sel::return#10 ]
Allocated zp ZP_WORD:186 [ sin16s::x4#0 ]
Allocated zp ZP_WORD:188 [ mulu16_sel::return#11 ]
Allocated zp ZP_WORD:190 [ sin16s::x5#0 ]
Allocated zp ZP_WORD:192 [ sin16s::x5_128#0 ]
Allocated zp ZP_WORD:194 [ sin16s::usinx#1 ]
Allocated zp ZP_DWORD:196 [ mul16u::return#3 ]
Allocated zp ZP_DWORD:200 [ mulu16_sel::$0 ]
Allocated zp ZP_DWORD:204 [ mulu16_sel::$1 ]
Allocated zp ZP_WORD:208 [ mulu16_sel::return#12 ]
Allocated zp ZP_WORD:210 [ divr16u::return#2 ]
Allocated zp ZP_WORD:212 [ div32u16u::quotient_hi#0 ]
Allocated zp ZP_WORD:214 [ divr16u::return#3 ]
Allocated zp ZP_WORD:216 [ div32u16u::quotient_lo#0 ]
Allocated zp ZP_DWORD:218 [ div32u16u::return#0 ]
Allocated zp ZP_BYTE:222 [ divr16u::$1 ]
Allocated zp ZP_BYTE:223 [ divr16u::$2 ]
Allocated zp ZP_WORD:224 [ rem16u#1 ]

INITIAL ASM
Target platform is c64basic
  // File Comments
// Tests the simple bitmap plotter - and counts plots per frame in an IRQ
// Plots a spiral
  // Upstart
.pc = $801 "Basic"
:BasicUpstart(bbegin)
.pc = $80d "Program"
  // Global Constants & labels
  .const SIZEOF_SIGNED_WORD = 2
  // Processor port data direction register
  .label PROCPORT_DDR = 0
  // Mask for PROCESSOR_PORT_DDR which allows only memory configuration to be written
  .const PROCPORT_DDR_MEMORY_MASK = 7
  // Processor Port Register controlling RAM/ROM configuration and the datasette
  .label PROCPORT = 1
  // RAM in $A000, $E000 I/O in $D000
  .const PROCPORT_RAM_IO = 5
  .label RASTER = $d012
  .label BORDERCOL = $d020
  .label BGCOL = $d021
  .label VIC_CONTROL = $d011
  .label D011 = $d011
  .const VIC_BMM = $20
  .const VIC_DEN = $10
  .const VIC_RSEL = 8
  .label D018 = $d018
  // VIC II IRQ Status Register
  .label IRQ_STATUS = $d019
  // VIC II IRQ Enable Register
  .label IRQ_ENABLE = $d01a
  // Bits for the IRQ Status/Enable Registers
  .const IRQ_RASTER = 1
  // CIA#1 Interrupt Status & Control Register
  .label CIA1_INTERRUPT = $dc0d
  // Value that disables all CIA interrupts when stored to the CIA Interrupt registers
  .const CIA_INTERRUPT_CLEAR = $7f
  // The vector used when the HARDWARE serves IRQ interrupts
  .label HARDWARE_IRQ = $fffe
  // The colors of the C64
  .const BLACK = 0
  .const WHITE = 1
  // PI*2 in u[4.28] format
  .const PI2_u4f28 = $6487ed51
  // PI in u[4.28] format
  .const PI_u4f28 = $3243f6a9
  // PI/2 in u[4.28] format
  .const PI_HALF_u4f28 = $1921fb54
  .label BITMAP = $2000
  .label SCREEN = $400
  .label rem16u = $e0
  .label frame_cnt = $46
  // @begin
bbegin:
  jmp b1
  // @1
b1:
  // [1] (byte) frame_cnt#0 ← (byte) 1 -- vbuz1=vbuc1 
  // Counts frames - updated by the IRQ
  lda #1
  sta.z frame_cnt
  // [2] phi from @1 to @2 [phi:@1->@2]
b2_from_b1:
  jmp b2
  // @2
b2:
  // [3] call main 
  // [5] phi from @2 to main [phi:@2->main]
main_from_b2:
  jsr main
  // [4] phi from @2 to @end [phi:@2->@end]
bend_from_b2:
  jmp bend
  // @end
bend:
  // main
main: {
    .const toD0181_return = (>(SCREEN&$3fff)*4)|(>BITMAP)/4&$f
    .label _10 = $55
    .label _11 = $57
    .label _16 = $69
    .label _17 = $6b
    .label _32 = $47
    .label _33 = $5b
    .label cos_x = $4b
    .label xpos = $51
    .label x = $59
    .label sin_y = $5f
    .label ypos = $65
    .label y = $6d
    .label idx_x = 2
    .label idx_y = 6
    .label r = 4
    .label r_add = 8
    .label _34 = $49
    .label _35 = $5d
    // [6] call sin16s_gen2 
    // [137] phi from main to sin16s_gen2 [phi:main->sin16s_gen2]
  sin16s_gen2_from_main:
    jsr sin16s_gen2
    // [7] phi from main to main::@9 [phi:main->main::@9]
  b9_from_main:
    jmp b9
    // main::@9
  b9:
    // [8] call bitmap_init 
    // [115] phi from main::@9 to bitmap_init [phi:main::@9->bitmap_init]
  bitmap_init_from_b9:
    jsr bitmap_init
    // [9] phi from main::@9 to main::@10 [phi:main::@9->main::@10]
  b10_from_b9:
    jmp b10
    // main::@10
  b10:
    // [10] call bitmap_clear 
    // [101] phi from main::@10 to bitmap_clear [phi:main::@10->bitmap_clear]
  bitmap_clear_from_b10:
    jsr bitmap_clear
    jmp b11
    // main::@11
  b11:
    // [11] *((const byte*) D011#0) ← (const byte) VIC_BMM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte) 3 -- _deref_pbuc1=vbuc2 
    lda #VIC_BMM|VIC_DEN|VIC_RSEL|3
    sta D011
    // [12] phi from main::@11 to main::toD0181 [phi:main::@11->main::toD0181]
  toD0181_from_b11:
    jmp toD0181
    // main::toD0181
  toD0181:
    jmp b8
    // main::@8
  b8:
    // [13] *((const byte*) D018#0) ← (const byte) main::toD0181_return#0 -- _deref_pbuc1=vbuc2 
    lda #toD0181_return
    sta D018
    // [14] call init_irq 
    jsr init_irq
    // [15] phi from main::@8 to main::@1 [phi:main::@8->main::@1]
  b1_from_b8:
    // [15] phi (byte) main::r_add#10 = (byte) $20 [phi:main::@8->main::@1#0] -- vbuz1=vbuc1 
    lda #$20
    sta.z r_add
    // [15] phi (word) main::idx_y#3 = (byte) $80 [phi:main::@8->main::@1#1] -- vwuz1=vbuc1 
    lda #<$80
    sta.z idx_y
    lda #>$80
    sta.z idx_y+1
    // [15] phi (signed word) main::r#10 = (signed byte) 0 [phi:main::@8->main::@1#2] -- vwsz1=vbsc1 
    lda #<0
    sta.z r
    lda #>0
    sta.z r+1
    // [15] phi (word) main::idx_x#11 = (byte) 0 [phi:main::@8->main::@1#3] -- vwuz1=vbuc1 
    lda #<0
    sta.z idx_x
    lda #>0
    sta.z idx_x+1
    jmp b1
    // main::@1
  b1:
    jmp b2
    // main::@2
  b2:
    // [16] (word~) main::$32 ← (word) main::idx_x#11 << (byte) 1 -- vwuz1=vwuz2_rol_1 
    lda.z idx_x
    asl
    sta.z _32
    lda.z idx_x+1
    rol
    sta.z _32+1
    // [17] (signed word*~) main::$34 ← (const signed word[$200]) SINUS#0 + (word~) main::$32 -- pwsz1=pwsc1_plus_vwuz2 
    lda.z _32
    clc
    adc #<SINUS
    sta.z _34
    lda.z _32+1
    adc #>SINUS
    sta.z _34+1
    // [18] (signed word) main::cos_x#0 ← *((signed word*~) main::$34) -- vwsz1=_deref_pwsz2 
    ldy #0
    lda (_34),y
    sta.z cos_x
    iny
    lda (_34),y
    sta.z cos_x+1
    // [19] (signed word) mul16s::a#1 ← (signed word) main::r#10 -- vwsz1=vwsz2 
    lda.z r
    sta.z mul16s.a
    lda.z r+1
    sta.z mul16s.a+1
    // [20] (signed word) mul16s::b#1 ← (signed word) main::cos_x#0 -- vwsz1=vwsz2 
    lda.z cos_x
    sta.z mul16s.b
    lda.z cos_x+1
    sta.z mul16s.b+1
    // [21] call mul16s 
    // [63] phi from main::@2 to mul16s [phi:main::@2->mul16s]
  mul16s_from_b2:
    // [63] phi (signed word) mul16s::b#3 = (signed word) mul16s::b#1 [phi:main::@2->mul16s#0] -- register_copy 
    // [63] phi (signed word) mul16s::a#3 = (signed word) mul16s::a#1 [phi:main::@2->mul16s#1] -- register_copy 
    jsr mul16s
    // [22] (signed dword) mul16s::return#3 ← (signed dword) mul16s::return#0 -- vdsz1=vdsz2 
    lda.z mul16s.return
    sta.z mul16s.return_3
    lda.z mul16s.return+1
    sta.z mul16s.return_3+1
    lda.z mul16s.return+2
    sta.z mul16s.return_3+2
    lda.z mul16s.return+3
    sta.z mul16s.return_3+3
    jmp b12
    // main::@12
  b12:
    // [23] (signed dword) main::xpos#0 ← (signed dword) mul16s::return#3 -- vdsz1=vdsz2 
    lda.z mul16s.return_3
    sta.z xpos
    lda.z mul16s.return_3+1
    sta.z xpos+1
    lda.z mul16s.return_3+2
    sta.z xpos+2
    lda.z mul16s.return_3+3
    sta.z xpos+3
    // [24] (word~) main::$10 ← > (signed dword) main::xpos#0 -- vwuz1=_hi_vdsz2 
    lda.z xpos+2
    sta.z _10
    lda.z xpos+3
    sta.z _10+1
    // [25] (signed word~) main::$11 ← (signed word)(word~) main::$10 >> (signed byte) 2 -- vwsz1=vwsz2_ror_2 
    lda.z _10+1
    cmp #$80
    ror
    sta.z _11+1
    lda.z _10
    ror
    sta.z _11
    lda.z _11+1
    cmp #$80
    ror.z _11+1
    ror.z _11
    // [26] (signed word) main::x#0 ← (signed word) $a0 + (signed word~) main::$11 -- vwsz1=vwsc1_plus_vwsz2 
    lda.z _11
    clc
    adc #<$a0
    sta.z x
    lda.z _11+1
    adc #>$a0
    sta.z x+1
    // [27] (word~) main::$33 ← (word) main::idx_y#3 << (byte) 1 -- vwuz1=vwuz2_rol_1 
    lda.z idx_y
    asl
    sta.z _33
    lda.z idx_y+1
    rol
    sta.z _33+1
    // [28] (signed word*~) main::$35 ← (const signed word[$200]) SINUS#0 + (word~) main::$33 -- pwsz1=pwsc1_plus_vwuz2 
    lda.z _33
    clc
    adc #<SINUS
    sta.z _35
    lda.z _33+1
    adc #>SINUS
    sta.z _35+1
    // [29] (signed word) main::sin_y#0 ← *((signed word*~) main::$35) -- vwsz1=_deref_pwsz2 
    ldy #0
    lda (_35),y
    sta.z sin_y
    iny
    lda (_35),y
    sta.z sin_y+1
    // [30] (signed word) mul16s::a#2 ← (signed word) main::r#10 -- vwsz1=vwsz2 
    lda.z r
    sta.z mul16s.a
    lda.z r+1
    sta.z mul16s.a+1
    // [31] (signed word) mul16s::b#2 ← (signed word) main::sin_y#0 -- vwsz1=vwsz2 
    lda.z sin_y
    sta.z mul16s.b
    lda.z sin_y+1
    sta.z mul16s.b+1
    // [32] call mul16s 
    // [63] phi from main::@12 to mul16s [phi:main::@12->mul16s]
  mul16s_from_b12:
    // [63] phi (signed word) mul16s::b#3 = (signed word) mul16s::b#2 [phi:main::@12->mul16s#0] -- register_copy 
    // [63] phi (signed word) mul16s::a#3 = (signed word) mul16s::a#2 [phi:main::@12->mul16s#1] -- register_copy 
    jsr mul16s
    // [33] (signed dword) mul16s::return#4 ← (signed dword) mul16s::return#0 -- vdsz1=vdsz2 
    lda.z mul16s.return
    sta.z mul16s.return_4
    lda.z mul16s.return+1
    sta.z mul16s.return_4+1
    lda.z mul16s.return+2
    sta.z mul16s.return_4+2
    lda.z mul16s.return+3
    sta.z mul16s.return_4+3
    jmp b13
    // main::@13
  b13:
    // [34] (signed dword) main::ypos#0 ← (signed dword) mul16s::return#4 -- vdsz1=vdsz2 
    lda.z mul16s.return_4
    sta.z ypos
    lda.z mul16s.return_4+1
    sta.z ypos+1
    lda.z mul16s.return_4+2
    sta.z ypos+2
    lda.z mul16s.return_4+3
    sta.z ypos+3
    // [35] (word~) main::$16 ← > (signed dword) main::ypos#0 -- vwuz1=_hi_vdsz2 
    lda.z ypos+2
    sta.z _16
    lda.z ypos+3
    sta.z _16+1
    // [36] (signed word~) main::$17 ← (signed word)(word~) main::$16 >> (signed byte) 2 -- vwsz1=vwsz2_ror_2 
    lda.z _16+1
    cmp #$80
    ror
    sta.z _17+1
    lda.z _16
    ror
    sta.z _17
    lda.z _17+1
    cmp #$80
    ror.z _17+1
    ror.z _17
    // [37] (signed word) main::y#0 ← (signed byte) $64 + (signed word~) main::$17 -- vwsz1=vbsc1_plus_vwsz2 
    lda.z _17
    clc
    adc #<$64
    sta.z y
    lda.z _17+1
    adc #>$64
    sta.z y+1
    // [38] (byte) bitmap_plot::y#0 ← (byte)(word)(signed word) main::y#0 -- vbuz1=_byte_vwuz2 
    lda.z y
    sta.z bitmap_plot.y
    // [39] (word) bitmap_plot::x#0 ← (word)(signed word) main::x#0 -- vwuz1=vwuz2 
    lda.z x
    sta.z bitmap_plot.x
    lda.z x+1
    sta.z bitmap_plot.x+1
    // [40] call bitmap_plot 
    jsr bitmap_plot
    jmp b14
    // main::@14
  b14:
    // [41] *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0) ← ++ *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0) -- pbuc1_derefidx_vbuz1=_inc_pbuc1_derefidx_vbuz1 
    ldx.z frame_cnt
    inc plots_per_frame,x
    // [42] (word) main::idx_x#1 ← (word) main::idx_x#11 + (byte) main::r_add#10 -- vwuz1=vwuz1_plus_vbuz2 
    lda.z r_add
    clc
    adc.z idx_x
    sta.z idx_x
    bcc !+
    inc.z idx_x+1
  !:
    // [43] if((word) main::idx_x#1<(word) $200) goto main::@16 -- vwuz1_lt_vwuc1_then_la1 
    lda.z idx_x+1
    cmp #>$200
    bcc b16_from_b14
    bne !+
    lda.z idx_x
    cmp #<$200
    bcc b16_from_b14
  !:
    // [45] phi from main::@14 to main::@3 [phi:main::@14->main::@3]
  b3_from_b14:
    // [45] phi (word) main::idx_x#10 = (byte) 0 [phi:main::@14->main::@3#0] -- vwuz1=vbuc1 
    lda #<0
    sta.z idx_x
    lda #>0
    sta.z idx_x+1
    jmp b3
    // [44] phi from main::@14 to main::@16 [phi:main::@14->main::@16]
  b16_from_b14:
    jmp b16
    // main::@16
  b16:
    // [45] phi from main::@16 to main::@3 [phi:main::@16->main::@3]
  b3_from_b16:
    // [45] phi (word) main::idx_x#10 = (word) main::idx_x#1 [phi:main::@16->main::@3#0] -- register_copy 
    jmp b3
    // main::@3
  b3:
    // [46] (word) main::idx_y#1 ← (word) main::idx_y#3 + (byte) main::r_add#10 -- vwuz1=vwuz1_plus_vbuz2 
    lda.z r_add
    clc
    adc.z idx_y
    sta.z idx_y
    bcc !+
    inc.z idx_y+1
  !:
    // [47] if((word) main::idx_y#1<(word) $200) goto main::@17 -- vwuz1_lt_vwuc1_then_la1 
    lda.z idx_y+1
    cmp #>$200
    bcc b17_from_b3
    bne !+
    lda.z idx_y
    cmp #<$200
    bcc b17_from_b3
  !:
    // [49] phi from main::@3 to main::@4 [phi:main::@3->main::@4]
  b4_from_b3:
    // [49] phi (word) main::idx_y#10 = (byte) 0 [phi:main::@3->main::@4#0] -- vwuz1=vbuc1 
    lda #<0
    sta.z idx_y
    lda #>0
    sta.z idx_y+1
    jmp b4
    // [48] phi from main::@3 to main::@17 [phi:main::@3->main::@17]
  b17_from_b3:
    jmp b17
    // main::@17
  b17:
    // [49] phi from main::@17 to main::@4 [phi:main::@17->main::@4]
  b4_from_b17:
    // [49] phi (word) main::idx_y#10 = (word) main::idx_y#1 [phi:main::@17->main::@4#0] -- register_copy 
    jmp b4
    // main::@4
  b4:
    // [50] (signed word) main::r#1 ← (signed word) main::r#10 + (byte) main::r_add#10 -- vwsz1=vwsz1_plus_vbuz2 
    clc
    lda.z r
    adc.z r_add
    sta.z r
    lda.z r+1
    adc #0
    sta.z r+1
    // [51] if((word) main::idx_x#10!=(byte) 0) goto main::@5 -- vwuz1_neq_0_then_la1 
    lda.z idx_x
    bne b5_from_b4
    lda.z idx_x+1
    bne b5_from_b4
    jmp b15
    // main::@15
  b15:
    // [52] if((byte) main::r_add#10==(byte) 1) goto main::@5 -- vbuz1_eq_vbuc1_then_la1 
    lda #1
    cmp.z r_add
    beq b5_from_b15
    jmp b6
    // main::@6
  b6:
    // [53] (byte) main::r_add#1 ← (byte) main::r_add#10 >> (byte) 1 -- vbuz1=vbuz1_ror_1 
    lsr.z r_add
    // [54] phi from main::@4 main::@6 to main::@5 [phi:main::@4/main::@6->main::@5]
  b5_from_b4:
  b5_from_b6:
    // [54] phi (byte) main::r_add#12 = (byte) main::r_add#10 [phi:main::@4/main::@6->main::@5#0] -- register_copy 
    jmp b5
    // [54] phi from main::@15 to main::@5 [phi:main::@15->main::@5]
  b5_from_b15:
    jmp b5
    // main::@5
  b5:
    // [55] if((signed word) main::r#1>=(signed word)(number) $200*(number) $c+(number) $100) goto main::@7 -- vwsz1_ge_vwsc1_then_la1 
    lda.z r
    cmp #<$200*$c+$100
    lda.z r+1
    sbc #>$200*$c+$100
    bvc !+
    eor #$80
  !:
    bpl b7
    // [15] phi from main::@5 to main::@1 [phi:main::@5->main::@1]
  b1_from_b5:
    // [15] phi (byte) main::r_add#10 = (byte) main::r_add#12 [phi:main::@5->main::@1#0] -- register_copy 
    // [15] phi (word) main::idx_y#3 = (word) main::idx_y#10 [phi:main::@5->main::@1#1] -- register_copy 
    // [15] phi (signed word) main::r#10 = (signed word) main::r#1 [phi:main::@5->main::@1#2] -- register_copy 
    // [15] phi (word) main::idx_x#11 = (word) main::idx_x#10 [phi:main::@5->main::@1#3] -- register_copy 
    jmp b1
    // main::@7
  b7:
    // [56] *((const byte*) BORDERCOL#0) ← ++ *((const byte*) BORDERCOL#0) -- _deref_pbuc1=_inc__deref_pbuc1 
    inc BORDERCOL
    jmp b7
}
  // bitmap_plot
// Plot a single dot in the bitmap
// bitmap_plot(word zeropage($70) x, byte zeropage($6f) y)
bitmap_plot: {
    .label _1 = $74
    .label _2 = $78
    .label plotter = $72
    .label plotter_1 = $76
    .label x = $70
    .label y = $6f
    // [57] (word) bitmap_plot::plotter#0 ← *((const byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_plot::y#0) w= *((const byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_plot::y#0) -- vwuz1=pbuc1_derefidx_vbuz2_word_pbuc2_derefidx_vbuz2 
    ldy.z y
    lda bitmap_plot_yhi,y
    sta.z plotter+1
    lda bitmap_plot_ylo,y
    sta.z plotter
    // [58] (word~) bitmap_plot::$1 ← (word) bitmap_plot::x#0 & (word) $fff8 -- vwuz1=vwuz2_band_vwuc1 
    lda.z x
    and #<$fff8
    sta.z _1
    lda.z x+1
    and #>$fff8
    sta.z _1+1
    // [59] (byte*) bitmap_plot::plotter#1 ← (byte*)(word) bitmap_plot::plotter#0 + (word~) bitmap_plot::$1 -- pbuz1=pbuz2_plus_vwuz3 
    lda.z plotter
    clc
    adc.z _1
    sta.z plotter_1
    lda.z plotter+1
    adc.z _1+1
    sta.z plotter_1+1
    // [60] (byte~) bitmap_plot::$2 ← < (word) bitmap_plot::x#0 -- vbuz1=_lo_vwuz2 
    lda.z x
    sta.z _2
    // [61] *((byte*) bitmap_plot::plotter#1) ← *((byte*) bitmap_plot::plotter#1) | *((const byte[$100]) bitmap_plot_bit#0 + (byte~) bitmap_plot::$2) -- _deref_pbuz1=_deref_pbuz1_bor_pbuc1_derefidx_vbuz2 
    ldy #0
    lda (plotter_1),y
    ldy.z _2
    ora bitmap_plot_bit,y
    ldy #0
    sta (plotter_1),y
    jmp breturn
    // bitmap_plot::@return
  breturn:
    // [62] return 
    rts
}
  // mul16s
// Multiply of two signed words to a signed double word
// Fixes offsets introduced by using unsigned multiplication
// mul16s(signed word zeropage(9) a, signed word zeropage($b) b)
mul16s: {
    .label _9 = $7d
    .label _13 = $81
    .label _16 = $7f
    .label _17 = $83
    .label m = $d
    .label return = $85
    .label a = 9
    .label return_2 = $9a
    .label b = $b
    .label return_3 = $4d
    .label return_4 = $61
    // [64] (word) mul16u::a#1 ← (word)(signed word) mul16s::a#3 -- vwuz1=vwuz2 
    lda.z a
    sta.z mul16u.a
    lda.z a+1
    sta.z mul16u.a+1
    // [65] (word) mul16u::b#0 ← (word)(signed word) mul16s::b#3 -- vwuz1=vwuz2 
    lda.z b
    sta.z mul16u.b
    lda.z b+1
    sta.z mul16u.b+1
    // [66] call mul16u 
    // [81] phi from mul16s to mul16u [phi:mul16s->mul16u]
  mul16u_from_mul16s:
    // [81] phi (word) mul16u::a#6 = (word) mul16u::a#1 [phi:mul16s->mul16u#0] -- register_copy 
    // [81] phi (dword) mul16u::mb#0 = (word) mul16u::b#0 [phi:mul16s->mul16u#1] -- vduz1=vwuz2 
    lda.z mul16u.b
    sta.z mul16u.mb
    lda.z mul16u.b+1
    sta.z mul16u.mb+1
    lda #0
    sta.z mul16u.mb+2
    sta.z mul16u.mb+3
    jsr mul16u
    // [67] (dword) mul16u::return#2 ← (dword) mul16u::res#2 -- vduz1=vduz2 
    lda.z mul16u.res
    sta.z mul16u.return
    lda.z mul16u.res+1
    sta.z mul16u.return+1
    lda.z mul16u.res+2
    sta.z mul16u.return+2
    lda.z mul16u.res+3
    sta.z mul16u.return+3
    jmp b5
    // mul16s::@5
  b5:
    // [68] (dword) mul16s::m#0 ← (dword) mul16u::return#2 -- vduz1=vduz2 
    lda.z mul16u.return
    sta.z m
    lda.z mul16u.return+1
    sta.z m+1
    lda.z mul16u.return+2
    sta.z m+2
    lda.z mul16u.return+3
    sta.z m+3
    // [69] if((signed word) mul16s::a#3>=(signed byte) 0) goto mul16s::@1 -- vwsz1_ge_0_then_la1 
    lda.z a+1
    bpl b1_from_b5
    jmp b3
    // mul16s::@3
  b3:
    // [70] (word~) mul16s::$9 ← > (dword) mul16s::m#0 -- vwuz1=_hi_vduz2 
    lda.z m+2
    sta.z _9
    lda.z m+3
    sta.z _9+1
    // [71] (word~) mul16s::$16 ← (word~) mul16s::$9 - (word)(signed word) mul16s::b#3 -- vwuz1=vwuz2_minus_vwuz3 
    lda.z _9
    sec
    sbc.z b
    sta.z _16
    lda.z _9+1
    sbc.z b+1
    sta.z _16+1
    // [72] (dword) mul16s::m#1 ← (dword) mul16s::m#0 hi= (word~) mul16s::$16 -- vduz1=vduz1_sethi_vwuz2 
    lda.z _16
    sta.z m+2
    lda.z _16+1
    sta.z m+3
    // [73] phi from mul16s::@3 mul16s::@5 to mul16s::@1 [phi:mul16s::@3/mul16s::@5->mul16s::@1]
  b1_from_b3:
  b1_from_b5:
    // [73] phi (dword) mul16s::m#5 = (dword) mul16s::m#1 [phi:mul16s::@3/mul16s::@5->mul16s::@1#0] -- register_copy 
    jmp b1
    // mul16s::@1
  b1:
    // [74] if((signed word) mul16s::b#3>=(signed byte) 0) goto mul16s::@2 -- vwsz1_ge_0_then_la1 
    lda.z b+1
    bpl b2_from_b1
    jmp b4
    // mul16s::@4
  b4:
    // [75] (word~) mul16s::$13 ← > (dword) mul16s::m#5 -- vwuz1=_hi_vduz2 
    lda.z m+2
    sta.z _13
    lda.z m+3
    sta.z _13+1
    // [76] (word~) mul16s::$17 ← (word~) mul16s::$13 - (word)(signed word) mul16s::a#3 -- vwuz1=vwuz2_minus_vwuz3 
    lda.z _13
    sec
    sbc.z a
    sta.z _17
    lda.z _13+1
    sbc.z a+1
    sta.z _17+1
    // [77] (dword) mul16s::m#2 ← (dword) mul16s::m#5 hi= (word~) mul16s::$17 -- vduz1=vduz1_sethi_vwuz2 
    lda.z _17
    sta.z m+2
    lda.z _17+1
    sta.z m+3
    // [78] phi from mul16s::@1 mul16s::@4 to mul16s::@2 [phi:mul16s::@1/mul16s::@4->mul16s::@2]
  b2_from_b1:
  b2_from_b4:
    // [78] phi (dword) mul16s::m#4 = (dword) mul16s::m#5 [phi:mul16s::@1/mul16s::@4->mul16s::@2#0] -- register_copy 
    jmp b2
    // mul16s::@2
  b2:
    // [79] (signed dword) mul16s::return#0 ← (signed dword)(dword) mul16s::m#4 -- vdsz1=vdsz2 
    lda.z m
    sta.z return
    lda.z m+1
    sta.z return+1
    lda.z m+2
    sta.z return+2
    lda.z m+3
    sta.z return+3
    jmp breturn
    // mul16s::@return
  breturn:
    // [80] return 
    rts
}
  // mul16u
// Perform binary multiplication of two unsigned 16-bit words into a 32-bit unsigned double word
// mul16u(word zeropage($15) a, word zeropage($11) b)
mul16u: {
    .label _1 = $89
    .label mb = $1b
    .label a = $15
    .label res = $17
    .label b = $11
    .label return = $79
    .label b_1 = $13
    .label return_3 = $c4
    // [82] phi from mul16u to mul16u::@1 [phi:mul16u->mul16u::@1]
  b1_from_mul16u:
    // [82] phi (dword) mul16u::mb#2 = (dword) mul16u::mb#0 [phi:mul16u->mul16u::@1#0] -- register_copy 
    // [82] phi (dword) mul16u::res#2 = (byte) 0 [phi:mul16u->mul16u::@1#1] -- vduz1=vbuc1 
    lda #0
    sta.z res
    lda #0
    sta.z res+1
    sta.z res+2
    sta.z res+3
    // [82] phi (word) mul16u::a#3 = (word) mul16u::a#6 [phi:mul16u->mul16u::@1#2] -- register_copy 
    jmp b1
    // mul16u::@1
  b1:
    // [83] if((word) mul16u::a#3!=(byte) 0) goto mul16u::@2 -- vwuz1_neq_0_then_la1 
    lda.z a
    bne b2
    lda.z a+1
    bne b2
    jmp breturn
    // mul16u::@return
  breturn:
    // [84] return 
    rts
    // mul16u::@2
  b2:
    // [85] (byte~) mul16u::$1 ← (word) mul16u::a#3 & (byte) 1 -- vbuz1=vwuz2_band_vbuc1 
    lda.z a
    and #1
    sta.z _1
    // [86] if((byte~) mul16u::$1==(byte) 0) goto mul16u::@3 -- vbuz1_eq_0_then_la1 
    lda.z _1
    cmp #0
    beq b3_from_b2
    jmp b4
    // mul16u::@4
  b4:
    // [87] (dword) mul16u::res#1 ← (dword) mul16u::res#2 + (dword) mul16u::mb#2 -- vduz1=vduz1_plus_vduz2 
    lda.z res
    clc
    adc.z mb
    sta.z res
    lda.z res+1
    adc.z mb+1
    sta.z res+1
    lda.z res+2
    adc.z mb+2
    sta.z res+2
    lda.z res+3
    adc.z mb+3
    sta.z res+3
    // [88] phi from mul16u::@2 mul16u::@4 to mul16u::@3 [phi:mul16u::@2/mul16u::@4->mul16u::@3]
  b3_from_b2:
  b3_from_b4:
    // [88] phi (dword) mul16u::res#6 = (dword) mul16u::res#2 [phi:mul16u::@2/mul16u::@4->mul16u::@3#0] -- register_copy 
    jmp b3
    // mul16u::@3
  b3:
    // [89] (word) mul16u::a#0 ← (word) mul16u::a#3 >> (byte) 1 -- vwuz1=vwuz1_ror_1 
    lsr.z a+1
    ror.z a
    // [90] (dword) mul16u::mb#1 ← (dword) mul16u::mb#2 << (byte) 1 -- vduz1=vduz1_rol_1 
    asl.z mb
    rol.z mb+1
    rol.z mb+2
    rol.z mb+3
    // [82] phi from mul16u::@3 to mul16u::@1 [phi:mul16u::@3->mul16u::@1]
  b1_from_b3:
    // [82] phi (dword) mul16u::mb#2 = (dword) mul16u::mb#1 [phi:mul16u::@3->mul16u::@1#0] -- register_copy 
    // [82] phi (dword) mul16u::res#2 = (dword) mul16u::res#6 [phi:mul16u::@3->mul16u::@1#1] -- register_copy 
    // [82] phi (word) mul16u::a#3 = (word) mul16u::a#0 [phi:mul16u::@3->mul16u::@1#2] -- register_copy 
    jmp b1
}
  // init_irq
// Setup the IRQ
init_irq: {
    // asm { sei  }
    sei
    // [92] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 -- _deref_pbuc1=vbuc2 
    // Disable kernal & basic
    lda #PROCPORT_DDR_MEMORY_MASK
    sta PROCPORT_DDR
    // [93] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 -- _deref_pbuc1=vbuc2 
    lda #PROCPORT_RAM_IO
    sta PROCPORT
    // [94] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 -- _deref_pbuc1=vbuc2 
    // Disable CIA 1 Timer IRQ
    lda #CIA_INTERRUPT_CLEAR
    sta CIA1_INTERRUPT
    // [95] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) | (byte) $80 -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 
    // Set raster line to $100
    lda #$80
    ora VIC_CONTROL
    sta VIC_CONTROL
    // [96] *((const byte*) RASTER#0) ← (byte) 0 -- _deref_pbuc1=vbuc2 
    lda #0
    sta RASTER
    // [97] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 
    // Enable Raster Interrupt
    lda #IRQ_RASTER
    sta IRQ_ENABLE
    // [98] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() -- _deref_pptc1=pprc2 
    // Set the IRQ routine
    lda #<irq
    sta HARDWARE_IRQ
    lda #>irq
    sta HARDWARE_IRQ+1
    // asm { cli  }
    cli
    jmp breturn
    // init_irq::@return
  breturn:
    // [100] return 
    rts
}
  // bitmap_clear
// Clear all graphics on the bitmap
// bgcol - the background color to fill the screen with
// fgcol - the foreground color to fill the screen with
bitmap_clear: {
    .const col = WHITE*$10
    // [102] call memset 
    // [106] phi from bitmap_clear to memset [phi:bitmap_clear->memset]
  memset_from_bitmap_clear:
    // [106] phi (byte) memset::c#4 = (const byte) bitmap_clear::col#0 [phi:bitmap_clear->memset#0] -- vbuz1=vbuc1 
    lda #col
    sta.z memset.c
    // [106] phi (void*) memset::str#3 = (void*)(const byte*) SCREEN#0 [phi:bitmap_clear->memset#1] -- pvoz1=pvoc1 
    lda #<SCREEN
    sta.z memset.str
    lda #>SCREEN
    sta.z memset.str+1
    // [106] phi (word) memset::num#2 = (word) $3e8 [phi:bitmap_clear->memset#2] -- vwuz1=vwuc1 
    lda #<$3e8
    sta.z memset.num
    lda #>$3e8
    sta.z memset.num+1
    jsr memset
    // [103] phi from bitmap_clear to bitmap_clear::@1 [phi:bitmap_clear->bitmap_clear::@1]
  b1_from_bitmap_clear:
    jmp b1
    // bitmap_clear::@1
  b1:
    // [104] call memset 
    // [106] phi from bitmap_clear::@1 to memset [phi:bitmap_clear::@1->memset]
  memset_from_b1:
    // [106] phi (byte) memset::c#4 = (byte) 0 [phi:bitmap_clear::@1->memset#0] -- vbuz1=vbuc1 
    lda #0
    sta.z memset.c
    // [106] phi (void*) memset::str#3 = (void*)(const byte*) BITMAP#0 [phi:bitmap_clear::@1->memset#1] -- pvoz1=pvoc1 
    lda #<BITMAP
    sta.z memset.str
    lda #>BITMAP
    sta.z memset.str+1
    // [106] phi (word) memset::num#2 = (word) $1f40 [phi:bitmap_clear::@1->memset#2] -- vwuz1=vwuc1 
    lda #<$1f40
    sta.z memset.num
    lda #>$1f40
    sta.z memset.num+1
    jsr memset
    jmp breturn
    // bitmap_clear::@return
  breturn:
    // [105] return 
    rts
}
  // memset
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
// memset(void* zeropage($21) str, byte zeropage($23) c, word zeropage($1f) num)
memset: {
    .label end = $8a
    .label dst = $24
    .label num = $1f
    .label str = $21
    .label c = $23
    // [107] if((word) memset::num#2<=(byte) 0) goto memset::@return -- vwuz1_le_0_then_la1 
    lda.z num
    bne !+
    lda.z num+1
    beq breturn
  !:
    jmp b1
    // memset::@1
  b1:
    // [108] (byte*) memset::end#0 ← (byte*)(void*) memset::str#3 + (word) memset::num#2 -- pbuz1=pbuz2_plus_vwuz3 
    lda.z str
    clc
    adc.z num
    sta.z end
    lda.z str+1
    adc.z num+1
    sta.z end+1
    // [109] (byte*~) memset::dst#4 ← (byte*)(void*) memset::str#3 -- pbuz1=pbuz2 
    lda.z str
    sta.z dst
    lda.z str+1
    sta.z dst+1
    // [110] phi from memset::@1 memset::@3 to memset::@2 [phi:memset::@1/memset::@3->memset::@2]
  b2_from_b1:
  b2_from_b3:
    // [110] phi (byte*) memset::dst#2 = (byte*~) memset::dst#4 [phi:memset::@1/memset::@3->memset::@2#0] -- register_copy 
    jmp b2
    // memset::@2
  b2:
    // [111] if((byte*) memset::dst#2!=(byte*) memset::end#0) goto memset::@3 -- pbuz1_neq_pbuz2_then_la1 
    lda.z dst+1
    cmp.z end+1
    bne b3
    lda.z dst
    cmp.z end
    bne b3
    jmp breturn
    // memset::@return
  breturn:
    // [112] return 
    rts
    // memset::@3
  b3:
    // [113] *((byte*) memset::dst#2) ← (byte) memset::c#4 -- _deref_pbuz1=vbuz2 
    lda.z c
    ldy #0
    sta (dst),y
    // [114] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2 -- pbuz1=_inc_pbuz1 
    inc.z dst
    bne !+
    inc.z dst+1
  !:
    jmp b2_from_b3
}
  // bitmap_init
// Initialize bitmap plotting tables
bitmap_init: {
    .label _4 = $8d
    .label _5 = $8e
    .label _6 = $8f
    .label _7 = $8c
    .label bits = $26
    .label x = $27
    .label y = $28
    .label yoffs = $29
    // [116] phi from bitmap_init to bitmap_init::@1 [phi:bitmap_init->bitmap_init::@1]
  b1_from_bitmap_init:
    // [116] phi (byte) bitmap_init::x#2 = (byte) 0 [phi:bitmap_init->bitmap_init::@1#0] -- vbuz1=vbuc1 
    lda #0
    sta.z x
    // [116] phi (byte) bitmap_init::bits#3 = (byte) $80 [phi:bitmap_init->bitmap_init::@1#1] -- vbuz1=vbuc1 
    lda #$80
    sta.z bits
    jmp b1
    // [116] phi from bitmap_init::@2 to bitmap_init::@1 [phi:bitmap_init::@2->bitmap_init::@1]
  b1_from_b2:
    // [116] phi (byte) bitmap_init::x#2 = (byte) bitmap_init::x#1 [phi:bitmap_init::@2->bitmap_init::@1#0] -- register_copy 
    // [116] phi (byte) bitmap_init::bits#3 = (byte) bitmap_init::bits#4 [phi:bitmap_init::@2->bitmap_init::@1#1] -- register_copy 
    jmp b1
    // bitmap_init::@1
  b1:
    // [117] *((const byte[$100]) bitmap_plot_bit#0 + (byte) bitmap_init::x#2) ← (byte) bitmap_init::bits#3 -- pbuc1_derefidx_vbuz1=vbuz2 
    lda.z bits
    ldy.z x
    sta bitmap_plot_bit,y
    // [118] (byte) bitmap_init::bits#1 ← (byte) bitmap_init::bits#3 >> (byte) 1 -- vbuz1=vbuz1_ror_1 
    lsr.z bits
    // [119] if((byte) bitmap_init::bits#1!=(byte) 0) goto bitmap_init::@6 -- vbuz1_neq_0_then_la1 
    lda.z bits
    cmp #0
    bne b6_from_b1
    // [121] phi from bitmap_init::@1 to bitmap_init::@2 [phi:bitmap_init::@1->bitmap_init::@2]
  b2_from_b1:
    // [121] phi (byte) bitmap_init::bits#4 = (byte) $80 [phi:bitmap_init::@1->bitmap_init::@2#0] -- vbuz1=vbuc1 
    lda #$80
    sta.z bits
    jmp b2
    // [120] phi from bitmap_init::@1 to bitmap_init::@6 [phi:bitmap_init::@1->bitmap_init::@6]
  b6_from_b1:
    jmp b6
    // bitmap_init::@6
  b6:
    // [121] phi from bitmap_init::@6 to bitmap_init::@2 [phi:bitmap_init::@6->bitmap_init::@2]
  b2_from_b6:
    // [121] phi (byte) bitmap_init::bits#4 = (byte) bitmap_init::bits#1 [phi:bitmap_init::@6->bitmap_init::@2#0] -- register_copy 
    jmp b2
    // bitmap_init::@2
  b2:
    // [122] (byte) bitmap_init::x#1 ← ++ (byte) bitmap_init::x#2 -- vbuz1=_inc_vbuz1 
    inc.z x
    // [123] if((byte) bitmap_init::x#1!=(byte) 0) goto bitmap_init::@1 -- vbuz1_neq_0_then_la1 
    lda.z x
    cmp #0
    bne b1_from_b2
    // [124] phi from bitmap_init::@2 to bitmap_init::@3 [phi:bitmap_init::@2->bitmap_init::@3]
  b3_from_b2:
    // [124] phi (byte*) bitmap_init::yoffs#2 = (const byte*) BITMAP#0 [phi:bitmap_init::@2->bitmap_init::@3#0] -- pbuz1=pbuc1 
    lda #<BITMAP
    sta.z yoffs
    lda #>BITMAP
    sta.z yoffs+1
    // [124] phi (byte) bitmap_init::y#2 = (byte) 0 [phi:bitmap_init::@2->bitmap_init::@3#1] -- vbuz1=vbuc1 
    lda #0
    sta.z y
    jmp b3
    // [124] phi from bitmap_init::@4 to bitmap_init::@3 [phi:bitmap_init::@4->bitmap_init::@3]
  b3_from_b4:
    // [124] phi (byte*) bitmap_init::yoffs#2 = (byte*) bitmap_init::yoffs#4 [phi:bitmap_init::@4->bitmap_init::@3#0] -- register_copy 
    // [124] phi (byte) bitmap_init::y#2 = (byte) bitmap_init::y#1 [phi:bitmap_init::@4->bitmap_init::@3#1] -- register_copy 
    jmp b3
    // bitmap_init::@3
  b3:
    // [125] (byte~) bitmap_init::$7 ← (byte) bitmap_init::y#2 & (byte) 7 -- vbuz1=vbuz2_band_vbuc1 
    lda #7
    and.z y
    sta.z _7
    // [126] (byte~) bitmap_init::$4 ← < (byte*) bitmap_init::yoffs#2 -- vbuz1=_lo_pbuz2 
    lda.z yoffs
    sta.z _4
    // [127] (byte~) bitmap_init::$5 ← (byte~) bitmap_init::$7 | (byte~) bitmap_init::$4 -- vbuz1=vbuz2_bor_vbuz3 
    lda.z _7
    ora.z _4
    sta.z _5
    // [128] *((const byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_init::y#2) ← (byte~) bitmap_init::$5 -- pbuc1_derefidx_vbuz1=vbuz2 
    lda.z _5
    ldy.z y
    sta bitmap_plot_ylo,y
    // [129] (byte~) bitmap_init::$6 ← > (byte*) bitmap_init::yoffs#2 -- vbuz1=_hi_pbuz2 
    lda.z yoffs+1
    sta.z _6
    // [130] *((const byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_init::y#2) ← (byte~) bitmap_init::$6 -- pbuc1_derefidx_vbuz1=vbuz2 
    lda.z _6
    ldy.z y
    sta bitmap_plot_yhi,y
    // [131] if((byte~) bitmap_init::$7!=(byte) 7) goto bitmap_init::@4 -- vbuz1_neq_vbuc1_then_la1 
    lda #7
    cmp.z _7
    bne b4_from_b3
    jmp b5
    // bitmap_init::@5
  b5:
    // [132] (byte*) bitmap_init::yoffs#1 ← (byte*) bitmap_init::yoffs#2 + (word)(number) $28*(number) 8 -- pbuz1=pbuz1_plus_vwuc1 
    clc
    lda.z yoffs
    adc #<$28*8
    sta.z yoffs
    lda.z yoffs+1
    adc #>$28*8
    sta.z yoffs+1
    // [133] phi from bitmap_init::@3 bitmap_init::@5 to bitmap_init::@4 [phi:bitmap_init::@3/bitmap_init::@5->bitmap_init::@4]
  b4_from_b3:
  b4_from_b5:
    // [133] phi (byte*) bitmap_init::yoffs#4 = (byte*) bitmap_init::yoffs#2 [phi:bitmap_init::@3/bitmap_init::@5->bitmap_init::@4#0] -- register_copy 
    jmp b4
    // bitmap_init::@4
  b4:
    // [134] (byte) bitmap_init::y#1 ← ++ (byte) bitmap_init::y#2 -- vbuz1=_inc_vbuz1 
    inc.z y
    // [135] if((byte) bitmap_init::y#1!=(byte) 0) goto bitmap_init::@3 -- vbuz1_neq_0_then_la1 
    lda.z y
    cmp #0
    bne b3_from_b4
    jmp breturn
    // bitmap_init::@return
  breturn:
    // [136] return 
    rts
}
  // sin16s_gen2
// Generate signed word sinus table - with values in the range min-max.
// sintab - the table to generate into
// wavelength - the number of sinus points in a total sinus wavelength (the size of the table)
// sin16s_gen2(signed word* zeropage($31) sintab)
sin16s_gen2: {
    .label wavelength = $200
    .const min = -$1001
    .const max = $1001
    .const ampl = max-min
    .label _6 = $9e
    .label _9 = $a2
    .label step = $94
    .label sintab = $31
    .label x = $2d
    .label i = $2b
    // [138] call div32u16u 
    // [205] phi from sin16s_gen2 to div32u16u [phi:sin16s_gen2->div32u16u]
  div32u16u_from_sin16s_gen2:
    jsr div32u16u
    // [139] (dword) div32u16u::return#2 ← (dword) div32u16u::return#0 -- vduz1=vduz2 
    lda.z div32u16u.return
    sta.z div32u16u.return_2
    lda.z div32u16u.return+1
    sta.z div32u16u.return_2+1
    lda.z div32u16u.return+2
    sta.z div32u16u.return_2+2
    lda.z div32u16u.return+3
    sta.z div32u16u.return_2+3
    jmp b3
    // sin16s_gen2::@3
  b3:
    // [140] (dword) sin16s_gen2::step#0 ← (dword) div32u16u::return#2 -- vduz1=vduz2 
    lda.z div32u16u.return_2
    sta.z step
    lda.z div32u16u.return_2+1
    sta.z step+1
    lda.z div32u16u.return_2+2
    sta.z step+2
    lda.z div32u16u.return_2+3
    sta.z step+3
    // [141] phi from sin16s_gen2::@3 to sin16s_gen2::@2 [phi:sin16s_gen2::@3->sin16s_gen2::@2]
  b2_from_b3:
    // [141] phi (signed word*) sin16s_gen2::sintab#10 = (const signed word[$200]) SINUS#0 [phi:sin16s_gen2::@3->sin16s_gen2::@2#0] -- pwsz1=pwsc1 
    lda #<SINUS
    sta.z sintab
    lda #>SINUS
    sta.z sintab+1
    // [141] phi (dword) sin16s_gen2::x#6 = (byte) 0 [phi:sin16s_gen2::@3->sin16s_gen2::@2#1] -- vduz1=vbuc1 
    lda #0
    sta.z x
    lda #0
    sta.z x+1
    sta.z x+2
    sta.z x+3
    // [141] phi (word) sin16s_gen2::i#6 = (byte) 0 [phi:sin16s_gen2::@3->sin16s_gen2::@2#2] -- vwuz1=vbuc1 
    lda #<0
    sta.z i
    lda #>0
    sta.z i+1
    jmp b2
    // [141] phi from sin16s_gen2::@1 to sin16s_gen2::@2 [phi:sin16s_gen2::@1->sin16s_gen2::@2]
  b2_from_b1:
    // [141] phi (signed word*) sin16s_gen2::sintab#10 = (signed word*) sin16s_gen2::sintab#0 [phi:sin16s_gen2::@1->sin16s_gen2::@2#0] -- register_copy 
    // [141] phi (dword) sin16s_gen2::x#6 = (dword) sin16s_gen2::x#1 [phi:sin16s_gen2::@1->sin16s_gen2::@2#1] -- register_copy 
    // [141] phi (word) sin16s_gen2::i#6 = (word) sin16s_gen2::i#1 [phi:sin16s_gen2::@1->sin16s_gen2::@2#2] -- register_copy 
    jmp b2
    // sin16s_gen2::@2
  b2:
    // [142] (dword) sin16s::x#0 ← (dword) sin16s_gen2::x#6 -- vduz1=vduz2 
    lda.z x
    sta.z sin16s.x
    lda.z x+1
    sta.z sin16s.x+1
    lda.z x+2
    sta.z sin16s.x+2
    lda.z x+3
    sta.z sin16s.x+3
    // [143] call sin16s 
    jsr sin16s
    // [144] (signed word) sin16s::return#0 ← (signed word) sin16s::return#1 -- vwsz1=vwsz2 
    lda.z sin16s.return_1
    sta.z sin16s.return
    lda.z sin16s.return_1+1
    sta.z sin16s.return+1
    jmp b4
    // sin16s_gen2::@4
  b4:
    // [145] (signed word) mul16s::a#0 ← (signed word) sin16s::return#0 -- vwsz1=vwsz2 
    lda.z sin16s.return
    sta.z mul16s.a
    lda.z sin16s.return+1
    sta.z mul16s.a+1
    // [146] call mul16s 
    // [63] phi from sin16s_gen2::@4 to mul16s [phi:sin16s_gen2::@4->mul16s]
  mul16s_from_b4:
    // [63] phi (signed word) mul16s::b#3 = (const signed word) sin16s_gen2::ampl#0 [phi:sin16s_gen2::@4->mul16s#0] -- vwsz1=vwsc1 
    lda #<ampl
    sta.z mul16s.b
    lda #>ampl
    sta.z mul16s.b+1
    // [63] phi (signed word) mul16s::a#3 = (signed word) mul16s::a#0 [phi:sin16s_gen2::@4->mul16s#1] -- register_copy 
    jsr mul16s
    // [147] (signed dword) mul16s::return#2 ← (signed dword) mul16s::return#0 -- vdsz1=vdsz2 
    lda.z mul16s.return
    sta.z mul16s.return_2
    lda.z mul16s.return+1
    sta.z mul16s.return_2+1
    lda.z mul16s.return+2
    sta.z mul16s.return_2+2
    lda.z mul16s.return+3
    sta.z mul16s.return_2+3
    jmp b5
    // sin16s_gen2::@5
  b5:
    // [148] (signed dword~) sin16s_gen2::$6 ← (signed dword) mul16s::return#2 -- vdsz1=vdsz2 
    lda.z mul16s.return_2
    sta.z _6
    lda.z mul16s.return_2+1
    sta.z _6+1
    lda.z mul16s.return_2+2
    sta.z _6+2
    lda.z mul16s.return_2+3
    sta.z _6+3
    // [149] (word~) sin16s_gen2::$9 ← > (signed dword~) sin16s_gen2::$6 -- vwuz1=_hi_vdsz2 
    lda.z _6+2
    sta.z _9
    lda.z _6+3
    sta.z _9+1
    // [150] *((signed word*) sin16s_gen2::sintab#10) ← (signed word)(word~) sin16s_gen2::$9 -- _deref_pwsz1=vwsz2 
    ldy #0
    lda.z _9
    sta (sintab),y
    iny
    lda.z _9+1
    sta (sintab),y
    // [151] (signed word*) sin16s_gen2::sintab#0 ← (signed word*) sin16s_gen2::sintab#10 + (const byte) SIZEOF_SIGNED_WORD -- pwsz1=pwsz1_plus_vbuc1 
    lda #SIZEOF_SIGNED_WORD
    clc
    adc.z sintab
    sta.z sintab
    bcc !+
    inc.z sintab+1
  !:
    // [152] (dword) sin16s_gen2::x#1 ← (dword) sin16s_gen2::x#6 + (dword) sin16s_gen2::step#0 -- vduz1=vduz1_plus_vduz2 
    lda.z x
    clc
    adc.z step
    sta.z x
    lda.z x+1
    adc.z step+1
    sta.z x+1
    lda.z x+2
    adc.z step+2
    sta.z x+2
    lda.z x+3
    adc.z step+3
    sta.z x+3
    // [153] (word) sin16s_gen2::i#1 ← ++ (word) sin16s_gen2::i#6 -- vwuz1=_inc_vwuz1 
    inc.z i
    bne !+
    inc.z i+1
  !:
    jmp b1
  // u[4.28]
    // sin16s_gen2::@1
  b1:
    // [154] if((word) sin16s_gen2::i#1<(const word) sin16s_gen2::wavelength#0) goto sin16s_gen2::@2 -- vwuz1_lt_vwuc1_then_la1 
    lda.z i+1
    cmp #>wavelength
    bcc b2_from_b1
    bne !+
    lda.z i
    cmp #<wavelength
    bcc b2_from_b1
  !:
    jmp breturn
    // sin16s_gen2::@return
  breturn:
    // [155] return 
    rts
}
  // sin16s
// Calculate signed word sinus sin(x)
// x: unsigned dword input u[4.28] in the interval $00000000 - PI2_u4f28
// result: signed word sin(x) s[0.15] - using the full range  -$7fff - $7fff
// sin16s(dword zeropage($34) x)
sin16s: {
    .label _4 = $a4
    .label x = $34
    .label return = $98
    .label x1 = $a8
    .label x2 = $ac
    .label x3 = $b0
    .label x3_6 = $b4
    .label usinx = $b6
    .label x4 = $ba
    .label x5 = $be
    .label x5_128 = $c0
    .label usinx_1 = $c2
    .label return_1 = $38
    .label sinx = $38
    .label isUpper = $33
    .label return_5 = $38
    // [156] if((dword) sin16s::x#0<(const dword) PI_u4f28#0) goto sin16s::@1 -- vduz1_lt_vduc1_then_la1 
    lda.z x+3
    cmp #>PI_u4f28>>$10
    bcc b1_from_sin16s
    bne !+
    lda.z x+2
    cmp #<PI_u4f28>>$10
    bcc b1_from_sin16s
    bne !+
    lda.z x+1
    cmp #>PI_u4f28
    bcc b1_from_sin16s
    bne !+
    lda.z x
    cmp #<PI_u4f28
    bcc b1_from_sin16s
  !:
    jmp b4
    // sin16s::@4
  b4:
    // [157] (dword) sin16s::x#1 ← (dword) sin16s::x#0 - (const dword) PI_u4f28#0 -- vduz1=vduz1_minus_vduc1 
    lda.z x
    sec
    sbc #<PI_u4f28
    sta.z x
    lda.z x+1
    sbc #>PI_u4f28
    sta.z x+1
    lda.z x+2
    sbc #<PI_u4f28>>$10
    sta.z x+2
    lda.z x+3
    sbc #>PI_u4f28>>$10
    sta.z x+3
    // [158] phi from sin16s::@4 to sin16s::@1 [phi:sin16s::@4->sin16s::@1]
  b1_from_b4:
    // [158] phi (byte) sin16s::isUpper#2 = (byte) 1 [phi:sin16s::@4->sin16s::@1#0] -- vbuz1=vbuc1 
    lda #1
    sta.z isUpper
    // [158] phi (dword) sin16s::x#4 = (dword) sin16s::x#1 [phi:sin16s::@4->sin16s::@1#1] -- register_copy 
    jmp b1
    // [158] phi from sin16s to sin16s::@1 [phi:sin16s->sin16s::@1]
  b1_from_sin16s:
    // [158] phi (byte) sin16s::isUpper#2 = (byte) 0 [phi:sin16s->sin16s::@1#0] -- vbuz1=vbuc1 
    lda #0
    sta.z isUpper
    // [158] phi (dword) sin16s::x#4 = (dword) sin16s::x#0 [phi:sin16s->sin16s::@1#1] -- register_copy 
    jmp b1
    // sin16s::@1
  b1:
    // [159] if((dword) sin16s::x#4<(const dword) PI_HALF_u4f28#0) goto sin16s::@2 -- vduz1_lt_vduc1_then_la1 
    lda.z x+3
    cmp #>PI_HALF_u4f28>>$10
    bcc b2_from_b1
    bne !+
    lda.z x+2
    cmp #<PI_HALF_u4f28>>$10
    bcc b2_from_b1
    bne !+
    lda.z x+1
    cmp #>PI_HALF_u4f28
    bcc b2_from_b1
    bne !+
    lda.z x
    cmp #<PI_HALF_u4f28
    bcc b2_from_b1
  !:
    jmp b5
    // sin16s::@5
  b5:
    // [160] (dword) sin16s::x#2 ← (const dword) PI_u4f28#0 - (dword) sin16s::x#4 -- vduz1=vduc1_minus_vduz1 
    lda #<PI_u4f28
    sec
    sbc.z x
    sta.z x
    lda #>PI_u4f28
    sbc.z x+1
    sta.z x+1
    lda #<PI_u4f28>>$10
    sbc.z x+2
    sta.z x+2
    lda #>PI_u4f28>>$10
    sbc.z x+3
    sta.z x+3
    // [161] phi from sin16s::@1 sin16s::@5 to sin16s::@2 [phi:sin16s::@1/sin16s::@5->sin16s::@2]
  b2_from_b1:
  b2_from_b5:
    // [161] phi (dword) sin16s::x#6 = (dword) sin16s::x#4 [phi:sin16s::@1/sin16s::@5->sin16s::@2#0] -- register_copy 
    jmp b2
    // sin16s::@2
  b2:
    // [162] (dword~) sin16s::$4 ← (dword) sin16s::x#6 << (byte) 3 -- vduz1=vduz2_rol_3 
    lda.z x
    sta.z _4
    lda.z x+1
    sta.z _4+1
    lda.z x+2
    sta.z _4+2
    lda.z x+3
    sta.z _4+3
    ldy #3
  !:
    asl.z _4
    rol.z _4+1
    rol.z _4+2
    rol.z _4+3
    dey
    bne !-
    // [163] (word) sin16s::x1#0 ← > (dword~) sin16s::$4 -- vwuz1=_hi_vduz2 
    lda.z _4+2
    sta.z x1
    lda.z _4+3
    sta.z x1+1
    // [164] (word) mulu16_sel::v1#0 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v1
    lda.z x1+1
    sta.z mulu16_sel.v1+1
    // [165] (word) mulu16_sel::v2#0 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [166] call mulu16_sel 
    // [196] phi from sin16s::@2 to mulu16_sel [phi:sin16s::@2->mulu16_sel]
  mulu16_sel_from_b2:
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 0 [phi:sin16s::@2->mulu16_sel#0] -- vbuz1=vbuc1 
    lda #0
    sta.z mulu16_sel.select
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#0 [phi:sin16s::@2->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#0 [phi:sin16s::@2->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // [167] (word) mulu16_sel::return#0 ← (word) mulu16_sel::return#12 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return_12
    sta.z mulu16_sel.return
    lda.z mulu16_sel.return_12+1
    sta.z mulu16_sel.return+1
    jmp b7
    // sin16s::@7
  b7:
    // [168] (word) sin16s::x2#0 ← (word) mulu16_sel::return#0 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return
    sta.z x2
    lda.z mulu16_sel.return+1
    sta.z x2+1
    // [169] (word) mulu16_sel::v1#1 ← (word) sin16s::x2#0 -- vwuz1=vwuz2 
    lda.z x2
    sta.z mulu16_sel.v1
    lda.z x2+1
    sta.z mulu16_sel.v1+1
    // [170] (word) mulu16_sel::v2#1 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [171] call mulu16_sel 
    // [196] phi from sin16s::@7 to mulu16_sel [phi:sin16s::@7->mulu16_sel]
  mulu16_sel_from_b7:
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 1 [phi:sin16s::@7->mulu16_sel#0] -- vbuz1=vbuc1 
    lda #1
    sta.z mulu16_sel.select
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#1 [phi:sin16s::@7->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#1 [phi:sin16s::@7->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // [172] (word) mulu16_sel::return#1 ← (word) mulu16_sel::return#12 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return_12
    sta.z mulu16_sel.return_1
    lda.z mulu16_sel.return_12+1
    sta.z mulu16_sel.return_1+1
    jmp b8
    // sin16s::@8
  b8:
    // [173] (word) sin16s::x3#0 ← (word) mulu16_sel::return#1 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return_1
    sta.z x3
    lda.z mulu16_sel.return_1+1
    sta.z x3+1
    // [174] (word) mulu16_sel::v1#2 ← (word) sin16s::x3#0 -- vwuz1=vwuz2 
    lda.z x3
    sta.z mulu16_sel.v1
    lda.z x3+1
    sta.z mulu16_sel.v1+1
    // [175] call mulu16_sel 
    // [196] phi from sin16s::@8 to mulu16_sel [phi:sin16s::@8->mulu16_sel]
  mulu16_sel_from_b8:
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 1 [phi:sin16s::@8->mulu16_sel#0] -- vbuz1=vbuc1 
    lda #1
    sta.z mulu16_sel.select
    // [196] phi (word) mulu16_sel::v2#5 = (word)(number) $10000/(number) 6 [phi:sin16s::@8->mulu16_sel#1] -- vwuz1=vwuc1 
    lda #<$10000/6
    sta.z mulu16_sel.v2
    lda #>$10000/6
    sta.z mulu16_sel.v2+1
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#2 [phi:sin16s::@8->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // [176] (word) mulu16_sel::return#2 ← (word) mulu16_sel::return#12 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return_12
    sta.z mulu16_sel.return_2
    lda.z mulu16_sel.return_12+1
    sta.z mulu16_sel.return_2+1
    jmp b9
    // sin16s::@9
  b9:
    // [177] (word) sin16s::x3_6#0 ← (word) mulu16_sel::return#2 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return_2
    sta.z x3_6
    lda.z mulu16_sel.return_2+1
    sta.z x3_6+1
    // [178] (word) sin16s::usinx#0 ← (word) sin16s::x1#0 - (word) sin16s::x3_6#0 -- vwuz1=vwuz2_minus_vwuz3 
    lda.z x1
    sec
    sbc.z x3_6
    sta.z usinx
    lda.z x1+1
    sbc.z x3_6+1
    sta.z usinx+1
    // [179] (word) mulu16_sel::v1#3 ← (word) sin16s::x3#0 -- vwuz1=vwuz2 
    lda.z x3
    sta.z mulu16_sel.v1
    lda.z x3+1
    sta.z mulu16_sel.v1+1
    // [180] (word) mulu16_sel::v2#3 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [181] call mulu16_sel 
    // [196] phi from sin16s::@9 to mulu16_sel [phi:sin16s::@9->mulu16_sel]
  mulu16_sel_from_b9:
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 0 [phi:sin16s::@9->mulu16_sel#0] -- vbuz1=vbuc1 
    lda #0
    sta.z mulu16_sel.select
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#3 [phi:sin16s::@9->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#3 [phi:sin16s::@9->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // [182] (word) mulu16_sel::return#10 ← (word) mulu16_sel::return#12 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return_12
    sta.z mulu16_sel.return_10
    lda.z mulu16_sel.return_12+1
    sta.z mulu16_sel.return_10+1
    jmp b10
    // sin16s::@10
  b10:
    // [183] (word) sin16s::x4#0 ← (word) mulu16_sel::return#10 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return_10
    sta.z x4
    lda.z mulu16_sel.return_10+1
    sta.z x4+1
    // [184] (word) mulu16_sel::v1#4 ← (word) sin16s::x4#0 -- vwuz1=vwuz2 
    lda.z x4
    sta.z mulu16_sel.v1
    lda.z x4+1
    sta.z mulu16_sel.v1+1
    // [185] (word) mulu16_sel::v2#4 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [186] call mulu16_sel 
    // [196] phi from sin16s::@10 to mulu16_sel [phi:sin16s::@10->mulu16_sel]
  mulu16_sel_from_b10:
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 0 [phi:sin16s::@10->mulu16_sel#0] -- vbuz1=vbuc1 
    lda #0
    sta.z mulu16_sel.select
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#4 [phi:sin16s::@10->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#4 [phi:sin16s::@10->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // [187] (word) mulu16_sel::return#11 ← (word) mulu16_sel::return#12 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return_12
    sta.z mulu16_sel.return_11
    lda.z mulu16_sel.return_12+1
    sta.z mulu16_sel.return_11+1
    jmp b11
    // sin16s::@11
  b11:
    // [188] (word) sin16s::x5#0 ← (word) mulu16_sel::return#11 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return_11
    sta.z x5
    lda.z mulu16_sel.return_11+1
    sta.z x5+1
    // [189] (word) sin16s::x5_128#0 ← (word) sin16s::x5#0 >> (byte) 4 -- vwuz1=vwuz2_ror_4 
    lda.z x5+1
    lsr
    sta.z x5_128+1
    lda.z x5
    ror
    sta.z x5_128
    lsr.z x5_128+1
    ror.z x5_128
    lsr.z x5_128+1
    ror.z x5_128
    lsr.z x5_128+1
    ror.z x5_128
    // [190] (word) sin16s::usinx#1 ← (word) sin16s::usinx#0 + (word) sin16s::x5_128#0 -- vwuz1=vwuz2_plus_vwuz3 
    lda.z usinx
    clc
    adc.z x5_128
    sta.z usinx_1
    lda.z usinx+1
    adc.z x5_128+1
    sta.z usinx_1+1
    // [191] if((byte) sin16s::isUpper#2==(byte) 0) goto sin16s::@12 -- vbuz1_eq_0_then_la1 
    lda.z isUpper
    cmp #0
    beq b12
    jmp b6
    // sin16s::@6
  b6:
    // [192] (signed word) sin16s::sinx#1 ← - (signed word)(word) sin16s::usinx#1 -- vwsz1=_neg_vwsz2 
    sec
    lda #0
    sbc.z usinx_1
    sta.z sinx
    lda #0
    sbc.z usinx_1+1
    sta.z sinx+1
    // [193] phi from sin16s::@12 sin16s::@6 to sin16s::@3 [phi:sin16s::@12/sin16s::@6->sin16s::@3]
  b3_from_b12:
  b3_from_b6:
    // [193] phi (signed word) sin16s::return#1 = (signed word~) sin16s::return#5 [phi:sin16s::@12/sin16s::@6->sin16s::@3#0] -- register_copy 
    jmp b3
    // sin16s::@3
  b3:
    jmp breturn
    // sin16s::@return
  breturn:
    // [194] return 
    rts
    // sin16s::@12
  b12:
    // [195] (signed word~) sin16s::return#5 ← (signed word)(word) sin16s::usinx#1 -- vwsz1=vwsz2 
    lda.z usinx_1
    sta.z return_5
    lda.z usinx_1+1
    sta.z return_5+1
    jmp b3_from_b12
}
  // mulu16_sel
// Calculate val*val for two unsigned word values - the result is 16 selected bits of the 32-bit result.
// The select parameter indicates how many of the highest bits of the 32-bit result to skip
// mulu16_sel(word zeropage($3a) v1, word zeropage($3c) v2, byte zeropage($3e) select)
mulu16_sel: {
    .label _0 = $c8
    .label _1 = $cc
    .label v1 = $3a
    .label v2 = $3c
    .label return = $aa
    .label return_1 = $ae
    .label return_2 = $b2
    .label return_10 = $b8
    .label return_11 = $bc
    .label select = $3e
    .label return_12 = $d0
    // [197] (word) mul16u::a#2 ← (word) mulu16_sel::v1#5 -- vwuz1=vwuz2 
    lda.z v1
    sta.z mul16u.a
    lda.z v1+1
    sta.z mul16u.a+1
    // [198] (word) mul16u::b#1 ← (word) mulu16_sel::v2#5 -- vwuz1=vwuz2 
    lda.z v2
    sta.z mul16u.b_1
    lda.z v2+1
    sta.z mul16u.b_1+1
    // [199] call mul16u 
    // [81] phi from mulu16_sel to mul16u [phi:mulu16_sel->mul16u]
  mul16u_from_mulu16_sel:
    // [81] phi (word) mul16u::a#6 = (word) mul16u::a#2 [phi:mulu16_sel->mul16u#0] -- register_copy 
    // [81] phi (dword) mul16u::mb#0 = (word) mul16u::b#1 [phi:mulu16_sel->mul16u#1] -- vduz1=vwuz2 
    lda.z mul16u.b_1
    sta.z mul16u.mb
    lda.z mul16u.b_1+1
    sta.z mul16u.mb+1
    lda #0
    sta.z mul16u.mb+2
    sta.z mul16u.mb+3
    jsr mul16u
    // [200] (dword) mul16u::return#3 ← (dword) mul16u::res#2 -- vduz1=vduz2 
    lda.z mul16u.res
    sta.z mul16u.return_3
    lda.z mul16u.res+1
    sta.z mul16u.return_3+1
    lda.z mul16u.res+2
    sta.z mul16u.return_3+2
    lda.z mul16u.res+3
    sta.z mul16u.return_3+3
    jmp b1
    // mulu16_sel::@1
  b1:
    // [201] (dword~) mulu16_sel::$0 ← (dword) mul16u::return#3 -- vduz1=vduz2 
    lda.z mul16u.return_3
    sta.z _0
    lda.z mul16u.return_3+1
    sta.z _0+1
    lda.z mul16u.return_3+2
    sta.z _0+2
    lda.z mul16u.return_3+3
    sta.z _0+3
    // [202] (dword~) mulu16_sel::$1 ← (dword~) mulu16_sel::$0 << (byte) mulu16_sel::select#5 -- vduz1=vduz2_rol_vbuz3 
    lda.z _0
    sta.z _1
    lda.z _0+1
    sta.z _1+1
    lda.z _0+2
    sta.z _1+2
    lda.z _0+3
    sta.z _1+3
    ldx.z select
    beq !e+
  !:
    asl.z _1
    rol.z _1+1
    rol.z _1+2
    rol.z _1+3
    dex
    bne !-
  !e:
    // [203] (word) mulu16_sel::return#12 ← > (dword~) mulu16_sel::$1 -- vwuz1=_hi_vduz2 
    lda.z _1+2
    sta.z return_12
    lda.z _1+3
    sta.z return_12+1
    jmp breturn
    // mulu16_sel::@return
  breturn:
    // [204] return 
    rts
}
  // div32u16u
// Divide unsigned 32-bit dword dividend with a 16-bit word divisor
// The 16-bit word remainder can be found in rem16u after the division
div32u16u: {
    .label quotient_hi = $d4
    .label quotient_lo = $d8
    .label return = $da
    .label return_2 = $90
    // [206] call divr16u 
    // [215] phi from div32u16u to divr16u [phi:div32u16u->divr16u]
  divr16u_from_div32u16u:
    // [215] phi (word) divr16u::dividend#5 = >(const dword) PI2_u4f28#0 [phi:div32u16u->divr16u#0] -- vwuz1=vwuc1 
    lda #<PI2_u4f28>>$10
    sta.z divr16u.dividend
    lda #>PI2_u4f28>>$10
    sta.z divr16u.dividend+1
    // [215] phi (word) divr16u::rem#10 = (byte) 0 [phi:div32u16u->divr16u#1] -- vwuz1=vbuc1 
    lda #<0
    sta.z divr16u.rem
    lda #>0
    sta.z divr16u.rem+1
    jsr divr16u
    // [207] (word) divr16u::return#2 ← (word) divr16u::return#0 -- vwuz1=vwuz2 
    lda.z divr16u.return
    sta.z divr16u.return_2
    lda.z divr16u.return+1
    sta.z divr16u.return_2+1
    jmp b1
    // div32u16u::@1
  b1:
    // [208] (word) div32u16u::quotient_hi#0 ← (word) divr16u::return#2 -- vwuz1=vwuz2 
    lda.z divr16u.return_2
    sta.z quotient_hi
    lda.z divr16u.return_2+1
    sta.z quotient_hi+1
    // [209] (word) divr16u::rem#4 ← (word) rem16u#1 -- vwuz1=vwuz2 
    lda.z rem16u
    sta.z divr16u.rem
    lda.z rem16u+1
    sta.z divr16u.rem+1
    // [210] call divr16u 
    // [215] phi from div32u16u::@1 to divr16u [phi:div32u16u::@1->divr16u]
  divr16u_from_b1:
    // [215] phi (word) divr16u::dividend#5 = <(const dword) PI2_u4f28#0 [phi:div32u16u::@1->divr16u#0] -- vwuz1=vwuc1 
    lda #<PI2_u4f28&$ffff
    sta.z divr16u.dividend
    lda #>PI2_u4f28&$ffff
    sta.z divr16u.dividend+1
    // [215] phi (word) divr16u::rem#10 = (word) divr16u::rem#4 [phi:div32u16u::@1->divr16u#1] -- register_copy 
    jsr divr16u
    // [211] (word) divr16u::return#3 ← (word) divr16u::return#0 -- vwuz1=vwuz2 
    lda.z divr16u.return
    sta.z divr16u.return_3
    lda.z divr16u.return+1
    sta.z divr16u.return_3+1
    jmp b2
    // div32u16u::@2
  b2:
    // [212] (word) div32u16u::quotient_lo#0 ← (word) divr16u::return#3 -- vwuz1=vwuz2 
    lda.z divr16u.return_3
    sta.z quotient_lo
    lda.z divr16u.return_3+1
    sta.z quotient_lo+1
    // [213] (dword) div32u16u::return#0 ← (word) div32u16u::quotient_hi#0 dw= (word) div32u16u::quotient_lo#0 -- vduz1=vwuz2_dword_vwuz3 
    lda.z quotient_hi
    sta.z return+2
    lda.z quotient_hi+1
    sta.z return+3
    lda.z quotient_lo
    sta.z return
    lda.z quotient_lo+1
    sta.z return+1
    jmp breturn
    // div32u16u::@return
  breturn:
    // [214] return 
    rts
}
  // divr16u
// Performs division on two 16 bit unsigned words and an initial remainder
// Returns the quotient dividend/divisor.
// The final remainder will be set into the global variable rem16u
// Implemented using simple binary division
// divr16u(word zeropage($41) dividend, word zeropage($3f) rem)
divr16u: {
    .label _1 = $de
    .label _2 = $df
    .label rem = $3f
    .label dividend = $41
    .label quotient = $43
    .label i = $45
    .label return = $43
    .label return_2 = $d2
    .label return_3 = $d6
    // [216] phi from divr16u to divr16u::@1 [phi:divr16u->divr16u::@1]
  b1_from_divr16u:
    // [216] phi (byte) divr16u::i#2 = (byte) 0 [phi:divr16u->divr16u::@1#0] -- vbuz1=vbuc1 
    lda #0
    sta.z i
    // [216] phi (word) divr16u::quotient#3 = (byte) 0 [phi:divr16u->divr16u::@1#1] -- vwuz1=vbuc1 
    lda #<0
    sta.z quotient
    lda #>0
    sta.z quotient+1
    // [216] phi (word) divr16u::dividend#3 = (word) divr16u::dividend#5 [phi:divr16u->divr16u::@1#2] -- register_copy 
    // [216] phi (word) divr16u::rem#5 = (word) divr16u::rem#10 [phi:divr16u->divr16u::@1#3] -- register_copy 
    jmp b1
    // [216] phi from divr16u::@3 to divr16u::@1 [phi:divr16u::@3->divr16u::@1]
  b1_from_b3:
    // [216] phi (byte) divr16u::i#2 = (byte) divr16u::i#1 [phi:divr16u::@3->divr16u::@1#0] -- register_copy 
    // [216] phi (word) divr16u::quotient#3 = (word) divr16u::return#0 [phi:divr16u::@3->divr16u::@1#1] -- register_copy 
    // [216] phi (word) divr16u::dividend#3 = (word) divr16u::dividend#0 [phi:divr16u::@3->divr16u::@1#2] -- register_copy 
    // [216] phi (word) divr16u::rem#5 = (word) divr16u::rem#11 [phi:divr16u::@3->divr16u::@1#3] -- register_copy 
    jmp b1
    // divr16u::@1
  b1:
    // [217] (word) divr16u::rem#0 ← (word) divr16u::rem#5 << (byte) 1 -- vwuz1=vwuz1_rol_1 
    asl.z rem
    rol.z rem+1
    // [218] (byte~) divr16u::$1 ← > (word) divr16u::dividend#3 -- vbuz1=_hi_vwuz2 
    lda.z dividend+1
    sta.z _1
    // [219] (byte~) divr16u::$2 ← (byte~) divr16u::$1 & (byte) $80 -- vbuz1=vbuz2_band_vbuc1 
    lda #$80
    and.z _1
    sta.z _2
    // [220] if((byte~) divr16u::$2==(byte) 0) goto divr16u::@2 -- vbuz1_eq_0_then_la1 
    lda.z _2
    cmp #0
    beq b2_from_b1
    jmp b4
    // divr16u::@4
  b4:
    // [221] (word) divr16u::rem#1 ← (word) divr16u::rem#0 | (byte) 1 -- vwuz1=vwuz1_bor_vbuc1 
    lda #1
    ora.z rem
    sta.z rem
    // [222] phi from divr16u::@1 divr16u::@4 to divr16u::@2 [phi:divr16u::@1/divr16u::@4->divr16u::@2]
  b2_from_b1:
  b2_from_b4:
    // [222] phi (word) divr16u::rem#6 = (word) divr16u::rem#0 [phi:divr16u::@1/divr16u::@4->divr16u::@2#0] -- register_copy 
    jmp b2
    // divr16u::@2
  b2:
    // [223] (word) divr16u::dividend#0 ← (word) divr16u::dividend#3 << (byte) 1 -- vwuz1=vwuz1_rol_1 
    asl.z dividend
    rol.z dividend+1
    // [224] (word) divr16u::quotient#1 ← (word) divr16u::quotient#3 << (byte) 1 -- vwuz1=vwuz1_rol_1 
    asl.z quotient
    rol.z quotient+1
    // [225] if((word) divr16u::rem#6<(const word) sin16s_gen2::wavelength#0) goto divr16u::@3 -- vwuz1_lt_vwuc1_then_la1 
    lda.z rem+1
    cmp #>sin16s_gen2.wavelength
    bcc b3_from_b2
    bne !+
    lda.z rem
    cmp #<sin16s_gen2.wavelength
    bcc b3_from_b2
  !:
    jmp b5
    // divr16u::@5
  b5:
    // [226] (word) divr16u::quotient#2 ← ++ (word) divr16u::quotient#1 -- vwuz1=_inc_vwuz1 
    inc.z quotient
    bne !+
    inc.z quotient+1
  !:
    // [227] (word) divr16u::rem#2 ← (word) divr16u::rem#6 - (const word) sin16s_gen2::wavelength#0 -- vwuz1=vwuz1_minus_vwuc1 
    lda.z rem
    sec
    sbc #<sin16s_gen2.wavelength
    sta.z rem
    lda.z rem+1
    sbc #>sin16s_gen2.wavelength
    sta.z rem+1
    // [228] phi from divr16u::@2 divr16u::@5 to divr16u::@3 [phi:divr16u::@2/divr16u::@5->divr16u::@3]
  b3_from_b2:
  b3_from_b5:
    // [228] phi (word) divr16u::return#0 = (word) divr16u::quotient#1 [phi:divr16u::@2/divr16u::@5->divr16u::@3#0] -- register_copy 
    // [228] phi (word) divr16u::rem#11 = (word) divr16u::rem#6 [phi:divr16u::@2/divr16u::@5->divr16u::@3#1] -- register_copy 
    jmp b3
    // divr16u::@3
  b3:
    // [229] (byte) divr16u::i#1 ← ++ (byte) divr16u::i#2 -- vbuz1=_inc_vbuz1 
    inc.z i
    // [230] if((byte) divr16u::i#1!=(byte) $10) goto divr16u::@1 -- vbuz1_neq_vbuc1_then_la1 
    lda #$10
    cmp.z i
    bne b1_from_b3
    jmp b6
    // divr16u::@6
  b6:
    // [231] (word) rem16u#1 ← (word) divr16u::rem#11 -- vwuz1=vwuz2 
    lda.z rem
    sta.z rem16u
    lda.z rem+1
    sta.z rem16u+1
    jmp breturn
    // divr16u::@return
  breturn:
    // [232] return 
    rts
}
  // irq
// Interrupt Routine counting frames
irq: {
    // entry interrupt(HARDWARE_CLOBBER)
    sta rega+1
    stx regx+1
    sty regy+1
    // [233] *((const byte*) BGCOL#0) ← (const byte) WHITE#0 -- _deref_pbuc1=vbuc2 
    lda #WHITE
    sta BGCOL
    // [234] if((byte) 0==(byte) frame_cnt#0) goto irq::@1 -- vbuc1_eq_vbuz1_then_la1 
    lda #0
    cmp.z frame_cnt
    beq b1_from_irq
    jmp b2
    // irq::@2
  b2:
    // [235] (byte) frame_cnt#1 ← ++ (byte) frame_cnt#0 -- vbuz1=_inc_vbuz1 
    inc.z frame_cnt
    // [236] phi from irq irq::@2 to irq::@1 [phi:irq/irq::@2->irq::@1]
  b1_from_irq:
  b1_from_b2:
    // [236] phi (byte) frame_cnt#2 = (byte) frame_cnt#0 [phi:irq/irq::@2->irq::@1#0] -- register_copy 
    jmp b1
    // irq::@1
  b1:
    // [237] *((const byte*) BGCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 
    lda #BLACK
    sta BGCOL
    // [238] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 
    // Acknowledge the IRQ
    lda #IRQ_RASTER
    sta IRQ_STATUS
    jmp breturn
    // irq::@return
  breturn:
    // [239] return  - exit interrupt(HARDWARE_CLOBBER)
  rega:
    lda #00
  regx:
    ldx #00
  regy:
    ldy #00
    rti
}
  // File Data
  // Tables for the plotter - initialized by calling bitmap_init();
  bitmap_plot_ylo: .fill $100, 0
  bitmap_plot_yhi: .fill $100, 0
  bitmap_plot_bit: .fill $100, 0
  plots_per_frame: .fill $100, 0
  .align $100
  SINUS: .fill 2*$200, 0

REGISTER UPLIFT POTENTIAL REGISTERS
Equivalence Class zp ZP_BYTE:141 [ bitmap_init::$4 ] has ALU potential.
Statement [1] (byte) frame_cnt#0 ← (byte) 1 [ frame_cnt#0 ] (  [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [11] *((const byte*) D011#0) ← (const byte) VIC_BMM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte) 3 [ frame_cnt#0 ] ( main:3 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [13] *((const byte*) D018#0) ← (const byte) main::toD0181_return#0 [ frame_cnt#0 ] ( main:3 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [16] (word~) main::$32 ← (word) main::idx_x#11 << (byte) 1 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$32 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$32 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:8 [ main::r_add#10 main::r_add#12 main::r_add#1 ]
Statement [17] (signed word*~) main::$34 ← (const signed word[$200]) SINUS#0 + (word~) main::$32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$34 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$34 ] ) always clobbers reg byte a 
Statement [18] (signed word) main::cos_x#0 ← *((signed word*~) main::$34) [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::cos_x#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::cos_x#0 ] ) always clobbers reg byte a reg byte y 
Removing always clobbered register reg byte y as potential for zp ZP_BYTE:8 [ main::r_add#10 main::r_add#12 main::r_add#1 ]
Statement [19] (signed word) mul16s::a#1 ← (signed word) main::r#10 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::cos_x#0 mul16s::a#1 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::cos_x#0 mul16s::a#1 ] ) always clobbers reg byte a 
Statement [20] (signed word) mul16s::b#1 ← (signed word) main::cos_x#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#1 mul16s::b#1 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#1 mul16s::b#1 ] ) always clobbers reg byte a 
Statement [22] (signed dword) mul16s::return#3 ← (signed dword) mul16s::return#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::return#3 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::return#3 ] ) always clobbers reg byte a 
Statement [23] (signed dword) main::xpos#0 ← (signed dword) mul16s::return#3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::xpos#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::xpos#0 ] ) always clobbers reg byte a 
Statement [24] (word~) main::$10 ← > (signed dword) main::xpos#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$10 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$10 ] ) always clobbers reg byte a 
Statement [25] (signed word~) main::$11 ← (signed word)(word~) main::$10 >> (signed byte) 2 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$11 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$11 ] ) always clobbers reg byte a 
Statement [26] (signed word) main::x#0 ← (signed word) $a0 + (signed word~) main::$11 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 ] ) always clobbers reg byte a 
Statement [27] (word~) main::$33 ← (word) main::idx_y#3 << (byte) 1 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$33 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$33 ] ) always clobbers reg byte a 
Statement [28] (signed word*~) main::$35 ← (const signed word[$200]) SINUS#0 + (word~) main::$33 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$35 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$35 ] ) always clobbers reg byte a 
Statement [29] (signed word) main::sin_y#0 ← *((signed word*~) main::$35) [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::sin_y#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::sin_y#0 ] ) always clobbers reg byte a reg byte y 
Statement [30] (signed word) mul16s::a#2 ← (signed word) main::r#10 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::sin_y#0 mul16s::a#2 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::sin_y#0 mul16s::a#2 ] ) always clobbers reg byte a 
Statement [31] (signed word) mul16s::b#2 ← (signed word) main::sin_y#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#2 mul16s::b#2 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#2 mul16s::b#2 ] ) always clobbers reg byte a 
Statement [33] (signed dword) mul16s::return#4 ← (signed dword) mul16s::return#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::return#4 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::return#4 ] ) always clobbers reg byte a 
Statement [34] (signed dword) main::ypos#0 ← (signed dword) mul16s::return#4 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::ypos#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::ypos#0 ] ) always clobbers reg byte a 
Statement [35] (word~) main::$16 ← > (signed dword) main::ypos#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$16 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$16 ] ) always clobbers reg byte a 
Statement [36] (signed word~) main::$17 ← (signed word)(word~) main::$16 >> (signed byte) 2 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$17 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$17 ] ) always clobbers reg byte a 
Statement [37] (signed word) main::y#0 ← (signed byte) $64 + (signed word~) main::$17 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::y#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::y#0 ] ) always clobbers reg byte a 
Statement [38] (byte) bitmap_plot::y#0 ← (byte)(word)(signed word) main::y#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 bitmap_plot::y#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 bitmap_plot::y#0 ] ) always clobbers reg byte a 
Statement [39] (word) bitmap_plot::x#0 ← (word)(signed word) main::x#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::y#0 bitmap_plot::x#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::y#0 bitmap_plot::x#0 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:111 [ bitmap_plot::y#0 ]
Statement [41] *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0) ← ++ *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0) [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 ] ) always clobbers reg byte x 
Removing always clobbered register reg byte x as potential for zp ZP_BYTE:8 [ main::r_add#10 main::r_add#12 main::r_add#1 ]
Statement [42] (word) main::idx_x#1 ← (word) main::idx_x#11 + (byte) main::r_add#10 [ frame_cnt#0 main::r#10 main::idx_y#3 main::r_add#10 main::idx_x#1 ] ( main:3 [ frame_cnt#0 main::r#10 main::idx_y#3 main::r_add#10 main::idx_x#1 ] ) always clobbers reg byte a 
Statement [43] if((word) main::idx_x#1<(word) $200) goto main::@16 [ frame_cnt#0 main::r#10 main::idx_y#3 main::r_add#10 main::idx_x#1 ] ( main:3 [ frame_cnt#0 main::r#10 main::idx_y#3 main::r_add#10 main::idx_x#1 ] ) always clobbers reg byte a 
Statement [46] (word) main::idx_y#1 ← (word) main::idx_y#3 + (byte) main::r_add#10 [ frame_cnt#0 main::r#10 main::r_add#10 main::idx_x#10 main::idx_y#1 ] ( main:3 [ frame_cnt#0 main::r#10 main::r_add#10 main::idx_x#10 main::idx_y#1 ] ) always clobbers reg byte a 
Statement [47] if((word) main::idx_y#1<(word) $200) goto main::@17 [ frame_cnt#0 main::r#10 main::r_add#10 main::idx_x#10 main::idx_y#1 ] ( main:3 [ frame_cnt#0 main::r#10 main::r_add#10 main::idx_x#10 main::idx_y#1 ] ) always clobbers reg byte a 
Statement [50] (signed word) main::r#1 ← (signed word) main::r#10 + (byte) main::r_add#10 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ( main:3 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ) always clobbers reg byte a 
Statement [51] if((word) main::idx_x#10!=(byte) 0) goto main::@5 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ( main:3 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ) always clobbers reg byte a 
Statement [52] if((byte) main::r_add#10==(byte) 1) goto main::@5 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ( main:3 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ) always clobbers reg byte a 
Statement [55] if((signed word) main::r#1>=(signed word)(number) $200*(number) $c+(number) $100) goto main::@7 [ frame_cnt#0 main::idx_x#10 main::r#1 main::idx_y#10 main::r_add#12 ] ( main:3 [ frame_cnt#0 main::idx_x#10 main::r#1 main::idx_y#10 main::r_add#12 ] ) always clobbers reg byte a 
Statement [57] (word) bitmap_plot::plotter#0 ← *((const byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_plot::y#0) w= *((const byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_plot::y#0) [ bitmap_plot::x#0 bitmap_plot::plotter#0 ] ( main:3::bitmap_plot:40 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::x#0 bitmap_plot::plotter#0 ] ) always clobbers reg byte a 
Statement [58] (word~) bitmap_plot::$1 ← (word) bitmap_plot::x#0 & (word) $fff8 [ bitmap_plot::x#0 bitmap_plot::plotter#0 bitmap_plot::$1 ] ( main:3::bitmap_plot:40 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::x#0 bitmap_plot::plotter#0 bitmap_plot::$1 ] ) always clobbers reg byte a 
Statement [59] (byte*) bitmap_plot::plotter#1 ← (byte*)(word) bitmap_plot::plotter#0 + (word~) bitmap_plot::$1 [ bitmap_plot::x#0 bitmap_plot::plotter#1 ] ( main:3::bitmap_plot:40 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::x#0 bitmap_plot::plotter#1 ] ) always clobbers reg byte a 
Statement [60] (byte~) bitmap_plot::$2 ← < (word) bitmap_plot::x#0 [ bitmap_plot::plotter#1 bitmap_plot::$2 ] ( main:3::bitmap_plot:40 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::plotter#1 bitmap_plot::$2 ] ) always clobbers reg byte a 
Statement [61] *((byte*) bitmap_plot::plotter#1) ← *((byte*) bitmap_plot::plotter#1) | *((const byte[$100]) bitmap_plot_bit#0 + (byte~) bitmap_plot::$2) [ ] ( main:3::bitmap_plot:40 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 ] ) always clobbers reg byte a reg byte y 
Statement [64] (word) mul16u::a#1 ← (word)(signed word) mul16s::a#3 [ mul16s::a#3 mul16s::b#3 mul16u::a#1 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::a#1 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::a#1 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::a#1 ] ) always clobbers reg byte a 
Statement [65] (word) mul16u::b#0 ← (word)(signed word) mul16s::b#3 [ mul16s::a#3 mul16s::b#3 mul16u::a#1 mul16u::b#0 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::a#1 mul16u::b#0 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::a#1 mul16u::b#0 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::a#1 mul16u::b#0 ] ) always clobbers reg byte a 
Statement [67] (dword) mul16u::return#2 ← (dword) mul16u::res#2 [ mul16s::a#3 mul16s::b#3 mul16u::return#2 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::return#2 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::return#2 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::return#2 ] ) always clobbers reg byte a 
Statement [68] (dword) mul16s::m#0 ← (dword) mul16u::return#2 [ mul16s::a#3 mul16s::b#3 mul16s::m#0 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] ) always clobbers reg byte a 
Statement [69] if((signed word) mul16s::a#3>=(signed byte) 0) goto mul16s::@1 [ mul16s::a#3 mul16s::b#3 mul16s::m#0 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] ) always clobbers reg byte a 
Statement [70] (word~) mul16s::$9 ← > (dword) mul16s::m#0 [ mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$9 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$9 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$9 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$9 ] ) always clobbers reg byte a 
Statement [71] (word~) mul16s::$16 ← (word~) mul16s::$9 - (word)(signed word) mul16s::b#3 [ mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$16 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$16 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$16 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$16 ] ) always clobbers reg byte a 
Statement [72] (dword) mul16s::m#1 ← (dword) mul16s::m#0 hi= (word~) mul16s::$16 [ mul16s::a#3 mul16s::b#3 mul16s::m#1 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16s::m#1 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16s::m#1 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16s::m#1 ] ) always clobbers reg byte a 
Statement [74] if((signed word) mul16s::b#3>=(signed byte) 0) goto mul16s::@2 [ mul16s::a#3 mul16s::m#5 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::m#5 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::m#5 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::m#5 ] ) always clobbers reg byte a 
Statement [75] (word~) mul16s::$13 ← > (dword) mul16s::m#5 [ mul16s::a#3 mul16s::m#5 mul16s::$13 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::m#5 mul16s::$13 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::m#5 mul16s::$13 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::m#5 mul16s::$13 ] ) always clobbers reg byte a 
Statement [76] (word~) mul16s::$17 ← (word~) mul16s::$13 - (word)(signed word) mul16s::a#3 [ mul16s::m#5 mul16s::$17 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::m#5 mul16s::$17 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::m#5 mul16s::$17 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::m#5 mul16s::$17 ] ) always clobbers reg byte a 
Statement [77] (dword) mul16s::m#2 ← (dword) mul16s::m#5 hi= (word~) mul16s::$17 [ mul16s::m#2 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::m#2 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::m#2 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::m#2 ] ) always clobbers reg byte a 
Statement [79] (signed dword) mul16s::return#0 ← (signed dword)(dword) mul16s::m#4 [ mul16s::return#0 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::return#0 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::return#0 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::return#0 ] ) always clobbers reg byte a 
Statement [83] if((word) mul16u::a#3!=(byte) 0) goto mul16u::@2 [ mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] ( main:3::mul16s:21::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::mul16s:32::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::mul16s:146::mul16u:66 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:51 [ sin16s::isUpper#2 ]
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:62 [ mulu16_sel::select#5 ]
Statement [85] (byte~) mul16u::$1 ← (word) mul16u::a#3 & (byte) 1 [ mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] ( main:3::mul16s:21::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::mul16s:32::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::mul16s:146::mul16u:66 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] ) always clobbers reg byte a 
Statement [87] (dword) mul16u::res#1 ← (dword) mul16u::res#2 + (dword) mul16u::mb#2 [ mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] ( main:3::mul16s:21::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::mul16s:32::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::mul16s:146::mul16u:66 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::select#5 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::select#5 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::select#5 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] ) always clobbers reg byte a 
Statement [92] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [93] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [94] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [95] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) | (byte) $80 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [96] *((const byte*) RASTER#0) ← (byte) 0 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [97] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [98] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [107] if((word) memset::num#2<=(byte) 0) goto memset::@return [ memset::num#2 memset::str#3 memset::c#4 ] ( main:3::bitmap_clear:10::memset:102 [ frame_cnt#0 memset::num#2 memset::str#3 memset::c#4 ] main:3::bitmap_clear:10::memset:104 [ frame_cnt#0 memset::num#2 memset::str#3 memset::c#4 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:35 [ memset::c#4 ]
Statement [108] (byte*) memset::end#0 ← (byte*)(void*) memset::str#3 + (word) memset::num#2 [ memset::str#3 memset::c#4 memset::end#0 ] ( main:3::bitmap_clear:10::memset:102 [ frame_cnt#0 memset::str#3 memset::c#4 memset::end#0 ] main:3::bitmap_clear:10::memset:104 [ frame_cnt#0 memset::str#3 memset::c#4 memset::end#0 ] ) always clobbers reg byte a 
Statement [109] (byte*~) memset::dst#4 ← (byte*)(void*) memset::str#3 [ memset::c#4 memset::end#0 memset::dst#4 ] ( main:3::bitmap_clear:10::memset:102 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#4 ] main:3::bitmap_clear:10::memset:104 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#4 ] ) always clobbers reg byte a 
Statement [111] if((byte*) memset::dst#2!=(byte*) memset::end#0) goto memset::@3 [ memset::c#4 memset::end#0 memset::dst#2 ] ( main:3::bitmap_clear:10::memset:102 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#2 ] main:3::bitmap_clear:10::memset:104 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#2 ] ) always clobbers reg byte a 
Statement [113] *((byte*) memset::dst#2) ← (byte) memset::c#4 [ memset::c#4 memset::end#0 memset::dst#2 ] ( main:3::bitmap_clear:10::memset:102 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#2 ] main:3::bitmap_clear:10::memset:104 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#2 ] ) always clobbers reg byte a reg byte y 
Removing always clobbered register reg byte y as potential for zp ZP_BYTE:35 [ memset::c#4 ]
Statement [132] (byte*) bitmap_init::yoffs#1 ← (byte*) bitmap_init::yoffs#2 + (word)(number) $28*(number) 8 [ bitmap_init::y#2 bitmap_init::yoffs#1 ] ( main:3::bitmap_init:8 [ frame_cnt#0 bitmap_init::y#2 bitmap_init::yoffs#1 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:40 [ bitmap_init::y#2 bitmap_init::y#1 ]
Statement [139] (dword) div32u16u::return#2 ← (dword) div32u16u::return#0 [ div32u16u::return#2 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 div32u16u::return#2 ] ) always clobbers reg byte a 
Statement [140] (dword) sin16s_gen2::step#0 ← (dword) div32u16u::return#2 [ sin16s_gen2::step#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 ] ) always clobbers reg byte a 
Statement [142] (dword) sin16s::x#0 ← (dword) sin16s_gen2::x#6 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::x#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::x#0 ] ) always clobbers reg byte a 
Statement [144] (signed word) sin16s::return#0 ← (signed word) sin16s::return#1 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::return#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::return#0 ] ) always clobbers reg byte a 
Statement [145] (signed word) mul16s::a#0 ← (signed word) sin16s::return#0 [ mul16s::a#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 mul16s::a#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 ] ) always clobbers reg byte a 
Statement [147] (signed dword) mul16s::return#2 ← (signed dword) mul16s::return#0 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::return#2 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::return#2 ] ) always clobbers reg byte a 
Statement [148] (signed dword~) sin16s_gen2::$6 ← (signed dword) mul16s::return#2 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s_gen2::$6 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s_gen2::$6 ] ) always clobbers reg byte a 
Statement [149] (word~) sin16s_gen2::$9 ← > (signed dword~) sin16s_gen2::$6 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s_gen2::$9 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s_gen2::$9 ] ) always clobbers reg byte a 
Statement [150] *((signed word*) sin16s_gen2::sintab#10) ← (signed word)(word~) sin16s_gen2::$9 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 ] ) always clobbers reg byte a reg byte y 
Statement [151] (signed word*) sin16s_gen2::sintab#0 ← (signed word*) sin16s_gen2::sintab#10 + (const byte) SIZEOF_SIGNED_WORD [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#0 ] ) always clobbers reg byte a 
Statement [152] (dword) sin16s_gen2::x#1 ← (dword) sin16s_gen2::x#6 + (dword) sin16s_gen2::step#0 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#1 sin16s_gen2::sintab#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#1 sin16s_gen2::sintab#0 ] ) always clobbers reg byte a 
Statement [154] if((word) sin16s_gen2::i#1<(const word) sin16s_gen2::wavelength#0) goto sin16s_gen2::@2 [ sin16s_gen2::step#0 sin16s_gen2::i#1 sin16s_gen2::x#1 sin16s_gen2::sintab#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#1 sin16s_gen2::x#1 sin16s_gen2::sintab#0 ] ) always clobbers reg byte a 
Statement [156] if((dword) sin16s::x#0<(const dword) PI_u4f28#0) goto sin16s::@1 [ sin16s::x#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::x#0 ] ) always clobbers reg byte a 
Statement [157] (dword) sin16s::x#1 ← (dword) sin16s::x#0 - (const dword) PI_u4f28#0 [ sin16s::x#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::x#1 ] ) always clobbers reg byte a 
Statement [159] if((dword) sin16s::x#4<(const dword) PI_HALF_u4f28#0) goto sin16s::@2 [ sin16s::x#4 sin16s::isUpper#2 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::x#4 sin16s::isUpper#2 ] ) always clobbers reg byte a 
Statement [160] (dword) sin16s::x#2 ← (const dword) PI_u4f28#0 - (dword) sin16s::x#4 [ sin16s::isUpper#2 sin16s::x#2 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x#2 ] ) always clobbers reg byte a 
Statement [162] (dword~) sin16s::$4 ← (dword) sin16s::x#6 << (byte) 3 [ sin16s::isUpper#2 sin16s::$4 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::$4 ] ) always clobbers reg byte a reg byte y 
Removing always clobbered register reg byte y as potential for zp ZP_BYTE:51 [ sin16s::isUpper#2 ]
Statement [163] (word) sin16s::x1#0 ← > (dword~) sin16s::$4 [ sin16s::isUpper#2 sin16s::x1#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 ] ) always clobbers reg byte a 
Statement [164] (word) mulu16_sel::v1#0 ← (word) sin16s::x1#0 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#0 ] ) always clobbers reg byte a 
Statement [165] (word) mulu16_sel::v2#0 ← (word) sin16s::x1#0 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#0 mulu16_sel::v2#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#0 mulu16_sel::v2#0 ] ) always clobbers reg byte a 
Statement [167] (word) mulu16_sel::return#0 ← (word) mulu16_sel::return#12 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#0 ] ) always clobbers reg byte a 
Statement [168] (word) sin16s::x2#0 ← (word) mulu16_sel::return#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x2#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x2#0 ] ) always clobbers reg byte a 
Statement [169] (word) mulu16_sel::v1#1 ← (word) sin16s::x2#0 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#1 ] ) always clobbers reg byte a 
Statement [170] (word) mulu16_sel::v2#1 ← (word) sin16s::x1#0 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#1 mulu16_sel::v2#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#1 mulu16_sel::v2#1 ] ) always clobbers reg byte a 
Statement [172] (word) mulu16_sel::return#1 ← (word) mulu16_sel::return#12 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#1 ] ) always clobbers reg byte a 
Statement [173] (word) sin16s::x3#0 ← (word) mulu16_sel::return#1 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 ] ) always clobbers reg byte a 
Statement [174] (word) mulu16_sel::v1#2 ← (word) sin16s::x3#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::v1#2 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::v1#2 ] ) always clobbers reg byte a 
Statement [176] (word) mulu16_sel::return#2 ← (word) mulu16_sel::return#12 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::return#2 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::return#2 ] ) always clobbers reg byte a 
Statement [177] (word) sin16s::x3_6#0 ← (word) mulu16_sel::return#2 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 sin16s::x3_6#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 sin16s::x3_6#0 ] ) always clobbers reg byte a 
Statement [178] (word) sin16s::usinx#0 ← (word) sin16s::x1#0 - (word) sin16s::x3_6#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 sin16s::usinx#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 sin16s::usinx#0 ] ) always clobbers reg byte a 
Statement [179] (word) mulu16_sel::v1#3 ← (word) sin16s::x3#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#3 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#3 ] ) always clobbers reg byte a 
Statement [180] (word) mulu16_sel::v2#3 ← (word) sin16s::x1#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#3 mulu16_sel::v2#3 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#3 mulu16_sel::v2#3 ] ) always clobbers reg byte a 
Statement [182] (word) mulu16_sel::return#10 ← (word) mulu16_sel::return#12 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::return#10 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::return#10 ] ) always clobbers reg byte a 
Statement [183] (word) sin16s::x4#0 ← (word) mulu16_sel::return#10 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 sin16s::x4#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 sin16s::x4#0 ] ) always clobbers reg byte a 
Statement [184] (word) mulu16_sel::v1#4 ← (word) sin16s::x4#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#4 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#4 ] ) always clobbers reg byte a 
Statement [185] (word) mulu16_sel::v2#4 ← (word) sin16s::x1#0 [ sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::v1#4 mulu16_sel::v2#4 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::v1#4 mulu16_sel::v2#4 ] ) always clobbers reg byte a 
Statement [187] (word) mulu16_sel::return#11 ← (word) mulu16_sel::return#12 [ sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::return#11 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::return#11 ] ) always clobbers reg byte a 
Statement [188] (word) sin16s::x5#0 ← (word) mulu16_sel::return#11 [ sin16s::isUpper#2 sin16s::usinx#0 sin16s::x5#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 sin16s::x5#0 ] ) always clobbers reg byte a 
Statement [189] (word) sin16s::x5_128#0 ← (word) sin16s::x5#0 >> (byte) 4 [ sin16s::isUpper#2 sin16s::usinx#0 sin16s::x5_128#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 sin16s::x5_128#0 ] ) always clobbers reg byte a 
Statement [190] (word) sin16s::usinx#1 ← (word) sin16s::usinx#0 + (word) sin16s::x5_128#0 [ sin16s::isUpper#2 sin16s::usinx#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#1 ] ) always clobbers reg byte a 
Statement [192] (signed word) sin16s::sinx#1 ← - (signed word)(word) sin16s::usinx#1 [ sin16s::sinx#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::sinx#1 ] ) always clobbers reg byte a 
Statement [195] (signed word~) sin16s::return#5 ← (signed word)(word) sin16s::usinx#1 [ sin16s::return#5 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::return#5 ] ) always clobbers reg byte a 
Statement [197] (word) mul16u::a#2 ← (word) mulu16_sel::v1#5 [ mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] ) always clobbers reg byte a 
Statement [198] (word) mul16u::b#1 ← (word) mulu16_sel::v2#5 [ mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] ) always clobbers reg byte a 
Statement [200] (dword) mul16u::return#3 ← (dword) mul16u::res#2 [ mulu16_sel::select#5 mul16u::return#3 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::return#3 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::return#3 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::select#5 mul16u::return#3 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::select#5 mul16u::return#3 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::select#5 mul16u::return#3 ] ) always clobbers reg byte a 
Statement [201] (dword~) mulu16_sel::$0 ← (dword) mul16u::return#3 [ mulu16_sel::select#5 mulu16_sel::$0 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mulu16_sel::$0 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mulu16_sel::$0 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::select#5 mulu16_sel::$0 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::select#5 mulu16_sel::$0 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::select#5 mulu16_sel::$0 ] ) always clobbers reg byte a 
Statement [202] (dword~) mulu16_sel::$1 ← (dword~) mulu16_sel::$0 << (byte) mulu16_sel::select#5 [ mulu16_sel::$1 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::$1 ] ) always clobbers reg byte a 
Statement [203] (word) mulu16_sel::return#12 ← > (dword~) mulu16_sel::$1 [ mulu16_sel::return#12 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#12 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#12 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::return#12 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::return#12 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::return#12 ] ) always clobbers reg byte a 
Statement [207] (word) divr16u::return#2 ← (word) divr16u::return#0 [ divr16u::return#2 rem16u#1 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 divr16u::return#2 rem16u#1 ] ) always clobbers reg byte a 
Statement [208] (word) div32u16u::quotient_hi#0 ← (word) divr16u::return#2 [ div32u16u::quotient_hi#0 rem16u#1 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 div32u16u::quotient_hi#0 rem16u#1 ] ) always clobbers reg byte a 
Statement [209] (word) divr16u::rem#4 ← (word) rem16u#1 [ div32u16u::quotient_hi#0 divr16u::rem#4 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::rem#4 ] ) always clobbers reg byte a 
Statement [211] (word) divr16u::return#3 ← (word) divr16u::return#0 [ div32u16u::quotient_hi#0 divr16u::return#3 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::return#3 ] ) always clobbers reg byte a 
Statement [212] (word) div32u16u::quotient_lo#0 ← (word) divr16u::return#3 [ div32u16u::quotient_hi#0 div32u16u::quotient_lo#0 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 div32u16u::quotient_hi#0 div32u16u::quotient_lo#0 ] ) always clobbers reg byte a 
Statement [213] (dword) div32u16u::return#0 ← (word) div32u16u::quotient_hi#0 dw= (word) div32u16u::quotient_lo#0 [ div32u16u::return#0 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 div32u16u::return#0 ] ) always clobbers reg byte a 
Statement [218] (byte~) divr16u::$1 ← > (word) divr16u::dividend#3 [ divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#0 divr16u::$1 ] ( main:3::sin16s_gen2:6::div32u16u:138::divr16u:206 [ frame_cnt#0 divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#0 divr16u::$1 ] main:3::sin16s_gen2:6::div32u16u:138::divr16u:210 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#0 divr16u::$1 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:69 [ divr16u::i#2 divr16u::i#1 ]
Statement [221] (word) divr16u::rem#1 ← (word) divr16u::rem#0 | (byte) 1 [ divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#1 ] ( main:3::sin16s_gen2:6::div32u16u:138::divr16u:206 [ frame_cnt#0 divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#1 ] main:3::sin16s_gen2:6::div32u16u:138::divr16u:210 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#1 ] ) always clobbers reg byte a 
Statement [225] if((word) divr16u::rem#6<(const word) sin16s_gen2::wavelength#0) goto divr16u::@3 [ divr16u::i#2 divr16u::dividend#0 divr16u::rem#6 divr16u::quotient#1 ] ( main:3::sin16s_gen2:6::div32u16u:138::divr16u:206 [ frame_cnt#0 divr16u::i#2 divr16u::dividend#0 divr16u::rem#6 divr16u::quotient#1 ] main:3::sin16s_gen2:6::div32u16u:138::divr16u:210 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::i#2 divr16u::dividend#0 divr16u::rem#6 divr16u::quotient#1 ] ) always clobbers reg byte a 
Statement [227] (word) divr16u::rem#2 ← (word) divr16u::rem#6 - (const word) sin16s_gen2::wavelength#0 [ divr16u::i#2 divr16u::dividend#0 divr16u::quotient#2 divr16u::rem#2 ] ( main:3::sin16s_gen2:6::div32u16u:138::divr16u:206 [ frame_cnt#0 divr16u::i#2 divr16u::dividend#0 divr16u::quotient#2 divr16u::rem#2 ] main:3::sin16s_gen2:6::div32u16u:138::divr16u:210 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::i#2 divr16u::dividend#0 divr16u::quotient#2 divr16u::rem#2 ] ) always clobbers reg byte a 
Statement [231] (word) rem16u#1 ← (word) divr16u::rem#11 [ divr16u::return#0 rem16u#1 ] ( main:3::sin16s_gen2:6::div32u16u:138::divr16u:206 [ frame_cnt#0 divr16u::return#0 rem16u#1 ] main:3::sin16s_gen2:6::div32u16u:138::divr16u:210 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::return#0 rem16u#1 ] ) always clobbers reg byte a 
Statement [233] *((const byte*) BGCOL#0) ← (const byte) WHITE#0 [ frame_cnt#0 ] (  [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [234] if((byte) 0==(byte) frame_cnt#0) goto irq::@1 [ frame_cnt#0 ] (  [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [237] *((const byte*) BGCOL#0) ← (const byte) BLACK#0 [ ] (  [ ] ) always clobbers reg byte a 
Statement [238] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] (  [ ] ) always clobbers reg byte a 
Statement [239] return  [ ] (  [ ] ) always clobbers reg byte a reg byte x reg byte y 
Statement [1] (byte) frame_cnt#0 ← (byte) 1 [ frame_cnt#0 ] (  [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [11] *((const byte*) D011#0) ← (const byte) VIC_BMM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte) 3 [ frame_cnt#0 ] ( main:3 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [13] *((const byte*) D018#0) ← (const byte) main::toD0181_return#0 [ frame_cnt#0 ] ( main:3 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [16] (word~) main::$32 ← (word) main::idx_x#11 << (byte) 1 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$32 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$32 ] ) always clobbers reg byte a 
Statement [17] (signed word*~) main::$34 ← (const signed word[$200]) SINUS#0 + (word~) main::$32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$34 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$34 ] ) always clobbers reg byte a 
Statement [18] (signed word) main::cos_x#0 ← *((signed word*~) main::$34) [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::cos_x#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::cos_x#0 ] ) always clobbers reg byte a reg byte y 
Statement [19] (signed word) mul16s::a#1 ← (signed word) main::r#10 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::cos_x#0 mul16s::a#1 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::cos_x#0 mul16s::a#1 ] ) always clobbers reg byte a 
Statement [20] (signed word) mul16s::b#1 ← (signed word) main::cos_x#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#1 mul16s::b#1 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#1 mul16s::b#1 ] ) always clobbers reg byte a 
Statement [22] (signed dword) mul16s::return#3 ← (signed dword) mul16s::return#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::return#3 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::return#3 ] ) always clobbers reg byte a 
Statement [23] (signed dword) main::xpos#0 ← (signed dword) mul16s::return#3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::xpos#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::xpos#0 ] ) always clobbers reg byte a 
Statement [24] (word~) main::$10 ← > (signed dword) main::xpos#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$10 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$10 ] ) always clobbers reg byte a 
Statement [25] (signed word~) main::$11 ← (signed word)(word~) main::$10 >> (signed byte) 2 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$11 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::$11 ] ) always clobbers reg byte a 
Statement [26] (signed word) main::x#0 ← (signed word) $a0 + (signed word~) main::$11 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 ] ) always clobbers reg byte a 
Statement [27] (word~) main::$33 ← (word) main::idx_y#3 << (byte) 1 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$33 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$33 ] ) always clobbers reg byte a 
Statement [28] (signed word*~) main::$35 ← (const signed word[$200]) SINUS#0 + (word~) main::$33 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$35 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$35 ] ) always clobbers reg byte a 
Statement [29] (signed word) main::sin_y#0 ← *((signed word*~) main::$35) [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::sin_y#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::sin_y#0 ] ) always clobbers reg byte a reg byte y 
Statement [30] (signed word) mul16s::a#2 ← (signed word) main::r#10 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::sin_y#0 mul16s::a#2 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::sin_y#0 mul16s::a#2 ] ) always clobbers reg byte a 
Statement [31] (signed word) mul16s::b#2 ← (signed word) main::sin_y#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#2 mul16s::b#2 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#2 mul16s::b#2 ] ) always clobbers reg byte a 
Statement [33] (signed dword) mul16s::return#4 ← (signed dword) mul16s::return#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::return#4 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::return#4 ] ) always clobbers reg byte a 
Statement [34] (signed dword) main::ypos#0 ← (signed dword) mul16s::return#4 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::ypos#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::ypos#0 ] ) always clobbers reg byte a 
Statement [35] (word~) main::$16 ← > (signed dword) main::ypos#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$16 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$16 ] ) always clobbers reg byte a 
Statement [36] (signed word~) main::$17 ← (signed word)(word~) main::$16 >> (signed byte) 2 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$17 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::$17 ] ) always clobbers reg byte a 
Statement [37] (signed word) main::y#0 ← (signed byte) $64 + (signed word~) main::$17 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::y#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 main::y#0 ] ) always clobbers reg byte a 
Statement [38] (byte) bitmap_plot::y#0 ← (byte)(word)(signed word) main::y#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 bitmap_plot::y#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 bitmap_plot::y#0 ] ) always clobbers reg byte a 
Statement [39] (word) bitmap_plot::x#0 ← (word)(signed word) main::x#0 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::y#0 bitmap_plot::x#0 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::y#0 bitmap_plot::x#0 ] ) always clobbers reg byte a 
Statement [41] *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0) ← ++ *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0) [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 ] ( main:3 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 ] ) always clobbers reg byte x 
Statement [42] (word) main::idx_x#1 ← (word) main::idx_x#11 + (byte) main::r_add#10 [ frame_cnt#0 main::r#10 main::idx_y#3 main::r_add#10 main::idx_x#1 ] ( main:3 [ frame_cnt#0 main::r#10 main::idx_y#3 main::r_add#10 main::idx_x#1 ] ) always clobbers reg byte a 
Statement [43] if((word) main::idx_x#1<(word) $200) goto main::@16 [ frame_cnt#0 main::r#10 main::idx_y#3 main::r_add#10 main::idx_x#1 ] ( main:3 [ frame_cnt#0 main::r#10 main::idx_y#3 main::r_add#10 main::idx_x#1 ] ) always clobbers reg byte a 
Statement [46] (word) main::idx_y#1 ← (word) main::idx_y#3 + (byte) main::r_add#10 [ frame_cnt#0 main::r#10 main::r_add#10 main::idx_x#10 main::idx_y#1 ] ( main:3 [ frame_cnt#0 main::r#10 main::r_add#10 main::idx_x#10 main::idx_y#1 ] ) always clobbers reg byte a 
Statement [47] if((word) main::idx_y#1<(word) $200) goto main::@17 [ frame_cnt#0 main::r#10 main::r_add#10 main::idx_x#10 main::idx_y#1 ] ( main:3 [ frame_cnt#0 main::r#10 main::r_add#10 main::idx_x#10 main::idx_y#1 ] ) always clobbers reg byte a 
Statement [50] (signed word) main::r#1 ← (signed word) main::r#10 + (byte) main::r_add#10 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ( main:3 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ) always clobbers reg byte a 
Statement [51] if((word) main::idx_x#10!=(byte) 0) goto main::@5 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ( main:3 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ) always clobbers reg byte a 
Statement [52] if((byte) main::r_add#10==(byte) 1) goto main::@5 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ( main:3 [ frame_cnt#0 main::r_add#10 main::idx_x#10 main::r#1 main::idx_y#10 ] ) always clobbers reg byte a 
Statement [55] if((signed word) main::r#1>=(signed word)(number) $200*(number) $c+(number) $100) goto main::@7 [ frame_cnt#0 main::idx_x#10 main::r#1 main::idx_y#10 main::r_add#12 ] ( main:3 [ frame_cnt#0 main::idx_x#10 main::r#1 main::idx_y#10 main::r_add#12 ] ) always clobbers reg byte a 
Statement [57] (word) bitmap_plot::plotter#0 ← *((const byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_plot::y#0) w= *((const byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_plot::y#0) [ bitmap_plot::x#0 bitmap_plot::plotter#0 ] ( main:3::bitmap_plot:40 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::x#0 bitmap_plot::plotter#0 ] ) always clobbers reg byte a 
Statement [58] (word~) bitmap_plot::$1 ← (word) bitmap_plot::x#0 & (word) $fff8 [ bitmap_plot::x#0 bitmap_plot::plotter#0 bitmap_plot::$1 ] ( main:3::bitmap_plot:40 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::x#0 bitmap_plot::plotter#0 bitmap_plot::$1 ] ) always clobbers reg byte a 
Statement [59] (byte*) bitmap_plot::plotter#1 ← (byte*)(word) bitmap_plot::plotter#0 + (word~) bitmap_plot::$1 [ bitmap_plot::x#0 bitmap_plot::plotter#1 ] ( main:3::bitmap_plot:40 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::x#0 bitmap_plot::plotter#1 ] ) always clobbers reg byte a 
Statement [60] (byte~) bitmap_plot::$2 ← < (word) bitmap_plot::x#0 [ bitmap_plot::plotter#1 bitmap_plot::$2 ] ( main:3::bitmap_plot:40 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 bitmap_plot::plotter#1 bitmap_plot::$2 ] ) always clobbers reg byte a 
Statement [61] *((byte*) bitmap_plot::plotter#1) ← *((byte*) bitmap_plot::plotter#1) | *((const byte[$100]) bitmap_plot_bit#0 + (byte~) bitmap_plot::$2) [ ] ( main:3::bitmap_plot:40 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 ] ) always clobbers reg byte a reg byte y 
Statement [64] (word) mul16u::a#1 ← (word)(signed word) mul16s::a#3 [ mul16s::a#3 mul16s::b#3 mul16u::a#1 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::a#1 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::a#1 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::a#1 ] ) always clobbers reg byte a 
Statement [65] (word) mul16u::b#0 ← (word)(signed word) mul16s::b#3 [ mul16s::a#3 mul16s::b#3 mul16u::a#1 mul16u::b#0 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::a#1 mul16u::b#0 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::a#1 mul16u::b#0 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::a#1 mul16u::b#0 ] ) always clobbers reg byte a 
Statement [67] (dword) mul16u::return#2 ← (dword) mul16u::res#2 [ mul16s::a#3 mul16s::b#3 mul16u::return#2 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::return#2 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::return#2 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::return#2 ] ) always clobbers reg byte a 
Statement [68] (dword) mul16s::m#0 ← (dword) mul16u::return#2 [ mul16s::a#3 mul16s::b#3 mul16s::m#0 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] ) always clobbers reg byte a 
Statement [69] if((signed word) mul16s::a#3>=(signed byte) 0) goto mul16s::@1 [ mul16s::a#3 mul16s::b#3 mul16s::m#0 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 ] ) always clobbers reg byte a 
Statement [70] (word~) mul16s::$9 ← > (dword) mul16s::m#0 [ mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$9 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$9 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$9 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$9 ] ) always clobbers reg byte a 
Statement [71] (word~) mul16s::$16 ← (word~) mul16s::$9 - (word)(signed word) mul16s::b#3 [ mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$16 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$16 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$16 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16s::m#0 mul16s::$16 ] ) always clobbers reg byte a 
Statement [72] (dword) mul16s::m#1 ← (dword) mul16s::m#0 hi= (word~) mul16s::$16 [ mul16s::a#3 mul16s::b#3 mul16s::m#1 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16s::m#1 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16s::m#1 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16s::m#1 ] ) always clobbers reg byte a 
Statement [74] if((signed word) mul16s::b#3>=(signed byte) 0) goto mul16s::@2 [ mul16s::a#3 mul16s::m#5 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::m#5 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::m#5 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::m#5 ] ) always clobbers reg byte a 
Statement [75] (word~) mul16s::$13 ← > (dword) mul16s::m#5 [ mul16s::a#3 mul16s::m#5 mul16s::$13 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::m#5 mul16s::$13 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::m#5 mul16s::$13 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::m#5 mul16s::$13 ] ) always clobbers reg byte a 
Statement [76] (word~) mul16s::$17 ← (word~) mul16s::$13 - (word)(signed word) mul16s::a#3 [ mul16s::m#5 mul16s::$17 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::m#5 mul16s::$17 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::m#5 mul16s::$17 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::m#5 mul16s::$17 ] ) always clobbers reg byte a 
Statement [77] (dword) mul16s::m#2 ← (dword) mul16s::m#5 hi= (word~) mul16s::$17 [ mul16s::m#2 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::m#2 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::m#2 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::m#2 ] ) always clobbers reg byte a 
Statement [79] (signed dword) mul16s::return#0 ← (signed dword)(dword) mul16s::m#4 [ mul16s::return#0 ] ( main:3::mul16s:21 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::return#0 ] main:3::mul16s:32 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::return#0 ] main:3::sin16s_gen2:6::mul16s:146 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::return#0 ] ) always clobbers reg byte a 
Statement [83] if((word) mul16u::a#3!=(byte) 0) goto mul16u::@2 [ mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] ( main:3::mul16s:21::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::mul16s:32::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::mul16s:146::mul16u:66 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 ] ) always clobbers reg byte a 
Statement [85] (byte~) mul16u::$1 ← (word) mul16u::a#3 & (byte) 1 [ mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] ( main:3::mul16s:21::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::mul16s:32::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::mul16s:146::mul16u:66 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::select#5 mul16u::res#2 mul16u::a#3 mul16u::mb#2 mul16u::$1 ] ) always clobbers reg byte a 
Statement [87] (dword) mul16u::res#1 ← (dword) mul16u::res#2 + (dword) mul16u::mb#2 [ mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] ( main:3::mul16s:21::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 mul16s::a#3 mul16s::b#3 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::mul16s:32::mul16u:66 [ frame_cnt#0 main::idx_x#11 main::r#10 main::idx_y#3 main::r_add#10 main::x#0 mul16s::a#3 mul16s::b#3 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::mul16s:146::mul16u:66 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::a#3 mul16s::b#3 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::select#5 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::select#5 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186::mul16u:199 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::select#5 mul16u::a#3 mul16u::mb#2 mul16u::res#1 ] ) always clobbers reg byte a 
Statement [92] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [93] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [94] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [95] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) | (byte) $80 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [96] *((const byte*) RASTER#0) ← (byte) 0 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [97] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [98] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() [ ] ( main:3::init_irq:14 [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [107] if((word) memset::num#2<=(byte) 0) goto memset::@return [ memset::num#2 memset::str#3 memset::c#4 ] ( main:3::bitmap_clear:10::memset:102 [ frame_cnt#0 memset::num#2 memset::str#3 memset::c#4 ] main:3::bitmap_clear:10::memset:104 [ frame_cnt#0 memset::num#2 memset::str#3 memset::c#4 ] ) always clobbers reg byte a 
Statement [108] (byte*) memset::end#0 ← (byte*)(void*) memset::str#3 + (word) memset::num#2 [ memset::str#3 memset::c#4 memset::end#0 ] ( main:3::bitmap_clear:10::memset:102 [ frame_cnt#0 memset::str#3 memset::c#4 memset::end#0 ] main:3::bitmap_clear:10::memset:104 [ frame_cnt#0 memset::str#3 memset::c#4 memset::end#0 ] ) always clobbers reg byte a 
Statement [109] (byte*~) memset::dst#4 ← (byte*)(void*) memset::str#3 [ memset::c#4 memset::end#0 memset::dst#4 ] ( main:3::bitmap_clear:10::memset:102 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#4 ] main:3::bitmap_clear:10::memset:104 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#4 ] ) always clobbers reg byte a 
Statement [111] if((byte*) memset::dst#2!=(byte*) memset::end#0) goto memset::@3 [ memset::c#4 memset::end#0 memset::dst#2 ] ( main:3::bitmap_clear:10::memset:102 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#2 ] main:3::bitmap_clear:10::memset:104 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#2 ] ) always clobbers reg byte a 
Statement [113] *((byte*) memset::dst#2) ← (byte) memset::c#4 [ memset::c#4 memset::end#0 memset::dst#2 ] ( main:3::bitmap_clear:10::memset:102 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#2 ] main:3::bitmap_clear:10::memset:104 [ frame_cnt#0 memset::c#4 memset::end#0 memset::dst#2 ] ) always clobbers reg byte a reg byte y 
Statement [125] (byte~) bitmap_init::$7 ← (byte) bitmap_init::y#2 & (byte) 7 [ bitmap_init::y#2 bitmap_init::yoffs#2 bitmap_init::$7 ] ( main:3::bitmap_init:8 [ frame_cnt#0 bitmap_init::y#2 bitmap_init::yoffs#2 bitmap_init::$7 ] ) always clobbers reg byte a 
Statement [132] (byte*) bitmap_init::yoffs#1 ← (byte*) bitmap_init::yoffs#2 + (word)(number) $28*(number) 8 [ bitmap_init::y#2 bitmap_init::yoffs#1 ] ( main:3::bitmap_init:8 [ frame_cnt#0 bitmap_init::y#2 bitmap_init::yoffs#1 ] ) always clobbers reg byte a 
Statement [139] (dword) div32u16u::return#2 ← (dword) div32u16u::return#0 [ div32u16u::return#2 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 div32u16u::return#2 ] ) always clobbers reg byte a 
Statement [140] (dword) sin16s_gen2::step#0 ← (dword) div32u16u::return#2 [ sin16s_gen2::step#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 ] ) always clobbers reg byte a 
Statement [142] (dword) sin16s::x#0 ← (dword) sin16s_gen2::x#6 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::x#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::x#0 ] ) always clobbers reg byte a 
Statement [144] (signed word) sin16s::return#0 ← (signed word) sin16s::return#1 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::return#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::return#0 ] ) always clobbers reg byte a 
Statement [145] (signed word) mul16s::a#0 ← (signed word) sin16s::return#0 [ mul16s::a#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 mul16s::a#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 ] ) always clobbers reg byte a 
Statement [147] (signed dword) mul16s::return#2 ← (signed dword) mul16s::return#0 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::return#2 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 mul16s::return#2 ] ) always clobbers reg byte a 
Statement [148] (signed dword~) sin16s_gen2::$6 ← (signed dword) mul16s::return#2 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s_gen2::$6 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s_gen2::$6 ] ) always clobbers reg byte a 
Statement [149] (word~) sin16s_gen2::$9 ← > (signed dword~) sin16s_gen2::$6 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s_gen2::$9 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s_gen2::$9 ] ) always clobbers reg byte a 
Statement [150] *((signed word*) sin16s_gen2::sintab#10) ← (signed word)(word~) sin16s_gen2::$9 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 ] ) always clobbers reg byte a reg byte y 
Statement [151] (signed word*) sin16s_gen2::sintab#0 ← (signed word*) sin16s_gen2::sintab#10 + (const byte) SIZEOF_SIGNED_WORD [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#0 ] ) always clobbers reg byte a 
Statement [152] (dword) sin16s_gen2::x#1 ← (dword) sin16s_gen2::x#6 + (dword) sin16s_gen2::step#0 [ sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#1 sin16s_gen2::sintab#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#1 sin16s_gen2::sintab#0 ] ) always clobbers reg byte a 
Statement [154] if((word) sin16s_gen2::i#1<(const word) sin16s_gen2::wavelength#0) goto sin16s_gen2::@2 [ sin16s_gen2::step#0 sin16s_gen2::i#1 sin16s_gen2::x#1 sin16s_gen2::sintab#0 ] ( main:3::sin16s_gen2:6 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#1 sin16s_gen2::x#1 sin16s_gen2::sintab#0 ] ) always clobbers reg byte a 
Statement [156] if((dword) sin16s::x#0<(const dword) PI_u4f28#0) goto sin16s::@1 [ sin16s::x#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::x#0 ] ) always clobbers reg byte a 
Statement [157] (dword) sin16s::x#1 ← (dword) sin16s::x#0 - (const dword) PI_u4f28#0 [ sin16s::x#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::x#1 ] ) always clobbers reg byte a 
Statement [159] if((dword) sin16s::x#4<(const dword) PI_HALF_u4f28#0) goto sin16s::@2 [ sin16s::x#4 sin16s::isUpper#2 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::x#4 sin16s::isUpper#2 ] ) always clobbers reg byte a 
Statement [160] (dword) sin16s::x#2 ← (const dword) PI_u4f28#0 - (dword) sin16s::x#4 [ sin16s::isUpper#2 sin16s::x#2 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x#2 ] ) always clobbers reg byte a 
Statement [162] (dword~) sin16s::$4 ← (dword) sin16s::x#6 << (byte) 3 [ sin16s::isUpper#2 sin16s::$4 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::$4 ] ) always clobbers reg byte a reg byte y 
Statement [163] (word) sin16s::x1#0 ← > (dword~) sin16s::$4 [ sin16s::isUpper#2 sin16s::x1#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 ] ) always clobbers reg byte a 
Statement [164] (word) mulu16_sel::v1#0 ← (word) sin16s::x1#0 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#0 ] ) always clobbers reg byte a 
Statement [165] (word) mulu16_sel::v2#0 ← (word) sin16s::x1#0 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#0 mulu16_sel::v2#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#0 mulu16_sel::v2#0 ] ) always clobbers reg byte a 
Statement [167] (word) mulu16_sel::return#0 ← (word) mulu16_sel::return#12 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#0 ] ) always clobbers reg byte a 
Statement [168] (word) sin16s::x2#0 ← (word) mulu16_sel::return#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x2#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x2#0 ] ) always clobbers reg byte a 
Statement [169] (word) mulu16_sel::v1#1 ← (word) sin16s::x2#0 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#1 ] ) always clobbers reg byte a 
Statement [170] (word) mulu16_sel::v2#1 ← (word) sin16s::x1#0 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#1 mulu16_sel::v2#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::v1#1 mulu16_sel::v2#1 ] ) always clobbers reg byte a 
Statement [172] (word) mulu16_sel::return#1 ← (word) mulu16_sel::return#12 [ sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#1 ] ) always clobbers reg byte a 
Statement [173] (word) sin16s::x3#0 ← (word) mulu16_sel::return#1 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 ] ) always clobbers reg byte a 
Statement [174] (word) mulu16_sel::v1#2 ← (word) sin16s::x3#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::v1#2 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::v1#2 ] ) always clobbers reg byte a 
Statement [176] (word) mulu16_sel::return#2 ← (word) mulu16_sel::return#12 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::return#2 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::return#2 ] ) always clobbers reg byte a 
Statement [177] (word) sin16s::x3_6#0 ← (word) mulu16_sel::return#2 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 sin16s::x3_6#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 sin16s::x3_6#0 ] ) always clobbers reg byte a 
Statement [178] (word) sin16s::usinx#0 ← (word) sin16s::x1#0 - (word) sin16s::x3_6#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 sin16s::usinx#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 sin16s::usinx#0 ] ) always clobbers reg byte a 
Statement [179] (word) mulu16_sel::v1#3 ← (word) sin16s::x3#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#3 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#3 ] ) always clobbers reg byte a 
Statement [180] (word) mulu16_sel::v2#3 ← (word) sin16s::x1#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#3 mulu16_sel::v2#3 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#3 mulu16_sel::v2#3 ] ) always clobbers reg byte a 
Statement [182] (word) mulu16_sel::return#10 ← (word) mulu16_sel::return#12 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::return#10 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::return#10 ] ) always clobbers reg byte a 
Statement [183] (word) sin16s::x4#0 ← (word) mulu16_sel::return#10 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 sin16s::x4#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 sin16s::x4#0 ] ) always clobbers reg byte a 
Statement [184] (word) mulu16_sel::v1#4 ← (word) sin16s::x4#0 [ sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#4 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::v1#4 ] ) always clobbers reg byte a 
Statement [185] (word) mulu16_sel::v2#4 ← (word) sin16s::x1#0 [ sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::v1#4 mulu16_sel::v2#4 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::v1#4 mulu16_sel::v2#4 ] ) always clobbers reg byte a 
Statement [187] (word) mulu16_sel::return#11 ← (word) mulu16_sel::return#12 [ sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::return#11 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::return#11 ] ) always clobbers reg byte a 
Statement [188] (word) sin16s::x5#0 ← (word) mulu16_sel::return#11 [ sin16s::isUpper#2 sin16s::usinx#0 sin16s::x5#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 sin16s::x5#0 ] ) always clobbers reg byte a 
Statement [189] (word) sin16s::x5_128#0 ← (word) sin16s::x5#0 >> (byte) 4 [ sin16s::isUpper#2 sin16s::usinx#0 sin16s::x5_128#0 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 sin16s::x5_128#0 ] ) always clobbers reg byte a 
Statement [190] (word) sin16s::usinx#1 ← (word) sin16s::usinx#0 + (word) sin16s::x5_128#0 [ sin16s::isUpper#2 sin16s::usinx#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#1 ] ) always clobbers reg byte a 
Statement [192] (signed word) sin16s::sinx#1 ← - (signed word)(word) sin16s::usinx#1 [ sin16s::sinx#1 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::sinx#1 ] ) always clobbers reg byte a 
Statement [195] (signed word~) sin16s::return#5 ← (signed word)(word) sin16s::usinx#1 [ sin16s::return#5 ] ( main:3::sin16s_gen2:6::sin16s:143 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::return#5 ] ) always clobbers reg byte a 
Statement [197] (word) mul16u::a#2 ← (word) mulu16_sel::v1#5 [ mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mul16u::a#2 mulu16_sel::v2#5 mulu16_sel::select#5 ] ) always clobbers reg byte a 
Statement [198] (word) mul16u::b#1 ← (word) mulu16_sel::v2#5 [ mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mul16u::b#1 mul16u::a#2 mulu16_sel::select#5 ] ) always clobbers reg byte a 
Statement [200] (dword) mul16u::return#3 ← (dword) mul16u::res#2 [ mulu16_sel::select#5 mul16u::return#3 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::return#3 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mul16u::return#3 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::select#5 mul16u::return#3 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::select#5 mul16u::return#3 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::select#5 mul16u::return#3 ] ) always clobbers reg byte a 
Statement [201] (dword~) mulu16_sel::$0 ← (dword) mul16u::return#3 [ mulu16_sel::select#5 mulu16_sel::$0 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mulu16_sel::$0 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::select#5 mulu16_sel::$0 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::select#5 mulu16_sel::$0 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::select#5 mulu16_sel::$0 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::select#5 mulu16_sel::$0 ] ) always clobbers reg byte a 
Statement [202] (dword~) mulu16_sel::$1 ← (dword~) mulu16_sel::$0 << (byte) mulu16_sel::select#5 [ mulu16_sel::$1 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::$1 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::$1 ] ) always clobbers reg byte a 
Statement [203] (word) mulu16_sel::return#12 ← > (dword~) mulu16_sel::$1 [ mulu16_sel::return#12 ] ( main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:166 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#12 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:171 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 mulu16_sel::return#12 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:175 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::x3#0 mulu16_sel::return#12 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:181 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::x1#0 sin16s::usinx#0 mulu16_sel::return#12 ] main:3::sin16s_gen2:6::sin16s:143::mulu16_sel:186 [ frame_cnt#0 sin16s_gen2::step#0 sin16s_gen2::i#6 sin16s_gen2::x#6 sin16s_gen2::sintab#10 sin16s::isUpper#2 sin16s::usinx#0 mulu16_sel::return#12 ] ) always clobbers reg byte a 
Statement [207] (word) divr16u::return#2 ← (word) divr16u::return#0 [ divr16u::return#2 rem16u#1 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 divr16u::return#2 rem16u#1 ] ) always clobbers reg byte a 
Statement [208] (word) div32u16u::quotient_hi#0 ← (word) divr16u::return#2 [ div32u16u::quotient_hi#0 rem16u#1 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 div32u16u::quotient_hi#0 rem16u#1 ] ) always clobbers reg byte a 
Statement [209] (word) divr16u::rem#4 ← (word) rem16u#1 [ div32u16u::quotient_hi#0 divr16u::rem#4 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::rem#4 ] ) always clobbers reg byte a 
Statement [211] (word) divr16u::return#3 ← (word) divr16u::return#0 [ div32u16u::quotient_hi#0 divr16u::return#3 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::return#3 ] ) always clobbers reg byte a 
Statement [212] (word) div32u16u::quotient_lo#0 ← (word) divr16u::return#3 [ div32u16u::quotient_hi#0 div32u16u::quotient_lo#0 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 div32u16u::quotient_hi#0 div32u16u::quotient_lo#0 ] ) always clobbers reg byte a 
Statement [213] (dword) div32u16u::return#0 ← (word) div32u16u::quotient_hi#0 dw= (word) div32u16u::quotient_lo#0 [ div32u16u::return#0 ] ( main:3::sin16s_gen2:6::div32u16u:138 [ frame_cnt#0 div32u16u::return#0 ] ) always clobbers reg byte a 
Statement [218] (byte~) divr16u::$1 ← > (word) divr16u::dividend#3 [ divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#0 divr16u::$1 ] ( main:3::sin16s_gen2:6::div32u16u:138::divr16u:206 [ frame_cnt#0 divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#0 divr16u::$1 ] main:3::sin16s_gen2:6::div32u16u:138::divr16u:210 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#0 divr16u::$1 ] ) always clobbers reg byte a 
Statement [221] (word) divr16u::rem#1 ← (word) divr16u::rem#0 | (byte) 1 [ divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#1 ] ( main:3::sin16s_gen2:6::div32u16u:138::divr16u:206 [ frame_cnt#0 divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#1 ] main:3::sin16s_gen2:6::div32u16u:138::divr16u:210 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::dividend#3 divr16u::quotient#3 divr16u::i#2 divr16u::rem#1 ] ) always clobbers reg byte a 
Statement [225] if((word) divr16u::rem#6<(const word) sin16s_gen2::wavelength#0) goto divr16u::@3 [ divr16u::i#2 divr16u::dividend#0 divr16u::rem#6 divr16u::quotient#1 ] ( main:3::sin16s_gen2:6::div32u16u:138::divr16u:206 [ frame_cnt#0 divr16u::i#2 divr16u::dividend#0 divr16u::rem#6 divr16u::quotient#1 ] main:3::sin16s_gen2:6::div32u16u:138::divr16u:210 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::i#2 divr16u::dividend#0 divr16u::rem#6 divr16u::quotient#1 ] ) always clobbers reg byte a 
Statement [227] (word) divr16u::rem#2 ← (word) divr16u::rem#6 - (const word) sin16s_gen2::wavelength#0 [ divr16u::i#2 divr16u::dividend#0 divr16u::quotient#2 divr16u::rem#2 ] ( main:3::sin16s_gen2:6::div32u16u:138::divr16u:206 [ frame_cnt#0 divr16u::i#2 divr16u::dividend#0 divr16u::quotient#2 divr16u::rem#2 ] main:3::sin16s_gen2:6::div32u16u:138::divr16u:210 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::i#2 divr16u::dividend#0 divr16u::quotient#2 divr16u::rem#2 ] ) always clobbers reg byte a 
Statement [231] (word) rem16u#1 ← (word) divr16u::rem#11 [ divr16u::return#0 rem16u#1 ] ( main:3::sin16s_gen2:6::div32u16u:138::divr16u:206 [ frame_cnt#0 divr16u::return#0 rem16u#1 ] main:3::sin16s_gen2:6::div32u16u:138::divr16u:210 [ frame_cnt#0 div32u16u::quotient_hi#0 divr16u::return#0 rem16u#1 ] ) always clobbers reg byte a 
Statement [233] *((const byte*) BGCOL#0) ← (const byte) WHITE#0 [ frame_cnt#0 ] (  [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [234] if((byte) 0==(byte) frame_cnt#0) goto irq::@1 [ frame_cnt#0 ] (  [ frame_cnt#0 ] ) always clobbers reg byte a 
Statement [237] *((const byte*) BGCOL#0) ← (const byte) BLACK#0 [ ] (  [ ] ) always clobbers reg byte a 
Statement [238] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] (  [ ] ) always clobbers reg byte a 
Statement [239] return  [ ] (  [ ] ) always clobbers reg byte a reg byte x reg byte y 
Potential registers zp ZP_WORD:2 [ main::idx_x#11 main::idx_x#10 main::idx_x#1 ] : zp ZP_WORD:2 , 
Potential registers zp ZP_WORD:4 [ main::r#10 main::r#1 ] : zp ZP_WORD:4 , 
Potential registers zp ZP_WORD:6 [ main::idx_y#3 main::idx_y#10 main::idx_y#1 ] : zp ZP_WORD:6 , 
Potential registers zp ZP_BYTE:8 [ main::r_add#10 main::r_add#12 main::r_add#1 ] : zp ZP_BYTE:8 , 
Potential registers zp ZP_WORD:9 [ mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 ] : zp ZP_WORD:9 , 
Potential registers zp ZP_WORD:11 [ mul16s::b#3 mul16s::b#1 mul16s::b#2 ] : zp ZP_WORD:11 , 
Potential registers zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 ] : zp ZP_DWORD:13 , 
Potential registers zp ZP_WORD:17 [ mul16u::b#0 ] : zp ZP_WORD:17 , 
Potential registers zp ZP_WORD:19 [ mul16u::b#1 ] : zp ZP_WORD:19 , 
Potential registers zp ZP_WORD:21 [ mul16u::a#3 mul16u::a#6 mul16u::a#1 mul16u::a#2 mul16u::a#0 ] : zp ZP_WORD:21 , 
Potential registers zp ZP_DWORD:23 [ mul16u::res#2 mul16u::res#6 mul16u::res#1 ] : zp ZP_DWORD:23 , 
Potential registers zp ZP_DWORD:27 [ mul16u::mb#2 mul16u::mb#0 mul16u::mb#1 ] : zp ZP_DWORD:27 , 
Potential registers zp ZP_WORD:31 [ memset::num#2 ] : zp ZP_WORD:31 , 
Potential registers zp ZP_WORD:33 [ memset::str#3 ] : zp ZP_WORD:33 , 
Potential registers zp ZP_BYTE:35 [ memset::c#4 ] : zp ZP_BYTE:35 , reg byte x , 
Potential registers zp ZP_WORD:36 [ memset::dst#2 memset::dst#4 memset::dst#1 ] : zp ZP_WORD:36 , 
Potential registers zp ZP_BYTE:38 [ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ] : zp ZP_BYTE:38 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:39 [ bitmap_init::x#2 bitmap_init::x#1 ] : zp ZP_BYTE:39 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:40 [ bitmap_init::y#2 bitmap_init::y#1 ] : zp ZP_BYTE:40 , reg byte x , reg byte y , 
Potential registers zp ZP_WORD:41 [ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ] : zp ZP_WORD:41 , 
Potential registers zp ZP_WORD:43 [ sin16s_gen2::i#6 sin16s_gen2::i#1 ] : zp ZP_WORD:43 , 
Potential registers zp ZP_DWORD:45 [ sin16s_gen2::x#6 sin16s_gen2::x#1 ] : zp ZP_DWORD:45 , 
Potential registers zp ZP_WORD:49 [ sin16s_gen2::sintab#10 sin16s_gen2::sintab#0 ] : zp ZP_WORD:49 , 
Potential registers zp ZP_BYTE:51 [ sin16s::isUpper#2 ] : zp ZP_BYTE:51 , reg byte x , 
Potential registers zp ZP_DWORD:52 [ sin16s::x#6 sin16s::x#4 sin16s::x#0 sin16s::x#1 sin16s::x#2 ] : zp ZP_DWORD:52 , 
Potential registers zp ZP_WORD:56 [ sin16s::return#1 sin16s::return#5 sin16s::sinx#1 ] : zp ZP_WORD:56 , 
Potential registers zp ZP_WORD:58 [ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 ] : zp ZP_WORD:58 , 
Potential registers zp ZP_WORD:60 [ mulu16_sel::v2#5 mulu16_sel::v2#3 mulu16_sel::v2#4 mulu16_sel::v2#0 mulu16_sel::v2#1 ] : zp ZP_WORD:60 , 
Potential registers zp ZP_BYTE:62 [ mulu16_sel::select#5 ] : zp ZP_BYTE:62 , reg byte x , reg byte y , 
Potential registers zp ZP_WORD:63 [ divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 ] : zp ZP_WORD:63 , 
Potential registers zp ZP_WORD:65 [ divr16u::dividend#3 divr16u::dividend#5 divr16u::dividend#0 ] : zp ZP_WORD:65 , 
Potential registers zp ZP_WORD:67 [ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 ] : zp ZP_WORD:67 , 
Potential registers zp ZP_BYTE:69 [ divr16u::i#2 divr16u::i#1 ] : zp ZP_BYTE:69 , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:70 [ frame_cnt#2 frame_cnt#0 frame_cnt#1 ] : zp ZP_BYTE:70 , 
Potential registers zp ZP_WORD:71 [ main::$32 ] : zp ZP_WORD:71 , 
Potential registers zp ZP_WORD:73 [ main::$34 ] : zp ZP_WORD:73 , 
Potential registers zp ZP_WORD:75 [ main::cos_x#0 ] : zp ZP_WORD:75 , 
Potential registers zp ZP_DWORD:77 [ mul16s::return#3 ] : zp ZP_DWORD:77 , 
Potential registers zp ZP_DWORD:81 [ main::xpos#0 ] : zp ZP_DWORD:81 , 
Potential registers zp ZP_WORD:85 [ main::$10 ] : zp ZP_WORD:85 , 
Potential registers zp ZP_WORD:87 [ main::$11 ] : zp ZP_WORD:87 , 
Potential registers zp ZP_WORD:89 [ main::x#0 ] : zp ZP_WORD:89 , 
Potential registers zp ZP_WORD:91 [ main::$33 ] : zp ZP_WORD:91 , 
Potential registers zp ZP_WORD:93 [ main::$35 ] : zp ZP_WORD:93 , 
Potential registers zp ZP_WORD:95 [ main::sin_y#0 ] : zp ZP_WORD:95 , 
Potential registers zp ZP_DWORD:97 [ mul16s::return#4 ] : zp ZP_DWORD:97 , 
Potential registers zp ZP_DWORD:101 [ main::ypos#0 ] : zp ZP_DWORD:101 , 
Potential registers zp ZP_WORD:105 [ main::$16 ] : zp ZP_WORD:105 , 
Potential registers zp ZP_WORD:107 [ main::$17 ] : zp ZP_WORD:107 , 
Potential registers zp ZP_WORD:109 [ main::y#0 ] : zp ZP_WORD:109 , 
Potential registers zp ZP_BYTE:111 [ bitmap_plot::y#0 ] : zp ZP_BYTE:111 , reg byte x , reg byte y , 
Potential registers zp ZP_WORD:112 [ bitmap_plot::x#0 ] : zp ZP_WORD:112 , 
Potential registers zp ZP_WORD:114 [ bitmap_plot::plotter#0 ] : zp ZP_WORD:114 , 
Potential registers zp ZP_WORD:116 [ bitmap_plot::$1 ] : zp ZP_WORD:116 , 
Potential registers zp ZP_WORD:118 [ bitmap_plot::plotter#1 ] : zp ZP_WORD:118 , 
Potential registers zp ZP_BYTE:120 [ bitmap_plot::$2 ] : zp ZP_BYTE:120 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_DWORD:121 [ mul16u::return#2 ] : zp ZP_DWORD:121 , 
Potential registers zp ZP_WORD:125 [ mul16s::$9 ] : zp ZP_WORD:125 , 
Potential registers zp ZP_WORD:127 [ mul16s::$16 ] : zp ZP_WORD:127 , 
Potential registers zp ZP_WORD:129 [ mul16s::$13 ] : zp ZP_WORD:129 , 
Potential registers zp ZP_WORD:131 [ mul16s::$17 ] : zp ZP_WORD:131 , 
Potential registers zp ZP_DWORD:133 [ mul16s::return#0 ] : zp ZP_DWORD:133 , 
Potential registers zp ZP_BYTE:137 [ mul16u::$1 ] : zp ZP_BYTE:137 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_WORD:138 [ memset::end#0 ] : zp ZP_WORD:138 , 
Potential registers zp ZP_BYTE:140 [ bitmap_init::$7 ] : zp ZP_BYTE:140 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:141 [ bitmap_init::$4 ] : zp ZP_BYTE:141 , reg byte a , reg byte x , reg byte y , reg byte alu , 
Potential registers zp ZP_BYTE:142 [ bitmap_init::$5 ] : zp ZP_BYTE:142 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:143 [ bitmap_init::$6 ] : zp ZP_BYTE:143 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_DWORD:144 [ div32u16u::return#2 ] : zp ZP_DWORD:144 , 
Potential registers zp ZP_DWORD:148 [ sin16s_gen2::step#0 ] : zp ZP_DWORD:148 , 
Potential registers zp ZP_WORD:152 [ sin16s::return#0 ] : zp ZP_WORD:152 , 
Potential registers zp ZP_DWORD:154 [ mul16s::return#2 ] : zp ZP_DWORD:154 , 
Potential registers zp ZP_DWORD:158 [ sin16s_gen2::$6 ] : zp ZP_DWORD:158 , 
Potential registers zp ZP_WORD:162 [ sin16s_gen2::$9 ] : zp ZP_WORD:162 , 
Potential registers zp ZP_DWORD:164 [ sin16s::$4 ] : zp ZP_DWORD:164 , 
Potential registers zp ZP_WORD:168 [ sin16s::x1#0 ] : zp ZP_WORD:168 , 
Potential registers zp ZP_WORD:170 [ mulu16_sel::return#0 ] : zp ZP_WORD:170 , 
Potential registers zp ZP_WORD:172 [ sin16s::x2#0 ] : zp ZP_WORD:172 , 
Potential registers zp ZP_WORD:174 [ mulu16_sel::return#1 ] : zp ZP_WORD:174 , 
Potential registers zp ZP_WORD:176 [ sin16s::x3#0 ] : zp ZP_WORD:176 , 
Potential registers zp ZP_WORD:178 [ mulu16_sel::return#2 ] : zp ZP_WORD:178 , 
Potential registers zp ZP_WORD:180 [ sin16s::x3_6#0 ] : zp ZP_WORD:180 , 
Potential registers zp ZP_WORD:182 [ sin16s::usinx#0 ] : zp ZP_WORD:182 , 
Potential registers zp ZP_WORD:184 [ mulu16_sel::return#10 ] : zp ZP_WORD:184 , 
Potential registers zp ZP_WORD:186 [ sin16s::x4#0 ] : zp ZP_WORD:186 , 
Potential registers zp ZP_WORD:188 [ mulu16_sel::return#11 ] : zp ZP_WORD:188 , 
Potential registers zp ZP_WORD:190 [ sin16s::x5#0 ] : zp ZP_WORD:190 , 
Potential registers zp ZP_WORD:192 [ sin16s::x5_128#0 ] : zp ZP_WORD:192 , 
Potential registers zp ZP_WORD:194 [ sin16s::usinx#1 ] : zp ZP_WORD:194 , 
Potential registers zp ZP_DWORD:196 [ mul16u::return#3 ] : zp ZP_DWORD:196 , 
Potential registers zp ZP_DWORD:200 [ mulu16_sel::$0 ] : zp ZP_DWORD:200 , 
Potential registers zp ZP_DWORD:204 [ mulu16_sel::$1 ] : zp ZP_DWORD:204 , 
Potential registers zp ZP_WORD:208 [ mulu16_sel::return#12 ] : zp ZP_WORD:208 , 
Potential registers zp ZP_WORD:210 [ divr16u::return#2 ] : zp ZP_WORD:210 , 
Potential registers zp ZP_WORD:212 [ div32u16u::quotient_hi#0 ] : zp ZP_WORD:212 , 
Potential registers zp ZP_WORD:214 [ divr16u::return#3 ] : zp ZP_WORD:214 , 
Potential registers zp ZP_WORD:216 [ div32u16u::quotient_lo#0 ] : zp ZP_WORD:216 , 
Potential registers zp ZP_DWORD:218 [ div32u16u::return#0 ] : zp ZP_DWORD:218 , 
Potential registers zp ZP_BYTE:222 [ divr16u::$1 ] : zp ZP_BYTE:222 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:223 [ divr16u::$2 ] : zp ZP_BYTE:223 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_WORD:224 [ rem16u#1 ] : zp ZP_WORD:224 , 

REGISTER UPLIFT SCOPES
Uplift Scope [mul16u] 346.86: zp ZP_DWORD:23 [ mul16u::res#2 mul16u::res#6 mul16u::res#1 ] 251.57: zp ZP_DWORD:27 [ mul16u::mb#2 mul16u::mb#0 mul16u::mb#1 ] 202: zp ZP_BYTE:137 [ mul16u::$1 ] 178.67: zp ZP_WORD:21 [ mul16u::a#3 mul16u::a#6 mul16u::a#1 mul16u::a#2 mul16u::a#0 ] 4: zp ZP_WORD:17 [ mul16u::b#0 ] 4: zp ZP_WORD:19 [ mul16u::b#1 ] 4: zp ZP_DWORD:121 [ mul16u::return#2 ] 4: zp ZP_DWORD:196 [ mul16u::return#3 ] 
Uplift Scope [main] 40.53: zp ZP_BYTE:8 [ main::r_add#10 main::r_add#12 main::r_add#1 ] 22: zp ZP_WORD:71 [ main::$32 ] 22: zp ZP_WORD:73 [ main::$34 ] 22: zp ZP_DWORD:81 [ main::xpos#0 ] 22: zp ZP_WORD:87 [ main::$11 ] 22: zp ZP_WORD:91 [ main::$33 ] 22: zp ZP_WORD:93 [ main::$35 ] 22: zp ZP_DWORD:101 [ main::ypos#0 ] 22: zp ZP_WORD:107 [ main::$17 ] 15.22: zp ZP_WORD:2 [ main::idx_x#11 main::idx_x#10 main::idx_x#1 ] 15.21: zp ZP_WORD:6 [ main::idx_y#3 main::idx_y#10 main::idx_y#1 ] 11: zp ZP_WORD:75 [ main::cos_x#0 ] 11: zp ZP_WORD:85 [ main::$10 ] 11: zp ZP_WORD:95 [ main::sin_y#0 ] 11: zp ZP_WORD:105 [ main::$16 ] 11: zp ZP_WORD:109 [ main::y#0 ] 6.76: zp ZP_WORD:4 [ main::r#10 main::r#1 ] 0.85: zp ZP_WORD:89 [ main::x#0 ] 
Uplift Scope [divr16u] 106.92: zp ZP_WORD:63 [ divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 ] 35.54: zp ZP_WORD:67 [ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 ] 22: zp ZP_BYTE:222 [ divr16u::$1 ] 22: zp ZP_BYTE:223 [ divr16u::$2 ] 18.19: zp ZP_BYTE:69 [ divr16u::i#2 divr16u::i#1 ] 9.75: zp ZP_WORD:65 [ divr16u::dividend#3 divr16u::dividend#5 divr16u::dividend#0 ] 4: zp ZP_WORD:210 [ divr16u::return#2 ] 4: zp ZP_WORD:214 [ divr16u::return#3 ] 
Uplift Scope [mul16s] 46.69: zp ZP_WORD:9 [ mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 ] 46.18: zp ZP_WORD:11 [ mul16s::b#3 mul16s::b#1 mul16s::b#2 ] 22: zp ZP_DWORD:77 [ mul16s::return#3 ] 22: zp ZP_DWORD:97 [ mul16s::return#4 ] 22: zp ZP_DWORD:154 [ mul16s::return#2 ] 16.5: zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 ] 7: zp ZP_DWORD:133 [ mul16s::return#0 ] 4: zp ZP_WORD:125 [ mul16s::$9 ] 4: zp ZP_WORD:127 [ mul16s::$16 ] 4: zp ZP_WORD:129 [ mul16s::$13 ] 4: zp ZP_WORD:131 [ mul16s::$17 ] 
Uplift Scope [bitmap_init] 39.88: zp ZP_WORD:41 [ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ] 34.83: zp ZP_BYTE:38 [ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ] 22: zp ZP_BYTE:39 [ bitmap_init::x#2 bitmap_init::x#1 ] 22: zp ZP_BYTE:40 [ bitmap_init::y#2 bitmap_init::y#1 ] 22: zp ZP_BYTE:141 [ bitmap_init::$4 ] 22: zp ZP_BYTE:142 [ bitmap_init::$5 ] 22: zp ZP_BYTE:143 [ bitmap_init::$6 ] 5.5: zp ZP_BYTE:140 [ bitmap_init::$7 ] 
Uplift Scope [sin16s] 27.5: zp ZP_DWORD:52 [ sin16s::x#6 sin16s::x#4 sin16s::x#0 sin16s::x#1 sin16s::x#2 ] 22: zp ZP_WORD:152 [ sin16s::return#0 ] 13: zp ZP_WORD:56 [ sin16s::return#1 sin16s::return#5 sin16s::sinx#1 ] 4: zp ZP_DWORD:164 [ sin16s::$4 ] 4: zp ZP_WORD:172 [ sin16s::x2#0 ] 4: zp ZP_WORD:180 [ sin16s::x3_6#0 ] 4: zp ZP_WORD:186 [ sin16s::x4#0 ] 4: zp ZP_WORD:190 [ sin16s::x5#0 ] 4: zp ZP_WORD:192 [ sin16s::x5_128#0 ] 1: zp ZP_WORD:176 [ sin16s::x3#0 ] 1: zp ZP_WORD:194 [ sin16s::usinx#1 ] 0.64: zp ZP_WORD:168 [ sin16s::x1#0 ] 0.33: zp ZP_WORD:182 [ sin16s::usinx#0 ] 0.06: zp ZP_BYTE:51 [ sin16s::isUpper#2 ] 
Uplift Scope [mulu16_sel] 24: zp ZP_WORD:58 [ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 ] 21: zp ZP_WORD:60 [ mulu16_sel::v2#5 mulu16_sel::v2#3 mulu16_sel::v2#4 mulu16_sel::v2#0 mulu16_sel::v2#1 ] 4: zp ZP_WORD:170 [ mulu16_sel::return#0 ] 4: zp ZP_WORD:174 [ mulu16_sel::return#1 ] 4: zp ZP_WORD:178 [ mulu16_sel::return#2 ] 4: zp ZP_WORD:184 [ mulu16_sel::return#10 ] 4: zp ZP_WORD:188 [ mulu16_sel::return#11 ] 4: zp ZP_DWORD:200 [ mulu16_sel::$0 ] 4: zp ZP_DWORD:204 [ mulu16_sel::$1 ] 1.71: zp ZP_WORD:208 [ mulu16_sel::return#12 ] 0.33: zp ZP_BYTE:62 [ mulu16_sel::select#5 ] 
Uplift Scope [sin16s_gen2] 22: zp ZP_DWORD:158 [ sin16s_gen2::$6 ] 18.33: zp ZP_WORD:43 [ sin16s_gen2::i#6 sin16s_gen2::i#1 ] 11: zp ZP_WORD:162 [ sin16s_gen2::$9 ] 10.33: zp ZP_DWORD:45 [ sin16s_gen2::x#6 sin16s_gen2::x#1 ] 8.8: zp ZP_WORD:49 [ sin16s_gen2::sintab#10 sin16s_gen2::sintab#0 ] 0.87: zp ZP_DWORD:148 [ sin16s_gen2::step#0 ] 
Uplift Scope [memset] 41.33: zp ZP_WORD:36 [ memset::dst#2 memset::dst#4 memset::dst#1 ] 2.17: zp ZP_WORD:138 [ memset::end#0 ] 2: zp ZP_WORD:31 [ memset::num#2 ] 1.38: zp ZP_BYTE:35 [ memset::c#4 ] 0: zp ZP_WORD:33 [ memset::str#3 ] 
Uplift Scope [] 44.55: zp ZP_BYTE:70 [ frame_cnt#2 frame_cnt#0 frame_cnt#1 ] 0.8: zp ZP_WORD:224 [ rem16u#1 ] 
Uplift Scope [bitmap_plot] 7.5: zp ZP_BYTE:111 [ bitmap_plot::y#0 ] 4: zp ZP_WORD:116 [ bitmap_plot::$1 ] 4: zp ZP_BYTE:120 [ bitmap_plot::$2 ] 3.75: zp ZP_WORD:112 [ bitmap_plot::x#0 ] 3: zp ZP_WORD:118 [ bitmap_plot::plotter#1 ] 1: zp ZP_WORD:114 [ bitmap_plot::plotter#0 ] 
Uplift Scope [div32u16u] 4: zp ZP_DWORD:144 [ div32u16u::return#2 ] 4: zp ZP_WORD:216 [ div32u16u::quotient_lo#0 ] 1.33: zp ZP_DWORD:218 [ div32u16u::return#0 ] 0.8: zp ZP_WORD:212 [ div32u16u::quotient_hi#0 ] 
Uplift Scope [bitmap_clear] 
Uplift Scope [init_irq] 
Uplift Scope [irq] 

Uplifting [mul16u] best 27154 combination zp ZP_DWORD:23 [ mul16u::res#2 mul16u::res#6 mul16u::res#1 ] zp ZP_DWORD:27 [ mul16u::mb#2 mul16u::mb#0 mul16u::mb#1 ] reg byte a [ mul16u::$1 ] zp ZP_WORD:21 [ mul16u::a#3 mul16u::a#6 mul16u::a#1 mul16u::a#2 mul16u::a#0 ] zp ZP_WORD:17 [ mul16u::b#0 ] zp ZP_WORD:19 [ mul16u::b#1 ] zp ZP_DWORD:121 [ mul16u::return#2 ] zp ZP_DWORD:196 [ mul16u::return#3 ] 
Uplifting [main] best 27154 combination zp ZP_BYTE:8 [ main::r_add#10 main::r_add#12 main::r_add#1 ] zp ZP_WORD:71 [ main::$32 ] zp ZP_WORD:73 [ main::$34 ] zp ZP_DWORD:81 [ main::xpos#0 ] zp ZP_WORD:87 [ main::$11 ] zp ZP_WORD:91 [ main::$33 ] zp ZP_WORD:93 [ main::$35 ] zp ZP_DWORD:101 [ main::ypos#0 ] zp ZP_WORD:107 [ main::$17 ] zp ZP_WORD:2 [ main::idx_x#11 main::idx_x#10 main::idx_x#1 ] zp ZP_WORD:6 [ main::idx_y#3 main::idx_y#10 main::idx_y#1 ] zp ZP_WORD:75 [ main::cos_x#0 ] zp ZP_WORD:85 [ main::$10 ] zp ZP_WORD:95 [ main::sin_y#0 ] zp ZP_WORD:105 [ main::$16 ] zp ZP_WORD:109 [ main::y#0 ] zp ZP_WORD:4 [ main::r#10 main::r#1 ] zp ZP_WORD:89 [ main::x#0 ] 
Uplifting [divr16u] best 26944 combination zp ZP_WORD:63 [ divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 ] zp ZP_WORD:67 [ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 ] reg byte a [ divr16u::$1 ] reg byte a [ divr16u::$2 ] reg byte x [ divr16u::i#2 divr16u::i#1 ] zp ZP_WORD:65 [ divr16u::dividend#3 divr16u::dividend#5 divr16u::dividend#0 ] zp ZP_WORD:210 [ divr16u::return#2 ] zp ZP_WORD:214 [ divr16u::return#3 ] 
Uplifting [mul16s] best 26944 combination zp ZP_WORD:9 [ mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 ] zp ZP_WORD:11 [ mul16s::b#3 mul16s::b#1 mul16s::b#2 ] zp ZP_DWORD:77 [ mul16s::return#3 ] zp ZP_DWORD:97 [ mul16s::return#4 ] zp ZP_DWORD:154 [ mul16s::return#2 ] zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 ] zp ZP_DWORD:133 [ mul16s::return#0 ] zp ZP_WORD:125 [ mul16s::$9 ] zp ZP_WORD:127 [ mul16s::$16 ] zp ZP_WORD:129 [ mul16s::$13 ] zp ZP_WORD:131 [ mul16s::$17 ] 
Uplifting [bitmap_init] best 26434 combination zp ZP_WORD:41 [ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ] reg byte a [ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ] reg byte x [ bitmap_init::x#2 bitmap_init::x#1 ] reg byte x [ bitmap_init::y#2 bitmap_init::y#1 ] reg byte a [ bitmap_init::$4 ] zp ZP_BYTE:142 [ bitmap_init::$5 ] zp ZP_BYTE:143 [ bitmap_init::$6 ] zp ZP_BYTE:140 [ bitmap_init::$7 ] 
Limited combination testing to 100 combinations of 15360 possible.
Uplifting [sin16s] best 26434 combination zp ZP_DWORD:52 [ sin16s::x#6 sin16s::x#4 sin16s::x#0 sin16s::x#1 sin16s::x#2 ] zp ZP_WORD:152 [ sin16s::return#0 ] zp ZP_WORD:56 [ sin16s::return#1 sin16s::return#5 sin16s::sinx#1 ] zp ZP_DWORD:164 [ sin16s::$4 ] zp ZP_WORD:172 [ sin16s::x2#0 ] zp ZP_WORD:180 [ sin16s::x3_6#0 ] zp ZP_WORD:186 [ sin16s::x4#0 ] zp ZP_WORD:190 [ sin16s::x5#0 ] zp ZP_WORD:192 [ sin16s::x5_128#0 ] zp ZP_WORD:176 [ sin16s::x3#0 ] zp ZP_WORD:194 [ sin16s::usinx#1 ] zp ZP_WORD:168 [ sin16s::x1#0 ] zp ZP_WORD:182 [ sin16s::usinx#0 ] zp ZP_BYTE:51 [ sin16s::isUpper#2 ] 
Uplifting [mulu16_sel] best 26418 combination zp ZP_WORD:58 [ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 ] zp ZP_WORD:60 [ mulu16_sel::v2#5 mulu16_sel::v2#3 mulu16_sel::v2#4 mulu16_sel::v2#0 mulu16_sel::v2#1 ] zp ZP_WORD:170 [ mulu16_sel::return#0 ] zp ZP_WORD:174 [ mulu16_sel::return#1 ] zp ZP_WORD:178 [ mulu16_sel::return#2 ] zp ZP_WORD:184 [ mulu16_sel::return#10 ] zp ZP_WORD:188 [ mulu16_sel::return#11 ] zp ZP_DWORD:200 [ mulu16_sel::$0 ] zp ZP_DWORD:204 [ mulu16_sel::$1 ] zp ZP_WORD:208 [ mulu16_sel::return#12 ] reg byte x [ mulu16_sel::select#5 ] 
Uplifting [sin16s_gen2] best 26418 combination zp ZP_DWORD:158 [ sin16s_gen2::$6 ] zp ZP_WORD:43 [ sin16s_gen2::i#6 sin16s_gen2::i#1 ] zp ZP_WORD:162 [ sin16s_gen2::$9 ] zp ZP_DWORD:45 [ sin16s_gen2::x#6 sin16s_gen2::x#1 ] zp ZP_WORD:49 [ sin16s_gen2::sintab#10 sin16s_gen2::sintab#0 ] zp ZP_DWORD:148 [ sin16s_gen2::step#0 ] 
Uplifting [memset] best 26402 combination zp ZP_WORD:36 [ memset::dst#2 memset::dst#4 memset::dst#1 ] zp ZP_WORD:138 [ memset::end#0 ] zp ZP_WORD:31 [ memset::num#2 ] reg byte x [ memset::c#4 ] zp ZP_WORD:33 [ memset::str#3 ] 
Uplifting [] best 26402 combination zp ZP_BYTE:70 [ frame_cnt#2 frame_cnt#0 frame_cnt#1 ] zp ZP_WORD:224 [ rem16u#1 ] 
Uplifting [bitmap_plot] best 26385 combination reg byte x [ bitmap_plot::y#0 ] zp ZP_WORD:116 [ bitmap_plot::$1 ] reg byte a [ bitmap_plot::$2 ] zp ZP_WORD:112 [ bitmap_plot::x#0 ] zp ZP_WORD:118 [ bitmap_plot::plotter#1 ] zp ZP_WORD:114 [ bitmap_plot::plotter#0 ] 
Uplifting [div32u16u] best 26385 combination zp ZP_DWORD:144 [ div32u16u::return#2 ] zp ZP_WORD:216 [ div32u16u::quotient_lo#0 ] zp ZP_DWORD:218 [ div32u16u::return#0 ] zp ZP_WORD:212 [ div32u16u::quotient_hi#0 ] 
Uplifting [bitmap_clear] best 26385 combination 
Uplifting [init_irq] best 26385 combination 
Uplifting [irq] best 26385 combination 
Attempting to uplift remaining variables inzp ZP_BYTE:70 [ frame_cnt#2 frame_cnt#0 frame_cnt#1 ]
Uplifting [] best 26385 combination zp ZP_BYTE:70 [ frame_cnt#2 frame_cnt#0 frame_cnt#1 ] 
Attempting to uplift remaining variables inzp ZP_BYTE:8 [ main::r_add#10 main::r_add#12 main::r_add#1 ]
Uplifting [main] best 26385 combination zp ZP_BYTE:8 [ main::r_add#10 main::r_add#12 main::r_add#1 ] 
Attempting to uplift remaining variables inzp ZP_BYTE:142 [ bitmap_init::$5 ]
Uplifting [bitmap_init] best 26325 combination reg byte a [ bitmap_init::$5 ] 
Attempting to uplift remaining variables inzp ZP_BYTE:143 [ bitmap_init::$6 ]
Uplifting [bitmap_init] best 26265 combination reg byte a [ bitmap_init::$6 ] 
Attempting to uplift remaining variables inzp ZP_BYTE:140 [ bitmap_init::$7 ]
Uplifting [bitmap_init] best 26265 combination zp ZP_BYTE:140 [ bitmap_init::$7 ] 
Attempting to uplift remaining variables inzp ZP_BYTE:51 [ sin16s::isUpper#2 ]
Uplifting [sin16s] best 26265 combination zp ZP_BYTE:51 [ sin16s::isUpper#2 ] 
Coalescing zero page register [ zp ZP_WORD:4 [ main::r#10 main::r#1 ] ] with [ zp ZP_WORD:9 [ mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 ] ] - score: 2
Coalescing zero page register [ zp ZP_WORD:56 [ sin16s::return#1 sin16s::return#5 sin16s::sinx#1 ] ] with [ zp ZP_WORD:194 [ sin16s::usinx#1 ] ] - score: 2
Coalescing zero page register [ zp ZP_WORD:58 [ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 ] ] with [ zp ZP_WORD:176 [ sin16s::x3#0 ] ] - score: 2
Coalescing zero page register [ zp ZP_WORD:63 [ divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 ] ] with [ zp ZP_WORD:224 [ rem16u#1 ] ] - score: 2
Coalescing zero page register [ zp ZP_WORD:11 [ mul16s::b#3 mul16s::b#1 mul16s::b#2 ] ] with [ zp ZP_WORD:75 [ main::cos_x#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:11 [ mul16s::b#3 mul16s::b#1 mul16s::b#2 main::cos_x#0 ] ] with [ zp ZP_WORD:95 [ main::sin_y#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 ] ] with [ zp ZP_DWORD:121 [ mul16u::return#2 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 mul16u::return#2 ] ] with [ zp ZP_DWORD:133 [ mul16s::return#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:19 [ mul16u::b#1 ] ] with [ zp ZP_WORD:60 [ mulu16_sel::v2#5 mulu16_sel::v2#3 mulu16_sel::v2#4 mulu16_sel::v2#0 mulu16_sel::v2#1 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:23 [ mul16u::res#2 mul16u::res#6 mul16u::res#1 ] ] with [ zp ZP_DWORD:196 [ mul16u::return#3 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:31 [ memset::num#2 ] ] with [ zp ZP_WORD:138 [ memset::end#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:33 [ memset::str#3 ] ] with [ zp ZP_WORD:36 [ memset::dst#2 memset::dst#4 memset::dst#1 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:52 [ sin16s::x#6 sin16s::x#4 sin16s::x#0 sin16s::x#1 sin16s::x#2 ] ] with [ zp ZP_DWORD:164 [ sin16s::$4 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:56 [ sin16s::return#1 sin16s::return#5 sin16s::sinx#1 sin16s::usinx#1 ] ] with [ zp ZP_WORD:152 [ sin16s::return#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:58 [ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 sin16s::x3#0 ] ] with [ zp ZP_WORD:172 [ sin16s::x2#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:58 [ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 sin16s::x3#0 sin16s::x2#0 ] ] with [ zp ZP_WORD:186 [ sin16s::x4#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:67 [ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 ] ] with [ zp ZP_WORD:210 [ divr16u::return#2 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:67 [ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 divr16u::return#2 ] ] with [ zp ZP_WORD:214 [ divr16u::return#3 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:71 [ main::$32 ] ] with [ zp ZP_WORD:73 [ main::$34 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:77 [ mul16s::return#3 ] ] with [ zp ZP_DWORD:81 [ main::xpos#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:85 [ main::$10 ] ] with [ zp ZP_WORD:87 [ main::$11 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:89 [ main::x#0 ] ] with [ zp ZP_WORD:112 [ bitmap_plot::x#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:91 [ main::$33 ] ] with [ zp ZP_WORD:93 [ main::$35 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:97 [ mul16s::return#4 ] ] with [ zp ZP_DWORD:101 [ main::ypos#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:105 [ main::$16 ] ] with [ zp ZP_WORD:107 [ main::$17 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:114 [ bitmap_plot::plotter#0 ] ] with [ zp ZP_WORD:118 [ bitmap_plot::plotter#1 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:125 [ mul16s::$9 ] ] with [ zp ZP_WORD:127 [ mul16s::$16 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:129 [ mul16s::$13 ] ] with [ zp ZP_WORD:131 [ mul16s::$17 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:144 [ div32u16u::return#2 ] ] with [ zp ZP_DWORD:148 [ sin16s_gen2::step#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:144 [ div32u16u::return#2 sin16s_gen2::step#0 ] ] with [ zp ZP_DWORD:218 [ div32u16u::return#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:154 [ mul16s::return#2 ] ] with [ zp ZP_DWORD:158 [ sin16s_gen2::$6 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:170 [ mulu16_sel::return#0 ] ] with [ zp ZP_WORD:208 [ mulu16_sel::return#12 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:178 [ mulu16_sel::return#2 ] ] with [ zp ZP_WORD:180 [ sin16s::x3_6#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:188 [ mulu16_sel::return#11 ] ] with [ zp ZP_WORD:190 [ sin16s::x5#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:200 [ mulu16_sel::$0 ] ] with [ zp ZP_DWORD:204 [ mulu16_sel::$1 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:4 [ main::r#10 main::r#1 mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 ] ] with [ zp ZP_WORD:56 [ sin16s::return#1 sin16s::return#5 sin16s::sinx#1 sin16s::usinx#1 sin16s::return#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:11 [ mul16s::b#3 mul16s::b#1 mul16s::b#2 main::cos_x#0 main::sin_y#0 ] ] with [ zp ZP_WORD:71 [ main::$32 main::$34 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:11 [ mul16s::b#3 mul16s::b#1 mul16s::b#2 main::cos_x#0 main::sin_y#0 main::$32 main::$34 ] ] with [ zp ZP_WORD:91 [ main::$33 main::$35 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 mul16u::return#2 mul16s::return#0 ] ] with [ zp ZP_DWORD:23 [ mul16u::res#2 mul16u::res#6 mul16u::res#1 mul16u::return#3 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 mul16u::return#2 mul16s::return#0 mul16u::res#2 mul16u::res#6 mul16u::res#1 mul16u::return#3 ] ] with [ zp ZP_DWORD:77 [ mul16s::return#3 main::xpos#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 mul16u::return#2 mul16s::return#0 mul16u::res#2 mul16u::res#6 mul16u::res#1 mul16u::return#3 mul16s::return#3 main::xpos#0 ] ] with [ zp ZP_DWORD:97 [ mul16s::return#4 main::ypos#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 mul16u::return#2 mul16s::return#0 mul16u::res#2 mul16u::res#6 mul16u::res#1 mul16u::return#3 mul16s::return#3 main::xpos#0 mul16s::return#4 main::ypos#0 ] ] with [ zp ZP_DWORD:154 [ mul16s::return#2 sin16s_gen2::$6 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:58 [ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 sin16s::x3#0 sin16s::x2#0 sin16s::x4#0 ] ] with [ zp ZP_WORD:174 [ mulu16_sel::return#1 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:58 [ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 sin16s::x3#0 sin16s::x2#0 sin16s::x4#0 mulu16_sel::return#1 ] ] with [ zp ZP_WORD:184 [ mulu16_sel::return#10 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:67 [ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 divr16u::return#2 divr16u::return#3 ] ] with [ zp ZP_WORD:216 [ div32u16u::quotient_lo#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:85 [ main::$10 main::$11 ] ] with [ zp ZP_WORD:89 [ main::x#0 bitmap_plot::x#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:105 [ main::$16 main::$17 ] ] with [ zp ZP_WORD:109 [ main::y#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:170 [ mulu16_sel::return#0 mulu16_sel::return#12 ] ] with [ zp ZP_WORD:178 [ mulu16_sel::return#2 sin16s::x3_6#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:170 [ mulu16_sel::return#0 mulu16_sel::return#12 mulu16_sel::return#2 sin16s::x3_6#0 ] ] with [ zp ZP_WORD:188 [ mulu16_sel::return#11 sin16s::x5#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:4 [ main::r#10 main::r#1 mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 sin16s::return#1 sin16s::return#5 sin16s::sinx#1 sin16s::usinx#1 sin16s::return#0 ] ] with [ zp ZP_WORD:182 [ sin16s::usinx#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 mul16u::return#2 mul16s::return#0 mul16u::res#2 mul16u::res#6 mul16u::res#1 mul16u::return#3 mul16s::return#3 main::xpos#0 mul16s::return#4 main::ypos#0 mul16s::return#2 sin16s_gen2::$6 ] ] with [ zp ZP_DWORD:200 [ mulu16_sel::$0 mulu16_sel::$1 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:170 [ mulu16_sel::return#0 mulu16_sel::return#12 mulu16_sel::return#2 sin16s::x3_6#0 mulu16_sel::return#11 sin16s::x5#0 ] ] with [ zp ZP_WORD:192 [ sin16s::x5_128#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:19 [ mul16u::b#1 mulu16_sel::v2#5 mulu16_sel::v2#3 mulu16_sel::v2#4 mulu16_sel::v2#0 mulu16_sel::v2#1 ] ] with [ zp ZP_WORD:2 [ main::idx_x#11 main::idx_x#10 main::idx_x#1 ] ]
Coalescing zero page register [ zp ZP_WORD:31 [ memset::num#2 memset::end#0 ] ] with [ zp ZP_WORD:4 [ main::r#10 main::r#1 mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 sin16s::return#1 sin16s::return#5 sin16s::sinx#1 sin16s::usinx#1 sin16s::return#0 sin16s::usinx#0 ] ]
Coalescing zero page register [ zp ZP_WORD:33 [ memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 ] ] with [ zp ZP_WORD:6 [ main::idx_y#3 main::idx_y#10 main::idx_y#1 ] ]
Coalescing zero page register [ zp ZP_WORD:41 [ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ] ] with [ zp ZP_WORD:11 [ mul16s::b#3 mul16s::b#1 mul16s::b#2 main::cos_x#0 main::sin_y#0 main::$32 main::$34 main::$33 main::$35 ] ]
Coalescing zero page register [ zp ZP_BYTE:51 [ sin16s::isUpper#2 ] ] with [ zp ZP_BYTE:8 [ main::r_add#10 main::r_add#12 main::r_add#1 ] ]
Coalescing zero page register [ zp ZP_DWORD:52 [ sin16s::x#6 sin16s::x#4 sin16s::x#0 sin16s::x#1 sin16s::x#2 sin16s::$4 ] ] with [ zp ZP_DWORD:13 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 mul16u::return#2 mul16s::return#0 mul16u::res#2 mul16u::res#6 mul16u::res#1 mul16u::return#3 mul16s::return#3 main::xpos#0 mul16s::return#4 main::ypos#0 mul16s::return#2 sin16s_gen2::$6 mulu16_sel::$0 mulu16_sel::$1 ] ]
Coalescing zero page register [ zp ZP_WORD:58 [ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 sin16s::x3#0 sin16s::x2#0 sin16s::x4#0 mulu16_sel::return#1 mulu16_sel::return#10 ] ] with [ zp ZP_WORD:17 [ mul16u::b#0 ] ]
Coalescing zero page register [ zp ZP_WORD:63 [ divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 rem16u#1 ] ] with [ zp ZP_WORD:21 [ mul16u::a#3 mul16u::a#6 mul16u::a#1 mul16u::a#2 mul16u::a#0 ] ]
Coalescing zero page register [ zp ZP_WORD:65 [ divr16u::dividend#3 divr16u::dividend#5 divr16u::dividend#0 ] ] with [ zp ZP_WORD:43 [ sin16s_gen2::i#6 sin16s_gen2::i#1 ] ]
Coalescing zero page register [ zp ZP_WORD:67 [ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 divr16u::return#2 divr16u::return#3 div32u16u::quotient_lo#0 ] ] with [ zp ZP_WORD:49 [ sin16s_gen2::sintab#10 sin16s_gen2::sintab#0 ] ]
Coalescing zero page register [ zp ZP_WORD:114 [ bitmap_plot::plotter#0 bitmap_plot::plotter#1 ] ] with [ zp ZP_WORD:105 [ main::$16 main::$17 main::y#0 ] ]
Coalescing zero page register [ zp ZP_WORD:125 [ mul16s::$9 mul16s::$16 ] ] with [ zp ZP_WORD:116 [ bitmap_plot::$1 ] ]
Coalescing zero page register [ zp ZP_WORD:162 [ sin16s_gen2::$9 ] ] with [ zp ZP_WORD:85 [ main::$10 main::$11 main::x#0 bitmap_plot::x#0 ] ]
Coalescing zero page register [ zp ZP_WORD:168 [ sin16s::x1#0 ] ] with [ zp ZP_WORD:129 [ mul16s::$13 mul16s::$17 ] ]
Coalescing zero page register [ zp ZP_WORD:212 [ div32u16u::quotient_hi#0 ] ] with [ zp ZP_WORD:170 [ mulu16_sel::return#0 mulu16_sel::return#12 mulu16_sel::return#2 sin16s::x3_6#0 mulu16_sel::return#11 sin16s::x5#0 sin16s::x5_128#0 ] ]
Coalescing zero page register [ zp ZP_WORD:65 [ divr16u::dividend#3 divr16u::dividend#5 divr16u::dividend#0 sin16s_gen2::i#6 sin16s_gen2::i#1 ] ] with [ zp ZP_WORD:33 [ memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 main::idx_y#3 main::idx_y#10 main::idx_y#1 ] ]
Coalescing zero page register [ zp ZP_WORD:114 [ bitmap_plot::plotter#0 bitmap_plot::plotter#1 main::$16 main::$17 main::y#0 ] ] with [ zp ZP_WORD:58 [ mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 sin16s::x3#0 sin16s::x2#0 sin16s::x4#0 mulu16_sel::return#1 mulu16_sel::return#10 mul16u::b#0 ] ]
Coalescing zero page register [ zp ZP_WORD:125 [ mul16s::$9 mul16s::$16 bitmap_plot::$1 ] ] with [ zp ZP_WORD:63 [ divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 rem16u#1 mul16u::a#3 mul16u::a#6 mul16u::a#1 mul16u::a#2 mul16u::a#0 ] ]
Coalescing zero page register [ zp ZP_BYTE:140 [ bitmap_init::$7 ] ] with [ zp ZP_BYTE:51 [ sin16s::isUpper#2 main::r_add#10 main::r_add#12 main::r_add#1 ] ]
Coalescing zero page register [ zp ZP_WORD:212 [ div32u16u::quotient_hi#0 mulu16_sel::return#0 mulu16_sel::return#12 mulu16_sel::return#2 sin16s::x3_6#0 mulu16_sel::return#11 sin16s::x5#0 sin16s::x5_128#0 ] ] with [ zp ZP_WORD:41 [ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 mul16s::b#3 mul16s::b#1 mul16s::b#2 main::cos_x#0 main::sin_y#0 main::$32 main::$34 main::$33 main::$35 ] ]
Allocated (was zp ZP_WORD:19) zp ZP_WORD:2 [ mul16u::b#1 mulu16_sel::v2#5 mulu16_sel::v2#3 mulu16_sel::v2#4 mulu16_sel::v2#0 mulu16_sel::v2#1 main::idx_x#11 main::idx_x#10 main::idx_x#1 ]
Allocated (was zp ZP_DWORD:27) zp ZP_DWORD:4 [ mul16u::mb#2 mul16u::mb#0 mul16u::mb#1 ]
Allocated (was zp ZP_WORD:31) zp ZP_WORD:8 [ memset::num#2 memset::end#0 main::r#10 main::r#1 mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 sin16s::return#1 sin16s::return#5 sin16s::sinx#1 sin16s::usinx#1 sin16s::return#0 sin16s::usinx#0 ]
Allocated (was zp ZP_DWORD:45) zp ZP_DWORD:10 [ sin16s_gen2::x#6 sin16s_gen2::x#1 ]
Allocated (was zp ZP_DWORD:52) zp ZP_DWORD:14 [ sin16s::x#6 sin16s::x#4 sin16s::x#0 sin16s::x#1 sin16s::x#2 sin16s::$4 mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 mul16u::return#2 mul16s::return#0 mul16u::res#2 mul16u::res#6 mul16u::res#1 mul16u::return#3 mul16s::return#3 main::xpos#0 mul16s::return#4 main::ypos#0 mul16s::return#2 sin16s_gen2::$6 mulu16_sel::$0 mulu16_sel::$1 ]
Allocated (was zp ZP_WORD:65) zp ZP_WORD:18 [ divr16u::dividend#3 divr16u::dividend#5 divr16u::dividend#0 sin16s_gen2::i#6 sin16s_gen2::i#1 memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 main::idx_y#3 main::idx_y#10 main::idx_y#1 ]
Allocated (was zp ZP_WORD:67) zp ZP_WORD:20 [ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 divr16u::return#2 divr16u::return#3 div32u16u::quotient_lo#0 sin16s_gen2::sintab#10 sin16s_gen2::sintab#0 ]
Allocated (was zp ZP_BYTE:70) zp ZP_BYTE:22 [ frame_cnt#2 frame_cnt#0 frame_cnt#1 ]
Allocated (was zp ZP_WORD:114) zp ZP_WORD:23 [ bitmap_plot::plotter#0 bitmap_plot::plotter#1 main::$16 main::$17 main::y#0 mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 sin16s::x3#0 sin16s::x2#0 sin16s::x4#0 mulu16_sel::return#1 mulu16_sel::return#10 mul16u::b#0 ]
Allocated (was zp ZP_WORD:125) zp ZP_WORD:25 [ mul16s::$9 mul16s::$16 bitmap_plot::$1 divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 rem16u#1 mul16u::a#3 mul16u::a#6 mul16u::a#1 mul16u::a#2 mul16u::a#0 ]
Allocated (was zp ZP_BYTE:140) zp ZP_BYTE:27 [ bitmap_init::$7 sin16s::isUpper#2 main::r_add#10 main::r_add#12 main::r_add#1 ]
Allocated (was zp ZP_DWORD:144) zp ZP_DWORD:28 [ div32u16u::return#2 sin16s_gen2::step#0 div32u16u::return#0 ]
Allocated (was zp ZP_WORD:162) zp ZP_WORD:32 [ sin16s_gen2::$9 main::$10 main::$11 main::x#0 bitmap_plot::x#0 ]
Allocated (was zp ZP_WORD:168) zp ZP_WORD:34 [ sin16s::x1#0 mul16s::$13 mul16s::$17 ]
Allocated (was zp ZP_WORD:212) zp ZP_WORD:36 [ div32u16u::quotient_hi#0 mulu16_sel::return#0 mulu16_sel::return#12 mulu16_sel::return#2 sin16s::x3_6#0 mulu16_sel::return#11 sin16s::x5#0 sin16s::x5_128#0 bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 mul16s::b#3 mul16s::b#1 mul16s::b#2 main::cos_x#0 main::sin_y#0 main::$32 main::$34 main::$33 main::$35 ]
Interrupt procedure irq clobbers ACNZ
Removing interrupt register storage stx regx+1 in CHU440 entry interrupt(HARDWARE_CLOBBER)
Removing interrupt register storage sty regy+1 in CHU440 entry interrupt(HARDWARE_CLOBBER)
Removing interrupt register storage regx: in CHU451 [239] return  - exit interrupt(HARDWARE_CLOBBER)
Removing interrupt register storage ldx #00 in CHU451 [239] return  - exit interrupt(HARDWARE_CLOBBER)
Removing interrupt register storage regy: in CHU451 [239] return  - exit interrupt(HARDWARE_CLOBBER)
Removing interrupt register storage ldy #00 in CHU451 [239] return  - exit interrupt(HARDWARE_CLOBBER)

ASSEMBLER BEFORE OPTIMIZATION
  // File Comments
// Tests the simple bitmap plotter - and counts plots per frame in an IRQ
// Plots a spiral
  // Upstart
.pc = $801 "Basic"
:BasicUpstart(bbegin)
.pc = $80d "Program"
  // Global Constants & labels
  .const SIZEOF_SIGNED_WORD = 2
  // Processor port data direction register
  .label PROCPORT_DDR = 0
  // Mask for PROCESSOR_PORT_DDR which allows only memory configuration to be written
  .const PROCPORT_DDR_MEMORY_MASK = 7
  // Processor Port Register controlling RAM/ROM configuration and the datasette
  .label PROCPORT = 1
  // RAM in $A000, $E000 I/O in $D000
  .const PROCPORT_RAM_IO = 5
  .label RASTER = $d012
  .label BORDERCOL = $d020
  .label BGCOL = $d021
  .label VIC_CONTROL = $d011
  .label D011 = $d011
  .const VIC_BMM = $20
  .const VIC_DEN = $10
  .const VIC_RSEL = 8
  .label D018 = $d018
  // VIC II IRQ Status Register
  .label IRQ_STATUS = $d019
  // VIC II IRQ Enable Register
  .label IRQ_ENABLE = $d01a
  // Bits for the IRQ Status/Enable Registers
  .const IRQ_RASTER = 1
  // CIA#1 Interrupt Status & Control Register
  .label CIA1_INTERRUPT = $dc0d
  // Value that disables all CIA interrupts when stored to the CIA Interrupt registers
  .const CIA_INTERRUPT_CLEAR = $7f
  // The vector used when the HARDWARE serves IRQ interrupts
  .label HARDWARE_IRQ = $fffe
  // The colors of the C64
  .const BLACK = 0
  .const WHITE = 1
  // PI*2 in u[4.28] format
  .const PI2_u4f28 = $6487ed51
  // PI in u[4.28] format
  .const PI_u4f28 = $3243f6a9
  // PI/2 in u[4.28] format
  .const PI_HALF_u4f28 = $1921fb54
  .label BITMAP = $2000
  .label SCREEN = $400
  .label rem16u = $19
  .label frame_cnt = $16
  // @begin
bbegin:
  jmp b1
  // @1
b1:
  // [1] (byte) frame_cnt#0 ← (byte) 1 -- vbuz1=vbuc1 
  // Counts frames - updated by the IRQ
  lda #1
  sta.z frame_cnt
  // [2] phi from @1 to @2 [phi:@1->@2]
b2_from_b1:
  jmp b2
  // @2
b2:
  // [3] call main 
  // [5] phi from @2 to main [phi:@2->main]
main_from_b2:
  jsr main
  // [4] phi from @2 to @end [phi:@2->@end]
bend_from_b2:
  jmp bend
  // @end
bend:
  // main
main: {
    .const toD0181_return = (>(SCREEN&$3fff)*4)|(>BITMAP)/4&$f
    .label _10 = $20
    .label _11 = $20
    .label _16 = $17
    .label _17 = $17
    .label _32 = $24
    .label _33 = $24
    .label cos_x = $24
    .label xpos = $e
    .label x = $20
    .label sin_y = $24
    .label ypos = $e
    .label y = $17
    .label idx_x = 2
    .label idx_y = $12
    .label r = 8
    .label r_add = $1b
    .label _34 = $24
    .label _35 = $24
    // [6] call sin16s_gen2 
    // [137] phi from main to sin16s_gen2 [phi:main->sin16s_gen2]
  sin16s_gen2_from_main:
    jsr sin16s_gen2
    // [7] phi from main to main::@9 [phi:main->main::@9]
  b9_from_main:
    jmp b9
    // main::@9
  b9:
    // [8] call bitmap_init 
    // [115] phi from main::@9 to bitmap_init [phi:main::@9->bitmap_init]
  bitmap_init_from_b9:
    jsr bitmap_init
    // [9] phi from main::@9 to main::@10 [phi:main::@9->main::@10]
  b10_from_b9:
    jmp b10
    // main::@10
  b10:
    // [10] call bitmap_clear 
    // [101] phi from main::@10 to bitmap_clear [phi:main::@10->bitmap_clear]
  bitmap_clear_from_b10:
    jsr bitmap_clear
    jmp b11
    // main::@11
  b11:
    // [11] *((const byte*) D011#0) ← (const byte) VIC_BMM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte) 3 -- _deref_pbuc1=vbuc2 
    lda #VIC_BMM|VIC_DEN|VIC_RSEL|3
    sta D011
    // [12] phi from main::@11 to main::toD0181 [phi:main::@11->main::toD0181]
  toD0181_from_b11:
    jmp toD0181
    // main::toD0181
  toD0181:
    jmp b8
    // main::@8
  b8:
    // [13] *((const byte*) D018#0) ← (const byte) main::toD0181_return#0 -- _deref_pbuc1=vbuc2 
    lda #toD0181_return
    sta D018
    // [14] call init_irq 
    jsr init_irq
    // [15] phi from main::@8 to main::@1 [phi:main::@8->main::@1]
  b1_from_b8:
    // [15] phi (byte) main::r_add#10 = (byte) $20 [phi:main::@8->main::@1#0] -- vbuz1=vbuc1 
    lda #$20
    sta.z r_add
    // [15] phi (word) main::idx_y#3 = (byte) $80 [phi:main::@8->main::@1#1] -- vwuz1=vbuc1 
    lda #<$80
    sta.z idx_y
    lda #>$80
    sta.z idx_y+1
    // [15] phi (signed word) main::r#10 = (signed byte) 0 [phi:main::@8->main::@1#2] -- vwsz1=vbsc1 
    lda #<0
    sta.z r
    lda #>0
    sta.z r+1
    // [15] phi (word) main::idx_x#11 = (byte) 0 [phi:main::@8->main::@1#3] -- vwuz1=vbuc1 
    lda #<0
    sta.z idx_x
    lda #>0
    sta.z idx_x+1
    jmp b1
    // main::@1
  b1:
    jmp b2
    // main::@2
  b2:
    // [16] (word~) main::$32 ← (word) main::idx_x#11 << (byte) 1 -- vwuz1=vwuz2_rol_1 
    lda.z idx_x
    asl
    sta.z _32
    lda.z idx_x+1
    rol
    sta.z _32+1
    // [17] (signed word*~) main::$34 ← (const signed word[$200]) SINUS#0 + (word~) main::$32 -- pwsz1=pwsc1_plus_vwuz1 
    clc
    lda.z _34
    adc #<SINUS
    sta.z _34
    lda.z _34+1
    adc #>SINUS
    sta.z _34+1
    // [18] (signed word) main::cos_x#0 ← *((signed word*~) main::$34) -- vwsz1=_deref_pwsz1 
    ldy #0
    lda (cos_x),y
    tax
    iny
    lda (cos_x),y
    stx.z cos_x
    sta.z cos_x+1
    // [19] (signed word) mul16s::a#1 ← (signed word) main::r#10
    // [20] (signed word) mul16s::b#1 ← (signed word) main::cos_x#0
    // [21] call mul16s 
    // [63] phi from main::@2 to mul16s [phi:main::@2->mul16s]
  mul16s_from_b2:
    // [63] phi (signed word) mul16s::b#3 = (signed word) mul16s::b#1 [phi:main::@2->mul16s#0] -- register_copy 
    // [63] phi (signed word) mul16s::a#3 = (signed word) mul16s::a#1 [phi:main::@2->mul16s#1] -- register_copy 
    jsr mul16s
    // [22] (signed dword) mul16s::return#3 ← (signed dword) mul16s::return#0
    jmp b12
    // main::@12
  b12:
    // [23] (signed dword) main::xpos#0 ← (signed dword) mul16s::return#3
    // [24] (word~) main::$10 ← > (signed dword) main::xpos#0 -- vwuz1=_hi_vdsz2 
    lda.z xpos+2
    sta.z _10
    lda.z xpos+3
    sta.z _10+1
    // [25] (signed word~) main::$11 ← (signed word)(word~) main::$10 >> (signed byte) 2 -- vwsz1=vwsz1_ror_2 
    lda.z _11+1
    cmp #$80
    ror.z _11+1
    ror.z _11
    lda.z _11+1
    cmp #$80
    ror.z _11+1
    ror.z _11
    // [26] (signed word) main::x#0 ← (signed word) $a0 + (signed word~) main::$11 -- vwsz1=vwsc1_plus_vwsz1 
    clc
    lda.z x
    adc #<$a0
    sta.z x
    lda.z x+1
    adc #>$a0
    sta.z x+1
    // [27] (word~) main::$33 ← (word) main::idx_y#3 << (byte) 1 -- vwuz1=vwuz2_rol_1 
    lda.z idx_y
    asl
    sta.z _33
    lda.z idx_y+1
    rol
    sta.z _33+1
    // [28] (signed word*~) main::$35 ← (const signed word[$200]) SINUS#0 + (word~) main::$33 -- pwsz1=pwsc1_plus_vwuz1 
    clc
    lda.z _35
    adc #<SINUS
    sta.z _35
    lda.z _35+1
    adc #>SINUS
    sta.z _35+1
    // [29] (signed word) main::sin_y#0 ← *((signed word*~) main::$35) -- vwsz1=_deref_pwsz1 
    ldy #0
    lda (sin_y),y
    tax
    iny
    lda (sin_y),y
    stx.z sin_y
    sta.z sin_y+1
    // [30] (signed word) mul16s::a#2 ← (signed word) main::r#10
    // [31] (signed word) mul16s::b#2 ← (signed word) main::sin_y#0
    // [32] call mul16s 
    // [63] phi from main::@12 to mul16s [phi:main::@12->mul16s]
  mul16s_from_b12:
    // [63] phi (signed word) mul16s::b#3 = (signed word) mul16s::b#2 [phi:main::@12->mul16s#0] -- register_copy 
    // [63] phi (signed word) mul16s::a#3 = (signed word) mul16s::a#2 [phi:main::@12->mul16s#1] -- register_copy 
    jsr mul16s
    // [33] (signed dword) mul16s::return#4 ← (signed dword) mul16s::return#0
    jmp b13
    // main::@13
  b13:
    // [34] (signed dword) main::ypos#0 ← (signed dword) mul16s::return#4
    // [35] (word~) main::$16 ← > (signed dword) main::ypos#0 -- vwuz1=_hi_vdsz2 
    lda.z ypos+2
    sta.z _16
    lda.z ypos+3
    sta.z _16+1
    // [36] (signed word~) main::$17 ← (signed word)(word~) main::$16 >> (signed byte) 2 -- vwsz1=vwsz1_ror_2 
    lda.z _17+1
    cmp #$80
    ror.z _17+1
    ror.z _17
    lda.z _17+1
    cmp #$80
    ror.z _17+1
    ror.z _17
    // [37] (signed word) main::y#0 ← (signed byte) $64 + (signed word~) main::$17 -- vwsz1=vbsc1_plus_vwsz1 
    lda.z y
    clc
    adc #<$64
    sta.z y
    lda.z y+1
    adc #>$64
    sta.z y+1
    // [38] (byte) bitmap_plot::y#0 ← (byte)(word)(signed word) main::y#0 -- vbuxx=_byte_vwuz1 
    lda.z y
    tax
    // [39] (word) bitmap_plot::x#0 ← (word)(signed word) main::x#0
    // [40] call bitmap_plot 
    jsr bitmap_plot
    jmp b14
    // main::@14
  b14:
    // [41] *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0) ← ++ *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0) -- pbuc1_derefidx_vbuz1=_inc_pbuc1_derefidx_vbuz1 
    ldx.z frame_cnt
    inc plots_per_frame,x
    // [42] (word) main::idx_x#1 ← (word) main::idx_x#11 + (byte) main::r_add#10 -- vwuz1=vwuz1_plus_vbuz2 
    lda.z r_add
    clc
    adc.z idx_x
    sta.z idx_x
    bcc !+
    inc.z idx_x+1
  !:
    // [43] if((word) main::idx_x#1<(word) $200) goto main::@16 -- vwuz1_lt_vwuc1_then_la1 
    lda.z idx_x+1
    cmp #>$200
    bcc b16_from_b14
    bne !+
    lda.z idx_x
    cmp #<$200
    bcc b16_from_b14
  !:
    // [45] phi from main::@14 to main::@3 [phi:main::@14->main::@3]
  b3_from_b14:
    // [45] phi (word) main::idx_x#10 = (byte) 0 [phi:main::@14->main::@3#0] -- vwuz1=vbuc1 
    lda #<0
    sta.z idx_x
    lda #>0
    sta.z idx_x+1
    jmp b3
    // [44] phi from main::@14 to main::@16 [phi:main::@14->main::@16]
  b16_from_b14:
    jmp b16
    // main::@16
  b16:
    // [45] phi from main::@16 to main::@3 [phi:main::@16->main::@3]
  b3_from_b16:
    // [45] phi (word) main::idx_x#10 = (word) main::idx_x#1 [phi:main::@16->main::@3#0] -- register_copy 
    jmp b3
    // main::@3
  b3:
    // [46] (word) main::idx_y#1 ← (word) main::idx_y#3 + (byte) main::r_add#10 -- vwuz1=vwuz1_plus_vbuz2 
    lda.z r_add
    clc
    adc.z idx_y
    sta.z idx_y
    bcc !+
    inc.z idx_y+1
  !:
    // [47] if((word) main::idx_y#1<(word) $200) goto main::@17 -- vwuz1_lt_vwuc1_then_la1 
    lda.z idx_y+1
    cmp #>$200
    bcc b17_from_b3
    bne !+
    lda.z idx_y
    cmp #<$200
    bcc b17_from_b3
  !:
    // [49] phi from main::@3 to main::@4 [phi:main::@3->main::@4]
  b4_from_b3:
    // [49] phi (word) main::idx_y#10 = (byte) 0 [phi:main::@3->main::@4#0] -- vwuz1=vbuc1 
    lda #<0
    sta.z idx_y
    lda #>0
    sta.z idx_y+1
    jmp b4
    // [48] phi from main::@3 to main::@17 [phi:main::@3->main::@17]
  b17_from_b3:
    jmp b17
    // main::@17
  b17:
    // [49] phi from main::@17 to main::@4 [phi:main::@17->main::@4]
  b4_from_b17:
    // [49] phi (word) main::idx_y#10 = (word) main::idx_y#1 [phi:main::@17->main::@4#0] -- register_copy 
    jmp b4
    // main::@4
  b4:
    // [50] (signed word) main::r#1 ← (signed word) main::r#10 + (byte) main::r_add#10 -- vwsz1=vwsz1_plus_vbuz2 
    clc
    lda.z r
    adc.z r_add
    sta.z r
    lda.z r+1
    adc #0
    sta.z r+1
    // [51] if((word) main::idx_x#10!=(byte) 0) goto main::@5 -- vwuz1_neq_0_then_la1 
    lda.z idx_x
    bne b5_from_b4
    lda.z idx_x+1
    bne b5_from_b4
    jmp b15
    // main::@15
  b15:
    // [52] if((byte) main::r_add#10==(byte) 1) goto main::@5 -- vbuz1_eq_vbuc1_then_la1 
    lda #1
    cmp.z r_add
    beq b5_from_b15
    jmp b6
    // main::@6
  b6:
    // [53] (byte) main::r_add#1 ← (byte) main::r_add#10 >> (byte) 1 -- vbuz1=vbuz1_ror_1 
    lsr.z r_add
    // [54] phi from main::@4 main::@6 to main::@5 [phi:main::@4/main::@6->main::@5]
  b5_from_b4:
  b5_from_b6:
    // [54] phi (byte) main::r_add#12 = (byte) main::r_add#10 [phi:main::@4/main::@6->main::@5#0] -- register_copy 
    jmp b5
    // [54] phi from main::@15 to main::@5 [phi:main::@15->main::@5]
  b5_from_b15:
    jmp b5
    // main::@5
  b5:
    // [55] if((signed word) main::r#1>=(signed word)(number) $200*(number) $c+(number) $100) goto main::@7 -- vwsz1_ge_vwsc1_then_la1 
    lda.z r
    cmp #<$200*$c+$100
    lda.z r+1
    sbc #>$200*$c+$100
    bvc !+
    eor #$80
  !:
    bpl b7
    // [15] phi from main::@5 to main::@1 [phi:main::@5->main::@1]
  b1_from_b5:
    // [15] phi (byte) main::r_add#10 = (byte) main::r_add#12 [phi:main::@5->main::@1#0] -- register_copy 
    // [15] phi (word) main::idx_y#3 = (word) main::idx_y#10 [phi:main::@5->main::@1#1] -- register_copy 
    // [15] phi (signed word) main::r#10 = (signed word) main::r#1 [phi:main::@5->main::@1#2] -- register_copy 
    // [15] phi (word) main::idx_x#11 = (word) main::idx_x#10 [phi:main::@5->main::@1#3] -- register_copy 
    jmp b1
    // main::@7
  b7:
    // [56] *((const byte*) BORDERCOL#0) ← ++ *((const byte*) BORDERCOL#0) -- _deref_pbuc1=_inc__deref_pbuc1 
    inc BORDERCOL
    jmp b7
}
  // bitmap_plot
// Plot a single dot in the bitmap
// bitmap_plot(word zeropage($20) x, byte register(X) y)
bitmap_plot: {
    .label _1 = $19
    .label plotter = $17
    .label x = $20
    // [57] (word) bitmap_plot::plotter#0 ← *((const byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_plot::y#0) w= *((const byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_plot::y#0) -- vwuz1=pbuc1_derefidx_vbuxx_word_pbuc2_derefidx_vbuxx 
    lda bitmap_plot_yhi,x
    sta.z plotter+1
    lda bitmap_plot_ylo,x
    sta.z plotter
    // [58] (word~) bitmap_plot::$1 ← (word) bitmap_plot::x#0 & (word) $fff8 -- vwuz1=vwuz2_band_vwuc1 
    lda.z x
    and #<$fff8
    sta.z _1
    lda.z x+1
    and #>$fff8
    sta.z _1+1
    // [59] (byte*) bitmap_plot::plotter#1 ← (byte*)(word) bitmap_plot::plotter#0 + (word~) bitmap_plot::$1 -- pbuz1=pbuz1_plus_vwuz2 
    lda.z plotter
    clc
    adc.z _1
    sta.z plotter
    lda.z plotter+1
    adc.z _1+1
    sta.z plotter+1
    // [60] (byte~) bitmap_plot::$2 ← < (word) bitmap_plot::x#0 -- vbuaa=_lo_vwuz1 
    lda.z x
    // [61] *((byte*) bitmap_plot::plotter#1) ← *((byte*) bitmap_plot::plotter#1) | *((const byte[$100]) bitmap_plot_bit#0 + (byte~) bitmap_plot::$2) -- _deref_pbuz1=_deref_pbuz1_bor_pbuc1_derefidx_vbuaa 
    tay
    lda bitmap_plot_bit,y
    ldy #0
    ora (plotter),y
    ldy #0
    sta (plotter),y
    jmp breturn
    // bitmap_plot::@return
  breturn:
    // [62] return 
    rts
}
  // mul16s
// Multiply of two signed words to a signed double word
// Fixes offsets introduced by using unsigned multiplication
// mul16s(signed word zeropage(8) a, signed word zeropage($24) b)
mul16s: {
    .label _9 = $19
    .label _13 = $22
    .label _16 = $19
    .label _17 = $22
    .label m = $e
    .label return = $e
    .label a = 8
    .label b = $24
    // [64] (word) mul16u::a#1 ← (word)(signed word) mul16s::a#3 -- vwuz1=vwuz2 
    lda.z a
    sta.z mul16u.a
    lda.z a+1
    sta.z mul16u.a+1
    // [65] (word) mul16u::b#0 ← (word)(signed word) mul16s::b#3 -- vwuz1=vwuz2 
    lda.z b
    sta.z mul16u.b
    lda.z b+1
    sta.z mul16u.b+1
    // [66] call mul16u 
    // [81] phi from mul16s to mul16u [phi:mul16s->mul16u]
  mul16u_from_mul16s:
    // [81] phi (word) mul16u::a#6 = (word) mul16u::a#1 [phi:mul16s->mul16u#0] -- register_copy 
    // [81] phi (dword) mul16u::mb#0 = (word) mul16u::b#0 [phi:mul16s->mul16u#1] -- vduz1=vwuz2 
    lda.z mul16u.b
    sta.z mul16u.mb
    lda.z mul16u.b+1
    sta.z mul16u.mb+1
    lda #0
    sta.z mul16u.mb+2
    sta.z mul16u.mb+3
    jsr mul16u
    // [67] (dword) mul16u::return#2 ← (dword) mul16u::res#2
    jmp b5
    // mul16s::@5
  b5:
    // [68] (dword) mul16s::m#0 ← (dword) mul16u::return#2
    // [69] if((signed word) mul16s::a#3>=(signed byte) 0) goto mul16s::@1 -- vwsz1_ge_0_then_la1 
    lda.z a+1
    bpl b1_from_b5
    jmp b3
    // mul16s::@3
  b3:
    // [70] (word~) mul16s::$9 ← > (dword) mul16s::m#0 -- vwuz1=_hi_vduz2 
    lda.z m+2
    sta.z _9
    lda.z m+3
    sta.z _9+1
    // [71] (word~) mul16s::$16 ← (word~) mul16s::$9 - (word)(signed word) mul16s::b#3 -- vwuz1=vwuz1_minus_vwuz2 
    lda.z _16
    sec
    sbc.z b
    sta.z _16
    lda.z _16+1
    sbc.z b+1
    sta.z _16+1
    // [72] (dword) mul16s::m#1 ← (dword) mul16s::m#0 hi= (word~) mul16s::$16 -- vduz1=vduz1_sethi_vwuz2 
    lda.z _16
    sta.z m+2
    lda.z _16+1
    sta.z m+3
    // [73] phi from mul16s::@3 mul16s::@5 to mul16s::@1 [phi:mul16s::@3/mul16s::@5->mul16s::@1]
  b1_from_b3:
  b1_from_b5:
    // [73] phi (dword) mul16s::m#5 = (dword) mul16s::m#1 [phi:mul16s::@3/mul16s::@5->mul16s::@1#0] -- register_copy 
    jmp b1
    // mul16s::@1
  b1:
    // [74] if((signed word) mul16s::b#3>=(signed byte) 0) goto mul16s::@2 -- vwsz1_ge_0_then_la1 
    lda.z b+1
    bpl b2_from_b1
    jmp b4
    // mul16s::@4
  b4:
    // [75] (word~) mul16s::$13 ← > (dword) mul16s::m#5 -- vwuz1=_hi_vduz2 
    lda.z m+2
    sta.z _13
    lda.z m+3
    sta.z _13+1
    // [76] (word~) mul16s::$17 ← (word~) mul16s::$13 - (word)(signed word) mul16s::a#3 -- vwuz1=vwuz1_minus_vwuz2 
    lda.z _17
    sec
    sbc.z a
    sta.z _17
    lda.z _17+1
    sbc.z a+1
    sta.z _17+1
    // [77] (dword) mul16s::m#2 ← (dword) mul16s::m#5 hi= (word~) mul16s::$17 -- vduz1=vduz1_sethi_vwuz2 
    lda.z _17
    sta.z m+2
    lda.z _17+1
    sta.z m+3
    // [78] phi from mul16s::@1 mul16s::@4 to mul16s::@2 [phi:mul16s::@1/mul16s::@4->mul16s::@2]
  b2_from_b1:
  b2_from_b4:
    // [78] phi (dword) mul16s::m#4 = (dword) mul16s::m#5 [phi:mul16s::@1/mul16s::@4->mul16s::@2#0] -- register_copy 
    jmp b2
    // mul16s::@2
  b2:
    // [79] (signed dword) mul16s::return#0 ← (signed dword)(dword) mul16s::m#4
    jmp breturn
    // mul16s::@return
  breturn:
    // [80] return 
    rts
}
  // mul16u
// Perform binary multiplication of two unsigned 16-bit words into a 32-bit unsigned double word
// mul16u(word zeropage($19) a, word zeropage($17) b)
mul16u: {
    .label mb = 4
    .label a = $19
    .label res = $e
    .label b = $17
    .label return = $e
    .label b_1 = 2
    // [82] phi from mul16u to mul16u::@1 [phi:mul16u->mul16u::@1]
  b1_from_mul16u:
    // [82] phi (dword) mul16u::mb#2 = (dword) mul16u::mb#0 [phi:mul16u->mul16u::@1#0] -- register_copy 
    // [82] phi (dword) mul16u::res#2 = (byte) 0 [phi:mul16u->mul16u::@1#1] -- vduz1=vbuc1 
    lda #0
    sta.z res
    lda #0
    sta.z res+1
    sta.z res+2
    sta.z res+3
    // [82] phi (word) mul16u::a#3 = (word) mul16u::a#6 [phi:mul16u->mul16u::@1#2] -- register_copy 
    jmp b1
    // mul16u::@1
  b1:
    // [83] if((word) mul16u::a#3!=(byte) 0) goto mul16u::@2 -- vwuz1_neq_0_then_la1 
    lda.z a
    bne b2
    lda.z a+1
    bne b2
    jmp breturn
    // mul16u::@return
  breturn:
    // [84] return 
    rts
    // mul16u::@2
  b2:
    // [85] (byte~) mul16u::$1 ← (word) mul16u::a#3 & (byte) 1 -- vbuaa=vwuz1_band_vbuc1 
    lda.z a
    and #1
    // [86] if((byte~) mul16u::$1==(byte) 0) goto mul16u::@3 -- vbuaa_eq_0_then_la1 
    cmp #0
    beq b3_from_b2
    jmp b4
    // mul16u::@4
  b4:
    // [87] (dword) mul16u::res#1 ← (dword) mul16u::res#2 + (dword) mul16u::mb#2 -- vduz1=vduz1_plus_vduz2 
    lda.z res
    clc
    adc.z mb
    sta.z res
    lda.z res+1
    adc.z mb+1
    sta.z res+1
    lda.z res+2
    adc.z mb+2
    sta.z res+2
    lda.z res+3
    adc.z mb+3
    sta.z res+3
    // [88] phi from mul16u::@2 mul16u::@4 to mul16u::@3 [phi:mul16u::@2/mul16u::@4->mul16u::@3]
  b3_from_b2:
  b3_from_b4:
    // [88] phi (dword) mul16u::res#6 = (dword) mul16u::res#2 [phi:mul16u::@2/mul16u::@4->mul16u::@3#0] -- register_copy 
    jmp b3
    // mul16u::@3
  b3:
    // [89] (word) mul16u::a#0 ← (word) mul16u::a#3 >> (byte) 1 -- vwuz1=vwuz1_ror_1 
    lsr.z a+1
    ror.z a
    // [90] (dword) mul16u::mb#1 ← (dword) mul16u::mb#2 << (byte) 1 -- vduz1=vduz1_rol_1 
    asl.z mb
    rol.z mb+1
    rol.z mb+2
    rol.z mb+3
    // [82] phi from mul16u::@3 to mul16u::@1 [phi:mul16u::@3->mul16u::@1]
  b1_from_b3:
    // [82] phi (dword) mul16u::mb#2 = (dword) mul16u::mb#1 [phi:mul16u::@3->mul16u::@1#0] -- register_copy 
    // [82] phi (dword) mul16u::res#2 = (dword) mul16u::res#6 [phi:mul16u::@3->mul16u::@1#1] -- register_copy 
    // [82] phi (word) mul16u::a#3 = (word) mul16u::a#0 [phi:mul16u::@3->mul16u::@1#2] -- register_copy 
    jmp b1
}
  // init_irq
// Setup the IRQ
init_irq: {
    // asm { sei  }
    sei
    // [92] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 -- _deref_pbuc1=vbuc2 
    // Disable kernal & basic
    lda #PROCPORT_DDR_MEMORY_MASK
    sta PROCPORT_DDR
    // [93] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 -- _deref_pbuc1=vbuc2 
    lda #PROCPORT_RAM_IO
    sta PROCPORT
    // [94] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 -- _deref_pbuc1=vbuc2 
    // Disable CIA 1 Timer IRQ
    lda #CIA_INTERRUPT_CLEAR
    sta CIA1_INTERRUPT
    // [95] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) | (byte) $80 -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 
    // Set raster line to $100
    lda #$80
    ora VIC_CONTROL
    sta VIC_CONTROL
    // [96] *((const byte*) RASTER#0) ← (byte) 0 -- _deref_pbuc1=vbuc2 
    lda #0
    sta RASTER
    // [97] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 
    // Enable Raster Interrupt
    lda #IRQ_RASTER
    sta IRQ_ENABLE
    // [98] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() -- _deref_pptc1=pprc2 
    // Set the IRQ routine
    lda #<irq
    sta HARDWARE_IRQ
    lda #>irq
    sta HARDWARE_IRQ+1
    // asm { cli  }
    cli
    jmp breturn
    // init_irq::@return
  breturn:
    // [100] return 
    rts
}
  // bitmap_clear
// Clear all graphics on the bitmap
// bgcol - the background color to fill the screen with
// fgcol - the foreground color to fill the screen with
bitmap_clear: {
    .const col = WHITE*$10
    // [102] call memset 
    // [106] phi from bitmap_clear to memset [phi:bitmap_clear->memset]
  memset_from_bitmap_clear:
    // [106] phi (byte) memset::c#4 = (const byte) bitmap_clear::col#0 [phi:bitmap_clear->memset#0] -- vbuxx=vbuc1 
    ldx #col
    // [106] phi (void*) memset::str#3 = (void*)(const byte*) SCREEN#0 [phi:bitmap_clear->memset#1] -- pvoz1=pvoc1 
    lda #<SCREEN
    sta.z memset.str
    lda #>SCREEN
    sta.z memset.str+1
    // [106] phi (word) memset::num#2 = (word) $3e8 [phi:bitmap_clear->memset#2] -- vwuz1=vwuc1 
    lda #<$3e8
    sta.z memset.num
    lda #>$3e8
    sta.z memset.num+1
    jsr memset
    // [103] phi from bitmap_clear to bitmap_clear::@1 [phi:bitmap_clear->bitmap_clear::@1]
  b1_from_bitmap_clear:
    jmp b1
    // bitmap_clear::@1
  b1:
    // [104] call memset 
    // [106] phi from bitmap_clear::@1 to memset [phi:bitmap_clear::@1->memset]
  memset_from_b1:
    // [106] phi (byte) memset::c#4 = (byte) 0 [phi:bitmap_clear::@1->memset#0] -- vbuxx=vbuc1 
    ldx #0
    // [106] phi (void*) memset::str#3 = (void*)(const byte*) BITMAP#0 [phi:bitmap_clear::@1->memset#1] -- pvoz1=pvoc1 
    lda #<BITMAP
    sta.z memset.str
    lda #>BITMAP
    sta.z memset.str+1
    // [106] phi (word) memset::num#2 = (word) $1f40 [phi:bitmap_clear::@1->memset#2] -- vwuz1=vwuc1 
    lda #<$1f40
    sta.z memset.num
    lda #>$1f40
    sta.z memset.num+1
    jsr memset
    jmp breturn
    // bitmap_clear::@return
  breturn:
    // [105] return 
    rts
}
  // memset
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
// memset(void* zeropage($12) str, byte register(X) c, word zeropage(8) num)
memset: {
    .label end = 8
    .label dst = $12
    .label num = 8
    .label str = $12
    // [107] if((word) memset::num#2<=(byte) 0) goto memset::@return -- vwuz1_le_0_then_la1 
    lda.z num
    bne !+
    lda.z num+1
    beq breturn
  !:
    jmp b1
    // memset::@1
  b1:
    // [108] (byte*) memset::end#0 ← (byte*)(void*) memset::str#3 + (word) memset::num#2 -- pbuz1=pbuz2_plus_vwuz1 
    lda.z end
    clc
    adc.z str
    sta.z end
    lda.z end+1
    adc.z str+1
    sta.z end+1
    // [109] (byte*~) memset::dst#4 ← (byte*)(void*) memset::str#3
    // [110] phi from memset::@1 memset::@3 to memset::@2 [phi:memset::@1/memset::@3->memset::@2]
  b2_from_b1:
  b2_from_b3:
    // [110] phi (byte*) memset::dst#2 = (byte*~) memset::dst#4 [phi:memset::@1/memset::@3->memset::@2#0] -- register_copy 
    jmp b2
    // memset::@2
  b2:
    // [111] if((byte*) memset::dst#2!=(byte*) memset::end#0) goto memset::@3 -- pbuz1_neq_pbuz2_then_la1 
    lda.z dst+1
    cmp.z end+1
    bne b3
    lda.z dst
    cmp.z end
    bne b3
    jmp breturn
    // memset::@return
  breturn:
    // [112] return 
    rts
    // memset::@3
  b3:
    // [113] *((byte*) memset::dst#2) ← (byte) memset::c#4 -- _deref_pbuz1=vbuxx 
    txa
    ldy #0
    sta (dst),y
    // [114] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2 -- pbuz1=_inc_pbuz1 
    inc.z dst
    bne !+
    inc.z dst+1
  !:
    jmp b2_from_b3
}
  // bitmap_init
// Initialize bitmap plotting tables
bitmap_init: {
    .label _7 = $1b
    .label yoffs = $24
    // [116] phi from bitmap_init to bitmap_init::@1 [phi:bitmap_init->bitmap_init::@1]
  b1_from_bitmap_init:
    // [116] phi (byte) bitmap_init::x#2 = (byte) 0 [phi:bitmap_init->bitmap_init::@1#0] -- vbuxx=vbuc1 
    ldx #0
    // [116] phi (byte) bitmap_init::bits#3 = (byte) $80 [phi:bitmap_init->bitmap_init::@1#1] -- vbuaa=vbuc1 
    lda #$80
    jmp b1
    // [116] phi from bitmap_init::@2 to bitmap_init::@1 [phi:bitmap_init::@2->bitmap_init::@1]
  b1_from_b2:
    // [116] phi (byte) bitmap_init::x#2 = (byte) bitmap_init::x#1 [phi:bitmap_init::@2->bitmap_init::@1#0] -- register_copy 
    // [116] phi (byte) bitmap_init::bits#3 = (byte) bitmap_init::bits#4 [phi:bitmap_init::@2->bitmap_init::@1#1] -- register_copy 
    jmp b1
    // bitmap_init::@1
  b1:
    // [117] *((const byte[$100]) bitmap_plot_bit#0 + (byte) bitmap_init::x#2) ← (byte) bitmap_init::bits#3 -- pbuc1_derefidx_vbuxx=vbuaa 
    sta bitmap_plot_bit,x
    // [118] (byte) bitmap_init::bits#1 ← (byte) bitmap_init::bits#3 >> (byte) 1 -- vbuaa=vbuaa_ror_1 
    lsr
    // [119] if((byte) bitmap_init::bits#1!=(byte) 0) goto bitmap_init::@6 -- vbuaa_neq_0_then_la1 
    cmp #0
    bne b6_from_b1
    // [121] phi from bitmap_init::@1 to bitmap_init::@2 [phi:bitmap_init::@1->bitmap_init::@2]
  b2_from_b1:
    // [121] phi (byte) bitmap_init::bits#4 = (byte) $80 [phi:bitmap_init::@1->bitmap_init::@2#0] -- vbuaa=vbuc1 
    lda #$80
    jmp b2
    // [120] phi from bitmap_init::@1 to bitmap_init::@6 [phi:bitmap_init::@1->bitmap_init::@6]
  b6_from_b1:
    jmp b6
    // bitmap_init::@6
  b6:
    // [121] phi from bitmap_init::@6 to bitmap_init::@2 [phi:bitmap_init::@6->bitmap_init::@2]
  b2_from_b6:
    // [121] phi (byte) bitmap_init::bits#4 = (byte) bitmap_init::bits#1 [phi:bitmap_init::@6->bitmap_init::@2#0] -- register_copy 
    jmp b2
    // bitmap_init::@2
  b2:
    // [122] (byte) bitmap_init::x#1 ← ++ (byte) bitmap_init::x#2 -- vbuxx=_inc_vbuxx 
    inx
    // [123] if((byte) bitmap_init::x#1!=(byte) 0) goto bitmap_init::@1 -- vbuxx_neq_0_then_la1 
    cpx #0
    bne b1_from_b2
    // [124] phi from bitmap_init::@2 to bitmap_init::@3 [phi:bitmap_init::@2->bitmap_init::@3]
  b3_from_b2:
    // [124] phi (byte*) bitmap_init::yoffs#2 = (const byte*) BITMAP#0 [phi:bitmap_init::@2->bitmap_init::@3#0] -- pbuz1=pbuc1 
    lda #<BITMAP
    sta.z yoffs
    lda #>BITMAP
    sta.z yoffs+1
    // [124] phi (byte) bitmap_init::y#2 = (byte) 0 [phi:bitmap_init::@2->bitmap_init::@3#1] -- vbuxx=vbuc1 
    ldx #0
    jmp b3
    // [124] phi from bitmap_init::@4 to bitmap_init::@3 [phi:bitmap_init::@4->bitmap_init::@3]
  b3_from_b4:
    // [124] phi (byte*) bitmap_init::yoffs#2 = (byte*) bitmap_init::yoffs#4 [phi:bitmap_init::@4->bitmap_init::@3#0] -- register_copy 
    // [124] phi (byte) bitmap_init::y#2 = (byte) bitmap_init::y#1 [phi:bitmap_init::@4->bitmap_init::@3#1] -- register_copy 
    jmp b3
    // bitmap_init::@3
  b3:
    // [125] (byte~) bitmap_init::$7 ← (byte) bitmap_init::y#2 & (byte) 7 -- vbuz1=vbuxx_band_vbuc1 
    lda #7
    sax.z _7
    // [126] (byte~) bitmap_init::$4 ← < (byte*) bitmap_init::yoffs#2 -- vbuaa=_lo_pbuz1 
    lda.z yoffs
    // [127] (byte~) bitmap_init::$5 ← (byte~) bitmap_init::$7 | (byte~) bitmap_init::$4 -- vbuaa=vbuz1_bor_vbuaa 
    ora.z _7
    // [128] *((const byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_init::y#2) ← (byte~) bitmap_init::$5 -- pbuc1_derefidx_vbuxx=vbuaa 
    sta bitmap_plot_ylo,x
    // [129] (byte~) bitmap_init::$6 ← > (byte*) bitmap_init::yoffs#2 -- vbuaa=_hi_pbuz1 
    lda.z yoffs+1
    // [130] *((const byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_init::y#2) ← (byte~) bitmap_init::$6 -- pbuc1_derefidx_vbuxx=vbuaa 
    sta bitmap_plot_yhi,x
    // [131] if((byte~) bitmap_init::$7!=(byte) 7) goto bitmap_init::@4 -- vbuz1_neq_vbuc1_then_la1 
    lda #7
    cmp.z _7
    bne b4_from_b3
    jmp b5
    // bitmap_init::@5
  b5:
    // [132] (byte*) bitmap_init::yoffs#1 ← (byte*) bitmap_init::yoffs#2 + (word)(number) $28*(number) 8 -- pbuz1=pbuz1_plus_vwuc1 
    clc
    lda.z yoffs
    adc #<$28*8
    sta.z yoffs
    lda.z yoffs+1
    adc #>$28*8
    sta.z yoffs+1
    // [133] phi from bitmap_init::@3 bitmap_init::@5 to bitmap_init::@4 [phi:bitmap_init::@3/bitmap_init::@5->bitmap_init::@4]
  b4_from_b3:
  b4_from_b5:
    // [133] phi (byte*) bitmap_init::yoffs#4 = (byte*) bitmap_init::yoffs#2 [phi:bitmap_init::@3/bitmap_init::@5->bitmap_init::@4#0] -- register_copy 
    jmp b4
    // bitmap_init::@4
  b4:
    // [134] (byte) bitmap_init::y#1 ← ++ (byte) bitmap_init::y#2 -- vbuxx=_inc_vbuxx 
    inx
    // [135] if((byte) bitmap_init::y#1!=(byte) 0) goto bitmap_init::@3 -- vbuxx_neq_0_then_la1 
    cpx #0
    bne b3_from_b4
    jmp breturn
    // bitmap_init::@return
  breturn:
    // [136] return 
    rts
}
  // sin16s_gen2
// Generate signed word sinus table - with values in the range min-max.
// sintab - the table to generate into
// wavelength - the number of sinus points in a total sinus wavelength (the size of the table)
// sin16s_gen2(signed word* zeropage($14) sintab)
sin16s_gen2: {
    .label wavelength = $200
    .const min = -$1001
    .const max = $1001
    .const ampl = max-min
    .label _6 = $e
    .label _9 = $20
    .label step = $1c
    .label sintab = $14
    .label x = $a
    .label i = $12
    // [138] call div32u16u 
    // [205] phi from sin16s_gen2 to div32u16u [phi:sin16s_gen2->div32u16u]
  div32u16u_from_sin16s_gen2:
    jsr div32u16u
    // [139] (dword) div32u16u::return#2 ← (dword) div32u16u::return#0
    jmp b3
    // sin16s_gen2::@3
  b3:
    // [140] (dword) sin16s_gen2::step#0 ← (dword) div32u16u::return#2
    // [141] phi from sin16s_gen2::@3 to sin16s_gen2::@2 [phi:sin16s_gen2::@3->sin16s_gen2::@2]
  b2_from_b3:
    // [141] phi (signed word*) sin16s_gen2::sintab#10 = (const signed word[$200]) SINUS#0 [phi:sin16s_gen2::@3->sin16s_gen2::@2#0] -- pwsz1=pwsc1 
    lda #<SINUS
    sta.z sintab
    lda #>SINUS
    sta.z sintab+1
    // [141] phi (dword) sin16s_gen2::x#6 = (byte) 0 [phi:sin16s_gen2::@3->sin16s_gen2::@2#1] -- vduz1=vbuc1 
    lda #0
    sta.z x
    lda #0
    sta.z x+1
    sta.z x+2
    sta.z x+3
    // [141] phi (word) sin16s_gen2::i#6 = (byte) 0 [phi:sin16s_gen2::@3->sin16s_gen2::@2#2] -- vwuz1=vbuc1 
    lda #<0
    sta.z i
    lda #>0
    sta.z i+1
    jmp b2
    // [141] phi from sin16s_gen2::@1 to sin16s_gen2::@2 [phi:sin16s_gen2::@1->sin16s_gen2::@2]
  b2_from_b1:
    // [141] phi (signed word*) sin16s_gen2::sintab#10 = (signed word*) sin16s_gen2::sintab#0 [phi:sin16s_gen2::@1->sin16s_gen2::@2#0] -- register_copy 
    // [141] phi (dword) sin16s_gen2::x#6 = (dword) sin16s_gen2::x#1 [phi:sin16s_gen2::@1->sin16s_gen2::@2#1] -- register_copy 
    // [141] phi (word) sin16s_gen2::i#6 = (word) sin16s_gen2::i#1 [phi:sin16s_gen2::@1->sin16s_gen2::@2#2] -- register_copy 
    jmp b2
    // sin16s_gen2::@2
  b2:
    // [142] (dword) sin16s::x#0 ← (dword) sin16s_gen2::x#6 -- vduz1=vduz2 
    lda.z x
    sta.z sin16s.x
    lda.z x+1
    sta.z sin16s.x+1
    lda.z x+2
    sta.z sin16s.x+2
    lda.z x+3
    sta.z sin16s.x+3
    // [143] call sin16s 
    jsr sin16s
    // [144] (signed word) sin16s::return#0 ← (signed word) sin16s::return#1
    jmp b4
    // sin16s_gen2::@4
  b4:
    // [145] (signed word) mul16s::a#0 ← (signed word) sin16s::return#0
    // [146] call mul16s 
    // [63] phi from sin16s_gen2::@4 to mul16s [phi:sin16s_gen2::@4->mul16s]
  mul16s_from_b4:
    // [63] phi (signed word) mul16s::b#3 = (const signed word) sin16s_gen2::ampl#0 [phi:sin16s_gen2::@4->mul16s#0] -- vwsz1=vwsc1 
    lda #<ampl
    sta.z mul16s.b
    lda #>ampl
    sta.z mul16s.b+1
    // [63] phi (signed word) mul16s::a#3 = (signed word) mul16s::a#0 [phi:sin16s_gen2::@4->mul16s#1] -- register_copy 
    jsr mul16s
    // [147] (signed dword) mul16s::return#2 ← (signed dword) mul16s::return#0
    jmp b5
    // sin16s_gen2::@5
  b5:
    // [148] (signed dword~) sin16s_gen2::$6 ← (signed dword) mul16s::return#2
    // [149] (word~) sin16s_gen2::$9 ← > (signed dword~) sin16s_gen2::$6 -- vwuz1=_hi_vdsz2 
    lda.z _6+2
    sta.z _9
    lda.z _6+3
    sta.z _9+1
    // [150] *((signed word*) sin16s_gen2::sintab#10) ← (signed word)(word~) sin16s_gen2::$9 -- _deref_pwsz1=vwsz2 
    ldy #0
    lda.z _9
    sta (sintab),y
    iny
    lda.z _9+1
    sta (sintab),y
    // [151] (signed word*) sin16s_gen2::sintab#0 ← (signed word*) sin16s_gen2::sintab#10 + (const byte) SIZEOF_SIGNED_WORD -- pwsz1=pwsz1_plus_vbuc1 
    lda #SIZEOF_SIGNED_WORD
    clc
    adc.z sintab
    sta.z sintab
    bcc !+
    inc.z sintab+1
  !:
    // [152] (dword) sin16s_gen2::x#1 ← (dword) sin16s_gen2::x#6 + (dword) sin16s_gen2::step#0 -- vduz1=vduz1_plus_vduz2 
    lda.z x
    clc
    adc.z step
    sta.z x
    lda.z x+1
    adc.z step+1
    sta.z x+1
    lda.z x+2
    adc.z step+2
    sta.z x+2
    lda.z x+3
    adc.z step+3
    sta.z x+3
    // [153] (word) sin16s_gen2::i#1 ← ++ (word) sin16s_gen2::i#6 -- vwuz1=_inc_vwuz1 
    inc.z i
    bne !+
    inc.z i+1
  !:
    jmp b1
  // u[4.28]
    // sin16s_gen2::@1
  b1:
    // [154] if((word) sin16s_gen2::i#1<(const word) sin16s_gen2::wavelength#0) goto sin16s_gen2::@2 -- vwuz1_lt_vwuc1_then_la1 
    lda.z i+1
    cmp #>wavelength
    bcc b2_from_b1
    bne !+
    lda.z i
    cmp #<wavelength
    bcc b2_from_b1
  !:
    jmp breturn
    // sin16s_gen2::@return
  breturn:
    // [155] return 
    rts
}
  // sin16s
// Calculate signed word sinus sin(x)
// x: unsigned dword input u[4.28] in the interval $00000000 - PI2_u4f28
// result: signed word sin(x) s[0.15] - using the full range  -$7fff - $7fff
// sin16s(dword zeropage($e) x)
sin16s: {
    .label _4 = $e
    .label x = $e
    .label return = 8
    .label x1 = $22
    .label x2 = $17
    .label x3 = $17
    .label x3_6 = $24
    .label usinx = 8
    .label x4 = $17
    .label x5 = $24
    .label x5_128 = $24
    .label sinx = 8
    .label isUpper = $1b
    // [156] if((dword) sin16s::x#0<(const dword) PI_u4f28#0) goto sin16s::@1 -- vduz1_lt_vduc1_then_la1 
    lda.z x+3
    cmp #>PI_u4f28>>$10
    bcc b1_from_sin16s
    bne !+
    lda.z x+2
    cmp #<PI_u4f28>>$10
    bcc b1_from_sin16s
    bne !+
    lda.z x+1
    cmp #>PI_u4f28
    bcc b1_from_sin16s
    bne !+
    lda.z x
    cmp #<PI_u4f28
    bcc b1_from_sin16s
  !:
    jmp b4
    // sin16s::@4
  b4:
    // [157] (dword) sin16s::x#1 ← (dword) sin16s::x#0 - (const dword) PI_u4f28#0 -- vduz1=vduz1_minus_vduc1 
    lda.z x
    sec
    sbc #<PI_u4f28
    sta.z x
    lda.z x+1
    sbc #>PI_u4f28
    sta.z x+1
    lda.z x+2
    sbc #<PI_u4f28>>$10
    sta.z x+2
    lda.z x+3
    sbc #>PI_u4f28>>$10
    sta.z x+3
    // [158] phi from sin16s::@4 to sin16s::@1 [phi:sin16s::@4->sin16s::@1]
  b1_from_b4:
    // [158] phi (byte) sin16s::isUpper#2 = (byte) 1 [phi:sin16s::@4->sin16s::@1#0] -- vbuz1=vbuc1 
    lda #1
    sta.z isUpper
    // [158] phi (dword) sin16s::x#4 = (dword) sin16s::x#1 [phi:sin16s::@4->sin16s::@1#1] -- register_copy 
    jmp b1
    // [158] phi from sin16s to sin16s::@1 [phi:sin16s->sin16s::@1]
  b1_from_sin16s:
    // [158] phi (byte) sin16s::isUpper#2 = (byte) 0 [phi:sin16s->sin16s::@1#0] -- vbuz1=vbuc1 
    lda #0
    sta.z isUpper
    // [158] phi (dword) sin16s::x#4 = (dword) sin16s::x#0 [phi:sin16s->sin16s::@1#1] -- register_copy 
    jmp b1
    // sin16s::@1
  b1:
    // [159] if((dword) sin16s::x#4<(const dword) PI_HALF_u4f28#0) goto sin16s::@2 -- vduz1_lt_vduc1_then_la1 
    lda.z x+3
    cmp #>PI_HALF_u4f28>>$10
    bcc b2_from_b1
    bne !+
    lda.z x+2
    cmp #<PI_HALF_u4f28>>$10
    bcc b2_from_b1
    bne !+
    lda.z x+1
    cmp #>PI_HALF_u4f28
    bcc b2_from_b1
    bne !+
    lda.z x
    cmp #<PI_HALF_u4f28
    bcc b2_from_b1
  !:
    jmp b5
    // sin16s::@5
  b5:
    // [160] (dword) sin16s::x#2 ← (const dword) PI_u4f28#0 - (dword) sin16s::x#4 -- vduz1=vduc1_minus_vduz1 
    lda #<PI_u4f28
    sec
    sbc.z x
    sta.z x
    lda #>PI_u4f28
    sbc.z x+1
    sta.z x+1
    lda #<PI_u4f28>>$10
    sbc.z x+2
    sta.z x+2
    lda #>PI_u4f28>>$10
    sbc.z x+3
    sta.z x+3
    // [161] phi from sin16s::@1 sin16s::@5 to sin16s::@2 [phi:sin16s::@1/sin16s::@5->sin16s::@2]
  b2_from_b1:
  b2_from_b5:
    // [161] phi (dword) sin16s::x#6 = (dword) sin16s::x#4 [phi:sin16s::@1/sin16s::@5->sin16s::@2#0] -- register_copy 
    jmp b2
    // sin16s::@2
  b2:
    // [162] (dword~) sin16s::$4 ← (dword) sin16s::x#6 << (byte) 3 -- vduz1=vduz1_rol_3 
    ldy #3
  !:
    asl.z _4
    rol.z _4+1
    rol.z _4+2
    rol.z _4+3
    dey
    bne !-
    // [163] (word) sin16s::x1#0 ← > (dword~) sin16s::$4 -- vwuz1=_hi_vduz2 
    lda.z _4+2
    sta.z x1
    lda.z _4+3
    sta.z x1+1
    // [164] (word) mulu16_sel::v1#0 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v1
    lda.z x1+1
    sta.z mulu16_sel.v1+1
    // [165] (word) mulu16_sel::v2#0 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [166] call mulu16_sel 
    // [196] phi from sin16s::@2 to mulu16_sel [phi:sin16s::@2->mulu16_sel]
  mulu16_sel_from_b2:
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 0 [phi:sin16s::@2->mulu16_sel#0] -- vbuxx=vbuc1 
    ldx #0
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#0 [phi:sin16s::@2->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#0 [phi:sin16s::@2->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // [167] (word) mulu16_sel::return#0 ← (word) mulu16_sel::return#12
    jmp b7
    // sin16s::@7
  b7:
    // [168] (word) sin16s::x2#0 ← (word) mulu16_sel::return#0 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return
    sta.z x2
    lda.z mulu16_sel.return+1
    sta.z x2+1
    // [169] (word) mulu16_sel::v1#1 ← (word) sin16s::x2#0
    // [170] (word) mulu16_sel::v2#1 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [171] call mulu16_sel 
    // [196] phi from sin16s::@7 to mulu16_sel [phi:sin16s::@7->mulu16_sel]
  mulu16_sel_from_b7:
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 1 [phi:sin16s::@7->mulu16_sel#0] -- vbuxx=vbuc1 
    ldx #1
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#1 [phi:sin16s::@7->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#1 [phi:sin16s::@7->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // [172] (word) mulu16_sel::return#1 ← (word) mulu16_sel::return#12 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return
    sta.z mulu16_sel.return_1
    lda.z mulu16_sel.return+1
    sta.z mulu16_sel.return_1+1
    jmp b8
    // sin16s::@8
  b8:
    // [173] (word) sin16s::x3#0 ← (word) mulu16_sel::return#1
    // [174] (word) mulu16_sel::v1#2 ← (word) sin16s::x3#0
    // [175] call mulu16_sel 
    // [196] phi from sin16s::@8 to mulu16_sel [phi:sin16s::@8->mulu16_sel]
  mulu16_sel_from_b8:
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 1 [phi:sin16s::@8->mulu16_sel#0] -- vbuxx=vbuc1 
    ldx #1
    // [196] phi (word) mulu16_sel::v2#5 = (word)(number) $10000/(number) 6 [phi:sin16s::@8->mulu16_sel#1] -- vwuz1=vwuc1 
    lda #<$10000/6
    sta.z mulu16_sel.v2
    lda #>$10000/6
    sta.z mulu16_sel.v2+1
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#2 [phi:sin16s::@8->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // [176] (word) mulu16_sel::return#2 ← (word) mulu16_sel::return#12
    jmp b9
    // sin16s::@9
  b9:
    // [177] (word) sin16s::x3_6#0 ← (word) mulu16_sel::return#2
    // [178] (word) sin16s::usinx#0 ← (word) sin16s::x1#0 - (word) sin16s::x3_6#0 -- vwuz1=vwuz2_minus_vwuz3 
    lda.z x1
    sec
    sbc.z x3_6
    sta.z usinx
    lda.z x1+1
    sbc.z x3_6+1
    sta.z usinx+1
    // [179] (word) mulu16_sel::v1#3 ← (word) sin16s::x3#0
    // [180] (word) mulu16_sel::v2#3 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [181] call mulu16_sel 
    // [196] phi from sin16s::@9 to mulu16_sel [phi:sin16s::@9->mulu16_sel]
  mulu16_sel_from_b9:
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 0 [phi:sin16s::@9->mulu16_sel#0] -- vbuxx=vbuc1 
    ldx #0
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#3 [phi:sin16s::@9->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#3 [phi:sin16s::@9->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // [182] (word) mulu16_sel::return#10 ← (word) mulu16_sel::return#12 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return
    sta.z mulu16_sel.return_10
    lda.z mulu16_sel.return+1
    sta.z mulu16_sel.return_10+1
    jmp b10
    // sin16s::@10
  b10:
    // [183] (word) sin16s::x4#0 ← (word) mulu16_sel::return#10
    // [184] (word) mulu16_sel::v1#4 ← (word) sin16s::x4#0
    // [185] (word) mulu16_sel::v2#4 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [186] call mulu16_sel 
    // [196] phi from sin16s::@10 to mulu16_sel [phi:sin16s::@10->mulu16_sel]
  mulu16_sel_from_b10:
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 0 [phi:sin16s::@10->mulu16_sel#0] -- vbuxx=vbuc1 
    ldx #0
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#4 [phi:sin16s::@10->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#4 [phi:sin16s::@10->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // [187] (word) mulu16_sel::return#11 ← (word) mulu16_sel::return#12
    jmp b11
    // sin16s::@11
  b11:
    // [188] (word) sin16s::x5#0 ← (word) mulu16_sel::return#11
    // [189] (word) sin16s::x5_128#0 ← (word) sin16s::x5#0 >> (byte) 4 -- vwuz1=vwuz1_ror_4 
    lsr.z x5_128+1
    ror.z x5_128
    lsr.z x5_128+1
    ror.z x5_128
    lsr.z x5_128+1
    ror.z x5_128
    lsr.z x5_128+1
    ror.z x5_128
    // [190] (word) sin16s::usinx#1 ← (word) sin16s::usinx#0 + (word) sin16s::x5_128#0 -- vwuz1=vwuz1_plus_vwuz2 
    lda.z usinx
    clc
    adc.z x5_128
    sta.z usinx
    lda.z usinx+1
    adc.z x5_128+1
    sta.z usinx+1
    // [191] if((byte) sin16s::isUpper#2==(byte) 0) goto sin16s::@12 -- vbuz1_eq_0_then_la1 
    lda.z isUpper
    cmp #0
    beq b12
    jmp b6
    // sin16s::@6
  b6:
    // [192] (signed word) sin16s::sinx#1 ← - (signed word)(word) sin16s::usinx#1 -- vwsz1=_neg_vwsz1 
    sec
    lda #0
    sbc.z sinx
    sta.z sinx
    lda #0
    sbc.z sinx+1
    sta.z sinx+1
    // [193] phi from sin16s::@12 sin16s::@6 to sin16s::@3 [phi:sin16s::@12/sin16s::@6->sin16s::@3]
  b3_from_b12:
  b3_from_b6:
    // [193] phi (signed word) sin16s::return#1 = (signed word~) sin16s::return#5 [phi:sin16s::@12/sin16s::@6->sin16s::@3#0] -- register_copy 
    jmp b3
    // sin16s::@3
  b3:
    jmp breturn
    // sin16s::@return
  breturn:
    // [194] return 
    rts
    // sin16s::@12
  b12:
    // [195] (signed word~) sin16s::return#5 ← (signed word)(word) sin16s::usinx#1
    jmp b3_from_b12
}
  // mulu16_sel
// Calculate val*val for two unsigned word values - the result is 16 selected bits of the 32-bit result.
// The select parameter indicates how many of the highest bits of the 32-bit result to skip
// mulu16_sel(word zeropage($17) v1, word zeropage(2) v2, byte register(X) select)
mulu16_sel: {
    .label _0 = $e
    .label _1 = $e
    .label v1 = $17
    .label v2 = 2
    .label return = $24
    .label return_1 = $17
    .label return_10 = $17
    // [197] (word) mul16u::a#2 ← (word) mulu16_sel::v1#5 -- vwuz1=vwuz2 
    lda.z v1
    sta.z mul16u.a
    lda.z v1+1
    sta.z mul16u.a+1
    // [198] (word) mul16u::b#1 ← (word) mulu16_sel::v2#5
    // [199] call mul16u 
    // [81] phi from mulu16_sel to mul16u [phi:mulu16_sel->mul16u]
  mul16u_from_mulu16_sel:
    // [81] phi (word) mul16u::a#6 = (word) mul16u::a#2 [phi:mulu16_sel->mul16u#0] -- register_copy 
    // [81] phi (dword) mul16u::mb#0 = (word) mul16u::b#1 [phi:mulu16_sel->mul16u#1] -- vduz1=vwuz2 
    lda.z mul16u.b_1
    sta.z mul16u.mb
    lda.z mul16u.b_1+1
    sta.z mul16u.mb+1
    lda #0
    sta.z mul16u.mb+2
    sta.z mul16u.mb+3
    jsr mul16u
    // [200] (dword) mul16u::return#3 ← (dword) mul16u::res#2
    jmp b1
    // mulu16_sel::@1
  b1:
    // [201] (dword~) mulu16_sel::$0 ← (dword) mul16u::return#3
    // [202] (dword~) mulu16_sel::$1 ← (dword~) mulu16_sel::$0 << (byte) mulu16_sel::select#5 -- vduz1=vduz1_rol_vbuxx 
    cpx #0
    beq !e+
  !:
    asl.z _1
    rol.z _1+1
    rol.z _1+2
    rol.z _1+3
    dex
    bne !-
  !e:
    // [203] (word) mulu16_sel::return#12 ← > (dword~) mulu16_sel::$1 -- vwuz1=_hi_vduz2 
    lda.z _1+2
    sta.z return
    lda.z _1+3
    sta.z return+1
    jmp breturn
    // mulu16_sel::@return
  breturn:
    // [204] return 
    rts
}
  // div32u16u
// Divide unsigned 32-bit dword dividend with a 16-bit word divisor
// The 16-bit word remainder can be found in rem16u after the division
div32u16u: {
    .label quotient_hi = $24
    .label quotient_lo = $14
    .label return = $1c
    // [206] call divr16u 
    // [215] phi from div32u16u to divr16u [phi:div32u16u->divr16u]
  divr16u_from_div32u16u:
    // [215] phi (word) divr16u::dividend#5 = >(const dword) PI2_u4f28#0 [phi:div32u16u->divr16u#0] -- vwuz1=vwuc1 
    lda #<PI2_u4f28>>$10
    sta.z divr16u.dividend
    lda #>PI2_u4f28>>$10
    sta.z divr16u.dividend+1
    // [215] phi (word) divr16u::rem#10 = (byte) 0 [phi:div32u16u->divr16u#1] -- vwuz1=vbuc1 
    lda #<0
    sta.z divr16u.rem
    lda #>0
    sta.z divr16u.rem+1
    jsr divr16u
    // [207] (word) divr16u::return#2 ← (word) divr16u::return#0
    jmp b1
    // div32u16u::@1
  b1:
    // [208] (word) div32u16u::quotient_hi#0 ← (word) divr16u::return#2 -- vwuz1=vwuz2 
    lda.z divr16u.return
    sta.z quotient_hi
    lda.z divr16u.return+1
    sta.z quotient_hi+1
    // [209] (word) divr16u::rem#4 ← (word) rem16u#1
    // [210] call divr16u 
    // [215] phi from div32u16u::@1 to divr16u [phi:div32u16u::@1->divr16u]
  divr16u_from_b1:
    // [215] phi (word) divr16u::dividend#5 = <(const dword) PI2_u4f28#0 [phi:div32u16u::@1->divr16u#0] -- vwuz1=vwuc1 
    lda #<PI2_u4f28&$ffff
    sta.z divr16u.dividend
    lda #>PI2_u4f28&$ffff
    sta.z divr16u.dividend+1
    // [215] phi (word) divr16u::rem#10 = (word) divr16u::rem#4 [phi:div32u16u::@1->divr16u#1] -- register_copy 
    jsr divr16u
    // [211] (word) divr16u::return#3 ← (word) divr16u::return#0
    jmp b2
    // div32u16u::@2
  b2:
    // [212] (word) div32u16u::quotient_lo#0 ← (word) divr16u::return#3
    // [213] (dword) div32u16u::return#0 ← (word) div32u16u::quotient_hi#0 dw= (word) div32u16u::quotient_lo#0 -- vduz1=vwuz2_dword_vwuz3 
    lda.z quotient_hi
    sta.z return+2
    lda.z quotient_hi+1
    sta.z return+3
    lda.z quotient_lo
    sta.z return
    lda.z quotient_lo+1
    sta.z return+1
    jmp breturn
    // div32u16u::@return
  breturn:
    // [214] return 
    rts
}
  // divr16u
// Performs division on two 16 bit unsigned words and an initial remainder
// Returns the quotient dividend/divisor.
// The final remainder will be set into the global variable rem16u
// Implemented using simple binary division
// divr16u(word zeropage($12) dividend, word zeropage($19) rem)
divr16u: {
    .label rem = $19
    .label dividend = $12
    .label quotient = $14
    .label return = $14
    // [216] phi from divr16u to divr16u::@1 [phi:divr16u->divr16u::@1]
  b1_from_divr16u:
    // [216] phi (byte) divr16u::i#2 = (byte) 0 [phi:divr16u->divr16u::@1#0] -- vbuxx=vbuc1 
    ldx #0
    // [216] phi (word) divr16u::quotient#3 = (byte) 0 [phi:divr16u->divr16u::@1#1] -- vwuz1=vbuc1 
    lda #<0
    sta.z quotient
    lda #>0
    sta.z quotient+1
    // [216] phi (word) divr16u::dividend#3 = (word) divr16u::dividend#5 [phi:divr16u->divr16u::@1#2] -- register_copy 
    // [216] phi (word) divr16u::rem#5 = (word) divr16u::rem#10 [phi:divr16u->divr16u::@1#3] -- register_copy 
    jmp b1
    // [216] phi from divr16u::@3 to divr16u::@1 [phi:divr16u::@3->divr16u::@1]
  b1_from_b3:
    // [216] phi (byte) divr16u::i#2 = (byte) divr16u::i#1 [phi:divr16u::@3->divr16u::@1#0] -- register_copy 
    // [216] phi (word) divr16u::quotient#3 = (word) divr16u::return#0 [phi:divr16u::@3->divr16u::@1#1] -- register_copy 
    // [216] phi (word) divr16u::dividend#3 = (word) divr16u::dividend#0 [phi:divr16u::@3->divr16u::@1#2] -- register_copy 
    // [216] phi (word) divr16u::rem#5 = (word) divr16u::rem#11 [phi:divr16u::@3->divr16u::@1#3] -- register_copy 
    jmp b1
    // divr16u::@1
  b1:
    // [217] (word) divr16u::rem#0 ← (word) divr16u::rem#5 << (byte) 1 -- vwuz1=vwuz1_rol_1 
    asl.z rem
    rol.z rem+1
    // [218] (byte~) divr16u::$1 ← > (word) divr16u::dividend#3 -- vbuaa=_hi_vwuz1 
    lda.z dividend+1
    // [219] (byte~) divr16u::$2 ← (byte~) divr16u::$1 & (byte) $80 -- vbuaa=vbuaa_band_vbuc1 
    and #$80
    // [220] if((byte~) divr16u::$2==(byte) 0) goto divr16u::@2 -- vbuaa_eq_0_then_la1 
    cmp #0
    beq b2_from_b1
    jmp b4
    // divr16u::@4
  b4:
    // [221] (word) divr16u::rem#1 ← (word) divr16u::rem#0 | (byte) 1 -- vwuz1=vwuz1_bor_vbuc1 
    lda #1
    ora.z rem
    sta.z rem
    // [222] phi from divr16u::@1 divr16u::@4 to divr16u::@2 [phi:divr16u::@1/divr16u::@4->divr16u::@2]
  b2_from_b1:
  b2_from_b4:
    // [222] phi (word) divr16u::rem#6 = (word) divr16u::rem#0 [phi:divr16u::@1/divr16u::@4->divr16u::@2#0] -- register_copy 
    jmp b2
    // divr16u::@2
  b2:
    // [223] (word) divr16u::dividend#0 ← (word) divr16u::dividend#3 << (byte) 1 -- vwuz1=vwuz1_rol_1 
    asl.z dividend
    rol.z dividend+1
    // [224] (word) divr16u::quotient#1 ← (word) divr16u::quotient#3 << (byte) 1 -- vwuz1=vwuz1_rol_1 
    asl.z quotient
    rol.z quotient+1
    // [225] if((word) divr16u::rem#6<(const word) sin16s_gen2::wavelength#0) goto divr16u::@3 -- vwuz1_lt_vwuc1_then_la1 
    lda.z rem+1
    cmp #>sin16s_gen2.wavelength
    bcc b3_from_b2
    bne !+
    lda.z rem
    cmp #<sin16s_gen2.wavelength
    bcc b3_from_b2
  !:
    jmp b5
    // divr16u::@5
  b5:
    // [226] (word) divr16u::quotient#2 ← ++ (word) divr16u::quotient#1 -- vwuz1=_inc_vwuz1 
    inc.z quotient
    bne !+
    inc.z quotient+1
  !:
    // [227] (word) divr16u::rem#2 ← (word) divr16u::rem#6 - (const word) sin16s_gen2::wavelength#0 -- vwuz1=vwuz1_minus_vwuc1 
    lda.z rem
    sec
    sbc #<sin16s_gen2.wavelength
    sta.z rem
    lda.z rem+1
    sbc #>sin16s_gen2.wavelength
    sta.z rem+1
    // [228] phi from divr16u::@2 divr16u::@5 to divr16u::@3 [phi:divr16u::@2/divr16u::@5->divr16u::@3]
  b3_from_b2:
  b3_from_b5:
    // [228] phi (word) divr16u::return#0 = (word) divr16u::quotient#1 [phi:divr16u::@2/divr16u::@5->divr16u::@3#0] -- register_copy 
    // [228] phi (word) divr16u::rem#11 = (word) divr16u::rem#6 [phi:divr16u::@2/divr16u::@5->divr16u::@3#1] -- register_copy 
    jmp b3
    // divr16u::@3
  b3:
    // [229] (byte) divr16u::i#1 ← ++ (byte) divr16u::i#2 -- vbuxx=_inc_vbuxx 
    inx
    // [230] if((byte) divr16u::i#1!=(byte) $10) goto divr16u::@1 -- vbuxx_neq_vbuc1_then_la1 
    cpx #$10
    bne b1_from_b3
    jmp b6
    // divr16u::@6
  b6:
    // [231] (word) rem16u#1 ← (word) divr16u::rem#11
    jmp breturn
    // divr16u::@return
  breturn:
    // [232] return 
    rts
}
  // irq
// Interrupt Routine counting frames
irq: {
    // entry interrupt(HARDWARE_CLOBBER)
    sta rega+1
    // [233] *((const byte*) BGCOL#0) ← (const byte) WHITE#0 -- _deref_pbuc1=vbuc2 
    lda #WHITE
    sta BGCOL
    // [234] if((byte) 0==(byte) frame_cnt#0) goto irq::@1 -- vbuc1_eq_vbuz1_then_la1 
    lda #0
    cmp.z frame_cnt
    beq b1_from_irq
    jmp b2
    // irq::@2
  b2:
    // [235] (byte) frame_cnt#1 ← ++ (byte) frame_cnt#0 -- vbuz1=_inc_vbuz1 
    inc.z frame_cnt
    // [236] phi from irq irq::@2 to irq::@1 [phi:irq/irq::@2->irq::@1]
  b1_from_irq:
  b1_from_b2:
    // [236] phi (byte) frame_cnt#2 = (byte) frame_cnt#0 [phi:irq/irq::@2->irq::@1#0] -- register_copy 
    jmp b1
    // irq::@1
  b1:
    // [237] *((const byte*) BGCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 
    lda #BLACK
    sta BGCOL
    // [238] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 
    // Acknowledge the IRQ
    lda #IRQ_RASTER
    sta IRQ_STATUS
    jmp breturn
    // irq::@return
  breturn:
    // [239] return  - exit interrupt(HARDWARE_CLOBBER)
  rega:
    lda #00
    rti
}
  // File Data
  // Tables for the plotter - initialized by calling bitmap_init();
  bitmap_plot_ylo: .fill $100, 0
  bitmap_plot_yhi: .fill $100, 0
  bitmap_plot_bit: .fill $100, 0
  plots_per_frame: .fill $100, 0
  .align $100
  SINUS: .fill 2*$200, 0

ASSEMBLER OPTIMIZATIONS
Removing instruction jmp b1
Removing instruction jmp b2
Removing instruction jmp bend
Removing instruction jmp b9
Removing instruction jmp b10
Removing instruction jmp b11
Removing instruction jmp toD0181
Removing instruction jmp b8
Removing instruction jmp b1
Removing instruction jmp b2
Removing instruction jmp b12
Removing instruction jmp b13
Removing instruction jmp b14
Removing instruction jmp b16
Removing instruction jmp b3
Removing instruction jmp b17
Removing instruction jmp b4
Removing instruction jmp b15
Removing instruction jmp b6
Removing instruction jmp b5
Removing instruction jmp breturn
Removing instruction jmp b5
Removing instruction jmp b3
Removing instruction jmp b1
Removing instruction jmp b4
Removing instruction jmp b2
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp breturn
Removing instruction jmp b4
Removing instruction jmp b3
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp b2
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp b6
Removing instruction jmp b2
Removing instruction jmp b3
Removing instruction jmp b5
Removing instruction jmp b4
Removing instruction jmp breturn
Removing instruction jmp b3
Removing instruction jmp b2
Removing instruction jmp b4
Removing instruction jmp b5
Removing instruction jmp b1
Removing instruction jmp breturn
Removing instruction jmp b4
Removing instruction jmp b1
Removing instruction jmp b5
Removing instruction jmp b2
Removing instruction jmp b7
Removing instruction jmp b8
Removing instruction jmp b9
Removing instruction jmp b10
Removing instruction jmp b11
Removing instruction jmp b6
Removing instruction jmp b3
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp b2
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp b4
Removing instruction jmp b2
Removing instruction jmp b5
Removing instruction jmp b3
Removing instruction jmp b6
Removing instruction jmp breturn
Removing instruction jmp b2
Removing instruction jmp b1
Removing instruction jmp breturn
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction lda #>0
Removing instruction lda #<0
Removing instruction lda #>0
Removing instruction lda #>0
Removing instruction lda #>0
Removing instruction ldy #0
Removing instruction lda #0
Removing instruction lda #0
Removing instruction lda #<0
Removing instruction lda #>0
Removing instruction lda #>0
Replacing instruction lda #<0 with TXA
Removing instruction lda #>0
Succesful ASM optimization Pass5UnnecesaryLoadElimination
Replacing label b16_from_b14 with b3
Replacing label b16_from_b14 with b3
Replacing label b17_from_b3 with b4
Replacing label b17_from_b3 with b4
Replacing label b5_from_b4 with b5_from_b6
Replacing label b5_from_b4 with b5_from_b6
Replacing label b5_from_b15 with b5
Replacing label b1 with b2
Replacing label b1_from_b5 with b1
Replacing label b2_from_b1 with b2
Replacing label b3_from_b2 with b3
Replacing label b2_from_b3 with b2
Replacing label b6_from_b1 with b2
Replacing label b1_from_b2 with b1
Replacing label b4_from_b3 with b4
Replacing label b3_from_b4 with b3
Replacing label b2_from_b1 with b2
Replacing label b2_from_b1 with b2
Replacing label b2_from_b1 with b2
Replacing label b2_from_b1 with b2
Replacing label b2_from_b1 with b2
Replacing label b2_from_b1 with b2
Replacing label b3_from_b12 with b3
Replacing label b2_from_b1 with b2
Replacing label b3_from_b2 with b3
Replacing label b3_from_b2 with b3
Replacing label b1_from_b3 with b1
Replacing label b1_from_irq with b1
Removing instruction b1:
Removing instruction b2_from_b1:
Removing instruction main_from_b2:
Removing instruction bend_from_b2:
Removing instruction b9_from_main:
Removing instruction bitmap_init_from_b9:
Removing instruction b10_from_b9:
Removing instruction bitmap_clear_from_b10:
Removing instruction toD0181_from_b11:
Removing instruction toD0181:
Removing instruction b1:
Removing instruction b16_from_b14:
Removing instruction b16:
Removing instruction b3_from_b16:
Removing instruction b17_from_b3:
Removing instruction b17:
Removing instruction b4_from_b17:
Removing instruction b5_from_b4:
Removing instruction b5_from_b15:
Removing instruction b1_from_b3:
Removing instruction b1_from_b5:
Removing instruction b2_from_b1:
Removing instruction b2_from_b4:
Removing instruction breturn:
Removing instruction b3_from_b2:
Removing instruction b3_from_b4:
Removing instruction b1_from_bitmap_clear:
Removing instruction memset_from_b1:
Removing instruction b2_from_b1:
Removing instruction b2_from_b3:
Removing instruction b1_from_b2:
Removing instruction b6_from_b1:
Removing instruction b6:
Removing instruction b2_from_b6:
Removing instruction b3_from_b4:
Removing instruction b4_from_b3:
Removing instruction b4_from_b5:
Removing instruction b2_from_b3:
Removing instruction b2_from_b1:
Removing instruction mul16s_from_b4:
Removing instruction b2_from_b1:
Removing instruction b2_from_b5:
Removing instruction mulu16_sel_from_b8:
Removing instruction b3_from_b12:
Removing instruction b3_from_b6:
Removing instruction breturn:
Removing instruction b1_from_b3:
Removing instruction b2_from_b1:
Removing instruction b2_from_b4:
Removing instruction b3_from_b2:
Removing instruction b3_from_b5:
Removing instruction breturn:
Removing instruction b1_from_irq:
Removing instruction b1_from_b2:
Removing instruction breturn:
Succesful ASM optimization Pass5RedundantLabelElimination
Removing instruction b2:
Removing instruction bend:
Removing instruction sin16s_gen2_from_main:
Removing instruction b9:
Removing instruction b10:
Removing instruction b11:
Removing instruction b8:
Removing instruction b1_from_b8:
Removing instruction mul16s_from_b2:
Removing instruction b12:
Removing instruction mul16s_from_b12:
Removing instruction b13:
Removing instruction b14:
Removing instruction b3_from_b14:
Removing instruction b4_from_b3:
Removing instruction b15:
Removing instruction b6:
Removing instruction b1_from_b5:
Removing instruction breturn:
Removing instruction mul16u_from_mul16s:
Removing instruction b5:
Removing instruction b3:
Removing instruction b4:
Removing instruction b1_from_mul16u:
Removing instruction breturn:
Removing instruction b4:
Removing instruction b1_from_b3:
Removing instruction breturn:
Removing instruction memset_from_bitmap_clear:
Removing instruction b1:
Removing instruction breturn:
Removing instruction b1:
Removing instruction b1_from_bitmap_init:
Removing instruction b2_from_b1:
Removing instruction b3_from_b2:
Removing instruction b5:
Removing instruction breturn:
Removing instruction div32u16u_from_sin16s_gen2:
Removing instruction b3:
Removing instruction b4:
Removing instruction b5:
Removing instruction b1:
Removing instruction breturn:
Removing instruction b4:
Removing instruction b1_from_b4:
Removing instruction b5:
Removing instruction mulu16_sel_from_b2:
Removing instruction b7:
Removing instruction mulu16_sel_from_b7:
Removing instruction b8:
Removing instruction b9:
Removing instruction mulu16_sel_from_b9:
Removing instruction b10:
Removing instruction mulu16_sel_from_b10:
Removing instruction b11:
Removing instruction b6:
Removing instruction mul16u_from_mulu16_sel:
Removing instruction b1:
Removing instruction breturn:
Removing instruction divr16u_from_div32u16u:
Removing instruction b1:
Removing instruction divr16u_from_b1:
Removing instruction b2:
Removing instruction breturn:
Removing instruction b1_from_divr16u:
Removing instruction b4:
Removing instruction b5:
Removing instruction b6:
Removing instruction b2:
Succesful ASM optimization Pass5UnusedLabelElimination
Skipping double jump to b5 in bne b5_from_b6
Skipping double jump to b5 in bne b5_from_b6
Skipping double jump to b3 in beq b12
Replacing jump to rts with rts in jmp b3
Succesful ASM optimization Pass5DoubleJumpElimination
Relabelling long label b5_from_b6 to b1
Relabelling long label b1_from_sin16s to b4
Succesful ASM optimization Pass5RelabelLongLabels
Adding RTS to root block 
Succesful ASM optimization Pass5AddMainRts
Removing instruction jmp b3
Removing instruction jmp b4
Removing instruction jmp b5
Removing instruction jmp b1
Removing instruction jmp b2
Removing instruction jmp b3
Removing instruction jmp b2
Removing instruction jmp b1
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction b1:
Succesful ASM optimization Pass5RedundantLabelElimination
Removing instruction b12:
Succesful ASM optimization Pass5UnusedLabelElimination
Removing unreachable instruction rts
Succesful ASM optimization Pass5UnreachableCodeElimination

FINAL SYMBOL TABLE
(label) @1
(label) @2
(label) @begin
(label) @end
(byte*) BGCOL
(const byte*) BGCOL#0 BGCOL = (byte*) 53281
(byte*) BITMAP
(const byte*) BITMAP#0 BITMAP = (byte*) 8192
(byte) BLACK
(const byte) BLACK#0 BLACK = (byte) 0
(byte*) BORDERCOL
(const byte*) BORDERCOL#0 BORDERCOL = (byte*) 53280
(byte*) CIA1_INTERRUPT
(const byte*) CIA1_INTERRUPT#0 CIA1_INTERRUPT = (byte*) 56333
(byte) CIA_INTERRUPT_CLEAR
(const byte) CIA_INTERRUPT_CLEAR#0 CIA_INTERRUPT_CLEAR = (byte) $7f
(byte*) D011
(const byte*) D011#0 D011 = (byte*) 53265
(byte*) D018
(const byte*) D018#0 D018 = (byte*) 53272
(void()**) HARDWARE_IRQ
(const void()**) HARDWARE_IRQ#0 HARDWARE_IRQ = (void()**) 65534
(byte*) IRQ_ENABLE
(const byte*) IRQ_ENABLE#0 IRQ_ENABLE = (byte*) 53274
(byte) IRQ_RASTER
(const byte) IRQ_RASTER#0 IRQ_RASTER = (byte) 1
(byte*) IRQ_STATUS
(const byte*) IRQ_STATUS#0 IRQ_STATUS = (byte*) 53273
(dword) PI2_u4f28
(const dword) PI2_u4f28#0 PI2_u4f28 = (dword) $6487ed51
(dword) PI_HALF_u4f28
(const dword) PI_HALF_u4f28#0 PI_HALF_u4f28 = (dword) $1921fb54
(dword) PI_u4f28
(const dword) PI_u4f28#0 PI_u4f28 = (dword) $3243f6a9
(byte*) PROCPORT
(const byte*) PROCPORT#0 PROCPORT = (byte*) 1
(byte*) PROCPORT_DDR
(const byte*) PROCPORT_DDR#0 PROCPORT_DDR = (byte*) 0
(byte) PROCPORT_DDR_MEMORY_MASK
(const byte) PROCPORT_DDR_MEMORY_MASK#0 PROCPORT_DDR_MEMORY_MASK = (byte) 7
(byte) PROCPORT_RAM_IO
(const byte) PROCPORT_RAM_IO#0 PROCPORT_RAM_IO = (byte) 5
(byte*) RASTER
(const byte*) RASTER#0 RASTER = (byte*) 53266
(byte*) SCREEN
(const byte*) SCREEN#0 SCREEN = (byte*) 1024
(signed word[$200]) SINUS
(const signed word[$200]) SINUS#0 SINUS = { fill( $200, 0) }
(const byte) SIZEOF_SIGNED_WORD SIZEOF_SIGNED_WORD = (byte) 2
(byte) VIC_BMM
(const byte) VIC_BMM#0 VIC_BMM = (byte) $20
(byte*) VIC_CONTROL
(const byte*) VIC_CONTROL#0 VIC_CONTROL = (byte*) 53265
(byte) VIC_DEN
(const byte) VIC_DEN#0 VIC_DEN = (byte) $10
(byte) VIC_RSEL
(const byte) VIC_RSEL#0 VIC_RSEL = (byte) 8
(byte) WHITE
(const byte) WHITE#0 WHITE = (byte) 1
(void()) bitmap_clear((byte) bitmap_clear::bgcol , (byte) bitmap_clear::fgcol)
(label) bitmap_clear::@1
(label) bitmap_clear::@return
(byte) bitmap_clear::bgcol
(byte) bitmap_clear::col
(const byte) bitmap_clear::col#0 col = (const byte) WHITE#0*(byte) $10
(byte) bitmap_clear::fgcol
(byte*) bitmap_gfx
(void()) bitmap_init((byte*) bitmap_init::gfx , (byte*) bitmap_init::screen)
(byte~) bitmap_init::$4 reg byte a 22.0
(byte~) bitmap_init::$5 reg byte a 22.0
(byte~) bitmap_init::$6 reg byte a 22.0
(byte~) bitmap_init::$7 $7 zp ZP_BYTE:27 5.5
(label) bitmap_init::@1
(label) bitmap_init::@2
(label) bitmap_init::@3
(label) bitmap_init::@4
(label) bitmap_init::@5
(label) bitmap_init::@6
(label) bitmap_init::@return
(byte) bitmap_init::bits
(byte) bitmap_init::bits#1 reg byte a 11.0
(byte) bitmap_init::bits#3 reg byte a 16.5
(byte) bitmap_init::bits#4 reg byte a 7.333333333333333
(byte*) bitmap_init::gfx
(byte*) bitmap_init::screen
(byte) bitmap_init::x
(byte) bitmap_init::x#1 reg byte x 16.5
(byte) bitmap_init::x#2 reg byte x 5.5
(byte) bitmap_init::y
(byte) bitmap_init::y#1 reg byte x 16.5
(byte) bitmap_init::y#2 reg byte x 5.5
(byte*) bitmap_init::yoffs
(byte*) bitmap_init::yoffs#1 yoffs zp ZP_WORD:36 22.0
(byte*) bitmap_init::yoffs#2 yoffs zp ZP_WORD:36 6.875
(byte*) bitmap_init::yoffs#4 yoffs zp ZP_WORD:36 11.0
(void()) bitmap_plot((word) bitmap_plot::x , (byte) bitmap_plot::y)
(word~) bitmap_plot::$1 $1 zp ZP_WORD:25 4.0
(byte~) bitmap_plot::$2 reg byte a 4.0
(label) bitmap_plot::@return
(byte*) bitmap_plot::plotter
(word) bitmap_plot::plotter#0 plotter zp ZP_WORD:23 1.0
(byte*) bitmap_plot::plotter#1 plotter zp ZP_WORD:23 3.0
(word) bitmap_plot::x
(word) bitmap_plot::x#0 x zp ZP_WORD:32 3.75
(byte) bitmap_plot::y
(byte) bitmap_plot::y#0 reg byte x 7.5
(byte[$100]) bitmap_plot_bit
(const byte[$100]) bitmap_plot_bit#0 bitmap_plot_bit = { fill( $100, 0) }
(byte[$100]) bitmap_plot_yhi
(const byte[$100]) bitmap_plot_yhi#0 bitmap_plot_yhi = { fill( $100, 0) }
(byte[$100]) bitmap_plot_ylo
(const byte[$100]) bitmap_plot_ylo#0 bitmap_plot_ylo = { fill( $100, 0) }
(byte*) bitmap_screen
(dword()) div32u16u((dword) div32u16u::dividend , (word) div32u16u::divisor)
(label) div32u16u::@1
(label) div32u16u::@2
(label) div32u16u::@return
(dword) div32u16u::dividend
(word) div32u16u::divisor
(dword) div32u16u::quotient
(word) div32u16u::quotient_hi
(word) div32u16u::quotient_hi#0 quotient_hi zp ZP_WORD:36 0.8
(word) div32u16u::quotient_lo
(word) div32u16u::quotient_lo#0 quotient_lo zp ZP_WORD:20 4.0
(dword) div32u16u::return
(dword) div32u16u::return#0 return zp ZP_DWORD:28 1.3333333333333333
(dword) div32u16u::return#2 return zp ZP_DWORD:28 4.0
(word()) divr16u((word) divr16u::dividend , (word) divr16u::divisor , (word) divr16u::rem)
(byte~) divr16u::$1 reg byte a 22.0
(byte~) divr16u::$2 reg byte a 22.0
(label) divr16u::@1
(label) divr16u::@2
(label) divr16u::@3
(label) divr16u::@4
(label) divr16u::@5
(label) divr16u::@6
(label) divr16u::@return
(word) divr16u::dividend
(word) divr16u::dividend#0 dividend zp ZP_WORD:18 2.75
(word) divr16u::dividend#3 dividend zp ZP_WORD:18 5.0
(word) divr16u::dividend#5 dividend zp ZP_WORD:18 2.0
(word) divr16u::divisor
(byte) divr16u::i
(byte) divr16u::i#1 reg byte x 16.5
(byte) divr16u::i#2 reg byte x 1.6923076923076923
(word) divr16u::quotient
(word) divr16u::quotient#1 quotient zp ZP_WORD:20 16.5
(word) divr16u::quotient#2 quotient zp ZP_WORD:20 11.0
(word) divr16u::quotient#3 quotient zp ZP_WORD:20 2.75
(word) divr16u::rem
(word) divr16u::rem#0 rem zp ZP_WORD:25 8.25
(word) divr16u::rem#1 rem zp ZP_WORD:25 22.0
(word) divr16u::rem#10 rem zp ZP_WORD:25 4.0
(word) divr16u::rem#11 rem zp ZP_WORD:25 11.666666666666666
(word) divr16u::rem#2 rem zp ZP_WORD:25 22.0
(word) divr16u::rem#4 rem zp ZP_WORD:25 4.0
(word) divr16u::rem#5 rem zp ZP_WORD:25 24.0
(word) divr16u::rem#6 rem zp ZP_WORD:25 11.0
(word) divr16u::return
(word) divr16u::return#0 return zp ZP_WORD:20 5.285714285714286
(word) divr16u::return#2 return zp ZP_WORD:20 4.0
(word) divr16u::return#3 return zp ZP_WORD:20 4.0
(byte) frame_cnt
(byte) frame_cnt#0 frame_cnt zp ZP_BYTE:22 0.5454545454545455
(byte) frame_cnt#1 frame_cnt zp ZP_BYTE:22 4.0
(byte) frame_cnt#2 frame_cnt zp ZP_BYTE:22 40.0
(void()) init_irq()
(label) init_irq::@return
interrupt(HARDWARE_CLOBBER)(void()) irq()
(label) irq::@1
(label) irq::@2
(label) irq::@return
(void()) main()
(word~) main::$10 $10 zp ZP_WORD:32 11.0
(signed word~) main::$11 $11 zp ZP_WORD:32 22.0
(word~) main::$16 $16 zp ZP_WORD:23 11.0
(signed word~) main::$17 $17 zp ZP_WORD:23 22.0
(word~) main::$32 $32 zp ZP_WORD:36 22.0
(word~) main::$33 $33 zp ZP_WORD:36 22.0
(signed word*~) main::$34 $34 zp ZP_WORD:36 22.0
(signed word*~) main::$35 $35 zp ZP_WORD:36 22.0
(label) main::@1
(label) main::@10
(label) main::@11
(label) main::@12
(label) main::@13
(label) main::@14
(label) main::@15
(label) main::@16
(label) main::@17
(label) main::@2
(label) main::@3
(label) main::@4
(label) main::@5
(label) main::@6
(label) main::@7
(label) main::@8
(label) main::@9
(signed word) main::cos_x
(signed word) main::cos_x#0 cos_x zp ZP_WORD:36 11.0
(word) main::idx_x
(word) main::idx_x#1 idx_x zp ZP_WORD:2 11.0
(word) main::idx_x#10 idx_x zp ZP_WORD:2 3.0
(word) main::idx_x#11 idx_x zp ZP_WORD:2 1.222222222222222
(word) main::idx_y
(word) main::idx_y#1 idx_y zp ZP_WORD:18 11.0
(word) main::idx_y#10 idx_y zp ZP_WORD:18 3.142857142857143
(word) main::idx_y#3 idx_y zp ZP_WORD:18 1.064516129032258
(signed word) main::r
(signed word) main::r#1 r zp ZP_WORD:8 5.5
(signed word) main::r#10 r zp ZP_WORD:8 1.2571428571428571
(byte) main::r_add
(byte) main::r_add#1 r_add zp ZP_BYTE:27 22.0
(byte) main::r_add#10 r_add zp ZP_BYTE:27 2.026315789473684
(byte) main::r_add#12 r_add zp ZP_BYTE:27 16.5
(signed word) main::sin_y
(signed word) main::sin_y#0 sin_y zp ZP_WORD:36 11.0
(label) main::toD0181
(word~) main::toD0181_$0
(number~) main::toD0181_$1
(number~) main::toD0181_$2
(number~) main::toD0181_$3
(word~) main::toD0181_$4
(byte~) main::toD0181_$5
(number~) main::toD0181_$6
(number~) main::toD0181_$7
(number~) main::toD0181_$8
(byte*) main::toD0181_gfx
(byte) main::toD0181_return
(const byte) main::toD0181_return#0 toD0181_return = >(word)(const byte*) SCREEN#0&(word) $3fff*(byte) 4|>(word)(const byte*) BITMAP#0/(byte) 4&(byte) $f
(byte*) main::toD0181_screen
(word) main::x
(signed word) main::x#0 x zp ZP_WORD:32 0.8461538461538461
(signed dword) main::xpos
(signed dword) main::xpos#0 xpos zp ZP_DWORD:14 22.0
(word) main::y
(signed word) main::y#0 y zp ZP_WORD:23 11.0
(signed dword) main::ypos
(signed dword) main::ypos#0 ypos zp ZP_DWORD:14 22.0
(void*()) memset((void*) memset::str , (byte) memset::c , (word) memset::num)
(label) memset::@1
(label) memset::@2
(label) memset::@3
(label) memset::@return
(byte) memset::c
(byte) memset::c#4 reg byte x 1.375
(byte*) memset::dst
(byte*) memset::dst#1 dst zp ZP_WORD:18 22.0
(byte*) memset::dst#2 dst zp ZP_WORD:18 15.333333333333332
(byte*~) memset::dst#4 dst zp ZP_WORD:18 4.0
(byte*) memset::end
(byte*) memset::end#0 end zp ZP_WORD:8 2.1666666666666665
(word) memset::num
(word) memset::num#2 num zp ZP_WORD:8 2.0
(void*) memset::return
(void*) memset::str
(void*) memset::str#3 str zp ZP_WORD:18
(signed dword()) mul16s((signed word) mul16s::a , (signed word) mul16s::b)
(word~) mul16s::$13 $13 zp ZP_WORD:34 4.0
(word~) mul16s::$16 $16 zp ZP_WORD:25 4.0
(word~) mul16s::$17 $17 zp ZP_WORD:34 4.0
(word~) mul16s::$9 $9 zp ZP_WORD:25 4.0
(label) mul16s::@1
(label) mul16s::@2
(label) mul16s::@3
(label) mul16s::@4
(label) mul16s::@5
(label) mul16s::@return
(signed word) mul16s::a
(signed word) mul16s::a#0 a zp ZP_WORD:8 22.0
(signed word) mul16s::a#1 a zp ZP_WORD:8 11.0
(signed word) mul16s::a#2 a zp ZP_WORD:8 11.0
(signed word) mul16s::a#3 a zp ZP_WORD:8 2.692307692307692
(signed word) mul16s::b
(signed word) mul16s::b#1 b zp ZP_WORD:36 22.0
(signed word) mul16s::b#2 b zp ZP_WORD:36 22.0
(signed word) mul16s::b#3 b zp ZP_WORD:36 2.1818181818181817
(dword) mul16s::m
(dword) mul16s::m#0 m zp ZP_DWORD:14 2.0
(dword) mul16s::m#1 m zp ZP_DWORD:14 4.0
(dword) mul16s::m#2 m zp ZP_DWORD:14 4.0
(dword) mul16s::m#4 m zp ZP_DWORD:14 4.0
(dword) mul16s::m#5 m zp ZP_DWORD:14 2.5
(signed dword) mul16s::return
(signed dword) mul16s::return#0 return zp ZP_DWORD:14 7.000000000000001
(signed dword) mul16s::return#2 return zp ZP_DWORD:14 22.0
(signed dword) mul16s::return#3 return zp ZP_DWORD:14 22.0
(signed dword) mul16s::return#4 return zp ZP_DWORD:14 22.0
(dword()) mul16u((word) mul16u::a , (word) mul16u::b)
(byte~) mul16u::$1 reg byte a 202.0
(label) mul16u::@1
(label) mul16u::@2
(label) mul16u::@3
(label) mul16u::@4
(label) mul16u::@return
(word) mul16u::a
(word) mul16u::a#0 a zp ZP_WORD:25 101.0
(word) mul16u::a#1 a zp ZP_WORD:25 2.0
(word) mul16u::a#2 a zp ZP_WORD:25 2.0
(word) mul16u::a#3 a zp ZP_WORD:25 67.66666666666666
(word) mul16u::a#6 a zp ZP_WORD:25 6.0
(word) mul16u::b
(word) mul16u::b#0 b zp ZP_WORD:23 4.0
(word) mul16u::b#1 b#1 zp ZP_WORD:2 4.0
(dword) mul16u::mb
(dword) mul16u::mb#0 mb zp ZP_DWORD:4 6.0
(dword) mul16u::mb#1 mb zp ZP_DWORD:4 202.0
(dword) mul16u::mb#2 mb zp ZP_DWORD:4 43.57142857142858
(dword) mul16u::res
(dword) mul16u::res#1 res zp ZP_DWORD:14 202.0
(dword) mul16u::res#2 res zp ZP_DWORD:14 43.85714285714286
(dword) mul16u::res#6 res zp ZP_DWORD:14 101.0
(dword) mul16u::return
(dword) mul16u::return#2 return zp ZP_DWORD:14 4.0
(dword) mul16u::return#3 return zp ZP_DWORD:14 4.0
(word()) mulu16_sel((word) mulu16_sel::v1 , (word) mulu16_sel::v2 , (byte) mulu16_sel::select)
(dword~) mulu16_sel::$0 $0 zp ZP_DWORD:14 4.0
(dword~) mulu16_sel::$1 $1 zp ZP_DWORD:14 4.0
(label) mulu16_sel::@1
(label) mulu16_sel::@return
(word) mulu16_sel::return
(word) mulu16_sel::return#0 return zp ZP_WORD:36 4.0
(word) mulu16_sel::return#1 return#1 zp ZP_WORD:23 4.0
(word) mulu16_sel::return#10 return#10 zp ZP_WORD:23 4.0
(word) mulu16_sel::return#11 return zp ZP_WORD:36 4.0
(word) mulu16_sel::return#12 return zp ZP_WORD:36 1.714285714285714
(word) mulu16_sel::return#2 return zp ZP_WORD:36 4.0
(byte) mulu16_sel::select
(byte) mulu16_sel::select#5 reg byte x 0.3333333333333333
(word) mulu16_sel::v1
(word) mulu16_sel::v1#0 v1 zp ZP_WORD:23 2.0
(word) mulu16_sel::v1#1 v1 zp ZP_WORD:23 2.0
(word) mulu16_sel::v1#2 v1 zp ZP_WORD:23 4.0
(word) mulu16_sel::v1#3 v1 zp ZP_WORD:23 2.0
(word) mulu16_sel::v1#4 v1 zp ZP_WORD:23 2.0
(word) mulu16_sel::v1#5 v1 zp ZP_WORD:23 12.0
(word) mulu16_sel::v2
(word) mulu16_sel::v2#0 v2 zp ZP_WORD:2 4.0
(word) mulu16_sel::v2#1 v2 zp ZP_WORD:2 4.0
(word) mulu16_sel::v2#3 v2 zp ZP_WORD:2 4.0
(word) mulu16_sel::v2#4 v2 zp ZP_WORD:2 4.0
(word) mulu16_sel::v2#5 v2 zp ZP_WORD:2 5.0
(byte[$100]) plots_per_frame
(const byte[$100]) plots_per_frame#0 plots_per_frame = { fill( $100, 0) }
(word) rem16u
(word) rem16u#1 rem16u zp ZP_WORD:25 0.8
(signed word()) sin16s((dword) sin16s::x)
(dword~) sin16s::$4 $4 zp ZP_DWORD:14 4.0
(label) sin16s::@1
(label) sin16s::@10
(label) sin16s::@11
(label) sin16s::@12
(label) sin16s::@2
(label) sin16s::@3
(label) sin16s::@4
(label) sin16s::@5
(label) sin16s::@6
(label) sin16s::@7
(label) sin16s::@8
(label) sin16s::@9
(label) sin16s::@return
(byte) sin16s::isUpper
(byte) sin16s::isUpper#2 isUpper zp ZP_BYTE:27 0.06060606060606061
(signed word) sin16s::return
(signed word) sin16s::return#0 return zp ZP_WORD:8 22.0
(signed word) sin16s::return#1 return zp ZP_WORD:8 5.0
(signed word~) sin16s::return#5 return zp ZP_WORD:8 4.0
(signed word) sin16s::sinx
(signed word) sin16s::sinx#1 sinx zp ZP_WORD:8 4.0
(word) sin16s::usinx
(word) sin16s::usinx#0 usinx zp ZP_WORD:8 0.3333333333333333
(word) sin16s::usinx#1 usinx zp ZP_WORD:8 1.0
(dword) sin16s::x
(dword) sin16s::x#0 x zp ZP_DWORD:14 8.5
(dword) sin16s::x#1 x zp ZP_DWORD:14 4.0
(dword) sin16s::x#2 x zp ZP_DWORD:14 4.0
(dword) sin16s::x#4 x zp ZP_DWORD:14 5.0
(dword) sin16s::x#6 x zp ZP_DWORD:14 6.0
(word) sin16s::x1
(word) sin16s::x1#0 x1 zp ZP_WORD:34 0.6363636363636365
(word) sin16s::x2
(word) sin16s::x2#0 x2 zp ZP_WORD:23 4.0
(word) sin16s::x3
(word) sin16s::x3#0 x3 zp ZP_WORD:23 1.0
(word) sin16s::x3_6
(word) sin16s::x3_6#0 x3_6 zp ZP_WORD:36 4.0
(word) sin16s::x4
(word) sin16s::x4#0 x4 zp ZP_WORD:23 4.0
(word) sin16s::x5
(word) sin16s::x5#0 x5 zp ZP_WORD:36 4.0
(word) sin16s::x5_128
(word) sin16s::x5_128#0 x5_128 zp ZP_WORD:36 4.0
(void()) sin16s_gen2((signed word*) sin16s_gen2::sintab , (word) sin16s_gen2::wavelength , (signed word) sin16s_gen2::min , (signed word) sin16s_gen2::max)
(signed dword~) sin16s_gen2::$6 $6 zp ZP_DWORD:14 22.0
(word~) sin16s_gen2::$9 $9 zp ZP_WORD:32 11.0
(label) sin16s_gen2::@1
(label) sin16s_gen2::@2
(label) sin16s_gen2::@3
(label) sin16s_gen2::@4
(label) sin16s_gen2::@5
(label) sin16s_gen2::@return
(signed word) sin16s_gen2::ampl
(const signed word) sin16s_gen2::ampl#0 ampl = (const signed word) sin16s_gen2::max#0-(const signed word) sin16s_gen2::min#0
(word) sin16s_gen2::i
(word) sin16s_gen2::i#1 i zp ZP_WORD:18 16.5
(word) sin16s_gen2::i#6 i zp ZP_WORD:18 1.8333333333333333
(signed word) sin16s_gen2::max
(const signed word) sin16s_gen2::max#0 max = (signed word) $1001
(signed word) sin16s_gen2::min
(const signed word) sin16s_gen2::min#0 min = (signed word) -$1001
(signed word) sin16s_gen2::offs
(signed word*) sin16s_gen2::sintab
(signed word*) sin16s_gen2::sintab#0 sintab zp ZP_WORD:20 5.5
(signed word*) sin16s_gen2::sintab#10 sintab zp ZP_WORD:20 3.3000000000000003
(dword) sin16s_gen2::step
(dword) sin16s_gen2::step#0 step zp ZP_DWORD:28 0.8666666666666666
(word) sin16s_gen2::wavelength
(const word) sin16s_gen2::wavelength#0 wavelength = (word) $200
(dword) sin16s_gen2::x
(dword) sin16s_gen2::x#1 x zp ZP_DWORD:10 7.333333333333333
(dword) sin16s_gen2::x#6 x zp ZP_DWORD:10 3.0

zp ZP_WORD:2 [ mul16u::b#1 mulu16_sel::v2#5 mulu16_sel::v2#3 mulu16_sel::v2#4 mulu16_sel::v2#0 mulu16_sel::v2#1 main::idx_x#11 main::idx_x#10 main::idx_x#1 ]
zp ZP_DWORD:4 [ mul16u::mb#2 mul16u::mb#0 mul16u::mb#1 ]
zp ZP_WORD:8 [ memset::num#2 memset::end#0 main::r#10 main::r#1 mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 sin16s::return#1 sin16s::return#5 sin16s::sinx#1 sin16s::usinx#1 sin16s::return#0 sin16s::usinx#0 ]
reg byte x [ memset::c#4 ]
reg byte a [ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ]
reg byte x [ bitmap_init::x#2 bitmap_init::x#1 ]
reg byte x [ bitmap_init::y#2 bitmap_init::y#1 ]
zp ZP_DWORD:10 [ sin16s_gen2::x#6 sin16s_gen2::x#1 ]
zp ZP_DWORD:14 [ sin16s::x#6 sin16s::x#4 sin16s::x#0 sin16s::x#1 sin16s::x#2 sin16s::$4 mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 mul16u::return#2 mul16s::return#0 mul16u::res#2 mul16u::res#6 mul16u::res#1 mul16u::return#3 mul16s::return#3 main::xpos#0 mul16s::return#4 main::ypos#0 mul16s::return#2 sin16s_gen2::$6 mulu16_sel::$0 mulu16_sel::$1 ]
reg byte x [ mulu16_sel::select#5 ]
zp ZP_WORD:18 [ divr16u::dividend#3 divr16u::dividend#5 divr16u::dividend#0 sin16s_gen2::i#6 sin16s_gen2::i#1 memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 main::idx_y#3 main::idx_y#10 main::idx_y#1 ]
zp ZP_WORD:20 [ divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 divr16u::return#2 divr16u::return#3 div32u16u::quotient_lo#0 sin16s_gen2::sintab#10 sin16s_gen2::sintab#0 ]
reg byte x [ divr16u::i#2 divr16u::i#1 ]
zp ZP_BYTE:22 [ frame_cnt#2 frame_cnt#0 frame_cnt#1 ]
reg byte x [ bitmap_plot::y#0 ]
zp ZP_WORD:23 [ bitmap_plot::plotter#0 bitmap_plot::plotter#1 main::$16 main::$17 main::y#0 mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 sin16s::x3#0 sin16s::x2#0 sin16s::x4#0 mulu16_sel::return#1 mulu16_sel::return#10 mul16u::b#0 ]
reg byte a [ bitmap_plot::$2 ]
zp ZP_WORD:25 [ mul16s::$9 mul16s::$16 bitmap_plot::$1 divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 rem16u#1 mul16u::a#3 mul16u::a#6 mul16u::a#1 mul16u::a#2 mul16u::a#0 ]
reg byte a [ mul16u::$1 ]
zp ZP_BYTE:27 [ bitmap_init::$7 sin16s::isUpper#2 main::r_add#10 main::r_add#12 main::r_add#1 ]
reg byte a [ bitmap_init::$4 ]
reg byte a [ bitmap_init::$5 ]
reg byte a [ bitmap_init::$6 ]
zp ZP_DWORD:28 [ div32u16u::return#2 sin16s_gen2::step#0 div32u16u::return#0 ]
zp ZP_WORD:32 [ sin16s_gen2::$9 main::$10 main::$11 main::x#0 bitmap_plot::x#0 ]
zp ZP_WORD:34 [ sin16s::x1#0 mul16s::$13 mul16s::$17 ]
zp ZP_WORD:36 [ div32u16u::quotient_hi#0 mulu16_sel::return#0 mulu16_sel::return#12 mulu16_sel::return#2 sin16s::x3_6#0 mulu16_sel::return#11 sin16s::x5#0 sin16s::x5_128#0 bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 mul16s::b#3 mul16s::b#1 mul16s::b#2 main::cos_x#0 main::sin_y#0 main::$32 main::$34 main::$33 main::$35 ]
reg byte a [ divr16u::$1 ]
reg byte a [ divr16u::$2 ]


FINAL ASSEMBLER
Score: 20446

  // File Comments
// Tests the simple bitmap plotter - and counts plots per frame in an IRQ
// Plots a spiral
  // Upstart
.pc = $801 "Basic"
:BasicUpstart(bbegin)
.pc = $80d "Program"
  // Global Constants & labels
  .const SIZEOF_SIGNED_WORD = 2
  // Processor port data direction register
  .label PROCPORT_DDR = 0
  // Mask for PROCESSOR_PORT_DDR which allows only memory configuration to be written
  .const PROCPORT_DDR_MEMORY_MASK = 7
  // Processor Port Register controlling RAM/ROM configuration and the datasette
  .label PROCPORT = 1
  // RAM in $A000, $E000 I/O in $D000
  .const PROCPORT_RAM_IO = 5
  .label RASTER = $d012
  .label BORDERCOL = $d020
  .label BGCOL = $d021
  .label VIC_CONTROL = $d011
  .label D011 = $d011
  .const VIC_BMM = $20
  .const VIC_DEN = $10
  .const VIC_RSEL = 8
  .label D018 = $d018
  // VIC II IRQ Status Register
  .label IRQ_STATUS = $d019
  // VIC II IRQ Enable Register
  .label IRQ_ENABLE = $d01a
  // Bits for the IRQ Status/Enable Registers
  .const IRQ_RASTER = 1
  // CIA#1 Interrupt Status & Control Register
  .label CIA1_INTERRUPT = $dc0d
  // Value that disables all CIA interrupts when stored to the CIA Interrupt registers
  .const CIA_INTERRUPT_CLEAR = $7f
  // The vector used when the HARDWARE serves IRQ interrupts
  .label HARDWARE_IRQ = $fffe
  // The colors of the C64
  .const BLACK = 0
  .const WHITE = 1
  // PI*2 in u[4.28] format
  .const PI2_u4f28 = $6487ed51
  // PI in u[4.28] format
  .const PI_u4f28 = $3243f6a9
  // PI/2 in u[4.28] format
  .const PI_HALF_u4f28 = $1921fb54
  .label BITMAP = $2000
  .label SCREEN = $400
  .label rem16u = $19
  .label frame_cnt = $16
  // @begin
bbegin:
  // @1
  // frame_cnt = 1
  // [1] (byte) frame_cnt#0 ← (byte) 1 -- vbuz1=vbuc1 
  // Counts frames - updated by the IRQ
  lda #1
  sta.z frame_cnt
  // [2] phi from @1 to @2 [phi:@1->@2]
  // @2
  // [3] call main 
  // [5] phi from @2 to main [phi:@2->main]
  jsr main
  rts
  // [4] phi from @2 to @end [phi:@2->@end]
  // @end
  // main
main: {
    .const toD0181_return = (>(SCREEN&$3fff)*4)|(>BITMAP)/4&$f
    .label _10 = $20
    .label _11 = $20
    .label _16 = $17
    .label _17 = $17
    .label _32 = $24
    .label _33 = $24
    .label cos_x = $24
    .label xpos = $e
    .label x = $20
    .label sin_y = $24
    .label ypos = $e
    .label y = $17
    .label idx_x = 2
    .label idx_y = $12
    .label r = 8
    .label r_add = $1b
    .label _34 = $24
    .label _35 = $24
    // sin16s_gen2(SINUS, 512, -0x1001, 0x1001)
    // [6] call sin16s_gen2 
    // [137] phi from main to sin16s_gen2 [phi:main->sin16s_gen2]
    jsr sin16s_gen2
    // [7] phi from main to main::@9 [phi:main->main::@9]
    // main::@9
    // bitmap_init(BITMAP, SCREEN)
    // [8] call bitmap_init 
    // [115] phi from main::@9 to bitmap_init [phi:main::@9->bitmap_init]
    jsr bitmap_init
    // [9] phi from main::@9 to main::@10 [phi:main::@9->main::@10]
    // main::@10
    // bitmap_clear(BLACK, WHITE)
    // [10] call bitmap_clear 
    // [101] phi from main::@10 to bitmap_clear [phi:main::@10->bitmap_clear]
    jsr bitmap_clear
    // main::@11
    // *D011 = VIC_BMM|VIC_DEN|VIC_RSEL|3
    // [11] *((const byte*) D011#0) ← (const byte) VIC_BMM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte) 3 -- _deref_pbuc1=vbuc2 
    lda #VIC_BMM|VIC_DEN|VIC_RSEL|3
    sta D011
    // [12] phi from main::@11 to main::toD0181 [phi:main::@11->main::toD0181]
    // main::toD0181
    // main::@8
    // *D018 = toD018(SCREEN, BITMAP)
    // [13] *((const byte*) D018#0) ← (const byte) main::toD0181_return#0 -- _deref_pbuc1=vbuc2 
    lda #toD0181_return
    sta D018
    // init_irq()
    // [14] call init_irq 
    jsr init_irq
    // [15] phi from main::@8 to main::@1 [phi:main::@8->main::@1]
    // [15] phi (byte) main::r_add#10 = (byte) $20 [phi:main::@8->main::@1#0] -- vbuz1=vbuc1 
    lda #$20
    sta.z r_add
    // [15] phi (word) main::idx_y#3 = (byte) $80 [phi:main::@8->main::@1#1] -- vwuz1=vbuc1 
    lda #<$80
    sta.z idx_y
    lda #>$80
    sta.z idx_y+1
    // [15] phi (signed word) main::r#10 = (signed byte) 0 [phi:main::@8->main::@1#2] -- vwsz1=vbsc1 
    lda #<0
    sta.z r
    sta.z r+1
    // [15] phi (word) main::idx_x#11 = (byte) 0 [phi:main::@8->main::@1#3] -- vwuz1=vbuc1 
    sta.z idx_x
    sta.z idx_x+1
    // main::@1
    // main::@2
  b2:
    // cos_x = SINUS[idx_x]
    // [16] (word~) main::$32 ← (word) main::idx_x#11 << (byte) 1 -- vwuz1=vwuz2_rol_1 
    lda.z idx_x
    asl
    sta.z _32
    lda.z idx_x+1
    rol
    sta.z _32+1
    // [17] (signed word*~) main::$34 ← (const signed word[$200]) SINUS#0 + (word~) main::$32 -- pwsz1=pwsc1_plus_vwuz1 
    clc
    lda.z _34
    adc #<SINUS
    sta.z _34
    lda.z _34+1
    adc #>SINUS
    sta.z _34+1
    // [18] (signed word) main::cos_x#0 ← *((signed word*~) main::$34) -- vwsz1=_deref_pwsz1 
    ldy #0
    lda (cos_x),y
    tax
    iny
    lda (cos_x),y
    stx.z cos_x
    sta.z cos_x+1
    // mul16s(r, cos_x)
    // [19] (signed word) mul16s::a#1 ← (signed word) main::r#10
    // [20] (signed word) mul16s::b#1 ← (signed word) main::cos_x#0
    // [21] call mul16s 
    // [63] phi from main::@2 to mul16s [phi:main::@2->mul16s]
    // [63] phi (signed word) mul16s::b#3 = (signed word) mul16s::b#1 [phi:main::@2->mul16s#0] -- register_copy 
    // [63] phi (signed word) mul16s::a#3 = (signed word) mul16s::a#1 [phi:main::@2->mul16s#1] -- register_copy 
    jsr mul16s
    // mul16s(r, cos_x)
    // [22] (signed dword) mul16s::return#3 ← (signed dword) mul16s::return#0
    // main::@12
    // xpos = mul16s(r, cos_x)
    // [23] (signed dword) main::xpos#0 ← (signed dword) mul16s::return#3
    // >xpos
    // [24] (word~) main::$10 ← > (signed dword) main::xpos#0 -- vwuz1=_hi_vdsz2 
    lda.z xpos+2
    sta.z _10
    lda.z xpos+3
    sta.z _10+1
    // ((signed word)>xpos)>>2
    // [25] (signed word~) main::$11 ← (signed word)(word~) main::$10 >> (signed byte) 2 -- vwsz1=vwsz1_ror_2 
    lda.z _11+1
    cmp #$80
    ror.z _11+1
    ror.z _11
    lda.z _11+1
    cmp #$80
    ror.z _11+1
    ror.z _11
    // 160 + ((signed word)>xpos)>>2
    // [26] (signed word) main::x#0 ← (signed word) $a0 + (signed word~) main::$11 -- vwsz1=vwsc1_plus_vwsz1 
    clc
    lda.z x
    adc #<$a0
    sta.z x
    lda.z x+1
    adc #>$a0
    sta.z x+1
    // sin_y = SINUS[idx_y]
    // [27] (word~) main::$33 ← (word) main::idx_y#3 << (byte) 1 -- vwuz1=vwuz2_rol_1 
    lda.z idx_y
    asl
    sta.z _33
    lda.z idx_y+1
    rol
    sta.z _33+1
    // [28] (signed word*~) main::$35 ← (const signed word[$200]) SINUS#0 + (word~) main::$33 -- pwsz1=pwsc1_plus_vwuz1 
    clc
    lda.z _35
    adc #<SINUS
    sta.z _35
    lda.z _35+1
    adc #>SINUS
    sta.z _35+1
    // [29] (signed word) main::sin_y#0 ← *((signed word*~) main::$35) -- vwsz1=_deref_pwsz1 
    ldy #0
    lda (sin_y),y
    tax
    iny
    lda (sin_y),y
    stx.z sin_y
    sta.z sin_y+1
    // mul16s(r, sin_y)
    // [30] (signed word) mul16s::a#2 ← (signed word) main::r#10
    // [31] (signed word) mul16s::b#2 ← (signed word) main::sin_y#0
    // [32] call mul16s 
    // [63] phi from main::@12 to mul16s [phi:main::@12->mul16s]
    // [63] phi (signed word) mul16s::b#3 = (signed word) mul16s::b#2 [phi:main::@12->mul16s#0] -- register_copy 
    // [63] phi (signed word) mul16s::a#3 = (signed word) mul16s::a#2 [phi:main::@12->mul16s#1] -- register_copy 
    jsr mul16s
    // mul16s(r, sin_y)
    // [33] (signed dword) mul16s::return#4 ← (signed dword) mul16s::return#0
    // main::@13
    // ypos = mul16s(r, sin_y)
    // [34] (signed dword) main::ypos#0 ← (signed dword) mul16s::return#4
    // >ypos
    // [35] (word~) main::$16 ← > (signed dword) main::ypos#0 -- vwuz1=_hi_vdsz2 
    lda.z ypos+2
    sta.z _16
    lda.z ypos+3
    sta.z _16+1
    // ((signed word)>ypos)>>2
    // [36] (signed word~) main::$17 ← (signed word)(word~) main::$16 >> (signed byte) 2 -- vwsz1=vwsz1_ror_2 
    lda.z _17+1
    cmp #$80
    ror.z _17+1
    ror.z _17
    lda.z _17+1
    cmp #$80
    ror.z _17+1
    ror.z _17
    // 100 + ((signed word)>ypos)>>2
    // [37] (signed word) main::y#0 ← (signed byte) $64 + (signed word~) main::$17 -- vwsz1=vbsc1_plus_vwsz1 
    lda.z y
    clc
    adc #<$64
    sta.z y
    lda.z y+1
    adc #>$64
    sta.z y+1
    // bitmap_plot(x, (byte)y)
    // [38] (byte) bitmap_plot::y#0 ← (byte)(word)(signed word) main::y#0 -- vbuxx=_byte_vwuz1 
    lda.z y
    tax
    // [39] (word) bitmap_plot::x#0 ← (word)(signed word) main::x#0
    // [40] call bitmap_plot 
    jsr bitmap_plot
    // main::@14
    // plots_per_frame[frame_cnt]++;
    // [41] *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0) ← ++ *((const byte[$100]) plots_per_frame#0 + (byte) frame_cnt#0) -- pbuc1_derefidx_vbuz1=_inc_pbuc1_derefidx_vbuz1 
    ldx.z frame_cnt
    inc plots_per_frame,x
    // idx_x += r_add
    // [42] (word) main::idx_x#1 ← (word) main::idx_x#11 + (byte) main::r_add#10 -- vwuz1=vwuz1_plus_vbuz2 
    lda.z r_add
    clc
    adc.z idx_x
    sta.z idx_x
    bcc !+
    inc.z idx_x+1
  !:
    // if(idx_x>=512)
    // [43] if((word) main::idx_x#1<(word) $200) goto main::@16 -- vwuz1_lt_vwuc1_then_la1 
    lda.z idx_x+1
    cmp #>$200
    bcc b3
    bne !+
    lda.z idx_x
    cmp #<$200
    bcc b3
  !:
    // [45] phi from main::@14 to main::@3 [phi:main::@14->main::@3]
    // [45] phi (word) main::idx_x#10 = (byte) 0 [phi:main::@14->main::@3#0] -- vwuz1=vbuc1 
    lda #<0
    sta.z idx_x
    sta.z idx_x+1
    // [44] phi from main::@14 to main::@16 [phi:main::@14->main::@16]
    // main::@16
    // [45] phi from main::@16 to main::@3 [phi:main::@16->main::@3]
    // [45] phi (word) main::idx_x#10 = (word) main::idx_x#1 [phi:main::@16->main::@3#0] -- register_copy 
    // main::@3
  b3:
    // idx_y += r_add
    // [46] (word) main::idx_y#1 ← (word) main::idx_y#3 + (byte) main::r_add#10 -- vwuz1=vwuz1_plus_vbuz2 
    lda.z r_add
    clc
    adc.z idx_y
    sta.z idx_y
    bcc !+
    inc.z idx_y+1
  !:
    // if(idx_y>=512)
    // [47] if((word) main::idx_y#1<(word) $200) goto main::@17 -- vwuz1_lt_vwuc1_then_la1 
    lda.z idx_y+1
    cmp #>$200
    bcc b4
    bne !+
    lda.z idx_y
    cmp #<$200
    bcc b4
  !:
    // [49] phi from main::@3 to main::@4 [phi:main::@3->main::@4]
    // [49] phi (word) main::idx_y#10 = (byte) 0 [phi:main::@3->main::@4#0] -- vwuz1=vbuc1 
    lda #<0
    sta.z idx_y
    sta.z idx_y+1
    // [48] phi from main::@3 to main::@17 [phi:main::@3->main::@17]
    // main::@17
    // [49] phi from main::@17 to main::@4 [phi:main::@17->main::@4]
    // [49] phi (word) main::idx_y#10 = (word) main::idx_y#1 [phi:main::@17->main::@4#0] -- register_copy 
    // main::@4
  b4:
    // r += r_add
    // [50] (signed word) main::r#1 ← (signed word) main::r#10 + (byte) main::r_add#10 -- vwsz1=vwsz1_plus_vbuz2 
    clc
    lda.z r
    adc.z r_add
    sta.z r
    lda.z r+1
    adc #0
    sta.z r+1
    // if((idx_x==0) && (r_add!=1))
    // [51] if((word) main::idx_x#10!=(byte) 0) goto main::@5 -- vwuz1_neq_0_then_la1 
    lda.z idx_x
    bne b5
    lda.z idx_x+1
    bne b5
    // main::@15
    // [52] if((byte) main::r_add#10==(byte) 1) goto main::@5 -- vbuz1_eq_vbuc1_then_la1 
    lda #1
    cmp.z r_add
    beq b5
    // main::@6
    // r_add /= 2
    // [53] (byte) main::r_add#1 ← (byte) main::r_add#10 >> (byte) 1 -- vbuz1=vbuz1_ror_1 
    lsr.z r_add
    // [54] phi from main::@4 main::@6 to main::@5 [phi:main::@4/main::@6->main::@5]
    // [54] phi (byte) main::r_add#12 = (byte) main::r_add#10 [phi:main::@4/main::@6->main::@5#0] -- register_copy 
    // [54] phi from main::@15 to main::@5 [phi:main::@15->main::@5]
    // main::@5
  b5:
    // if(r>=512*12+256)
    // [55] if((signed word) main::r#1>=(signed word)(number) $200*(number) $c+(number) $100) goto main::@7 -- vwsz1_ge_vwsc1_then_la1 
    lda.z r
    cmp #<$200*$c+$100
    lda.z r+1
    sbc #>$200*$c+$100
    bvc !+
    eor #$80
  !:
    bpl b7
    // [15] phi from main::@5 to main::@1 [phi:main::@5->main::@1]
    // [15] phi (byte) main::r_add#10 = (byte) main::r_add#12 [phi:main::@5->main::@1#0] -- register_copy 
    // [15] phi (word) main::idx_y#3 = (word) main::idx_y#10 [phi:main::@5->main::@1#1] -- register_copy 
    // [15] phi (signed word) main::r#10 = (signed word) main::r#1 [phi:main::@5->main::@1#2] -- register_copy 
    // [15] phi (word) main::idx_x#11 = (word) main::idx_x#10 [phi:main::@5->main::@1#3] -- register_copy 
    jmp b2
    // main::@7
  b7:
    // (*BORDERCOL)++;
    // [56] *((const byte*) BORDERCOL#0) ← ++ *((const byte*) BORDERCOL#0) -- _deref_pbuc1=_inc__deref_pbuc1 
    inc BORDERCOL
    jmp b7
}
  // bitmap_plot
// Plot a single dot in the bitmap
// bitmap_plot(word zeropage($20) x, byte register(X) y)
bitmap_plot: {
    .label _1 = $19
    .label plotter = $17
    .label x = $20
    // (byte*) { bitmap_plot_yhi[y], bitmap_plot_ylo[y] }
    // [57] (word) bitmap_plot::plotter#0 ← *((const byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_plot::y#0) w= *((const byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_plot::y#0) -- vwuz1=pbuc1_derefidx_vbuxx_word_pbuc2_derefidx_vbuxx 
    lda bitmap_plot_yhi,x
    sta.z plotter+1
    lda bitmap_plot_ylo,x
    sta.z plotter
    // x & $fff8
    // [58] (word~) bitmap_plot::$1 ← (word) bitmap_plot::x#0 & (word) $fff8 -- vwuz1=vwuz2_band_vwuc1 
    lda.z x
    and #<$fff8
    sta.z _1
    lda.z x+1
    and #>$fff8
    sta.z _1+1
    // plotter += ( x & $fff8 )
    // [59] (byte*) bitmap_plot::plotter#1 ← (byte*)(word) bitmap_plot::plotter#0 + (word~) bitmap_plot::$1 -- pbuz1=pbuz1_plus_vwuz2 
    lda.z plotter
    clc
    adc.z _1
    sta.z plotter
    lda.z plotter+1
    adc.z _1+1
    sta.z plotter+1
    // <x
    // [60] (byte~) bitmap_plot::$2 ← < (word) bitmap_plot::x#0 -- vbuaa=_lo_vwuz1 
    lda.z x
    // *plotter |= bitmap_plot_bit[<x]
    // [61] *((byte*) bitmap_plot::plotter#1) ← *((byte*) bitmap_plot::plotter#1) | *((const byte[$100]) bitmap_plot_bit#0 + (byte~) bitmap_plot::$2) -- _deref_pbuz1=_deref_pbuz1_bor_pbuc1_derefidx_vbuaa 
    tay
    lda bitmap_plot_bit,y
    ldy #0
    ora (plotter),y
    sta (plotter),y
    // bitmap_plot::@return
    // }
    // [62] return 
    rts
}
  // mul16s
// Multiply of two signed words to a signed double word
// Fixes offsets introduced by using unsigned multiplication
// mul16s(signed word zeropage(8) a, signed word zeropage($24) b)
mul16s: {
    .label _9 = $19
    .label _13 = $22
    .label _16 = $19
    .label _17 = $22
    .label m = $e
    .label return = $e
    .label a = 8
    .label b = $24
    // mul16u((word)a, (word) b)
    // [64] (word) mul16u::a#1 ← (word)(signed word) mul16s::a#3 -- vwuz1=vwuz2 
    lda.z a
    sta.z mul16u.a
    lda.z a+1
    sta.z mul16u.a+1
    // [65] (word) mul16u::b#0 ← (word)(signed word) mul16s::b#3 -- vwuz1=vwuz2 
    lda.z b
    sta.z mul16u.b
    lda.z b+1
    sta.z mul16u.b+1
    // [66] call mul16u 
    // [81] phi from mul16s to mul16u [phi:mul16s->mul16u]
    // [81] phi (word) mul16u::a#6 = (word) mul16u::a#1 [phi:mul16s->mul16u#0] -- register_copy 
    // [81] phi (dword) mul16u::mb#0 = (word) mul16u::b#0 [phi:mul16s->mul16u#1] -- vduz1=vwuz2 
    lda.z mul16u.b
    sta.z mul16u.mb
    lda.z mul16u.b+1
    sta.z mul16u.mb+1
    lda #0
    sta.z mul16u.mb+2
    sta.z mul16u.mb+3
    jsr mul16u
    // mul16u((word)a, (word) b)
    // [67] (dword) mul16u::return#2 ← (dword) mul16u::res#2
    // mul16s::@5
    // m = mul16u((word)a, (word) b)
    // [68] (dword) mul16s::m#0 ← (dword) mul16u::return#2
    // if(a<0)
    // [69] if((signed word) mul16s::a#3>=(signed byte) 0) goto mul16s::@1 -- vwsz1_ge_0_then_la1 
    lda.z a+1
    bpl b1
    // mul16s::@3
    // >m
    // [70] (word~) mul16s::$9 ← > (dword) mul16s::m#0 -- vwuz1=_hi_vduz2 
    lda.z m+2
    sta.z _9
    lda.z m+3
    sta.z _9+1
    // >m = (>m)-(word)b
    // [71] (word~) mul16s::$16 ← (word~) mul16s::$9 - (word)(signed word) mul16s::b#3 -- vwuz1=vwuz1_minus_vwuz2 
    lda.z _16
    sec
    sbc.z b
    sta.z _16
    lda.z _16+1
    sbc.z b+1
    sta.z _16+1
    // [72] (dword) mul16s::m#1 ← (dword) mul16s::m#0 hi= (word~) mul16s::$16 -- vduz1=vduz1_sethi_vwuz2 
    lda.z _16
    sta.z m+2
    lda.z _16+1
    sta.z m+3
    // [73] phi from mul16s::@3 mul16s::@5 to mul16s::@1 [phi:mul16s::@3/mul16s::@5->mul16s::@1]
    // [73] phi (dword) mul16s::m#5 = (dword) mul16s::m#1 [phi:mul16s::@3/mul16s::@5->mul16s::@1#0] -- register_copy 
    // mul16s::@1
  b1:
    // if(b<0)
    // [74] if((signed word) mul16s::b#3>=(signed byte) 0) goto mul16s::@2 -- vwsz1_ge_0_then_la1 
    lda.z b+1
    bpl b2
    // mul16s::@4
    // >m
    // [75] (word~) mul16s::$13 ← > (dword) mul16s::m#5 -- vwuz1=_hi_vduz2 
    lda.z m+2
    sta.z _13
    lda.z m+3
    sta.z _13+1
    // >m = (>m)-(word)a
    // [76] (word~) mul16s::$17 ← (word~) mul16s::$13 - (word)(signed word) mul16s::a#3 -- vwuz1=vwuz1_minus_vwuz2 
    lda.z _17
    sec
    sbc.z a
    sta.z _17
    lda.z _17+1
    sbc.z a+1
    sta.z _17+1
    // [77] (dword) mul16s::m#2 ← (dword) mul16s::m#5 hi= (word~) mul16s::$17 -- vduz1=vduz1_sethi_vwuz2 
    lda.z _17
    sta.z m+2
    lda.z _17+1
    sta.z m+3
    // [78] phi from mul16s::@1 mul16s::@4 to mul16s::@2 [phi:mul16s::@1/mul16s::@4->mul16s::@2]
    // [78] phi (dword) mul16s::m#4 = (dword) mul16s::m#5 [phi:mul16s::@1/mul16s::@4->mul16s::@2#0] -- register_copy 
    // mul16s::@2
  b2:
    // (signed dword)m
    // [79] (signed dword) mul16s::return#0 ← (signed dword)(dword) mul16s::m#4
    // mul16s::@return
    // }
    // [80] return 
    rts
}
  // mul16u
// Perform binary multiplication of two unsigned 16-bit words into a 32-bit unsigned double word
// mul16u(word zeropage($19) a, word zeropage($17) b)
mul16u: {
    .label mb = 4
    .label a = $19
    .label res = $e
    .label b = $17
    .label return = $e
    .label b_1 = 2
    // [82] phi from mul16u to mul16u::@1 [phi:mul16u->mul16u::@1]
    // [82] phi (dword) mul16u::mb#2 = (dword) mul16u::mb#0 [phi:mul16u->mul16u::@1#0] -- register_copy 
    // [82] phi (dword) mul16u::res#2 = (byte) 0 [phi:mul16u->mul16u::@1#1] -- vduz1=vbuc1 
    lda #0
    sta.z res
    sta.z res+1
    sta.z res+2
    sta.z res+3
    // [82] phi (word) mul16u::a#3 = (word) mul16u::a#6 [phi:mul16u->mul16u::@1#2] -- register_copy 
    // mul16u::@1
  b1:
    // while(a!=0)
    // [83] if((word) mul16u::a#3!=(byte) 0) goto mul16u::@2 -- vwuz1_neq_0_then_la1 
    lda.z a
    bne b2
    lda.z a+1
    bne b2
    // mul16u::@return
    // }
    // [84] return 
    rts
    // mul16u::@2
  b2:
    // a&1
    // [85] (byte~) mul16u::$1 ← (word) mul16u::a#3 & (byte) 1 -- vbuaa=vwuz1_band_vbuc1 
    lda.z a
    and #1
    // if( (a&1) != 0)
    // [86] if((byte~) mul16u::$1==(byte) 0) goto mul16u::@3 -- vbuaa_eq_0_then_la1 
    cmp #0
    beq b3
    // mul16u::@4
    // res = res + mb
    // [87] (dword) mul16u::res#1 ← (dword) mul16u::res#2 + (dword) mul16u::mb#2 -- vduz1=vduz1_plus_vduz2 
    lda.z res
    clc
    adc.z mb
    sta.z res
    lda.z res+1
    adc.z mb+1
    sta.z res+1
    lda.z res+2
    adc.z mb+2
    sta.z res+2
    lda.z res+3
    adc.z mb+3
    sta.z res+3
    // [88] phi from mul16u::@2 mul16u::@4 to mul16u::@3 [phi:mul16u::@2/mul16u::@4->mul16u::@3]
    // [88] phi (dword) mul16u::res#6 = (dword) mul16u::res#2 [phi:mul16u::@2/mul16u::@4->mul16u::@3#0] -- register_copy 
    // mul16u::@3
  b3:
    // a = a>>1
    // [89] (word) mul16u::a#0 ← (word) mul16u::a#3 >> (byte) 1 -- vwuz1=vwuz1_ror_1 
    lsr.z a+1
    ror.z a
    // mb = mb<<1
    // [90] (dword) mul16u::mb#1 ← (dword) mul16u::mb#2 << (byte) 1 -- vduz1=vduz1_rol_1 
    asl.z mb
    rol.z mb+1
    rol.z mb+2
    rol.z mb+3
    // [82] phi from mul16u::@3 to mul16u::@1 [phi:mul16u::@3->mul16u::@1]
    // [82] phi (dword) mul16u::mb#2 = (dword) mul16u::mb#1 [phi:mul16u::@3->mul16u::@1#0] -- register_copy 
    // [82] phi (dword) mul16u::res#2 = (dword) mul16u::res#6 [phi:mul16u::@3->mul16u::@1#1] -- register_copy 
    // [82] phi (word) mul16u::a#3 = (word) mul16u::a#0 [phi:mul16u::@3->mul16u::@1#2] -- register_copy 
    jmp b1
}
  // init_irq
// Setup the IRQ
init_irq: {
    // asm
    // asm { sei  }
    sei
    // *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
    // [92] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 -- _deref_pbuc1=vbuc2 
    // Disable kernal & basic
    lda #PROCPORT_DDR_MEMORY_MASK
    sta PROCPORT_DDR
    // *PROCPORT = PROCPORT_RAM_IO
    // [93] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 -- _deref_pbuc1=vbuc2 
    lda #PROCPORT_RAM_IO
    sta PROCPORT
    // *CIA1_INTERRUPT = CIA_INTERRUPT_CLEAR
    // [94] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 -- _deref_pbuc1=vbuc2 
    // Disable CIA 1 Timer IRQ
    lda #CIA_INTERRUPT_CLEAR
    sta CIA1_INTERRUPT
    // *VIC_CONTROL |=$80
    // [95] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) | (byte) $80 -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 
    // Set raster line to $100
    lda #$80
    ora VIC_CONTROL
    sta VIC_CONTROL
    // *RASTER = $00
    // [96] *((const byte*) RASTER#0) ← (byte) 0 -- _deref_pbuc1=vbuc2 
    lda #0
    sta RASTER
    // *IRQ_ENABLE = IRQ_RASTER
    // [97] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 
    // Enable Raster Interrupt
    lda #IRQ_RASTER
    sta IRQ_ENABLE
    // *HARDWARE_IRQ = &irq
    // [98] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() -- _deref_pptc1=pprc2 
    // Set the IRQ routine
    lda #<irq
    sta HARDWARE_IRQ
    lda #>irq
    sta HARDWARE_IRQ+1
    // asm
    // asm { cli  }
    cli
    // init_irq::@return
    // }
    // [100] return 
    rts
}
  // bitmap_clear
// Clear all graphics on the bitmap
// bgcol - the background color to fill the screen with
// fgcol - the foreground color to fill the screen with
bitmap_clear: {
    .const col = WHITE*$10
    // memset(bitmap_screen, col, 1000uw)
    // [102] call memset 
    // [106] phi from bitmap_clear to memset [phi:bitmap_clear->memset]
    // [106] phi (byte) memset::c#4 = (const byte) bitmap_clear::col#0 [phi:bitmap_clear->memset#0] -- vbuxx=vbuc1 
    ldx #col
    // [106] phi (void*) memset::str#3 = (void*)(const byte*) SCREEN#0 [phi:bitmap_clear->memset#1] -- pvoz1=pvoc1 
    lda #<SCREEN
    sta.z memset.str
    lda #>SCREEN
    sta.z memset.str+1
    // [106] phi (word) memset::num#2 = (word) $3e8 [phi:bitmap_clear->memset#2] -- vwuz1=vwuc1 
    lda #<$3e8
    sta.z memset.num
    lda #>$3e8
    sta.z memset.num+1
    jsr memset
    // [103] phi from bitmap_clear to bitmap_clear::@1 [phi:bitmap_clear->bitmap_clear::@1]
    // bitmap_clear::@1
    // memset(bitmap_gfx, 0, 8000uw)
    // [104] call memset 
    // [106] phi from bitmap_clear::@1 to memset [phi:bitmap_clear::@1->memset]
    // [106] phi (byte) memset::c#4 = (byte) 0 [phi:bitmap_clear::@1->memset#0] -- vbuxx=vbuc1 
    ldx #0
    // [106] phi (void*) memset::str#3 = (void*)(const byte*) BITMAP#0 [phi:bitmap_clear::@1->memset#1] -- pvoz1=pvoc1 
    lda #<BITMAP
    sta.z memset.str
    lda #>BITMAP
    sta.z memset.str+1
    // [106] phi (word) memset::num#2 = (word) $1f40 [phi:bitmap_clear::@1->memset#2] -- vwuz1=vwuc1 
    lda #<$1f40
    sta.z memset.num
    lda #>$1f40
    sta.z memset.num+1
    jsr memset
    // bitmap_clear::@return
    // }
    // [105] return 
    rts
}
  // memset
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
// memset(void* zeropage($12) str, byte register(X) c, word zeropage(8) num)
memset: {
    .label end = 8
    .label dst = $12
    .label num = 8
    .label str = $12
    // if(num>0)
    // [107] if((word) memset::num#2<=(byte) 0) goto memset::@return -- vwuz1_le_0_then_la1 
    lda.z num
    bne !+
    lda.z num+1
    beq breturn
  !:
    // memset::@1
    // end = (char*)str + num
    // [108] (byte*) memset::end#0 ← (byte*)(void*) memset::str#3 + (word) memset::num#2 -- pbuz1=pbuz2_plus_vwuz1 
    lda.z end
    clc
    adc.z str
    sta.z end
    lda.z end+1
    adc.z str+1
    sta.z end+1
    // [109] (byte*~) memset::dst#4 ← (byte*)(void*) memset::str#3
    // [110] phi from memset::@1 memset::@3 to memset::@2 [phi:memset::@1/memset::@3->memset::@2]
    // [110] phi (byte*) memset::dst#2 = (byte*~) memset::dst#4 [phi:memset::@1/memset::@3->memset::@2#0] -- register_copy 
    // memset::@2
  b2:
    // for(char* dst = str; dst!=end; dst++)
    // [111] if((byte*) memset::dst#2!=(byte*) memset::end#0) goto memset::@3 -- pbuz1_neq_pbuz2_then_la1 
    lda.z dst+1
    cmp.z end+1
    bne b3
    lda.z dst
    cmp.z end
    bne b3
    // memset::@return
  breturn:
    // }
    // [112] return 
    rts
    // memset::@3
  b3:
    // *dst = c
    // [113] *((byte*) memset::dst#2) ← (byte) memset::c#4 -- _deref_pbuz1=vbuxx 
    txa
    ldy #0
    sta (dst),y
    // for(char* dst = str; dst!=end; dst++)
    // [114] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2 -- pbuz1=_inc_pbuz1 
    inc.z dst
    bne !+
    inc.z dst+1
  !:
    jmp b2
}
  // bitmap_init
// Initialize bitmap plotting tables
bitmap_init: {
    .label _7 = $1b
    .label yoffs = $24
    // [116] phi from bitmap_init to bitmap_init::@1 [phi:bitmap_init->bitmap_init::@1]
    // [116] phi (byte) bitmap_init::x#2 = (byte) 0 [phi:bitmap_init->bitmap_init::@1#0] -- vbuxx=vbuc1 
    ldx #0
    // [116] phi (byte) bitmap_init::bits#3 = (byte) $80 [phi:bitmap_init->bitmap_init::@1#1] -- vbuaa=vbuc1 
    lda #$80
    // [116] phi from bitmap_init::@2 to bitmap_init::@1 [phi:bitmap_init::@2->bitmap_init::@1]
    // [116] phi (byte) bitmap_init::x#2 = (byte) bitmap_init::x#1 [phi:bitmap_init::@2->bitmap_init::@1#0] -- register_copy 
    // [116] phi (byte) bitmap_init::bits#3 = (byte) bitmap_init::bits#4 [phi:bitmap_init::@2->bitmap_init::@1#1] -- register_copy 
    // bitmap_init::@1
  b1:
    // bitmap_plot_bit[x] = bits
    // [117] *((const byte[$100]) bitmap_plot_bit#0 + (byte) bitmap_init::x#2) ← (byte) bitmap_init::bits#3 -- pbuc1_derefidx_vbuxx=vbuaa 
    sta bitmap_plot_bit,x
    // bits >>= 1
    // [118] (byte) bitmap_init::bits#1 ← (byte) bitmap_init::bits#3 >> (byte) 1 -- vbuaa=vbuaa_ror_1 
    lsr
    // if(bits==0)
    // [119] if((byte) bitmap_init::bits#1!=(byte) 0) goto bitmap_init::@6 -- vbuaa_neq_0_then_la1 
    cmp #0
    bne b2
    // [121] phi from bitmap_init::@1 to bitmap_init::@2 [phi:bitmap_init::@1->bitmap_init::@2]
    // [121] phi (byte) bitmap_init::bits#4 = (byte) $80 [phi:bitmap_init::@1->bitmap_init::@2#0] -- vbuaa=vbuc1 
    lda #$80
    // [120] phi from bitmap_init::@1 to bitmap_init::@6 [phi:bitmap_init::@1->bitmap_init::@6]
    // bitmap_init::@6
    // [121] phi from bitmap_init::@6 to bitmap_init::@2 [phi:bitmap_init::@6->bitmap_init::@2]
    // [121] phi (byte) bitmap_init::bits#4 = (byte) bitmap_init::bits#1 [phi:bitmap_init::@6->bitmap_init::@2#0] -- register_copy 
    // bitmap_init::@2
  b2:
    // for(byte x : 0..255)
    // [122] (byte) bitmap_init::x#1 ← ++ (byte) bitmap_init::x#2 -- vbuxx=_inc_vbuxx 
    inx
    // [123] if((byte) bitmap_init::x#1!=(byte) 0) goto bitmap_init::@1 -- vbuxx_neq_0_then_la1 
    cpx #0
    bne b1
    // [124] phi from bitmap_init::@2 to bitmap_init::@3 [phi:bitmap_init::@2->bitmap_init::@3]
    // [124] phi (byte*) bitmap_init::yoffs#2 = (const byte*) BITMAP#0 [phi:bitmap_init::@2->bitmap_init::@3#0] -- pbuz1=pbuc1 
    lda #<BITMAP
    sta.z yoffs
    lda #>BITMAP
    sta.z yoffs+1
    // [124] phi (byte) bitmap_init::y#2 = (byte) 0 [phi:bitmap_init::@2->bitmap_init::@3#1] -- vbuxx=vbuc1 
    ldx #0
    // [124] phi from bitmap_init::@4 to bitmap_init::@3 [phi:bitmap_init::@4->bitmap_init::@3]
    // [124] phi (byte*) bitmap_init::yoffs#2 = (byte*) bitmap_init::yoffs#4 [phi:bitmap_init::@4->bitmap_init::@3#0] -- register_copy 
    // [124] phi (byte) bitmap_init::y#2 = (byte) bitmap_init::y#1 [phi:bitmap_init::@4->bitmap_init::@3#1] -- register_copy 
    // bitmap_init::@3
  b3:
    // y&$7
    // [125] (byte~) bitmap_init::$7 ← (byte) bitmap_init::y#2 & (byte) 7 -- vbuz1=vbuxx_band_vbuc1 
    lda #7
    sax.z _7
    // <yoffs
    // [126] (byte~) bitmap_init::$4 ← < (byte*) bitmap_init::yoffs#2 -- vbuaa=_lo_pbuz1 
    lda.z yoffs
    // y&$7 | <yoffs
    // [127] (byte~) bitmap_init::$5 ← (byte~) bitmap_init::$7 | (byte~) bitmap_init::$4 -- vbuaa=vbuz1_bor_vbuaa 
    ora.z _7
    // bitmap_plot_ylo[y] = y&$7 | <yoffs
    // [128] *((const byte[$100]) bitmap_plot_ylo#0 + (byte) bitmap_init::y#2) ← (byte~) bitmap_init::$5 -- pbuc1_derefidx_vbuxx=vbuaa 
    sta bitmap_plot_ylo,x
    // >yoffs
    // [129] (byte~) bitmap_init::$6 ← > (byte*) bitmap_init::yoffs#2 -- vbuaa=_hi_pbuz1 
    lda.z yoffs+1
    // bitmap_plot_yhi[y] = >yoffs
    // [130] *((const byte[$100]) bitmap_plot_yhi#0 + (byte) bitmap_init::y#2) ← (byte~) bitmap_init::$6 -- pbuc1_derefidx_vbuxx=vbuaa 
    sta bitmap_plot_yhi,x
    // if((y&$7)==7)
    // [131] if((byte~) bitmap_init::$7!=(byte) 7) goto bitmap_init::@4 -- vbuz1_neq_vbuc1_then_la1 
    lda #7
    cmp.z _7
    bne b4
    // bitmap_init::@5
    // yoffs = yoffs + 40*8
    // [132] (byte*) bitmap_init::yoffs#1 ← (byte*) bitmap_init::yoffs#2 + (word)(number) $28*(number) 8 -- pbuz1=pbuz1_plus_vwuc1 
    clc
    lda.z yoffs
    adc #<$28*8
    sta.z yoffs
    lda.z yoffs+1
    adc #>$28*8
    sta.z yoffs+1
    // [133] phi from bitmap_init::@3 bitmap_init::@5 to bitmap_init::@4 [phi:bitmap_init::@3/bitmap_init::@5->bitmap_init::@4]
    // [133] phi (byte*) bitmap_init::yoffs#4 = (byte*) bitmap_init::yoffs#2 [phi:bitmap_init::@3/bitmap_init::@5->bitmap_init::@4#0] -- register_copy 
    // bitmap_init::@4
  b4:
    // for(byte y : 0..255)
    // [134] (byte) bitmap_init::y#1 ← ++ (byte) bitmap_init::y#2 -- vbuxx=_inc_vbuxx 
    inx
    // [135] if((byte) bitmap_init::y#1!=(byte) 0) goto bitmap_init::@3 -- vbuxx_neq_0_then_la1 
    cpx #0
    bne b3
    // bitmap_init::@return
    // }
    // [136] return 
    rts
}
  // sin16s_gen2
// Generate signed word sinus table - with values in the range min-max.
// sintab - the table to generate into
// wavelength - the number of sinus points in a total sinus wavelength (the size of the table)
// sin16s_gen2(signed word* zeropage($14) sintab)
sin16s_gen2: {
    .label wavelength = $200
    .const min = -$1001
    .const max = $1001
    .const ampl = max-min
    .label _6 = $e
    .label _9 = $20
    .label step = $1c
    .label sintab = $14
    .label x = $a
    .label i = $12
    // div32u16u(PI2_u4f28, wavelength)
    // [138] call div32u16u 
    // [205] phi from sin16s_gen2 to div32u16u [phi:sin16s_gen2->div32u16u]
    jsr div32u16u
    // div32u16u(PI2_u4f28, wavelength)
    // [139] (dword) div32u16u::return#2 ← (dword) div32u16u::return#0
    // sin16s_gen2::@3
    // step = div32u16u(PI2_u4f28, wavelength)
    // [140] (dword) sin16s_gen2::step#0 ← (dword) div32u16u::return#2
    // [141] phi from sin16s_gen2::@3 to sin16s_gen2::@2 [phi:sin16s_gen2::@3->sin16s_gen2::@2]
    // [141] phi (signed word*) sin16s_gen2::sintab#10 = (const signed word[$200]) SINUS#0 [phi:sin16s_gen2::@3->sin16s_gen2::@2#0] -- pwsz1=pwsc1 
    lda #<SINUS
    sta.z sintab
    lda #>SINUS
    sta.z sintab+1
    // [141] phi (dword) sin16s_gen2::x#6 = (byte) 0 [phi:sin16s_gen2::@3->sin16s_gen2::@2#1] -- vduz1=vbuc1 
    lda #0
    sta.z x
    sta.z x+1
    sta.z x+2
    sta.z x+3
    // [141] phi (word) sin16s_gen2::i#6 = (byte) 0 [phi:sin16s_gen2::@3->sin16s_gen2::@2#2] -- vwuz1=vbuc1 
    sta.z i
    sta.z i+1
    // [141] phi from sin16s_gen2::@1 to sin16s_gen2::@2 [phi:sin16s_gen2::@1->sin16s_gen2::@2]
    // [141] phi (signed word*) sin16s_gen2::sintab#10 = (signed word*) sin16s_gen2::sintab#0 [phi:sin16s_gen2::@1->sin16s_gen2::@2#0] -- register_copy 
    // [141] phi (dword) sin16s_gen2::x#6 = (dword) sin16s_gen2::x#1 [phi:sin16s_gen2::@1->sin16s_gen2::@2#1] -- register_copy 
    // [141] phi (word) sin16s_gen2::i#6 = (word) sin16s_gen2::i#1 [phi:sin16s_gen2::@1->sin16s_gen2::@2#2] -- register_copy 
    // sin16s_gen2::@2
  b2:
    // sin16s(x)
    // [142] (dword) sin16s::x#0 ← (dword) sin16s_gen2::x#6 -- vduz1=vduz2 
    lda.z x
    sta.z sin16s.x
    lda.z x+1
    sta.z sin16s.x+1
    lda.z x+2
    sta.z sin16s.x+2
    lda.z x+3
    sta.z sin16s.x+3
    // [143] call sin16s 
    jsr sin16s
    // [144] (signed word) sin16s::return#0 ← (signed word) sin16s::return#1
    // sin16s_gen2::@4
    // mul16s(sin16s(x), ampl)
    // [145] (signed word) mul16s::a#0 ← (signed word) sin16s::return#0
    // [146] call mul16s 
    // [63] phi from sin16s_gen2::@4 to mul16s [phi:sin16s_gen2::@4->mul16s]
    // [63] phi (signed word) mul16s::b#3 = (const signed word) sin16s_gen2::ampl#0 [phi:sin16s_gen2::@4->mul16s#0] -- vwsz1=vwsc1 
    lda #<ampl
    sta.z mul16s.b
    lda #>ampl
    sta.z mul16s.b+1
    // [63] phi (signed word) mul16s::a#3 = (signed word) mul16s::a#0 [phi:sin16s_gen2::@4->mul16s#1] -- register_copy 
    jsr mul16s
    // mul16s(sin16s(x), ampl)
    // [147] (signed dword) mul16s::return#2 ← (signed dword) mul16s::return#0
    // sin16s_gen2::@5
    // [148] (signed dword~) sin16s_gen2::$6 ← (signed dword) mul16s::return#2
    // >mul16s(sin16s(x), ampl)
    // [149] (word~) sin16s_gen2::$9 ← > (signed dword~) sin16s_gen2::$6 -- vwuz1=_hi_vdsz2 
    lda.z _6+2
    sta.z _9
    lda.z _6+3
    sta.z _9+1
    // *sintab++ = offs + (signed word)>mul16s(sin16s(x), ampl)
    // [150] *((signed word*) sin16s_gen2::sintab#10) ← (signed word)(word~) sin16s_gen2::$9 -- _deref_pwsz1=vwsz2 
    ldy #0
    lda.z _9
    sta (sintab),y
    iny
    lda.z _9+1
    sta (sintab),y
    // *sintab++ = offs + (signed word)>mul16s(sin16s(x), ampl);
    // [151] (signed word*) sin16s_gen2::sintab#0 ← (signed word*) sin16s_gen2::sintab#10 + (const byte) SIZEOF_SIGNED_WORD -- pwsz1=pwsz1_plus_vbuc1 
    lda #SIZEOF_SIGNED_WORD
    clc
    adc.z sintab
    sta.z sintab
    bcc !+
    inc.z sintab+1
  !:
    // x = x + step
    // [152] (dword) sin16s_gen2::x#1 ← (dword) sin16s_gen2::x#6 + (dword) sin16s_gen2::step#0 -- vduz1=vduz1_plus_vduz2 
    lda.z x
    clc
    adc.z step
    sta.z x
    lda.z x+1
    adc.z step+1
    sta.z x+1
    lda.z x+2
    adc.z step+2
    sta.z x+2
    lda.z x+3
    adc.z step+3
    sta.z x+3
    // for( word i=0; i<wavelength; i++)
    // [153] (word) sin16s_gen2::i#1 ← ++ (word) sin16s_gen2::i#6 -- vwuz1=_inc_vwuz1 
    inc.z i
    bne !+
    inc.z i+1
  !:
  // u[4.28]
    // sin16s_gen2::@1
    // [154] if((word) sin16s_gen2::i#1<(const word) sin16s_gen2::wavelength#0) goto sin16s_gen2::@2 -- vwuz1_lt_vwuc1_then_la1 
    lda.z i+1
    cmp #>wavelength
    bcc b2
    bne !+
    lda.z i
    cmp #<wavelength
    bcc b2
  !:
    // sin16s_gen2::@return
    // }
    // [155] return 
    rts
}
  // sin16s
// Calculate signed word sinus sin(x)
// x: unsigned dword input u[4.28] in the interval $00000000 - PI2_u4f28
// result: signed word sin(x) s[0.15] - using the full range  -$7fff - $7fff
// sin16s(dword zeropage($e) x)
sin16s: {
    .label _4 = $e
    .label x = $e
    .label return = 8
    .label x1 = $22
    .label x2 = $17
    .label x3 = $17
    .label x3_6 = $24
    .label usinx = 8
    .label x4 = $17
    .label x5 = $24
    .label x5_128 = $24
    .label sinx = 8
    .label isUpper = $1b
    // if(x >= PI_u4f28 )
    // [156] if((dword) sin16s::x#0<(const dword) PI_u4f28#0) goto sin16s::@1 -- vduz1_lt_vduc1_then_la1 
    lda.z x+3
    cmp #>PI_u4f28>>$10
    bcc b4
    bne !+
    lda.z x+2
    cmp #<PI_u4f28>>$10
    bcc b4
    bne !+
    lda.z x+1
    cmp #>PI_u4f28
    bcc b4
    bne !+
    lda.z x
    cmp #<PI_u4f28
    bcc b4
  !:
    // sin16s::@4
    // x = x - PI_u4f28
    // [157] (dword) sin16s::x#1 ← (dword) sin16s::x#0 - (const dword) PI_u4f28#0 -- vduz1=vduz1_minus_vduc1 
    lda.z x
    sec
    sbc #<PI_u4f28
    sta.z x
    lda.z x+1
    sbc #>PI_u4f28
    sta.z x+1
    lda.z x+2
    sbc #<PI_u4f28>>$10
    sta.z x+2
    lda.z x+3
    sbc #>PI_u4f28>>$10
    sta.z x+3
    // [158] phi from sin16s::@4 to sin16s::@1 [phi:sin16s::@4->sin16s::@1]
    // [158] phi (byte) sin16s::isUpper#2 = (byte) 1 [phi:sin16s::@4->sin16s::@1#0] -- vbuz1=vbuc1 
    lda #1
    sta.z isUpper
    // [158] phi (dword) sin16s::x#4 = (dword) sin16s::x#1 [phi:sin16s::@4->sin16s::@1#1] -- register_copy 
    jmp b1
    // [158] phi from sin16s to sin16s::@1 [phi:sin16s->sin16s::@1]
  b4:
    // [158] phi (byte) sin16s::isUpper#2 = (byte) 0 [phi:sin16s->sin16s::@1#0] -- vbuz1=vbuc1 
    lda #0
    sta.z isUpper
    // [158] phi (dword) sin16s::x#4 = (dword) sin16s::x#0 [phi:sin16s->sin16s::@1#1] -- register_copy 
    // sin16s::@1
  b1:
    // if(x >= PI_HALF_u4f28 )
    // [159] if((dword) sin16s::x#4<(const dword) PI_HALF_u4f28#0) goto sin16s::@2 -- vduz1_lt_vduc1_then_la1 
    lda.z x+3
    cmp #>PI_HALF_u4f28>>$10
    bcc b2
    bne !+
    lda.z x+2
    cmp #<PI_HALF_u4f28>>$10
    bcc b2
    bne !+
    lda.z x+1
    cmp #>PI_HALF_u4f28
    bcc b2
    bne !+
    lda.z x
    cmp #<PI_HALF_u4f28
    bcc b2
  !:
    // sin16s::@5
    // x = PI_u4f28 - x
    // [160] (dword) sin16s::x#2 ← (const dword) PI_u4f28#0 - (dword) sin16s::x#4 -- vduz1=vduc1_minus_vduz1 
    lda #<PI_u4f28
    sec
    sbc.z x
    sta.z x
    lda #>PI_u4f28
    sbc.z x+1
    sta.z x+1
    lda #<PI_u4f28>>$10
    sbc.z x+2
    sta.z x+2
    lda #>PI_u4f28>>$10
    sbc.z x+3
    sta.z x+3
    // [161] phi from sin16s::@1 sin16s::@5 to sin16s::@2 [phi:sin16s::@1/sin16s::@5->sin16s::@2]
    // [161] phi (dword) sin16s::x#6 = (dword) sin16s::x#4 [phi:sin16s::@1/sin16s::@5->sin16s::@2#0] -- register_copy 
    // sin16s::@2
  b2:
    // x<<3
    // [162] (dword~) sin16s::$4 ← (dword) sin16s::x#6 << (byte) 3 -- vduz1=vduz1_rol_3 
    ldy #3
  !:
    asl.z _4
    rol.z _4+1
    rol.z _4+2
    rol.z _4+3
    dey
    bne !-
    // x1 = >x<<3
    // [163] (word) sin16s::x1#0 ← > (dword~) sin16s::$4 -- vwuz1=_hi_vduz2 
    lda.z _4+2
    sta.z x1
    lda.z _4+3
    sta.z x1+1
    // mulu16_sel(x1, x1, 0)
    // [164] (word) mulu16_sel::v1#0 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v1
    lda.z x1+1
    sta.z mulu16_sel.v1+1
    // [165] (word) mulu16_sel::v2#0 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [166] call mulu16_sel 
    // [196] phi from sin16s::@2 to mulu16_sel [phi:sin16s::@2->mulu16_sel]
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 0 [phi:sin16s::@2->mulu16_sel#0] -- vbuxx=vbuc1 
    ldx #0
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#0 [phi:sin16s::@2->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#0 [phi:sin16s::@2->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // mulu16_sel(x1, x1, 0)
    // [167] (word) mulu16_sel::return#0 ← (word) mulu16_sel::return#12
    // sin16s::@7
    // x2 = mulu16_sel(x1, x1, 0)
    // [168] (word) sin16s::x2#0 ← (word) mulu16_sel::return#0 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return
    sta.z x2
    lda.z mulu16_sel.return+1
    sta.z x2+1
    // mulu16_sel(x2, x1, 1)
    // [169] (word) mulu16_sel::v1#1 ← (word) sin16s::x2#0
    // [170] (word) mulu16_sel::v2#1 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [171] call mulu16_sel 
    // [196] phi from sin16s::@7 to mulu16_sel [phi:sin16s::@7->mulu16_sel]
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 1 [phi:sin16s::@7->mulu16_sel#0] -- vbuxx=vbuc1 
    ldx #1
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#1 [phi:sin16s::@7->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#1 [phi:sin16s::@7->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // mulu16_sel(x2, x1, 1)
    // [172] (word) mulu16_sel::return#1 ← (word) mulu16_sel::return#12 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return
    sta.z mulu16_sel.return_1
    lda.z mulu16_sel.return+1
    sta.z mulu16_sel.return_1+1
    // sin16s::@8
    // x3 = mulu16_sel(x2, x1, 1)
    // [173] (word) sin16s::x3#0 ← (word) mulu16_sel::return#1
    // mulu16_sel(x3, $10000/6, 1)
    // [174] (word) mulu16_sel::v1#2 ← (word) sin16s::x3#0
    // [175] call mulu16_sel 
    // [196] phi from sin16s::@8 to mulu16_sel [phi:sin16s::@8->mulu16_sel]
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 1 [phi:sin16s::@8->mulu16_sel#0] -- vbuxx=vbuc1 
    ldx #1
    // [196] phi (word) mulu16_sel::v2#5 = (word)(number) $10000/(number) 6 [phi:sin16s::@8->mulu16_sel#1] -- vwuz1=vwuc1 
    lda #<$10000/6
    sta.z mulu16_sel.v2
    lda #>$10000/6
    sta.z mulu16_sel.v2+1
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#2 [phi:sin16s::@8->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // mulu16_sel(x3, $10000/6, 1)
    // [176] (word) mulu16_sel::return#2 ← (word) mulu16_sel::return#12
    // sin16s::@9
    // x3_6 = mulu16_sel(x3, $10000/6, 1)
    // [177] (word) sin16s::x3_6#0 ← (word) mulu16_sel::return#2
    // usinx = x1 - x3_6
    // [178] (word) sin16s::usinx#0 ← (word) sin16s::x1#0 - (word) sin16s::x3_6#0 -- vwuz1=vwuz2_minus_vwuz3 
    lda.z x1
    sec
    sbc.z x3_6
    sta.z usinx
    lda.z x1+1
    sbc.z x3_6+1
    sta.z usinx+1
    // mulu16_sel(x3, x1, 0)
    // [179] (word) mulu16_sel::v1#3 ← (word) sin16s::x3#0
    // [180] (word) mulu16_sel::v2#3 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [181] call mulu16_sel 
    // [196] phi from sin16s::@9 to mulu16_sel [phi:sin16s::@9->mulu16_sel]
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 0 [phi:sin16s::@9->mulu16_sel#0] -- vbuxx=vbuc1 
    ldx #0
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#3 [phi:sin16s::@9->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#3 [phi:sin16s::@9->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // mulu16_sel(x3, x1, 0)
    // [182] (word) mulu16_sel::return#10 ← (word) mulu16_sel::return#12 -- vwuz1=vwuz2 
    lda.z mulu16_sel.return
    sta.z mulu16_sel.return_10
    lda.z mulu16_sel.return+1
    sta.z mulu16_sel.return_10+1
    // sin16s::@10
    // x4 = mulu16_sel(x3, x1, 0)
    // [183] (word) sin16s::x4#0 ← (word) mulu16_sel::return#10
    // mulu16_sel(x4, x1, 0)
    // [184] (word) mulu16_sel::v1#4 ← (word) sin16s::x4#0
    // [185] (word) mulu16_sel::v2#4 ← (word) sin16s::x1#0 -- vwuz1=vwuz2 
    lda.z x1
    sta.z mulu16_sel.v2
    lda.z x1+1
    sta.z mulu16_sel.v2+1
    // [186] call mulu16_sel 
    // [196] phi from sin16s::@10 to mulu16_sel [phi:sin16s::@10->mulu16_sel]
    // [196] phi (byte) mulu16_sel::select#5 = (byte) 0 [phi:sin16s::@10->mulu16_sel#0] -- vbuxx=vbuc1 
    ldx #0
    // [196] phi (word) mulu16_sel::v2#5 = (word) mulu16_sel::v2#4 [phi:sin16s::@10->mulu16_sel#1] -- register_copy 
    // [196] phi (word) mulu16_sel::v1#5 = (word) mulu16_sel::v1#4 [phi:sin16s::@10->mulu16_sel#2] -- register_copy 
    jsr mulu16_sel
    // mulu16_sel(x4, x1, 0)
    // [187] (word) mulu16_sel::return#11 ← (word) mulu16_sel::return#12
    // sin16s::@11
    // x5 = mulu16_sel(x4, x1, 0)
    // [188] (word) sin16s::x5#0 ← (word) mulu16_sel::return#11
    // x5_128 = x5>>4
    // [189] (word) sin16s::x5_128#0 ← (word) sin16s::x5#0 >> (byte) 4 -- vwuz1=vwuz1_ror_4 
    lsr.z x5_128+1
    ror.z x5_128
    lsr.z x5_128+1
    ror.z x5_128
    lsr.z x5_128+1
    ror.z x5_128
    lsr.z x5_128+1
    ror.z x5_128
    // usinx = usinx + x5_128
    // [190] (word) sin16s::usinx#1 ← (word) sin16s::usinx#0 + (word) sin16s::x5_128#0 -- vwuz1=vwuz1_plus_vwuz2 
    lda.z usinx
    clc
    adc.z x5_128
    sta.z usinx
    lda.z usinx+1
    adc.z x5_128+1
    sta.z usinx+1
    // if(isUpper!=0)
    // [191] if((byte) sin16s::isUpper#2==(byte) 0) goto sin16s::@12 -- vbuz1_eq_0_then_la1 
    lda.z isUpper
    cmp #0
    beq b3
    // sin16s::@6
    // sinx = -(signed word)usinx
    // [192] (signed word) sin16s::sinx#1 ← - (signed word)(word) sin16s::usinx#1 -- vwsz1=_neg_vwsz1 
    sec
    lda #0
    sbc.z sinx
    sta.z sinx
    lda #0
    sbc.z sinx+1
    sta.z sinx+1
    // [193] phi from sin16s::@12 sin16s::@6 to sin16s::@3 [phi:sin16s::@12/sin16s::@6->sin16s::@3]
    // [193] phi (signed word) sin16s::return#1 = (signed word~) sin16s::return#5 [phi:sin16s::@12/sin16s::@6->sin16s::@3#0] -- register_copy 
    // sin16s::@3
  b3:
    // sin16s::@return
    // }
    // [194] return 
    rts
    // sin16s::@12
    // [195] (signed word~) sin16s::return#5 ← (signed word)(word) sin16s::usinx#1
}
  // mulu16_sel
// Calculate val*val for two unsigned word values - the result is 16 selected bits of the 32-bit result.
// The select parameter indicates how many of the highest bits of the 32-bit result to skip
// mulu16_sel(word zeropage($17) v1, word zeropage(2) v2, byte register(X) select)
mulu16_sel: {
    .label _0 = $e
    .label _1 = $e
    .label v1 = $17
    .label v2 = 2
    .label return = $24
    .label return_1 = $17
    .label return_10 = $17
    // mul16u(v1, v2)
    // [197] (word) mul16u::a#2 ← (word) mulu16_sel::v1#5 -- vwuz1=vwuz2 
    lda.z v1
    sta.z mul16u.a
    lda.z v1+1
    sta.z mul16u.a+1
    // [198] (word) mul16u::b#1 ← (word) mulu16_sel::v2#5
    // [199] call mul16u 
    // [81] phi from mulu16_sel to mul16u [phi:mulu16_sel->mul16u]
    // [81] phi (word) mul16u::a#6 = (word) mul16u::a#2 [phi:mulu16_sel->mul16u#0] -- register_copy 
    // [81] phi (dword) mul16u::mb#0 = (word) mul16u::b#1 [phi:mulu16_sel->mul16u#1] -- vduz1=vwuz2 
    lda.z mul16u.b_1
    sta.z mul16u.mb
    lda.z mul16u.b_1+1
    sta.z mul16u.mb+1
    lda #0
    sta.z mul16u.mb+2
    sta.z mul16u.mb+3
    jsr mul16u
    // mul16u(v1, v2)
    // [200] (dword) mul16u::return#3 ← (dword) mul16u::res#2
    // mulu16_sel::@1
    // [201] (dword~) mulu16_sel::$0 ← (dword) mul16u::return#3
    // mul16u(v1, v2)<<select
    // [202] (dword~) mulu16_sel::$1 ← (dword~) mulu16_sel::$0 << (byte) mulu16_sel::select#5 -- vduz1=vduz1_rol_vbuxx 
    cpx #0
    beq !e+
  !:
    asl.z _1
    rol.z _1+1
    rol.z _1+2
    rol.z _1+3
    dex
    bne !-
  !e:
    // >mul16u(v1, v2)<<select
    // [203] (word) mulu16_sel::return#12 ← > (dword~) mulu16_sel::$1 -- vwuz1=_hi_vduz2 
    lda.z _1+2
    sta.z return
    lda.z _1+3
    sta.z return+1
    // mulu16_sel::@return
    // }
    // [204] return 
    rts
}
  // div32u16u
// Divide unsigned 32-bit dword dividend with a 16-bit word divisor
// The 16-bit word remainder can be found in rem16u after the division
div32u16u: {
    .label quotient_hi = $24
    .label quotient_lo = $14
    .label return = $1c
    // divr16u(>dividend, divisor, 0)
    // [206] call divr16u 
    // [215] phi from div32u16u to divr16u [phi:div32u16u->divr16u]
    // [215] phi (word) divr16u::dividend#5 = >(const dword) PI2_u4f28#0 [phi:div32u16u->divr16u#0] -- vwuz1=vwuc1 
    lda #<PI2_u4f28>>$10
    sta.z divr16u.dividend
    lda #>PI2_u4f28>>$10
    sta.z divr16u.dividend+1
    // [215] phi (word) divr16u::rem#10 = (byte) 0 [phi:div32u16u->divr16u#1] -- vwuz1=vbuc1 
    lda #<0
    sta.z divr16u.rem
    sta.z divr16u.rem+1
    jsr divr16u
    // divr16u(>dividend, divisor, 0)
    // [207] (word) divr16u::return#2 ← (word) divr16u::return#0
    // div32u16u::@1
    // quotient_hi = divr16u(>dividend, divisor, 0)
    // [208] (word) div32u16u::quotient_hi#0 ← (word) divr16u::return#2 -- vwuz1=vwuz2 
    lda.z divr16u.return
    sta.z quotient_hi
    lda.z divr16u.return+1
    sta.z quotient_hi+1
    // divr16u(<dividend, divisor, rem16u)
    // [209] (word) divr16u::rem#4 ← (word) rem16u#1
    // [210] call divr16u 
    // [215] phi from div32u16u::@1 to divr16u [phi:div32u16u::@1->divr16u]
    // [215] phi (word) divr16u::dividend#5 = <(const dword) PI2_u4f28#0 [phi:div32u16u::@1->divr16u#0] -- vwuz1=vwuc1 
    lda #<PI2_u4f28&$ffff
    sta.z divr16u.dividend
    lda #>PI2_u4f28&$ffff
    sta.z divr16u.dividend+1
    // [215] phi (word) divr16u::rem#10 = (word) divr16u::rem#4 [phi:div32u16u::@1->divr16u#1] -- register_copy 
    jsr divr16u
    // divr16u(<dividend, divisor, rem16u)
    // [211] (word) divr16u::return#3 ← (word) divr16u::return#0
    // div32u16u::@2
    // quotient_lo = divr16u(<dividend, divisor, rem16u)
    // [212] (word) div32u16u::quotient_lo#0 ← (word) divr16u::return#3
    // quotient = { quotient_hi, quotient_lo}
    // [213] (dword) div32u16u::return#0 ← (word) div32u16u::quotient_hi#0 dw= (word) div32u16u::quotient_lo#0 -- vduz1=vwuz2_dword_vwuz3 
    lda.z quotient_hi
    sta.z return+2
    lda.z quotient_hi+1
    sta.z return+3
    lda.z quotient_lo
    sta.z return
    lda.z quotient_lo+1
    sta.z return+1
    // div32u16u::@return
    // }
    // [214] return 
    rts
}
  // divr16u
// Performs division on two 16 bit unsigned words and an initial remainder
// Returns the quotient dividend/divisor.
// The final remainder will be set into the global variable rem16u
// Implemented using simple binary division
// divr16u(word zeropage($12) dividend, word zeropage($19) rem)
divr16u: {
    .label rem = $19
    .label dividend = $12
    .label quotient = $14
    .label return = $14
    // [216] phi from divr16u to divr16u::@1 [phi:divr16u->divr16u::@1]
    // [216] phi (byte) divr16u::i#2 = (byte) 0 [phi:divr16u->divr16u::@1#0] -- vbuxx=vbuc1 
    ldx #0
    // [216] phi (word) divr16u::quotient#3 = (byte) 0 [phi:divr16u->divr16u::@1#1] -- vwuz1=vbuc1 
    txa
    sta.z quotient
    sta.z quotient+1
    // [216] phi (word) divr16u::dividend#3 = (word) divr16u::dividend#5 [phi:divr16u->divr16u::@1#2] -- register_copy 
    // [216] phi (word) divr16u::rem#5 = (word) divr16u::rem#10 [phi:divr16u->divr16u::@1#3] -- register_copy 
    // [216] phi from divr16u::@3 to divr16u::@1 [phi:divr16u::@3->divr16u::@1]
    // [216] phi (byte) divr16u::i#2 = (byte) divr16u::i#1 [phi:divr16u::@3->divr16u::@1#0] -- register_copy 
    // [216] phi (word) divr16u::quotient#3 = (word) divr16u::return#0 [phi:divr16u::@3->divr16u::@1#1] -- register_copy 
    // [216] phi (word) divr16u::dividend#3 = (word) divr16u::dividend#0 [phi:divr16u::@3->divr16u::@1#2] -- register_copy 
    // [216] phi (word) divr16u::rem#5 = (word) divr16u::rem#11 [phi:divr16u::@3->divr16u::@1#3] -- register_copy 
    // divr16u::@1
  b1:
    // rem = rem << 1
    // [217] (word) divr16u::rem#0 ← (word) divr16u::rem#5 << (byte) 1 -- vwuz1=vwuz1_rol_1 
    asl.z rem
    rol.z rem+1
    // >dividend
    // [218] (byte~) divr16u::$1 ← > (word) divr16u::dividend#3 -- vbuaa=_hi_vwuz1 
    lda.z dividend+1
    // >dividend & $80
    // [219] (byte~) divr16u::$2 ← (byte~) divr16u::$1 & (byte) $80 -- vbuaa=vbuaa_band_vbuc1 
    and #$80
    // if( (>dividend & $80) != 0 )
    // [220] if((byte~) divr16u::$2==(byte) 0) goto divr16u::@2 -- vbuaa_eq_0_then_la1 
    cmp #0
    beq b2
    // divr16u::@4
    // rem = rem | 1
    // [221] (word) divr16u::rem#1 ← (word) divr16u::rem#0 | (byte) 1 -- vwuz1=vwuz1_bor_vbuc1 
    lda #1
    ora.z rem
    sta.z rem
    // [222] phi from divr16u::@1 divr16u::@4 to divr16u::@2 [phi:divr16u::@1/divr16u::@4->divr16u::@2]
    // [222] phi (word) divr16u::rem#6 = (word) divr16u::rem#0 [phi:divr16u::@1/divr16u::@4->divr16u::@2#0] -- register_copy 
    // divr16u::@2
  b2:
    // dividend = dividend << 1
    // [223] (word) divr16u::dividend#0 ← (word) divr16u::dividend#3 << (byte) 1 -- vwuz1=vwuz1_rol_1 
    asl.z dividend
    rol.z dividend+1
    // quotient = quotient << 1
    // [224] (word) divr16u::quotient#1 ← (word) divr16u::quotient#3 << (byte) 1 -- vwuz1=vwuz1_rol_1 
    asl.z quotient
    rol.z quotient+1
    // if(rem>=divisor)
    // [225] if((word) divr16u::rem#6<(const word) sin16s_gen2::wavelength#0) goto divr16u::@3 -- vwuz1_lt_vwuc1_then_la1 
    lda.z rem+1
    cmp #>sin16s_gen2.wavelength
    bcc b3
    bne !+
    lda.z rem
    cmp #<sin16s_gen2.wavelength
    bcc b3
  !:
    // divr16u::@5
    // quotient++;
    // [226] (word) divr16u::quotient#2 ← ++ (word) divr16u::quotient#1 -- vwuz1=_inc_vwuz1 
    inc.z quotient
    bne !+
    inc.z quotient+1
  !:
    // rem = rem - divisor
    // [227] (word) divr16u::rem#2 ← (word) divr16u::rem#6 - (const word) sin16s_gen2::wavelength#0 -- vwuz1=vwuz1_minus_vwuc1 
    lda.z rem
    sec
    sbc #<sin16s_gen2.wavelength
    sta.z rem
    lda.z rem+1
    sbc #>sin16s_gen2.wavelength
    sta.z rem+1
    // [228] phi from divr16u::@2 divr16u::@5 to divr16u::@3 [phi:divr16u::@2/divr16u::@5->divr16u::@3]
    // [228] phi (word) divr16u::return#0 = (word) divr16u::quotient#1 [phi:divr16u::@2/divr16u::@5->divr16u::@3#0] -- register_copy 
    // [228] phi (word) divr16u::rem#11 = (word) divr16u::rem#6 [phi:divr16u::@2/divr16u::@5->divr16u::@3#1] -- register_copy 
    // divr16u::@3
  b3:
    // for( byte i : 0..15)
    // [229] (byte) divr16u::i#1 ← ++ (byte) divr16u::i#2 -- vbuxx=_inc_vbuxx 
    inx
    // [230] if((byte) divr16u::i#1!=(byte) $10) goto divr16u::@1 -- vbuxx_neq_vbuc1_then_la1 
    cpx #$10
    bne b1
    // divr16u::@6
    // rem16u = rem
    // [231] (word) rem16u#1 ← (word) divr16u::rem#11
    // divr16u::@return
    // }
    // [232] return 
    rts
}
  // irq
// Interrupt Routine counting frames
irq: {
    // entry interrupt(HARDWARE_CLOBBER)
    sta rega+1
    // *BGCOL = WHITE
    // [233] *((const byte*) BGCOL#0) ← (const byte) WHITE#0 -- _deref_pbuc1=vbuc2 
    lda #WHITE
    sta BGCOL
    // if(frame_cnt)
    // [234] if((byte) 0==(byte) frame_cnt#0) goto irq::@1 -- vbuc1_eq_vbuz1_then_la1 
    lda #0
    cmp.z frame_cnt
    beq b1
    // irq::@2
    // frame_cnt++;
    // [235] (byte) frame_cnt#1 ← ++ (byte) frame_cnt#0 -- vbuz1=_inc_vbuz1 
    inc.z frame_cnt
    // [236] phi from irq irq::@2 to irq::@1 [phi:irq/irq::@2->irq::@1]
    // [236] phi (byte) frame_cnt#2 = (byte) frame_cnt#0 [phi:irq/irq::@2->irq::@1#0] -- register_copy 
    // irq::@1
  b1:
    // *BGCOL = BLACK
    // [237] *((const byte*) BGCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 
    lda #BLACK
    sta BGCOL
    // *IRQ_STATUS = IRQ_RASTER
    // [238] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 
    // Acknowledge the IRQ
    lda #IRQ_RASTER
    sta IRQ_STATUS
    // irq::@return
    // }
    // [239] return  - exit interrupt(HARDWARE_CLOBBER)
  rega:
    lda #00
    rti
}
  // File Data
  // Tables for the plotter - initialized by calling bitmap_init();
  bitmap_plot_ylo: .fill $100, 0
  bitmap_plot_yhi: .fill $100, 0
  bitmap_plot_bit: .fill $100, 0
  plots_per_frame: .fill $100, 0
  .align $100
  SINUS: .fill 2*$200, 0

