{"type": "func", "start": 5371729616, "end": 5371729803, "name": "LevelEditorLayer::claimCustomParticle", "pseudocode": "// \n// LevelEditorLayer::claimCustomParticle from 0x1402e16d0 to 0x1402e178b (187 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x140586418\n// > <???> @ 0x1406d36d4\n// > <???> @ 0x1406d36e0\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\ncocos2d::CCParticleSystemQuad *__fastcall LevelEditorLayer::claimCustomParticle(\n        __int64 a1,\n        __int64 a2,\n        const cocos2d::ParticleStruct *a3,\n        int a4,\n        int a5,\n        int a6,\n        unsigned __int8 a7)\n{\n  cocos2d::CCParticleSystemQuad *v10; // rbx\n  _BOOL8 v11; // rdx\n  cocos2d::CCNode *v12; // rax\n\n  if ( !*(_BYTE *)(a1 + 14259) )\n    return nullptr;\n  v10 = GameToolbox::particleFromStruct(a3, nullptr, 1);\n  cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 12576), v10);\n  cocos2d::CCParticleSystem::resetSystem(v10);\n  LOBYTE(v11) = 1;\n  v10->setVisible(v10, v11);\n  v10->setAutoRemoveOnFinish(v10, a7);\n  v12 = GJBaseGameLayer::parentForZLayer((GJBaseGameLayer *)a1, a4, 0, 4, 0);\n  v12->addChild_0(v12, v10, a5);\n  return v10;\n}", "assembly": "; \n; LevelEditorLayer::claimCustomParticle from 0x1402e16d0 to 0x1402e178b (187 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x140586418\n; > <???> @ 0x1406d36d4\n; > <???> @ 0x1406d36e0\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_8], rsi                                               ; +0x0, 0x1402e16d0\npush    rdi                                                            ; +0x5, 0x1402e16d5\nsub     rsp, 30h                                                       ; +0x6, 0x1402e16d6\ncmp     byte ptr [rcx+37B3h], 0                                        ; +0xa, 0x1402e16da\nmov     esi, r9d                                                       ; +0x11, 0x1402e16e1\nmov     rax, r8                                                        ; +0x14, 0x1402e16e4\nmov     rdi, rcx                                                       ; +0x17, 0x1402e16e7\njnz     short loc_1402E16F9                                            ; +0x1a, 0x1402e16ea\nxor     eax, eax                                                       ; +0x1c, 0x1402e16ec\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x1e, 0x1402e16ee\nadd     rsp, 30h                                                       ; +0x23, 0x1402e16f3\npop     rdi                                                            ; +0x27, 0x1402e16f7\nretn                                                                   ; +0x28, 0x1402e16f8\nmov     r8b, 1                                                         ; +0x29, 0x1402e16f9\nmov     [rsp+38h+arg_0], rbx                                           ; +0x2c, 0x1402e16fc\nxor     edx, edx                                                       ; +0x31, 0x1402e1701\nmov     rcx, rax                                                       ; +0x33, 0x1402e1703\ncall    GameToolbox__particleFromStruct                                ; +0x36, 0x1402e1706\nmov     rcx, [rdi+3120h]                                               ; +0x3b, 0x1402e170b\nmov     rdx, rax                                                       ; +0x42, 0x1402e1712\nmov     rbx, rax                                                       ; +0x45, 0x1402e1715\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x48, 0x1402e1718\nmov     rcx, rbx                                                       ; +0x4e, 0x1402e171e\ncall    cs:?resetSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::resetSystem(void) ; +0x51, 0x1402e1721\nmov     r8, [rbx]                                                      ; +0x57, 0x1402e1727\nmov     dl, 1                                                          ; +0x5a, 0x1402e172a\nmov     rcx, rbx                                                       ; +0x5c, 0x1402e172c\ncall    qword ptr [r8+140h]                                            ; +0x5f, 0x1402e172f\nmov     r8, [rbx]                                                      ; +0x66, 0x1402e1736\nmov     rcx, rbx                                                       ; +0x69, 0x1402e1739\nmovzx   edx, [rsp+38h+arg_30]                                          ; +0x6c, 0x1402e173c\ncall    qword ptr [r8+5F8h]                                            ; +0x71, 0x1402e1741\nmov     r9d, 4                                                         ; +0x78, 0x1402e1748\nmov     [rsp+38h+var_18], 0                                            ; +0x7e, 0x1402e174e\nxor     r8d, r8d                                                       ; +0x86, 0x1402e1756\nmov     edx, esi                                                       ; +0x89, 0x1402e1759\nmov     rcx, rdi                                                       ; +0x8b, 0x1402e175b\ncall    GJBaseGameLayer__parentForZLayer                               ; +0x8e, 0x1402e175e\nmov     r8d, [rsp+38h+arg_20]                                          ; +0x93, 0x1402e1763\nmov     rdx, rbx                                                       ; +0x98, 0x1402e1768\nmov     rcx, rax                                                       ; +0x9b, 0x1402e176b\nmov     r9, [rax]                                                      ; +0x9e, 0x1402e176e\ncall    qword ptr [r9+1B8h]                                            ; +0xa1, 0x1402e1771\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xa8, 0x1402e1778\nmov     rax, rbx                                                       ; +0xad, 0x1402e177d\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb0, 0x1402e1780\nadd     rsp, 30h                                                       ; +0xb5, 0x1402e1785\npop     rdi                                                            ; +0xb9, 0x1402e1789\nretn                                                                   ; +0xba, 0x1402e178a", "xrefs": ["<???> @ 0x140586418", "<???> @ 0x1406d36d4", "<???> @ 0x1406d36e0"], "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"}