// // cocos2d::CCProgressTimer::draw from 0x7df478 to 0x7df5a4 (300 bytes) // // 0 xrefs: // // 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:00:48 +0000 // void __fastcall cocos2d::CCProgressTimer::draw(cocos2d::CCProgressTimer *this) { cocos2d::CCGLProgram *v2; // r0 cocos2d::CCGLProgram *v3; // r0 cocos2d *v4; // r5 unsigned int v5; // r2 unsigned int v6; // r1 int v7; // r0 __int64 v8; // r0 GLint v9; // r1 GLenum v10; // r0 cocos2d *v11; // [sp+8h] [bp-14h] BYREF _BYTE v12[4]; // [sp+10h] [bp-Ch] BYREF unsigned int v13; // [sp+14h] [bp-8h] if ( *((_DWORD *)this + 74) && *((_DWORD *)this + 72) ) { cocos2d::ccGLEnable(*((_DWORD *)this + 53)); (*(void (__fastcall **)(cocos2d::CCProgressTimer *))(*(_DWORD *)this + 328))(this); v2 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(cocos2d::CCProgressTimer *))(*(_DWORD *)this + 328))(this); cocos2d::CCGLProgram::use(v2); v3 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(cocos2d::CCProgressTimer *))(*(_DWORD *)this + 328))(this); cocos2d::CCGLProgram::setUniformsForBuiltins(v3); (*(void (__fastcall **)(cocos2d **))(**((_DWORD **)this + 72) + 544))(&v11); v4 = v11; (*(void (__fastcall **)(_BYTE *))(**((_DWORD **)this + 72) + 544))(v12); cocos2d::ccGLBlendFunc(v4, v13, v5); cocos2d::ccGLEnableVertexAttribs((cocos2d *)&byte_7, v6); v7 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 72) + 536))(*((_DWORD *)this + 72)); v8 = ((__int64 (__fastcall *)(int))*(_DWORD *)(*(_DWORD *)v7 + 52))(v7); cocos2d::ccGLBindTexture2D((cocos2d *)v8, HIDWORD(v8)); glVertexAttribPointer(); glVertexAttribPointer(); glVertexAttribPointer(); v9 = *((_DWORD *)this + 70); if ( v9 ) { if ( v9 != 1 ) { LABEL_10: ++g_uNumberOfDraws; return; } v9 = *((unsigned __int8 *)this + 316); if ( *((_BYTE *)this + 316) ) { glDrawArrays(5u, 0, *((_DWORD *)this + 73) / 2); glDrawArrays(5u, 4, *((_DWORD *)this + 73) / 2); ++g_uNumberOfDraws; goto LABEL_10; } v10 = 5; } else { v10 = 6; } glDrawArrays(v10, v9, *((_DWORD *)this + 73)); goto LABEL_10; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source