//
// sub_1002702E0 from 0x1002702e0 to 0x1002703c6 (230 bytes)
//
// 1 xrefs:
// > ??> @ 0x100af9188
//
// 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:37 +0000
//
__int64 __fastcall sub_1002702E0(_QWORD *a1, double a2)
{
__int64 v3; // rdi
*(a1 - 40) = off_100AF8C20;
*a1 = off_100AF9188;
a1[1] = &off_100AF91F8;
a1[2] = off_100AF9210;
a1[3] = off_100AF9230;
a1[4] = off_100AF9258;
a1[11] = off_100AF9288;
a1[14] = off_100AF9308;
a1[28] = off_100AF9328;
a1[43] = &off_100AF9370;
a1[44] = off_100AF9388;
if ( *(_QWORD **)(GameLevelManager::sharedState(a2) + 1360) != a1 + 44 )
{
v3 = a1[47];
if ( !v3 )
return sub_1004936F0(a1 - 40);
goto LABEL_5;
}
*(_QWORD *)(GameLevelManager::sharedState(a2) + 1360) = 0;
v3 = a1[47];
if ( v3 )
LABEL_5:
cocos2d::CCObject::release(v3);
return sub_1004936F0(a1 - 40);
}