{"type": "func", "start": 4296261792, "end": 4296261953, "name": "GJBaseGameLayer::spawnParticle", "pseudocode": "// \n// GJBaseGameLayer::spawnParticle from 0x10013c0a0 to 0x10013c141 (161 bytes)\n// \n// 3 xrefs:\n// > GameObject::spawnDefaultPickupParticle @ 0x100248361\n// > GameObject::playDestroyObjectAnim @ 0x10024856f\n// > GameObject::playDestroyObjectAnim @ 0x1002485df\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:24:53 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::spawnParticle(__int64 a1, __int64 a2, __int64 a3, unsigned int a4, __int64 a5)\n{\n  unsigned int v7; // r15d\n  double v8; // xmm0_8\n  __int64 v9; // rax\n  __int64 v10; // r14\n\n  v7 = a3;\n  *(_QWORD *)&v8 = GameManager::sharedState(a1, a2, a3).u64[0];\n  if ( *(_BYTE *)(v9 + 925) )\n    return 0;\n  v10 = cocos2d::CCParticleSystemQuad::create(a2, 0);\n  (*(void (__fastcall **)(__int64, _QWORD, double))(*(_QWORD *)v10 + 72LL))(v10, v7, v8);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 1568LL))(v10, a4);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 1584LL))(v10, 1);\n  (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 3920) + 464LL))(*(_QWORD *)(a1 + 3920), v10, v7);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 184LL))(v10, a5);\n  return v10;\n}", "assembly": "; \n; GJBaseGameLayer::spawnParticle from 0x10013c0a0 to 0x10013c141 (161 bytes)\n; \n; 3 xrefs:\n; > GameObject::spawnDefaultPickupParticle @ 0x100248361\n; > GameObject::playDestroyObjectAnim @ 0x10024856f\n; > GameObject::playDestroyObjectAnim @ 0x1002485df\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:24:53 +0000\n; \npush    rbp                                                            ; +0x0, 0x10013c0a0\nmov     rbp, rsp                                                       ; +0x1, 0x10013c0a1\npush    r15                                                            ; +0x4, 0x10013c0a4\npush    r14                                                            ; +0x6, 0x10013c0a6\npush    r13                                                            ; +0x8, 0x10013c0a8\npush    r12                                                            ; +0xa, 0x10013c0aa\npush    rbx                                                            ; +0xc, 0x10013c0ac\npush    rax                                                            ; +0xd, 0x10013c0ad\nmov     rbx, r8                                                        ; +0xe, 0x10013c0ae\nmov     r13d, ecx                                                      ; +0x11, 0x10013c0b1\nmov     r15d, edx                                                      ; +0x14, 0x10013c0b4\nmov     r14, rsi                                                       ; +0x17, 0x10013c0b7\nmov     r12, rdi                                                       ; +0x1a, 0x10013c0ba\ncall    GameManager__sharedState                                       ; +0x1d, 0x10013c0bd\ncmp     byte ptr [rax+39Dh], 0                                         ; +0x22, 0x10013c0c2\njz      short loc_10013C0D0                                            ; +0x29, 0x10013c0c9\nxor     r14d, r14d                                                     ; +0x2b, 0x10013c0cb\njmp     short loc_10013C12F                                            ; +0x2e, 0x10013c0ce\nmov     rdi, r14                                                       ; +0x30, 0x10013c0d0\nxor     esi, esi                                                       ; +0x33, 0x10013c0d3\ncall    cocos2d__CCParticleSystemQuad__create                          ; +0x35, 0x10013c0d5\nmov     r14, rax                                                       ; +0x3a, 0x10013c0da\nmov     rax, [rax]                                                     ; +0x3d, 0x10013c0dd\nmov     rdi, r14                                                       ; +0x40, 0x10013c0e0\nmov     esi, r15d                                                      ; +0x43, 0x10013c0e3\ncall    qword ptr [rax+48h]                                            ; +0x46, 0x10013c0e6\nmov     rax, [r14]                                                     ; +0x49, 0x10013c0e9\nmov     rdi, r14                                                       ; +0x4c, 0x10013c0ec\nmov     esi, r13d                                                      ; +0x4f, 0x10013c0ef\ncall    qword ptr [rax+620h]                                           ; +0x52, 0x10013c0f2\nmov     rax, [r14]                                                     ; +0x58, 0x10013c0f8\nmov     rdi, r14                                                       ; +0x5b, 0x10013c0fb\nmov     esi, 1                                                         ; +0x5e, 0x10013c0fe\ncall    qword ptr [rax+630h]                                           ; +0x63, 0x10013c103\nmov     rdi, [r12+0F50h]                                               ; +0x69, 0x10013c109\nmov     rax, [rdi]                                                     ; +0x71, 0x10013c111\nmov     rsi, r14                                                       ; +0x74, 0x10013c114\nmov     edx, r15d                                                      ; +0x77, 0x10013c117\ncall    qword ptr [rax+1D0h]                                           ; +0x7a, 0x10013c11a\nmov     rax, [r14]                                                     ; +0x80, 0x10013c120\nmov     rdi, r14                                                       ; +0x83, 0x10013c123\nmov     rsi, rbx                                                       ; +0x86, 0x10013c126\ncall    qword ptr [rax+0B8h]                                           ; +0x89, 0x10013c129\nmov     rax, r14                                                       ; +0x8f, 0x10013c12f\nadd     rsp, 8                                                         ; +0x92, 0x10013c132\npop     rbx                                                            ; +0x96, 0x10013c136\npop     r12                                                            ; +0x97, 0x10013c137\npop     r13                                                            ; +0x99, 0x10013c139\npop     r14                                                            ; +0x9b, 0x10013c13b\npop     r15                                                            ; +0x9d, 0x10013c13d\npop     rbp                                                            ; +0x9f, 0x10013c13f\nretn                                                                   ; +0xa0, 0x10013c140", "xrefs": ["GameObject::spawnDefaultPickupParticle @ 0x100248361", "GameObject::playDestroyObjectAnim @ 0x10024856f", "GameObject::playDestroyObjectAnim @ 0x1002485df"], "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"}