Refactor the client's bzip2 decompressor

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 4 years ago
parent 01a3bc020d
commit c819e85574
  1. 451
      share/deob/map/client.yaml

@ -121,7 +121,7 @@ classes:
client!kb: "Class102_Sub1" client!kb: "Class102_Sub1"
client!kc: "Class103" client!kc: "Class103"
client!ke: "Class4_Sub3_Sub5_Sub2" client!ke: "Class4_Sub3_Sub5_Sub2"
client!kf: "Class104" client!kf: "Bzip2DState"
client!kg: "Class105" client!kg: "Class105"
client!kh: "Class4_Sub3_Sub4_Sub2" client!kh: "Class4_Sub3_Sub4_Sub2"
client!ki: "DirectByteArray" client!ki: "DirectByteArray"
@ -939,8 +939,8 @@ fields:
owner: "Static1" owner: "Static1"
name: "aLong20" name: "aLong20"
client!bm.a Lclient!kf;: client!bm.a Lclient!kf;:
owner: "Static1" owner: "Bzip2Decompressor"
name: "aClass104_1" name: "state"
client!bn.B I: client!bn.B I:
owner: "Static1" owner: "Static1"
name: "anInt402" name: "anInt402"
@ -4725,44 +4725,44 @@ fields:
owner: "Class4_Sub3_Sub5_Sub2" owner: "Class4_Sub3_Sub5_Sub2"
name: "aByteArrayArray18" name: "aByteArrayArray18"
client!kf.A I: client!kf.A I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2846" name: "strmAvailOut"
client!kf.B I: client!kf.B I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2847" name: "strmNextInPtr"
client!kf.D B: client!kf.D B:
owner: "Class104" owner: "Bzip2DState"
name: "aByte4" name: "stateOutCh"
client!kf.E [[I: client!kf.E [[I:
owner: "Class104" owner: "Bzip2DState"
name: "anIntArrayArray22" name: "limit"
client!kf.F [[I: client!kf.F [[I:
owner: "Class104" owner: "Bzip2DState"
name: "anIntArrayArray23" name: "perm"
client!kf.G [I: client!kf.G [I:
owner: "Class104" owner: "Bzip2DState"
name: "anIntArray255" name: "unfztab"
client!kf.H I: client!kf.H I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2848" name: "nblockused"
client!kf.I [B: client!kf.I [B:
owner: "Class104" owner: "Bzip2DState"
name: "aByteArray27" name: "seqToUnseq"
client!kf.J [B: client!kf.J [B:
owner: "Class104" owner: "Bzip2DState"
name: "aByteArray28" name: "selector"
client!kf.K Ljava/lang/String;: client!kf.K Ljava/lang/String;:
owner: "LocalisedText" owner: "LocalisedText"
name: "CHATEFFECT3" name: "CHATEFFECT3"
client!kf.M I: client!kf.M I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2850" name: "saveNblock"
client!kf.N I: client!kf.N I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2851" name: "strmNextOutPtr"
client!kf.O I: client!kf.O I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2852" name: "bsLive"
client!kf.P I: client!kf.P I:
owner: "Static4" owner: "Static4"
name: "anInt2853" name: "anInt2853"
@ -4770,53 +4770,53 @@ fields:
owner: "Static4" owner: "Static4"
name: "anInt2832" name: "anInt2832"
client!kf.b [B: client!kf.b [B:
owner: "Class104" owner: "Bzip2DState"
name: "aByteArray23" name: "strmNextIn"
client!kf.c I: client!kf.c I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2833" name: "strmTotalOutLo32"
client!kf.d [B: client!kf.d [B:
owner: "Class104" owner: "Bzip2DState"
name: "aByteArray24" name: "selectorMtf"
client!kf.e I: client!kf.e I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2834" name: "bsBuff"
client!kf.f [I: client!kf.f [I:
owner: "Class104" owner: "Bzip2DState"
name: "anIntArray252" name: "mtfbase"
client!kf.g [B: client!kf.g [B:
owner: "Class104" owner: "Bzip2DState"
name: "aByteArray25" name: "mfta"
client!kf.h [I: client!kf.h [I:
owner: "Class104" owner: "Bzip2DState"
name: "anIntArray253" name: "cftab"
client!kf.j [Z: client!kf.j [Z:
owner: "Class104" owner: "Bzip2DState"
name: "aBooleanArray14" name: "inUse16"
client!kf.k I: client!kf.k I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2836" name: "origPtr"
client!kf.l [Z: client!kf.l [Z:
owner: "Class104" owner: "Bzip2DState"
name: "aBooleanArray15" name: "inUse"
client!kf.m [[B: client!kf.m [[B:
owner: "Class104" owner: "Bzip2DState"
name: "aByteArrayArray19" name: "len"
client!kf.n I: client!kf.n I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2837" name: "stateOutLen"
client!kf.o [I: client!kf.o [I:
owner: "Class104" owner: "Bzip2DState"
name: "anIntArray254" name: "minLens"
client!kf.p I: client!kf.p I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2838" name: "tPos"
client!kf.r I: client!kf.r I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2840" name: "blockSize100k"
client!kf.s I: client!kf.s I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2841" name: "k0"
client!kf.t I: client!kf.t I:
owner: "Static4" owner: "Static4"
name: "anInt2842" name: "anInt2842"
@ -4824,17 +4824,17 @@ fields:
owner: "Static4" owner: "Static4"
name: "aClass40_12" name: "aClass40_12"
client!kf.v I: client!kf.v I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2843" name: "nInUse"
client!kf.w [B: client!kf.w [B:
owner: "Class104" owner: "Bzip2DState"
name: "aByteArray26" name: "strmNextOut"
client!kf.x [[I: client!kf.x [[I:
owner: "Class104" owner: "Bzip2DState"
name: "anIntArrayArray21" name: "base"
client!kf.z I: client!kf.z I:
owner: "Class104" owner: "Bzip2DState"
name: "anInt2845" name: "strmTotalInLo32"
client!kg.a Lclient!vn;: client!kg.a Lclient!vn;:
owner: "Class105" owner: "Class105"
name: "aClass4_Sub3_Sub14_Sub1_5" name: "aClass4_Sub3_Sub14_Sub1_5"
@ -4956,8 +4956,8 @@ fields:
owner: "Static4" owner: "Static4"
name: "aClass26_28" name: "aClass26_28"
client!km.cb [I: client!km.cb [I:
owner: "Static4" owner: "Bzip2DState"
name: "anIntArray265" name: "tt"
client!km.db I: client!km.db I:
owner: "Static4" owner: "Static4"
name: "anInt2959" name: "anInt2959"
@ -13730,182 +13730,177 @@ methods:
locals: locals:
15: "local15" 15: "local15"
client!bm.a (ILclient!kf;)I: client!bm.a (ILclient!kf;)I:
owner: "Static10" owner: "Bzip2Decompressor"
name: "method350" name: "getBits"
arguments: arguments:
0: "arg0" 0: "nn"
1: "arg1" 1: "state"
locals: locals:
17: "local17" 17: "vvv"
client!bm.a (Lclient!kf;)V: client!bm.a (Lclient!kf;)V:
owner: "Static10" owner: "Bzip2Decompressor"
name: "method348" name: "makeMapsD"
arguments: arguments:
0: "arg0" 0: "state"
locals: locals:
4: "local4" 4: "i"
client!bm.a ([BI[BII)I: client!bm.a ([BI[BII)I:
owner: "Static10" owner: "Bzip2Decompressor"
name: "method351" name: "bunzip2"
arguments: arguments:
0: "arg0" 0: "dest"
1: "arg1" 1: "destLen"
2: "arg2" 2: "src"
3: "arg3" 3: "srcLen"
locals: {} locals: {}
client!bm.a ([I[I[I[BIII)V: client!bm.a ([I[I[I[BIII)V:
owner: "Static10" owner: "Bzip2Decompressor"
name: "method356" 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"
8: "local8" 8: "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"
102: "local102" 102: "vec2"
118: "local118" 118: "i"
client!bm.b (Lclient!kf;)B: client!bm.b (Lclient!kf;)B:
owner: "Static10" owner: "Bzip2Decompressor"
name: "method349" name: "getUchar"
arguments: arguments:
0: "arg0" 0: "state"
locals: {} locals: {}
client!bm.c (Lclient!kf;)B: client!bm.c (Lclient!kf;)B:
owner: "Static10" owner: "Bzip2Decompressor"
name: "method352" name: "getBit"
arguments: arguments:
0: "arg0" 0: "state"
locals: {} locals: {}
client!bm.d (Lclient!kf;)V: client!bm.d (Lclient!kf;)V:
owner: "Static10" owner: "Bzip2Decompressor"
name: "method354" name: "decompress"
arguments: arguments:
0: "arg0" 0: "state"
locals: locals:
56: "local56" 56: "gotoBzXBlkhdr1"
61: "local61" 61: "uc"
68: "local68" 68: "uc2"
103: "local103" 103: "uc3"
141: "local141" 141: "i"
147: "local147" 147: "uc4"
165: "local165" 165: "i"
177: "local177" 177: "i"
187: "local187" 187: "j"
193: "local193" 193: "uc4"
216: "local216" 216: "alphaSize"
220: "local220" 220: "nGroups"
224: "local224" 224: "nSelectors"
226: "local226" 226: "i"
231: "local231" 231: "j"
234: "local234" 234: "uc4"
250: "local250" 250: "pos"
252: "local252" 252: "v"
267: "local267" 267: "i"
275: "local275" 275: "v2"
279: "local279" 279: "tmp"
308: "local308" 308: "t"
315: "local315" 315: "curr"
317: "local317" 317: "i"
323: "local323" 323: "uc4"
329: "local329" 329: "uc5"
349: "local349" 349: "t"
354: "local354" 354: "minLen"
356: "local356" 356: "maxLen"
358: "local358" 358: "i"
425: "local425" 425: "eob"
427: "local427" 427: "groupNo"
431: "local431" 431: "i"
443: "local443" 443: "kk"
445: "local445" 445: "ii"
449: "local449" 449: "jj"
475: "local475" 475: "nblock"
478: "local478" 478: "groupNo2"
480: "local480" 480: "groupPos"
485: "local485" 485: "gSel"
490: "local490" 490: "gMinlen"
495: "local495" 495: "gLimit"
500: "local500" 500: "gPerm"
505: "local505" 505: "gBase"
506: "local506" 506: "groupPos2"
508: "local508" 508: "zn"
512: "local512" 512: "zvec"
522: "local522" 522: "zj"
537: "local537" 537: "nextSym"
548: "local548" 548: "es"
550: "local550" 550: "n"
582: "local582" 582: "gSel2"
605: "local605" 605: "zn2"
609: "local609" 609: "zvec2"
619: "local619" 619: "zj2"
640: "local640" 640: "es2"
653: "local653" 653: "uc4"
655: "local655" 655: "unfztab"
678: "local678" 678: "nn"
686: "local686" 686: "pp"
693: "local693" 693: "uc4"
700: "local700" 700: "z"
776: "local776" 776: "lno"
780: "local780" 780: "off"
787: "local787" 787: "pp2"
815: "local815" 873: "kk2"
825: "local825" 875: "ii"
855: "local855" 879: "jj"
873: "local873" 943: "gSel2"
875: "local875" 966: "zn2"
879: "local879" 970: "zvec2"
918: "local918" 980: "zj2"
943: "local943" 1009: "i"
966: "local966" 1026: "i"
970: "local970" 1031: "cftab"
980: "local980" 1046: "i"
1009: "local1009" 1056: "uc4"
1026: "local1026" 1057: "tt"
1031: "local1031" 1063: "cftab"
1046: "local1046"
1056: "local1056"
1057: "local1057"
1063: "local1063"
1077: "local1077"
client!bm.e (Lclient!kf;)V: client!bm.e (Lclient!kf;)V:
owner: "Static10" owner: "Bzip2Decompressor"
name: "method355" 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"
62: "local62" 62: "gotoReturnNotr"
79: "local79" 79: "cTPos2"
84: "local84" 84: "k1"
131: "local131" 131: "cTPos2"
136: "local136" 136: "k1"
157: "local157" 157: "cTPos3"
162: "local162" 162: "k12"
181: "local181" 181: "cTPos4"
186: "local186" 186: "k13"
191: "local191" 191: "cNblockUsed2"
215: "local215" 215: "totalOutLo32Old"
client!bn.<init> (Lclient!ld;)V: client!bn.<init> (Lclient!ld;)V:
owner: "Class4_Sub6_Sub1" owner: "Class4_Sub6_Sub1"
name: "<init>" name: "<init>"

Loading…
Cancel
Save