(script 984)

(string
    string_0204 "bl"
    string_0207 "fl"
    string_020a "ol"
    string_020d ""
)

(said
)

(local
)


// EXPORTED procedure #0 (SortedAdd)
(procedure proc_000c
  000c:3f 11             link 11 // (var $11)
  000e:39 61            pushi 61 // $61 add
  0010:76               push0 
  0011:39 17            pushi 17 // $17 name
  0013:78               push1 
  0014:74 01f0          lofss $0207 // fl
  0017:39 56            pushi 56 // $56 new
  0019:76               push0 
  001a:51 04            class EventHandler 
  001c:4a 04             send 4 

  001e:a5 0a              sat temp10 
  0020:4a 0a             send a 

  0022:39 61            pushi 61 // $61 add
  0024:76               push0 
  0025:39 17            pushi 17 // $17 name
  0027:78               push1 
  0028:74 01df          lofss $020a // ol
  002b:39 56            pushi 56 // $56 new
  002d:76               push0 
  002e:51 04            class EventHandler 
  0030:4a 04             send 4 

  0032:a5 0d              sat temp13 
  0034:4a 0a             send a 

  0036:39 61            pushi 61 // $61 add
  0038:76               push0 
  0039:39 17            pushi 17 // $17 name
  003b:78               push1 
  003c:74 01c5          lofss $0204 // bl
  003f:39 56            pushi 56 // $56 new
  0041:76               push0 
  0042:51 04            class EventHandler 
  0044:4a 04             send 4 

  0046:a5 10              sat temp16 
  0048:4a 0a             send a 

  004a:39 61            pushi 61 // $61 add
  004c:39 03            pushi 3 // $3 y
  004e:8d 0a              lst temp10 
  0050:8d 0d              lst temp13 
  0052:8d 10              lst temp16 
  0054:87 02              lap param2 
  0056:a5 01              sat temp1 
  0058:4a 0a             send a 

  005a:e7 00              -ap paramTotal 

        code_005c
  005c:35 01              ldi 1 
  005e:30 019e            bnt code_01ff 
  0061:35 00              ldi 0 
  0063:a5 0e              sat temp14 
  0065:a5 0b              sat temp11 
  0067:a5 08              sat temp8 
  0069:34 7fff            ldi 7fff 
  006c:a5 0f              sat temp15 
  006e:a5 0c              sat temp12 
  0070:a5 09              sat temp9 
  0072:35 01              ldi 1 
  0074:a5 00              sat temp0 

        code_0076
  0076:8d 00              lst temp0 
  0078:87 00              lap paramTotal 
  007a:22                 lt? 
  007b:30 0145            bnt code_01c3 
  007e:85 00              lat temp0 
  0080:97 02             lapi param2 
  0082:a5 02              sat temp2 
  0084:78               push1 
  0085:39 1b            pushi 1b // $1b elements
  0087:76               push0 
  0088:85 02              lat temp2 
  008a:4a 04             send 4 

  008c:36                push 
  008d:43 35 02         callk FirstNode 2 

  0090:a5 03              sat temp3 

        code_0092
  0092:85 03              lat temp3 
  0094:30 0127            bnt code_01be 
  0097:78               push1 
  0098:78               push1 
  0099:8d 03              lst temp3 
  009b:43 3a 02         callk NodeValue 2 

  009e:a5 05              sat temp5 
  00a0:36                push 
  00a1:43 06 02         callk IsObject 2 

  00a4:30 0117            bnt code_01be 
  00a7:39 5e            pushi 5e // $5e respondsTo
  00a9:78               push1 
  00aa:39 11            pushi 11 // $11 signal
  00ac:85 05              lat temp5 
  00ae:4a 06             send 6 

  00b0:31 0e              bnt code_00c0 
  00b2:39 11            pushi 11 // $11 signal
  00b4:76               push0 
  00b5:85 05              lat temp5 
  00b7:4a 04             send 4 

  00b9:36                push 
  00ba:34 0082            ldi 82 
  00bd:12                 and 
  00be:2f 0d               bt code_00cd 

        code_00c0
  00c0:39 63            pushi 63 // $63 firstTrue
  00c2:7a               push2 
  00c3:39 65            pushi 65 // $65 contains
  00c5:8d 05              lst temp5 
  00c7:85 01              lat temp1 
  00c9:4a 08             send 8 

  00cb:31 03              bnt code_00d0 

        code_00cd
  00cd:32 00e3            jmp code_01b3 

        code_00d0
  00d0:38 00ae          pushi ae // $ae distanceTo
  00d3:78               push1 
  00d4:8d 05              lst temp5 
  00d6:87 01              lap param1 
  00d8:4a 06             send 6 

  00da:a5 04              sat temp4 
  00dc:7a               push2 
  00dd:39 3a            pushi 3a // $3a heading
  00df:76               push0 
  00e0:87 01              lap param1 
  00e2:4a 04             send 4 

  00e4:36                push 
  00e5:39 04            pushi 4 // $4 x
  00e7:39 04            pushi 4 // $4 x
  00e9:76               push0 
  00ea:87 01              lap param1 
  00ec:4a 04             send 4 

  00ee:36                push 
  00ef:39 03            pushi 3 // $3 y
  00f1:76               push0 
  00f2:87 01              lap param1 
  00f4:4a 04             send 4 

  00f6:36                push 
  00f7:39 04            pushi 4 // $4 x
  00f9:76               push0 
  00fa:85 05              lat temp5 
  00fc:4a 04             send 4 

  00fe:36                push 
  00ff:39 03            pushi 3 // $3 y
  0101:76               push0 
  0102:85 05              lat temp5 
  0104:4a 04             send 4 

  0106:36                push 
  0107:43 43 08         callk GetAngle 8 

  010a:36                push 
  010b:46 03d6 0002 04  calle 3d6 procedure_0002 4 // AngleDiff 

  0111:a5 06              sat temp6 
  0113:7a               push2 
  0114:8d 06              lst temp6 
  0116:39 5a            pushi 5a // $5a showSelf
  0118:46 03e7 0001 04  calle 3e7 procedure_0001 4 // umod 

  011e:36                push 
  011f:35 00              ldi 0 
  0121:1a                 eq? 
  0122:31 02              bnt code_0126 
  0124:e5 06              -at temp6 

        code_0126
  0126:7a               push2 
  0127:8d 05              lst temp5 
  0129:8f 01              lsp param1 
  012b:46 03d6 0001 04  calle 3d6 procedure_0001 4 // CantBeSeen 

  0131:a5 07              sat temp7 
  0133:31 0c              bnt code_0141 
  0135:7a               push2 
  0136:8d 06              lst temp6 
  0138:8d 04              lst temp4 
  013a:43 6e 04         callk TimesTan 4 

  013d:a5 04              sat temp4 
  013f:33 26              jmp code_0167 

        code_0141
  0141:78               push1 
  0142:8d 06              lst temp6 
  0144:43 41 02         callk Abs 2 

  0147:36                push 
  0148:35 5a              ldi 5a 
  014a:1e                 gt? 
  014b:31 0b              bnt code_0158 
  014d:35 59              ldi 59 
  014f:a5 06              sat temp6 
  0151:8d 04              lst temp4 
  0153:35 0a              ldi a 
  0155:06                 mul 
  0156:a5 04              sat temp4 

        code_0158
  0158:78               push1 
  0159:7a               push2 
  015a:8d 06              lst temp6 
  015c:8d 04              lst temp4 
  015e:43 6f 04         callk TimesCot 4 

  0161:36                push 
  0162:43 41 02         callk Abs 2 

  0165:a5 04              sat temp4 

        code_0167
  0167:8d 04              lst temp4 
  0169:35 00              ldi 0 
  016b:22                 lt? 
  016c:31 05              bnt code_0173 
  016e:34 7fff            ldi 7fff 
  0171:a5 04              sat temp4 

        code_0173
  0173:85 07              lat temp7 
  0175:31 11              bnt code_0188 
  0177:8d 04              lst temp4 
  0179:85 0f              lat temp15 
  017b:24                 le? 
  017c:31 08              bnt code_0186 
  017e:85 04              lat temp4 
  0180:a5 0f              sat temp15 
  0182:85 05              lat temp5 
  0184:a5 0e              sat temp14 

        code_0186
  0186:33 2b              jmp code_01b3 

        code_0188
  0188:78               push1 
  0189:8d 05              lst temp5 
  018b:46 03d6 0000 02  calle 3d6 procedure_0000 2 // IsOffScreen 

  0191:31 11              bnt code_01a4 
  0193:8d 04              lst temp4 
  0195:85 0c              lat temp12 
  0197:24                 le? 
  0198:31 08              bnt code_01a2 
  019a:85 04              lat temp4 
  019c:a5 0c              sat temp12 
  019e:85 05              lat temp5 
  01a0:a5 0b              sat temp11 

        code_01a2
  01a2:33 0f              jmp code_01b3 

        code_01a4
  01a4:8d 04              lst temp4 
  01a6:85 09              lat temp9 
  01a8:24                 le? 
  01a9:31 08              bnt code_01b3 
  01ab:85 04              lat temp4 
  01ad:a5 09              sat temp9 
  01af:85 05              lat temp5 
  01b1:a5 08              sat temp8 

        code_01b3
  01b3:78               push1 
  01b4:8d 03              lst temp3 
  01b6:43 38 02         callk NextNode 2 

  01b9:a5 03              sat temp3 
  01bb:32 fed4            jmp code_0092 

        code_01be
  01be:c5 00              +at temp0 
  01c0:32 feb3            jmp code_0076 

        code_01c3
  01c3:85 08              lat temp8 
  01c5:31 09              bnt code_01d0 
  01c7:39 6c            pushi 6c // $6c addToEnd
  01c9:78               push1 
  01ca:8d 08              lst temp8 
  01cc:85 0a              lat temp10 
  01ce:4a 06             send 6 


        code_01d0
  01d0:85 0b              lat temp11 
  01d2:31 09              bnt code_01dd 
  01d4:39 6c            pushi 6c // $6c addToEnd
  01d6:78               push1 
  01d7:8d 0b              lst temp11 
  01d9:85 0d              lat temp13 
  01db:4a 06             send 6 


        code_01dd
  01dd:85 0e              lat temp14 
  01df:31 09              bnt code_01ea 
  01e1:39 6c            pushi 6c // $6c addToEnd
  01e3:78               push1 
  01e4:8d 0e              lst temp14 
  01e6:85 10              lat temp16 
  01e8:4a 06             send 6 


        code_01ea
  01ea:85 08              lat temp8 
  01ec:2f 0c               bt code_01fa 
  01ee:85 0b              lat temp11 
  01f0:2f 08               bt code_01fa 
  01f2:85 0e              lat temp14 
  01f4:2f 04               bt code_01fa 
  01f6:33 07              jmp code_01ff 
  01f8:31 02              bnt code_01fc 

        code_01fa
  01fa:35 01              ldi 1 

        code_01fc
  01fc:32 fe5d            jmp code_005c 

        code_01ff
  01ff:48                 ret 
)


