//
// cocos2d::CCTextureAtlas::drawNumberOfQuads from 0xda5014 to 0xda5164 (336 bytes)
//
// 4 xrefs:
// > cocos2d::CCAtlasNode::draw @ 0xd3c004
// > cocos2d::CCTextureAtlas::drawQuads @ 0xda516c
// > cocos2d::CCTextureAtlas::drawNumberOfQuads @ 0xda5174
// > ??> @ 0x59758
//
// 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:08:31 +0000
//
int *__fastcall cocos2d::CCTextureAtlas::drawNumberOfQuads(int *this, int a2)
{
__int64 v2; // x19
cocos2d *v3; // x0
if ( a2 )
{
v2 = (__int64)this;
v3 = (cocos2d *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 11) + 104LL))(*((_QWORD *)this + 11));
cocos2d::ccGLBindTexture2D(v3);
glBindBuffer();
if ( *(_BYTE *)(v2 + 72) )
{
glBufferSubData();
*(_BYTE *)(v2 + 72) = 0;
}
cocos2d::ccGLEnableVertexAttribs((cocos2d *)&byte_7);
glVertexAttribPointer();
glVertexAttribPointer();
glVertexAttribPointer();
glBindBuffer();
glDrawElements();
glBindBuffer();
glBindBuffer();
++g_uNumberOfDraws;
return &g_uNumberOfDraws;
}
return this;
}