//
// sub_1002A3E90 from 0x1002a3e90 to 0x1002a3f23 (147 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008fa1a8
//
// 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
//
__int64 __fastcall sub_1002A3E90(__int64 a1)
{
__int64 result; // rax
GJAccountSettingsLayer *v3; // rdi
GJAccountSettingsLayer *v4; // rbx
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 336) + 1056LL))(a1 - 336, 0);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 - 336) + 512LL))(a1 - 336, 1);
if ( *(_BYTE *)(a1 + 304) == 1 )
{
v3 = *(GJAccountSettingsLayer **)(a1 + 312);
if ( v3 )
{
GJAccountSettingsLayer::updateScoreValues(v3);
v4 = *(GJAccountSettingsLayer **)(a1 + 312);
GJAccountSettingsLayer::closeAccInputNodes(v4, v4->m_inputs);
((void (__fastcall *)(GJAccountSettingsLayer *, _QWORD))v4->setKeypadEnabled)(v4, 0);
return ((__int64 (__fastcall *)(GJAccountSettingsLayer *, __int64))v4->removeFromParentAndCleanup)(v4, 1);
}
}
return result;
}