//
// WHIRLPOOL_Update from 0xad7fa4 to 0xad8018 (116 bytes)
//
// 3 xrefs:
// > sub_ACCE40 @ 0xacce5c
// > WHIRLPOOL @ 0xad8224
// > ??> @ 0x84b9c
//
// 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:09:29 +0000
//
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;
}