//
// sub_10046ADC0 from 0x10046adc0 to 0x10046adfc (60 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_10046ADC0(__int64 a1, _BYTE *a2)
{
__int64 v3; // x9
__int64 v5; // x10
v3 = *(unsigned int *)(a1 + 16);
if ( (unsigned int)v3 >= *(_DWORD *)(a1 + 20) )
{
*(_BYTE *)(a1 + 36) = 1;
return 16;
}
else
{
v5 = *(_QWORD *)(a1 + 8);
*(_DWORD *)(a1 + 16) = v3 + 1;
*a2 = *(_BYTE *)(v5 + v3);
return 0;
}
}