{"type": "func", "start": 4296182080, "end": 4296182273, "name": "GJBaseGameLayer::destroyObject", "pseudocode": "// \n// GJBaseGameLayer::destroyObject from 0x100128940 to 0x100128a01 (193 bytes)\n// \n// 9 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x10012726c\n// > GJBaseGameLayer::collisionCheckObjects @ 0x100127ae1\n// > PlayerObject::collidedWithObjectInternal @ 0x100409dab\n// > PlayerObject::collidedWithObjectInternal @ 0x100409e02\n// > PlayerObject::collidedWithObjectInternal @ 0x10040a31b\n// > PlayerObject::collidedWithObjectInternal @ 0x10040a3d4\n// > PlayerObject::collidedWithObjectInternal @ 0x10040a712\n// > PlayerObject::collidedWithObjectInternal @ 0x10040b180\n// > PlayerObject::collidedWithObjectInternal @ 0x10040b2fe\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 __fastcall GJBaseGameLayer::destroyObject(GJBaseGameLayer *a1, GameObject *a2)\n{\n  float v2; // xmm2_4\n  int v3; // r15d\n  _BYTE v4[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  if ( ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 30 && GameObject::shouldShowPickupEffects(a2) )\n  {\n    v3 = *(_DWORD *)(&a2[1]._cascadeOpacityEnabled + 3);\n    if ( v3 <= 0 )\n    {\n      GameObject::spawnDefaultPickupParticle(a2, a1);\n    }\n    else\n    {\n      ((void (__fastcall *)(GameObject *))a2->getPosition)(a2);\n      sub_10028CC60(v4);\n      GJBaseGameLayer::spawnParticleTrigger(a1, v3, 0, 1.0, v2);\n    }\n  }\n  GameObject::playDestroyObjectAnim(a2, a1);\n  GameObject::destroyObject(a2);\n  if ( ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 21 )\n    GJBaseGameLayer::gameEventTriggered(a1, DestroyBlock, 0, 0);\n}", "assembly": "; \n; GJBaseGameLayer::destroyObject from 0x100128940 to 0x100128a01 (193 bytes)\n; \n; 9 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x10012726c\n; > GJBaseGameLayer::collisionCheckObjects @ 0x100127ae1\n; > PlayerObject::collidedWithObjectInternal @ 0x100409dab\n; > PlayerObject::collidedWithObjectInternal @ 0x100409e02\n; > PlayerObject::collidedWithObjectInternal @ 0x10040a31b\n; > PlayerObject::collidedWithObjectInternal @ 0x10040a3d4\n; > PlayerObject::collidedWithObjectInternal @ 0x10040a712\n; > PlayerObject::collidedWithObjectInternal @ 0x10040b180\n; > PlayerObject::collidedWithObjectInternal @ 0x10040b2fe\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    rbp                                                            ; +0x0, 0x100128940\nmov     rbp, rsp                                                       ; +0x1, 0x100128941\npush    r15                                                            ; +0x4, 0x100128944\npush    r14                                                            ; +0x6, 0x100128946\npush    r12                                                            ; +0x8, 0x100128948\npush    rbx                                                            ; +0xa, 0x10012894a\nsub     rsp, 10h                                                       ; +0xb, 0x10012894b\nmov     r14, rsi                                                       ; +0xf, 0x10012894f\nmov     rbx, rdi                                                       ; +0x12, 0x100128952\nmov     rax, [rsi]                                                     ; +0x15, 0x100128955\nmov     rdi, rsi                                                       ; +0x18, 0x100128958\ncall    qword ptr [rax+6F8h]                                           ; +0x1b, 0x10012895b\ncmp     eax, 1Eh                                                       ; +0x21, 0x100128961\njnz     short loc_1001289BF                                            ; +0x24, 0x100128964\nmov     rdi, r14                                                       ; +0x26, 0x100128966\ncall    GameObject__shouldShowPickupEffects                            ; +0x29, 0x100128969\ntest    al, al                                                         ; +0x2e, 0x10012896e\njz      short loc_1001289BF                                            ; +0x30, 0x100128970\nmov     r15d, [r14+69Ch]                                               ; +0x32, 0x100128972\ntest    r15d, r15d                                                     ; +0x39, 0x100128979\njle     short loc_1001289B4                                            ; +0x3c, 0x10012897c\nmov     rax, [r14]                                                     ; +0x3e, 0x10012897e\nmov     rdi, r14                                                       ; +0x41, 0x100128981\ncall    qword ptr [rax+0C0h]                                           ; +0x44, 0x100128984\nlea     r12, [rbp+var_28]                                              ; +0x4a, 0x10012898a\nmov     rdi, r12                                                       ; +0x4e, 0x10012898e\nmov     rsi, rax                                                       ; +0x51, 0x100128991\ncall    sub_10028CC60                                                  ; +0x54, 0x100128994\nmovss   xmm1, cs:alpha                                                 ; +0x59, 0x100128999\nxorps   xmm0, xmm0                                                     ; +0x61, 0x1001289a1\nmov     rdi, rbx                                                       ; +0x64, 0x1001289a4\nmov     esi, r15d                                                      ; +0x67, 0x1001289a7\nmov     rdx, r12                                                       ; +0x6a, 0x1001289aa\ncall    GJBaseGameLayer__spawnParticleTrigger                          ; +0x6d, 0x1001289ad\njmp     short loc_1001289BF                                            ; +0x72, 0x1001289b2\nmov     rdi, r14                                                       ; +0x74, 0x1001289b4\nmov     rsi, rbx                                                       ; +0x77, 0x1001289b7\ncall    GameObject__spawnDefaultPickupParticle                         ; +0x7a, 0x1001289ba\nmov     rdi, r14                                                       ; +0x7f, 0x1001289bf\nmov     rsi, rbx                                                       ; +0x82, 0x1001289c2\ncall    GameObject__playDestroyObjectAnim                              ; +0x85, 0x1001289c5\nmov     rdi, r14                                                       ; +0x8a, 0x1001289ca\ncall    GameObject__destroyObject                                      ; +0x8d, 0x1001289cd\nmov     rax, [r14]                                                     ; +0x92, 0x1001289d2\nmov     rdi, r14                                                       ; +0x95, 0x1001289d5\ncall    qword ptr [rax+6F8h]                                           ; +0x98, 0x1001289d8\ncmp     eax, 15h                                                       ; +0x9e, 0x1001289de\njnz     short loc_1001289F4                                            ; +0xa1, 0x1001289e1\nmov     rdi, rbx                                                       ; +0xa3, 0x1001289e3\nmov     esi, 3Dh ; '='                                                 ; +0xa6, 0x1001289e6\nxor     edx, edx                                                       ; +0xab, 0x1001289eb\nxor     ecx, ecx                                                       ; +0xad, 0x1001289ed\ncall    GJBaseGameLayer__gameEventTriggered                            ; +0xaf, 0x1001289ef\nadd     rsp, 10h                                                       ; +0xb4, 0x1001289f4\npop     rbx                                                            ; +0xb8, 0x1001289f8\npop     r12                                                            ; +0xb9, 0x1001289f9\npop     r14                                                            ; +0xbb, 0x1001289fb\npop     r15                                                            ; +0xbd, 0x1001289fd\npop     rbp                                                            ; +0xbf, 0x1001289ff\nretn                                                                   ; +0xc0, 0x100128a00", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x10012726c", "GJBaseGameLayer::collisionCheckObjects @ 0x100127ae1", "PlayerObject::collidedWithObjectInternal @ 0x100409dab", "PlayerObject::collidedWithObjectInternal @ 0x100409e02", "PlayerObject::collidedWithObjectInternal @ 0x10040a31b", "PlayerObject::collidedWithObjectInternal @ 0x10040a3d4", "PlayerObject::collidedWithObjectInternal @ 0x10040a712", "PlayerObject::collidedWithObjectInternal @ 0x10040b180", "PlayerObject::collidedWithObjectInternal @ 0x10040b2fe"], "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"}