//
// SongOptionsLayer::onClose from 0x45e1e8 to 0x45e29a (178 bytes)
//
// 1 xrefs:
// > SongOptionsLayer::keyBackClicked @ 0x45e2a2
//
// 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 SongOptionsLayer::onClose(SongOptionsLayer *a1, cocos2d::CCObject *a2)
{
float m_songOffset; // s16
LevelSettingsObject *v4; // r7
float v5; // s15
char *v6; // [sp+0h] [bp-Ch] BYREF
a1->m_offsetInput->onClickTrackNode(a1->m_offsetInput, 0);
m_songOffset = a1->m_delegate->getLevelSettings(a1->m_delegate)->m_songOffset;
v4 = a1->m_delegate->getLevelSettings(a1->m_delegate);
CCTextInputNode::getString((CCTextInputNode *)&v6, (int)a1->m_offsetInput);
v5 = atof(v6);
v4->m_songOffset = v5;
sub_774008(&v6);
if ( m_songOffset != a1->m_delegate->getLevelSettings(a1->m_delegate)->m_songOffset )
a1->m_delegate->getLevelSettings(a1->m_delegate)->m_guidelinesUpdated = 1;
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}