(label) @1
(label) @2
(label) @3
(label) @4
(label) @begin
(label) @end
(const word*) CORDIC_ATAN2_ANGLES_16[(const byte) CORDIC_ITERATIONS_16]  = kickasm {{ .for (var i=0; i<CORDIC_ITERATIONS_16; i++)
        .word 256*2*256*atan(1/pow(2,i))/PI/2
 }}
(const byte) CORDIC_ITERATIONS_16 = (byte) $f
(const byte) FILL_CHAR = (byte) '@'
(const byte*) HEAP_TOP = (byte*) 40960
(byte) NUM_SQUARES
(const byte) NUM_SQUARES#3 NUM_SQUARES = (byte) $30
(const byte) RADIX::BINARY = (number) 2
(const byte) RADIX::DECIMAL = (number) $a
(const byte) RADIX::HEXADECIMAL = (number) $10
(const byte) RADIX::OCTAL = (number) 8
(byte*) SCREEN_ANGLE
(void*) SCREEN_ANGLE#0 SCREEN_ANGLE zp[2]:13 0.08695652173913043
(byte*) SCREEN_DIST
(void*) SCREEN_DIST#0 SCREEN_DIST zp[2]:11 0.08
(const byte*) SCREEN_FILL = (byte*) 1024
(const byte) SIZEOF_WORD = (byte) 2
(word*) SQUARES
(void*) SQUARES#1 SQUARES zp[2]:17 0.03225806451612903
(word()) atan2_16((signed word) atan2_16::x , (signed word) atan2_16::y)
(signed word~) atan2_16::$2 zp[2]:20 4.0
(byte~) atan2_16::$22 reg byte a 2002.0
(byte~) atan2_16::$23 reg byte a 2002.0
(signed word~) atan2_16::$7 zp[2]:22 4.0
(label) atan2_16::@1
(label) atan2_16::@10
(label) atan2_16::@11
(label) atan2_16::@12
(label) atan2_16::@13
(label) atan2_16::@14
(label) atan2_16::@15
(label) atan2_16::@16
(label) atan2_16::@17
(label) atan2_16::@18
(label) atan2_16::@19
(label) atan2_16::@2
(label) atan2_16::@20
(label) atan2_16::@21
(label) atan2_16::@3
(label) atan2_16::@4
(label) atan2_16::@5
(label) atan2_16::@6
(label) atan2_16::@7
(label) atan2_16::@8
(label) atan2_16::@9
(label) atan2_16::@return
(word) atan2_16::angle
(word) atan2_16::angle#1 angle zp[2]:24 3.0
(word) atan2_16::angle#11 angle zp[2]:24 4.0
(word) atan2_16::angle#12 angle zp[2]:24 190.66666666666666
(word) atan2_16::angle#13 angle zp[2]:24 1334.6666666666667
(word) atan2_16::angle#2 angle zp[2]:24 2002.0
(word) atan2_16::angle#3 angle zp[2]:24 2002.0
(word) atan2_16::angle#4 angle zp[2]:24 4.0
(word) atan2_16::angle#5 angle zp[2]:24 4.0
(word) atan2_16::angle#6 angle zp[2]:24 2004.0
(byte) atan2_16::i
(byte) atan2_16::i#1 reg byte x 1501.5
(byte) atan2_16::i#2 reg byte x 208.54166666666669
(word) atan2_16::return
(word) atan2_16::return#0 return zp[2]:24 34.99999999999999
(word) atan2_16::return#2 return zp[2]:24 202.0
(byte) atan2_16::shift
(byte) atan2_16::shift#1 reg byte y 20002.0
(byte) atan2_16::shift#2 reg byte y 8001.25
(byte) atan2_16::shift#5 reg byte y 667.3333333333334
(signed word) atan2_16::x
(signed word) atan2_16::x#0 x zp[2]:15 2.8684210526315796
(signed word) atan2_16::xd
(signed word) atan2_16::xd#1 xd zp[2]:3 6667.333333333333
(signed word) atan2_16::xd#10 xd zp[2]:3 1001.0
(signed word) atan2_16::xd#2 xd zp[2]:3 1001.0
(signed word) atan2_16::xd#3 xd zp[2]:3 7668.333333333332
(signed word) atan2_16::xd#5 xd zp[2]:3 1001.0
(signed word) atan2_16::xi
(signed word) atan2_16::xi#0 xi zp[2]:22 6.0
(signed word) atan2_16::xi#1 xi zp[2]:22 500.5
(signed word) atan2_16::xi#13 xi zp[2]:22 4.0
(signed word) atan2_16::xi#2 xi zp[2]:22 500.5
(signed word) atan2_16::xi#3 xi zp[2]:22 267.0666666666667
(signed word) atan2_16::xi#8 xi zp[2]:22 1001.0
(signed word) atan2_16::y
(signed word) atan2_16::y#0 y zp[2]:17 2.724999999999999
(signed word) atan2_16::yd
(signed word) atan2_16::yd#1 yd zp[2]:26 10001.0
(signed word) atan2_16::yd#10 yd zp[2]:26 2002.0
(signed word) atan2_16::yd#2 yd zp[2]:26 2002.0
(signed word) atan2_16::yd#3 yd zp[2]:26 4601.0
(signed word) atan2_16::yd#5 yd zp[2]:26 2002.0
(signed word) atan2_16::yi
(signed word) atan2_16::yi#0 yi zp[2]:20 1.2000000000000002
(signed word) atan2_16::yi#1 yi zp[2]:20 667.3333333333334
(signed word) atan2_16::yi#16 yi zp[2]:20 4.0
(signed word) atan2_16::yi#2 yi zp[2]:20 667.3333333333334
(signed word) atan2_16::yi#3 yi zp[2]:20 353.4117647058823
(signed word) atan2_16::yi#8 yi zp[2]:20 1001.0
(word*()) bsearch16u((word) bsearch16u::key , (word*) bsearch16u::items , (byte) bsearch16u::num)
(byte~) bsearch16u::$16 reg byte a 2002.0
(word*~) bsearch16u::$2 zp[2]:9 4.0
(byte~) bsearch16u::$6 reg byte a 2002.0
(label) bsearch16u::@1
(label) bsearch16u::@2
(label) bsearch16u::@3
(label) bsearch16u::@4
(label) bsearch16u::@5
(label) bsearch16u::@6
(label) bsearch16u::@7
(label) bsearch16u::@8
(label) bsearch16u::@9
(label) bsearch16u::@return
(word*) bsearch16u::items
(word*) bsearch16u::items#0 items zp[2]:9 1001.0
(word*) bsearch16u::items#1 items zp[2]:9 2.0
(word*) bsearch16u::items#2 items zp[2]:9 334.5555555555556
(word*) bsearch16u::items#8 items zp[2]:9 1501.5
(word) bsearch16u::key
(word) bsearch16u::key#0 key zp[2]:22 0.26666666666666666
(byte) bsearch16u::num
(byte) bsearch16u::num#0 reg byte x 2002.0
(byte) bsearch16u::num#1 reg byte x 2002.0
(byte) bsearch16u::num#3 reg byte x 556.1111111111111
(byte) bsearch16u::num#5 reg byte x 3003.0
(word*) bsearch16u::pivot
(word*) bsearch16u::pivot#0 pivot zp[2]:24 501.0
(signed word) bsearch16u::result
(signed word) bsearch16u::result#0 result zp[2]:26 1501.5
(word*) bsearch16u::return
(word*) bsearch16u::return#1 return zp[2]:9 2.0
(word*) bsearch16u::return#2 return zp[2]:9 6.0
(word*) bsearch16u::return#3 return zp[2]:9 4.0
(word*) bsearch16u::return#6 return zp[2]:9 4.0
(byte*) heap_head
(byte*) heap_head#1 heap_head zp[2]:15 0.6000000000000001
(byte*) heap_head#12 heap_head zp[2]:15 6.0
(void()) init_angle_screen((byte*) init_angle_screen::screen)
(word~) init_angle_screen::$11 zp[2]:24 202.0
(byte~) init_angle_screen::$13 reg byte a 202.0
(byte~) init_angle_screen::$14 reg byte a 202.0
(byte~) init_angle_screen::$15 reg byte a 202.0
(byte~) init_angle_screen::$3 reg byte a 202.0
(byte~) init_angle_screen::$4 reg byte a 202.0
(byte~) init_angle_screen::$7 reg byte a 202.0
(label) init_angle_screen::@1
(label) init_angle_screen::@2
(label) init_angle_screen::@3
(label) init_angle_screen::@4
(label) init_angle_screen::@5
(label) init_angle_screen::@return
(byte) init_angle_screen::ang_w
(byte) init_angle_screen::ang_w#0 ang_w zp[1]:19 84.16666666666666
(word) init_angle_screen::angle_w
(word) init_angle_screen::angle_w#0 angle_w zp[2]:24 202.0
(byte*) init_angle_screen::screen
(byte*) init_angle_screen::screen#0 screen zp[2]:9 3.0
(byte*) init_angle_screen::screen_bottomline
(byte*) init_angle_screen::screen_bottomline#0 screen_bottomline zp[2]:9 4.0
(byte*) init_angle_screen::screen_bottomline#1 screen_bottomline zp[2]:9 7.333333333333333
(byte*) init_angle_screen::screen_bottomline#6 screen_bottomline zp[2]:9 9.04
(byte*) init_angle_screen::screen_topline
(byte*) init_angle_screen::screen_topline#0 screen_topline zp[2]:7 2.0
(byte*) init_angle_screen::screen_topline#1 screen_topline zp[2]:7 5.5
(byte*) init_angle_screen::screen_topline#6 screen_topline zp[2]:7 9.416666666666666
(byte) init_angle_screen::x
(byte) init_angle_screen::x#1 x zp[1]:5 101.0
(byte) init_angle_screen::x#2 x zp[1]:5 28.857142857142858
(byte) init_angle_screen::xb
(byte) init_angle_screen::xb#1 xb zp[1]:6 202.0
(byte) init_angle_screen::xb#2 xb zp[1]:6 18.363636363636363
(signed word) init_angle_screen::xw
(word) init_angle_screen::xw#0 xw zp[2]:15 33.666666666666664
(byte) init_angle_screen::y
(byte) init_angle_screen::y#1 y zp[1]:2 16.5
(byte) init_angle_screen::y#5 y zp[1]:2 4.730769230769231
(signed word) init_angle_screen::yw
(word) init_angle_screen::yw#0 yw zp[2]:17 50.5
(void()) init_dist_screen((byte*) init_dist_screen::screen)
(byte~) init_dist_screen::$14 reg byte a 202.0
(byte~) init_dist_screen::$16 reg byte a 202.0
(byte~) init_dist_screen::$5 reg byte a 22.0
(byte~) init_dist_screen::$7 reg byte a 22.0
(label) init_dist_screen::@1
(label) init_dist_screen::@10
(label) init_dist_screen::@11
(label) init_dist_screen::@12
(label) init_dist_screen::@13
(label) init_dist_screen::@14
(label) init_dist_screen::@2
(label) init_dist_screen::@3
(label) init_dist_screen::@4
(label) init_dist_screen::@5
(label) init_dist_screen::@6
(label) init_dist_screen::@7
(label) init_dist_screen::@8
(label) init_dist_screen::@9
(label) init_dist_screen::@return
(byte) init_dist_screen::d
(byte) init_dist_screen::d#0 reg byte a 126.25
(word) init_dist_screen::ds
(word) init_dist_screen::ds#0 ds zp[2]:22 202.0
(byte*) init_dist_screen::screen
(byte*) init_dist_screen::screen#0 screen zp[2]:3 1.5
(byte*) init_dist_screen::screen_bottomline
(byte*) init_dist_screen::screen_bottomline#0 screen_bottomline zp[2]:7 4.0
(byte*) init_dist_screen::screen_bottomline#1 screen_bottomline zp[2]:7 7.333333333333333
(byte*) init_dist_screen::screen_bottomline#11 screen_bottomline zp[2]:7 6.848484848484849
(byte*) init_dist_screen::screen_topline
(byte*) init_dist_screen::screen_topline#1 screen_topline zp[2]:3 5.5
(byte*) init_dist_screen::screen_topline#11 screen_topline zp[2]:3 7.0625
(byte) init_dist_screen::x
(byte) init_dist_screen::x#1 x zp[1]:5 101.0
(byte) init_dist_screen::x#2 x zp[1]:5 30.3
(byte) init_dist_screen::x2
(byte) init_dist_screen::x2#0 reg byte a 202.0
(byte) init_dist_screen::xb
(byte) init_dist_screen::xb#1 xb zp[1]:6 202.0
(byte) init_dist_screen::xb#2 xb zp[1]:6 19.238095238095237
(byte) init_dist_screen::xd
(byte) init_dist_screen::xd#0 reg byte a 303.0
(word) init_dist_screen::xds
(word) init_dist_screen::xds#0 xds zp[2]:22 202.0
(byte) init_dist_screen::y
(byte) init_dist_screen::y#1 y zp[1]:2 16.5
(byte) init_dist_screen::y#10 y zp[1]:2 0.9705882352941178
(byte) init_dist_screen::y2
(byte) init_dist_screen::y2#0 reg byte a 22.0
(byte) init_dist_screen::yd
(byte) init_dist_screen::yd#0 reg byte a 33.0
(word) init_dist_screen::yds
(word) init_dist_screen::yds#0 yds zp[2]:20 4.869565217391305
(void()) init_squares()
(byte~) init_squares::$3 reg byte a 22.0
(byte~) init_squares::$4 reg byte a 22.0
(label) init_squares::@1
(label) init_squares::@2
(label) init_squares::@3
(label) init_squares::@return
(byte) init_squares::i
(byte) init_squares::i#1 reg byte x 22.0
(byte) init_squares::i#2 reg byte x 6.285714285714286
(word) init_squares::sqr
(word) init_squares::sqr#1 sqr zp[2]:7 11.0
(word) init_squares::sqr#2 sqr zp[2]:7 5.5
(word*) init_squares::squares
(word*) init_squares::squares#0 squares zp[2]:9 4.0
(word*) init_squares::squares#1 squares zp[2]:9 4.4
(word*) init_squares::squares#2 squares zp[2]:9 11.666666666666666
(void()) main()
(label) main::@1
(label) main::@10
(label) main::@11
(label) main::@2
(label) main::@3
(label) main::@4
(label) main::@5
(label) main::@6
(label) main::@7
(label) main::@8
(label) main::@9
(label) main::@return
(byte*) main::angle
(byte*) main::angle#0 angle zp[2]:20 22.0
(byte*) main::angle#1 angle zp[2]:20 50.5
(byte*) main::angle#2 angle zp[2]:20 34.888888888888886
(byte*) main::dist
(byte*) main::dist#0 dist zp[2]:9 11.0
(byte*) main::dist#1 dist zp[2]:9 40.4
(byte*) main::dist#2 dist zp[2]:9 39.25
(word) main::dist_angle
(word) main::dist_angle#0 dist_angle zp[2]:26 101.0
(byte*) main::fill
(byte*) main::fill#1 fill zp[2]:7 101.0
(byte*) main::fill#2 fill zp[2]:7 40.4
(word) main::min_dist_angle
(word) main::min_dist_angle#2 min_dist_angle zp[2]:22 101.0
(word) main::min_dist_angle#3 min_dist_angle_1 zp[2]:26 83.0
(word) main::min_dist_angle#6 min_dist_angle zp[2]:22 202.0
(word) main::min_dist_angle#7 min_dist_angle_1 zp[2]:26 202.0
(word) main::min_dist_angle#8 min_dist_angle_1 zp[2]:26 202.0
(byte*) main::min_fill
(byte*) main::min_fill#10 min_fill zp[2]:24 202.0
(byte*) main::min_fill#2 min_fill zp[2]:24 59.285714285714285
(byte*) main::min_fill#5 min_fill zp[2]:24 50.5
(void*()) malloc((word) malloc::size)
(label) malloc::@return
(byte*) malloc::mem
(byte*) malloc::mem#0 mem zp[2]:17 0.6666666666666666
(void*) malloc::return
(word) malloc::size
(word) malloc::size#3 size zp[2]:17 2.0
(word()) sqr((byte) sqr::val)
(byte~) sqr::$0 reg byte a 4.0
(label) sqr::@return
(word) sqr::return
(word) sqr::return#0 return zp[2]:22 28.5
(word) sqr::return#2 return_1 zp[2]:20 22.0
(word) sqr::return#3 return zp[2]:22 202.0
(byte) sqr::val
(byte) sqr::val#0 reg byte a 22.0
(byte) sqr::val#1 reg byte a 202.0
(byte) sqr::val#2 reg byte a 114.0
(byte()) sqrt((word) sqrt::val)
(word~) sqrt::$1 zp[2]:9 2.0
(word~) sqrt::$3 zp[2]:9 4.0
(label) sqrt::@1
(label) sqrt::@return
(word*) sqrt::found
(word*) sqrt::found#0 found zp[2]:9 4.0
(byte) sqrt::return
(byte) sqrt::return#0 reg byte a 34.33333333333333
(byte) sqrt::return#2 reg byte a 202.0
(byte) sqrt::sq
(word) sqrt::val
(word) sqrt::val#0 val zp[2]:22 103.0

