//
// WHIRLPOOL_Update from 0x8c2fa4 to 0x8c3018 (116 bytes)
//
// 3 xrefs:
// > sub_8B7E40 @ 0x8b7e5c
// > WHIRLPOOL @ 0x8c3224
// > ??> @ 0x6b11c
//
// 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 WHIRLPOOL_Update(char *a1, unsigned __int8 *a2, unsigned int a3)
{
unsigned int v3; // r7
unsigned __int8 *v5; // r8
unsigned __int8 *v6; // r5
unsigned int i; // r4
v3 = a3;
v5 = a2;
if ( a3 > 0xFFFFFFF )
{
v6 = a2;
for ( i = a3; i > 0xFFFFFFF; i -= 0x10000000 )
{
WHIRLPOOL_BitUpdate(a1, v6, 0x80000000);
v6 += 0x10000000;
}
v5 += ((v3 - 0x10000000) & 0xF0000000) + 0x10000000;
a3 = v3 & 0xFFFFFFF;
}
if ( a3 )
WHIRLPOOL_BitUpdate(a1, v5, 8 * a3);
return 1;
}