{"type": "func", "start": 5369143296, "end": 5369143510, "name": "GhostTrailEffect::create", "pseudocode": "// \n// GhostTrailEffect::create from 0x14006a000 to 0x14006a0d6 (214 bytes)\n// \n// 3 xrefs:\n// > PlayerObject::toggleGhostEffect @ 0x14039eedc\n// > PlayerObject::toggleGhostEffect @ 0x14039efb1\n// > <???> @ 0x1406c5f1c\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\n// Hidden C++ exception states: #wind=2\nGhostTrailEffect *GhostTrailEffect::create()\n{\n  GhostTrailEffect *v0; // rbx\n  bool (*init)(GhostTrailEffect *); // rdx\n  bool v2; // al\n\n  v0 = (GhostTrailEffect *)operator new(0x198u);\n  cocos2d::CCNode::CCNode(v0);\n  v0->__vftable = (GhostTrailEffect_vtbl *)&GhostTrailEffect::`vftable';\n  *(_QWORD *)&v0->m_snapshotInterval = 0;\n  v0->m_ghostScale = 0.0;\n  v0->m_scaleTwice = 0;\n  v0->m_playerScale = 0.0;\n  v0->m_iconSprite = nullptr;\n  v0->m_playerObject = nullptr;\n  v0->m_objectLayer = nullptr;\n  v0->m_opacity = 0.0;\n  v0->m_delegate = nullptr;\n  cocos2d::CCPoint::CCPoint(&v0->m_position);\n  v0->m_unk194 = 0;\n  init = (bool (*)(GhostTrailEffect *))v0->init;\n  if ( init == GhostTrailEffect::init )\n    v2 = GhostTrailEffect::init(v0);\n  else\n    v2 = init(v0);\n  if ( v2 )\n  {\n    cocos2d::CCObject::autorelease(v0);\n    return v0;\n  }\n  else\n  {\n    ((void (__fastcall *)(GhostTrailEffect *, __int64))v0->~GhostTrailEffect)(v0, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GhostTrailEffect::create from 0x14006a000 to 0x14006a0d6 (214 bytes)\n; \n; 3 xrefs:\n; > PlayerObject::toggleGhostEffect @ 0x14039eedc\n; > PlayerObject::toggleGhostEffect @ 0x14039efb1\n; > <???> @ 0x1406c5f1c\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], rbx                                               ; +0x0, 0x14006a000\npush    rdi                                                            ; +0x5, 0x14006a005\nsub     rsp, 20h                                                       ; +0x6, 0x14006a006\nmov     ecx, 198h; Size                                                ; +0xa, 0x14006a00a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf, 0x14006a00f\nmov     rbx, rax                                                       ; +0x14, 0x14006a014\nmov     [rsp+28h+arg_0], rax                                           ; +0x17, 0x14006a017\nmov     rcx, rax                                                       ; +0x1c, 0x14006a01c\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x1f, 0x14006a01f\nnop                                                                    ; +0x25, 0x14006a025\nlea     rax, ??_7GhostTrailEffect@@6B@; const GhostTrailEffect::`vftable' ; +0x26, 0x14006a026\nmov     [rbx], rax                                                     ; +0x2d, 0x14006a02d\nxor     edi, edi                                                       ; +0x30, 0x14006a030\nmov     [rbx+140h], rdi                                                ; +0x32, 0x14006a032\nmov     [rbx+148h], edi                                                ; +0x39, 0x14006a039\nmov     [rbx+14Ch], dil                                                ; +0x3f, 0x14006a03f\nmov     [rbx+150h], edi                                                ; +0x46, 0x14006a046\nmov     [rbx+160h], rdi                                                ; +0x4c, 0x14006a04c\nmov     [rbx+168h], rdi                                                ; +0x53, 0x14006a053\nmov     [rbx+170h], rdi                                                ; +0x5a, 0x14006a05a\nmov     [rbx+178h], edi                                                ; +0x61, 0x14006a061\nmov     [rbx+180h], rdi                                                ; +0x67, 0x14006a067\nlea     rcx, [rbx+18Ch]                                                ; +0x6e, 0x14006a06e\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x75, 0x14006a075\nmov     [rbx+194h], dil                                                ; +0x7b, 0x14006a07b\nmov     rax, [rbx]                                                     ; +0x82, 0x14006a082\nmov     rdx, [rax+48h]                                                 ; +0x85, 0x14006a085\nlea     rax, GhostTrailEffect__init                                    ; +0x89, 0x14006a089\nmov     rcx, rbx                                                       ; +0x90, 0x14006a090\ncmp     rdx, rax                                                       ; +0x93, 0x14006a093\njnz     short loc_14006A09F                                            ; +0x96, 0x14006a096\ncall    GhostTrailEffect__init                                         ; +0x98, 0x14006a098\njmp     short loc_14006A0A1                                            ; +0x9d, 0x14006a09d\ncall    rdx                                                            ; +0x9f, 0x14006a09f\nmov     rcx, rbx                                                       ; +0xa1, 0x14006a0a1\ntest    al, al                                                         ; +0xa4, 0x14006a0a4\njz      short loc_14006A0BC                                            ; +0xa6, 0x14006a0a6\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xa8, 0x14006a0a8\nmov     rax, rbx                                                       ; +0xae, 0x14006a0ae\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb1, 0x14006a0b1\nadd     rsp, 20h                                                       ; +0xb6, 0x14006a0b6\npop     rdi                                                            ; +0xba, 0x14006a0ba\nretn                                                                   ; +0xbb, 0x14006a0bb\nmov     r8, [rbx]                                                      ; +0xbc, 0x14006a0bc\nmov     edx, 1                                                         ; +0xbf, 0x14006a0bf\ncall    qword ptr [r8+8]                                               ; +0xc4, 0x14006a0c4\nmov     rax, rdi                                                       ; +0xc8, 0x14006a0c8\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xcb, 0x14006a0cb\nadd     rsp, 20h                                                       ; +0xd0, 0x14006a0d0\npop     rdi                                                            ; +0xd4, 0x14006a0d4\nretn                                                                   ; +0xd5, 0x14006a0d5", "xrefs": ["PlayerObject::toggleGhostEffect @ 0x14039eedc", "PlayerObject::toggleGhostEffect @ 0x14039efb1", "<???> @ 0x1406c5f1c"], "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"}