//
// MusicBrowser::onPage from 0x6be4b0 to 0x6be51c (108 bytes)
//
// 0 xrefs:
//
// 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:56:48 +0000
//
_DWORD *__fastcall MusicBrowser::onPage(_DWORD *this, cocos2d::CCObject *a2)
{
_DWORD *v2; // r5
int v3; // r3
unsigned int v5; // r0
float v6; // r0
int v7; // r4
int v8; // s15
int v9; // r3
v2 = this;
v3 = *(this + 136);
if ( v3 )
{
v5 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v3 + 56));
v6 = ceilf((float)(v5 / 0xA));
v7 = *(_DWORD *)(v2[136] + 72);
v8 = (int)v6;
this = (_DWORD *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( this == (int *)((char *)&dword_0 + 1) )
v9 = v7 + 1;
else
v9 = v7 - 1;
if ( v9 >= 0 && v9 <= v8 )
{
*(_DWORD *)(v2[136] + 72) = v9;
return MusicBrowser::setupList(v2, (MusicSearchResult *)v2[136]);
}
}
return this;
}