{"type": "func", "start": 5371974752, "end": 5371975040, "name": "GJBaseGameLayer::destroyObject", "pseudocode": "// \n// GJBaseGameLayer::destroyObject from 0x14031d460 to 0x14031d580 (288 bytes)\n// \n// 9 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cfd1\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031d112\n// > PlayerObject::collidedWithObjectInternal @ 0x1404f0ae5\n// > PlayerObject::collidedWithObjectInternal @ 0x1404f10dd\n// > PlayerObject::collidedWithObjectInternal @ 0x1404f1db0\n// > <???> @ 0x1408b5238\n// > <???> @ 0x1408b526c\n// > <???> @ 0x14091ec14\n// > <???> @ 0x14091ec20\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 11:30:21 +0000\n// \n\ndouble __fastcall GJBaseGameLayer::destroyObject(__int64 a1, __int64 a2)\n{\n  __int64 v4; // rcx\n  int v5; // esi\n  const struct cocos2d::CCPoint *v6; // rax\n  double result; // xmm0_8\n  int v8; // eax\n  int v9; // r9d\n  __int64 v10; // rax\n  char v11; // [rsp+48h] [rbp+10h] BYREF\n\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 1648LL))(a2) == 30\n    && !*(_BYTE *)(a2 + 1052)\n    && !*(_BYTE *)(a2 + 1007)\n    && ((*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(a2 + 320) + 32LL))(a2 + 320)\n     || (v4 = *(_QWORD *)(a2 + 896)) != 0\n     && (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(v4 + 320) + 32LL))(v4 + 320)) )\n  {\n    v5 = *(_DWORD *)(a2 + 1708);\n    if ( v5 <= 0 )\n    {\n      GameObject::spawnDefaultPickupParticle(a2, a1);\n    }\n    else\n    {\n      v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, v6);\n      *(_QWORD *)&result = 1065353216;\n      GJBaseGameLayer::spawnParticleTrigger(a1, v5, v8, v9, 1065353216);\n    }\n  }\n  GameObject::playDestroyObjectAnim(a2, a1);\n  *(_BYTE *)(a2 + 978) = 1;\n  v10 = *(_QWORD *)(a2 + 320);\n  *(_BYTE *)(a2 + 774) = 1;\n  (*(void (__fastcall **)(__int64, _QWORD))(v10 + 40))(a2 + 320, 0);\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 1648LL))(a2) == 21 )\n    return GJBaseGameLayer::gameEventTriggered(a1, 61, 0, 0);\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::destroyObject from 0x14031d460 to 0x14031d580 (288 bytes)\n; \n; 9 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031cfd1\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031d112\n; > PlayerObject::collidedWithObjectInternal @ 0x1404f0ae5\n; > PlayerObject::collidedWithObjectInternal @ 0x1404f10dd\n; > PlayerObject::collidedWithObjectInternal @ 0x1404f1db0\n; > <???> @ 0x1408b5238\n; > <???> @ 0x1408b526c\n; > <???> @ 0x14091ec14\n; > <???> @ 0x14091ec20\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 11:30:21 +0000\n; \npush    rdi                                                            ; +0x0, 0x14031d460\nsub     rsp, 30h                                                       ; +0x2, 0x14031d462\nmov     rax, [rdx]                                                     ; +0x6, 0x14031d466\nmov     rdi, rcx                                                       ; +0x9, 0x14031d469\nmov     [rsp+38h+arg_0], rbx                                           ; +0xc, 0x14031d46c\nmov     rcx, rdx                                                       ; +0x11, 0x14031d471\nmov     rbx, rdx                                                       ; +0x14, 0x14031d474\ncall    qword ptr [rax+670h]                                           ; +0x17, 0x14031d477\ncmp     eax, 1Eh                                                       ; +0x1d, 0x14031d47d\njnz     loc_14031D524                                                  ; +0x20, 0x14031d480\ncmp     byte ptr [rbx+41Ch], 0                                         ; +0x26, 0x14031d486\njnz     loc_14031D524                                                  ; +0x2d, 0x14031d48d\ncmp     byte ptr [rbx+3EFh], 0                                         ; +0x33, 0x14031d493\njnz     loc_14031D524                                                  ; +0x3a, 0x14031d49a\nlea     rcx, [rbx+140h]                                                ; +0x40, 0x14031d4a0\nmov     rax, [rcx]                                                     ; +0x47, 0x14031d4a7\ncall    qword ptr [rax+20h]                                            ; +0x4a, 0x14031d4aa\ntest    al, al                                                         ; +0x4d, 0x14031d4ad\njnz     short loc_14031D4CE                                            ; +0x4f, 0x14031d4af\nmov     rcx, [rbx+380h]                                                ; +0x51, 0x14031d4b1\ntest    rcx, rcx                                                       ; +0x58, 0x14031d4b8\njz      short loc_14031D524                                            ; +0x5b, 0x14031d4bb\nadd     rcx, 140h                                                      ; +0x5d, 0x14031d4bd\nmov     rax, [rcx]                                                     ; +0x64, 0x14031d4c4\ncall    qword ptr [rax+20h]                                            ; +0x67, 0x14031d4c7\ntest    al, al                                                         ; +0x6a, 0x14031d4ca\njz      short loc_14031D524                                            ; +0x6c, 0x14031d4cc\nmov     [rsp+38h+arg_10], rsi                                          ; +0x6e, 0x14031d4ce\nmov     rcx, rbx                                                       ; +0x73, 0x14031d4d3\nmov     esi, [rbx+6ACh]                                                ; +0x76, 0x14031d4d6\ntest    esi, esi                                                       ; +0x7c, 0x14031d4dc\njle     short loc_14031D517                                            ; +0x7e, 0x14031d4de\nmov     rax, [rbx]                                                     ; +0x80, 0x14031d4e0\ncall    qword ptr [rax+0C8h]                                           ; +0x83, 0x14031d4e3\nmov     rdx, rax                                                       ; +0x89, 0x14031d4e9\nlea     rcx, [rsp+38h+arg_8]                                           ; +0x8c, 0x14031d4ec\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x91, 0x14031d4f1\nmovss   xmm0, cs:flt_140835080                                         ; +0x97, 0x14031d4f7\nxorps   xmm3, xmm3                                                     ; +0x9f, 0x14031d4ff\nmov     r8, rax                                                        ; +0xa2, 0x14031d502\nmovss   [rsp+38h+var_18], xmm0                                         ; +0xa5, 0x14031d505\nmov     edx, esi                                                       ; +0xab, 0x14031d50b\nmov     rcx, rdi                                                       ; +0xad, 0x14031d50d\ncall    GJBaseGameLayer__spawnParticleTrigger                          ; +0xb0, 0x14031d510\njmp     short loc_14031D51F                                            ; +0xb5, 0x14031d515\nmov     rdx, rdi                                                       ; +0xb7, 0x14031d517\ncall    GameObject__spawnDefaultPickupParticle                         ; +0xba, 0x14031d51a\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xbf, 0x14031d51f\nmov     rdx, rdi                                                       ; +0xc4, 0x14031d524\nmov     rcx, rbx                                                       ; +0xc7, 0x14031d527\ncall    GameObject__playDestroyObjectAnim                              ; +0xca, 0x14031d52a\nlea     rcx, [rbx+140h]                                                ; +0xcf, 0x14031d52f\nmov     byte ptr [rbx+3D2h], 1                                         ; +0xd6, 0x14031d536\nmov     rax, [rcx]                                                     ; +0xdd, 0x14031d53d\nxor     edx, edx                                                       ; +0xe0, 0x14031d540\nmov     byte ptr [rbx+306h], 1                                         ; +0xe2, 0x14031d542\ncall    qword ptr [rax+28h]                                            ; +0xe9, 0x14031d549\nmov     rax, [rbx]                                                     ; +0xec, 0x14031d54c\nmov     rcx, rbx                                                       ; +0xef, 0x14031d54f\ncall    qword ptr [rax+670h]                                           ; +0xf2, 0x14031d552\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xf8, 0x14031d558\ncmp     eax, 15h                                                       ; +0xfd, 0x14031d55d\njnz     short loc_14031D57A                                            ; +0x100, 0x14031d560\nxor     r9d, r9d                                                       ; +0x102, 0x14031d562\nxor     r8d, r8d                                                       ; +0x105, 0x14031d565\nmov     edx, 3Dh ; '='                                                 ; +0x108, 0x14031d568\nmov     rcx, rdi                                                       ; +0x10d, 0x14031d56d\nadd     rsp, 30h                                                       ; +0x110, 0x14031d570\npop     rdi                                                            ; +0x114, 0x14031d574\njmp     GJBaseGameLayer__gameEventTriggered                            ; +0x115, 0x14031d575\nadd     rsp, 30h                                                       ; +0x11a, 0x14031d57a\npop     rdi                                                            ; +0x11e, 0x14031d57e\nretn                                                                   ; +0x11f, 0x14031d57f", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x14031cfd1", "GJBaseGameLayer::collisionCheckObjects @ 0x14031d112", "PlayerObject::collidedWithObjectInternal @ 0x1404f0ae5", "PlayerObject::collidedWithObjectInternal @ 0x1404f10dd", "PlayerObject::collidedWithObjectInternal @ 0x1404f1db0", "<???> @ 0x1408b5238", "<???> @ 0x1408b526c", "<???> @ 0x14091ec14", "<???> @ 0x14091ec20"], "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"}