//
// cocos2d::CCDrawNode::init from 0x7cc104 to 0x7cc1d2 (206 bytes)
//
// 1 xrefs:
// > HardStreak::init @ 0x56aaac
//
// 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:31 +0000
//
int __fastcall cocos2d::CCDrawNode::init(cocos2d::CCDrawNode *this)
{
int v1; // r3
void (__fastcall *v3)(cocos2d::CCDrawNode *, int); // r6
cocos2d::CCShaderCache *v4; // r0
int v5; // r0
cocos2d::CCNotificationCenter *v6; // r0
int v7; // r0
*((_DWORD *)this + 76) = 771;
v1 = *(_DWORD *)this;
*((_DWORD *)this + 75) = 1;
v3 = *(void (__fastcall **)(cocos2d::CCDrawNode *, int))(v1 + 332);
v4 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(this);
v5 = cocos2d::CCShaderCache::programForKey(v4, "ShaderPositionColor");
v3(this, v5);
cocos2d::CCDrawNode::ensureCapacity(this, 0x200u);
glGenBuffers();
glBindBuffer();
glBufferData();
glEnableVertexAttribArray();
glVertexAttribPointer();
glEnableVertexAttribArray();
glVertexAttribPointer();
v6 = (cocos2d::CCNotificationCenter *)glBindBuffer();
*((_BYTE *)this + 308) = 1;
v7 = cocos2d::CCNotificationCenter::sharedNotificationCenter(v6);
cocos2d::CCNotificationCenter::addObserver(
v7,
(int)this,
(int)cocos2d::CCDrawNode::listenBackToForeground,
0,
"event_come_to_foreground",
0);
return 1;
}