//
// cocos2d::extension::CCScrollView::setContainer from 0x5a967c to 0x5a96fa (126 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
//
void cocos2d::extension::CCScrollView::setContainer(cocos2d::extension::CCScrollView *a1, cocos2d::CCNode *a2)
{
cocos2d::CCNode_vtbl *v4; // r3
cocos2d::CCNode *m_pContainer; // r7
void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
cocos2d::CCSize v7; // r1
cocos2d::CCPoint v8; // [sp+4h] [bp-Ch] BYREF
LODWORD(v8.x) = a2;
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(&v8, 0.0, 0.0);
setAnchorPoint(m_pContainer, &v8);
a1->addChild(a1, a1->m_pContainer);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v8, &a1->m_tViewSize);
LODWORD(v7.width) = &v8;
cocos2d::extension::CCScrollView::setViewSize(a1, v7);
}
}