//
// GameCell::loadFromString from 0x3c0e28 to 0x3c104a (546 bytes)
//
// 1 xrefs:
// > BoomListView::loadCell @ 0x3c10ce
//
// 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:46:31 +0000
//
int __fastcall GameCell::loadFromString(int a1, unsigned __int8 *a2)
{
_BOOL4 v4; // r9
int *v5; // r0
char *CString; // r1
_BOOL4 v7; // r9
_BOOL4 v8; // r9
_BOOL4 v9; // r9
_BOOL4 v10; // r9
const char *v11; // r1
cocos2d::CCString *v12; // r0
int v13; // r3
const char *v14; // r1
cocos2d::CCString *v15; // r0
const char *v16; // r0
const char *v17; // r5
size_t v18; // r0
const char *v19; // r1
cocos2d::CCSprite *v20; // r0
int v21; // r0
cocos2d::CCMenu *v22; // r0
int v23; // r5
void (__fastcall *v24)(int, _BYTE *); // r9
_BYTE v26[8]; // [sp+8h] [bp-24h] BYREF
int (__fastcall *v27)(GameCell *, cocos2d::CCObject *); // [sp+10h] [bp-1Ch]
int v28; // [sp+14h] [bp-18h]
int v29; // [sp+18h] [bp-14h] BYREF
int v30; // [sp+1Ch] [bp-10h]
cocos2d::CCSprite *v31; // [sp+20h] [bp-Ch]
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 412) + 292))(*(_DWORD *)(a1 + 412), 1);
v29 = 0;
v30 = 0;
v31 = nullptr;
std::string::__init(&v29, "gj", 2u);
v4 = sub_3C07BC(a2, (unsigned __int8 *)&v29);
std::string::~string((int)&v29);
if ( v4 )
{
v5 = (int *)(a1 + 424);
CString = "https://play.google.com/store/apps/details?id=com.robtopx.geometryjump";
}
else
{
v29 = 0;
v30 = 0;
v31 = nullptr;
std::string::__init(&v29, "gjl", 3u);
v7 = sub_3C07BC(a2, (unsigned __int8 *)&v29);
std::string::~string((int)&v29);
if ( v7 )
{
v5 = (int *)(a1 + 424);
CString = "https://play.google.com/store/apps/details?id=com.robtopx.geometryjumplite";
}
else
{
v29 = 0;
v30 = 0;
v31 = nullptr;
std::string::__init(&v29, "gjm", 3u);
v8 = sub_3C07BC(a2, (unsigned __int8 *)&v29);
std::string::~string((int)&v29);
if ( v8 )
{
v5 = (int *)(a1 + 424);
CString = "https://play.google.com/store/apps/details?id=com.robtopx.geometrydashmeltdown";
}
else
{
v29 = 0;
v30 = 0;
v31 = nullptr;
std::string::__init(&v29, "gjw", 3u);
v9 = sub_3C07BC(a2, (unsigned __int8 *)&v29);
std::string::~string((int)&v29);
if ( v9 )
{
v5 = (int *)(a1 + 424);
CString = "https://play.google.com/store/apps/details?id=com.robtopx.geometrydashworld";
}
else
{
v29 = 0;
v30 = 0;
v31 = nullptr;
std::string::__init(&v29, "gjz", 3u);
v10 = sub_3C07BC(a2, (unsigned __int8 *)&v29);
std::string::~string((int)&v29);
if ( v10 )
{
v5 = (int *)(a1 + 424);
CString = "https://play.google.com/store/apps/details?id=com.robtopx.geometrydashsubzero";
}
else
{
if ( (*a2 & 1) != 0 )
v11 = *((const char **)a2 + 2);
else
v11 = (const char *)(a2 + 1);
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"https://www.robtopgames.com/download/%s%i",
v11,
0);
CString = (char *)cocos2d::CCString::getCString(v12);
v5 = (int *)(a1 + 424);
}
}
}
}
}
std::string::assign(v5, CString);
v13 = *a2;
if ( (v13 & 1) != 0 )
v14 = *((const char **)a2 + 2);
else
v14 = (const char *)(a2 + 1);
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"promo_%s.png", v14, v13 << 31);
v16 = (const char *)cocos2d::CCString::getCString(v15);
v29 = 0;
v30 = 0;
v31 = nullptr;
v17 = v16;
v18 = strlen(v16);
std::string::__init(&v29, v17, v18);
if ( (v29 & 1) != 0 )
v20 = v31;
else
v20 = (cocos2d::CCSprite *)((char *)&v29 + 1);
v21 = cocos2d::CCSprite::create(v20, v19);
v28 = 0;
v27 = GameCell::onTouch;
v22 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v21, 0, a1);
*((_BYTE *)v22 + 320) = 0;
*((_BYTE *)v22 + 321) = 1;
v23 = cocos2d::CCMenu::create(v22, nullptr);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 412) + 228))(*(_DWORD *)(a1 + 412), v23);
v24 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v23 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, *(float *)(a1 + 400) * 0.5, *(float *)(a1 + 404) * 0.5);
v24(v23, v26);
return std::string::~string((int)&v29);
}