// // cocos2d::extension::CCControlSwitchSprite::draw from 0xa9f048 to 0xa9f1a4 (348 bytes) // // 2 xrefs: // > @ 0x56580 // > @ 0x11f73b8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall cocos2d::extension::CCControlSwitchSprite::draw(cocos2d::ccGLServerState *this) { cocos2d::CCGLProgram *v2; // x0 cocos2d::CCGLProgram *v3; // x0 cocos2d::CCGLProgram *v4; // x0 __int64 v5; // x0 unsigned int v6; // w0 unsigned int v7; // w0 cocos2d::ccGLEnable(*(this + 62)); (*(void (__fastcall **)(cocos2d::ccGLServerState *))(*(_QWORD *)this + 640LL))(this); v2 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(cocos2d::ccGLServerState *))(*(_QWORD *)this + 640LL))(this); cocos2d::CCGLProgram::use(v2); v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(cocos2d::ccGLServerState *))(*(_QWORD *)this + 640LL))(this); cocos2d::CCGLProgram::setUniformsForBuiltins(v3); cocos2d::ccGLEnableVertexAttribs((unsigned int)&byte_7); cocos2d::ccGLBlendFunc((unsigned int)&elf_hash_bucket[66] + 2, 0x303u); v4 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(cocos2d::ccGLServerState *))(*(_QWORD *)this + 640LL))(this); cocos2d::CCGLProgram::setUniformsForBuiltins(v4); glActiveTexture(); v5 = (*(__int64 (__fastcall **)(cocos2d::ccGLServerState *))(*(_QWORD *)this + 1056LL))(this); v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 104LL))(v5); cocos2d::ccGLBindTexture2DN(0, v6); glUniform1i(); glActiveTexture(); v7 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 78) + 104LL))(*((_QWORD *)this + 78)); cocos2d::ccGLBindTexture2DN((unsigned int)&dword_0 + 1, v7); glUniform1i(); glVertexAttribPointer(); glVertexAttribPointer(); glVertexAttribPointer(); glDrawArrays(); return glActiveTexture(); }
GD Web Decomp Icon

GD Web Decomp

Raw Source