//
// sub_D20E48 from 0xd20e48 to 0xd20ec4 (124 bytes)
//
// 2 xrefs:
// > ??> @ 0x121ee80
// > ??> @ 0x121ef00
//
// 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
//
unsigned int *__fastcall sub_D20E48(__int64 a1, unsigned __int8 a2, unsigned int *a3, unsigned __int64 a4)
{
unsigned int *v4; // x19
unsigned int v7; // w22
v4 = a3;
v7 = a2;
if ( (unsigned __int64)a3 < a4 )
{
while ( !(*(unsigned __int8 (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)a1 + 16LL))(a1, v7, *v4) )
{
if ( a4 <= (unsigned __int64)++v4 )
return v4;
}
}
return v4;
}