//
// GJDropDownLayer::showLayer from 0x1006bbaf0 to 0x1006bbbeb (251 bytes)
//
// 12 xrefs:
// > ??> @ 0x100ab8e50
// > ??> @ 0x100abbec8
// > ??> @ 0x100abc680
// > ??> @ 0x100b049e0
// > ??> @ 0x100b25798
// > ??> @ 0x100b2a7c8
// > ??> @ 0x100b6b160
// > ??> @ 0x100b869e0
// > ??> @ 0x100b8ba20
// > ??> @ 0x100b90f20
// > ??> @ 0x100ba1150
// > ??> @ 0x100ba31d8
//
// 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:35:29 +0000
//
__int64 __fastcall GJDropDownLayer::showLayer(__int64 *a1, unsigned __int8 a2)
{
__int64 v2; // rax
_OWORD *v4; // rax
_OWORD *v5; // r14
__int64 v6; // rax
__int64 v7; // rax
_OWORD *v8; // rax
cocos2d::CCNode::stopAllActions(a1[72]);
(*(void (__fastcall **)(__int64 *))(*a1 + 1344))(a1);
v2 = GameManager::sharedState();
if ( (a2 | (unsigned __int8)GameManager::getGameVariable(v2, "0168")) == 1 )
{
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1[72] + 184LL))(a1[72], a1 + 68);
(*(void (__fastcall **)(__int64 *, __int64))(*a1 + 1168))(a1, 125);
return (*(__int64 (__fastcall **)(__int64 *))(*a1 + 1360))(a1);
}
else
{
v4 = cocos2d::CCMoveTo::create(a1 + 68, (__m128)0x3F000000u);
v5 = cocos2d::CCEaseInOut::create((__int64)v4, 2.0);
v6 = cocos2d::CCCallFunc::create(a1, 1361, 0);
v7 = sub_10039EB60((__int64)v5, v6, 0);
cocos2d::CCNode::runAction(a1[72], v7);
(*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1168))(a1, 0);
v8 = cocos2d::CCFadeTo::create(125, (__m128)0x3F000000u);
return cocos2d::CCNode::runAction((__int64)a1, (__int64)v8);
}
}