{"type": "func", "start": 5370896528, "end": 5370896814, "name": "GJBaseGameLayer::destroyObject", "pseudocode": "// \n// GJBaseGameLayer::destroyObject from 0x140216090 to 0x1402161ae (286 bytes)\n// \n// 9 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x140215c2e\n// > GJBaseGameLayer::collisionCheckObjects @ 0x140215d2b\n// > PlayerObject::collidedWithObjectInternal @ 0x14039285e\n// > PlayerObject::collidedWithObjectInternal @ 0x140392e85\n// > PlayerObject::collidedWithObjectInternal @ 0x140393ba7\n// > <???> @ 0x14067f2f0\n// > <???> @ 0x14067f324\n// > <???> @ 0x1406cd0d4\n// > <???> @ 0x1406cd0e0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJBaseGameLayer::destroyObject(GJBaseGameLayer *a1, GameObject *a2)\n{\n  cocos2d::CCSprite *m_colorSprite; // rcx\n  int v5; // esi\n  cocos2d::CCPoint v6; // rax\n  cocos2d::CCRGBAProtocol_vtbl *v7; // rax\n  cocos2d::CCPoint v8; // [rsp+48h] [rbp+10h] BYREF\n\n  if ( a2->getType(a2) == Collectible\n    && !a2->m_hasNoEffects\n    && !a2->m_isInvisible\n    && (a2->getOpacity(&a2->cocos2d::CCRGBAProtocol)\n     || (m_colorSprite = a2->m_colorSprite) != nullptr\n     && m_colorSprite->getOpacity(&m_colorSprite->cocos2d::CCRGBAProtocol)) )\n  {\n    v5 = HIDWORD(a2[1].CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable);\n    if ( v5 <= 0 )\n    {\n      GameObject::spawnDefaultPickupParticle(a2, a1);\n    }\n    else\n    {\n      a2->getPosition_0(a2);\n      cocos2d::CCPoint::CCPoint(&v8);\n      GJBaseGameLayer::spawnParticleTrigger(a1, v5, v6, 0.0, 1.0);\n    }\n  }\n  GameObject::playDestroyObjectAnim(a2, a1);\n  a2->m_isDisabled = 1;\n  v7 = a2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable;\n  a2->m_isDisabled2 = 1;\n  v7->setOpacity(&a2->cocos2d::CCRGBAProtocol, 0);\n  if ( a2->getType(a2) == Breakable )\n    GJBaseGameLayer::gameEventTriggered(a1, DestroyBlock, 0, 0);\n}", "assembly": "; \n; GJBaseGameLayer::destroyObject from 0x140216090 to 0x1402161ae (286 bytes)\n; \n; 9 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x140215c2e\n; > GJBaseGameLayer::collisionCheckObjects @ 0x140215d2b\n; > PlayerObject::collidedWithObjectInternal @ 0x14039285e\n; > PlayerObject::collidedWithObjectInternal @ 0x140392e85\n; > PlayerObject::collidedWithObjectInternal @ 0x140393ba7\n; > <???> @ 0x14067f2f0\n; > <???> @ 0x14067f324\n; > <???> @ 0x1406cd0d4\n; > <???> @ 0x1406cd0e0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rdi                                                            ; +0x0, 0x140216090\nsub     rsp, 30h                                                       ; +0x2, 0x140216092\nmov     rax, [rdx]                                                     ; +0x6, 0x140216096\nmov     rdi, rcx                                                       ; +0x9, 0x140216099\nmov     [rsp+38h+arg_0], rbx                                           ; +0xc, 0x14021609c\nmov     rcx, rdx                                                       ; +0x11, 0x1402160a1\nmov     rbx, rdx                                                       ; +0x14, 0x1402160a4\ncall    qword ptr [rax+660h]                                           ; +0x17, 0x1402160a7\ncmp     eax, 1Eh                                                       ; +0x1d, 0x1402160ad\njnz     loc_140216154                                                  ; +0x20, 0x1402160b0\ncmp     byte ptr [rbx+41Ch], 0                                         ; +0x26, 0x1402160b6\njnz     loc_140216154                                                  ; +0x2d, 0x1402160bd\ncmp     byte ptr [rbx+3EFh], 0                                         ; +0x33, 0x1402160c3\njnz     loc_140216154                                                  ; +0x3a, 0x1402160ca\nlea     rcx, [rbx+140h]                                                ; +0x40, 0x1402160d0\nmov     rax, [rcx]                                                     ; +0x47, 0x1402160d7\ncall    qword ptr [rax+20h]                                            ; +0x4a, 0x1402160da\ntest    al, al                                                         ; +0x4d, 0x1402160dd\njnz     short loc_1402160FE                                            ; +0x4f, 0x1402160df\nmov     rcx, [rbx+380h]                                                ; +0x51, 0x1402160e1\ntest    rcx, rcx                                                       ; +0x58, 0x1402160e8\njz      short loc_140216154                                            ; +0x5b, 0x1402160eb\nadd     rcx, 140h                                                      ; +0x5d, 0x1402160ed\nmov     rax, [rcx]                                                     ; +0x64, 0x1402160f4\ncall    qword ptr [rax+20h]                                            ; +0x67, 0x1402160f7\ntest    al, al                                                         ; +0x6a, 0x1402160fa\njz      short loc_140216154                                            ; +0x6c, 0x1402160fc\nmov     [rsp+38h+arg_10], rsi                                          ; +0x6e, 0x1402160fe\nmov     rcx, rbx                                                       ; +0x73, 0x140216103\nmov     esi, [rbx+6ACh]                                                ; +0x76, 0x140216106\ntest    esi, esi                                                       ; +0x7c, 0x14021610c\njle     short loc_140216147                                            ; +0x7e, 0x14021610e\nmov     rax, [rbx]                                                     ; +0x80, 0x140216110\ncall    qword ptr [rax+0C8h]                                           ; +0x83, 0x140216113\nmov     rdx, rax                                                       ; +0x89, 0x140216119\nlea     rcx, [rsp+38h+arg_8]                                           ; +0x8c, 0x14021611c\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x91, 0x140216121\nmovss   xmm0, cs:flt_140622C24                                         ; +0x97, 0x140216127\nxorps   xmm3, xmm3                                                     ; +0x9f, 0x14021612f\nmov     r8, rax                                                        ; +0xa2, 0x140216132\nmovss   [rsp+38h+var_18], xmm0                                         ; +0xa5, 0x140216135\nmov     edx, esi                                                       ; +0xab, 0x14021613b\nmov     rcx, rdi                                                       ; +0xad, 0x14021613d\ncall    GJBaseGameLayer__spawnParticleTrigger                          ; +0xb0, 0x140216140\njmp     short loc_14021614F                                            ; +0xb5, 0x140216145\nmov     rdx, rdi                                                       ; +0xb7, 0x140216147\ncall    GameObject__spawnDefaultPickupParticle                         ; +0xba, 0x14021614a\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xbf, 0x14021614f\nmov     rdx, rdi                                                       ; +0xc4, 0x140216154\nmov     rcx, rbx                                                       ; +0xc7, 0x140216157\ncall    GameObject__playDestroyObjectAnim                              ; +0xca, 0x14021615a\nlea     rcx, [rbx+140h]                                                ; +0xcf, 0x14021615f\nmov     byte ptr [rbx+3D2h], 1                                         ; +0xd6, 0x140216166\nmov     rax, [rcx]                                                     ; +0xdd, 0x14021616d\nxor     edx, edx                                                       ; +0xe0, 0x140216170\nmov     byte ptr [rbx+306h], 1                                         ; +0xe2, 0x140216172\ncall    qword ptr [rax+28h]                                            ; +0xe9, 0x140216179\nmov     rax, [rbx]                                                     ; +0xec, 0x14021617c\nmov     rcx, rbx                                                       ; +0xef, 0x14021617f\ncall    qword ptr [rax+660h]                                           ; +0xf2, 0x140216182\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xf8, 0x140216188\ncmp     eax, 15h                                                       ; +0xfd, 0x14021618d\njnz     short loc_1402161A8                                            ; +0x100, 0x140216190\nxor     r9d, r9d                                                       ; +0x102, 0x140216192\nlea     edx, [rax+28h]                                                 ; +0x105, 0x140216195\nxor     r8d, r8d                                                       ; +0x108, 0x140216198\nmov     rcx, rdi                                                       ; +0x10b, 0x14021619b\nadd     rsp, 30h                                                       ; +0x10e, 0x14021619e\npop     rdi                                                            ; +0x112, 0x1402161a2\njmp     GJBaseGameLayer__gameEventTriggered                            ; +0x113, 0x1402161a3\nadd     rsp, 30h                                                       ; +0x118, 0x1402161a8\npop     rdi                                                            ; +0x11c, 0x1402161ac\nretn                                                                   ; +0x11d, 0x1402161ad", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x140215c2e", "GJBaseGameLayer::collisionCheckObjects @ 0x140215d2b", "PlayerObject::collidedWithObjectInternal @ 0x14039285e", "PlayerObject::collidedWithObjectInternal @ 0x140392e85", "PlayerObject::collidedWithObjectInternal @ 0x140393ba7", "<???> @ 0x14067f2f0", "<???> @ 0x14067f324", "<???> @ 0x1406cd0d4", "<???> @ 0x1406cd0e0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}