//
// sub_841EC4 from 0x841ec4 to 0x841f1a (86 bytes)
//
// 1 xrefs:
// > sub_824B7C @ 0x824d42
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:02:22 +0000
//
int __fastcall sub_841EC4(_DWORD *a1, int a2, _BYTE *a3, int a4)
{
int v5; // r5
int v6; // r2
_BYTE *v8; // r0
int v9; // r3
int v10; // t1
if ( a2 )
v5 = *a1 + 34532;
else
v5 = *a1 + 34496;
if ( !sub_83ACFC("Digest", a3, 6) )
return 61;
v8 = a3 + 6;
if ( a3[6] )
{
v9 = *(unsigned __int8 *)((unsigned __int8)a3[6] + ctype_ + 1);
v6 = v9 << 28;
if ( (v9 & 8) != 0 )
{
do
{
v10 = (unsigned __int8)*++v8;
v6 = ctype_ + v10;
}
while ( v10 && (*(_BYTE *)(v6 + 1) & 8) != 0 );
}
}
return sub_850964(v8, v5, v6, a4);
}