//
// EditorSoundBrowserLayer::onNextPage from 0xccad5c to 0xccadd8 (124 bytes)
//
// 3 xrefs:
// > ??> @ 0x4b2f8
// > EditorSoundBrowserLayer::init @ 0xcc9f20
// > ??> @ 0x1541808
//
// 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 13:06:23 +0000
//
__int64 __fastcall EditorSoundBrowserLayer::onNextPage(EditorSoundBrowserLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCArray *v3; // x0
__int64 result; // x0
if ( *((_DWORD *)this + 262) <= 1u )
{
result = (unsigned int)(*((_DWORD *)this + 263) + 1);
if ( *((_DWORD *)this + 278) > 10 * (int)result )
goto LABEL_5;
}
else
{
v3 = *((cocos2d::CCArray **)this + 138);
if ( !v3 || (result = cocos2d::CCArray::count(v3), (int)result > 9) )
{
LODWORD(result) = *((_DWORD *)this + 263) + 1;
LABEL_5:
*((_DWORD *)this + 263) = result;
return EditorSoundBrowserLayer::loadCurrentPage(this, 0, 0);
}
}
return result;
}