//
// sub_D10978 from 0xd10978 to 0xd10a10 (152 bytes)
//
// 2 xrefs:
// > sub_D10C8C @ 0xd10ccc
// > sub_D10E98 @ 0xd1105c
//
// 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_D10978(__int64 a1, __int64 a2)
{
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 200) + 48LL))(*(_QWORD *)(a1 + 200)) )
return (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 24)) >> 2;
else
return (unsigned int)*(_QWORD *)(a1 + 208)
+ (*(unsigned int (__fastcall **)(_QWORD, __int64, _QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 200) + 56LL))(
*(_QWORD *)(a1 + 200),
a2,
*(_QWORD *)(a1 + 208),
*(_QWORD *)(a1 + 224),
(__int64)(*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 2)
- (unsigned int)*(_QWORD *)(a1 + 232);
}