//
// GJSearchObject::createFromKey from 0x3cc800 to 0x3cca70 (624 bytes)
//
// 1 xrefs:
// > GameLevelManager::getSearchScene @ 0x3cca7c
//
// 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
//
GJSearchObject *GJSearchObject::createFromKey(const char *a1)
{
cocos2d::CCArray *v1; // r4
cocos2d::CCString *v2; // r0
int v3; // r9
cocos2d::CCString *v4; // r0
char *CString; // r0
cocos2d::CCString *v6; // r0
char *v7; // r0
cocos2d::CCString *v8; // r0
char *v9; // r0
cocos2d::CCString *v10; // r0
cocos2d::CCString *v11; // r0
cocos2d::CCString *v12; // r0
cocos2d::CCString *v13; // r0
cocos2d::CCString *v14; // r0
cocos2d::CCString *v15; // r0
cocos2d::CCString *v16; // r0
cocos2d::CCString *v17; // r0
cocos2d::CCString *v18; // r0
cocos2d::CCString *v19; // r0
cocos2d::CCString *v20; // r0
cocos2d::CCString *v21; // r0
cocos2d::CCString *v22; // r0
cocos2d::CCString *v23; // r0
char v24; // r11
cocos2d::CCString *v25; // r0
char v26; // r10
cocos2d::CCString *v27; // r0
cocos2d::CCString *v28; // r0
cocos2d::CCString *v29; // r0
int v30; // r7
GJSearchObject *v31; // r6
int v33; // [sp+4Ch] [bp-60h]
char v34; // [sp+50h] [bp-5Ch]
char v35; // [sp+54h] [bp-58h]
char v36; // [sp+58h] [bp-54h]
int v37; // [sp+5Ch] [bp-50h]
char v38; // [sp+60h] [bp-4Ch]
char v39; // [sp+64h] [bp-48h]
char v40; // [sp+68h] [bp-44h]
char v41; // [sp+6Ch] [bp-40h]
char v42; // [sp+70h] [bp-3Ch]
char v43; // [sp+74h] [bp-38h]
char v44; // [sp+78h] [bp-34h]
char v45; // [sp+7Ch] [bp-30h]
int v46; // [sp+80h] [bp-2Ch]
int v47; // [sp+84h] [bp-28h]
_BYTE v48[4]; // [sp+8Ch] [bp-20h] BYREF
_BYTE v49[4]; // [sp+90h] [bp-1Ch] BYREF
_BYTE v50[4]; // [sp+94h] [bp-18h] BYREF
_BYTE v51[4]; // [sp+98h] [bp-14h] BYREF
_BYTE v52[4]; // [sp+9Ch] [bp-10h] BYREF
char v53; // [sp+A0h] [bp-Ch] BYREF
sub_776584((int)&v53, (char *)a1);
v1 = sub_3BE530((cocos2d::CCArray *)&v53, "_");
sub_774008(&v53);
if ( cocos2d::CCArray::count(v1) <= 0x11u )
return nullptr;
v2 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 0);
v3 = cocos2d::CCString::intValue(v2);
v4 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 1u);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_776584((int)v48, CString);
v6 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 2u);
v7 = (char *)cocos2d::CCString::getCString(v6);
sub_776584((int)v49, v7);
v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 3u);
v9 = (char *)cocos2d::CCString::getCString(v8);
sub_776584((int)v50, v9);
v10 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 4u);
v33 = cocos2d::CCString::intValue(v10);
v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 5u);
v34 = cocos2d::CCString::boolValue(v11);
v12 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 6u);
v35 = cocos2d::CCString::boolValue(v12);
v13 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 7u);
v36 = cocos2d::CCString::boolValue(v13);
v14 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 8u);
v37 = cocos2d::CCString::intValue(v14);
v15 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 9u);
v38 = cocos2d::CCString::boolValue(v15);
v16 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 0xAu);
v39 = cocos2d::CCString::boolValue(v16);
v17 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 0xBu);
v40 = cocos2d::CCString::boolValue(v17);
v18 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 0xCu);
v41 = cocos2d::CCString::boolValue(v18);
v19 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 0xDu);
v42 = cocos2d::CCString::boolValue(v19);
v20 = cocos2d::CCArray::stringAtIndex(v1, 0xEu);
v43 = cocos2d::CCString::boolValue(v20);
v21 = cocos2d::CCArray::stringAtIndex(v1, 0xFu);
v44 = cocos2d::CCString::boolValue(v21);
v22 = cocos2d::CCArray::stringAtIndex(v1, 0x10u);
v45 = cocos2d::CCString::boolValue(v22);
v23 = cocos2d::CCArray::stringAtIndex(v1, 0x11u);
v24 = cocos2d::CCString::boolValue(v23);
v25 = cocos2d::CCArray::stringAtIndex(v1, 0x12u);
v26 = cocos2d::CCString::boolValue(v25);
v27 = cocos2d::CCArray::stringAtIndex(v1, 0x13u);
v46 = cocos2d::CCString::intValue(v27);
v28 = cocos2d::CCArray::stringAtIndex(v1, 0x14u);
v47 = cocos2d::CCString::intValue(v28);
v29 = cocos2d::CCArray::stringAtIndex(v1, 0x15u);
v30 = cocos2d::CCString::intValue(v29);
sub_775C20(v51, v48);
sub_775C20(v52, v49);
sub_775C20(&v53, v50);
v31 = (GJSearchObject *)GJSearchObject::create(
v3,
(int)v51,
(int)v52,
(int)&v53,
v33,
v34,
v35,
v36,
v37,
v38,
v39,
v40,
v41,
v42,
v43,
v44,
v45,
v24,
v26,
v46,
v47,
v30);
sub_774008(&v53);
sub_774008(v52);
sub_774008(v51);
sub_774008(v50);
sub_774008(v49);
sub_774008(v48);
return v31;
}