//
// GJSearchObject::create_1 from 0x1000b05b0 to 0x1000b0690 (224 bytes)
//
// 8 xrefs:
// > MapPackCell::onClick @ 0x10010f3f8
// > CommentCell::onGoToLevel @ 0x100110b3c
// > GJScoreCell::onViewProfile @ 0x100111168
// > ProfilePage::onMyLevels @ 0x10019b320
// > ProfilePage::onMyLists @ 0x10019b464
// > InfoLayer::onOriginal @ 0x1003516b4
// > LevelBrowserLayer::onMyOnlineLevels @ 0x10041626c
// > LevelBrowserLayer::onMyOnlineLevels @ 0x1004162dc
//
// 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
//
char *__fastcall GJSearchObject::create_1(__int64 a1, __int128 *a2)
{
char *v3; // x19
void *__p[2]; // [xsp+20h] [xbp-60h] BYREF
char v6; // [xsp+37h] [xbp-49h]
void *v7[2]; // [xsp+38h] [xbp-48h] BYREF
char v8; // [xsp+4Fh] [xbp-31h]
__int128 __dst; // [xsp+50h] [xbp-30h] BYREF
__int64 v10; // [xsp+60h] [xbp-20h]
if ( *((char *)a2 + 23) < 0 )
{
sub_1000097D0(&__dst, *(void **)a2, *((_QWORD *)a2 + 1));
}
else
{
__dst = *a2;
v10 = *((_QWORD *)a2 + 2);
}
sub_100009900(v7, "-");
sub_100009900(__p, "-");
v3 = GJSearchObject::create(a1, (__int64)&__dst, (__int64)v7, (__int64)__p, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
if ( v6 < 0 )
operator delete(__p[0]);
if ( v8 < 0 )
operator delete(v7[0]);
if ( SHIBYTE(v10) < 0 )
operator delete((void *)__dst);
return v3;
}