{"type": "func", "start": 4297723780, "end": 4297723980, "name": "GJBaseGameLayer::spawnParticle", "pseudocode": "// \n// GJBaseGameLayer::spawnParticle from 0x1002a0f84 to 0x1002a104c (200 bytes)\n// \n// 3 xrefs:\n// > GameObject::spawnDefaultPickupParticle @ 0x1003e7a58\n// > GameObject::playDestroyObjectAnim @ 0x1003e7c5c\n// > GameObject::playDestroyObjectAnim @ 0x1003e81cc\n// \n// This function is hookable on this platform (idp: arm, 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:02:12 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::spawnParticle(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)\n{\n  __int64 v10; // x21\n\n  if ( (*(_BYTE *)(GameManager::sharedState(a1) + 925) & 1) != 0 )\n    return 0;\n  v10 = cocos2d::CCParticleSystemQuad::create(a2, 0);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 72LL))(v10, a3);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 1568LL))(v10, a4);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 1584LL))(v10, 1);\n  (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 3920) + 464LL))(*(_QWORD *)(a1 + 3920), v10, a3);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 184LL))(v10, a5);\n  return v10;\n}", "assembly": "; \n; GJBaseGameLayer::spawnParticle from 0x1002a0f84 to 0x1002a104c (200 bytes)\n; \n; 3 xrefs:\n; > GameObject::spawnDefaultPickupParticle @ 0x1003e7a58\n; > GameObject::playDestroyObjectAnim @ 0x1003e7c5c\n; > GameObject::playDestroyObjectAnim @ 0x1003e81cc\n; \n; This function is hookable on this platform (idp: arm, 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:02:12 +0000\n; \nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x1002a0f84\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1002a0f88\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1002a0f8c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1002a0f90\nADD             X29, SP, #0x30                                         ; +0x10, 0x1002a0f94\nMOV             X19, X4                                                ; +0x14, 0x1002a0f98\nMOV             X23, X3                                                ; +0x18, 0x1002a0f9c\nMOV             X20, X2                                                ; +0x1c, 0x1002a0fa0\nMOV             X21, X1                                                ; +0x20, 0x1002a0fa4\nMOV             X22, X0                                                ; +0x24, 0x1002a0fa8\nBL              GameManager__sharedState                               ; +0x28, 0x1002a0fac\nLDRB            W8, [X0,#0x39D]                                        ; +0x2c, 0x1002a0fb0\nTBZ             W8, #0, loc_1002A0FC0                                  ; +0x30, 0x1002a0fb4\nMOV             X21, #0                                                ; +0x34, 0x1002a0fb8\nB               loc_1002A1034                                          ; +0x38, 0x1002a0fbc\nMOV             X0, X21                                                ; +0x3c, 0x1002a0fc0\nMOV             W1, #0                                                 ; +0x40, 0x1002a0fc4\nBL              cocos2d__CCParticleSystemQuad__create                  ; +0x44, 0x1002a0fc8\nMOV             X21, X0                                                ; +0x48, 0x1002a0fcc\nLDR             X8, [X0]                                               ; +0x4c, 0x1002a0fd0\nLDR             X8, [X8,#0x48]                                         ; +0x50, 0x1002a0fd4\nMOV             X1, X20                                                ; +0x54, 0x1002a0fd8\nBLR             X8                                                     ; +0x58, 0x1002a0fdc\nLDR             X8, [X21]                                              ; +0x5c, 0x1002a0fe0\nLDR             X8, [X8,#0x620]                                        ; +0x60, 0x1002a0fe4\nMOV             X0, X21                                                ; +0x64, 0x1002a0fe8\nMOV             X1, X23                                                ; +0x68, 0x1002a0fec\nBLR             X8                                                     ; +0x6c, 0x1002a0ff0\nLDR             X8, [X21]                                              ; +0x70, 0x1002a0ff4\nLDR             X8, [X8,#0x630]                                        ; +0x74, 0x1002a0ff8\nMOV             X0, X21                                                ; +0x78, 0x1002a0ffc\nMOV             W1, #1                                                 ; +0x7c, 0x1002a1000\nBLR             X8                                                     ; +0x80, 0x1002a1004\nLDR             X0, [X22,#0xF50]                                       ; +0x84, 0x1002a1008\nLDR             X8, [X0]                                               ; +0x88, 0x1002a100c\nLDR             X8, [X8,#0x1D0]                                        ; +0x8c, 0x1002a1010\nMOV             X1, X21                                                ; +0x90, 0x1002a1014\nMOV             X2, X20                                                ; +0x94, 0x1002a1018\nBLR             X8                                                     ; +0x98, 0x1002a101c\nLDR             X8, [X21]                                              ; +0x9c, 0x1002a1020\nLDR             X8, [X8,#0xB8]                                         ; +0xa0, 0x1002a1024\nMOV             X0, X21                                                ; +0xa4, 0x1002a1028\nMOV             X1, X19                                                ; +0xa8, 0x1002a102c\nBLR             X8                                                     ; +0xac, 0x1002a1030\nMOV             X0, X21                                                ; +0xb0, 0x1002a1034\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xb4, 0x1002a1038\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xb8, 0x1002a103c\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xbc, 0x1002a1040\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xc0, 0x1002a1044\nRET                                                                    ; +0xc4, 0x1002a1048", "xrefs": ["GameObject::spawnDefaultPickupParticle @ 0x1003e7a58", "GameObject::playDestroyObjectAnim @ 0x1003e7c5c", "GameObject::playDestroyObjectAnim @ 0x1003e81cc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}