{"type": "func", "start": 4297608404, "end": 4297608632, "name": "GJBaseGameLayer::destroyObject", "pseudocode": "// \n// GJBaseGameLayer::destroyObject from 0x100284cd4 to 0x100284db8 (228 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x100283e8c\n// > GJBaseGameLayer::collisionCheckObjects @ 0x100284594\n// > PlayerObject::collidedWithObjectInternal @ 0x1002bf7b8\n// > PlayerObject::collidedWithObjectInternal @ 0x1002bfb54\n// > PlayerObject::collidedWithObjectInternal @ 0x1002bfc4c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:01:57 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::destroyObject(__int64 a1, unsigned int *a2)\n{\n  __int64 v4; // x21\n  double *v5; // x0\n  __int64 v6; // [xsp+8h] [xbp-28h] BYREF\n\n  if ( (*(unsigned int (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 1800LL))(a2) == 30\n    && (unsigned int)GameObject::shouldShowPickupEffects(a2) )\n  {\n    v4 = a2[423];\n    if ( (int)v4 < 1 )\n    {\n      GameObject::spawnDefaultPickupParticle(a2, a1);\n    }\n    else\n    {\n      v5 = (double *)(*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 192LL))(a2);\n      sub_1000262F4(&v6, v5);\n      GJBaseGameLayer::spawnParticleTrigger(a1, v4, &v6, 0.0, 1.0);\n    }\n  }\n  GameObject::playDestroyObjectAnim(a2, a1);\n  GameObject::destroyObject(a2);\n  if ( (*(unsigned int (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 1800LL))(a2) == 21 )\n    GJBaseGameLayer::gameEventTriggered(a1, 61, 0, 0);\n}", "assembly": "; \n; GJBaseGameLayer::destroyObject from 0x100284cd4 to 0x100284db8 (228 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x100283e8c\n; > GJBaseGameLayer::collisionCheckObjects @ 0x100284594\n; > PlayerObject::collidedWithObjectInternal @ 0x1002bf7b8\n; > PlayerObject::collidedWithObjectInternal @ 0x1002bfb54\n; > PlayerObject::collidedWithObjectInternal @ 0x1002bfc4c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:01:57 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x100284cd4\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100284cd8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100284cdc\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100284ce0\nADD             X29, SP, #0x30                                         ; +0x10, 0x100284ce4\nMOV             X20, X1                                                ; +0x14, 0x100284ce8\nMOV             X19, X0                                                ; +0x18, 0x100284cec\nLDR             X8, [X1]                                               ; +0x1c, 0x100284cf0\nLDR             X8, [X8,#0x708]                                        ; +0x20, 0x100284cf4\nMOV             X0, X1                                                 ; +0x24, 0x100284cf8\nBLR             X8                                                     ; +0x28, 0x100284cfc\nCMP             W0, #0x1E                                              ; +0x2c, 0x100284d00\nB.NE            loc_100284D64                                          ; +0x30, 0x100284d04\nMOV             X0, X20                                                ; +0x34, 0x100284d08\nBL              GameObject__shouldShowPickupEffects                    ; +0x38, 0x100284d0c\nCBZ             W0, loc_100284D64                                      ; +0x3c, 0x100284d10\nLDR             W21, [X20,#0x69C]                                      ; +0x40, 0x100284d14\nCMP             W21, #1                                                ; +0x44, 0x100284d18\nB.LT            loc_100284D58                                          ; +0x48, 0x100284d1c\nLDR             X8, [X20]                                              ; +0x4c, 0x100284d20\nLDR             X8, [X8,#0xC0]                                         ; +0x50, 0x100284d24\nMOV             X0, X20                                                ; +0x54, 0x100284d28\nBLR             X8                                                     ; +0x58, 0x100284d2c\nMOV             X1, X0                                                 ; +0x5c, 0x100284d30\nADD             X0, SP, #0x30+var_28                                   ; +0x60, 0x100284d34\nBL              sub_1000262F4                                          ; +0x64, 0x100284d38\nADD             X2, SP, #0x30+var_28                                   ; +0x68, 0x100284d3c\nFMOV            S0, WZR                                                ; +0x6c, 0x100284d40\nFMOV            S1, #1.0                                               ; +0x70, 0x100284d44\nMOV             X0, X19                                                ; +0x74, 0x100284d48\nMOV             X1, X21                                                ; +0x78, 0x100284d4c\nBL              GJBaseGameLayer__spawnParticleTrigger                  ; +0x7c, 0x100284d50\nB               loc_100284D64                                          ; +0x80, 0x100284d54\nMOV             X0, X20                                                ; +0x84, 0x100284d58\nMOV             X1, X19                                                ; +0x88, 0x100284d5c\nBL              GameObject__spawnDefaultPickupParticle                 ; +0x8c, 0x100284d60\nMOV             X0, X20                                                ; +0x90, 0x100284d64\nMOV             X1, X19                                                ; +0x94, 0x100284d68\nBL              GameObject__playDestroyObjectAnim                      ; +0x98, 0x100284d6c\nMOV             X0, X20                                                ; +0x9c, 0x100284d70\nBL              GameObject__destroyObject                              ; +0xa0, 0x100284d74\nLDR             X8, [X20]                                              ; +0xa4, 0x100284d78\nLDR             X8, [X8,#0x708]                                        ; +0xa8, 0x100284d7c\nMOV             X0, X20                                                ; +0xac, 0x100284d80\nBLR             X8                                                     ; +0xb0, 0x100284d84\nCMP             W0, #0x15                                              ; +0xb4, 0x100284d88\nB.NE            loc_100284DA4                                          ; +0xb8, 0x100284d8c\nMOV             X0, X19                                                ; +0xbc, 0x100284d90\nMOV             W1, #0x3D ; '='                                        ; +0xc0, 0x100284d94\nMOV             W2, #0                                                 ; +0xc4, 0x100284d98\nMOV             W3, #0                                                 ; +0xc8, 0x100284d9c\nBL              GJBaseGameLayer__gameEventTriggered                    ; +0xcc, 0x100284da0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd0, 0x100284da4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd4, 0x100284da8\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xd8, 0x100284dac\nADD             SP, SP, #0x40 ; '@'                                    ; +0xdc, 0x100284db0\nRET                                                                    ; +0xe0, 0x100284db4", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x100283e8c", "GJBaseGameLayer::collisionCheckObjects @ 0x100284594", "PlayerObject::collidedWithObjectInternal @ 0x1002bf7b8", "PlayerObject::collidedWithObjectInternal @ 0x1002bfb54", "PlayerObject::collidedWithObjectInternal @ 0x1002bfc4c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}