//
// SecretLayer5::finishLoadingState from 0x14058ae90 to 0x14058aea5 (21 bytes)
//
// 1 xrefs:
// > SecretLayer5::onSubmit @ 0x14058cba0
//
// 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:34:29 +0000
//
__int64 __fastcall SecretLayer5::finishLoadingState(__int64 a1)
{
bool v1; // zf
__int64 result; // rax
v1 = *(_DWORD *)(a1 + 516) == 0;
*(_BYTE *)(a1 + 512) = 0;
if ( !v1 )
return SecretLayer5::handleSecretResponse();
return result;
}