//
// sub_1002681D0 from 0x1002681d0 to 0x100268221 (81 bytes)
//
// 1 xrefs:
// > ??> @ 0x100af6770
//
// 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:34 +0000
//
__int64 __fastcall sub_1002681D0(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rdi
__int64 v3; // rbx
__int64 v4; // rax
char *v5; // rax
__int64 result; // rax
if ( !*(_BYTE *)(a1 + 88) )
{
v1 = *(_QWORD *)(a1 - 336);
v2 = a1 - 336;
(*(void (__fastcall **)(__int64, _QWORD))(v1 + 1072))(v2, 0);
v3 = cocos2d::CCDirector::sharedDirector(v2, 0);
v4 = LevelAreaLayer::scene(v2, 0);
v5 = cocos2d::CCTransitionFade::create_1(v4, 0.5);
return cocos2d::CCDirector::replaceScene(v3, v5);
}
return result;
}