//
// ScrollableContentLayer::create from 0x140080ef0 to 0x140080ff9 (265 bytes)
//
// 17 xrefs:
// > CCTextInputNode::enableTextScroll @ 0x1400548d9
// > PagedListPopup::createScrollView @ 0x1400c3555
// > SFXFolderPickerPopup::init @ 0x1400c4847
// > ThreadViewPopup::init @ 0x1400d9d2a
// > DeathTrackerPopup::init @ 0x1401052b3
// > DeathHistogram::create @ 0x140111548
// > DropdownListPopup::init @ 0x1401219db
// > EditorWindowPopup::initWindow @ 0x14017e101
// > EditorSFXActionConfigLayer::init @ 0x140183856
// > EditorSoundConfigInfoLayer::init @ 0x140192ef3
// > EditorSoundsLayer::init @ 0x14019ce9c
// > IDNameBrowserPopup::init @ 0x1403c2041
// > KeybindingsLayer::init @ 0x1403d59ae
// > NewsPopup::init @ 0x14049e337
// > SetGroupIDLayer::init @ 0x14058f5c8
// > ScrollViewPopup::initPopup @ 0x140621d41
// > ??> @ 0x14091205c
//
// This function is hookable on this platform (idp: pc, 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 11:25:55 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall ScrollableContentLayer::create(const struct cocos2d::CCSize *a1)
{
cocos2d::CCObject *v2; // rdi
__int64 v3; // rax
__int64 v4; // rbx
__int64 v5; // rbx
__int64 v6; // rax
__int64 v7; // rax
__int64 v8; // rdx
void *v10; // [rsp+38h] [rbp+10h] BYREF
char v11; // [rsp+40h] [rbp+18h] BYREF
v10 = operator new(0x290u);
v2 = (cocos2d::CCObject *)ScrollableContentLayer::ScrollableContentLayer((__int64)v10);
if ( v2 )
{
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v10, a1);
v4 = v3;
if ( cocos2d::CCLayer::init(v2) )
{
cocos2d::CCSize::operator=((char *)v2 + 424, v4);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 312LL))(v2, v4);
v5 = *(_QWORD *)v2;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, 0.5, 0.5);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v5 + 288))(v2, v6);
v7 = cocos2d::CCNode::create();
*((_QWORD *)v2 + 52) = v7;
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 464LL))(v2, v7);
ScrollableContentLayer::applyContentPosition(v2);
LOBYTE(v8) = 1;
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 1024LL))(v2, v8);
cocos2d::CCObject::autorelease(v2);
return v2;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
return nullptr;
}
return v2;
}