//
// LevelAreaInnerLayer::onDoor from 0x56bca8 to 0x56bd96 (238 bytes)
//
// 0 xrefs:
//
// 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 LevelAreaInnerLayer::onDoor(LevelAreaInnerLayer *a1, cocos2d::CCObject *a2)
{
FMODAudioEngine *v3; // r6
cocos2d::CCLayerColor *v4; // r8
cocos2d::CCFadeIn *v5; // r0
FMODAudioEngine *v6; // r0
cocos2d::CCDelayTime *v7; // r0
cocos2d::CCSequence *v8; // r8
cocos2d::CCFiniteTimeAction *v9; // r0
cocos2d::CCAction *v10; // r0
_DWORD v11[2]; // [sp+Ch] [bp-Ch] BYREF
if ( !a1->m_enteringLevel )
{
a1->m_enteringLevel = 1;
a1->m_levelID = a2->getTag(a2);
v3 = FMODAudioEngine::sharedEngine();
sub_776584((int)v11, "playSound_01.ogg");
FMODAudioEngine::playEffect(v3, (int)v11, 1.0, 0, 1050253722);
sub_774008(v11);
v11[0] = 0;
v4 = cocos2d::CCLayerColor::create();
a1->addChild_0(a1, v4, 90);
v5 = cocos2d::CCFadeIn::create(0.5);
cocos2d::CCNode::runAction(v4, v5);
v6 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::fadeOutMusic(v6, 0.5, 0);
v7 = cocos2d::CCDelayTime::create(0.5);
v11[1] = 0;
v11[0] = LevelAreaInnerLayer::playStep1;
v8 = (cocos2d::CCSequence *)v7;
v9 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, LevelAreaInnerLayer::playStep1, 0);
v10 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v8, v9, 0);
cocos2d::CCNode::runAction(a1, v10);
}
}