//
// sub_100295100 from 0x100295100 to 0x100295215 (277 bytes)
//
// 4 xrefs:
// > sub_100295220 @ 0x100295225
// > sub_100295230 @ 0x10029523c
// > sub_100295250 @ 0x100295259
// > sub_100295270 @ 0x100295283
//
// 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:27:50 +0000
//
__int64 __fastcall sub_100295100(__int64 a1, double a2)
{
*(_QWORD *)a1 = off_100B02568;
*(_QWORD *)(a1 + 320) = off_100B02AF0;
*(_QWORD *)(a1 + 328) = &off_100B02B60;
*(_QWORD *)(a1 + 336) = off_100B02B78;
*(_QWORD *)(a1 + 344) = off_100B02B98;
*(_QWORD *)(a1 + 352) = off_100B02BC0;
*(_QWORD *)(a1 + 408) = off_100B02BF0;
*(_QWORD *)(a1 + 432) = off_100B02C70;
*(_QWORD *)(a1 + 544) = off_100B02C90;
*(_QWORD *)(a1 + 664) = off_100B02CD8;
*(_QWORD *)(a1 + 672) = &off_100B02CF8;
*(_QWORD *)(a1 + 680) = &off_100B02D10;
if ( *(_QWORD *)(GameLevelManager::sharedState(a2) + 1400) != a1 + 664 )
{
if ( (*(_BYTE *)(a1 + 744) & 1) == 0 )
goto LABEL_4;
goto LABEL_3;
}
*(_QWORD *)(GameLevelManager::sharedState(a2) + 1400) = 0;
if ( (*(_BYTE *)(a1 + 744) & 1) != 0 )
LABEL_3:
operator delete(*(void **)(a1 + 760));
LABEL_4:
if ( (*(_BYTE *)(a1 + 720) & 1) != 0 )
operator delete(*(void **)(a1 + 736));
return sub_1004936F0(a1);
}