//
// cocos2d::CCAtlasNode::draw from 0x7c2ec4 to 0x7c2f96 (210 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:22 +0000
//
int __fastcall cocos2d::CCAtlasNode::draw(cocos2d::CCAtlasNode *this)
{
cocos2d::CCGLProgram *v2; // r0
cocos2d::CCGLProgram *v3; // r0
unsigned int v4; // r2
int v5; // r3
int v6; // s15
int v7; // r3
int v8; // s15
int v9; // r3
int v10; // s15
int (__fastcall *v11)(cocos2d::CCAtlasNode *); // r3
cocos2d::CCGLProgram *v12; // r0
float v14[4]; // [sp+4h] [bp-18h] BYREF
cocos2d::ccGLEnable(*((_DWORD *)this + 53));
(*(void (__fastcall **)(cocos2d::CCAtlasNode *))(*(_DWORD *)this + 328))(this);
v2 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(cocos2d::CCAtlasNode *))(*(_DWORD *)this + 328))(this);
cocos2d::CCGLProgram::use(v2);
v3 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(cocos2d::CCAtlasNode *))(*(_DWORD *)this + 328))(this);
cocos2d::CCGLProgram::setUniformsForBuiltins(v3);
cocos2d::ccGLBlendFunc(*((cocos2d **)this + 78), *((_DWORD *)this + 79), v4);
v5 = *((unsigned __int8 *)this + 271);
v14[0] = (float)*((unsigned __int8 *)this + 270) / 255.0;
v6 = v5;
v7 = *((unsigned __int8 *)this + 272);
v14[1] = (float)v6 / 255.0;
v8 = v7;
v9 = *((unsigned __int8 *)this + 268);
v14[2] = (float)v8 / 255.0;
v10 = v9;
v11 = *(int (__fastcall **)(cocos2d::CCAtlasNode *))(*(_DWORD *)this + 328);
v14[3] = (float)v10 / 255.0;
v12 = (cocos2d::CCGLProgram *)v11(this);
cocos2d::CCGLProgram::setUniformLocationWith4fv(v12, *((_DWORD *)this + 81), v14, 1u);
return cocos2d::CCTextureAtlas::drawNumberOfQuads(*((cocos2d::CCTextureAtlas **)this + 76), *((_DWORD *)this + 80), 0);
}