//
// LevelAreaLayer::onEnterTower from 0x100265ea0 to 0x100265f06 (102 bytes)
//
// 1 xrefs:
// > LevelAreaLayer::fadeInsideTower @ 0x100265e5d
//
// 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 LevelAreaLayer::onEnterTower(double a1)
{
void *v1; // rdi
__int64 v2; // rbx
__int64 v3; // rax
char v5; // [rsp+0h] [rbp-20h] BYREF
char v6[15]; // [rsp+1h] [rbp-1Fh] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v5 = 20;
strcpy(v6, "door01.ogg");
v1 = (void *)FMODAudioEngine::sharedEngine(a1);
FMODAudioEngine::playEffect_1(v1, &v5);
if ( (v5 & 1) != 0 )
{
v1 = __p;
operator delete(__p);
}
v2 = cocos2d::CCDirector::sharedDirector(v1, &v5);
v3 = LevelAreaInnerLayer::scene(0);
return cocos2d::CCDirector::replaceScene(v2, v3);
}