{"type": "func", "start": 5371069152, "end": 5371069362, "name": "GJBaseGameLayer::spawnParticle", "pseudocode": "// \n// GJBaseGameLayer::spawnParticle from 0x1402402e0 to 0x1402403b2 (210 bytes)\n// \n// 4 xrefs:\n// > GameObject::spawnDefaultPickupParticle @ 0x1401aa2ec\n// > GameObject::playDestroyObjectAnim @ 0x1401aa574\n// > GameObject::playDestroyObjectAnim @ 0x1401ab37b\n// > <???> @ 0x1406ce3ac\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCParticleSystemQuad *GJBaseGameLayer::spawnParticle(\n        GJBaseGameLayer *a1,\n        const char *a2,\n        int a3,\n        cocos2d::tCCPositionType a4,\n        cocos2d::CCPoint a5)\n{\n  __int64 v7; // rax\n  struct cocos2d::CCParticleSystemQuad *v9; // rbx\n  _BOOL8 v10; // rdx\n  void *v11; // [rsp+20h] [rbp-18h]\n\n  v7 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v11 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v7 = qword_1406C2ED8;\n  }\n  if ( *(_BYTE *)(v7 + 917) )\n    return nullptr;\n  v9 = cocos2d::CCParticleSystemQuad::create(a2, 0);\n  v9->setTag(v9, 0);\n  v9->setPositionType(v9, kCCPositionTypeGrouped);\n  LOBYTE(v10) = 1;\n  v9->setAutoRemoveOnFinish(v9, v10);\n  a1->m_objectLayer->addChild_0(a1->m_objectLayer, v9, 0);\n  ((void (__fastcall *)(struct cocos2d::CCParticleSystemQuad *, cocos2d::CCPoint))v9->setPosition_0)(v9, a5);\n  return v9;\n}", "assembly": "; \n; GJBaseGameLayer::spawnParticle from 0x1402402e0 to 0x1402403b2 (210 bytes)\n; \n; 4 xrefs:\n; > GameObject::spawnDefaultPickupParticle @ 0x1401aa2ec\n; > GameObject::playDestroyObjectAnim @ 0x1401aa574\n; > GameObject::playDestroyObjectAnim @ 0x1401ab37b\n; > <???> @ 0x1406ce3ac\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402402e0\npush    rdi                                                            ; +0x5, 0x1402402e5\nsub     rsp, 30h                                                       ; +0x6, 0x1402402e6\nmov     rbx, rdx                                                       ; +0xa, 0x1402402ea\nmov     rdi, rcx                                                       ; +0xd, 0x1402402ed\nmov     rax, cs:qword_1406C2ED8                                        ; +0x10, 0x1402402f0\ntest    rax, rax                                                       ; +0x17, 0x1402402f7\njnz     short loc_14024032B                                            ; +0x1a, 0x1402402fa\nmov     ecx, 668h; Size                                                ; +0x1c, 0x1402402fc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21, 0x140240301\nmov     [rsp+38h+var_18], rax                                          ; +0x26, 0x140240306\nmov     rcx, rax                                                       ; +0x2b, 0x14024030b\ncall    sub_14017AB00                                                  ; +0x2e, 0x14024030e\nnop                                                                    ; +0x33, 0x140240313\nmov     cs:qword_1406C2ED8, rax                                        ; +0x34, 0x140240314\nmov     rdx, [rax]                                                     ; +0x3b, 0x14024031b\nmov     rcx, rax                                                       ; +0x3e, 0x14024031e\ncall    qword ptr [rdx+48h]                                            ; +0x41, 0x140240321\nmov     rax, cs:qword_1406C2ED8                                        ; +0x44, 0x140240324\ncmp     byte ptr [rax+395h], 0                                         ; +0x4b, 0x14024032b\njz      short loc_140240341                                            ; +0x52, 0x140240332\nxor     eax, eax                                                       ; +0x54, 0x140240334\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x56, 0x140240336\nadd     rsp, 30h                                                       ; +0x5b, 0x14024033b\npop     rdi                                                            ; +0x5f, 0x14024033f\nretn                                                                   ; +0x60, 0x140240340\nxor     edx, edx                                                       ; +0x61, 0x140240341\nmov     rcx, rbx                                                       ; +0x63, 0x140240343\ncall    cs:?create@CCParticleSystemQuad@cocos2d@@SAPEAV12@PEBD_N@Z; cocos2d::CCParticleSystemQuad::create(char const *,bool) ; +0x66, 0x140240346\nmov     rbx, rax                                                       ; +0x6c, 0x14024034c\nmov     r8, [rax]                                                      ; +0x6f, 0x14024034f\nxor     edx, edx                                                       ; +0x72, 0x140240352\nmov     rcx, rax                                                       ; +0x74, 0x140240354\ncall    qword ptr [r8+40h]                                             ; +0x77, 0x140240357\nmov     r8, [rbx]                                                      ; +0x7b, 0x14024035b\nmov     edx, 2                                                         ; +0x7e, 0x14024035e\nmov     rcx, rbx                                                       ; +0x83, 0x140240363\ncall    qword ptr [r8+5E8h]                                            ; +0x86, 0x140240366\nmov     r8, [rbx]                                                      ; +0x8d, 0x14024036d\nmov     dl, 1                                                          ; +0x90, 0x140240370\nmov     rcx, rbx                                                       ; +0x92, 0x140240372\ncall    qword ptr [r8+5F8h]                                            ; +0x95, 0x140240375\nmov     rcx, [rdi+0FE8h]                                               ; +0x9c, 0x14024037c\nmov     r9, [rcx]                                                      ; +0xa3, 0x140240383\nxor     r8d, r8d                                                       ; +0xa6, 0x140240386\nmov     rdx, rbx                                                       ; +0xa9, 0x140240389\ncall    qword ptr [r9+1B8h]                                            ; +0xac, 0x14024038c\nmov     rax, [rbx]                                                     ; +0xb3, 0x140240393\nmov     rdx, qword ptr [rsp+38h+arg_20.x]                              ; +0xb6, 0x140240396\nmov     rcx, rbx                                                       ; +0xbb, 0x14024039b\ncall    qword ptr [rax+0B8h]                                           ; +0xbe, 0x14024039e\nmov     rax, rbx                                                       ; +0xc4, 0x1402403a4\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xc7, 0x1402403a7\nadd     rsp, 30h                                                       ; +0xcc, 0x1402403ac\npop     rdi                                                            ; +0xd0, 0x1402403b0\nretn                                                                   ; +0xd1, 0x1402403b1", "xrefs": ["GameObject::spawnDefaultPickupParticle @ 0x1401aa2ec", "GameObject::playDestroyObjectAnim @ 0x1401aa574", "GameObject::playDestroyObjectAnim @ 0x1401ab37b", "<???> @ 0x1406ce3ac"], "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"}