//
// cocos2d::extension::CCScale9Sprite::initWithBatchNode from 0x5a552c to 0x5a55a0 (116 bytes)
//
// 0 xrefs:
//
// 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
//
bool cocos2d::extension::CCScale9Sprite::initWithBatchNode(
cocos2d::extension::CCScale9Sprite *a1,
cocos2d::CCSpriteBatchNode *a2,
cocos2d::CCRect a3,
bool a4,
cocos2d::CCRect a5)
{
float y; // r10
bool (__fastcall *updateWithBatchNode)(cocos2d::extension::CCScale9Sprite *__hidden, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect, bool, cocos2d::CCRect); // r9
void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7
cocos2d::CCRect v11; // [sp+Ch] [bp+0h] BYREF
cocos2d::CCRect v12; // [sp+1Ch] [bp+10h] BYREF
y = a3.origin.y;
if ( a2 )
{
updateWithBatchNode = a1->updateWithBatchNode;
cocos2d::CCRect::CCRect(&v11, (const cocos2d::CCRect *)LODWORD(a3.origin.x));
cocos2d::CCRect::CCRect(&v12, (const cocos2d::CCRect *)LODWORD(a3.size.width));
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect *, _DWORD, cocos2d::CCRect *))updateWithBatchNode)(
a1,
a2,
&v11,
LODWORD(y),
&v12);
setAnchorPoint = a1->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v12.origin, 0.5, 0.5);
setAnchorPoint(a1, &v12.origin);
}
a1->m_positionsAreDirty = 1;
return 1;
}