// // GJSmartTemplate::generateRemapDict from 0x53cc90 to 0x53cea8 (536 bytes) // // 0 xrefs: // // 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 // cocos2d::CCDictionary *GJSmartTemplate::generateRemapDict() { cocos2d::CCDictionary *v0; // r4 cocos2d::CCNode *v1; // r0 cocos2d::CCString *v2; // r0 char *CString; // r0 _BOOL4 v4; // r8 _BOOL4 v5; // r9 _BOOL4 v6; // r10 int v7; // r11 _BOOL4 v8; // r7 int v9; // r6 _BOOL4 v10; // r4 _BOOL4 v11; // r3 bool v12; // r6 const std::string *v13; // r1 cocos2d::CCObject *v14; // r0 unsigned int v16; // [sp+18h] [bp-4Ch] bool v17; // [sp+1Ch] [bp-48h] _BOOL4 v18; // [sp+20h] [bp-44h] cocos2d::CCDictionary *v19; // [sp+24h] [bp-40h] cocos2d::CCArray *v20; // [sp+28h] [bp-3Ch] _BYTE v21[4]; // [sp+30h] [bp-34h] BYREF _BYTE v22[4]; // [sp+34h] [bp-30h] BYREF char v23; // [sp+38h] [bp-2Ch] BYREF int v24[8]; // [sp+3Ch] [bp-28h] BYREF v19 = cocos2d::CCDictionary::create(); v0 = cocos2d::CCDictionary::create(); v1 = cocos2d::CCNode::create(); generateAllBinaryStrings(8, v24, 0, v0, v1); v16 = 0; v20 = cocos2d::CCDictionary::allKeys(v0); while ( v16 < cocos2d::CCArray::count(v20) ) { v2 = cocos2d::CCArray::stringAtIndex(v20, v16); CString = (char *)cocos2d::CCString::getCString(v2); sub_776584((int)v21, CString); v4 = *(unsigned __int8 *)sub_7757BC(v21, 0) != 48; v5 = *(unsigned __int8 *)sub_7757BC(v21, 1) != 48; v6 = *(unsigned __int8 *)sub_7757BC(v21, 2) != 48; v18 = *(unsigned __int8 *)sub_7757BC(v21, 3) != 48; v7 = *(unsigned __int8 *)sub_7757BC(v21, 4); v8 = *(unsigned __int8 *)sub_7757BC(v21, 5) != 48; v9 = *(unsigned __int8 *)sub_7757BC(v21, 6); v10 = *(unsigned __int8 *)sub_7757BC(v21, 7) != 48; if ( v7 == 48 ) { v11 = 0; } else { if ( v4 ) { v11 = !v6; v17 = v6; if ( !v8 ) goto LABEL_20; goto LABEL_12; } v11 = 1; } if ( !v8 ) { v17 = 0; goto LABEL_20; } if ( !v4 ) { v11 = 1; LOBYTE(v8) = 0; v17 = 0; goto LABEL_20; } v17 = 0; LABEL_12: if ( v18 ) LOBYTE(v8) = 1; else v11 = 1; if ( !v18 ) LOBYTE(v8) = 0; LABEL_20: if ( v9 == 48 ) { if ( !v10 ) { v12 = 0; LABEL_32: if ( !v11 ) goto LABEL_34; goto LABEL_33; } if ( v5 ) { v12 = 0; LABEL_29: if ( v18 ) { LOBYTE(v10) = 1; goto LABEL_32; } goto LABEL_38; } } else { if ( v5 ) { if ( v6 ) { v12 = 1; if ( !v10 ) goto LABEL_32; } else { if ( !v10 ) goto LABEL_41; v11 = 1; v12 = 0; } goto LABEL_29; } if ( !v10 ) { LABEL_41: v12 = v10; goto LABEL_33; } } v12 = v5; LABEL_38: LOBYTE(v10) = 0; LABEL_33: sub_775C20(&v23); prefabKeyFromBinary((int)v22, (int)&v23); sub_774008(&v23); GJSmartTemplate::keyFromNeighborsOld((GJSmartTemplate *)&v23, v4, v5, v6, v18, v17, v8, v12, v10); v14 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v23, v13); cocos2d::CCDictionary::setObject((int)v19, v14); sub_774008(&v23); sub_774008(v22); LABEL_34: sub_774008(v21); ++v16; } return v19; }
GD Web Decomp Icon

GD Web Decomp

Raw Source