//
// GJSearchObject::getNextPageKey from 0x100561190 to 0x10056147c (748 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::loadPage @ 0x10048e5ec
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
const char *__fastcall GJSearchObject::getNextPageKey(GJSearchObject *a1)
{
__int128 v1; // xmm0
SearchType m_searchType; // ebx
cocos2d::CCString *v3; // rax
const char *CString; // rbx
char v6; // [rsp+0h] [rbp-130h]
__int128 v7; // [rsp+A0h] [rbp-90h] BYREF
void *longStorage; // [rsp+B0h] [rbp-80h]
__int128 v9; // [rsp+C0h] [rbp-70h] BYREF
void *v10; // [rsp+D0h] [rbp-60h]
SearchType v11; // [rsp+D8h] [rbp-58h]
GJDifficulty m_demonFilter; // [rsp+DCh] [rbp-54h]
_BOOL4 m_customSongFilter; // [rsp+E0h] [rbp-50h]
_BOOL4 m_originalFilter; // [rsp+E4h] [rbp-4Ch]
_BOOL4 m_featuredFilter; // [rsp+E8h] [rbp-48h]
_BOOL4 m_uncompletedFilter; // [rsp+ECh] [rbp-44h]
__int128 v17; // [rsp+F0h] [rbp-40h] BYREF
void *__p; // [rsp+100h] [rbp-30h]
m_searchType = a1->m_searchType;
if ( (a1->m_searchQuery.m_data.m_short.sizex2 & 1) == 0 )
{
__p = a1->m_searchQuery.m_data.m_long.longStorage;
v1 = *(_OWORD *)&a1->m_searchQuery.m_data.m_short.sizex2;
v17 = v1;
if ( (a1->m_difficulty.m_data.m_short.sizex2 & 1) != 0 )
goto LABEL_3;
LABEL_6:
longStorage = a1->m_difficulty.m_data.m_long.longStorage;
v1 = *(_OWORD *)&a1->m_difficulty.m_data.m_short.sizex2;
v7 = v1;
if ( (a1->m_length.m_data.m_short.sizex2 & 1) == 0 )
goto LABEL_4;
goto LABEL_7;
}
sub_100006B70(&v17, a1->m_searchQuery.m_data.m_long.longStorage, a1->m_searchQuery.m_data.m_long.size, *(double *)&v1);
if ( (a1->m_difficulty.m_data.m_short.sizex2 & 1) == 0 )
goto LABEL_6;
LABEL_3:
sub_100006B70(&v7, a1->m_difficulty.m_data.m_long.longStorage, a1->m_difficulty.m_data.m_long.size, *(double *)&v1);
if ( (a1->m_length.m_data.m_short.sizex2 & 1) == 0 )
{
LABEL_4:
v10 = a1->m_length.m_data.m_long.longStorage;
v9 = *(_OWORD *)&a1->m_length.m_data.m_short.sizex2;
goto LABEL_8;
}
LABEL_7:
sub_100006B70(&v9, a1->m_length.m_data.m_long.longStorage, a1->m_length.m_data.m_long.size, *(double *)&v1);
LABEL_8:
if ( m_searchType == Users )
{
v3 = (cocos2d::CCString *)sub_1007AB580("%i_%s_%i", v6);
}
else
{
v11 = m_searchType;
m_demonFilter = a1->m_demonFilter;
m_customSongFilter = a1->m_customSongFilter;
m_originalFilter = a1->m_originalFilter;
m_featuredFilter = a1->m_featuredFilter;
m_uncompletedFilter = a1->m_uncompletedFilter;
v3 = (cocos2d::CCString *)sub_1007AB580(
"%i_%s_%s_%s_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i",
a1->m_starFilter);
}
CString = cocos2d::CCString::getCString(v3);
if ( (v9 & 1) == 0 )
{
if ( (v7 & 1) == 0 )
goto LABEL_13;
LABEL_17:
operator delete(longStorage);
if ( (v17 & 1) == 0 )
return CString;
goto LABEL_14;
}
operator delete(v10);
if ( (v7 & 1) != 0 )
goto LABEL_17;
LABEL_13:
if ( (v17 & 1) != 0 )
LABEL_14:
operator delete(__p);
return CString;
}