//
// LevelSelectLayer::updatePageWithObject from 0x514cb4 to 0x514d1c (104 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelSelectLayer::updatePageWithObject @ 0x514d20
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:36 +0000
//
int __fastcall LevelSelectLayer::updatePageWithObject(
LevelSelectLayer *this,
cocos2d::CCNode **a2,
cocos2d::CCObject *a3)
{
int result; // r0
float v7; // s16
result = LevelPage::updateDynamicPage((int)a2, a3);
if ( !*((_BYTE *)this + 348) )
{
v7 = (float)*((int *)this + 86);
result = getPageCount();
if ( v7 > (float)((float)result * 2.5) && *((_DWORD *)a3 + 67) - *((_DWORD *)a3 + 68) == -1 )
{
*((_BYTE *)this + 348) = 1;
return LevelPage::addSecretCoin(a2);
}
}
return result;
}