//
// LevelAreaLayer::onEnterTower from 0x1403dead0 to 0x1403deb83 (179 bytes)
//
// 2 xrefs:
// > LevelAreaLayer::fadeInsideTower @ 0x1403dea94
// > ??> @ 0x140924d7c
//
// 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 11:31:40 +0000
//
// Hidden C++ exception states: #wind=2
bool LevelAreaLayer::onEnterTower()
{
int v0; // ecx
__int64 v1; // rdx
__int64 v2; // r8
struct cocos2d::CCScene *v3; // rbx
__int64 v4; // rcx
cocos2d::CCDirector *v5; // rax
_QWORD v7[5]; // [rsp+20h] [rbp-28h] BYREF
void *v8; // [rsp+60h] [rbp+18h]
v7[1] = 26471;
v7[2] = 10;
v7[3] = 15;
v7[0] = 0x6F2E3130726F6F64LL;
v0 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v8 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v0 = qword_14090BF60;
}
FMODAudioEngine::playEffect_1(v0, (__int64)v7);
v3 = (struct cocos2d::CCScene *)LevelAreaInnerLayer::scene(0, v1, v2);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
return cocos2d::CCDirector::replaceScene(v5, v3);
}