// // GJBaseGameLayer::getParticleKey2 from 0x9aa02c to 0x9aa110 (228 bytes) // // 4 xrefs: // > GJBaseGameLayer::unclaimParticle @ 0x9af4f4 // > GJBaseGameLayer::claimParticle @ 0x9af6ec // > GJBaseGameLayer::createParticle @ 0x9efe90 // > @ 0x84958 // // 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:58:11 +0000 // __int64 *__usercall GJBaseGameLayer::getParticleKey2@(char *a1@, __int64 *a2@) { const char *v3; // x0 cocos2d::CCString *v4; // x0 const char *CString; // x0 const char *v6; // x22 size_t v7; // x0 size_t v8; // x20 unsigned __int64 v9; // x0 __int64 v10; // x21 __int64 v11; // x0 _BYTE *v12; // x3 v3 = a1 + 1; if ( (*a1 & 1) != 0 ) v3 = *((const char **)a1 + 2); v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s%s", v3, "#2"); CString = (const char *)cocos2d::CCString::getCString(v4); *a2 = 0; a2[1] = 0; v6 = CString; a2[2] = 0; v7 = strlen(CString); v8 = v7; if ( v7 > 0xFFFFFFFFFFFFFFEFLL ) sub_62D81C(); if ( v7 > 0x16 ) { v9 = (v7 + 16) & 0xFFFFFFFFFFFFFFF0LL; v10 = v9 | 1; v11 = operator new(v9); *a2 = v10; v12 = (_BYTE *)v11; a2[2] = v11; a2[1] = v8; LABEL_6: *((_BYTE *)memcpy(v12, v6, v8) + v8) = 0; return a2; } *(_BYTE *)a2 = 2 * v7; v12 = (char *)a2 + 1; if ( v7 ) goto LABEL_6; *v12 = 0; return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source