//
// LevelAreaLayer::onEnterTower from 0x1402c57e0 to 0x1402c5890 (176 bytes)
//
// 2 xrefs:
// > LevelAreaLayer::fadeInsideTower @ 0x1402c5799
// > ??> @ 0x1406d2b28
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
bool LevelAreaLayer::onEnterTower(LevelAreaLayer *a1)
{
int v1; // ecx
struct cocos2d::CCScene *v2; // rbx
__int64 v3; // rcx
cocos2d::CCDirector *v4; // rax
_QWORD v6[5]; // [rsp+20h] [rbp-28h] BYREF
FMODAudioEngine *v7; // [rsp+60h] [rbp+18h]
v6[1] = 26471;
v6[2] = 10;
v6[3] = 15;
v6[0] = 0x6F2E3130726F6F64LL;
v1 = qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v7 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v1 = qword_1406C2E88;
}
FMODAudioEngine::playEffect_1(v1, (__int64)v6);
v2 = LevelAreaInnerLayer::scene(0);
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3);
return cocos2d::CCDirector::replaceScene(v4, v2);
}