//
// sub_E89D24 from 0xe89d24 to 0xe89d64 (64 bytes)
//
// 9 xrefs:
// > sub_E89D64 @ 0xe89dd8
// > sub_E8A24C @ 0xe8a564
// > sub_E8A24C @ 0xe8a5ac
// > sub_E8A24C @ 0xe8a5d4
// > sub_E8A24C @ 0xe8a614
// > sub_E8A744 @ 0xe8a934
// > sub_E8AB68 @ 0xe8ad44
// > sub_E8AB68 @ 0xe8ae04
// > sub_E8AB68 @ 0xe8ae44
//
// 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
//
char *__fastcall sub_E89D24(char *result, _QWORD *a2)
{
__int64 v2; // x2
unsigned int v3; // w3
char v4; // w4
char v5; // t1
unsigned __int64 v6; // x5
v2 = 0;
v3 = 0;
do
{
v5 = *result++;
v4 = v5;
v6 = (unsigned __int64)(v5 & 0x7F) << v3;
v3 += 7;
v2 |= v6;
}
while ( v5 < 0 );
if ( v3 <= 0x3F && (v4 & 0x40) != 0 )
v2 |= -1LL << v3;
*a2 = v2;
return result;
}