Код:
ROM:8C011258 sub_8C011258:
ROM:8C011258 D6 2F mov.l r13, @-r15
ROM:8C01125A 53 6D mov r5, r13
ROM:8C01125C B6 2F mov.l r11, @-r15
ROM:8C01125E 03 EB mov #3, r11
ROM:8C011260 A6 2F mov.l r10, @-r15
ROM:8C011262 08 EA mov #8, r10
ROM:8C011264 96 2F mov.l r9, @-r15
ROM:8C011266 01 E9 mov #1, r9
ROM:8C011268 86 2F mov.l r8, @-r15
ROM:8C01126A 04 7D add #4, r13
ROM:8C01126C 50 66 mov.b @r5, r6
ROM:8C01126E 00 E1 mov #0, r1
ROM:8C011270 51 84 mov.b @(1,r5), r0
ROM:8C011272 6C 66 extu.b r6, r6
ROM:8C011274 28 46 shll16 r6
ROM:8C011276 0C 60 extu.b r0, r0
ROM:8C011278 28 40 shll16 r0
ROM:8C01127A 18 46 shll8 r6
ROM:8C01127C 0B 26 or r0, r6
ROM:8C01127E 52 84 mov.b @(2,r5), r0
ROM:8C011280 0C 60 extu.b r0, r0
ROM:8C011282 18 40 shll8 r0
ROM:8C011284 0B 26 or r0, r6
ROM:8C011286 53 84 mov.b @(3,r5), r0
ROM:8C011288 43 65 mov r4, r5
ROM:8C01128A 0C 60 extu.b r0, r0
ROM:8C01128C 0B 26 or r0, r6
ROM:8C01128E 63 68 mov r6, r8
ROM:8C011290 1E A0 bra loc_8C0112D0
ROM:8C011292 4C 38 add r4, r8
ROM:8C011294 ; ---------------------------------------------------------------------------
ROM:8C011294
ROM:8C011294 loc_8C011294: ; CODE XREF: sub_8C011258+7Aj
ROM:8C011294 FF 71 add #-1, r1
ROM:8C011296 15 41 cmp/pl r1
ROM:8C011298 02 89 bt loc_8C0112A0
ROM:8C01129A D4 67 mov.b @r13+, r7
ROM:8C01129C A3 61 mov r10, r1
ROM:8C01129E 7C 67 extu.b r7, r7
ROM:8C0112A0
ROM:8C0112A0 loc_8C0112A0: ; CODE XREF: sub_8C011258+40j
ROM:8C0112A0 73 63 mov r7, r3
ROM:8C0112A2 D4 66 mov.b @r13+, r6
ROM:8C0112A4 98 23 tst r9, r3
ROM:8C0112A6 10 8D bt/s loc_8C0112CA
ROM:8C0112A8 6C 66 extu.b r6, r6
ROM:8C0112AA 63 64 mov r6, r4
ROM:8C0112AC 21 46 shar r6
ROM:8C0112AE 21 46 shar r6
ROM:8C0112B0 53 60 mov r5, r0
ROM:8C0112B2 68 30 sub r6, r0
ROM:8C0112B4 B9 24 and r11, r4
ROM:8C0112B6 FF 70 add #-1, r0
ROM:8C0112B8 02 74 add #2, r4
ROM:8C0112BA
ROM:8C0112BA loc_8C0112BA: ; CODE XREF: sub_8C011258+6Aj
ROM:8C0112BA 04 62 mov.b @r0+, r2
ROM:8C0112BC FF 74 add #-1, r4
ROM:8C0112BE 15 44 cmp/pl r4
ROM:8C0112C0 20 25 mov.b r2, @r5
ROM:8C0112C2 FA 8D bt/s loc_8C0112BA
ROM:8C0112C4 01 75 add #1, r5
ROM:8C0112C6 02 A0 bra loc_8C0112CE
ROM:8C0112C8 09 00 nop
ROM:8C0112CA ; ---------------------------------------------------------------------------
ROM:8C0112CA
ROM:8C0112CA loc_8C0112CA: ; CODE XREF: sub_8C011258+4Ej
ROM:8C0112CA 60 25 mov.b r6, @r5
ROM:8C0112CC 01 75 add #1, r5
ROM:8C0112CE
ROM:8C0112CE loc_8C0112CE: ; CODE XREF: sub_8C011258+6Ej
ROM:8C0112CE 21 47 shar r7
ROM:8C0112D0
ROM:8C0112D0 loc_8C0112D0: ; CODE XREF: sub_8C011258+38j
ROM:8C0112D0 82 35 cmp/hs r8, r5
ROM:8C0112D2 DF 8B bf loc_8C011294
ROM:8C0112D4 F6 68 mov.l @r15+, r8
ROM:8C0112D6 F6 69 mov.l @r15+, r9
ROM:8C0112D8 F6 6A mov.l @r15+, r10
ROM:8C0112DA F6 6B mov.l @r15+, r11
ROM:8C0112DC 0B 00 rts
ROM:8C0112DE F6 6D mov.l @r15+, r13