//
// GJSmartTemplate::generateRemapDict from 0x671978 to 0x671b8e (534 bytes)
//
// 0 xrefs:
//
// 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:55:52 +0000
//
cocos2d::CCDictionary *__fastcall GJSmartTemplate::generateRemapDict(GJSmartTemplate *this)
{
unsigned int v1; // r10
cocos2d::CCNode *v2; // r4
cocos2d::CCNode *v3; // r0
cocos2d::CCString *v4; // r0
const char *CString; // r0
const char *v6; // r5
size_t v7; // r0
_BOOL4 v8; // r8
_BOOL4 v9; // r9
int v10; // r5
_BOOL4 v11; // r6
_BOOL4 v12; // r4
_BOOL4 v13; // r3
bool v14; // r11
bool v15; // r5
cocos2d::CCObject *v16; // r0
_BOOL4 v18; // [sp+18h] [bp-30h]
_BOOL4 v19; // [sp+1Ch] [bp-2Ch]
cocos2d::CCDictionary *v20; // [sp+20h] [bp-28h]
cocos2d::CCArray *v21; // [sp+24h] [bp-24h]
int v22; // [sp+28h] [bp-20h]
int v23[3]; // [sp+30h] [bp-18h] BYREF
int v24[3]; // [sp+3Ch] [bp-Ch] BYREF
int v25[3]; // [sp+48h] [bp+0h] BYREF
int v26[8]; // [sp+54h] [bp+Ch] BYREF
v1 = 0;
v20 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(this);
v2 = (cocos2d::CCNode *)cocos2d::CCDictionary::create(v20);
v3 = (cocos2d::CCNode *)cocos2d::CCNode::create(v2);
generateAllBinaryStrings(8, v26, 0, v2, v3);
v21 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v2);
while ( v1 < cocos2d::CCArray::count(v21) )
{
v4 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v21, v1);
CString = (const char *)cocos2d::CCString::getCString(v4);
memset(v23, 0, sizeof(v23));
v6 = CString;
v7 = strlen(CString);
std::string::__init(v23, v6, v7);
v8 = *std::string::at((unsigned __int8 *)v23, 0) != 48;
v9 = *std::string::at((unsigned __int8 *)v23, 1u) != 48;
v18 = *std::string::at((unsigned __int8 *)v23, 2u) != 48;
v19 = *std::string::at((unsigned __int8 *)v23, 3u) != 48;
v10 = *std::string::at((unsigned __int8 *)v23, 4u);
v11 = *std::string::at((unsigned __int8 *)v23, 5u) != 48;
v22 = *std::string::at((unsigned __int8 *)v23, 6u);
v12 = *std::string::at((unsigned __int8 *)v23, 7u) != 48;
if ( v10 == 48 )
{
v13 = 0;
}
else
{
if ( v8 )
{
v13 = !v18;
v14 = v18;
if ( !v11 )
goto LABEL_20;
goto LABEL_12;
}
v13 = 1;
}
if ( !v11 )
{
v14 = 0;
goto LABEL_20;
}
if ( !v8 )
{
v14 = 0;
v13 = 1;
LOBYTE(v11) = 0;
goto LABEL_20;
}
v14 = 0;
LABEL_12:
if ( v19 )
LOBYTE(v11) = 1;
else
v13 = 1;
if ( !v19 )
LOBYTE(v11) = 0;
LABEL_20:
if ( v22 == 48 )
{
if ( !v12 )
{
v15 = 0;
LABEL_32:
if ( !v13 )
goto LABEL_34;
goto LABEL_33;
}
if ( v9 )
{
v15 = 0;
LABEL_29:
if ( v19 )
{
LOBYTE(v12) = 1;
goto LABEL_32;
}
goto LABEL_38;
}
}
else
{
if ( v9 )
{
if ( v18 )
{
v15 = 1;
if ( !v12 )
goto LABEL_32;
}
else
{
if ( !v12 )
goto LABEL_41;
v15 = 0;
v13 = 1;
}
goto LABEL_29;
}
if ( !v12 )
{
LABEL_41:
v15 = v12;
goto LABEL_33;
}
}
v15 = v9;
LABEL_38:
LOBYTE(v12) = 0;
LABEL_33:
std::string::basic_string(v25, (int)v23);
prefabKeyFromBinary(v24, (unsigned __int8 *)v25);
std::string::~string((int)v25);
GJSmartTemplate::keyFromNeighborsOld((GJSmartTemplate *)v25, v8, v9, v18, v19, v14, v11, v15, v12);
v16 = (cocos2d::CCObject *)cocos2d::CCString::create(v25);
cocos2d::CCDictionary::setObject((int)v20, v16);
std::string::~string((int)v25);
std::string::~string((int)v24);
LABEL_34:
++v1;
std::string::~string((int)v23);
}
return v20;
}