reg byte x [ atan2_16::i#2 atan2_16::i#1 ]
reg byte y [ atan2_16::shift#2 atan2_16::shift#5 atan2_16::shift#1 ]
zp[1]:2 [ init_dist_screen::y#10 init_dist_screen::y#1 init_angle_screen::y#5 init_angle_screen::y#1 ]
zp[2]:3 [ init_dist_screen::screen_topline#11 init_dist_screen::screen#0 init_dist_screen::screen_topline#1 atan2_16::xd#5 atan2_16::xd#3 atan2_16::xd#10 atan2_16::xd#1 atan2_16::xd#2 ]
reg byte a [ init_dist_screen::yd#0 init_dist_screen::$7 init_dist_screen::$5 ]
zp[1]:5 [ init_dist_screen::x#2 init_dist_screen::x#1 init_angle_screen::x#2 init_angle_screen::x#1 ]
zp[1]:6 [ init_dist_screen::xb#2 init_dist_screen::xb#1 init_angle_screen::xb#2 init_angle_screen::xb#1 ]
reg byte a [ init_dist_screen::xd#0 init_dist_screen::$16 init_dist_screen::$14 ]
reg byte x [ bsearch16u::num#5 bsearch16u::num#1 bsearch16u::num#3 bsearch16u::num#0 ]
reg byte a [ sqr::val#2 sqr::val#1 sqr::val#0 ]
reg byte x [ init_squares::i#2 init_squares::i#1 ]
zp[2]:7 [ init_squares::sqr#2 init_squares::sqr#1 init_dist_screen::screen_bottomline#11 init_dist_screen::screen_bottomline#0 init_dist_screen::screen_bottomline#1 init_angle_screen::screen_topline#6 init_angle_screen::screen_topline#0 init_angle_screen::screen_topline#1 main::fill#2 main::fill#1 ]
zp[2]:9 [ init_squares::squares#2 init_squares::squares#1 init_squares::squares#0 bsearch16u::return#1 bsearch16u::return#6 bsearch16u::return#2 bsearch16u::items#2 bsearch16u::items#1 bsearch16u::items#8 bsearch16u::$2 bsearch16u::items#0 bsearch16u::return#3 sqrt::found#0 sqrt::$3 sqrt::$1 init_angle_screen::screen_bottomline#6 init_angle_screen::screen_bottomline#0 init_angle_screen::screen_bottomline#1 init_angle_screen::screen#0 main::dist#2 main::dist#0 main::dist#1 ]
zp[2]:11 [ SCREEN_DIST#0 ]
zp[2]:13 [ SCREEN_ANGLE#0 ]
reg byte a [ init_angle_screen::$3 ]
reg byte a [ init_angle_screen::$4 ]
zp[2]:15 [ init_angle_screen::xw#0 atan2_16::x#0 heap_head#12 heap_head#1 ]
reg byte a [ init_angle_screen::$7 ]
zp[2]:17 [ init_angle_screen::yw#0 atan2_16::y#0 malloc::size#3 malloc::mem#0 SQUARES#1 ]
zp[1]:19 [ init_angle_screen::ang_w#0 ]
reg byte a [ init_angle_screen::$13 ]
reg byte a [ init_angle_screen::$14 ]
reg byte a [ init_angle_screen::$15 ]
reg byte a [ atan2_16::$23 ]
reg byte a [ atan2_16::$22 ]
reg byte a [ init_dist_screen::y2#0 ]
zp[2]:20 [ sqr::return#2 init_dist_screen::yds#0 atan2_16::yi#3 atan2_16::yi#8 atan2_16::yi#0 atan2_16::yi#16 atan2_16::$2 atan2_16::yi#1 atan2_16::yi#2 main::angle#2 main::angle#0 main::angle#1 ]
reg byte a [ init_dist_screen::x2#0 ]
zp[2]:22 [ sqr::return#3 init_dist_screen::xds#0 sqr::return#0 init_dist_screen::ds#0 sqrt::val#0 bsearch16u::key#0 atan2_16::xi#3 atan2_16::xi#8 atan2_16::xi#0 atan2_16::xi#13 atan2_16::$7 atan2_16::xi#1 atan2_16::xi#2 main::min_dist_angle#2 main::min_dist_angle#6 ]
reg byte a [ sqrt::return#2 ]
reg byte a [ init_dist_screen::d#0 ]
reg byte a [ sqrt::return#0 ]
reg byte a [ bsearch16u::$6 ]
reg byte a [ bsearch16u::$16 ]
zp[2]:24 [ bsearch16u::pivot#0 atan2_16::angle#6 atan2_16::angle#12 atan2_16::angle#13 atan2_16::angle#2 atan2_16::angle#3 atan2_16::return#0 atan2_16::angle#5 atan2_16::angle#11 atan2_16::angle#1 atan2_16::angle#4 atan2_16::return#2 init_angle_screen::angle_w#0 init_angle_screen::$11 main::min_fill#5 main::min_fill#2 main::min_fill#10 ]
zp[2]:26 [ bsearch16u::result#0 atan2_16::yd#5 atan2_16::yd#3 atan2_16::yd#10 atan2_16::yd#1 atan2_16::yd#2 main::min_dist_angle#3 main::min_dist_angle#7 main::min_dist_angle#8 main::dist_angle#0 ]
reg byte a [ sqr::$0 ]
reg byte a [ init_squares::$3 ]
reg byte a [ init_squares::$4 ]
