//
// GJSearchObject::create_1 from 0x10058d810 to 0x10058d913 (259 bytes)
//
// 16 xrefs:
// > MapPackCell::onClick @ 0x10023b4d3
// > CommentCell::onGoToLevel @ 0x10023de83
// > GJScoreCell::onViewProfile @ 0x10023eaaa
// > GJNotificationCell::onViewTarget @ 0x1002417cf
// > LevelBrowserLayer::onMyOnlineLevels @ 0x100483154
// > LevelBrowserLayer::onMyOnlineLevels @ 0x1004831d6
// > InfoLayer::onOriginal @ 0x1008939e0
// > InfoLayer::onSimilar @ 0x100895ca3
// > ProfilePage::onMyLevels @ 0x1008a419f
// > ProfilePage::onMyLists @ 0x1008a436b
// > sub_1008F0AC0 @ 0x1008f0d7a
// > sub_10093B920 @ 0x10093bac1
// > sub_10093F950 @ 0x10093fab3
// > sub_10093F950 @ 0x10093fb16
// > AccountReviewPopup::onJumpRow @ 0x1009a1a30
// > sub_1009A4070 @ 0x1009a40f0
//
// This function is hookable on this platform (idp: pc, 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:32:25 +0000
//
char *__fastcall GJSearchObject::create_1(int a1, std::string *a2)
{
char *result; // rax
char *v3; // rbx
std::string v4; // [rsp+80h] [rbp-50h] BYREF
std::string v5; // [rsp+98h] [rbp-38h] BYREF
std::string v6; // [rsp+B0h] [rbp-20h] BYREF
if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )
sub_10001AD30(&v6, a2->__r_.__value_.__l.__data_, a2->__r_.__value_.__l.__size_);
else
v6 = *a2;
*(_WORD *)&v4.__r_.__value_.__l.0 = 11522;
v4.__r_.__value_.__s.__data_[1] = 0;
*(_WORD *)&v5.__r_.__value_.__l.0 = 11522;
v5.__r_.__value_.__s.__data_[1] = 0;
result = GJSearchObject::create(a1, &v6, &v4, &v5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
if ( (*(_BYTE *)&v6.__r_.__value_.__s.0 & 1) != 0 )
{
v3 = result;
operator delete(v6.__r_.__value_.__l.__data_);
return v3;
}
return result;
}