// // CCSpriteWithHue::draw from 0x6dda9c to 0x6ddc2c (400 bytes) // // 3 xrefs: // > @ 0x97a68 // > @ 0x14239b8 // > @ 0x1423f68 // // 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 12:51:35 +0000 // int *__fastcall CCSpriteWithHue::draw(int *this) { __int64 v1; // x19 cocos2d::CCGLProgram *v2; // x0 cocos2d::CCGLProgram *v3; // x0 unsigned int v4; // w2 cocos2d *v5; // x0 unsigned int v6; // w1 unsigned int v7; // w1 cocos2d::CCGLProgram *v8; // x0 cocos2d::CCGLProgram *v9; // x20 float Alpha; // s0 cocos2d::CCGLProgram *v11; // x0 int v12; // [xsp+28h] [xbp+28h] if ( !*((_BYTE *)this + 559) ) { if ( *((_BYTE *)this + 329) ) { 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::ccGLBlendFunc((cocos2d *)*(unsigned int *)(v1 + 404), *(_DWORD *)(v1 + 408), v4); v5 = (cocos2d *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 416) + 104LL))(*(_QWORD *)(v1 + 416)); cocos2d::ccGLBindTexture2D(v5, v6); cocos2d::ccGLEnableVertexAttribs((cocos2d *)&byte_7, v7); v8 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 656LL))(v1); cocos2d::CCGLProgram::setUniformLocationWithMatrix3fv(v8, *(_DWORD *)(v1 + 648), (float *)(v1 + 612), 1u); v9 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 656LL))(v1); v12 = *(_DWORD *)(v1 + 652); Alpha = CCSpriteWithHue::getAlpha((CCSpriteWithHue *)v1); cocos2d::CCGLProgram::setUniformLocationWith1f(v9, v12, Alpha); v11 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 656LL))(v1); cocos2d::CCGLProgram::setUniformLocationWith3f( v11, *(_DWORD *)(v1 + 656), *(float *)(v1 + 600), *(float *)(v1 + 604), *(float *)(v1 + 608)); glVertexAttribPointer(); glVertexAttribPointer(); glVertexAttribPointer(); glDrawArrays(); ++g_uNumberOfDraws; return &g_uNumberOfDraws; } } return this; }