//
// sub_1002FAE40 from 0x1002fae40 to 0x1002faef9 (185 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b17f70
//
// 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:30 +0000
//
__int64 __fastcall sub_1002FAE40(_QWORD *a1, double a2)
{
*(a1 - 40) = off_100B17A08;
*a1 = off_100B17F70;
a1[1] = &off_100B17FE0;
a1[2] = off_100B17FF8;
a1[3] = off_100B18018;
a1[4] = off_100B18040;
a1[11] = off_100B18070;
a1[14] = off_100B180F0;
a1[28] = off_100B18110;
a1[43] = off_100B18158;
if ( *(_QWORD **)(GameLevelManager::sharedState(a2) + 1456) == a1 + 43 )
*(_QWORD *)(GameLevelManager::sharedState(a2) + 1456) = 0;
return sub_1004936F0(a1 - 40);
}