//
// cocos2d::CCClippingNode::init from 0x18005e310 to 0x18005e385 (117 bytes)
//
// 5 xrefs:
// > cocos2d::CCClippingNode::create @ 0x18005e1c7
// > cocos2d::CCClippingNode::create @ 0x18005e1b5
// > ??> @ 0x1800ff8c0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd2dc
//
// This function is hookable on this platform (idp: pc, 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 11:21:49 +0000
//
char __fastcall cocos2d::CCClippingNode::init(cocos2d::CCClippingNode *this, struct cocos2d::CCNode *a2)
{
cocos2d::CCObject *v4; // rcx
bool v5; // zf
v4 = *((cocos2d::CCObject **)this + 40);
if ( v4 )
cocos2d::CCObject::release(v4);
*((_QWORD *)this + 40) = a2;
if ( a2 )
cocos2d::CCObject::retain(a2);
v5 = byte_1801ACB7C == 0;
*((_DWORD *)this + 82) = 1065353216;
*((_BYTE *)this + 332) = 0;
if ( !v5 )
{
glGetIntegerv(0xD57u, ¶ms);
byte_1801ACB7C = 0;
}
return 1;
}