//
// sub_D20974 from 0xd20974 to 0xd209cc (88 bytes)
//
// 2 xrefs:
// > ??> @ 0x121ee18
// > ??> @ 0x121ef98
//
// 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
//
_BYTE *__fastcall sub_D20974(__int64 a1, _BYTE *a2, _BYTE *a3)
{
_BYTE *v3; // x19
v3 = a2;
if ( a2 < a3 )
{
do
{
*v3 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 16LL))(a1, (unsigned __int8)*v3);
++v3;
}
while ( v3 != a3 );
}
return a3;
}