// // GJBaseGameLayer::createCustomParticle from 0x5b129c to 0x5b149a (510 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:53:32 +0000 // cocos2d::CCParticleSystem *__fastcall GJBaseGameLayer::createCustomParticle( _DWORD *a1, unsigned __int8 *a2, _DWORD *a3, int a4, char a5) { unsigned __int8 *v6; // r4 int v9; // r5 int v10; // r3 const char *v11; // r1 size_t v12; // r0 cocos2d::CCObject *v13; // r5 cocos2d::CCArray *v14; // r0 void (__fastcall *v15)(cocos2d::CCObject *); // r3 unsigned __int8 *v16; // r0 const char *v17; // r1 size_t v18; // r0 cocos2d::CCArray *v19; // r0 cocos2d::CCObject *v20; // r0 bool v21; // nf cocos2d::CCObject *v22; // r11 size_t v23; // r0 cocos2d::CCParticleSystem *v25; // r4 const char *v26; // [sp+0h] [bp-24h] const char *v27; // [sp+0h] [bp-24h] int v28; // [sp+0h] [bp-24h] int v29; // [sp+4h] [bp-20h] int v30; // [sp+Ch] [bp-18h] BYREF int v31; // [sp+10h] [bp-14h] BYREF int v32; // [sp+14h] [bp-10h] int v33; // [sp+18h] [bp-Ch] v6 = a2; v9 = a1[2662]; v10 = *a2; v11 = (const char *)(v10 << 31); if ( (v10 & 1) == 0 ) v11 = (const char *)(v6 + 1); v31 = 0; if ( (v10 & 1) != 0 ) v11 = *((const char **)v6 + 2); v32 = 0; v33 = 0; v26 = v11; v12 = strlen(v11); std::string::__init(&v31, v26, v12); v13 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v9, &v31); v14 = (cocos2d::CCArray *)std::string::~string((int)&v31); if ( v13 ) { if ( a4 <= 0 ) goto LABEL_19; } else if ( a5 ) { if ( a4 <= 0 ) { v25 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromStruct(a3, 0, 1u); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD))(*(_DWORD *)v25 + 36))(v25, 0); cocos2d::CCParticleSystem::stopSystem(v25); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD))(*(_DWORD *)v25 + 172))(v25, 0); return v25; } } else { v13 = (cocos2d::CCObject *)cocos2d::CCArray::create(v14); v15 = *(void (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v13 + 36); ++a1[2659]; v15(v13); v30 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v13 + 32))(v13); v16 = (unsigned __int8 *)std::unordered_map::operator[]((int)(a1 + 2664), (unsigned int *)&v30); std::string::operator=(v16, v6); if ( (*v6 & 1) != 0 ) v17 = *((const char **)v6 + 2); else v17 = (const char *)(v6 + 1); v29 = a1[2662]; v31 = 0; v32 = 0; v33 = 0; v27 = v17; v18 = strlen(v17); std::string::__init(&v31, v27, v18); cocos2d::CCDictionary::setObject(v29, v13); v19 = (cocos2d::CCArray *)std::string::~string((int)&v31); v28 = a1[2669]; v20 = (cocos2d::CCObject *)cocos2d::CCArray::create(v19); v21 = (*v6 & 1) != 0; if ( (*v6 & 1) == 0 ) ++v6; v31 = 0; if ( v21 ) v6 = *((unsigned __int8 **)v6 + 2); v32 = 0; v33 = 0; v22 = v20; v23 = strlen((const char *)v6); std::string::__init(&v31, v6, v23); cocos2d::CCDictionary::setObject(v28, v22); std::string::~string((int)&v31); if ( a4 <= 0 ) { v25 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromStruct(a3, 0, 1u); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD))(*(_DWORD *)v25 + 36))(v25, 0); cocos2d::CCParticleSystem::stopSystem(v25); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD))(*(_DWORD *)v25 + 172))(v25, 0); LABEL_20: cocos2d::CCArray::addObject(v13, v25); *((_DWORD *)v25 + 174) = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v13 + 32))(v13); return v25; } } if ( cocos2d::CCArray::count(v13) >= (unsigned int)a4 ) return nullptr; LABEL_19: v25 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromStruct(a3, 0, 1u); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD))(*(_DWORD *)v25 + 36))(v25, 0); cocos2d::CCParticleSystem::stopSystem(v25); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD))(*(_DWORD *)v25 + 172))(v25, 0); if ( !a5 ) goto LABEL_20; return v25; }
GD Web Decomp Icon

GD Web Decomp

Raw Source