// // cocos2d::CCMotionStreak::draw from 0xd6823c to 0xd6834c (272 bytes) // // 2 xrefs: // > @ 0xda548 // > @ 0x1526fa8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:07:55 +0000 // int *__fastcall cocos2d::CCMotionStreak::draw(int *this) { __int64 v1; // x19 cocos2d::CCGLProgram *v2; // x0 cocos2d::CCGLProgram *v3; // x0 unsigned int v4; // w1 unsigned int v5; // w2 cocos2d *v6; // x0 unsigned int v7; // w1 if ( (unsigned int)*(this + 98) > 1 ) { v1 = (__int64)this; cocos2d::ccGLEnable((unsigned int)*(this + 62)); (*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 656LL))(v1); v2 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 656LL))(v1); cocos2d::CCGLProgram::use(v2); v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 656LL))(v1); cocos2d::CCGLProgram::setUniformsForBuiltins(v3); cocos2d::ccGLEnableVertexAttribs((cocos2d *)&byte_7, v4); cocos2d::ccGLBlendFunc((cocos2d *)*(unsigned int *)(v1 + 368), *(_DWORD *)(v1 + 372), v5); v6 = (cocos2d *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 360) + 104LL))(*(_QWORD *)(v1 + 360)); cocos2d::ccGLBindTexture2D(v6, v7); glVertexAttribPointer(); glVertexAttribPointer(); glVertexAttribPointer(); glDrawArrays(); ++g_uNumberOfDraws; return &g_uNumberOfDraws; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source