{"type": "func", "start": 6442839104, "end": 6442839295, "name": "cocos2d::CCMotionStreak::create", "pseudocode": "// \n// cocos2d::CCMotionStreak::create from 0x18005ec40 to 0x18005ecff (191 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd3b4\n// \n// This function is hookable on this platform (idp: pc, 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:21:50 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCMotionStreak *__fastcall cocos2d::CCMotionStreak::create(\n        float a1,\n        float a2,\n        float a3,\n        const struct cocos2d::_ccColor3B *a4,\n        char *a5)\n{\n  cocos2d::CCMotionStreak *v6; // rax\n  cocos2d::CCObject *v7; // rbx\n  cocos2d::CCTextureCache *v8; // rax\n  struct cocos2d::CCTexture2D *v9; // rax\n\n  v6 = (cocos2d::CCMotionStreak *)sub_1800E4AC0(0x1E0u);\n  if ( v6 )\n    v7 = cocos2d::CCMotionStreak::CCMotionStreak(v6);\n  else\n    v7 = nullptr;\n  if ( v7 )\n  {\n    v8 = cocos2d::CCTextureCache::sharedTextureCache();\n    v9 = cocos2d::CCTextureCache::addImage(v8, a5, 0);\n    if ( cocos2d::CCMotionStreak::initWithFade(v7, a1, a2, a3, a4, v9) )\n    {\n      cocos2d::CCObject::autorelease(v7);\n      return v7;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCMotionStreak::create from 0x18005ec40 to 0x18005ecff (191 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd3b4\n; \n; This function is hookable on this platform (idp: pc, 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:21:50 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18005ec40\npush    rdi                                                            ; +0x5, 0x18005ec45\nsub     rsp, 70h                                                       ; +0x6, 0x18005ec46\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0xa, 0x18005ec4a\nmovaps  [rsp+78h+var_28], xmm7                                         ; +0xf, 0x18005ec4f\nmovaps  [rsp+78h+var_38], xmm8                                         ; +0x14, 0x18005ec54\nmov     rdi, r9                                                        ; +0x1a, 0x18005ec5a\nmovaps  xmm6, xmm2                                                     ; +0x1d, 0x18005ec5d\nmovaps  xmm7, xmm1                                                     ; +0x20, 0x18005ec60\nmovaps  xmm8, xmm0                                                     ; +0x23, 0x18005ec63\nmov     ecx, 1E0h; Size                                                ; +0x27, 0x18005ec67\ncall    sub_1800E4AC0                                                  ; +0x2c, 0x18005ec6c\nmov     [rsp+78h+var_48], rax                                          ; +0x31, 0x18005ec71\ntest    rax, rax                                                       ; +0x36, 0x18005ec76\njz      short loc_18005EC88                                            ; +0x39, 0x18005ec79\nmov     rcx, rax; this                                                 ; +0x3b, 0x18005ec7b\ncall    ??0CCMotionStreak@cocos2d@@QEAA@XZ; cocos2d::CCMotionStreak::CCMotionStreak(void) ; +0x3e, 0x18005ec7e\nmov     rbx, rax                                                       ; +0x43, 0x18005ec83\njmp     short loc_18005EC8A                                            ; +0x46, 0x18005ec86\nxor     ebx, ebx                                                       ; +0x48, 0x18005ec88\ntest    rbx, rbx                                                       ; +0x4a, 0x18005ec8a\njz      short loc_18005ECDF                                            ; +0x4d, 0x18005ec8d\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x4f, 0x18005ec8f\nmov     rcx, rax; this                                                 ; +0x54, 0x18005ec94\nxor     r8d, r8d; bool                                                 ; +0x57, 0x18005ec97\nmov     rdx, [rsp+78h+arg_20]; char *                                  ; +0x5a, 0x18005ec9a\ncall    ?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x62, 0x18005eca2\nmov     [rsp+78h+var_50], rax; struct cocos2d::CCTexture2D *           ; +0x67, 0x18005eca7\nmov     [rsp+78h+var_58], rdi; struct cocos2d::_ccColor3B *            ; +0x6c, 0x18005ecac\nmovaps  xmm3, xmm6; float                                              ; +0x71, 0x18005ecb1\nmovaps  xmm2, xmm7; float                                              ; +0x74, 0x18005ecb4\nmovaps  xmm1, xmm8; float                                              ; +0x77, 0x18005ecb7\nmov     rcx, rbx; this                                                 ; +0x7b, 0x18005ecbb\ncall    ?initWithFade@CCMotionStreak@cocos2d@@QEAA_NMMMAEBU_ccColor3B@2@PEAVCCTexture2D@2@@Z; cocos2d::CCMotionStreak::initWithFade(float,float,float,cocos2d::_ccColor3B const &,cocos2d::CCTexture2D *) ; +0x7e, 0x18005ecbe\nmov     rcx, rbx; this                                                 ; +0x83, 0x18005ecc3\ntest    al, al                                                         ; +0x86, 0x18005ecc6\njz      short loc_18005ECD4                                            ; +0x88, 0x18005ecc8\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x8a, 0x18005ecca\nmov     rax, rbx                                                       ; +0x8f, 0x18005eccf\njmp     short loc_18005ECE1                                            ; +0x92, 0x18005ecd2\nmov     rax, [rbx]                                                     ; +0x94, 0x18005ecd4\nmov     edx, 1                                                         ; +0x97, 0x18005ecd7\ncall    qword ptr [rax+8]                                              ; +0x9c, 0x18005ecdc\nxor     eax, eax                                                       ; +0x9f, 0x18005ecdf\nmov     rbx, [rsp+78h+arg_0]                                           ; +0xa1, 0x18005ece1\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0xa9, 0x18005ece9\nmovaps  xmm7, [rsp+78h+var_28]                                         ; +0xae, 0x18005ecee\nmovaps  xmm8, [rsp+78h+var_38]                                         ; +0xb3, 0x18005ecf3\nadd     rsp, 70h                                                       ; +0xb9, 0x18005ecf9\npop     rdi                                                            ; +0xbd, 0x18005ecfd\nretn                                                                   ; +0xbe, 0x18005ecfe", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bd3b4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}