//
// sub_10046CAE8 from 0x10046cae8 to 0x10046cb58 (112 bytes)
//
// 0 xrefs:
//
// 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_10046CAE8(
__int64 a1,
__int64 a2,
unsigned int a3,
int a4,
int a5,
int a6,
__int64 a7,
__int64 a8)
{
unsigned int v8; // w8
int v11; // s8
v8 = *(_DWORD *)(a1 + 15296);
if ( v8 != a3 )
{
if ( v8 <= a3 )
goto LABEL_6;
v11 = *(_DWORD *)(a1 + 15352);
sub_10046BAA0(a1, 0);
*(_DWORD *)(a1 + 15352) = v11;
while ( 1 )
{
v8 = *(_DWORD *)(a1 + 15296);
LABEL_6:
if ( v8 >= a3 )
break;
sub_10046B968(a1, 0, 0, a4, a5, a6, a7, a8);
}
}
return 0;
}