Refactor unpackclass's Bzip2 decompressor

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 4 years ago
parent 6a0976193d
commit 887ce06302
  1. 439
      share/deob/map/unpackclass.yaml

@ -6,7 +6,7 @@ classes:
unpackclass!e: "Buffer" unpackclass!e: "Buffer"
unpackclass!f: "Class202" unpackclass!f: "Class202"
unpackclass!g: "Class203" unpackclass!g: "Class203"
unpackclass!h: "Class204" unpackclass!h: "Bzip2DState"
unpackclass!i: "Class205" unpackclass!i: "Class205"
unpackclass!j: "Class206" unpackclass!j: "Class206"
unpackclass!k: "Class207" unpackclass!k: "Class207"
@ -17,7 +17,7 @@ classes:
unpackclass!q: "TracingException" unpackclass!q: "TracingException"
unpackclass!r: "Class211" unpackclass!r: "Class211"
unpackclass!s: "Class201_Sub2" unpackclass!s: "Class201_Sub2"
unpackclass!u: "Class212" unpackclass!u: "Bzip2Decompressor"
unpackclass!unpackclass: "unpackclass" unpackclass!unpackclass: "unpackclass"
unpackclass!w: "Node" unpackclass!w: "Node"
fields: fields:
@ -124,104 +124,104 @@ fields:
owner: "Class203" owner: "Class203"
name: "aClass206Array1" name: "aClass206Array1"
unpackclass!h.A [B: unpackclass!h.A [B:
owner: "Class204" owner: "Bzip2DState"
name: "aByteArray83" name: "selectorMtf"
unpackclass!h.B [[B: unpackclass!h.B [[B:
owner: "Class204" owner: "Bzip2DState"
name: "aByteArrayArray58" name: "len"
unpackclass!h.C [[I: unpackclass!h.C [[I:
owner: "Class204" owner: "Bzip2DState"
name: "anIntArrayArray53" name: "limit"
unpackclass!h.D [[I: unpackclass!h.D [[I:
owner: "Class204" owner: "Bzip2DState"
name: "anIntArrayArray54" name: "base"
unpackclass!h.E [[I: unpackclass!h.E [[I:
owner: "Class204" owner: "Bzip2DState"
name: "anIntArrayArray55" name: "perm"
unpackclass!h.F [I: unpackclass!h.F [I:
owner: "Class204" owner: "Bzip2DState"
name: "anIntArray694" name: "minLens"
unpackclass!h.G I: unpackclass!h.G I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6135" name: "saveNblock"
unpackclass!h.a [B: unpackclass!h.a [B:
owner: "Class204" owner: "Bzip2DState"
name: "aByteArray78" name: "strmNextIn"
unpackclass!h.b I: unpackclass!h.b I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6121" name: "strmNextInPtr"
unpackclass!h.c I: unpackclass!h.c I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6122" name: "strmTotalInLo32"
unpackclass!h.d [B: unpackclass!h.d [B:
owner: "Class204" owner: "Bzip2DState"
name: "aByteArray79" name: "strmNextOut"
unpackclass!h.e I: unpackclass!h.e I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6123" name: "strmNextOutPtr"
unpackclass!h.f I: unpackclass!h.f I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6124" name: "strmAvailOut"
unpackclass!h.g I: unpackclass!h.g I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6125" name: "strmTotalOutLo32"
unpackclass!h.h B: unpackclass!h.h B:
owner: "Class204" owner: "Bzip2DState"
name: "aByte28" name: "stateOutCh"
unpackclass!h.i I: unpackclass!h.i I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6126" name: "stateOutLen"
unpackclass!h.j I: unpackclass!h.j I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6127" name: "bsBuff"
unpackclass!h.k I: unpackclass!h.k I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6128" name: "bsLive"
unpackclass!h.l I: unpackclass!h.l I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6129" name: "blockSize100k"
unpackclass!h.m I: unpackclass!h.m I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6130" name: "origPtr"
unpackclass!h.n I: unpackclass!h.n I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6131" name: "tPos"
unpackclass!h.o I: unpackclass!h.o I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6132" name: "k0"
unpackclass!h.p [I: unpackclass!h.p [I:
owner: "Class204" owner: "Bzip2DState"
name: "anIntArray690" name: "unfztab"
unpackclass!h.q I: unpackclass!h.q I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6133" name: "nblockUsed"
unpackclass!h.r [I: unpackclass!h.r [I:
owner: "Class204" owner: "Bzip2DState"
name: "anIntArray691" name: "cftab"
unpackclass!h.s [I: unpackclass!h.s [I:
owner: "Class204" owner: "Bzip2DState"
name: "anIntArray692" name: "tt"
unpackclass!h.t I: unpackclass!h.t I:
owner: "Class204" owner: "Bzip2DState"
name: "anInt6134" name: "nInUse"
unpackclass!h.u [Z: unpackclass!h.u [Z:
owner: "Class204" owner: "Bzip2DState"
name: "aBooleanArray26" name: "inUse"
unpackclass!h.v [Z: unpackclass!h.v [Z:
owner: "Class204" owner: "Bzip2DState"
name: "aBooleanArray27" name: "inUse16"
unpackclass!h.w [B: unpackclass!h.w [B:
owner: "Class204" owner: "Bzip2DState"
name: "aByteArray80" name: "seqToUnseq"
unpackclass!h.x [B: unpackclass!h.x [B:
owner: "Class204" owner: "Bzip2DState"
name: "aByteArray81" name: "mtfa"
unpackclass!h.y [I: unpackclass!h.y [I:
owner: "Class204" owner: "Bzip2DState"
name: "anIntArray693" name: "mtfbase"
unpackclass!h.z [B: unpackclass!h.z [B:
owner: "Class204" owner: "Bzip2DState"
name: "aByteArray82" name: "selector"
unpackclass!i.a [I: unpackclass!i.a [I:
owner: "Class205" owner: "Class205"
name: "anIntArray695" name: "anIntArray695"
@ -292,8 +292,8 @@ fields:
owner: "Class201_Sub2" owner: "Class201_Sub2"
name: "anInt6149" name: "anInt6149"
unpackclass!u.a Lunpackclass!h;: unpackclass!u.a Lunpackclass!h;:
owner: "Class212" owner: "Bzip2Decompressor"
name: "aClass204_1" name: "state"
unpackclass!unpackclass.A [Lunpackclass!s;: unpackclass!unpackclass.A [Lunpackclass!s;:
owner: "unpackclass" owner: "unpackclass"
name: "aClass201_Sub2Array11" name: "aClass201_Sub2Array11"
@ -816,181 +816,176 @@ methods:
locals: locals:
5: "ex" 5: "ex"
unpackclass!u.a (ILunpackclass!h;)I: unpackclass!u.a (ILunpackclass!h;)I:
owner: "Class212" owner: "Bzip2Decompressor"
name: "method4945" name: "getBits"
arguments: arguments:
0: "arg0" 0: "nnn"
1: "arg1" 1: "state"
locals: locals:
17: "local17" 17: "vvv"
unpackclass!u.a (Lunpackclass!h;)V: unpackclass!u.a (Lunpackclass!h;)V:
owner: "Class212" owner: "Bzip2Decompressor"
name: "method4941" name: "unRleObufToOutputFast"
arguments: arguments:
0: "arg0" 0: "state"
locals: locals:
2: "local2" 2: "cStateOutCh"
5: "local5" 5: "cStateOutLen"
8: "local8" 8: "cNblockUsed"
11: "local11" 11: "cK0"
13: "local13" 13: "cTt"
16: "local16" 16: "cTPos"
19: "local19" 19: "csNextOut"
22: "local22" 22: "csNextOutPtr"
25: "local25" 25: "csAvailOut"
27: "local27" 27: "csAvailOutOld"
32: "local32" 32: "sSaveNblockPp"
60: "local60" 60: "gotoReturnNotr"
76: "local76" 76: "cTPos2"
81: "local81" 81: "k1"
130: "local130" 130: "cTPos2"
135: "local135" 135: "k1"
155: "local155" 155: "cTPos3"
160: "local160" 160: "k12"
178: "local178" 178: "cTPos4"
183: "local183" 183: "k13"
188: "local188" 188: "cNblockUsed2"
212: "local212" 212: "totalOutLo32Old"
unpackclass!u.a ([BI[BII)I: unpackclass!u.a ([BI[BII)I:
owner: "Class212" owner: "Bzip2Decompressor"
name: "method4940" name: "bunzip2"
arguments: arguments:
0: "arg0" 0: "dest"
1: "arg1" 1: "destLen"
2: "arg2" 2: "src"
3: "arg3" 3: "srcLen"
locals: {} locals: {}
unpackclass!u.a ([I[I[I[BIII)V: unpackclass!u.a ([I[I[I[BIII)V:
owner: "Class212" owner: "Bzip2Decompressor"
name: "method4947" name: "hbCreateDecodeTables"
arguments: arguments:
0: "arg0" 0: "limit"
1: "arg1" 1: "base"
2: "arg2" 2: "perm"
3: "arg3" 3: "length"
4: "arg4" 4: "minLen"
5: "arg5" 5: "maxLen"
6: "arg6" 6: "alphaSize"
locals: locals:
1: "local1" 1: "pp"
3: "local3" 3: "i"
6: "local6" 6: "j"
27: "local27" 27: "i"
38: "local38" 38: "i"
56: "local56" 56: "i"
74: "local74" 74: "i"
85: "local85" 85: "vec"
87: "local87" 87: "i"
100: "local100" 100: "vec2"
118: "local118" 118: "i"
unpackclass!u.b (Lunpackclass!h;)V: unpackclass!u.b (Lunpackclass!h;)V:
owner: "Class212" owner: "Bzip2Decompressor"
name: "method4942" name: "decompress"
arguments: arguments:
0: "arg0" 0: "state"
locals: locals:
56: "local56" 56: "gotoBzXBlkhdr1"
60: "local60" 60: "uc"
67: "local67" 67: "uc2"
138: "local138" 138: "i"
142: "local142" 142: "uc3"
162: "local162" 162: "i"
174: "local174" 174: "i"
182: "local182" 182: "j"
186: "local186" 186: "uc3"
213: "local213" 213: "alphaSize"
217: "local217" 217: "nGroups"
221: "local221" 221: "nSelectors"
223: "local223" 223: "i"
226: "local226" 226: "j"
229: "local229" 229: "uc3"
246: "local246" 246: "pos"
248: "local248" 248: "v"
263: "local263" 263: "i"
269: "local269" 269: "v2"
273: "local273" 273: "tmp"
304: "local304" 304: "t"
309: "local309" 309: "curr"
311: "local311" 311: "i"
315: "local315" 315: "uc3"
320: "local320" 320: "uc4"
344: "local344" 344: "t"
347: "local347" 347: "minLen"
349: "local349" 349: "maxLen"
351: "local351" 351: "i"
420: "local420" 420: "eob"
422: "local422" 422: "groupNo"
426: "local426" 426: "i"
438: "local438" 438: "kk"
440: "local440" 440: "ii"
443: "local443" 443: "jj"
470: "local470" 470: "nblock"
473: "local473" 473: "groupNo2"
475: "local475" 475: "groupPos"
480: "local480" 480: "gSel"
485: "local485" 485: "gMinlen"
490: "local490" 490: "gLimit"
495: "local495" 495: "gPerm"
500: "local500" 500: "gBase"
501: "local501" 501: "groupPos2"
503: "local503" 503: "zn"
507: "local507" 507: "zvec"
516: "local516" 516: "zj"
531: "local531" 531: "nextSym"
541: "local541" 541: "es"
543: "local543" 543: "n"
573: "local573" 573: "gSel2"
596: "local596" 596: "zn2"
600: "local600" 600: "zvec2"
609: "local609" 609: "zj2"
630: "local630" 630: "es2"
643: "local643" 643: "uc3"
645: "local645" 645: "unfztab"
669: "local669" 669: "nn"
677: "local677" 677: "pp"
684: "local684" 684: "uc3"
689: "local689" 689: "z"
767: "local767" 767: "lno"
771: "local771" 771: "off"
778: "local778" 778: "pp2"
806: "local806" 864: "kk2"
815: "local815" 866: "ii"
846: "local846" 869: "jj"
864: "local864" 934: "gSel2"
866: "local866" 957: "zn2"
869: "local869" 961: "zvec2"
909: "local909" 970: "zj2"
934: "local934" 999: "i"
957: "local957" 1016: "i"
961: "local961" 1019: "cftab"
970: "local970" 1036: "i"
999: "local999" 1044: "uc3"
1016: "local1016" 1045: "tt"
1019: "local1019" 1051: "cftab"
1036: "local1036"
1044: "local1044"
1045: "local1045"
1051: "local1051"
1065: "local1065"
unpackclass!u.c (Lunpackclass!h;)B: unpackclass!u.c (Lunpackclass!h;)B:
owner: "Class212" owner: "Bzip2Decompressor"
name: "method4943" name: "getUchar"
arguments: arguments:
0: "arg0" 0: "state"
locals: {} locals: {}
unpackclass!u.d (Lunpackclass!h;)B: unpackclass!u.d (Lunpackclass!h;)B:
owner: "Class212" owner: "Bzip2Decompressor"
name: "method4944" name: "getBit"
arguments: arguments:
0: "arg0" 0: "state"
locals: {} locals: {}
unpackclass!u.e (Lunpackclass!h;)V: unpackclass!u.e (Lunpackclass!h;)V:
owner: "Class212" owner: "Bzip2Decompressor"
name: "method4946" name: "makeMapsD"
arguments: arguments:
0: "arg0" 0: "state"
locals: locals:
4: "local4" 4: "i"
unpackclass!unpackclass.<init> ([BZ)V: unpackclass!unpackclass.<init> ([BZ)V:
owner: "unpackclass" owner: "unpackclass"
name: "<init>" name: "<init>"

Loading…
Cancel
Save