//
// GJDropDownLayer::showLayer from 0x140257360 to 0x1402574ab (331 bytes)
//
// 22 xrefs:
// > AccountLayer::layerHidden @ 0x14007f5d6
// > MenuLayer::onAchievements @ 0x14033595a
// > MenuLayer::openOptions @ 0x140335bd2
// > MenuLayer::onStats @ 0x140335d13
// > OptionsLayer::layerHidden @ 0x1403736c2
// > AccountLayer::layerHidden @ 0x14007f5c5
// > MenuLayer::onAchievements @ 0x14033593a
// > MenuLayer::openOptions @ 0x140335bbf
// > MenuLayer::onStats @ 0x140335cf8
// > OptionsLayer::layerHidden @ 0x1403736b1
// > ??> @ 0x14053ac20
// > ??> @ 0x14053b110
// > ??> @ 0x14053b6f8
// > ??> @ 0x14053c3a8
// > ??> @ 0x14056c630
// > ??> @ 0x140576e30
// > ??> @ 0x14057f9f0
// > ??> @ 0x1405c4848
// > ??> @ 0x14060d280
// > ??> @ 0x140620678
// > ??> @ 0x140621218
// > ??> @ 0x1406cfa14
//
// 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
//
// Hidden C++ exception states: #wind=1
void GJDropDownLayer::showLayer(GJDropDownLayer *a1, bool a2)
{
float v2; // xmm3_4
GameManager *v5; // rcx
struct cocos2d::CCMoveTo *v6; // rax
struct cocos2d::CCEaseInOut *v7; // rbx
__int64 v8; // rax
struct cocos2d::CCSequence *v9; // rax
cocos2d::ccColor3B *v10; // r8
struct cocos2d::CCFadeTo *v11; // rax
cocos2d::ccColor3B *v12; // r8
__int64 v13; // rdx
float v14; // [rsp+20h] [rbp-8h]
void *v15; // [rsp+30h] [rbp+8h]
float v16; // [rsp+50h] [rbp+28h]
cocos2d::CCNode::stopAllActions(a1->m_mainLayer);
a1->layerVisible(a1);
v5 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v15 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v15);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v5 = (GameManager *)qword_1406C2ED8;
}
if ( GameManager::getGameVariable(v5, "0168") || a2 )
{
a1->m_mainLayer->setPosition_0(a1->m_mainLayer, &a1->m_endPosition);
LOBYTE(v13) = 125;
a1->setOpacity(&a1->cocos2d::CCRGBAProtocol, v13);
a1->enterAnimFinished(a1);
}
else
{
v6 = cocos2d::CCMoveTo::create(0.5, &a1->m_endPosition);
v7 = cocos2d::CCEaseInOut::create(v6, 2.0);
v8 = cocos2d::CCCallFunc::create(a1, sub_1401377B4);
v9 = cocos2d::CCSequence::create(v7, v8, 0);
cocos2d::CCNode::runAction((CCLightFlash *)a1->m_mainLayer, (cocos2d::CCPoint)v9, v10, v2, v14);
a1->setOpacity(&a1->cocos2d::CCRGBAProtocol, 0);
v11 = cocos2d::CCFadeTo::create(0.5, 0x7Du);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v11, v12, v2, v16);
}
}