{"type": "func", "start": 4298068368, "end": 4298068544, "name": "GhostTrailEffect::runWithTarget", "pseudocode": "// \n// GhostTrailEffect::runWithTarget from 0x1002f5190 to 0x1002f5240 (176 bytes)\n// \n// 1 xrefs:\n// > PlayerObject::toggleGhostEffect @ 0x1002275ec\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\nvoid __fastcall GhostTrailEffect::runWithTarget(\n        GhostTrailEffect *a1,\n        cocos2d::CCSprite *a2,\n        float a3,\n        float a4,\n        float a5,\n        float a6,\n        bool a7)\n{\n  cocos2d::CCDelayTime *v9; // x20\n  char v10; // w0\n  __int64 v11; // x1\n  __int64 v12; // x2\n  __int64 v13; // x3\n  __int64 v14; // x4\n  __int64 v15; // x5\n  __int64 v16; // x6\n  __int64 v17; // x7\n  cocos2d::CCSequence *v18; // x1\n  cocos2d::SEL_SCHEDULE v19; // 0:x1.16\n  cocos2d::SEL_CallFunc v20; // 0:x1.16\n\n  a1->m_iconSprite = a2;\n  a1->m_snapshotInterval = a3;\n  a1->m_fadeInterval = a4;\n  a1->m_ghostScale = fmaxf(a6, 0.1);\n  a1->m_scaleTwice = a7;\n  v19.ptr = (void (__cdecl *)(float))GhostTrailEffect::trailSnapshot;\n  v19.adj = 0;\n  cocos2d::CCNode::schedule(a1, v19, a3);\n  if ( a5 > 0.0 )\n  {\n    v9 = cocos2d::CCDelayTime::create(a5);\n    v20.ptr = (void (*)(void))GhostTrailEffect::stopTrail;\n    v20.adj = 0;\n    v10 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v20);\n    v18 = sub_10018A494(v9, v11, v12, v13, v14, v15, v16, v17, v10);\n    cocos2d::CCNode::runAction(a1, v18);\n  }\n}", "assembly": "; \n; GhostTrailEffect::runWithTarget from 0x1002f5190 to 0x1002f5240 (176 bytes)\n; \n; 1 xrefs:\n; > PlayerObject::toggleGhostEffect @ 0x1002275ec\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1002f5190\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x1002f5194\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1002f5198\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1002f519c\nADD             X29, SP, #0x30                                         ; +0x10, 0x1002f51a0\nFMOV            S8, S2                                                 ; +0x14, 0x1002f51a4\nMOV             X19, X0                                                ; +0x18, 0x1002f51a8\nSTR             X1, [X0,#0x158]                                        ; +0x1c, 0x1002f51ac\nSTR             S0, [X0,#0x13C]                                        ; +0x20, 0x1002f51b0\nSTR             S1, [X0,#0x140]                                        ; +0x24, 0x1002f51b4\nADRP            X8, #dword_100635370@PAGE                              ; +0x28, 0x1002f51b8\nLDR             S1, [X8,#dword_100635370@PAGEOFF]                      ; +0x2c, 0x1002f51bc\nFMAXNM          S1, S3, S1                                             ; +0x30, 0x1002f51c0\nSTR             S1, [X0,#0x144]                                        ; +0x34, 0x1002f51c4\nSTRB            W2, [X0,#0x148]                                        ; +0x38, 0x1002f51c8\nADRL            X1, GhostTrailEffect__trailSnapshot                    ; +0x3c, 0x1002f51cc\nMOV             X2, #0                                                 ; +0x44, 0x1002f51d4\nBL              cocos2d__CCNode__schedule                              ; +0x48, 0x1002f51d8\nFCMP            S8, #0.0                                               ; +0x4c, 0x1002f51dc\nB.LE            loc_1002F522C                                          ; +0x50, 0x1002f51e0\nFMOV            S0, S8                                                 ; +0x54, 0x1002f51e4\nBL              cocos2d__CCDelayTime__create                           ; +0x58, 0x1002f51e8\nMOV             X20, X0                                                ; +0x5c, 0x1002f51ec\nADRL            X1, GhostTrailEffect__stopTrail                        ; +0x60, 0x1002f51f0\nMOV             X0, X19                                                ; +0x68, 0x1002f51f8\nMOV             X2, #0                                                 ; +0x6c, 0x1002f51fc\nBL              cocos2d__CCCallFunc__create                            ; +0x70, 0x1002f5200\nSTP             X0, XZR, [SP,#0x30+var_30]                             ; +0x74, 0x1002f5204\nMOV             X0, X20                                                ; +0x78, 0x1002f5208\nBL              sub_10018A494                                          ; +0x7c, 0x1002f520c\nMOV             X1, X0                                                 ; +0x80, 0x1002f5210\nMOV             X0, X19                                                ; +0x84, 0x1002f5214\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x88, 0x1002f5218\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x8c, 0x1002f521c\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0x90, 0x1002f5220\nADD             SP, SP, #0x40 ; '@'                                    ; +0x94, 0x1002f5224\nB               cocos2d__CCNode__runAction                             ; +0x98, 0x1002f5228\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x9c, 0x1002f522c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa0, 0x1002f5230\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xa4, 0x1002f5234\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa8, 0x1002f5238\nRET                                                                    ; +0xac, 0x1002f523c", "xrefs": ["PlayerObject::toggleGhostEffect @ 0x1002275ec"], "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"}