//
// ShareLevelSettingsLayer::onClose from 0x100283020 to 0x100283097 (119 bytes)
//
// 1 xrefs:
// > ShareLevelSettingsLayer::init @ 0x10028285c
//
// 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
//
void __fastcall ShareLevelSettingsLayer::onClose(ShareLevelSettingsLayer *a1, cocos2d::CCObject *a2)
{
GJGameLevel *m_level; // r14
float v3; // xmm0_4
m_level = a1->m_level;
if ( m_level->m_password.random - m_level->m_password.seed == -1 )
{
v3 = (float)((float)rand() * 4.6566129e-10) * 1000.0;
m_level->m_password.seed = (int)v3;
m_level->m_password.random = (int)v3 + 1;
}
((void (__fastcall *)(ShareLevelSettingsLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(ShareLevelSettingsLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}