//
// AccountLayer::dAccountLayer from 0x1400929e0 to 0x140092b48 (360 bytes)
//
// 3 xrefs:
// > sub_1400959AC @ 0x1400959b3
// > ??> @ 0x140718cc8
// > ??> @ 0x140912b54
//
// 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:01 +0000
//
// Hidden C++ exception states: #wind=1
char *__fastcall AccountLayer::dAccountLayer(char *Block, char a2)
{
char *v4; // rbx
char *v5; // r14
char *v6; // rsi
__int64 v7; // rax
__int64 v8; // rax
__int64 v9; // rax
*(_QWORD *)Block = &AccountLayer::`vftable';
*((_QWORD *)Block + 40) = &AccountLayer::`vftable';
*((_QWORD *)Block + 41) = &AccountLayer::`vftable';
*((_QWORD *)Block + 42) = &AccountLayer::`vftable';
*((_QWORD *)Block + 43) = &AccountLayer::`vftable';
*((_QWORD *)Block + 44) = &AccountLayer::`vftable';
*((_QWORD *)Block + 51) = &AccountLayer::`vftable';
*((_QWORD *)Block + 54) = &AccountLayer::`vftable';
v4 = Block + 608;
*((_QWORD *)Block + 76) = &AccountLayer::`vftable';
v5 = Block + 616;
*((_QWORD *)Block + 77) = &AccountLayer::`vftable';
v6 = Block + 624;
*((_QWORD *)Block + 78) = &AccountLayer::`vftable';
*((_QWORD *)Block + 79) = &AccountLayer::`vftable';
v7 = GJAccountManager::sharedState();
if ( !Block )
v4 = nullptr;
if ( *(char **)(v7 + 424) == v4 )
*(_QWORD *)(GJAccountManager::sharedState() + 424) = 0;
v8 = GJAccountManager::sharedState();
if ( !Block )
v5 = nullptr;
if ( *(char **)(v8 + 432) == v5 )
*(_QWORD *)(GJAccountManager::sharedState() + 432) = 0;
v9 = GJAccountManager::sharedState();
if ( !Block )
v6 = nullptr;
if ( *(char **)(v9 + 440) == v6 )
*(_QWORD *)(GJAccountManager::sharedState() + 440) = 0;
GJDropDownLayer::dGJDropDownLayer(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}