//
// GJSearchObject::createFromKey from 0x4c47e4 to 0x4c4a8a (678 bytes)
//
// 1 xrefs:
// > GameLevelManager::getSearchScene @ 0x4c4a98
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:50:28 +0000
//
int __fastcall GJSearchObject::createFromKey(GJSearchObject *this, const char *a2)
{
size_t v3; // r0
cocos2d::CCArray *v4; // r4
cocos2d::CCString *v5; // r0
int v6; // r9
cocos2d::CCString *v7; // r0
const char *CString; // r6
size_t v9; // r0
cocos2d::CCString *v10; // r0
const char *v11; // r6
size_t v12; // r0
cocos2d::CCString *v13; // r0
const char *v14; // r5
size_t 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
cocos2d::CCString *v24; // r0
cocos2d::CCString *v25; // r0
cocos2d::CCString *v26; // r0
cocos2d::CCString *v27; // r0
cocos2d::CCString *v28; // r0
cocos2d::CCString *v29; // r0
char v30; // r11
cocos2d::CCString *v31; // r0
char v32; // r10
cocos2d::CCString *v33; // r0
cocos2d::CCString *v34; // r0
cocos2d::CCString *v35; // r0
int v36; // r7
int v37; // r6
int v39; // [sp+4Ch] [bp-90h]
char v40; // [sp+50h] [bp-8Ch]
char v41; // [sp+54h] [bp-88h]
char v42; // [sp+58h] [bp-84h]
int v43; // [sp+5Ch] [bp-80h]
char v44; // [sp+60h] [bp-7Ch]
char v45; // [sp+64h] [bp-78h]
char v46; // [sp+68h] [bp-74h]
char v47; // [sp+6Ch] [bp-70h]
char v48; // [sp+70h] [bp-6Ch]
char v49; // [sp+74h] [bp-68h]
char v50; // [sp+78h] [bp-64h]
char v51; // [sp+7Ch] [bp-60h]
int v52; // [sp+80h] [bp-5Ch]
int v53; // [sp+84h] [bp-58h]
int v54[3]; // [sp+8Ch] [bp-50h] BYREF
int v55[3]; // [sp+98h] [bp-44h] BYREF
int v56[3]; // [sp+A4h] [bp-38h] BYREF
int v57[3]; // [sp+B0h] [bp-2Ch] BYREF
int v58[3]; // [sp+BCh] [bp-20h] BYREF
int v59[3]; // [sp+C8h] [bp-14h] BYREF
memset(v59, 0, sizeof(v59));
v3 = strlen((const char *)this);
std::string::__init(v59, this, v3);
v4 = sub_4C1A88(v59, "_");
std::string::~string((int)v59);
if ( cocos2d::CCArray::count(v4) <= 0x11u )
return 0;
v5 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 0);
v6 = cocos2d::CCString::intValue(v5);
v7 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 1u);
memset(v54, 0, sizeof(v54));
CString = (const char *)cocos2d::CCString::getCString(v7);
v9 = strlen(CString);
std::string::__init(v54, CString, v9);
v10 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 2u);
v11 = (const char *)cocos2d::CCString::getCString(v10);
memset(v55, 0, sizeof(v55));
v12 = strlen(v11);
std::string::__init(v55, v11, v12);
v13 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 3u);
v14 = (const char *)cocos2d::CCString::getCString(v13);
memset(v56, 0, sizeof(v56));
v15 = strlen(v14);
std::string::__init(v56, v14, v15);
v16 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 4u);
v39 = cocos2d::CCString::intValue(v16);
v17 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 5u);
v40 = cocos2d::CCString::boolValue(v17);
v18 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 6u);
v41 = cocos2d::CCString::boolValue(v18);
v19 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 7u);
v42 = cocos2d::CCString::boolValue(v19);
v20 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 8u);
v43 = cocos2d::CCString::intValue(v20);
v21 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 9u);
v44 = cocos2d::CCString::boolValue(v21);
v22 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 0xAu);
v45 = cocos2d::CCString::boolValue(v22);
v23 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 0xBu);
v46 = cocos2d::CCString::boolValue(v23);
v24 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 0xCu);
v47 = cocos2d::CCString::boolValue(v24);
v25 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, 0xDu);
v48 = cocos2d::CCString::boolValue(v25);
v26 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v4, 0xEu);
v49 = cocos2d::CCString::boolValue(v26);
v27 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v4, 0xFu);
v50 = cocos2d::CCString::boolValue(v27);
v28 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v4, 0x10u);
v51 = cocos2d::CCString::boolValue(v28);
v29 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v4, 0x11u);
v30 = cocos2d::CCString::boolValue(v29);
v31 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v4, 0x12u);
v32 = cocos2d::CCString::boolValue(v31);
v33 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v4, 0x13u);
v52 = cocos2d::CCString::intValue(v33);
v34 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v4, 0x14u);
v53 = cocos2d::CCString::intValue(v34);
v35 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v4, 0x15u);
v36 = cocos2d::CCString::intValue(v35);
std::string::basic_string(v57, (int)v54);
std::string::basic_string(v58, (int)v55);
std::string::basic_string(v59, (int)v56);
v37 = GJSearchObject::create(
v6,
(int)v57,
(int)v58,
(int)v59,
v39,
v40,
v41,
v42,
v43,
v44,
v45,
v46,
v47,
v48,
v49,
v50,
v51,
v30,
v32,
v52,
v53,
v36);
std::string::~string((int)v59);
std::string::~string((int)v58);
std::string::~string((int)v57);
std::string::~string((int)v56);
std::string::~string((int)v55);
std::string::~string((int)v54);
return v37;
}