{"type": "func", "start": 4298709388, "end": 4298709564, "name": "GhostTrailEffect::runWithTarget", "pseudocode": "// \n// GhostTrailEffect::runWithTarget from 0x10039198c to 0x100391a3c (176 bytes)\n// \n// 1 xrefs:\n// > PlayerObject::toggleGhostEffect @ 0x1002c424c\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:03:38 +0000\n// \n\n_DWORD *__fastcall GhostTrailEffect::runWithTarget(\n        __int64 a1,\n        __int64 a2,\n        char a3,\n        float a4,\n        float a5,\n        float a6,\n        float a7)\n{\n  _DWORD *result; // x0\n  float *v10; // x20\n  char v11; // w0\n  __int64 v12; // x1\n  __int64 v13; // x2\n  __int64 v14; // x3\n  __int64 v15; // x4\n  __int64 v16; // x5\n  __int64 v17; // x6\n  __int64 v18; // x7\n  __int64 v19; // x1\n\n  *(_QWORD *)(a1 + 344) = a2;\n  *(float *)(a1 + 316) = a4;\n  *(float *)(a1 + 320) = a5;\n  *(float *)(a1 + 324) = fmaxf(a7, 0.1);\n  *(_BYTE *)(a1 + 328) = a3;\n  result = cocos2d::CCNode::schedule(a1, (unsigned __int64)GhostTrailEffect::trailSnapshot, 0, a4);\n  if ( a6 > 0.0 )\n  {\n    v10 = cocos2d::CCDelayTime::create(a6);\n    v11 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, (__int64)GhostTrailEffect::stopTrail, 0);\n    v19 = sub_10021D420((__int64)v10, v12, v13, v14, v15, v16, v17, v18, v11);\n    return (_DWORD *)cocos2d::CCNode::runAction(a1, v19);\n  }\n  return result;\n}", "assembly": "; \n; GhostTrailEffect::runWithTarget from 0x10039198c to 0x100391a3c (176 bytes)\n; \n; 1 xrefs:\n; > PlayerObject::toggleGhostEffect @ 0x1002c424c\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:03:38 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x10039198c\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x100391990\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100391994\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100391998\nADD             X29, SP, #0x30                                         ; +0x10, 0x10039199c\nFMOV            S8, S2                                                 ; +0x14, 0x1003919a0\nMOV             X19, X0                                                ; +0x18, 0x1003919a4\nSTR             X1, [X0,#0x158]                                        ; +0x1c, 0x1003919a8\nSTR             S0, [X0,#0x13C]                                        ; +0x20, 0x1003919ac\nSTR             S1, [X0,#0x140]                                        ; +0x24, 0x1003919b0\nADRP            X8, #dword_10075BD10@PAGE                              ; +0x28, 0x1003919b4\nLDR             S1, [X8,#dword_10075BD10@PAGEOFF]                      ; +0x2c, 0x1003919b8\nFMAXNM          S1, S3, S1                                             ; +0x30, 0x1003919bc\nSTR             S1, [X0,#0x144]                                        ; +0x34, 0x1003919c0\nSTRB            W2, [X0,#0x148]                                        ; +0x38, 0x1003919c4\nADRL            X1, GhostTrailEffect__trailSnapshot                    ; +0x3c, 0x1003919c8\nMOV             X2, #0                                                 ; +0x44, 0x1003919d0\nBL              cocos2d__CCNode__schedule                              ; +0x48, 0x1003919d4\nFCMP            S8, #0.0                                               ; +0x4c, 0x1003919d8\nB.LE            loc_100391A28                                          ; +0x50, 0x1003919dc\nFMOV            S0, S8                                                 ; +0x54, 0x1003919e0\nBL              cocos2d__CCDelayTime__create                           ; +0x58, 0x1003919e4\nMOV             X20, X0                                                ; +0x5c, 0x1003919e8\nADRL            X1, GhostTrailEffect__stopTrail                        ; +0x60, 0x1003919ec\nMOV             X0, X19                                                ; +0x68, 0x1003919f4\nMOV             X2, #0                                                 ; +0x6c, 0x1003919f8\nBL              cocos2d__CCCallFunc__create                            ; +0x70, 0x1003919fc\nSTP             X0, XZR, [SP,#0x30+var_30]                             ; +0x74, 0x100391a00\nMOV             X0, X20                                                ; +0x78, 0x100391a04\nBL              sub_10021D420                                          ; +0x7c, 0x100391a08\nMOV             X1, X0                                                 ; +0x80, 0x100391a0c\nMOV             X0, X19                                                ; +0x84, 0x100391a10\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x88, 0x100391a14\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x8c, 0x100391a18\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0x90, 0x100391a1c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x94, 0x100391a20\nB               cocos2d__CCNode__runAction                             ; +0x98, 0x100391a24\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x9c, 0x100391a28\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa0, 0x100391a2c\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xa4, 0x100391a30\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa8, 0x100391a34\nRET                                                                    ; +0xac, 0x100391a38", "xrefs": ["PlayerObject::toggleGhostEffect @ 0x1002c424c"], "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"}