//
// cocos2d::extension::CCScrollView::setContainer from 0xaa71cc to 0xaa72a8 (220 bytes)
//
// 1 xrefs:
// > ??> @ 0x6d698
//
// 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::CCScrollView::setContainer(cocos2d::extension::CCScrollView *a1, cocos2d::CCNode *a2)
{
cocos2d::CCNode_vtbl *v4; // x2
cocos2d::CCNode *m_pContainer; // x22
void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
cocos2d::CCPoint v7; // [xsp+40h] [xbp+40h] BYREF
cocos2d::CCSize v8; // 0:s0.4,4:s1.4
if ( a2 )
{
a1->removeAllChildrenWithCleanup(a1, 1);
v4 = a2->__vftable;
a1->m_pContainer = a2;
v4->ignoreAnchorPointForPosition(a2, 0);
m_pContainer = a1->m_pContainer;
setAnchorPoint = m_pContainer->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v7, 0.0, 0.0);
setAnchorPoint(m_pContainer, &v7);
a1->addChild(a1, a1->m_pContainer);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v7, &a1->m_tViewSize);
cocos2d::extension::CCScrollView::setViewSize(a1, v8);
}
}