//
// cocos2d::extension::CCScrollView::setContainer from 0xd18b94 to 0xd18c70 (220 bytes)
//
// 1 xrefs:
// > ??> @ 0x93bc8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:07:07 +0000
//
__int64 __fastcall cocos2d::extension::CCScrollView::setContainer(
cocos2d::extension::CCScrollView *this,
cocos2d::CCNode *a2)
{
__int64 v4; // x22
void (__fastcall *v5)(__int64, _BYTE *); // x23
_BYTE v7[8]; // [xsp+40h] [xbp+40h] BYREF
if ( a2 )
{
(*(void (__fastcall **)(cocos2d::extension::CCScrollView *, __int64))(*(_QWORD *)this + 584LL))(this, 1);
*((_QWORD *)this + 55) = a2;
(*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)a2 + 440LL))(a2, 0);
v4 = *((_QWORD *)this + 55);
v5 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 0.0, 0.0);
v5(v4, v7);
(*(void (__fastcall **)(cocos2d::extension::CCScrollView *, _QWORD))(*(_QWORD *)this + 456LL))(
this,
*((_QWORD *)this + 55));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v7, (cocos2d::extension::CCScrollView *)((char *)this + 504));
cocos2d::extension::CCScrollView::setViewSize(this, (const cocos2d::CCSize *)v7);
}
return _stack_chk_guard;
}