//
// LevelAreaInnerLayer::onDoor from 0xb5afc8 to 0xb5b144 (380 bytes)
//
// 3 xrefs:
// > ??> @ 0xdb538
// > LevelAreaInnerLayer::init @ 0xb5cb10
// > ??> @ 0x1546940
//
// This function is hookable on this platform (idp: arm, 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 13:02:08 +0000
//
__int64 __fastcall LevelAreaInnerLayer::onDoor(LevelAreaInnerLayer *this, cocos2d::CCObject *a2)
{
FMODAudioEngine *v4; // x0
__int64 v5; // x22
cocos2d::CCNode *v6; // x21
cocos2d::CCFadeIn *v7; // x0
cocos2d::CCAction *v8; // x0
FMODAudioEngine *v9; // x0
FMODAudioEngine *v10; // x0
cocos2d::CCDelayTime *v11; // x0
cocos2d::CCSequence *v12; // x21
cocos2d::CCFiniteTimeAction *v13; // x0
cocos2d::CCAction *v14; // x0
_BYTE v15[8]; // [xsp+38h] [xbp+38h] BYREF
__int64 v16[2]; // [xsp+40h] [xbp+40h] BYREF
void *v17; // [xsp+50h] [xbp+50h]
if ( !*((_BYTE *)this + 424) )
{
*((_BYTE *)this + 424) = 1;
v4 = (FMODAudioEngine *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
*((_DWORD *)this + 107) = (_DWORD)v4;
v5 = FMODAudioEngine::sharedEngine(v4);
v16[0] = 0;
v16[1] = 0;
v17 = nullptr;
std::string::__init(v16, "playSound_01.ogg", 0x10u);
FMODAudioEngine::playEffect(v5, (char *)v16, 1.0, 0.0, 0.3);
if ( (v16[0] & 1) != 0 )
operator delete(v17);
v15[0] = 0;
v15[1] = 0;
v15[2] = 0;
v15[3] = 0;
v6 = (cocos2d::CCNode *)cocos2d::CCLayerColor::create(v15);
v7 = (cocos2d::CCFadeIn *)(*(__int64 (__fastcall **)(LevelAreaInnerLayer *, cocos2d::CCNode *, __int64))(*(_QWORD *)this + 464LL))(
this,
v6,
90);
v8 = (cocos2d::CCAction *)cocos2d::CCFadeIn::create(v7, 0.5);
v9 = (FMODAudioEngine *)cocos2d::CCNode::runAction(v6, v8);
v10 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v9);
v11 = (cocos2d::CCDelayTime *)FMODAudioEngine::fadeOutMusic(v10, 0.5, 0);
v12 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v11, 0.5);
v13 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, LevelAreaInnerLayer::playStep1, 0);
v14 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v12, v13, 0);
cocos2d::CCNode::runAction(this, v14);
}
return _stack_chk_guard;
}