//
// sub_79EB4 from 0x79eb4 to 0x79efa (70 bytes)
//
// 1 xrefs:
// > sub_77980 @ 0x77984
//
// 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_79EB4(_DWORD *a1, int a2, unsigned int a3)
{
unsigned int v4; // r1
unsigned int *v5; // r6
int v7; // r8
v4 = a1[2874];
if ( v4 != a3 )
{
v5 = a1 + 2874;
if ( v4 > a3 )
{
v7 = a1[2887];
sub_79364(a1, 0);
a1[2887] = v7;
}
while ( *v5 < a3 )
sub_792FC((int)a1, 0, 0);
}
return 0;
}