// // GJBaseGameLayer::destroyObject from 0x14031d460 to 0x14031d580 (288 bytes) // // 9 xrefs: // > GJBaseGameLayer::collisionCheckObjects @ 0x14031cfd1 // > GJBaseGameLayer::collisionCheckObjects @ 0x14031d112 // > PlayerObject::collidedWithObjectInternal @ 0x1404f0ae5 // > PlayerObject::collidedWithObjectInternal @ 0x1404f10dd // > PlayerObject::collidedWithObjectInternal @ 0x1404f1db0 // > @ 0x1408b5238 // > @ 0x1408b526c // > @ 0x14091ec14 // > @ 0x14091ec20 // // 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:21 +0000 // double __fastcall GJBaseGameLayer::destroyObject(__int64 a1, __int64 a2) { __int64 v4; // rcx int v5; // esi const struct cocos2d::CCPoint *v6; // rax double result; // xmm0_8 int v8; // eax int v9; // r9d __int64 v10; // rax char v11; // [rsp+48h] [rbp+10h] BYREF if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 1648LL))(a2) == 30 && !*(_BYTE *)(a2 + 1052) && !*(_BYTE *)(a2 + 1007) && ((*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(a2 + 320) + 32LL))(a2 + 320) || (v4 = *(_QWORD *)(a2 + 896)) != 0 && (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(v4 + 320) + 32LL))(v4 + 320)) ) { v5 = *(_DWORD *)(a2 + 1708); if ( v5 <= 0 ) { GameObject::spawnDefaultPickupParticle(a2, a1); } else { v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, v6); *(_QWORD *)&result = 1065353216; GJBaseGameLayer::spawnParticleTrigger(a1, v5, v8, v9, 1065353216); } } GameObject::playDestroyObjectAnim(a2, a1); *(_BYTE *)(a2 + 978) = 1; v10 = *(_QWORD *)(a2 + 320); *(_BYTE *)(a2 + 774) = 1; (*(void (__fastcall **)(__int64, _QWORD))(v10 + 40))(a2 + 320, 0); if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 1648LL))(a2) == 21 ) return GJBaseGameLayer::gameEventTriggered(a1, 61, 0, 0); return result; }