//
// LevelAreaLayer::onClickDoor from 0x100344728 to 0x100344864 (316 bytes)
//
// 1 xrefs:
// > LevelAreaLayer::init @ 0x100343f68
//
// 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 LevelAreaLayer::onClickDoor(LevelAreaLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCScaleTo *v3; // x0
cocos2d::CCEaseExponentialIn *v4; // x0
__n128 v5; // q1
__n128 v6; // q0
cocos2d::CCMoveBy *v7; // x0
cocos2d::CCEaseExponentialIn *v8; // x0
unsigned int v9; // w20
cocos2d::CCNode *v10; // x21
cocos2d::CCFadeTo *v11; // x0
cocos2d::CCDelayTime *v12; // x20
char v13; // w0
__int64 v14; // x1
__int64 v15; // x2
__int64 v16; // x3
__int64 v17; // x4
__int64 v18; // x5
__int64 v19; // x6
__int64 v20; // x7
cocos2d::CCSequence *v21; // x0
cocos2d::CCPoint v22; // [xsp+18h] [xbp-38h] BYREF
cocos2d::SEL_CallFunc v23; // 0:x1.16
if ( !a1->m_enteringTower )
{
a1->m_enteringTower = 1;
((void (__fastcall *)(LevelAreaLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
if ( a1->m_towerSprite )
{
v3 = cocos2d::CCScaleTo::create_1(1.4, 20.0);
v4 = cocos2d::CCEaseExponentialIn::create(v3);
cocos2d::CCNode::runAction(a1->m_towerSprite, v4);
v5.n128_u32[0] = 1153548288;
v6.n128_u32[0] = 0;
sub_100022980(v6, v5, &v22);
v7 = cocos2d::CCMoveBy::create(1.4, &v22);
v8 = cocos2d::CCEaseExponentialIn::create(v7);
cocos2d::CCNode::runAction(a1->m_towerSprite, v8);
if ( (unsigned int)sub_10024A36C((__int64)a1->m_godRays) )
{
v9 = 0;
do
{
v10 = (cocos2d::CCNode *)sub_10024A388((__int64)a1->m_godRays, v9);
cocos2d::CCNode::stopAllActions(v10);
v11 = cocos2d::CCFadeTo::create(1.0, 0);
cocos2d::CCNode::runAction(v10, v11);
++v9;
}
while ( v9 < (unsigned int)sub_10024A36C((__int64)a1->m_godRays) );
}
v12 = cocos2d::CCDelayTime::create(1.1);
v23.ptr = (void (*)(void))LevelAreaLayer::fadeInsideTower;
v23.adj = 0;
v13 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v23);
v21 = sub_10018A494(v12, v14, v15, v16, v17, v18, v19, v20, v13);
cocos2d::CCNode::runAction(a1, v21);
}
}
}