//
// AccountLayer::layerHidden from 0x140094b60 to 0x140094cd3 (371 bytes)
//
// 2 xrefs:
// > ??> @ 0x140719110
// > ??> @ 0x140912c14
//
// 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 11:26:02 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall AccountLayer::layerHidden(_BYTE *a1)
{
_QWORD *v2; // rbx
__int64 v3; // r8
__int64 v4; // rax
void (__fastcall *v5)(_QWORD *, _QWORD); // r8
__int64 result; // rax
__int64 v7; // rdx
if ( *((_DWORD *)a1 + 178) == 1 )
{
v2 = operator new(0x298u);
GJDropDownLayer::GJDropDownLayer((__int64)v2);
*v2 = &AccountHelpLayer::`vftable';
v2[40] = &AccountHelpLayer::`vftable';
v2[41] = &AccountHelpLayer::`vftable';
v2[42] = &AccountHelpLayer::`vftable';
v2[43] = &AccountHelpLayer::`vftable';
v2[44] = &AccountHelpLayer::`vftable';
v2[51] = &AccountHelpLayer::`vftable';
v2[54] = &AccountHelpLayer::`vftable';
v2[76] = &AccountHelpLayer::`vftable';
v2[77] = &AccountHelpLayer::`vftable';
*((_BYTE *)v2 + 656) = 0;
if ( (unsigned __int8)GJDropDownLayer::init(v2, "Account Help", v3, 0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);
v2 = nullptr;
}
v4 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 504LL))(a1);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v4 + 456LL))(v4, v2, 100);
v5 = *(void (__fastcall **)(_QWORD *, _QWORD))(*v2 + 1080LL);
if ( (char *)v5 == (char *)GJDropDownLayer::showLayer )
GJDropDownLayer::showLayer(v2, 0);
else
v5(v2, 0);
}
result = (*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 336LL))(a1, 0);
if ( a1[584] )
{
LOBYTE(v7) = 1;
return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v7);
}
return result;
}