{"type": "func", "start": 4792360, "end": 4792518, "name": "GJBaseGameLayer::destroyObject", "pseudocode": "// \n// GJBaseGameLayer::destroyObject from 0x492028 to 0x4920c6 (158 bytes)\n// \n// 6 xrefs:\n// > PlayerObject::collidedWithObjectInternal @ 0x345e08\n// > PlayerObject::collidedWithObjectInternal @ 0x345fbc\n// > PlayerObject::collidedWithObjectInternal @ 0x346476\n// > PlayerObject::collidedWithObjectInternal @ 0x346668\n// > GJBaseGameLayer::collisionCheckObjects @ 0x492ad2\n// > GJBaseGameLayer::collisionCheckObjects @ 0x492bc2\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  int width_low; // r7\n  const cocos2d::CCPoint *v5; // r0\n  cocos2d::CCPoint v6; // [sp+Ch] [bp-Ch] BYREF\n\n  if ( a2->getType(a2) == Collectible && GameObject::shouldShowPickupEffects(a2) )\n  {\n    width_low = LODWORD(a2[1].m_obRect.size.width);\n    if ( width_low <= 0 )\n    {\n      GameObject::spawnDefaultPickupParticle(a2, a1);\n    }\n    else\n    {\n      v5 = a2->getPosition(a2);\n      cocos2d::CCPoint::CCPoint(&v6, v5);\n      GJBaseGameLayer::spawnParticleTrigger(a1, width_low, &v6, 0.0, 1.0);\n    }\n  }\n  GameObject::playDestroyObjectAnim(a2, a1);\n  GameObject::destroyObject(a2);\n  if ( a2->getType(a2) == Breakable )\n    GJBaseGameLayer::gameEventTriggered(a1, DestroyBlock, 0, 0);\n}", "assembly": "; \n; GJBaseGameLayer::destroyObject from 0x492028 to 0x4920c6 (158 bytes)\n; \n; 6 xrefs:\n; > PlayerObject::collidedWithObjectInternal @ 0x345e08\n; > PlayerObject::collidedWithObjectInternal @ 0x345fbc\n; > PlayerObject::collidedWithObjectInternal @ 0x346476\n; > PlayerObject::collidedWithObjectInternal @ 0x346668\n; > GJBaseGameLayer::collisionCheckObjects @ 0x492ad2\n; > GJBaseGameLayer::collisionCheckObjects @ 0x492bc2\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.W          {R4-R8,LR}                                             ; +0x0, 0x492028\nSUB             SP, SP, #0x18                                          ; +0x4, 0x49202c\nLDR             R5, =(__stack_chk_guard_ptr - 0x49203A)                ; +0x6, 0x49202e\nMOV             R6, R0                                                 ; +0x8, 0x492030\nMOV             R0, R1                                                 ; +0xa, 0x492032\nMOV             R4, R1                                                 ; +0xc, 0x492034\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x492036\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x492038\nLDR             R3, [R5]                                               ; +0x12, 0x49203a\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x14, 0x49203c\nLDR             R3, [R1]                                               ; +0x16, 0x49203e\nLDR.W           R3, [R3,#0x37C]                                        ; +0x18, 0x492040\nBLX             R3                                                     ; +0x1c, 0x492044\nCMP             R0, #0x1E                                              ; +0x1e, 0x492046\nBNE             loc_492080                                             ; +0x20, 0x492048\nMOV             R0, R4; this                                           ; +0x22, 0x49204a\nBL              _ZN10GameObject23shouldShowPickupEffectsEv; GameObject::shouldShowPickupEffects(void) ; +0x24, 0x49204c\nCBZ             R0, loc_492080                                         ; +0x28, 0x492050\nLDR.W           R7, [R4,#0x5E0]                                        ; +0x2a, 0x492052\nCMP             R7, #0                                                 ; +0x2e, 0x492056\nBLE             loc_4920AA                                             ; +0x30, 0x492058\nLDR             R3, [R4]                                               ; +0x32, 0x49205a\nMOV             R0, R4                                                 ; +0x34, 0x49205c\nADD.W           R8, SP, #0x18+var_C                                    ; +0x36, 0x49205e\nLDR             R3, [R3,#0x60]                                         ; +0x3a, 0x492062\nBLX             R3                                                     ; +0x3c, 0x492064\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x3e, 0x492066\nMOV             R0, R8; this                                           ; +0x40, 0x492068\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x42, 0x49206a\nMOV.W           R3, #0x3F800000                                        ; +0x46, 0x49206e\nMOV             R0, R6                                                 ; +0x4a, 0x492072\nSTR             R3, [SP,#0x18+var_18]                                  ; +0x4c, 0x492074\nMOV             R1, R7                                                 ; +0x4e, 0x492076\nMOV             R2, R8                                                 ; +0x50, 0x492078\nMOVS            R3, #0                                                 ; +0x52, 0x49207a\nBL              _ZN15GJBaseGameLayer20spawnParticleTriggerEiN7cocos2d7CCPointEff; GJBaseGameLayer::spawnParticleTrigger(int,cocos2d::CCPoint,float,float) ; +0x54, 0x49207c\nMOV             R1, R6; GJBaseGameLayer *                              ; +0x58, 0x492080\nMOV             R0, R4; this                                           ; +0x5a, 0x492082\nBL              _ZN10GameObject21playDestroyObjectAnimEP15GJBaseGameLayer; GameObject::playDestroyObjectAnim(GJBaseGameLayer *) ; +0x5c, 0x492084\nMOV             R0, R4; this                                           ; +0x60, 0x492088\nBL              _ZN10GameObject13destroyObjectEv; GameObject::destroyObject(void) ; +0x62, 0x49208a\nLDR             R3, [R4]                                               ; +0x66, 0x49208e\nMOV             R0, R4                                                 ; +0x68, 0x492090\nLDR.W           R3, [R3,#0x37C]                                        ; +0x6a, 0x492092\nBLX             R3                                                     ; +0x6e, 0x492096\nCMP             R0, #0x15                                              ; +0x70, 0x492098\nBNE             loc_4920B4                                             ; +0x72, 0x49209a\nMOVS            R2, #0                                                 ; +0x74, 0x49209c\nMOV             R0, R6                                                 ; +0x76, 0x49209e\nMOVS            R1, #0x3D ; '='                                        ; +0x78, 0x4920a0\nMOV             R3, R2                                                 ; +0x7a, 0x4920a2\nBL              _ZN15GJBaseGameLayer18gameEventTriggeredE11GJGameEventii; GJBaseGameLayer::gameEventTriggered(GJGameEvent,int,int) ; +0x7c, 0x4920a4\nB               loc_4920B4                                             ; +0x80, 0x4920a8\nMOV             R0, R4; this                                           ; +0x82, 0x4920aa\nMOV             R1, R6; GJBaseGameLayer *                              ; +0x84, 0x4920ac\nBL              _ZN10GameObject26spawnDefaultPickupParticleEP15GJBaseGameLayer; GameObject::spawnDefaultPickupParticle(GJBaseGameLayer *) ; +0x86, 0x4920ae\nB               loc_492080                                             ; +0x8a, 0x4920b2\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x8c, 0x4920b4\nLDR             R3, [R5]                                               ; +0x8e, 0x4920b6\nCMP             R2, R3                                                 ; +0x90, 0x4920b8\nBEQ             loc_4920C0                                             ; +0x92, 0x4920ba\nBLX             __stack_chk_fail                                       ; +0x94, 0x4920bc\nADD             SP, SP, #0x18                                          ; +0x98, 0x4920c0\nPOP.W           {R4-R8,PC}                                             ; +0x9a, 0x4920c2", "xrefs": ["PlayerObject::collidedWithObjectInternal @ 0x345e08", "PlayerObject::collidedWithObjectInternal @ 0x345fbc", "PlayerObject::collidedWithObjectInternal @ 0x346476", "PlayerObject::collidedWithObjectInternal @ 0x346668", "GJBaseGameLayer::collisionCheckObjects @ 0x492ad2", "GJBaseGameLayer::collisionCheckObjects @ 0x492bc2"], "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"}