{"type": "func", "start": 4301233104, "end": 4301233263, "name": "GhostTrailEffect::runWithTarget", "pseudocode": "// \n// GhostTrailEffect::runWithTarget from 0x1005f9bd0 to 0x1005f9c6f (159 bytes)\n// \n// 1 xrefs:\n// > PlayerObject::toggleGhostEffect @ 0x100413345\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 *v7; // r14\n  cocos2d::CCCallFunc *v8; // rax\n  cocos2d::CCSequence *v9; // rax\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  cocos2d::CCNode::schedule_1(a1, (cocos2d::SEL_SCHEDULE)(unsigned __int64)GhostTrailEffect::trailSnapshot, a3);\n  if ( a5 > 0.0 )\n  {\n    v7 = cocos2d::CCDelayTime::create(a5);\n    v8 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)GhostTrailEffect::stopTrail);\n    v9 = sub_1003B5760(v7, v8, 0);\n    cocos2d::CCNode::runAction(a1, v9);\n  }\n}", "assembly": "; \n; GhostTrailEffect::runWithTarget from 0x1005f9bd0 to 0x1005f9c6f (159 bytes)\n; \n; 1 xrefs:\n; > PlayerObject::toggleGhostEffect @ 0x100413345\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\npush    rbp                                                            ; +0x0, 0x1005f9bd0\nmov     rbp, rsp                                                       ; +0x1, 0x1005f9bd1\npush    r14                                                            ; +0x4, 0x1005f9bd4\npush    rbx                                                            ; +0x6, 0x1005f9bd6\nsub     rsp, 10h                                                       ; +0x7, 0x1005f9bd7\nmovss   [rbp+var_14], xmm2                                             ; +0xb, 0x1005f9bdb\nmov     rbx, rdi                                                       ; +0x10, 0x1005f9be0\nmov     [rdi+158h], rsi                                                ; +0x13, 0x1005f9be3\nmovss   dword ptr [rdi+13Ch], xmm0                                     ; +0x1a, 0x1005f9bea\nmovss   dword ptr [rdi+140h], xmm1                                     ; +0x22, 0x1005f9bf2\nmaxss   xmm3, cs:dword_100815058                                       ; +0x2a, 0x1005f9bfa\nmovss   dword ptr [rdi+144h], xmm3                                     ; +0x32, 0x1005f9c02\nmov     [rdi+148h], dl                                                 ; +0x3a, 0x1005f9c0a\nlea     rsi, GhostTrailEffect__trailSnapshot                           ; +0x40, 0x1005f9c10\nxor     edx, edx                                                       ; +0x47, 0x1005f9c17\ncall    cocos2d__CCNode__schedule_1                                    ; +0x49, 0x1005f9c19\nmovss   xmm0, [rbp+var_14]                                             ; +0x4e, 0x1005f9c1e\nxorps   xmm1, xmm1                                                     ; +0x53, 0x1005f9c23\nucomiss xmm0, xmm1                                                     ; +0x56, 0x1005f9c26\njbe     short loc_1005F9C66                                            ; +0x59, 0x1005f9c29\ncall    cocos2d__CCDelayTime__create                                   ; +0x5b, 0x1005f9c2b\nmov     r14, rax                                                       ; +0x60, 0x1005f9c30\nlea     rsi, GhostTrailEffect__stopTrail                               ; +0x63, 0x1005f9c33\nmov     rdi, rbx                                                       ; +0x6a, 0x1005f9c3a\nxor     edx, edx                                                       ; +0x6d, 0x1005f9c3d\ncall    cocos2d__CCCallFunc__create                                    ; +0x6f, 0x1005f9c3f\nmov     rdi, r14                                                       ; +0x74, 0x1005f9c44\nmov     rsi, rax                                                       ; +0x77, 0x1005f9c47\nxor     edx, edx                                                       ; +0x7a, 0x1005f9c4a\nxor     eax, eax                                                       ; +0x7c, 0x1005f9c4c\ncall    sub_1003B5760                                                  ; +0x7e, 0x1005f9c4e\nmov     rdi, rbx                                                       ; +0x83, 0x1005f9c53\nmov     rsi, rax                                                       ; +0x86, 0x1005f9c56\nadd     rsp, 10h                                                       ; +0x89, 0x1005f9c59\npop     rbx                                                            ; +0x8d, 0x1005f9c5d\npop     r14                                                            ; +0x8e, 0x1005f9c5e\npop     rbp                                                            ; +0x90, 0x1005f9c60\njmp     cocos2d__CCNode__runAction                                     ; +0x91, 0x1005f9c61\nadd     rsp, 10h                                                       ; +0x96, 0x1005f9c66\npop     rbx                                                            ; +0x9a, 0x1005f9c6a\npop     r14                                                            ; +0x9b, 0x1005f9c6b\npop     rbp                                                            ; +0x9d, 0x1005f9c6d\nretn                                                                   ; +0x9e, 0x1005f9c6e", "xrefs": ["PlayerObject::toggleGhostEffect @ 0x100413345"], "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"}