//
// LevelSelectLayer::updatePageWithObject from 0x8c812c to 0x8c81c8 (156 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelSelectLayer::updatePageWithObject @ 0x8c81cc
// > ??> @ 0x82ee8
// > ??> @ 0x145cd10
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:56:35 +0000
//
__int64 __fastcall LevelSelectLayer::updatePageWithObject(
LevelSelectLayer *this,
cocos2d::CCObject *a2,
cocos2d::CCObject *a3)
{
__int64 result; // x0
float v7; // s8
LevelPage::updateDynamicPage(a2, a3);
result = *((unsigned __int8 *)this + 464);
if ( !*((_BYTE *)this + 464) )
{
v7 = (float)*((int *)this + 115);
result = getPageCount();
if ( v7 > (float)((float)(int)result * 2.5) )
{
result = (unsigned int)(*((_DWORD *)a3 + 82) - *((_DWORD *)a3 + 83));
if ( (_DWORD)result == -1 )
{
*((_BYTE *)this + 464) = 1;
return LevelPage::addSecretCoin(a2);
}
}
}
return result;
}