//
// cocos2d::extension::CCScrollView::setContainer from 0x180012d00 to 0x180012dbd (189 bytes)
//
// 4 xrefs:
// > ??> @ 0x18002e94c
// > ??> @ 0x18002e95c
// > ??> @ 0x18002fdf8
// > ??> @ 0x18004a428
//
// 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 __fastcall cocos2d::extension::CCScrollView::setContainer(
cocos2d::extension::CCScrollView *this,
struct cocos2d::CCNode *a2)
{
struct cocos2d::CCNode *v2; // rbx
__int64 v4; // rbx
__int64 v5; // rax
const struct cocos2d::CCSize *v6; // rbx
char v7; // [rsp+38h] [rbp+10h] BYREF
if ( a2 )
{
v2 = a2;
LOBYTE(a2) = 1;
(*(void (__fastcall **)(cocos2d::extension::CCScrollView *, struct cocos2d::CCNode *))(*(_QWORD *)this + 560LL))(
this,
a2);
*((_QWORD *)this + 56) = v2;
(*(void (__fastcall **)(struct cocos2d::CCNode *, _QWORD))(*(_QWORD *)v2 + 416LL))(v2, 0);
v4 = **((_QWORD **)this + 56);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, 0.0, 0.0);
(*(void (__fastcall **)(_QWORD, __int64))(v4 + 272))(*((_QWORD *)this + 56), v5);
(*(void (__fastcall **)(cocos2d::extension::CCScrollView *, _QWORD))(*(_QWORD *)this + 448LL))(
this,
*((_QWORD *)this + 56));
v6 = (const struct cocos2d::CCSize *)cocos2d::CCSize::CCSize(
(cocos2d::CCSize *)&v7,
(cocos2d::extension::CCScrollView *)((char *)this + 512));
cocos2d::CCSize::operator=((char *)this + 512, v6);
cocos2d::CCNode::setContentSize(this, v6);
}
}