//
// GJSongBrowser::setupPageInfo from 0x6e7590 to 0x6e7658 (200 bytes)
//
// 2 xrefs:
// > GJSongBrowser::loadPage @ 0x6e7744
// > ??> @ 0xab550
//
// 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:51:44 +0000
//
__int64 __fastcall GJSongBrowser::setupPageInfo(GJSongBrowser *this, unsigned int a2, int a3, int a4)
{
__int64 v7; // x2
unsigned int v8; // w19
__int64 v9; // x2
cocos2d::CCString *v10; // x0
__int64 CString; // x0
(*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 81) + 344LL))(*((_QWORD *)this + 81), a3 != 0);
v7 = *((_QWORD *)this + 80);
v8 = a3 + a4;
if ( a3 + a4 >= (int)a2 )
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v7 + 344LL))(*((_QWORD *)this + 80), 0);
else
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v7 + 344LL))(*((_QWORD *)this + 80), 1);
if ( (int)v8 > (int)a2 )
v9 = a2;
else
v9 = v8;
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i to %i of %i",
(const char *)(unsigned int)(a3 + 1),
v9,
a2);
CString = cocos2d::CCString::getCString(v10);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 82) + 928LL))(
*((_QWORD *)this + 82),
CString);
}