//
// GJDropDownLayer::hideLayer from 0x8ecdbc to 0x8ecec0 (260 bytes)
//
// 15 xrefs:
// > ??> @ 0xd76b0
// > ??> @ 0x1425878
// > ??> @ 0x142a2d8
// > ??> @ 0x145e9a8
// > ??> @ 0x145f848
// > ??> @ 0x1462be8
// > ??> @ 0x14637c8
// > ??> @ 0x1463f08
// > ??> @ 0x1464de8
// > ??> @ 0x1465cf8
// > ??> @ 0x1469a18
// > ??> @ 0x1472e98
// > ??> @ 0x1473658
// > ??> @ 0x1484c68
// > ??> @ 0x14e46f8
//
// 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 12:56:56 +0000
//
__int64 __fastcall GJDropDownLayer::hideLayer(GJDropDownLayer *this, unsigned __int8 a2)
{
int v3; // w20
void (__fastcall ***v4)(_QWORD, GJDropDownLayer *); // x0
GameManager *v5; // x0
GameManager *v6; // x0
const cocos2d::CCPoint *v7; // x1
cocos2d::CCEaseInOut *v8; // x0
cocos2d::CCActionInterval *v9; // x1
cocos2d::CCSequence *v10; // x20
cocos2d::CCFiniteTimeAction *v11; // x0
cocos2d::CCAction *v12; // x0
unsigned __int8 v13; // w1
cocos2d::CCAction *v14; // x0
v3 = a2;
if ( *((_BYTE *)this + 584) )
{
v4 = *((void (__fastcall ****)(_QWORD, GJDropDownLayer *))this + 74);
if ( v4 )
(**v4)(v4, this);
}
v5 = (GameManager *)cocos2d::CCNode::stopAllActions(*((cocos2d::CCNode **)this + 72));
v6 = (GameManager *)GameManager::sharedState(v5);
if ( (unsigned __int8)GameManager::getGameVariable(v6, "0168") || v3 )
{
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 72) + 184LL))(
*((_QWORD *)this + 72),
(char *)this + 552);
(*(void (__fastcall **)(GJDropDownLayer *, _QWORD))(*(_QWORD *)this + 1168LL))(this, 0);
return (*(__int64 (__fastcall **)(GJDropDownLayer *))(*(_QWORD *)this + 1352LL))(this);
}
else
{
v8 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveTo::create((GJDropDownLayer *)((char *)this + 552), 0.5, v7);
v10 = (cocos2d::CCSequence *)cocos2d::CCEaseInOut::create(v8, v9, 2.0);
v11 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, 1352, 1);
v12 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v10, v11, 0);
cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 72), v12);
v14 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create(nullptr, 0.5, v13);
return cocos2d::CCNode::runAction(this, v14);
}
}