//
// sub_1002B1670 from 0x1002b1670 to 0x1002b16e8 (120 bytes)
//
// 0 xrefs:
//
// 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 12:28:01 +0000
//
__int64 __fastcall sub_1002B1670(__int64 a1, __int64 a2, __int64 a3, double a4)
{
__int64 v5; // rax
__int64 result; // rax
if ( !*(_BYTE *)(a1 + 488) )
{
*(_QWORD *)(GameLevelManager::sharedState(a4) + 1304) = a1 + 448;
v5 = GameLevelManager::sharedState(a4);
GameLevelManager::deleteServerLevel(
v5,
(unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 504) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 332LL)),
a2,
a3);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 648) + 344LL))(*(_QWORD *)(a1 + 648), 1);
}
return result;
}