{"type": "func", "start": 4296040912, "end": 4296041105, "name": "GJBaseGameLayer::destroyObject", "pseudocode": "// \n// GJBaseGameLayer::destroyObject from 0x1001061d0 to 0x100106291 (193 bytes)\n// \n// 9 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x100104ce7\n// > GJBaseGameLayer::collisionCheckObjects @ 0x100105567\n// > PlayerObject::collidedWithObjectInternal @ 0x1003f6f2b\n// > PlayerObject::collidedWithObjectInternal @ 0x1003f6f82\n// > PlayerObject::collidedWithObjectInternal @ 0x1003f749b\n// > PlayerObject::collidedWithObjectInternal @ 0x1003f7554\n// > PlayerObject::collidedWithObjectInternal @ 0x1003f7892\n// > PlayerObject::collidedWithObjectInternal @ 0x1003f8300\n// > PlayerObject::collidedWithObjectInternal @ 0x1003f847e\n// \n// This function is hookable on this platform (idp: pc, 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 12:21:31 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::destroyObject(__int64 a1, _DWORD *a2, double a3)\n{\n  int v3; // r15d\n  __int64 v4; // rax\n  _BYTE v5[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  if ( (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1800LL))(a2) == 30\n    && (unsigned __int8)GameObject::shouldShowPickupEffects(a2) )\n  {\n    v3 = a2[423];\n    if ( v3 <= 0 )\n    {\n      GameObject::spawnDefaultPickupParticle(a2, a1);\n    }\n    else\n    {\n      v4 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 192LL))(a2);\n      sub_1002782D0(v5, v4);\n      a3 = 0.0;\n      GJBaseGameLayer::spawnParticleTrigger(a1, (unsigned int)v3, v5, 0.0, 1.0);\n    }\n  }\n  GameObject::playDestroyObjectAnim(a2, a1);\n  GameObject::destroyObject(a2);\n  if ( (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1800LL))(a2) == 21 )\n    GJBaseGameLayer::gameEventTriggered(a1, 61, 0, 0, a3);\n}", "assembly": "; \n; GJBaseGameLayer::destroyObject from 0x1001061d0 to 0x100106291 (193 bytes)\n; \n; 9 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x100104ce7\n; > GJBaseGameLayer::collisionCheckObjects @ 0x100105567\n; > PlayerObject::collidedWithObjectInternal @ 0x1003f6f2b\n; > PlayerObject::collidedWithObjectInternal @ 0x1003f6f82\n; > PlayerObject::collidedWithObjectInternal @ 0x1003f749b\n; > PlayerObject::collidedWithObjectInternal @ 0x1003f7554\n; > PlayerObject::collidedWithObjectInternal @ 0x1003f7892\n; > PlayerObject::collidedWithObjectInternal @ 0x1003f8300\n; > PlayerObject::collidedWithObjectInternal @ 0x1003f847e\n; \n; This function is hookable on this platform (idp: pc, 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 12:21:31 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001061d0\nmov     rbp, rsp                                                       ; +0x1, 0x1001061d1\npush    r15                                                            ; +0x4, 0x1001061d4\npush    r14                                                            ; +0x6, 0x1001061d6\npush    r12                                                            ; +0x8, 0x1001061d8\npush    rbx                                                            ; +0xa, 0x1001061da\nsub     rsp, 10h                                                       ; +0xb, 0x1001061db\nmov     r14, rsi                                                       ; +0xf, 0x1001061df\nmov     rbx, rdi                                                       ; +0x12, 0x1001061e2\nmov     rax, [rsi]                                                     ; +0x15, 0x1001061e5\nmov     rdi, rsi                                                       ; +0x18, 0x1001061e8\ncall    qword ptr [rax+708h]                                           ; +0x1b, 0x1001061eb\ncmp     eax, 1Eh                                                       ; +0x21, 0x1001061f1\njnz     short loc_10010624F                                            ; +0x24, 0x1001061f4\nmov     rdi, r14                                                       ; +0x26, 0x1001061f6\ncall    GameObject__shouldShowPickupEffects                            ; +0x29, 0x1001061f9\ntest    al, al                                                         ; +0x2e, 0x1001061fe\njz      short loc_10010624F                                            ; +0x30, 0x100106200\nmov     r15d, [r14+69Ch]                                               ; +0x32, 0x100106202\ntest    r15d, r15d                                                     ; +0x39, 0x100106209\njle     short loc_100106244                                            ; +0x3c, 0x10010620c\nmov     rax, [r14]                                                     ; +0x3e, 0x10010620e\nmov     rdi, r14                                                       ; +0x41, 0x100106211\ncall    qword ptr [rax+0C0h]                                           ; +0x44, 0x100106214\nlea     r12, [rbp+var_28]                                              ; +0x4a, 0x10010621a\nmov     rdi, r12                                                       ; +0x4e, 0x10010621e\nmov     rsi, rax                                                       ; +0x51, 0x100106221\ncall    sub_1002782D0                                                  ; +0x54, 0x100106224\nmovss   xmm1, cs:alpha                                                 ; +0x59, 0x100106229\nxorps   xmm0, xmm0                                                     ; +0x61, 0x100106231\nmov     rdi, rbx                                                       ; +0x64, 0x100106234\nmov     esi, r15d                                                      ; +0x67, 0x100106237\nmov     rdx, r12                                                       ; +0x6a, 0x10010623a\ncall    GJBaseGameLayer__spawnParticleTrigger                          ; +0x6d, 0x10010623d\njmp     short loc_10010624F                                            ; +0x72, 0x100106242\nmov     rdi, r14                                                       ; +0x74, 0x100106244\nmov     rsi, rbx                                                       ; +0x77, 0x100106247\ncall    GameObject__spawnDefaultPickupParticle                         ; +0x7a, 0x10010624a\nmov     rdi, r14                                                       ; +0x7f, 0x10010624f\nmov     rsi, rbx                                                       ; +0x82, 0x100106252\ncall    GameObject__playDestroyObjectAnim                              ; +0x85, 0x100106255\nmov     rdi, r14                                                       ; +0x8a, 0x10010625a\ncall    GameObject__destroyObject                                      ; +0x8d, 0x10010625d\nmov     rax, [r14]                                                     ; +0x92, 0x100106262\nmov     rdi, r14                                                       ; +0x95, 0x100106265\ncall    qword ptr [rax+708h]                                           ; +0x98, 0x100106268\ncmp     eax, 15h                                                       ; +0x9e, 0x10010626e\njnz     short loc_100106284                                            ; +0xa1, 0x100106271\nmov     rdi, rbx                                                       ; +0xa3, 0x100106273\nmov     esi, 3Dh ; '='                                                 ; +0xa6, 0x100106276\nxor     edx, edx                                                       ; +0xab, 0x10010627b\nxor     ecx, ecx                                                       ; +0xad, 0x10010627d\ncall    GJBaseGameLayer__gameEventTriggered                            ; +0xaf, 0x10010627f\nadd     rsp, 10h                                                       ; +0xb4, 0x100106284\npop     rbx                                                            ; +0xb8, 0x100106288\npop     r12                                                            ; +0xb9, 0x100106289\npop     r14                                                            ; +0xbb, 0x10010628b\npop     r15                                                            ; +0xbd, 0x10010628d\npop     rbp                                                            ; +0xbf, 0x10010628f\nretn                                                                   ; +0xc0, 0x100106290", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x100104ce7", "GJBaseGameLayer::collisionCheckObjects @ 0x100105567", "PlayerObject::collidedWithObjectInternal @ 0x1003f6f2b", "PlayerObject::collidedWithObjectInternal @ 0x1003f6f82", "PlayerObject::collidedWithObjectInternal @ 0x1003f749b", "PlayerObject::collidedWithObjectInternal @ 0x1003f7554", "PlayerObject::collidedWithObjectInternal @ 0x1003f7892", "PlayerObject::collidedWithObjectInternal @ 0x1003f8300", "PlayerObject::collidedWithObjectInternal @ 0x1003f847e"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}