//
// LevelAreaInnerLayer::onDoor from 0x1003e4a0c to 0x1003e4b1c (272 bytes)
//
// 1 xrefs:
// > LevelAreaInnerLayer::init @ 0x1003e4238
//
// 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 11:04:24 +0000
//
__int64 __fastcall LevelAreaInnerLayer::onDoor(__int64 result, __int64 a2)
{
__int64 v2; // x19
__int64 v3; // x20
_WORD *v4; // x20
float *v5; // x0
__int64 v6; // x0
float *v7; // x20
char v8; // w0
__int64 v9; // x1
__int64 v10; // x2
__int64 v11; // x3
__int64 v12; // x4
__int64 v13; // x5
__int64 v14; // x6
__int64 v15; // x7
__int64 v16; // x0
int v17; // [xsp+14h] [xbp-2Ch] BYREF
void *__p[2]; // [xsp+18h] [xbp-28h] BYREF
char v19; // [xsp+2Fh] [xbp-11h]
if ( (*(_BYTE *)(result + 424) & 1) == 0 )
{
v2 = result;
*(_BYTE *)(result + 424) = 1;
*(_DWORD *)(result + 428) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v3 = FMODAudioEngine::sharedEngine();
sub_100009900(__p, "playSound_01.ogg");
FMODAudioEngine::playEffect(v3, (__int64)__p, 1.0, 0.0, 0.3);
if ( v19 < 0 )
operator delete(__p[0]);
v17 = 0;
v4 = cocos2d::CCLayerColor::create_1((__int64)&v17);
(*(void (__fastcall **)(__int64, _WORD *, __int64))(*(_QWORD *)v2 + 464LL))(v2, v4, 90);
v5 = cocos2d::CCFadeIn::create(0.5);
cocos2d::CCNode::runAction((__int64)v4, (__int64)v5);
v6 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::fadeOutMusic(v6, 0, 0.5);
v7 = cocos2d::CCDelayTime::create(0.5);
v8 = (unsigned __int8)cocos2d::CCCallFunc::create(v2, (__int64)sub_1003E5450, 0);
v16 = sub_10021D420((__int64)v7, v9, v10, v11, v12, v13, v14, v15, v8);
return cocos2d::CCNode::runAction(v2, v16);
}
return result;
}