//
// GJSearchObject::create_1 from 0x1000d5684 to 0x1000d5764 (224 bytes)
//
// 15 xrefs:
// > sub_100136B78 @ 0x100136bf4
// > CommentCell::onGoToLevel @ 0x1001385d8
// > GJScoreCell::onViewProfile @ 0x100138ddc
// > sub_10013A99C @ 0x10013aa18
// > sub_10022EFE8 @ 0x10022f0d0
// > sub_10022F12C @ 0x10022f214
// > sub_1003EFCB0 @ 0x1003efd04
// > LevelBrowserLayer::onMyOnlineLevels @ 0x1004974b8
// > LevelBrowserLayer::onMyOnlineLevels @ 0x100497528
// > sub_1004CD5C0 @ 0x1004cd820
// > sub_100502538 @ 0x100502650
// > sub_100505BBC @ 0x100505c20
// > sub_100505BBC @ 0x100505c90
// > sub_100549944 @ 0x1005499d0
// > sub_10054B298 @ 0x10054b318
//
// 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 10:58:56 +0000
//
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;
}