//
// sub_14007D4B0 from 0x14007d4b0 to 0x14007d5ab (251 bytes)
//
// 3 xrefs:
// > sub_140080404 @ 0x14008040b
// > ??> @ 0x14053acf0
// > ??> @ 0x1406c6894
//
// 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
char *__fastcall sub_14007D4B0(char *Block, char a2)
{
char *v4; // rbx
GJAccountManager *v5; // rax
*(_QWORD *)Block = &AccountHelpLayer::`vftable';
*((_QWORD *)Block + 40) = &AccountHelpLayer::`vftable';
*((_QWORD *)Block + 41) = &AccountHelpLayer::`vftable';
*((_QWORD *)Block + 42) = &AccountHelpLayer::`vftable';
*((_QWORD *)Block + 43) = &AccountHelpLayer::`vftable';
*((_QWORD *)Block + 44) = &AccountHelpLayer::`vftable';
*((_QWORD *)Block + 51) = &AccountHelpLayer::`vftable';
*((_QWORD *)Block + 54) = &AccountHelpLayer::`vftable';
v4 = Block + 608;
*((_QWORD *)Block + 76) = &AccountHelpLayer::`vftable';
*((_QWORD *)Block + 77) = &AccountHelpLayer::`vftable';
v5 = GJAccountManager::sharedState();
if ( !Block )
v4 = nullptr;
if ( (char *)v5->m_accountDelegate == v4 )
GJAccountManager::sharedState()->m_accountDelegate = nullptr;
GJDropDownLayer::dGJDropDownLayer(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}