// // GJEffectManager::setupFromString from 0xa1adcc to 0xa1b1f0 (1060 bytes) // // 2 xrefs: // > LevelSettingsObject::objectFromDict @ 0x7ab2b4 // > @ 0x86110 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:59:36 +0000 // __int64 __fastcall GJEffectManager::setupFromString(cocos2d::CCDictionary **a1, char *a2) { char *v3; // x19 size_t v4; // x0 cocos2d::CCArray *v5; // x0 cocos2d::CCArray *v6; // x24 unsigned __int64 v7; // x27 _BYTE *v8; // x0 __int64 v9; // x22 unsigned __int64 v10; // x20 int v11; // w1 char *v12; // x1 size_t v13; // x0 cocos2d::CCObject *v14; // x0 char *v15; // x2 unsigned __int64 v16; // x0 char *v17; // x3 char *v18; // x0 unsigned int i; // w21 cocos2d::CCString *v20; // x0 void *CString; // x0 size_t v22; // x0 ColorAction *v23; // x0 ColorAction *v24; // x22 int v25; // w2 __int64 *v27; // x20 _BYTE *v28; // x22 void *v29; // [xsp+68h] [xbp+68h] __int64 v30; // [xsp+70h] [xbp+70h] BYREF unsigned __int64 v31; // [xsp+78h] [xbp+78h] void *v32; // [xsp+80h] [xbp+80h] __int64 v33; // [xsp+88h] [xbp+88h] BYREF size_t v34; // [xsp+90h] [xbp+90h] void *v35; // [xsp+98h] [xbp+98h] __int64 v36; // [xsp+A0h] [xbp+A0h] BYREF size_t v37; // [xsp+A8h] [xbp+A8h] void *v38; // [xsp+B0h] [xbp+B0h] v3 = a2 + 1; if ( (*a2 & 1) != 0 ) v3 = *((char **)a2 + 2); v30 = 0; v31 = 0; v32 = nullptr; v4 = strlen(v3); v5 = (cocos2d::CCArray *)std::string::__init(&v30, v3, v4); v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5); if ( (v30 & 1) == 0 ) { LODWORD(v7) = (int)(unsigned __int8)v30 >> 1; if ( !(_DWORD)v7 ) goto LABEL_5; v8 = (char *)&v30 + 1; v9 = -1; v27 = (__int64 *)((char *)&v30 + (int)v7 + 1); if ( v27 == (__int64 *)((char *)&v30 + 1) ) { LABEL_59: v7 = (int)v7; goto LABEL_7; } LABEL_52: v28 = v8; if ( *v8 == 124 ) { v9 = 0; } else { do { if ( v27 == (__int64 *)++v28 ) { v9 = -1; goto LABEL_60; } } while ( *v28 != 124 ); v9 = v28 - v8; } LABEL_60: LODWORD(v7) = (int)(unsigned __int8)v30 >> 1; if ( (v30 & 1) != 0 ) { v7 = v31; goto LABEL_7; } goto LABEL_59; } v7 = v31; v8 = v32; if ( v31 ) { v27 = (__int64 *)((char *)v32 + v31); if ( v32 == (char *)v32 + v31 ) goto LABEL_6; goto LABEL_52; } LABEL_5: v7 = 0; LABEL_6: v9 = -1; LABEL_7: v10 = 0; while ( 1 ) { std::string::basic_string(&v33, (__int64)&v30, v10, v9 - v10); v11 = v33 & 1; if ( v11 ) { if ( v10 == v7 ) { v11 = 1; if ( !v34 ) goto LABEL_15; } v12 = (char *)v35; } else { if ( v10 == v7 && !((int)(unsigned __int8)v33 >> 1) ) goto LABEL_15; v12 = (char *)&v33 + 1; } v29 = v12; v36 = 0; v37 = 0; v38 = nullptr; v13 = strlen(v12); std::string::__init(&v36, v29, v13); v14 = (cocos2d::CCObject *)cocos2d::CCString::create(&v36); cocos2d::CCArray::addObject(v6, v14); if ( (v36 & 1) != 0 ) operator delete(v38); v11 = v33 & 1; LABEL_15: if ( v9 == -1 ) break; v10 = v9 + 1; if ( (v30 & 1) != 0 ) { v15 = (char *)v32; v16 = v31; } else { v16 = (unsigned __int8)v30 >> 1; v15 = (char *)&v30 + 1; } v9 = -1; if ( v10 >= v16 || (v17 = &v15[v10], v18 = &v15[v16], &v15[v10] == v18) ) { if ( v11 ) goto LABEL_20; } else if ( v15[v10] == 124 ) { LABEL_32: v9 = v17 - v15; if ( v11 ) goto LABEL_20; } else { while ( v18 != ++v17 ) { if ( *v17 == 124 ) goto LABEL_32; } v9 = -1; if ( v11 ) LABEL_20: operator delete(v35); } } if ( v11 ) operator delete(v35); if ( (v30 & 1) != 0 ) operator delete(v32); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v6); ++i ) { v20 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v6, i); CString = (void *)cocos2d::CCString::getCString(v20); v33 = 0; v34 = 0; v35 = nullptr; v29 = CString; v22 = strlen((const char *)CString); v23 = (ColorAction *)std::string::__init(&v33, v29, v22); v24 = (ColorAction *)ColorAction::create(v23); v36 = 0; v37 = 0; v38 = nullptr; if ( (v33 & 1) != 0 ) { std::string::__init(&v36, v35, v34); } else { v38 = v35; v36 = v33; v37 = v34; } ColorAction::setupFromString((__int64)v24, (unsigned __int8 *)&v36); if ( (v36 & 1) != 0 ) operator delete(v38); v25 = *((_DWORD *)v24 + 23); if ( v25 <= 1101 ) GJEffectManager::setColorAction(a1, v24, v25); if ( (v33 & 1) != 0 ) operator delete(v35); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source