{"type": "func", "start": 4299186728, "end": 4299186936, "name": "LevelEditorLayer::claimCustomParticle", "pseudocode": "// \n// LevelEditorLayer::claimCustomParticle from 0x100406228 to 0x1004062f8 (208 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10094c5a0\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:04:41 +0000\n// \n\n__int64 __fastcall LevelEditorLayer::claimCustomParticle(\n        __int64 a1,\n        __int64 a2,\n        unsigned int *a3,\n        __int64 a4,\n        __int64 a5,\n        __int64 a6,\n        __int64 a7)\n{\n  __int64 v11; // x20\n  _OWORD *v12; // x0\n\n  if ( *(_BYTE *)(a1 + 14012) != 1 )\n    return 0;\n  v11 = GameToolbox::particleFromStruct(a3, 0, 1);\n  sub_1002E74E0(*(_QWORD *)(a1 + 12352));\n  cocos2d::CCParticleSystem::resetSystem(v11);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 344LL))(v11, 1);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 1584LL))(v11, a7);\n  v12 = GJBaseGameLayer::parentForZLayer(a1, a4, 0, 4, 0);\n  (*(void (__fastcall **)(_OWORD *, __int64, __int64))(*(_QWORD *)v12 + 464LL))(v12, v11, a5);\n  return v11;\n}", "assembly": "; \n; LevelEditorLayer::claimCustomParticle from 0x100406228 to 0x1004062f8 (208 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10094c5a0\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:04:41 +0000\n; \nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x100406228\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10040622c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100406230\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100406234\nADD             X29, SP, #0x30                                         ; +0x10, 0x100406238\nMOV             W8, #0x36BC                                            ; +0x14, 0x10040623c\nLDRB            W8, [X0,X8]                                            ; +0x18, 0x100406240\nCMP             W8, #1                                                 ; +0x1c, 0x100406244\nB.NE            loc_1004062DC                                          ; +0x20, 0x100406248\nMOV             X23, X6                                                ; +0x24, 0x10040624c\nMOV             X19, X4                                                ; +0x28, 0x100406250\nMOV             X21, X3                                                ; +0x2c, 0x100406254\nMOV             X22, X0                                                ; +0x30, 0x100406258\nMOV             X0, X2                                                 ; +0x34, 0x10040625c\nMOV             X1, #0                                                 ; +0x38, 0x100406260\nMOV             W2, #1                                                 ; +0x3c, 0x100406264\nBL              GameToolbox__particleFromStruct                        ; +0x40, 0x100406268\nMOV             X20, X0                                                ; +0x44, 0x10040626c\nLDR             X0, [X22,#0x3040]                                      ; +0x48, 0x100406270\nMOV             X1, X20                                                ; +0x4c, 0x100406274\nBL              sub_1002E74E0                                          ; +0x50, 0x100406278\nMOV             X0, X20                                                ; +0x54, 0x10040627c\nBL              cocos2d__CCParticleSystem__resetSystem                 ; +0x58, 0x100406280\nLDR             X8, [X20]                                              ; +0x5c, 0x100406284\nLDR             X8, [X8,#0x158]                                        ; +0x60, 0x100406288\nMOV             X0, X20                                                ; +0x64, 0x10040628c\nMOV             W1, #1                                                 ; +0x68, 0x100406290\nBLR             X8                                                     ; +0x6c, 0x100406294\nLDR             X8, [X20]                                              ; +0x70, 0x100406298\nLDR             X8, [X8,#0x630]                                        ; +0x74, 0x10040629c\nMOV             X0, X20                                                ; +0x78, 0x1004062a0\nMOV             X1, X23                                                ; +0x7c, 0x1004062a4\nBLR             X8                                                     ; +0x80, 0x1004062a8\nMOV             X0, X22                                                ; +0x84, 0x1004062ac\nMOV             X1, X21                                                ; +0x88, 0x1004062b0\nMOV             W2, #0                                                 ; +0x8c, 0x1004062b4\nMOV             W3, #4                                                 ; +0x90, 0x1004062b8\nMOV             W4, #0                                                 ; +0x94, 0x1004062bc\nBL              GJBaseGameLayer__parentForZLayer                       ; +0x98, 0x1004062c0\nLDR             X8, [X0]                                               ; +0x9c, 0x1004062c4\nLDR             X8, [X8,#0x1D0]                                        ; +0xa0, 0x1004062c8\nMOV             X1, X20                                                ; +0xa4, 0x1004062cc\nMOV             X2, X19                                                ; +0xa8, 0x1004062d0\nBLR             X8                                                     ; +0xac, 0x1004062d4\nB               loc_1004062E0                                          ; +0xb0, 0x1004062d8\nMOV             X20, #0                                                ; +0xb4, 0x1004062dc\nMOV             X0, X20                                                ; +0xb8, 0x1004062e0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xbc, 0x1004062e4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xc0, 0x1004062e8\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xc4, 0x1004062ec\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xc8, 0x1004062f0\nRET                                                                    ; +0xcc, 0x1004062f4", "xrefs": ["<???> @ 0x10094c5a0"], "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"}