{"type": "func", "start": 6442839296, "end": 6442839613, "name": "cocos2d::CCMotionStreak::draw", "pseudocode": "// \n// cocos2d::CCMotionStreak::draw from 0x18005ed00 to 0x18005ee3d (317 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ffbf8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd3c0\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\nvoid __fastcall cocos2d::CCMotionStreak::draw(GLenum *this, float a2)\n{\n  cocos2d::CCGLProgram *v3; // rax\n  cocos2d::CCGLProgram *v4; // rax\n  unsigned int v5; // edx\n  unsigned int v6; // r8d\n  unsigned int v7; // eax\n  unsigned int v8; // edx\n  __int64 v9; // r9\n\n  if ( *(this + 98) > 1 )\n  {\n    cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)*(this + 62), a2);\n    (*(void (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);\n    v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);\n    cocos2d::CCGLProgram::use(v3);\n    v4 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);\n    cocos2d::CCGLProgram::setUniformsForBuiltins(v4);\n    cocos2d::ccGLEnableVertexAttribs((cocos2d *)7, v5);\n    cocos2d::ccGLBlendFunc(*(this + 92), *(this + 93), v6);\n    v7 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 96LL))(*((_QWORD *)this + 45));\n    cocos2d::ccGLBindTexture2D((cocos2d *)v7, v8);\n    _glewVertexAttribPointer(0, 2, 5126, 0, 0, *((_QWORD *)this + 52));\n    _glewVertexAttribPointer(2, 2, 5126, 0, 0, *((_QWORD *)this + 54));\n    LOBYTE(v9) = 1;\n    _glewVertexAttribPointer(1, 4, 5121, v9, 0, *((_QWORD *)this + 53));\n    glDrawArrays(5u, 0, 2 * *(this + 98));\n    ++g_uNumberOfDraws;\n  }\n}", "assembly": "; \n; cocos2d::CCMotionStreak::draw from 0x18005ed00 to 0x18005ee3d (317 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ffbf8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd3c0\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; \npush    rbx                                                            ; +0x0, 0x18005ed00\nsub     rsp, 30h                                                       ; +0x2, 0x18005ed02\ncmp     dword ptr [rcx+188h], 1                                        ; +0x6, 0x18005ed06\nmov     rbx, rcx                                                       ; +0xd, 0x18005ed0d\njbe     loc_18005EE37                                                  ; +0x10, 0x18005ed10\nmov     ecx, [rcx+0F8h]; this                                          ; +0x16, 0x18005ed16\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x1c, 0x18005ed1c\nmov     rax, [rbx]                                                     ; +0x21, 0x18005ed21\nmov     rcx, rbx                                                       ; +0x24, 0x18005ed24\ncall    qword ptr [rax+288h]                                           ; +0x27, 0x18005ed27\nmov     rax, [rbx]                                                     ; +0x2d, 0x18005ed2d\nmov     rcx, rbx                                                       ; +0x30, 0x18005ed30\ncall    qword ptr [rax+288h]                                           ; +0x33, 0x18005ed33\nmov     rcx, rax; this                                                 ; +0x39, 0x18005ed39\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x3c, 0x18005ed3c\nmov     rax, [rbx]                                                     ; +0x41, 0x18005ed41\nmov     rcx, rbx                                                       ; +0x44, 0x18005ed44\ncall    qword ptr [rax+288h]                                           ; +0x47, 0x18005ed47\nmov     rcx, rax; this                                                 ; +0x4d, 0x18005ed4d\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x50, 0x18005ed50\nmov     ecx, 7; this                                                   ; +0x55, 0x18005ed55\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x5a, 0x18005ed5a\nmov     edx, [rbx+174h]; dfactor                                       ; +0x5f, 0x18005ed5f\nmov     ecx, [rbx+170h]; sfactor                                       ; +0x65, 0x18005ed65\ncall    ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x6b, 0x18005ed6b\nmov     rcx, [rbx+168h]                                                ; +0x70, 0x18005ed70\nmov     rax, [rcx]                                                     ; +0x77, 0x18005ed77\ncall    qword ptr [rax+60h]                                            ; +0x7a, 0x18005ed7a\nmov     ecx, eax; this                                                 ; +0x7d, 0x18005ed7d\ncall    ?ccGLBindTexture2D@cocos2d@@YAXI@Z; cocos2d::ccGLBindTexture2D(uint) ; +0x7f, 0x18005ed7f\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x84, 0x18005ed84\nxor     r9d, r9d                                                       ; +0x8b, 0x18005ed8b\nmov     edx, 2                                                         ; +0x8e, 0x18005ed8e\nxor     ecx, ecx                                                       ; +0x93, 0x18005ed93\nmov     r8d, 1406h                                                     ; +0x95, 0x18005ed95\nmov     r10, [rax]                                                     ; +0x9b, 0x18005ed9b\nmov     rax, [rbx+1A0h]                                                ; +0x9e, 0x18005ed9e\nmov     [rsp+38h+var_10], rax                                          ; +0xa5, 0x18005eda5\nmov     [rsp+38h+var_18], 0                                            ; +0xaa, 0x18005edaa\ncall    r10                                                            ; +0xb2, 0x18005edb2\nmov     rax, cs:__glewVertexAttribPointer                              ; +0xb5, 0x18005edb5\nmov     edx, 2                                                         ; +0xbc, 0x18005edbc\nxor     r9d, r9d                                                       ; +0xc1, 0x18005edc1\nmov     ecx, edx                                                       ; +0xc4, 0x18005edc4\nmov     r8d, 1406h                                                     ; +0xc6, 0x18005edc6\nmov     r10, [rax]                                                     ; +0xcc, 0x18005edcc\nmov     rax, [rbx+1B0h]                                                ; +0xcf, 0x18005edcf\nmov     [rsp+38h+var_10], rax                                          ; +0xd6, 0x18005edd6\nmov     [rsp+38h+var_18], 0                                            ; +0xdb, 0x18005eddb\ncall    r10                                                            ; +0xe3, 0x18005ede3\nmov     rax, cs:__glewVertexAttribPointer                              ; +0xe6, 0x18005ede6\nmov     r9b, 1                                                         ; +0xed, 0x18005eded\nmov     edx, 4                                                         ; +0xf0, 0x18005edf0\nmov     ecx, 1                                                         ; +0xf5, 0x18005edf5\nmov     r8d, 1401h                                                     ; +0xfa, 0x18005edfa\nmov     r10, [rax]                                                     ; +0x100, 0x18005ee00\nmov     rax, [rbx+1A8h]                                                ; +0x103, 0x18005ee03\nmov     [rsp+38h+var_10], rax                                          ; +0x10a, 0x18005ee0a\nmov     [rsp+38h+var_18], 0                                            ; +0x10f, 0x18005ee0f\ncall    r10                                                            ; +0x117, 0x18005ee17\nmov     r8d, [rbx+188h]                                                ; +0x11a, 0x18005ee1a\nxor     edx, edx; first                                                ; +0x121, 0x18005ee21\nadd     r8d, r8d; count                                                ; +0x123, 0x18005ee23\nmov     ecx, 5; mode                                                   ; +0x126, 0x18005ee26\ncall    cs:glDrawArrays                                                ; +0x12b, 0x18005ee2b\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0x131, 0x18005ee31\nadd     rsp, 30h                                                       ; +0x137, 0x18005ee37\npop     rbx                                                            ; +0x13b, 0x18005ee3b\nretn                                                                   ; +0x13c, 0x18005ee3c", "xrefs": ["<???> @ 0x1800ffbf8", "<???> @ 0x18014cf68", "<???> @ 0x1801bd3c0"], "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"}