// // GJSmartTemplate::getPrefab from 0x9d4710 to 0x9d4890 (384 bytes) // // 1 xrefs: // > @ 0x3e718 // // 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 // GJSmartPrefab *GJSmartTemplate::getPrefab( GJSmartTemplate *a1, cocos2d::CCPoint a2, SmartGameObject *a3, SmartGameObject *a4, SmartGameObject *a5, SmartGameObject *a6, SmartGameObject *a7, SmartGameObject *a8, SmartGameObject *a9, SmartGameObject *a10, SmartGameObject *a11) { GJSmartPrefab *Prefab; // x20 void *v14; // x0 unsigned int *v16; // x2 int v17; // w1 SmartGameObject *v18; // [xsp+68h] [xbp+58h] SmartGameObject *v19; // [xsp+70h] [xbp+60h] SmartGameObject *v20; // [xsp+78h] [xbp+68h] SmartGameObject *v21; // [xsp+80h] [xbp+70h] SmartGameObject *v22; // [xsp+88h] [xbp+78h] cocos2d::CCPoint v23; // [xsp+98h] [xbp+88h] BYREF __int64 v24; // [xsp+A0h] [xbp+90h] BYREF SmartGameObject *v25; // [xsp+C0h] [xbp+B0h] cocos2d::CCPoint::CCPoint(&v23, (const cocos2d::CCPoint *)a3); GJSmartTemplate::keyFromNeighbors(&v23, a4, v18, v19, v20, v21, v22, a10, &v24, a11, v25); Prefab = (GJSmartPrefab *)GJSmartTemplate::getPrefab(a1, (__int64)&v24, 0, 0); v14 = (void *)(v24 - 24); if ( (__int64 *)(v24 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v16 = (unsigned int *)(v24 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *(_DWORD *)(v24 - 8); *(_DWORD *)(v24 - 8) = v17 - 1; } if ( v17 <= 0 ) operator delete(v14); } return Prefab; }
GD Web Decomp Icon

GD Web Decomp

Raw Source