//
// LevelAreaInnerLayer::onDoor from 0x10027ab60 to 0x10027ac71 (273 bytes)
//
// 1 xrefs:
// > LevelAreaInnerLayer::init @ 0x10027a0f4
//
// 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
//
void __fastcall LevelAreaInnerLayer::onDoor(LevelAreaInnerLayer *a1, cocos2d::CCObject *a2)
{
FMODAudioEngine *v2; // rax
cocos2d::CCLayerColor *v3; // r14
cocos2d::CCFadeIn *v4; // rax
FMODAudioEngine *v5; // rax
unsigned int v6; // eax
int v7; // ecx
int v8; // r8d
int v9; // r9d
cocos2d::CCAction *v10; // rax
void *v11[3]; // [rsp+0h] [rbp-30h] BYREF
cocos2d::ccColor4B v12; // [rsp+1Ch] [rbp-14h] BYREF
if ( !a1->m_enteringLevel )
{
a1->m_enteringLevel = 1;
a1->m_levelID = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v2 = FMODAudioEngine::sharedEngine();
strcpy((char *)v11, " playSound_01.ogg");
FMODAudioEngine::playEffect(v2, v11, 1.0, 0.0, 0.30000001);
if ( ((__int64)v11[0] & 1) != 0 )
operator delete(v11[2]);
v12 = 0;
v3 = cocos2d::CCLayerColor::create_1(&v12);
((void (__fastcall *)(LevelAreaInnerLayer *, cocos2d::CCLayerColor *, __int64))a1->addChild_0)(a1, v3, 90);
v4 = cocos2d::CCFadeIn::create(0.5);
cocos2d::CCNode::runAction(v3, v4);
v5 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::fadeOutMusic(v5, 0.5, 0);
LODWORD(v3) = (unsigned int)cocos2d::CCDelayTime::create(0.5);
v6 = (unsigned int)cocos2d::CCCallFunc::create(
a1,
(cocos2d::SEL_CallFunc)(unsigned __int64)LevelAreaInnerLayer::playStep1);
v10 = (cocos2d::CCAction *)sub_1003B5760((_DWORD)v3, v6, 0, v7, v8, v9);
cocos2d::CCNode::runAction(a1, v10);
}
}