// // cocos2d::CCSprite::draw from 0x7f11e0 to 0x7f12a0 (192 bytes) // // 2 xrefs: // > cocos2d::CCTextFieldTTF::draw @ 0x7ff070 // > cocos2d::CCTextFieldTTF::draw @ 0x7ff09c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:01:04 +0000 // void __fastcall cocos2d::CCSprite::draw(cocos2d **this) { GLint v2; // r5 __int64 v3; // r0 cocos2d::CCGLProgram *v4; // r0 unsigned int v5; // r2 __int64 v6; // r0 unsigned int v7; // r2 unsigned int v8; // r1 v2 = *((unsigned __int8 *)this + 471); if ( !*((_BYTE *)this + 471) ) { if ( *((_BYTE *)this + 269) ) { cocos2d::ccGLEnable(); (*((void (__fastcall **)(cocos2d **))*this + 82))(this); v3 = ((__int64 (__fastcall *)(cocos2d **))*((_DWORD *)*this + 82))(this); cocos2d::CCGLProgram::use((cocos2d **)v3, HIDWORD(v3)); v4 = (cocos2d::CCGLProgram *)(*((int (__fastcall **)(cocos2d **))*this + 82))(this); cocos2d::CCGLProgram::setUniformsForBuiltins(v4); cocos2d::ccGLBlendFunc(*(this + 81), (GLenum)*(this + 82), v5); v6 = ((__int64 (__fastcall *)(_DWORD))*(_DWORD *)(*(_DWORD *)*(this + 83) + 52))(*(this + 83)); cocos2d::ccGLBindTexture2D((cocos2d *)v6, HIDWORD(v6), v7); cocos2d::ccGLEnableVertexAttribs((unsigned int)&byte_7, v8); glVertexAttribPointer(); glVertexAttribPointer(); glVertexAttribPointer(); glDrawArrays(5u, v2, 4); ++g_uNumberOfDraws; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source