{"type": "func", "start": 5372157680, "end": 5372157901, "name": "GJBaseGameLayer::spawnParticle", "pseudocode": "// \n// GJBaseGameLayer::spawnParticle from 0x140349ef0 to 0x140349fcd (221 bytes)\n// \n// 4 xrefs:\n// > GameObject::spawnDefaultPickupParticle @ 0x1402a767c\n// > GameObject::playDestroyObjectAnim @ 0x1402a7900\n// > GameObject::playDestroyObjectAnim @ 0x1402a8614\n// > <???> @ 0x14091ffc4\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:44 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCParticleSystemQuad *__fastcall GJBaseGameLayer::spawnParticle(\n        __int64 a1,\n        const char *a2,\n        __int64 a3,\n        __int64 a4,\n        __int64 a5)\n{\n  __int64 v7; // rax\n  struct cocos2d::CCParticleSystemQuad *v9; // rbx\n  __int64 v10; // rdx\n  void *v11; // [rsp+20h] [rbp-18h]\n\n  v7 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v11 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v7 = qword_14090BFD0;\n  }\n  if ( *(_BYTE *)(v7 + 957) )\n    return nullptr;\n  v9 = cocos2d::CCParticleSystemQuad::create(a2, 0);\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, _QWORD))(*(_QWORD *)v9 + 64LL))(v9, 0);\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v9 + 1528LL))(v9, 2);\n  LOBYTE(v10) = 1;\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v9 + 1544LL))(v9, v10);\n  (*(void (__fastcall **)(_QWORD, struct cocos2d::CCParticleSystemQuad *, _QWORD))(**(_QWORD **)(a1 + 4296) + 456LL))(\n    *(_QWORD *)(a1 + 4296),\n    v9,\n    0);\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v9 + 184LL))(v9, a5);\n  return v9;\n}", "assembly": "; \n; GJBaseGameLayer::spawnParticle from 0x140349ef0 to 0x140349fcd (221 bytes)\n; \n; 4 xrefs:\n; > GameObject::spawnDefaultPickupParticle @ 0x1402a767c\n; > GameObject::playDestroyObjectAnim @ 0x1402a7900\n; > GameObject::playDestroyObjectAnim @ 0x1402a8614\n; > <???> @ 0x14091ffc4\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:44 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140349ef0\npush    rdi                                                            ; +0x5, 0x140349ef5\nsub     rsp, 30h                                                       ; +0x6, 0x140349ef6\nmov     rbx, rdx                                                       ; +0xa, 0x140349efa\nmov     rdi, rcx                                                       ; +0xd, 0x140349efd\nmov     rax, cs:qword_14090BFD0                                        ; +0x10, 0x140349f00\ntest    rax, rax                                                       ; +0x17, 0x140349f07\njnz     short loc_140349F3E                                            ; +0x1a, 0x140349f0a\nmov     ecx, 6E8h; Size                                                ; +0x1c, 0x140349f0c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21, 0x140349f11\nmov     [rsp+38h+var_18], rax                                          ; +0x26, 0x140349f16\nmov     rcx, rax                                                       ; +0x2b, 0x140349f1b\ncall    GameManager__GameManager                                       ; +0x2e, 0x140349f1e\nnop                                                                    ; +0x33, 0x140349f23\nmov     cs:qword_14090BFD0, rax                                        ; +0x34, 0x140349f24\nmov     rcx, [rax]                                                     ; +0x3b, 0x140349f2b\nmov     rdx, [rcx+48h]                                                 ; +0x3e, 0x140349f2e\nmov     rcx, rax                                                       ; +0x42, 0x140349f32\ncall    rdx                                                            ; +0x45, 0x140349f35\nmov     rax, cs:qword_14090BFD0                                        ; +0x47, 0x140349f37\ncmp     byte ptr [rax+3BDh], 0                                         ; +0x4e, 0x140349f3e\njz      short loc_140349F54                                            ; +0x55, 0x140349f45\nxor     eax, eax                                                       ; +0x57, 0x140349f47\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x59, 0x140349f49\nadd     rsp, 30h                                                       ; +0x5e, 0x140349f4e\npop     rdi                                                            ; +0x62, 0x140349f52\nretn                                                                   ; +0x63, 0x140349f53\nxor     edx, edx                                                       ; +0x64, 0x140349f54\nmov     rcx, rbx                                                       ; +0x66, 0x140349f56\ncall    cs:?create@CCParticleSystemQuad@cocos2d@@SAPEAV12@PEBD_N@Z; cocos2d::CCParticleSystemQuad::create(char const *,bool) ; +0x69, 0x140349f59\nmov     rbx, rax                                                       ; +0x6f, 0x140349f5f\nmov     rcx, [rax]                                                     ; +0x72, 0x140349f62\nmov     r8, [rcx+40h]                                                  ; +0x75, 0x140349f65\nxor     edx, edx                                                       ; +0x79, 0x140349f69\nmov     rcx, rax                                                       ; +0x7b, 0x140349f6b\ncall    r8                                                             ; +0x7e, 0x140349f6e\nmov     rcx, [rbx]                                                     ; +0x81, 0x140349f71\nmov     r8, [rcx+5F8h]                                                 ; +0x84, 0x140349f74\nmov     edx, 2                                                         ; +0x8b, 0x140349f7b\nmov     rcx, rbx                                                       ; +0x90, 0x140349f80\ncall    r8                                                             ; +0x93, 0x140349f83\nmov     rcx, [rbx]                                                     ; +0x96, 0x140349f86\nmov     r8, [rcx+608h]                                                 ; +0x99, 0x140349f89\nmov     dl, 1                                                          ; +0xa0, 0x140349f90\nmov     rcx, rbx                                                       ; +0xa2, 0x140349f92\ncall    r8                                                             ; +0xa5, 0x140349f95\nmov     rcx, [rdi+10C8h]                                               ; +0xa8, 0x140349f98\nmov     rax, [rcx]                                                     ; +0xaf, 0x140349f9f\nxor     r8d, r8d                                                       ; +0xb2, 0x140349fa2\nmov     rdx, rbx                                                       ; +0xb5, 0x140349fa5\ncall    qword ptr [rax+1C8h]                                           ; +0xb8, 0x140349fa8\nmov     rax, [rbx]                                                     ; +0xbe, 0x140349fae\nmov     rdx, [rsp+38h+arg_20]                                          ; +0xc1, 0x140349fb1\nmov     rcx, rbx                                                       ; +0xc6, 0x140349fb6\ncall    qword ptr [rax+0B8h]                                           ; +0xc9, 0x140349fb9\nmov     rax, rbx                                                       ; +0xcf, 0x140349fbf\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd2, 0x140349fc2\nadd     rsp, 30h                                                       ; +0xd7, 0x140349fc7\npop     rdi                                                            ; +0xdb, 0x140349fcb\nretn                                                                   ; +0xdc, 0x140349fcc", "xrefs": ["GameObject::spawnDefaultPickupParticle @ 0x1402a767c", "GameObject::playDestroyObjectAnim @ 0x1402a7900", "GameObject::playDestroyObjectAnim @ 0x1402a8614", "<???> @ 0x14091ffc4"], "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"}