//
// sub_18009B970 from 0x18009b970 to 0x18009b99d (45 bytes)
//
// 1 xrefs:
// > sub_1800FC980 @ 0x1800fcd75
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:53:50 +0000
//
__int64 __fastcall sub_18009B970(__int64 a1, unsigned __int64 a2, unsigned __int64 a3, char a4)
{
if ( a2 && a3 && a3 < a2 )
return 31;
*(_QWORD *)(a1 + 24) = a2;
*(_QWORD *)(a1 + 32) = a3;
*(_BYTE *)(a1 + 49) = 0;
if ( a4 )
*(_BYTE *)(a1 + 48) = 1;
return 0;
}