//
// cocos2d::extension::CCScale9Sprite::setCapInsets from 0xaa241c to 0xaa24f8 (220 bytes)
//
// 2 xrefs:
// > ??> @ 0x8bba8
// > ??> @ 0x11f81f8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::extension::CCScale9Sprite::setCapInsets(cocos2d::extension::CCScale9Sprite *a1, cocos2d::CCRect a2)
{
const cocos2d::CCRect *v2; // x1
const cocos2d::CCRect *v4; // x23
cocos2d::CCSpriteBatchNode *scale9Image; // x25
bool (__fastcall *updateWithBatchNode)(cocos2d::extension::CCScale9Sprite *__hidden, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect, bool, cocos2d::CCRect); // x22
_BOOL4 m_bSpriteFrameRotated; // w24
cocos2d::CCSize v8; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCRect v9; // [xsp+68h] [xbp+68h] BYREF
cocos2d::CCRect v10; // [xsp+78h] [xbp+78h] BYREF
v4 = v2;
if ( a1->_scale9Image )
{
cocos2d::CCSize::CCSize(&v8, &a1->m_obContentSize);
scale9Image = a1->_scale9Image;
updateWithBatchNode = a1->updateWithBatchNode;
cocos2d::CCRect::CCRect(&v9, &a1->m_spriteRect);
m_bSpriteFrameRotated = a1->m_bSpriteFrameRotated;
cocos2d::CCRect::CCRect(&v10, v4);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect *, _BOOL4, cocos2d::CCRect *))updateWithBatchNode)(
a1,
scale9Image,
&v9,
m_bSpriteFrameRotated,
&v10);
a1->setContentSize(a1, &v8);
}
}