// // sub_82AE8 from 0x82ae8 to 0x82b6a (130 bytes) // // 3 xrefs: // > @ 0x82ae6 // > sub_83348 @ 0x83488 // > sub_83348 @ 0x83538 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_82AE8(int a1) { int v2; // r1 int v3; // r5 int v4; // r2 unsigned int v5; // r0 unsigned int v6; // r0 char v7; // r0 v2 = *(unsigned __int8 *)(a1 + 230); v3 = *(_DWORD *)(a1 + 4); v4 = *(_BYTE *)(a1 + 262) & 3; v5 = 255; switch ( v4 ) { case 0: v5 = byte_E8004[v2 & 0x1F]; break; case 1: v5 = (8 * v2) ^ ((unsigned int)(char)v2 >> 7); goto LABEL_5; case 2: break; case 3: LOBYTE(v5) = sub_4F410((int *)(*(_DWORD *)a1 + 2460)); LOBYTE(v2) = *(_BYTE *)(a1 + 230); LABEL_5: v5 = (unsigned __int8)v5; break; } v6 = ((v5 * *(unsigned __int8 *)(a1 + 232)) >> 5) & 0xFFFFFFFC; if ( (char)v2 <= -1 ) v6 = -v6; *(_DWORD *)(v3 + 56) = v6; v7 = *(_BYTE *)(a1 + 231) + v2; if ( v7 > 31 ) v7 -= 64; *(_BYTE *)(a1 + 230) = v7; *(_BYTE *)(v3 + 36) |= 1u; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source