//
// ShareLevelSettingsLayer::onClose from 0x3b8870 to 0x3b88c8 (88 bytes)
//
// 1 xrefs:
// > ShareLevelSettingsLayer::keyBackClicked @ 0x3b88ce
//
// 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 ShareLevelSettingsLayer::onClose(ShareLevelSettingsLayer *a1, cocos2d::CCObject *a2)
{
GJGameLevel *m_level; // r5
int v4; // s15
m_level = a1->m_level;
if ( m_level->m_password.random - m_level->m_password.seed == -1 )
{
v4 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
m_level->m_password.seed = v4;
m_level->m_password.random = v4 + 1;
}
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}