//
// sub_1002660F0 from 0x1002660f0 to 0x10026615d (109 bytes)
//
// 1 xrefs:
// > ??> @ 0x100af6188
//
// 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:33 +0000
//
__int64 __fastcall sub_1002660F0(__int64 a1)
{
__int64 v1; // rcx
__int64 v3; // rdi
__int64 v4; // rdx
double v5; // xmm0_8
__int64 v6; // rax
__int64 v7; // rdi
__int64 v8; // rbx
__int64 v9; // rax
char *v10; // rax
__int64 result; // rax
if ( !*(_BYTE *)(a1 + 96) )
{
v1 = *(_QWORD *)(a1 - 336);
v3 = a1 - 336;
(*(void (__fastcall **)(__int64, _QWORD))(v1 + 1072))(v3, 0);
*(_QWORD *)&v5 = GameManager::sharedState(v3, 0, v4).u64[0];
v7 = v6;
GameManager::fadeInMenuMusic(v6, v5);
*(_BYTE *)(a1 + 97) = 1;
v8 = cocos2d::CCDirector::sharedDirector(v7, 0);
v9 = LevelSelectLayer::scene(22);
v10 = cocos2d::CCTransitionFade::create_1(v9, 0.5);
return cocos2d::CCDirector::replaceScene(v8, v10);
}
return result;
}