//
// sub_1004690C8 from 0x1004690c8 to 0x100469138 (112 bytes)
//
// 1 xrefs:
// > sub_100469008 @ 0x100469058
//
// 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
//
__int64 __fastcall sub_1004690C8(__int64 a1, __int64 a2, unsigned int a3)
{
unsigned int v3; // w8
int v6; // s8
v3 = *(_DWORD *)(a1 + 15296);
if ( v3 != a3 )
{
if ( v3 <= a3 )
goto LABEL_6;
v6 = *(_DWORD *)(a1 + 15352);
sub_10046BAA0(a1, 0);
*(_DWORD *)(a1 + 15352) = v6;
while ( 1 )
{
v3 = *(_DWORD *)(a1 + 15296);
LABEL_6:
if ( v3 >= a3 )
break;
sub_10046B968(a1, 0, 0);
}
}
return 0;
}