//
// cocos2d::CCClippingNode::setStencil from 0xd67be8 to 0xd67c30 (72 bytes)
//
// 1 xrefs:
// > ??> @ 0x47bc0
//
// 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:07:54 +0000
//
_DWORD *__fastcall cocos2d::CCClippingNode::setStencil(cocos2d::CCClippingNode *this, cocos2d::CCNode *a2)
{
_DWORD *result; // x0
cocos2d::CCNode *v4; // [xsp+28h] [xbp+28h]
result = *((_DWORD **)this + 40);
if ( result )
{
v4 = a2;
result = cocos2d::CCObject::release(result);
a2 = v4;
}
*((_QWORD *)this + 40) = a2;
if ( a2 )
return (_DWORD *)cocos2d::CCObject::retain((__int64)a2);
return result;
}