//
// GJSearchObject::create_2 from 0x1000b04a0 to 0x1000b0564 (196 bytes)
//
// 22 xrefs:
// > LevelInfoLayer::onAddToList @ 0x100029210
// > SetupSmartBlockLayer::onSelectTemplate @ 0x10006fee8
// > SetupSmartTemplateLayer::onBack @ 0x100070df0
// > CreatorLayer::onSavedLevels @ 0x1000b5c98
// > CreatorLayer::onFeaturedLevels @ 0x1000b6218
// > CreatorLayer::onTopLists @ 0x1000b627c
// > CreatorLayer::onMapPacks @ 0x1000b62e0
// > CreatorLayer::onMyLevels @ 0x1000b6370
// > EditLevelLayer::onBack @ 0x1000eb4dc
// > ProfilePage::onMyLevels @ 0x10019b268
// > ProfilePage::onMyLists @ 0x10019b3a0
// > DailyLevelPage::onTheSafe @ 0x1001b9b2c
// > LevelListLayer::init @ 0x100243260
// > LevelListLayer::onRefreshLevelList @ 0x100244b68
// > LevelListLayer::onBack @ 0x1002468c0
// > UploadListPopup::onBack @ 0x100249860
// > UploadPopup::onBack @ 0x1002769f0
// > GameManager::returnToLastScene @ 0x10031d694
// > LevelBrowserLayer::onLocalMode @ 0x1004163e4
// > LevelBrowserLayer::onSavedMode @ 0x10041666c
// > LevelBrowserLayer::onSaved @ 0x1004166f0
// > LevelBrowserLayer::onFavorites @ 0x1004167d8
//
// 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
//
// local variable allocation has failed, the output may be wrong!
GJSearchObject *__fastcall GJSearchObject::create_2(SearchType a1)
{
__int64 v1; // x19
char *v2; // x19
void *__p[2]; // [xsp+28h] [xbp-58h] BYREF
char v5; // [xsp+3Fh] [xbp-41h]
void *v6[2]; // [xsp+40h] [xbp-40h] BYREF
char v7; // [xsp+57h] [xbp-29h]
void *v8[2]; // [xsp+58h] [xbp-28h] BYREF
char v9; // [xsp+6Fh] [xbp-11h]
v1 = *(_QWORD *)&a1;
sub_100009900(v8, "");
sub_100009900(v6, "-");
sub_100009900(__p, "-");
v2 = GJSearchObject::create(v1, (__int64)v8, (__int64)v6, (__int64)__p, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
if ( v5 < 0 )
operator delete(__p[0]);
if ( v7 < 0 )
operator delete(v6[0]);
if ( v9 < 0 )
operator delete(v8[0]);
return (GJSearchObject *)v2;
}