//
// LevelAreaInnerLayer::onDoor from 0x100267160 to 0x100267271 (273 bytes)
//
// 1 xrefs:
// > LevelAreaInnerLayer::init @ 0x1002666f4
//
// 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 12:27:34 +0000
//
void __fastcall LevelAreaInnerLayer::onDoor(__int64 a1, __int64 a2)
{
double v2; // xmm0_8
int v3; // eax
__int64 v4; // rax
__int64 v5; // r14
__int64 v6; // rax
__int64 v7; // rax
int v8; // eax
int v9; // ecx
int v10; // r8d
int v11; // r9d
__int64 v12; // rax
void *v13[3]; // [rsp+0h] [rbp-30h] BYREF
_DWORD v14[5]; // [rsp+1Ch] [rbp-14h] BYREF
if ( !*(_BYTE *)(a1 + 424) )
{
*(_BYTE *)(a1 + 424) = 1;
v2 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
*(_DWORD *)(a1 + 428) = v3;
v4 = FMODAudioEngine::sharedEngine(v2);
strcpy((char *)v13, " playSound_01.ogg");
FMODAudioEngine::playEffect(v4, v13, 1.0, 0.0, 0.30000001);
if ( ((__int64)v13[0] & 1) != 0 )
operator delete(v13[2]);
v14[0] = 0;
v5 = cocos2d::CCLayerColor::create_1(v14);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, 90);
v6 = cocos2d::CCFadeIn::create(0.5);
cocos2d::CCNode::runAction(v5, v6);
v7 = FMODAudioEngine::sharedEngine(COERCE_DOUBLE(1056964608));
FMODAudioEngine::fadeOutMusic(v7, 0, 0.5);
LODWORD(v5) = cocos2d::CCDelayTime::create(0.5);
v8 = cocos2d::CCCallFunc::create(a1, LevelAreaInnerLayer::playStep1, 0);
v12 = sub_10039EB60(v5, v8, 0, v9, v10, v11);
cocos2d::CCNode::runAction(a1, v12);
}
}