//
// LevelSelectLayer::updatePageWithObject from 0x40b984 to 0x40b9ec (104 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelSelectLayer::updatePageWithObject @ 0x40b9f0
//
// 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 LevelSelectLayer::updatePageWithObject(LevelSelectLayer *a1, cocos2d::CCObject *a2, cocos2d::CCObject *a3)
{
float m_scrolls; // s16
LevelPage::updateDynamicPage((LevelPage *)a2, (GJGameLevel *)a3);
if ( !a1->m_masterDetectiveUnlocked )
{
m_scrolls = (float)a1->m_scrolls;
if ( m_scrolls > (float)((float)getPageCount() * 2.5) && a3[5].m_nLuaID - a3[5].m_nTag == -1 )
{
a1->m_masterDetectiveUnlocked = 1;
LevelPage::addSecretCoin((LevelPage *)a2);
}
}
}