// // GJBaseGameLayer::unclaimParticle from 0x14034a840 to 0x14034a9ed (429 bytes) // // 2 xrefs: // > GameObject::unclaimParticle @ 0x14029641e // > @ 0x140920000 // // This function is hookable on this platform (idp: pc, 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 11:30:44 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall GJBaseGameLayer::unclaimParticle(__int64 a1, _BYTE *a2, struct cocos2d::CCObject *a3) { size_t v6; // rbx size_t v7; // r8 cocos2d::CCArray *v8; // rbp void *v9; // r8 __int64 v10; // rcx _QWORD *ParticleKey2; // rax cocos2d::CCArray *v12; // rbx __int128 v13; // [rsp+30h] [rbp-98h] BYREF __int64 v14; // [rsp+40h] [rbp-88h] __int64 v15; // [rsp+48h] [rbp-80h] void *Block[2]; // [rsp+58h] [rbp-70h] BYREF __m128i si128; // [rsp+68h] [rbp-60h] _QWORD v18[4]; // [rsp+78h] [rbp-50h] BYREF if ( a3 ) { *(_OWORD *)Block = 0; si128 = 0; v6 = -1; v7 = -1; do ++v7; while ( a2[v7] ); sub_14003D230(Block, a2, v7); v8 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 12712), Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v9 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(Block[0]) = 0; if ( v8 ) { v13 = 0; v14 = 0; v15 = 0; do ++v6; while ( a2[v6] ); sub_14003D230(&v13, a2, v6); ParticleKey2 = GJBaseGameLayer::getParticleKey2(v10, v18, (const char *)&v13); v12 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 12712), ParticleKey2); sub_14003D310((__int64)v18); cocos2d::CCArray::addObject(v8, a3); cocos2d::CCArray::removeObject(v12, a3, 1); cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(a1 + 12808), a3, 1); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a3 + 336LL))(a3, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a3 + 520LL))(a3, 0); } } }